3 Replies Latest reply on Sep 28, 2001 6:04 AM by Jules Gosnell

    jboss-jetty ......in jbuilder4....gives class-not-found erro

    Aqil Newbie

      i'm running jboss-jetty within jbuilder4 , but it starts with the following class-not-found error.....
      both my command-prompt and the library jbuilder uses to get jboss-jetty running is also shown below....actually the tutorial in doc is for jboss-tomcat.....but i added jetty jars in place of tomcat....so there is possibility of missing jars.....one other thing i want to mention is that...there are up/down buttons in the jboss_library.library configration dialog box....so order does matter in such libraries....so there is a chance of some wrong order..........but the possiblites of changing order r infinite..(approx ...;).....)......so only the person having knowledge of the inner working can tell the right order.....plz reply....



      =============jboss_library.library============
      <?xml version="1.0" encoding="UTF-8"?>


      <!--JBuilder Library Definition File-->
      jboss_library

      [../../../Jetty/JBoss-2.2.2_Jetty-3.1.RC5/jboss/lib/crimson.jar]
      [../../../Jetty/JBoss-2.2.2_Jetty-3.1.RC5/jboss/bin/run.jar]
      ../../../Jetty/JBoss-2.2.2_Jetty-3.1.RC5/jboss/bin
      ../../../Jetty/JBoss-2.2.2_Jetty-3.1.RC5/jboss/conf
      [../../../Jetty/JBoss-2.2.2_Jetty-3.1.RC5/jboss/lib/jaas.jar]
      [../../../Jetty/JBoss-2.2.2_Jetty-3.1.RC5/jboss/lib/jboss-jaas.jar]
      [../../../Jetty/JBoss-2.2.2_Jetty-3.1.RC5/jboss/lib/jdbc2_0-stdext.jar]
      [../../../Jetty/JBoss-2.2.2_Jetty-3.1.RC5/jetty/lib/com.mortbay.jetty.jar]
      [../../../Jetty/JBoss-2.2.2_Jetty-3.1.RC5/jboss/lib/jmxri.jar]
      [../../../Jetty/JBoss-2.2.2_Jetty-3.1.RC5/jetty/lib/javax.servlet.jar]
      [../../../Jetty/JBoss-2.2.2_Jetty-3.1.RC5/jetty/lib/javax.xml.jaxp.jar]
      [../../../Jetty/JBoss-2.2.2_Jetty-3.1.RC5/jetty/lib/com.sun.net.ssl.jar]
      [../../../Jetty/JBoss-2.2.2_Jetty-3.1.RC5/jetty/lib/org.apache.jasper.jar]
      [../../../Jetty/JBoss-2.2.2_Jetty-3.1.RC5/jboss/lib/ext/activation.jar]
      [../../../Jetty/JBoss-2.2.2_Jetty-3.1.RC5/jboss/lib/ext/awt.jar]
      [../../../Jetty/JBoss-2.2.2_Jetty-3.1.RC5/jboss/lib/ext/dynaserver.jar]
      [../../../Jetty/JBoss-2.2.2_Jetty-3.1.RC5/jboss/lib/ext/ejb.jar]
      [../../../Jetty/JBoss-2.2.2_Jetty-3.1.RC5/jboss/lib/ext/ejxeditor.jar]
      [../../../Jetty/JBoss-2.2.2_Jetty-3.1.RC5/jboss/lib/ext/ejxejb.jar]
      [../../../Jetty/JBoss-2.2.2_Jetty-3.1.RC5/jboss/lib/ext/ejxjaws.jar]
      [../../../Jetty/JBoss-2.2.2_Jetty-3.1.RC5/jboss/lib/ext/ejxjboss.jar]
      [../../../Jetty/JBoss-2.2.2_Jetty-3.1.RC5/jboss/lib/ext/hsql.jar]
      [../../../Jetty/JBoss-2.2.2_Jetty-3.1.RC5/jboss/lib/ext/classes12.jar]
      [../../../Jetty/JBoss-2.2.2_Jetty-3.1.RC5/jboss/lib/ext/idb.jar]
      [../../../Jetty/JBoss-2.2.2_Jetty-3.1.RC5/jboss/lib/ext/jboss.jar]
      [../../../Jetty/JBoss-2.2.2_Jetty-3.1.RC5/jboss/lib/ext/jetty-service.jar]
      [../../../Jetty/JBoss-2.2.2_Jetty-3.1.RC5/jboss/lib/ext/jms.jar]
      [../../../Jetty/JBoss-2.2.2_Jetty-3.1.RC5/jboss/lib/ext/jmxtools.jar]
      [../../../Jetty/JBoss-2.2.2_Jetty-3.1.RC5/jboss/lib/ext/jndi.jar]
      [../../../Jetty/JBoss-2.2.2_Jetty-3.1.RC5/jboss/lib/ext/jnpserver.jar]
      [../../../Jetty/JBoss-2.2.2_Jetty-3.1.RC5/jboss/lib/ext/jpl-util-0_5b.jar]
      [../../../Jetty/JBoss-2.2.2_Jetty-3.1.RC5/jboss/lib/ext/jta-spec1_0_1.jar]
      [../../../Jetty/JBoss-2.2.2_Jetty-3.1.RC5/jboss/lib/ext/mail.jar]
      [../../../Jetty/JBoss-2.2.2_Jetty-3.1.RC5/jboss/lib/ext/tomcat-service.jar]
      [../../../Jetty/JBoss-2.2.2_Jetty-3.1.RC5/jboss/lib/ext/jbossmq.jar]
      ../../../Jetty/JBoss-2.2.2_Jetty-3.1.RC5/jboss/db
      ../../../Jetty/JBoss-2.2.2_Jetty-3.1.RC5/jboss/conf/jetty
      [../../../Jetty/JBoss-2.2.2_Jetty-3.1.RC5/jboss/lib/ext/log4j.jar]
      ../../../Jetty/JBoss-2.2.2_Jetty-3.1.RC5/jboss/log
      ../../../Jetty/JBoss-2.2.2_Jetty-3.1.RC5/jboss/tmp
      [../../../Jetty/JBoss-2.2.2_Jetty-3.1.RC5/jboss/lib/ext/jbosssx.jar]
      [../../../Jetty/JBoss-2.2.2_Jetty-3.1.RC5/jboss/lib/ext/jbosscx-0.2.jar]
      [../../../Jetty/JBoss-2.2.2_Jetty-3.1.RC5/jboss/lib/ext/connector.jar]
      [../../../Jetty/JBoss-2.2.2_Jetty-3.1.RC5/jboss/lib/ext/minerva-1_0b3.jar]


      ../../../Jetty/JBoss-2.2.2_Jetty-3.1.RC5/jboss/src







      ================Command Prompt===============
      C:\JBuilder4\jdk1.3\bin\javaw -classic -classpath "C:\Documents and Settings\Aqil1\myFinalJbossIntegration2\classes;C:\Jetty\JBoss-2.2.2_Jetty-3.1.RC5\jboss\lib\crimson.jar;C:\Jetty\JBoss-2.2.2_Jetty-3.1.RC5\jboss\bin\run.jar;C:\Jetty\JBoss-2.2.2_Jetty-3.1.RC5\jboss\bin;C:\Jetty\JBoss-2.2.2_Jetty-3.1.RC5\jboss\conf;C:\Jetty\JBoss-2.2.2_Jetty-3.1.RC5\jboss\lib\jaas.jar;C:\Jetty\JBoss-2.2.2_Jetty-3.1.RC5\jboss\lib\jboss-jaas.jar;C:\Jetty\JBoss-2.2.2_Jetty-3.1.RC5\jboss\lib\jdbc2_0-stdext.jar;C:\Jetty\JBoss-2.2.2_Jetty-3.1.RC5\jetty\lib\com.mortbay.jetty.jar;C:\Jetty\JBoss-2.2.2_Jetty-3.1.RC5\jboss\lib\jmxri.jar;C:\Jetty\JBoss-2.2.2_Jetty-3.1.RC5\jetty\lib\javax.servlet.jar;C:\Jetty\JBoss-2.2.2_Jetty-3.1.RC5\jetty\lib\javax.xml.jaxp.jar;C:\Jetty\JBoss-2.2.2_Jetty-3.1.RC5\jetty\lib\com.sun.net.ssl.jar;C:\Jetty\JBoss-2.2.2_Jetty-3.1.RC5\jetty\lib\org.apache.jasper.jar;C:\Jetty\JBoss-2.2.2_Jetty-3.1.RC5\jboss\lib\ext\activation.jar;C:\Jetty\JBoss-2.2.2_Jetty-3.1.RC5\jboss\lib\ext\awt.jar;C:\Jetty\JBoss-2.2.2_Jetty-3.1.RC5\jboss\lib\ext\dynaserver.jar;C:\Jetty\JBoss-2.2.2_Jetty-3.1.RC5\jboss\lib\ext\ejb.jar;C:\Jetty\JBoss-2.2.2_Jetty-3.1.RC5\jboss\lib\ext\ejxeditor.jar;C:\Jetty\JBoss-2.2.2_Jetty-3.1.RC5\jboss\lib\ext\ejxejb.jar;C:\Jetty\JBoss-2.2.2_Jetty-3.1.RC5\jboss\lib\ext\ejxjaws.jar;C:\Jetty\JBoss-2.2.2_Jetty-3.1.RC5\jboss\lib\ext\ejxjboss.jar;C:\Jetty\JBoss-2.2.2_Jetty-3.1.RC5\jboss\lib\ext\hsql.jar;C:\Jetty\JBoss-2.2.2_Jetty-3.1.RC5\jboss\lib\ext\classes12.jar;C:\Jetty\JBoss-2.2.2_Jetty-3.1.RC5\jboss\lib\ext\idb.jar;C:\Jetty\JBoss-2.2.2_Jetty-3.1.RC5\jboss\lib\ext\jboss.jar;C:\Jetty\JBoss-2.2.2_Jetty-3.1.RC5\jboss\lib\ext\jetty-service.jar;C:\Jetty\JBoss-2.2.2_Jetty-3.1.RC5\jboss\lib\ext\jms.jar;C:\Jetty\JBoss-2.2.2_Jetty-3.1.RC5\jboss\lib\ext\jmxtools.jar;C:\Jetty\JBoss-2.2.2_Jetty-3.1.RC5\jboss\lib\ext\jndi.jar;C:\Jetty\JBoss-2.2.2_Jetty-3.1.RC5\jboss\lib\ext\jnpserver.jar;C:\Jetty\JBoss-2.2.2_Jetty-3.1.RC5\jboss\lib\ext\jpl-util-0_5b.jar;C:\Jetty\JBoss-2.2.2_Jetty-3.1.RC5\jboss\lib\ext\jta-spec1_0_1.jar;C:\Jetty\JBoss-2.2.2_Jetty-3.1.RC5\jboss\lib\ext\mail.jar;C:\Jetty\JBoss-2.2.2_Jetty-3.1.RC5\jboss\lib\ext\tomcat-service.jar;C:\Jetty\JBoss-2.2.2_Jetty-3.1.RC5\jboss\lib\ext\jbossmq.jar;C:\Jetty\JBoss-2.2.2_Jetty-3.1.RC5\jboss\db;C:\Jetty\JBoss-2.2.2_Jetty-3.1.RC5\jboss\conf\jetty;C:\Jetty\JBoss-2.2.2_Jetty-3.1.RC5\jboss\lib\ext\log4j.jar;C:\Jetty\JBoss-2.2.2_Jetty-3.1.RC5\jboss\log;C:\Jetty\JBoss-2.2.2_Jetty-3.1.RC5\jboss\tmp;C:\Jetty\JBoss-2.2.2_Jetty-3.1.RC5\jboss\lib\ext\jbosssx.jar;C:\Jetty\JBoss-2.2.2_Jetty-3.1.RC5\jboss\lib\ext\jbosscx-0.2.jar;C:\Jetty\JBoss-2.2.2_Jetty-3.1.RC5\jboss\lib\ext\connector.jar;C:\Jetty\JBoss-2.2.2_Jetty-3.1.RC5\jboss\lib\ext\minerva-1_0b3.jar;C:\Jetty\jakarta-ant-1.4\bin;C:\JBuilder4\jdk1.3\demo\jfc\Java2D\Java2Demo.jar;C:\JBuilder4\jdk1.3\jre\lib\i18n.jar;C:\JBuilder4\jdk1.3\jre\lib\jaws.jar;C:\JBuilder4\jdk1.3\jre\lib\rt.jar;C:\JBuilder4\jdk1.3\jre\lib\sunrsasign.jar;C:\JBuilder4\jdk1.3\lib\dt.jar;C:\JBuilder4\jdk1.3\lib\tools.jar" -Djetty.home="C:\Jetty\JBOSS-~1.RC5\jboss\bin" -Duser.dir="C:\Jetty\JBOSS-~1.RC5\jboss\bin" -Djavax.xml.parsers.SAXParserFactory=org.apache.crimson.jaxp.SAXParserFactoryImpl -Djavax.xml.parsers.DocumentBuilderFactory=org.apache.crimson.jaxp.DocumentBuilderFactoryImpl org.jboss.Main jetty
      jboss.home = C:\Jetty\JBoss-2.2.2_Jetty-3.1.RC5\jboss

      Using JAAS LoginConfig: file:/C:/Jetty/JBoss-2.2.2_Jetty-3.1.RC5/jboss/conf/jetty/auth.conf

      Using configuration "jetty"

      Please make sure the following is intended (check your CLASSPATH):

      jndi.properties is read from file:/C:/Jetty/JBoss-2.2.2_Jetty-3.1.RC5/jboss/conf/jetty/jndi.properties

      [Info] Java version: 1.3.0,Sun Microsystems Inc.

      [Info] Java VM: Classic VM 1.3.0-C,Sun Microsystems Inc.

      [Info] System: Windows 2000 5.0,x86

      [Shutdown] Shutdown hook added

      [Service Control] Registered with server

      [Jetty] JBoss and Jetty Log models connected

      [Jetty] setConfiguration() is deprecated - use addConfiguration()

      [Jetty] adding Configuration file:../conf/jetty/jetty.xml

      [Service Control] Initializing 28 MBeans

      [Webserver] Initializing

      [Webserver] Initialized

      [Naming] Initializing

      [Naming] Initialized

      [JNDIView] Initializing

      [JNDIView] Initialized

      [Transaction manager] Initializing

      [Transaction manager] Initialized

      [JAAS Security Manager] Initializing

      [JAAS Security Manager] Initialized

      [JDBC provider] Initializing

      [JDBC provider] Loaded JDBC-driver:oracle.jdbc.driver.OracleDriver

      [JDBC provider] Loaded JDBC-driver:org.hsql.jdbcDriver

      [JDBC provider] Loaded JDBC-driver:org.enhydra.instantdb.jdbc.idbDriver

      [JDBC provider] Initialized

      [OracleDB] Initializing

      [OracleDB] Initialized

      [Hypersonic] Initializing

      [Hypersonic] Initialized

      [InstantDB] Initializing

      [InstantDB] Initialized

      [DefaultDS] Initializing

      [DefaultDS] Initialized

      [Container factory] Initializing

      [Container factory] Initialized

      [JBossMQ] Initializing

      [JBossMQ] Initialized

      [DefaultJMSProvider] Initializing

      [DefaultJMSProvider] Initialized

      [StdJMSPool] Initializing

      [StdJMSPool] Initialized

      [J2EE Deployer Default] Initializing

      [J2EE Deployer Default] Initialized

      [Auto deploy] Initializing

      [Auto deploy] Initialized

      [RARDeployer] Initializing

      [RARDeployer] Initialized

      [ConnectionManagerFactoryLoader] Initializing

      [MinervaNoTransCMFactory] Initialized

      [ConnectionManagerFactoryLoader] Initializing

      [MinervaSharedLocalCMFactory] Initialized

      [ConnectionManagerFactoryLoader] Initializing

      [MinervaXACMFactory] Initialized

      [ConnectionFactoryLoader] Initializing

      [BlackBoxDS] Initialized

      [JMX RMI Adaptor] Initializing

      [JMX RMI Adaptor] Initialized

      [JMX RMI Connector] Initializing

      [JMX RMI Connector] Initialized

      [Mail Service] Initializing

      [Mail Service] Initialized

      [Jetty] Initializing

      [Jetty] successfully loaded properties

      [Jetty] setting jettyHome to C:\Jetty\JBoss-2.2.2_Jetty-3.1.RC5\jetty

      [Jetty] setting webDefault to C:\Jetty\JBoss-2.2.2_Jetty-3.1.RC5\jetty/etc/webdefault.xml

      [Jetty] Jetty instantiated and initialised


      [Default] java.lang.NoClassDefFoundError: com/mortbay/Jetty/JMX/HttpServerMBean

      [Default] at java.lang.ClassLoader.defineClass0(Native Method)

      [Default] at java.lang.ClassLoader.defineClass(ClassLoader.java:486)

      [Default] at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:111)

      [Default] at java.net.URLClassLoader.defineClass(URLClassLoader.java:248)

      [Default] at java.net.URLClassLoader.access$100(URLClassLoader.java:56)

      [Default] at java.net.URLClassLoader$1.run(URLClassLoader.java:195)

      [Default] at java.security.AccessController.doPrivileged(Native Method)

      [Default] at java.net.URLClassLoader.findClass(URLClassLoader.java:188)

      [Default] at java.lang.ClassLoader.loadClass(ClassLoader.java:297)

      [Default] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:286)

      [Default] at java.lang.ClassLoader.loadClass(ClassLoader.java:253)

      [Default] at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)

      [Default] at

      [Default] at org.jboss.jetty.JettyService.ensureService(JettyService.java:239)

      [Default] at org.jboss.jetty.JettyService.initService(JettyService.java:282)

      [Default] at org.jboss.util.ServiceMBeanSupport.init(ServiceMBeanSupport.java:67)

      [Default] at java.lang.reflect.Method.invoke(Native Method)

      [Default] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)

      [Default] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)

      [Default] at org.jboss.util.ServiceControl.init(ServiceControl.java:59)

      [Default] at java.lang.reflect.Method.invoke(Native Method)

      [Default] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)

      [Default] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)[Jetty] Checking Resource aliases



      [Default] at org.jboss.Main.(Main.java:216)

      [Default] at org.jboss.Main$1.run(Main.java:121)

      [Default] at java.security.AccessController.doPrivileged(Native Method)

      [Default] at org.jboss.Main.main(Main.java:117)

        • 1. Re: jboss-jetty ......in jbuilder4....gives class-not-found
          Jules Gosnell Novice

          looking at the jars that you are loading - I see no reference to any in the jetty or jetty-extra/jmx directories.

          Are they correctly configured ?


          Jules

          • 2. Re: jboss-jetty ......in jbuilder4....gives class-not-found
            Aqil Newbie

            i only added the following jars from jetty as mentioned in the above .library file , what other jar files u r referring to ?.......there is one jmx directory in jetty which is empty .....plz post your .library file if u have dont this without any error....
            ==========================================
            [../../../Jetty/JBoss-2.2.2_Jetty-3.1.RC5/jetty/lib/com.mortbay.jetty.jar]
            [../../../Jetty/JBoss-2.2.2_Jetty-3.1.RC5/jetty/lib/javax.servlet.jar]
            [../../../Jetty/JBoss-2.2.2_Jetty-3.1.RC5/jetty/lib/javax.xml.jaxp.jar]
            [../../../Jetty/JBoss-2.2.2_Jetty-3.1.RC5/jetty/lib/com.sun.net.ssl.jar]
            [../../../Jetty/JBoss-2.2.2_Jetty-3.1.RC5/jetty/lib/org.apache.jasper.jar]
            ==========================================

            • 3. Re: jboss-jetty ......in jbuilder4....gives class-not-found
              Jules Gosnell Novice

              bash-2.02$ ls JBoss-2.4.1_Jetty-3.1.1-1/jetty-jmx/lib/
              jmxri.jar jmxtools.jar org.mortbay.jetty.jmx.jar
              bash-2.02$

              You will certainly need the org.mortbay.jetty.jmx.jar.

              I don't use JBuilder - so I can't post you a file.

              Jules


              P.S.

              if a class with mortbay in it's package is not found, do a jar tvf of all jars in jett or jetty-jmx til you find it, then make sure you include that jar - simple !