dev@glassfish.java.net

Re: V3 Server startup failing (was Re: BootException, sjsxp-1.0.jar)

From: Timothy Quinn <Timothy.Quinn_at_Sun.COM>
Date: Mon, 17 Mar 2008 14:53:13 -0500

More information, no solution.

At Hong's wise suggestion I also checked out and built hk2 in my
workspace, then rebuilt gf v3.

I am now back to the point where I can at least start the server. It
continues to display many warnings about modules it cannot load, capped
off by the IllegalArgumentException triggered by the hk2 injection
manager. And although asadmin list-applications works (it reports the
expected empty list) I cannot deploy from NetBeans or using asadmin deploy.

Of course, the other interesting data point is that if I cd to the web
distribution directory and use mvn gf:run the server starts without any
errors or warning. As soon as I try to deploy my simple test web app I
get the IllegalArgumentException that otherwise seems to appear during
start-up.


- Tim

Vivek Pandey wrote:
> I just reported the same problem on users alias. Do you know which of
> the last nightly might be working?
>
> -vivek.
> Dinesh Patil wrote:
>> Just now I did complete fresh build using "mvn -U install" on my
>> solaris x86, and trying to start the domain from web.zip, but no info
>> from the console log, server.log is not even created. From hudson, I
>> cann't see which checkin may have caused it, but looks like lots of
>> checkin in admin/cli/launcher went in. Please let us know if you have
>> any more info.
>>
>> > ./asadmin start-domain domain1
>> ****************************************************
>> ************ TP2 Launcher *******************
>> ** The commandline below is temporarily here for your info. When
>> logging is setup it will go to the log file.
>> ** jvm command line **
>> ---------------------------------------------------
>> /net/jre.sfbay/a/v07/jdk/1.5.0_14/fcs/binaries/solaris-i586/bin/java
>> -cp
>> /export/tinderbox/dinesh/ws317/v3/distributions/web/target/glassfish/modules/glassfish-10.0-SNAPSHOT.jar:/export/tinderbox/dinesh/ws317/v3/distributions/web/target/glassfish/lib/appserv-launch.jar
>>
>> -XX:NewRatio=2
>> -Xmx512m
>> -client
>> -Djava.ext.dirs=/net/jre.sfbay/a/v07/jdk/1.5.0_14/fcs/binaries/solaris-i586/lib/ext:/net/jre.sfbay/a/v07/jdk/1.5.0_14/fcs/binaries/solaris-i586/jre/lib/ext:/export/tinderbox/dinesh/ws317/v3/distributions/web/target/glassfish/domains/domain1/lib/ext:/export/tinderbox/dinesh/ws317/v3/distributions/web/target/glassfish/javadb/lib
>>
>> -Djava.security.policy=/export/tinderbox/dinesh/ws317/v3/distributions/web/target/glassfish/domains/domain1/config/server.policy
>>
>> -Djdbc.drivers=org.apache.derby.jdbc.ClientDriver
>> -Djava.endorsed.dirs=/export/tinderbox/dinesh/ws317/v3/distributions/web/target/glassfish/lib/endorsed
>>
>> -Dcom.sun.enterprise.config.config_environment_factory_class=com.sun.enterprise.config.serverbeans.AppserverConfigEnvironmentFactory
>>
>> -Djavax.net.ssl.trustStore=/export/tinderbox/dinesh/ws317/v3/distributions/web/target/glassfish/domains/domain1/config/cacerts.jks
>>
>> -Djavax.net.ssl.keyStore=/export/tinderbox/dinesh/ws317/v3/distributions/web/target/glassfish/domains/domain1/config/keystore.jks
>>
>> -Dsun.rmi.dgc.server.gcInterval=3600000
>> -Dsun.rmi.dgc.client.gcInterval=3600000
>> -Djava.security.auth.login.config=/export/tinderbox/dinesh/ws317/v3/distributions/web/target/glassfish/domains/domain1/config/login.conf
>>
>> com.sun.enterprise.glassfish.bootstrap.Main
>> -debug
>> false
>> -domaindir
>> /export/tinderbox/dinesh/ws317/v3/distributions/web/target/glassfish/domains/domain1
>>
>> -instancename
>> server
>> -embedded
>> false
>> -verbose
>> false
>> -domainname
>> domain1
>> ****************************************************
>> Mar 17, 2008 11:10:57 AM
>> com.sun.enterprise.admin.launcher.GFLauncherLogger info
>> INFO: Successfully launched in 561 msec.
>>
>> Timothy Quinn wrote:
>>
>>> To try to work around the runtime problems I mentioned earlier I
>>> tried a complete fresh checkout with a separate .m2/repository. I
>>> now get the same error Shing-Wai mentioned although for a different
>>> module.
>>>
>>> Anyone know what's going on?
>>>
>>> - Tim
>>>
>>> Shing-Wai.Chan_at_Sun.COM wrote:
>>>
>>>> I do a svn update this morning and rebuild my workspace.
>>>> I see the following stack trace during server startup. I even try
>>>> "mvn -U install".
>>>> Any idea?
>>>> Thanks.
>>>> Shing Wai Chan
>>>> ------
>>>>
>>>> Listening for transport dt_socket at address: 9009
>>>> com.sun.enterprise.module.bootstrap.BootException: Exception while
>>>> adding shared repository
>>>> at
>>>> com.sun.enterprise.module.bootstrap.Main.addRepo(Main.java:225)
>>>> at
>>>> com.sun.enterprise.module.bootstrap.Main.createRepository(Main.java:182)
>>>>
>>>> at
>>>> com.sun.enterprise.glassfish.bootstrap.Main.createRepository(Main.java:163)
>>>>
>>>> at
>>>> com.sun.enterprise.module.bootstrap.Main.start(Main.java:150)
>>>> at com.sun.enterprise.module.bootstrap.Main$1.run(Main.java:68)
>>>> Caused by: java.io.IOException: Failed to load modules from
>>>> /export/gfv3/src/install/glassfish/modules/.
>>>> at
>>>> com.sun.enterprise.module.common_impl.DirectoryBasedRepository.loadModuleDefs(DirectoryBasedRepository.java:99)
>>>>
>>>> at
>>>> com.sun.enterprise.module.common_impl.AbstractRepositoryImpl.initialize(AbstractRepositoryImpl.java:64)
>>>>
>>>> at
>>>> com.sun.enterprise.module.bootstrap.Main.addRepo(Main.java:236)
>>>> at
>>>> com.sun.enterprise.module.bootstrap.Main.addRepo(Main.java:223)
>>>> ... 4 more
>>>> Caused by: java.io.IOException: Failed to open sjsxp-1.0.jar
>>>> at
>>>> com.sun.enterprise.module.common_impl.Jar$Archive.<init>(Jar.java:129)
>>>> at
>>>> com.sun.enterprise.module.common_impl.Jar.create(Jar.java:48)
>>>> at
>>>> com.sun.enterprise.module.common_impl.DefaultModuleDefinition.parseClassPath(DefaultModuleDefinition.java:140)
>>>>
>>>> at
>>>> com.sun.enterprise.module.common_impl.DefaultModuleDefinition.<init>(DefaultModuleDefinition.java:101)
>>>>
>>>> at
>>>> com.sun.enterprise.module.common_impl.AbstractRepositoryImpl.newModuleDefinition(AbstractRepositoryImpl.java:208)
>>>>
>>>> at
>>>> com.sun.enterprise.module.common_impl.AbstractRepositoryImpl.loadJar(AbstractRepositoryImpl.java:115)
>>>>
>>>> at
>>>> com.sun.enterprise.module.common_impl.DirectoryBasedRepository.loadModuleDefs(DirectoryBasedRepository.java:89)
>>>>
>>>> ... 7 more
>>>> Caused by: java.util.zip.ZipException: No such file or directory
>>>> at java.util.zip.ZipFile.open(Native Method)
>>>> at java.util.zip.ZipFile.<init>(ZipFile.java:203)
>>>> at java.util.jar.JarFile.<init>(JarFile.java:132)
>>>> at java.util.jar.JarFile.<init>(JarFile.java:97)
>>>> at
>>>> com.sun.enterprise.module.common_impl.Jar$Archive.<init>(Jar.java:125)
>>>> ... 13 more
>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
>>>> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
>>> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
>> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>