users@glassfish.java.net

[Java Web Start] GFv3+Eclipse : Build problems

From: <glassfish_at_javadesktop.org>
Date: Wed, 07 Apr 2010 10:27:21 PDT

Hi all,

Could somebody tell me why, when I publish my project from Eclipse (GlassFish tools bundle) on my localhost, I can't launch the Web Start client whereas when I build it manually it starts ?

Here is a stack trace from the console when JWS is ok (manually built) :

Reading certificates from 2512 http://localhost:8080/___JWSappclient/___app/ObjectExchangeMerged/ObjectExchangeMergedClient.jar | C:\Documents and Settings\Olivier\Application Data\Sun\Java\Deployment\cache\6.0\13\174c934d-3c03554b.idx
Reading certificates from 2540 http://localhost:8080/___JWSappclient/___app/ObjectExchangeMerged/glassfish/modules/gf-client.jar | C:\Documents and Settings\Olivier\Application Data\Sun\Java\Deployment\cache\6.0\58\721cc33a-28d3fbe1.idx
Reading certificates from 18850 http://localhost:8080/___JWSappclient/___app/ObjectExchangeMerged/glassfish/modules/gf-client-module.jar | C:\Documents and Settings\Olivier\Application Data\Sun\Java\Deployment\cache\6.0\62\5bbcbefe-5dd858ab.idx
Reading certificates from 11 http://localhost:8080/___JWSappclient/___system/glassfish/modules/common-util.jar | C:\Documents and Settings\Olivier\Application Data\Sun\Java\Deployment\cache\6.0\49\547090f1-7d8faa4a.idx
Reading certificates from 11 http://localhost:8080/___JWSappclient/___system/glassfish/modules/glassfish.jar | C:\Documents and Settings\Olivier\Application Data\Sun\Java\Deployment\cache\6.0\12\4e532c4c-47f0564e.idx
Reading certificates from 11 http://localhost:8080/___JWSappclient/___system/glassfish/modules/hk2-core.jar | C:\Documents and Settings\Olivier\Application Data\Sun\Java\Deployment\cache\6.0\43\5fa8d4eb-4fbfb3ea.idx
Reading certificates from 11 http://localhost:8080/___JWSappclient/___system/glassfish/modules/dol.jar | C:\Documents and Settings\Olivier\Application Data\Sun\Java\Deployment\cache\6.0\1\7f3bb8c1-65c28530.idx
Reading certificates from 11 http://localhost:8080/___JWSappclient/___system/glassfish/modules/acc-config.jar | C:\Documents and Settings\Olivier\Application Data\Sun\Java\Deployment\cache\6.0\34\10265422-506e5ea2.idx
Reading certificates from 11 http://localhost:8080/___JWSappclient/___system/glassfish/modules/deployment-common.jar | C:\Documents and Settings\Olivier\Application Data\Sun\Java\Deployment\cache\6.0\45\6eb8342d-432eb526.idx
Reading certificates from 11 http://localhost:8080/___JWSappclient/___system/glassfish/modules/jpa-connector.jar | C:\Documents and Settings\Olivier\Application Data\Sun\Java\Deployment\cache\6.0\4\40324fc4-3ce8ad24.idx
Reading certificates from 11 http://localhost:8080/___JWSappclient/___system/glassfish/modules/auto-depends.jar | C:\Documents and Settings\Olivier\Application Data\Sun\Java\Deployment\cache\6.0\39\216c30a7-79443296.idx
Reading certificates from 11 http://localhost:8080/___JWSappclient/___system/glassfish/modules/kernel.jar | C:\Documents and Settings\Olivier\Application Data\Sun\Java\Deployment\cache\6.0\44\567debac-69505cc1.idx
... etc ....


