1 Reply Latest reply on Apr 4, 2005 12:48 PM by mee meeeee

    EJB hot deploy libs not in class path.

    mee meeeee Newbie

      Hi I have recently done an upgrade from 3.2.3 of JBoss to 4.0.1.
      I have noticed that in the new version my EJB will no longer hot deploy.
      I get loads of 'java.lang.NoClassDefFoundError' errors.
      I need to include all of libs which were packaged inside my EJB .jar file's META-INF directory in the <JBOSS_HOME>/server//lib directory

      I found a suggestion in http://www.jboss.org/index.html?module=bb&op=viewtopic&t=8981 setting the classpatheextension in jboss.conf might work for me also though I would like to just drop the .jar in the deploy directory and have it deploy with all it's config and libs. I also use Quartz and hibernate so maybe I am getting confused with them needing the libs and not my application.

      Another less serious but similar off topic issue is, I recently added jasper reports to my EJB tier and to get it to run I had to add -Djava.awt.headless=true to my java options(

      System.setProperty("java.awt.headless", "true");
      didn't seem to work).
      I also had to put the following libs in <JAVA_HOME>/jre/lib/ext/

      I assume I have to live with this ?
      I tried packaging up these in a separate jar and putting them in <JAVA_HOME>/jre/lib/ext/ but it didn't work. I may repackage them and the EJB ones so it's easier to deploy from scratch *shrug*.

      I am running:
      Linux Debian stable 2.4.x kernel.
      jboss 4.0.1sp1
      Sun j2sdk1.4.2_07

      Thanks in advance. :)