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

    EJB hot deploy libs not in class path.

    tmpnfl

      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/
      commons-beanutils-1.7.jar
      commons-logging-api-1.0.4.jar
      commons-collections-3.1.jar
      commons-digester-1.6.jar
      commons-logging-1.0.4.jar
      log4j-1.2.8.jar
      itext-1.2.jar
      jasperreports-0.6.5.jar

      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
      jasperreports-0.6.5
      quartz-1.4.5

      Thanks in advance. :)