dev@glassfish.java.net

Re: unble to find pe-VERSION.zip file after V3 build

From: Paul Sterk <Paul.Sterk_at_Sun.COM>
Date: Thu, 06 Dec 2007 16:08:55 -0800

Jane and Hong,

Please follow these steps and let me know the results.

1. update v3 workspace, svn update
2. mvn clean; mvn -U install
3. get the pe.zip under distribution directory
(v3/distributions/pe/target/pe.zip) and unzip
4. start server (on port 8080) and deploy by "asadmin deploy --path
hello1.war"

Paul

On Thu, 2007-12-06 at 15:20 -0800, Jane Young wrote:

> Hi Paul,
>
> Yes, I could see these two files:
>
> janey:/export/Glassfish/glassfish_v3_06Dec/v3/execute janey$ ls -l
> glassfish/lib/ant-1.7.0.jar glassfish/lib/ant-launcher-1.7.0.jar
> -rw-r--r-- 1 janey admin 1289806 Nov 13 15:39
> glassfish/lib/ant-1.7.0.jar
> -rw-r--r-- 1 janey admin 11734 Nov 13 15:38
> glassfish/lib/ant-launcher-1.7.0.jar
>
> After deployment, I could see that "hello1" directory created in the
> applications folder:
>
> janey:/export/Glassfish/glassfish_v3_06Dec/v3/execute/glassfish/bin
> janey$ ./asadmin deploy --port 7070 hello1.war
> SUCCESS : null
> janey:/export/Glassfish/glassfish_v3_06Dec/v3/execute/glassfish/bin
> janey$ ls ../domains/domain1/applications
> hello1 j2ee-modules mbeans
> j2ee-apps lifecycle-modules
>
> But I cannot access the application from the browser.
>
> Jane
>
>
>
> Paul Sterk wrote:
>
> >
> > Jane and Hong,
> >
> > I am unable to duplicate the issues you are seeing. I followed the
> > same steps as Hong:
> >
> > 1. update v3 workspace, svn update
> > 2. mvn clean; mvn -U install
> > 3. get the pe.zip under distribution directory
> > (v3/distributions/pe/target/pe.zip) and unzip
> > 4. start server (on port 8080) and deploy by "asadmin deploy --path
> > hello1.war"
> >
> > Do you have these two jar files in your unzipped pe.zip glassfish
> > directory tree?:
> >
> > glassfish/lib/ant-1.7.0.jar glassfish/lib/ant-launcher-1.7.0.jar
> >
> > If not, that could cause the problem regarding the location of the Ant
> > module. Let me know if that is the case, and we'll go from there.
> >
> > Paul
> >
> > On Thu, 2007-12-06 at 13:00 -0800, Jane Young wrote:
> >
> >>Hi Paul,
> >>
> >>I'm also seeing this same problem with a fresh build:
> >>
> >>
> >>janey:/export/Glassfish/glassfish_v3_06Dec/v3/execute/glassfish/bin
> >>janey$ ./asadmin deploy --port 7070 ~/J2EE_apps/hello1.war
> >>SUCCESS : null
> >>
> >>server log:
> >>
> >>Dec 6, 2007 12:58:42 PM com.sun.enterprise.v3.admin.AdminAdapter doCommand
> >>SEVERE: Exception in command execution : java.lang.LinkageError: Unable
> >>to locate ant module
> >>java.lang.LinkageError: Unable to locate ant module
> >> at
> >>com.sun.enterprise.web.WebImportPolicy.prepare(WebImportPolicy.java:55)
> >> at com.sun.enterprise.module.Module.resolve(Module.java:299)
> >> at
> >>com.sun.enterprise.module.ModulesRegistry.makeModuleFor(ModulesRegistry.java:224)
> >> at com.sun.enterprise.module.Module.resolve(Module.java:313)
> >> at
> >>com.sun.enterprise.module.ModulesRegistry.makeModuleFor(ModulesRegistry.java:224)
> >> at
> >>com.sun.enterprise.v3.server.ContainerStarter.startContainer(ContainerStarter.java:121)
> >> at
> >>com.sun.enterprise.v3.server.ApplicationLifecycle.startContainer(ApplicationLifecycle.java:311)
> >> at
> >>com.sun.enterprise.v3.server.ApplicationLifecycle.load(ApplicationLifecycle.java:147)
> >> at
> >>com.sun.enterprise.v3.deployment.DeployCommand.execute(DeployCommand.java:196)
> >> at
> >>com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:246)
> >> at
> >>com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:162)
> >> at
> >>com.sun.enterprise.v3.admin.AdminAdapter.service(AdminAdapter.java:110)
> >> at
> >>com.sun.enterprise.v3.server.HK2Dispatcher.dispath(HK2Dispatcher.java:100)
> >> at
> >>com.sun.enterprise.v3.services.impl.GrizzlyAdapter.service(GrizzlyAdapter.java:251)
> >> at
> >>com.sun.grizzly.http.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:598)
> >> at
> >>com.sun.grizzly.http.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:529)
> >> at
> >>com.sun.grizzly.http.DefaultProcessorTask.process(DefaultProcessorTask.java:773)
> >> at
> >>com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:130)
> >> at
> >>com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:90)
> >> at
> >>com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:68)
> >> at
> >>com.sun.grizzly.http.SelectorThread$1.execute(SelectorThread.java:628)
> >> at com.sun.grizzly.Context.call(Context.java:266)
> >> at
> >>com.sun.grizzly.util.WorkerThreadImpl.run(WorkerThreadImpl.java:179)
> >>
> >>
> >>
> >>Hong Zhang wrote:
> >>
> >>> Hi, Paul
> >>> What I tried:
> >>> 1. update v3 workspace, svn update
> >>> 2. mvn clean; mvn -U install
> >>> 3. get the pe.zip under distribution directory and unzip
> >>> 4. start server and deploy by "asadmin deploy --path hello1.war"
> >>>
> >>> - Hong
> >>>
> >>>>
> >>>> I was able to deploy and use the hello1 war deployed to GF from the
> >>>> built pe.zip file. Please tell me the steps you took that led to the
> >>>> error below.
> >>>>
> >>>> Paul
> >>>>
> >>>> On Thu, 2007-12-06 at 13:23 -0500, Hong Zhang wrote:
> >>>>
> >>>>> Hi, Paul
> >>>>> After I updated workspace, I could build and start server ok.
> >>>>> But when I tried to deploy the hello1.war, I got following error:
> >>>>>
> >>>>> INFO: Glassfish v3 started in 962 ms
> >>>>> Dec 6, 2007 1:20:47 PM com.sun.enterprise.v3.admin.AdminAdapter
> >>>>> doCommand
> >>>>> SEVERE: Exception in command execution : java.lang.LinkageError:
> >>>>> Unable to locate ant module
> >>>>> java.lang.LinkageError: Unable to locate ant module
> >>>>> at
> >>>>> com.sun.enterprise.web.WebImportPolicy.prepare(WebImportPolicy.java:55)
> >>>>> at com.sun.enterprise.module.Module.resolve(Module.java:299)
> >>>>> at
> >>>>> com.sun.enterprise.module.ModulesRegistry.makeModuleFor(ModulesRegistry.java:224)
> >>>>> at com.sun.enterprise.module.Module.resolve(Module.java:313)
> >>>>> at
> >>>>> com.sun.enterprise.module.ModulesRegistry.makeModuleFor(ModulesRegistry.java:224)
> >>>>> at
> >>>>> com.sun.enterprise.v3.server.ContainerStarter.startContainer(ContainerStarter.java:121)
> >>>>> at
> >>>>> com.sun.enterprise.v3.server.ApplicationLifecycle.startContainer(ApplicationLifecycle.java:311)
> >>>>> at
> >>>>> com.sun.enterprise.v3.server.ApplicationLifecycle.load(ApplicationLifecycle.java:147)
> >>>>> at
> >>>>> com.sun.enterprise.v3.deployment.DeployCommand.execute(DeployCommand.java:196)
> >>>>> at
> >>>>> com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:246)
> >>>>> at
> >>>>> com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:162)
> >>>>> at
> >>>>> com.sun.enterprise.v3.admin.AdminAdapter.service(AdminAdapter.java:110)
> >>>>> at
> >>>>> com.sun.enterprise.v3.server.HK2Dispatcher.dispath(HK2Dispatcher.java:100)
> >>>>> at
> >>>>> com.sun.enterprise.v3.services.impl.GrizzlyAdapter.service(GrizzlyAdapter.java:251)
> >>>>> at
> >>>>> com.sun.grizzly.http.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:598)
> >>>>> at
> >>>>> com.sun.grizzly.http.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:529)
> >>>>> at
> >>>>> com.sun.grizzly.http.DefaultProcessorTask.process(DefaultProcessorTask.java:773)
> >>>>> at
> >>>>> com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:130)
> >>>>> at
> >>>>> com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:90)
> >>>>> at
> >>>>> com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:68)
> >>>>> at
> >>>>> com.sun.grizzly.http.SelectorThread$1.execute(SelectorThread.java:628)
> >>>>> at com.sun.grizzly.Context.call(Context.java:266)
> >>>>> at
> >>>>> com.sun.grizzly.util.WorkerThreadImpl.run(WorkerThreadImpl.java:179)
> >>>>>
> >>>>> - Hong
> >>>>>
> >>>>> Paul Sterk wrote:
> >>>>>
> >>>>>>
> >>>>>> Ok. A Husdon batch process failed for some reason. I'll push out
> >>>>>> new version now.
> >>>>>>
> >>>>>> Paul
> >>>>>>
> >>>>>> On Thu, 2007-12-06 at 12:32 -0500, Hong Zhang wrote:
> >>>>>>
> >>>>>>> Hi, Paul
> >>>>>>> I tried earlier this morning (after updating my workspace), and
> >>>>>>> I got this error:
> >>>>>>>
> >>>>>>> Downloading:
> >>>>>>> http://repo1.maven.org/maven2/org/jvnet/maven-antrun-extended-plugin/maven-antrun-extended-plugin/1.9/maven-antrun-extended-plugin-1.9.pom
> >>>>>>>
> >>>>>>> [INFO]
> >>>>>>> ------------------------------------------------------------------------
> >>>>>>>
> >>>>>>> [ERROR] BUILD ERROR
> >>>>>>> [INFO]
> >>>>>>> ------------------------------------------------------------------------
> >>>>>>>
> >>>>>>> [INFO] Failed to resolve artifact.
> >>>>>>>
> >>>>>>> GroupId: org.jvnet.maven-antrun-extended-plugin
> >>>>>>> ArtifactId: maven-antrun-extended-plugin
> >>>>>>> Version: 1.9
> >>>>>>>
> >>>>>>> Reason: Unable to download the artifact from any repository
> >>>>>>>
> >>>>>>>
> >>>>>>> org.jvnet.maven-antrun-extended-plugin:maven-antrun-extended-plugin:pom:1.9
> >>>>>>>
> >>>>>>>
> >>>>>>> from the specified remote repositories:
> >>>>>>> central (http://repo1.maven.org/maven2),
> >>>>>>> repo1.maven.org (http://repo1.maven.org/maven2),
> >>>>>>> java-dev-repository (http://download.java.net/maven/1),
> >>>>>>> maven2.java.net (http://download.java.net/maven/2),
> >>>>>>> glassfish-repository (http://download.java.net/maven/glassfish),
> >>>>>>> java.net (http://download.java.net/maven/1),
> >>>>>>> my-m1-repository (http://download.java.net/javaee5/external/shared)
> >>>>>>>
> >>>>>>> Thanks,
> >>>>>>>
> >>>>>>> - Hong
> >>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>> Please retest with latest bits. Kohsuke and I have made some
> >>>>>>>> progress. The server should start now. We are working to reduce
> >>>>>>>> bloat in the current zip ile.
> >>>>>>>>
> >>>>>>>> Paul
> >>>>>>>>
> >>>>>>>> On Wed, 2007-12-05 at 15:10 -0500, Hong Zhang wrote:
> >>>>>>>>
> >>>>>>>>> Hi, Paul
> >>>>>>>>> I just built the v3 using the latest source (including your
> >>>>>>>>> check in today) and I couldn't get the server started either.
> >>>>>>>>> :-( The only jar in my lib directory after unzip is
> >>>>>>>>> glassfish-10.0-SNAPSHOT.jar.
> >>>>>>>>>
> >>>>>>>>> hzhang_at_nmr:~/files/sun/glassfish/lib$ java -jar
> >>>>>>>>> glassfish-10.0-SNAPSHOT.jar
> >>>>>>>>> Exception in thread "main" java.lang.NoClassDefFoundError:
> >>>>>>>>> com/sun/enterprise/module/bootstrap/Main
> >>>>>>>>> at java.lang.ClassLoader.defineClass1(Native Method)
> >>>>>>>>> at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
> >>>>>>>>> at
> >>>>>>>>> java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
> >>>>>>>>> at
> >>>>>>>>> java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
> >>>>>>>>> at
> >>>>>>>>> java.net.URLClassLoader.access$100(URLClassLoader.java:56)
> >>>>>>>>> at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
> >>>>>>>>> at java.security.AccessController.doPrivileged(Native
> >>>>>>>>> Method)
> >>>>>>>>> at
> >>>>>>>>> java.net.URLClassLoader.findClass(URLClassLoader.java:188)
> >>>>>>>>> at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
> >>>>>>>>> at
> >>>>>>>>> sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
> >>>>>>>>> at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
> >>>>>>>>> at
> >>>>>>>>> java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
> >>>>>>>>>
> >>>>>>>>> - Hong
> >>>>>>>>>
> >>>>>>>>> Paul Sterk wrote:
> >>>>>>>>>
> >>>>>>>>>>
> >>>>>>>>>> Jane,
> >>>>>>>>>>
> >>>>>>>>>> I have a fix for this issue and am completing some tests. I
> >>>>>>>>>> also want to give Jerome a chance to comment on my fix, if he
> >>>>>>>>>> has time. Either way, I'll commit a patch in about an hour.
> >>>>>>>>>>
> >>>>>>>>>> Paul
> >>>>>>>>>>
> >>>>>>>>>> On Wed, 2007-12-05 at 01:29 -0800, Jane Young wrote:
> >>>>>>>>>>
> >>>>>>>>>>>Hi Sahoo,
> >>>>>>>>>>>
> >>>>>>>>>>>Thanks for the quick response.
> >>>>>>>>>>>I unzipped
> >>>>>>>>>>>org/glassfish/distributions/pe/10.0-SNAPSHOT/pe-10.0-SNAPSHOT.zip from
> >>>>>>>>>>>~/.m2/repository and I couldn't find
> >>>>>>>>>>>glassfish/lib/glassfish-10.0-SNAPSHOT.jar
> >>>>>>>>>>>
> >>>>>>>>>>>I'm using the latest build. Something is not working...
> >>>>>>>>>>>
> >>>>>>>>>>>Jane
> >>>>>>>>>>>
> >>>>>>>>>>>
> >>>>>>>>>>>Sahoo wrote:
> >>>>>>>>>>>
> >>>>>>>>>>>> 'mvn install' should install a file like this in your maven repository
> >>>>>>>>>>>> (usually ~/.m2/repository)
> >>>>>>>>>>>> org/glassfish/distributions/pe/10.0-SNAPSHOT/pe-10.0-SNAPSHOT.zip
> >>>>>>>>>>>>
> >>>>>>>>>>>> Thanks,
> >>>>>>>>>>>> Sahoo
> >>>>>>>>>>>>
> >>>>>>>>>>>> Jane Young wrote:
> >>>>>>>>>>>>
> >>>>>>>>>>>>>
> >>>>>>>>>>>>>> Hi,
> >>>>>>>>>>>>>>
> >>>>>>>>>>>>>> Has anyone checked-out V3 recently?
> >>>>>>>>>>>>>> I followed the instruction on
> >>>>>>>>>>>>>> http://wiki.glassfish.java.net/Wiki.jsp?page=V3FullBuildInstructions.
> >>>>>>>>>>>>>> The build is successful, but I can't find "pe-VERSION.zip". I
> >>>>>>>>>>>>>> see only two zip files in distributions/pe/target: "pe.zip" and
> >>>>>>>>>>>>>> "javadb.zip".
> >>>>>>>>>>>>>>
> >>>>>>>>>>>>>> Any idea?
> >>>>>>>>>>>>>>
> >>>>>>>>>>>>>> Thanks,
> >>>>>>>>>>>>>
> >>>>>>>>>>>>>
> >>>>>>>>>>>>> Jane
> >>>>>>>>>>>>>
> >>>>>>>>>>>>> ---------------------------------------------------------------------
> >>>>>>>>>>>>> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net <mailto:dev-unsubscribe_at_glassfish.dev.java.net> <mailto:dev-unsubscribe_at_glassfish.dev.java.net>
> >>>>>>>>>>>>> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net <mailto:dev-help_at_glassfish.dev.java.net> <mailto:dev-help_at_glassfish.dev.java.net>
> >>>>>>>>>>>>>
> >>>>>>>>>>>>
> >>>>>>>>>>>> ---------------------------------------------------------------------
> >>>>>>>>>>>> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net <mailto:dev-unsubscribe_at_glassfish.dev.java.net> <mailto:dev-unsubscribe_at_glassfish.dev.java.net>
> >>>>>>>>>>>> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net <mailto:dev-help_at_glassfish.dev.java.net> <mailto:dev-help_at_glassfish.dev.java.net>
> >>>>>>>>>>>>
> >>>>>>>>>>>
> >>>>>>>>>>>---------------------------------------------------------------------
> >>>>>>>>>>>To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net <mailto:dev-unsubscribe_at_glassfish.dev.java.net> <mailto:dev-unsubscribe_at_glassfish.dev.java.net>
> >>>>>>>>>>>For additional commands, e-mail: dev-help_at_glassfish.dev.java.net <mailto:dev-help_at_glassfish.dev.java.net> <mailto:dev-help_at_glassfish.dev.java.net>
> >>>>>>>>>>>
> >>>>>>>>>>>
> >>>>>>>>>>>
> >>>>>>>>>>>
> >>>>>>>>>>>
> >>>>>>>>>>>
> >>>>>>>>>
> >>>>>>>
> >>>>>
> >>>
> >>
> >>---------------------------------------------------------------------
> >>To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net <mailto:dev-unsubscribe_at_glassfish.dev.java.net>
> >>For additional commands, e-mail: dev-help_at_glassfish.dev.java.net <mailto:dev-help_at_glassfish.dev.java.net>
> >>
> >>
> >>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>