Here is the one when I built my project with Eclipse IDE :
Reading certificates from 2540 http://localhost:8080/___JWSappclient/___app/ObjectExchangeMerged/glassfish/modules/gf-client.jar | C:\Documents and Settings\Olivier\Application Data\Sun\Java\Deployment\cache\6.0\58\721cc33a-28d3fbe1.idx
Reading certificates from 18850 http://localhost:8080/___JWSappclient/___app/ObjectExchangeMerged/glassfish/modules/gf-client-module.jar | C:\Documents and Settings\Olivier\Application Data\Sun\Java\Deployment\cache\6.0\62\5bbcbefe-5dd858ab.idx
#### Java Web Start Error:
#### Détection d'une entrée non signée dans la ressource : file:/D:/GlassFish-Tools-Bundle-For-Eclipse-1.2/glassfishv3/glassfish/domains/domain1/generated/xml/ObjectExchangeMerged/ObjectExchangeMergedClient_jar/ObjectExchangeMergedEJB.jar

The error says I have unsigned content in the mentionned resource.

Here is a common error I can see in the server.log even if I manually deploy my EAR :

GRAVE: Adapter[/___JWSappclient/___app/ObjectExchangeMerged] glassfish/modules/gf-client-module.jar
java.io.IOException: Une connexion établie a été abandonnée par un logiciel de votre ordinateur hôte
        at sun.nio.ch.SocketDispatcher.write0(Native Method)
        at sun.nio.ch.SocketDispatcher.write(SocketDispatcher.java:33)
        at sun.nio.ch.IOUtil.writeFromNativeBuffer(IOUtil.java:104)
        at sun.nio.ch.IOUtil.write(IOUtil.java:75)
        at sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:334)
        at com.sun.grizzly.util.OutputWriter.flushChannel(OutputWriter.java:106)
        at com.sun.grizzly.util.OutputWriter.flushChannel(OutputWriter.java:74)
        at com.sun.grizzly.http.SocketChannelOutputBuffer.flushChannel(SocketChannelOutputBuffer.java:321)
        at com.sun.grizzly.http.SocketChannelOutputBuffer.flushBuffer(SocketChannelOutputBuffer.java:392)
        at com.sun.grizzly.http.SocketChannelOutputBuffer.realWriteBytes(SocketChannelOutputBuffer.java:279)
        at com.sun.grizzly.tcp.http11.InternalOutputBuffer$OutputStreamOutputBuffer.doWrite(InternalOutputBuffer.java:884)
        at com.sun.grizzly.tcp.http11.filters.IdentityOutputFilter.doWrite(IdentityOutputFilter.java:155)
        at com.sun.grizzly.tcp.http11.InternalOutputBuffer.doWrite(InternalOutputBuffer.java:640)
        at com.sun.grizzly.tcp.Response.doWrite(Response.java:676)
        at com.sun.grizzly.tcp.StaticResourcesAdapter.service(StaticResourcesAdapter.java:229)
        at org.glassfish.appclient.server.core.jws.RestrictedContentAdapter.processContent(RestrictedContentAdapter.java:266)
        at org.glassfish.appclient.server.core.jws.RestrictedContentAdapter.serviceContent(RestrictedContentAdapter.java:226)
        at org.glassfish.appclient.server.core.jws.AppClientHTTPAdapter.service(AppClientHTTPAdapter.java:135)
        at com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:166)
        at com.sun.enterprise.v3.server.HK2Dispatcher.dispath(HK2Dispatcher.java:100)
...
One similar stack trace per jar

I exported the EAR, but it weights 35 Mo... So I removed libs from the Web/META-INF/libs and WebZK/libs, it is now 106Ko

I think Eclipse properties files are not fully innocent. In the main project properties, I have Project References > All is checked ; Java EE Module Dependencies > All is checked too, "in lib dir" are not checked. (All means the 4 projects associated)

Any clue is very appreciated :)
Thanks a lot.

Olivier.
[Message sent by forum member 'laps']

http://forums.java.net/jive/thread.jspa?messageID=395717