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) :
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)