dev@glassfish.java.net

Server startup

From: Daniel Dumitrescu <dumitrescu.daniel_at_gmail.com>
Date: Thu, 25 Aug 2005 11:03:16 +0300

Hi

During the server startup (and having the default domain name,
domain1) a NullPointerException is thrown:

[#|2005-08-25T10:30:12.985+0300|WARNING|sun-appserver-pe9.0|javax.enterprise.system.core|_ThreadID=10;|Exception
occurred while satisfying optional package dependencies : {0}
java.lang.NullPointerException
        at com.sun.enterprise.deployment.backend.OptionalPkgDependency.satisfyOptionalPackageDependencies(OptionalPkgDependency.java:149)
        at com.sun.enterprise.server.J2EEServer.run(J2EEServer.java:260)
        at com.sun.enterprise.server.J2EEServer.main(J2EEServer.java:396)
        at com.sun.enterprise.server.ApplicationServer.onInitialization(ApplicationServer.java:258)
        at com.sun.enterprise.server.ondemand.OnDemandServer.onInitialization(OnDemandServer.java:91)
        at com.sun.enterprise.server.PEMain.run(PEMain.java:302)
        at com.sun.enterprise.server.PEMain.main(PEMain.java:246)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at com.sun.enterprise.server.PELaunch.main(PELaunch.java:202)
|#]


because in the /publish/glassfish/derby/lib directory resides a WAR
file, derby.war which has no manifest file.

I think that a possible solution to this error is to test the local
manifest variable (from the satisfyOptionalPackageDependencies()
method ) to see if is not null, then put the dependency's name in the
optionalPackageStore variable

Daniel