users@glassfish.java.net

Re: SJAS 9.1 beta, WebStart does not work

From: Witold Szczerba <pljosh.mail_at_gmail.com>
Date: Tue, 10 Apr 2007 14:47:09 +0200

And this is what I've found in server logs - happened just after (or
maybe during) deploying:
Do you know how to fix that issue with error attempting to create
signed jar C:\Sun\AppServer\domains\domain1\java-web-start\appserv-jwsacc.jar
?
--------------------------------------------------------
[...]
Java Web Start services started for application
com.sun.enterprise.appclient.jws.ApplicationContentOrigin_at_c82a01
registration name=SOP
    com.sun.enterprise.appclient.jws.NestedAppclientContentOrigin_at_13dd116
registration name=SOP, context root=/SOP/SOP-app-client, module name=
, parent=SOP
StandardWrapperValve[JWSSystemServlet]: PWC1406: Servlet.service() for
servlet JWSSystemServlet threw exception
java.lang.RuntimeException:
com.sun.enterprise.appclient.jws.ASJarSigner$ASJarSignerException:
Error attempting to create signed jar
C:\Sun\AppServer\domains\domain1\java-web-start\appserv-jwsacc.jar;
see other log messages for more information
        at com.sun.enterprise.appclient.jws.SignedStaticContent.getRelativeURI(SignedStaticContent.java:110)
        at com.sun.enterprise.appclient.jws.JWSSystemServlet.processStaticContent(JWSSystemServlet.java:169)
        at com.sun.enterprise.appclient.jws.JWSSystemServlet.service(JWSSystemServlet.java:142)
        at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:398)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:277)
        at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:255)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:188)
        at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:611)
        at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:564)
        at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:81)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:207)
        at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:611)
        at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:564)
        at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:558)
        at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1067)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:137)
        at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:611)
        at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:564)
        at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:558)
        at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1067)
        at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:249)
        at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:618)
        at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:549)
        at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:790)
        at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:326)
        at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:248)
        at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:199)
        at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:252)
        at com.sun.enterprise.web.connector.grizzly.ssl.SSLWorkerThread.run(SSLWorkerThread.java:93)
Caused by: com.sun.enterprise.appclient.jws.ASJarSigner$ASJarSignerException:
Error attempting to create signed jar
C:\Sun\AppServer\domains\domain1\java-web-start\appserv-jwsacc.jar;
see other log messages for more information
        at com.sun.enterprise.appclient.jws.ASJarSigner.sign(ASJarSigner.java:313)
        at com.sun.enterprise.appclient.jws.ASJarSigner.signJar(ASJarSigner.java:124)
        at com.sun.enterprise.appclient.jws.SignedStaticContent.signJar(SignedStaticContent.java:151)
        at com.sun.enterprise.appclient.jws.SignedStaticContent.ensureSignedFileUpToDate(SignedStaticContent.java:131)
        at com.sun.enterprise.appclient.jws.SignedStaticContent.getRelativeURI(SignedStaticContent.java:107)
        ... 28 more
