Hi all,
I've done a bunch of investigation into this problem over the weekend,
with no joy. I was able to confirm that it is probably not related to
jdk1.6_13 since I can use that version of the jdk with a different
application I have that uses an older version of embedded glassfish
(b07).
Am totally dumb-founded and stuck in the mud. Any help would be
appreciated. Is there a newer build available? (I've tried the nightly
b15 which is one day newer than the promoted b14 that I am using).
Again, this is only a problem on Linux boxes as opposed to Window boxes.
Joey
________________________________
From: Joey Jarosz
Sent: Friday, April 17, 2009 3:58 PM
To: 'embedded_at_glassfish.dev.java.net'
Subject: Problem running on Linux
Hi all,
I decided to copy over my application over to Linux for some testing.
I've done it a while ago (I think it was on build b07) but figured it
would easy to get my latest up and running. Oops!
Both Windows and Linux_x86 computers are running the same version of JDK
(jdk1.6._13) and embedded GF build b14.
I've attached most of the traceback starting just before the first
SEVERE level message. I've checked file permissions across the board, no
problem. My two application WAR files get expanded just fine in to the
glassfish "applications" directory.
Has anyone a clue of what might be the problem? I hesitate to just grab
a newer build because in the past that has meant me having to modify my
code again and again to keep up with the fast changing API - but if
someone can confirm that this sort of problem is fixed in a newer build
I guess I will bite the bullet.
joey
------------------------------------------------------
ArchiveFactory factory =
server.getHabitat().getComponent(ArchiveFactory.class);
ApplicationLifecycle lifecycle =
server.getHabitat().getComponent(ApplicationLifecycle.class);
EmbeddedFileSystem efs = server.getFileSystem();
ReadableArchive a = factory.openArchive(app);
ArchiveHandler h = lifecycle.getArchiveHandler(a);
File appDir = new File(efs.getApplicationsDir(), a.getName());
FileUtils.whack(appDir);
appDir.mkdirs();
h.expand(a, factory.createArchive(appDir));
a.close();
return factory.openArchive(appDir); <<<<------- probably
appears to start here.
------------------------------------------------------
INFO: Embedded GlassFish Prelude v3 Prelude startup time :
Embedded(203ms) startup services(436ms) total(639ms)
Apr 17, 2009 3:17:35 PM com.sun.enterprise.web.WebContainer
createHttpListener
INFO: Created HTTP listener http-listener-1 on port 8888
Apr 17, 2009 3:17:35 PM com.sun.enterprise.web.WebContainer
createHttpListener
INFO: Created HTTP listener http-listener-2 on port 8282
Apr 17, 2009 3:17:35 PM com.sun.enterprise.web.WebContainer createHosts
INFO: Created virtual server vserver-apps
Apr 17, 2009 3:17:35 PM com.sun.enterprise.web.WebContainer createHosts
INFO: Created virtual server vserver-secure
Apr 17, 2009 3:17:35 PM org.apache.commons.modeler.Registry
registerComponent
SEVERE: Null component
com.sun.appserv:type=JspMonitor,name=jsp,WebModule=//vserver-secure/,J2E
EApplication=null,J2EEServer=server
Apr 17, 2009 3:17:35 PM org.apache.catalina.core.ContainerBase
startChildren
SEVERE: PWC1240: Container
StandardEngine[com.sun.appserv].StandardHost[vserver-
secure].StandardContext[] has not been started
java.lang.RuntimeException: java.util.zip.ZipException: error in opening
zip file
at
com.sun.enterprise.util.net.JarURIPattern.getJarEntries(JarURIPattern.ja
va:83)
at
org.glassfish.faces.integration.GlassFishTldProvider.postConstruct(Glass
FishTldProvider.java:122)
at
com.sun.hk2.component.AbstractWombImpl.inject(AbstractWombImpl.java:150)
at
com.sun.hk2.component.ConstructorWomb$1.run(ConstructorWomb.java:90)
at java.security.AccessController.doPrivileged(Native Method)
at
com.sun.hk2.component.ConstructorWomb.initialize(ConstructorWomb.java:87
)
at
com.sun.hk2.component.AbstractWombImpl.get(AbstractWombImpl.java:75)
at
com.sun.hk2.component.SingletonInhabitant.get(SingletonInhabitant.java:5
8)
at
com.sun.hk2.component.LazyInhabitant.get(LazyInhabitant.java:107)
at
com.sun.hk2.component.AbstractInhabitantImpl.get(AbstractInhabitantImpl.
java:60)
at org.jvnet.hk2.component.Habitat$1.get(Habitat.java:252)
at java.util.AbstractList$Itr.next(AbstractList.java:345)
at
com.sun.enterprise.web.WebModuleListener.configureJsp(WebModuleListener.
java:257)
at
com.sun.enterprise.web.WebModuleListener.lifecycleEvent(WebModuleListene
r.java:147)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSu
pport.java:159)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:5315
)
at com.sun.enterprise.web.WebModule.start(WebModule.java:456)
at
org.apache.catalina.core.ContainerBase.startChildren(ContainerBase.java:
1514)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1180)
at
org.apache.catalina.core.StandardHost.start(StandardHost.java:977)
at
org.apache.catalina.core.ContainerBase.startChildren(ContainerBase.java:
1514)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1180)
at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:550)
at org.apache.catalina.startup.Embedded.start(Embedded.java:945)
at
com.sun.enterprise.web.WebContainer.postConstruct(WebContainer.java:630)
at
com.sun.hk2.component.AbstractWombImpl.inject(AbstractWombImpl.java:150)
at
com.sun.hk2.component.ConstructorWomb$1.run(ConstructorWomb.java:90)
at java.security.AccessController.doPrivileged(Native Method)
at
com.sun.hk2.component.ConstructorWomb.initialize(ConstructorWomb.java:87
)
at
com.sun.hk2.component.AbstractWombImpl.get(AbstractWombImpl.java:75)
at
com.sun.hk2.component.SingletonInhabitant.get(SingletonInhabitant.java:5
8)
at
com.sun.hk2.component.LazyInhabitant.get(LazyInhabitant.java:107)
at
com.sun.hk2.component.AbstractInhabitantImpl.get(AbstractInhabitantImpl.
java:60)
at org.jvnet.hk2.component.Habitat.getBy(Habitat.java:567)
at org.jvnet.hk2.component.Habitat.getByType(Habitat.java:548)
at
org.jvnet.hk2.component.Habitat.getComponent(Habitat.java:317)
at org.glassfish.embed.Server.start(Server.java:321)
at com.chipestimate.server.AppServer.start(AppServer.java:108)
at
com.chipestimate.server.CCPSServer.startAppServer(CCPSServer.java:71)
at com.chipestimate.server.CCPSServer.main(CCPSServer.java:420)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.zerog.lax.LAX.launch(DashoA10*..)
at com.zerog.lax.LAX.main(DashoA10*..)
Caused by: java.util.zip.ZipException: error in opening zip file
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(ZipFile.java:114)
at java.util.jar.JarFile.<init>(JarFile.java:133)
at java.util.jar.JarFile.<init>(JarFile.java:97)
at
com.sun.enterprise.util.net.JarURIPattern.getJarEntries(JarURIPattern.ja
va:73)
... 45 more
Apr 17, 2009 3:17:35 PM org.apache.commons.modeler.Registry
registerComponent
SEVERE: Null component
com.sun.appserv:type=JspMonitor,name=jsp,WebModule=//vserver-apps/,J2EEA
pplication=null,J2EEServer=server
Apr 17, 2009 3:17:35 PM org.apache.catalina.core.ContainerBase
startChildren
SEVERE: PWC1240: Container
StandardEngine[com.sun.appserv].StandardHost[vserver-apps].StandardConte
xt[] has not been started
java.lang.RuntimeException: java.util.zip.ZipException: error in opening
zip file
at
com.sun.enterprise.util.net.JarURIPattern.getJarEntries(JarURIPattern.ja
va:83)
at
org.glassfish.faces.integration.GlassFishTldProvider.postConstruct(Glass
FishTldProvider.java:122)
at
com.sun.hk2.component.AbstractWombImpl.inject(AbstractWombImpl.java:150)
at
com.sun.hk2.component.ConstructorWomb$1.run(ConstructorWomb.java:90)
at java.security.AccessController.doPrivileged(Native Method)
at
com.sun.hk2.component.ConstructorWomb.initialize(ConstructorWomb.java
:87)
at
com.sun.hk2.component.AbstractWombImpl.get(AbstractWombImpl.java:75)
at
com.sun.hk2.component.SingletonInhabitant.get(SingletonInhabitant.java:5
8)
at
com.sun.hk2.component.LazyInhabitant.get(LazyInhabitant.java:107)
at
com.sun.hk2.component.AbstractInhabitantImpl.get(AbstractInhabitantImpl.
java:60)
at org.jvnet.hk2.component.Habitat$1.get(Habitat.java:252)
at java.util.AbstractList$Itr.next(AbstractList.java:345)
at
com.sun.enterprise.web.WebModuleListener.configureJsp(WebModuleListener.
java:257)
at
com.sun.enterprise.web.WebModuleListener.lifecycleEvent(WebModuleListene
r.java:147)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSu
pport.java:159)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:5315
)
at com.sun.enterprise.web.WebModule.start(WebModule.java:456)
at
org.apache.catalina.core.ContainerBase.startChildren(ContainerBase.java:
1514)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1180)
at
org.apache.catalina.core.StandardHost.start(StandardHost.java:977)
at
org.apache.catalina.core.ContainerBase.startChildren(ContainerBase.java:
1514)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1180)
at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:550)
at org.apache.catalina.startup.Embedded.start(Embedded.java:945)
at
com.sun.enterprise.web.WebContainer.postConstruct(WebContainer.java:630)
at
com.sun.hk2.component.AbstractWombImpl.inject(AbstractWombImpl.java:150)
at
com.sun.hk2.component.ConstructorWomb$1.run(ConstructorWomb.java:90)
at java.security.AccessController.doPrivileged(Native Method)
at
com.sun.hk2.component.ConstructorWomb.initialize(ConstructorWomb.java:87
)
at
com.sun.hk2.component.AbstractWombImpl.get(AbstractWombImpl.java:75)
at
com.sun.hk2.component.SingletonInhabitant.get(SingletonInhabitant.java:5
8)
at
com.sun.hk2.component.LazyInhabitant.get(LazyInhabitant.java:107)
at
com.sun.hk2.component.AbstractInhabitantImpl.get(AbstractInhabitantImpl.
java:60)
--------------------------------------------
Joey Jarosz
Senior Architect
Chip Planning Solutions
Cadence Design Systems, Inc.
(408) 914-6269
Need some IP? Check out www.chipestimate.com
<
http://www.chipestimate.com>