tags:

views:

58

answers:

1

I have a jboss service. I try to load a class from different jar file, it always gives in BEA jdk1.5. It works fine sun jdk1.6. Any clue? I have a archive in abcd.sar which calls a Schedulable class from xyz.jar. So far fine. When I try instantiate a class (by new or reflection) from another jar file I get ClassNotFoundException. The jar files are in the lib folder.

+3  A: 

There was an issue in early 5.0 https://jira.jboss.org/browse/JBAS-5900 which did not occur in version 4.x

I usually use the web console to check how hard jboss was trying to find fhe class. In some cases I had to define a loader repository (applies to ear).

In other cases I put the shared jar in jboss_home/server/default/lib.

stacker