[jboss-user] [Installation, Configuration & Deployment] - Class not found

chrismalan do-not-reply at jboss.com
Wed Dec 27 07:25:39 EST 2006


There is a utility class (UsernamePasswordHandler) in the war container.  It is used for log-ins.  When instantiated from any class in the war container, things are fine.  

However, when the only class in the jar container that needs it tries to instantiate it, a java.lang.NoClassDefFoundError exception is thrown.

The package structure is as for EJB3, a war and a jar inside an ear.

The UsernamePasswordHandler is not mentioned in the web.xml - I don't know if this is relevant.

The jboss-app.xml looks like this:
<jboss-app>
  |   <loader-repository>
  |     transportsite:app=ejb3
  |   </loader-repository>
  | </jboss-app>

Any idea how to solve this problem that seems to be class loader related?

As an aside, the time and dates displayed by the console as JBoss starts up are all 11 hours behind. Same for the log files. That safely places it in one of the USA time zones.  I am in Aussie.  The system time is correct.  Is this a JBoss problem, a log4j problem or a Java problem?  Any idea how to fix it? There is a timer which which needs times.  Subtracting 11 hours from the time the timer should fire makes things work, but that is not really the way to go.

Thanks for any help.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3996434#3996434

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3996434



More information about the jboss-user mailing list