This content has been marked as final.
Show 5 replies
-
1. Re: java2ParentDelegation does not work
jaikiran Jan 9, 2009 6:16 AM (in response to bemar)Which version of JBossAS? And where exactly have you placed the jar file in the EAR? What does your application.xml look like?
Furthermore, this entry in the jboss-app.xml, doesn't look right to me:<module> <service>Cron.jar</service> </module>
What type of jar is the the Cron.jar? Just a jar file containing utility classes? You can place such jars in EAR/lib folder without having to make any entry in application.xml nor jboss-app.xml -
2. Re: java2ParentDelegation does not work
bemar Jan 12, 2009 10:53 AM (in response to bemar)"jaikiran" wrote:
Which version of JBossAS? And where exactly have you placed the jar file in the EAR? What does your application.xml look like?
Its Jboss 4.2.2 GA.
The TestLoad JAR is in the Cron.jar. The Cron.jar is in the ear.
The posted xml is the jboss-app.xml or do you mean another xml?
In the ear file in the meta-inf folder is a application.xml file but it has the same content like the jboss-app.xml.
Furthermore, this entry in the jboss-app.xml, doesn't look right to me:<module> <service>Cron.jar</service> </module>
Hmm. But it works ...
What type of jar is the the Cron.jar? Just a jar file containing utility classes?
In the cron.jar are all my classes, services and imported jars.
You can place such jars in EAR/lib folder without having to make any entry in application.xml nor jboss-app.xml -
3. Re: java2ParentDelegation does not work
bemar Jan 14, 2009 3:52 AM (in response to bemar)Does nobody else have a hint?
Thx
Ben -
4. Re: java2ParentDelegation does not work
jaikiran Jan 14, 2009 4:21 AM (in response to bemar)Try this, add -verbose:class to the run.bat (or run.conf if you are using *nix OS) to the JAVA_OPTS section. Then start your server (you will have to redirect the output to a file to avoid very verbose classloading logs). Then access your application when server is started and look at the logs. The logs will give you the information about which jar is being used to load the class.
-
5. Re: java2ParentDelegation does not work
bemar Jan 14, 2009 5:32 AM (in response to bemar)Got the following loggings:
11:20:40,514 DEBUG [SARDeployer] deployed classes for file:/C:/Programme/jboss-4.2.2.GA/server/default/lib/TestLoad_2.0.jar
...
...
11:20:42,139 DEBUG [RepositoryClassLoader] Added url: file:/C:/Programme/jboss-4.2.2.GA/server/default/lib/TestLoad_2.0.jar, to ucl: org.jboss.mx.loading.UnifiedClassLoader3@384065{ url=null ,addedOrder=2}
...
...
Nothing about TestLoad_1.0.jar which is directly in the Cron.jar