users@glassfish.java.net

Re: RE: GlassFish 2.1.1 - Application client jar is ...

From: <forums_at_java.net>
Date: Mon, 10 Sep 2012 12:11:15 -0500 (CDT)

I am still struggling on this. Wondering what could impose on the generation
of the Client jar so it gets corrupted on each initial deployment. In the
server logs I see
[#|2012-09-10T19:13:31.231+0200|FINE|sun-appserver2.1.1|javax.enterprise.system.tools.deployment|_ThreadID=65;_ThreadName=RMI
TCP
Connection(255)-172.28.52.245;ClassName=com.sun.enterprise.appclient.jws.AppclientJWSSupportInfo;MethodName=startJWSServicesForApplication;_RequestID=21f07ad8-cf0f-4bb0-8dd1-aec55d8070cb;|Starting
Java Web Start services for application NextGenServer-ear-1.2.2-SNAPSHOT|#]
[#|2012-09-10T19:13:31.239+0200|INFO|sun-appserver2.1.1|javax.enterprise.system.tools.deployment|_ThreadID=65;_ThreadName=RMI
TCP Connection(255)-172.28.52.245;|Registering ad hoc servlet: WebPathPath:
context root = "/jp42", path = "'|#]
[#|2012-09-10T19:13:31.265+0200|INFO|sun-appserver2.1.1|javax.enterprise.system.stream.out|_ThreadID=65;_ThreadName=RMI
TCP Connection(255)-172.28.52.245;|jarsigner: unable to open jar file:
/home/dirk.manske/development/server/glassfish/glassfish-2.1.1-business/nodeagents/jp42-nodeagent-1/jp42-instance-1/generated/xml/j2ee-apps/NextGenServer-ear-1.2.2-SNAPSHOT/NextGenServer-ear-1.2.2-SNAPSHOTClient.jar|#]
[#|2012-09-10T19:13:31.266+0200|INFO|sun-appserver2.1.1|javax.enterprise.system.stream.out|_ThreadID=65;_ThreadName=RMI
TCP Connection(255)-172.28.52.245;|jarsigner error:
java.security.AccessControlException: System.exit|#]
[#|2012-09-10T19:13:31.266+0200|SEVERE|sun-appserver2.1.1|javax.enterprise.system|_ThreadID=65;_ThreadName=RMI
TCP
Connection(255)-172.28.52.245;_RequestID=21f07ad8-cf0f-4bb0-8dd1-aec55d8070cb;|Error
updating Java Web Start information for application
NextGenServer-ear-1.2.2-SNAPSHOT java.lang.RuntimeException:
java.lang.Exception: Error attempting to create signed jar
/home/dirk.manske/development/server/glassfish/glassfish-2.1.1-business/nodeagents/jp42-nodeagent-1/jp42-instance-1/java-web-start/NextGenServer-ear-1.2.2-SNAPSHOT/NextGenServer-ear-1.2.2-SNAPSHOTClient.jar;
see other log messages for more information at
com.sun.enterprise.appclient.jws.SignedStaticContent.getRelativeURI(SignedStaticContent.java:123)
at
com.sun.enterprise.appclient.jws.StaticContent.toString(StaticContent.java:84)
at java.lang.String.valueOf(String.java:2826) at
java.lang.StringBuilder.append(StringBuilder.java:115) at
java.util.AbstractMap.toString(AbstractMap.java:490) at
com.sun.enterprise.appclient.jws.ContentOrigin.toLongString(ContentOrigin.java:155)
at
com.sun.enterprise.appclient.jws.AppclientJWSSupportInfo.startJWSServicesForApplication(AppclientJWSSupportInfo.java:487)
at
com.sun.enterprise.appclient.jws.AppclientJWSSupportManager.handleApplicationEvent(AppclientJWSSupportManager.java:156)
at
com.sun.enterprise.server.event.ApplicationLoaderEventNotifier.notifyListeners(ApplicationLoaderEventNotifier.java:154)
at
com.sun.enterprise.server.AbstractLoader.notifyAppEvent(AbstractLoader.java:894)
at
com.sun.enterprise.server.ApplicationLoader.doLoad(ApplicationLoader.java:192)
at
com.sun.enterprise.server.TomcatApplicationLoader.doLoad(TomcatApplicationLoader.java:126)
at
com.sun.enterprise.server.ExtendedApplicationLoader.doLoad(ExtendedApplicationLoader.java:134)
at com.sun.enterprise.server.AbstractLoader.load(AbstractLoader.java:240) at
com.sun.enterprise.server.ApplicationManager.applicationDeployed(ApplicationManager.java:336)
at
com.sun.enterprise.server.ApplicationManager.applicationDeployed(ApplicationManager.java:210)
at
com.sun.enterprise.server.ApplicationManager.applicationDeployed(ApplicationManager.java:648)
at
com.sun.enterprise.admin.event.AdminEventMulticaster.invokeApplicationDeployEventListener(AdminEventMulticaster.java:959)
at
com.sun.enterprise.admin.event.AdminEventMulticaster.handleApplicationDeployEvent(AdminEventMulticaster.java:943)
at
com.sun.enterprise.admin.event.AdminEventMulticaster.processEvent(AdminEventMulticaster.java:467)
at
com.sun.enterprise.admin.event.AdminEventMulticaster.multicastEvent(AdminEventMulticaster.java:182)
at
com.sun.enterprise.ee.admin.mbeans.ServerRuntimeMBean.forwardEvent(ServerRuntimeMBean.java:95)
at sun.reflect.GeneratedMethodAccessor335.invoke(Unknown Source) at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597) at
com.sun.enterprise.admin.MBeanHelper.invokeOperationInBean(MBeanHelper.java:393)
at
com.sun.enterprise.admin.MBeanHelper.invokeOperationInBean(MBeanHelper.java:376)
at
com.sun.enterprise.admin.runtime.BaseRuntimeMBean.invoke(BaseRuntimeMBean.java:471)
at
com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:836)
at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:761) at
sun.reflect.GeneratedMethodAccessor28.invoke(Unknown Source) at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597) at
com.sun.enterprise.admin.util.proxy.ProxyClass.invoke(ProxyClass.java:90) at
$Proxy1.invoke(Unknown Source) at
com.sun.enterprise.admin.server.core.jmx.SunoneInterceptor.invoke(SunoneInterceptor.java:304)
at
com.sun.enterprise.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:170)
at
javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1427)
at
javax.management.remote.rmi.RMIConnectionImpl.access$200(RMIConnectionImpl.java:72)
at
javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMIConnectionImpl.java:1265)
at
javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1360)
at
javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl.java:788)
at sun.reflect.GeneratedMethodAccessor121.invoke(Unknown Source) at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597) at
sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:303) at
sun.rmi.transport.Transport$1.run(Transport.java:159) at
java.security.AccessController.doPrivileged(Native Method) at
sun.rmi.transport.Transport.serviceCall(Transport.java:155) at
sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535) at
sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790)
at
sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662) Caused by: java.lang.Exception:
Error attempting to create signed jar
/home/dirk.manske/development/server/glassfish/glassfish-2.1.1-business/nodeagents/jp42-nodeagent-1/jp42-instance-1/java-web-start/NextGenServer-ear-1.2.2-SNAPSHOT/NextGenServer-ear-1.2.2-SNAPSHOTClient.jar;
see other log messages for more information at
com.sun.enterprise.appclient.jws.ASJarSigner.sign(ASJarSigner.java:178) at
com.sun.enterprise.appclient.jws.ASJarSigner.signJar(ASJarSigner.java:116) at
com.sun.enterprise.appclient.jws.SignedStaticContent.signJar(SignedStaticContent.java:164)
at
com.sun.enterprise.appclient.jws.SignedStaticContent.ensureSignedFileUpToDate(SignedStaticContent.java:144)
at
com.sun.enterprise.appclient.jws.SignedStaticContent.getRelativeURI(SignedStaticContent.java:120)
... 54 more Caused by: java.security.AccessControlException: System.exit at
com.sun.enterprise.appclient.jws.ASJarSigner$NoExitSecurityManager.checkExit(ASJarSigner.java:573)
at java.lang.Runtime.exit(Runtime.java:88) at
java.lang.System.exit(System.java:904) at
sun.security.tools.JarSigner.run(JarSigner.java:210) at
sun.security.tools.JarSigner.main(JarSigner.java:74) at
com.sun.enterprise.appclient.jws.ASJarSigner.sign(ASJarSigner.java:166) ...
58 more AccessControlException is the consequence of the System.exit in the
catch block of ASJarSigner.. the error happens earlier, exactly when the app
Client jar is generated. Does anyone can point me to the class where Client
jar gets generated? I have to debug this and find the reason.. it's driving
me nuts.. squibber

--
[Message sent by forum member 'squibber']
View Post: http://forums.java.net/node/889421