users@glassfish.java.net

Re: Loading log util bundle before the rest

From: <forums_at_java.net>
Date: Tue, 12 Jul 2011 05:50:54 -0500 (CDT)

[quote=Sahoo]I thought your initial requirement was to just install and start
some bundles before any other bundles.[/quote]

That's right, and besides that these bundles should be located in
auto-deployable folder.

[quote=Sahoo]Why can't you deploy rest of your bundles in
domain1/autodeploy/bundles/[/quote]

Do you mean that I should configure log4j bundles in configure.properties,
put them in "modules/autostart", and the rest in
"domain1/autodeploy/bundles"? 

I tried to do this, but I get an exception as a result:

[#|2011-07-12T13:43:52.679+0300|INFO|glassfish3.1|org.jvnet.hk2.osgiadapter|_ThreadID=17;_ThreadName=Thread-6;|Stopping
com.sun.enterprise.v3.server.AppServerStartup_at_1896415|#]
[#|2011-07-12T13:43:52.679+0300|SEVERE|glassfish3.1|org.glassfish.kernel.event.EventsImpl|_ThreadID=17;_ThreadName=Thread-6;|The
log message is null.
java.lang.LinkageError: loader constraint violation: loader (instance of
org/apache/felix/framework/ModuleImpl$ModuleClassLoaderJava5) previously
initiated loading for a different type with name
"org/glassfish/api/event/EventListener$Event"
    at java.lang.Class.getDeclaredMethods0(Native Method)
    at java.lang.Class.privateGetDeclaredMethods(Class.java:2427)
    at java.lang.Class.getMethod0(Class.java:2670)
    at java.lang.Class.getMethod(Class.java:1603)
    at org.glassfish.kernel.event.EventsImpl.send(EventsImpl.java:93)
    at
com.sun.enterprise.v3.server.AppServerStartup.stop(AppServerStartup.java:389)
    at org.jvnet.hk2.osgiadapter.HK2Main.stop(HK2Main.java:211)
    at
org.apache.felix.framework.util.SecureAction.stopActivator(SecureAction.java:651)
    at org.apache.felix.framework.Felix.stopBundle(Felix.java:2209)
    at org.apache.felix.framework.BundleImpl.stop(BundleImpl.java:958)
    at
org.glassfish.kernel.GlassFishActivator.stopBundle(GlassFishActivator.java:263)
    at
org.glassfish.kernel.GlassFishActivator.stop(GlassFishActivator.java:162)
    at
org.apache.felix.framework.util.SecureAction.stopActivator(SecureAction.java:651)
    at org.apache.felix.framework.Felix.stopBundle(Felix.java:2209)
    at
org.apache.felix.framework.Felix$RefreshHelper.stop(Felix.java:4486)
    at org.apache.felix.framework.Felix.refreshPackages(Felix.java:3578)
    at
org.apache.felix.framework.PackageAdminImpl.run(PackageAdminImpl.java:336)
    at java.lang.Thread.run(Thread.java:619)
|#]


--
[Message sent by forum member 'okna2000']
View Post: http://forums.java.net/node/819498