Jboss not reading jar files from server lib

1.8k views Asked by At

I am a bit lost at the moment in trying to determine why JBOSS is not picking up my jar files located in the server lib directory. I have checked the jboss-service.xml and it is configured to fetch jars from the server lib directory.k I am getting a java.lang.NoClassDefFoundError. I have verified the class in question is indeed in the jar file and it is located in the server lib directory.

I am trying to get Compiere working on Ubuntu 11.10. Compiere runs an older version of JBoss (4.2.3.GA) I would have to assume it some configuration I have missed as others are running this application.

2

There are 2 answers

0
boyd4715 On BEST ANSWER

There were a couple of things that caused the issue. The first one was how JBoss was binding to the IP address when started. I change the binding to -b 0.0.0.0 and this addressed issues with ports. The next was to remove an exploded ear folder from the deploy directory since there was un-exploded already present by the same name. Also it turned out that there were two jars by the same name but different classes, so removed the older one. And now all is right in the world.

0
JuanZe On

Application servers usually provide some way to debug class loading information in order to make diagnostics of this kind of problem. I know how to do it in Oracle iAS, but I don't have experience with JBoss. I suggest you to check this documentation from JBoss