Caused by: java.lang.NoSuchMethodException:
sun.security.tools.SignatureFile$Block.<init>(sun.security.tools.SignatureFile,
java.security.PrivateKey, [Ljava.security.cert.X509Certificate;,
boolean, java.lang.String, java.security.cert.X509Certificate,
com.sun.jarsigner.ContentSigner, [Ljava.lang.String;,
java.util.zip.ZipFile)
        at java.lang.Class.getConstructor0(Class.java:2706)
        at java.lang.Class.getDeclaredConstructor(Class.java:1985)
        at com.sun.enterprise.appclient.jws.ASJarSigner.findConstructor(ASJarSigner.java:703)
        at com.sun.enterprise.appclient.jws.ASJarSigner.access$100(ASJarSigner.java:80)
        at com.sun.enterprise.appclient.jws.ASJarSigner$SignatureFile$Block.<init>(ASJarSigner.java:833)
        at com.sun.enterprise.appclient.jws.ASJarSigner$SignatureFile.generateBlock(ASJarSigner.java:785)
        at com.sun.enterprise.appclient.jws.ASJarSigner.sign(ASJarSigner.java:253)
        ... 32 more







2007/4/10, Witold Szczerba <pljosh.mail_at_gmail.com>:
> Hi there,
> yesterday I've downloaded SJAS 9.1 beta, JDK6u1 and NB 5.5.1 RC1.
> After recompiling EAR (1 EJB + 1 App client) everything works when
> launched from within NetBeans 5.5.1, but Java WebStart does not launch
> application, here is what I get:
>
> com.sun.deploy.net.FailedDownloadException: Unable to load resource:
> http://localhost:8080/__JWSappclients/__appserver/aslib/appserv-jwsacc.jar
> at com.sun.deploy.net.DownloadEngine.actionDownload(Unknown Source)
> at com.sun.deploy.net.DownloadEngine.getCacheEntry(Unknown Source)
> at com.sun.deploy.net.DownloadEngine.getResourceCacheEntry(Unknown Source)
> at com.sun.deploy.net.DownloadEngine.getResourceCacheEntry(Unknown Source)
> at com.sun.deploy.net.DownloadEngine.getResource(Unknown Source)
> at com.sun.javaws.LaunchDownload.downloadJarFiles(Unknown Source)
> at com.sun.javaws.LaunchDownload.downloadEagerorAll(Unknown Source)
> at com.sun.javaws.Launcher.downloadResources(Unknown Source)
> at com.sun.javaws.Launcher.prepareLaunchFile(Unknown Source)
> at com.sun.javaws.Launcher.prepareToLaunch(Unknown Source)
> at com.sun.javaws.Launcher.launch(Unknown Source)
> at com.sun.javaws.Main.launchApp(Unknown Source)
> at com.sun.javaws.Main.continueInSecureThread(Unknown Source)
> at com.sun.javaws.Main$1.run(Unknown Source)
> at java.lang.Thread.run(Unknown Source)
>
>
>
> Wrapped exception:
> java.io.IOException: Server returned HTTP response code: 500 for URL:
> http://localhost:8080/__JWSappclients/__appserver/aslib/appserv-jwsacc.jar
> at sun.reflect.GeneratedConstructorAccessor2.newInstance(Unknown Source)
> at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
> at java.lang.reflect.Constructor.newInstance(Unknown Source)
> at sun.net.www.protocol.http.HttpURLConnection$6.run(Unknown Source)
> at java.security.AccessController.doPrivileged(Native Method)
> at sun.net.www.protocol.http.HttpURLConnection.getChainedException(Unknown
> Source)
> at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
> at com.sun.deploy.net.BasicHttpRequest.doRequest(Unknown Source)
> at com.sun.deploy.net.BasicHttpRequest.doRequest(Unknown Source)
> at com.sun.deploy.net.BasicHttpRequest.doGetRequest(Unknown Source)
> at com.sun.deploy.net.DownloadEngine.actionDownload(Unknown Source)
> at com.sun.deploy.net.DownloadEngine.getCacheEntry(Unknown Source)
> at com.sun.deploy.net.DownloadEngine.getResourceCacheEntry(Unknown Source)
> at com.sun.deploy.net.DownloadEngine.getResourceCacheEntry(Unknown Source)
> at com.sun.deploy.net.DownloadEngine.getResource(Unknown Source)
> at com.sun.javaws.LaunchDownload.downloadJarFiles(Unknown Source)
> at com.sun.javaws.LaunchDownload.downloadEagerorAll(Unknown Source)
> at com.sun.javaws.Launcher.downloadResources(Unknown Source)
> at com.sun.javaws.Launcher.prepareLaunchFile(Unknown Source)
> at com.sun.javaws.Launcher.prepareToLaunch(Unknown Source)
> at com.sun.javaws.Launcher.launch(Unknown Source)
> at com.sun.javaws.Main.launchApp(Unknown Source)
> at com.sun.javaws.Main.continueInSecureThread(Unknown Source)
> at com.sun.javaws.Main$1.run(Unknown Source)
> at java.lang.Thread.run(Unknown Source)
> Caused by: java.io.IOException: Server returned HTTP response code:
> 500 for URL: http://localhost:8080/__JWSappclients/__appserver/aslib/appserv-jwsacc.jar
> at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
> at java.net.HttpURLConnection.getResponseCode(Unknown Source)
> ... 18 more
>
>
> Any ideas what can I do now? Looks like will have to go back to SJAS
> 9.0 u1p1, but TopLink Essentials from GFv1 is broken in many places :(
>