0 Replies Latest reply on Jul 7, 2003 1:36 PM by Temple Cloud

    Problems configuring JBoss4.0r2

    Temple Cloud Newbie

      Hello All,

      I have upgraded to JBoss4r2 to check it out, and am having some problems... Some simple test beans that run under my system using JBoss3.2.1, now fail. I recieve this error on calling a lookup from my client

      Object obj3 = ctx.lookup("DetermineSourceMetaDataHome")

      causes:

      [java] java.lang.NoClassDefFoundError: org/jboss/system/ServiceMBeanSupport
      [java] at java.lang.ClassLoader.defineClass0(Native Method)
      [java] at java.lang.ClassLoader.defineClass(ClassLoader.java:502)
      [java] at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
      [java] at java.net.URLClassLoader.defineClass(URLClassLoader.java:250)
      [java] at java.net.URLClassLoader.access$100(URLClassLoader.java:54)
      [java] at java.net.URLClassLoader$1.run(URLClassLoader.java:193)
      [java] at java.security.AccessController.doPrivileged(Native Method)
      [java] at java.net.URLClassLoader.findClass(URLClassLoader.java:186)
      [java] at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
      [java] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:265)
      [java] at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
      [java] at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315)
      [java] at java.lang.ClassLoader.defineClass0(Native Method)
      [java] at java.lang.ClassLoader.defineClass(ClassLoader.java:502)
      [java] at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
      [java] at java.net.URLClassLoader.defineClass(URLClassLoader.java:250)
      [java] at java.net.URLClassLoader.access$100(URLClassLoader.java:54)
      [java] at java.net.URLClassLoader$1.run(URLClassLoader.java:193)
      [java] at java.security.AccessController.doPrivileged(Native Method)
      [java] at java.net.URLClassLoader.findClass(URLClassLoader.java:186)
      [java] at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
      [java] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:265)
      [java] at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
      [java] at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315)
      [java] at java.lang.Class.forName0(Native Method)
      [java] at java.lang.Class.forName(Class.java:217)
      [java] at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:147)
      [java] at java.rmi.server.RMIClassLoader$2.loadClass(RMIClassLoader.java:631)
      [java] at java.rmi.server.RMIClassLoader.loadClass(RMIClassLoader.java:257)
      [java] at sun.rmi.server.MarshalInputStream.resolveClass(MarshalInputStream.java:200)
      [java] at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1513)
      [java] at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1435)
      [java] at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1626)
      [java] at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
      [java] at java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
      [java] at java.util.HashMap.readObject(HashMap.java:986)
      [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      [java] at java.lang.reflect.Method.invoke(Method.java:324)
      [java] at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:824)
      [java] at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1746)
      [java] at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1646)
      [java] at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
      [java] at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1845)
      [java] at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1769)
      [java] at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1646)
      [java] at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
      [java] at java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
      [java] at org.jboss.proxy.ClientContainer.readExternal(ClientContainer.java:113)
      [java] at java.io.ObjectInputStream.readExternalData(ObjectInputStream.java:1686)
      [java] at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1644)
      [java] at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
      [java] at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1845)
      [java] at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1769)
      [java] at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1646)
      [java] at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
      [java] at java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
      [java] at java.rmi.MarshalledObject.get(MarshalledObject.java:135)
      [java] at org.jnp.interfaces.MarshalledValuePair.get(MarshalledValuePair.java:30)
      [java] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:522)
      [java] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:479)
      [java] at javax.naming.InitialContext.lookup(InitialContext.java:347)
      [java] at edam.edam_client.TestClient.main(TestClient.java:51)
      [java] Exception in thread "main"

      Under 3.2.1 this does not occur


      The only warnings I get on starting the JBoss server are:

      17:24:58,238 WARN [JkMain] No properties file found C:\JBoss\jboss-4.0.0DR2\server\conf\jk2.properties

      and related messages such as:

      17:25:03,636 WARN [EmbeddedCatalinaService41] Unable to invoke setDelegate on class loader:java.net.FactoryURLClassLoader@1562c67

      Are these warning important?
      Also when the Bean are being deloyed the console displays this information:

      17:25:29,693 INFO [MainDeployer] Starting deployment of package: file:/C:/JBoss/jboss-4.0.0DR2/server/default/deploy/Test.jar
      17:25:30,194 INFO [EjbModule] Deploying Test
      17:25:30,825 INFO [EjbModule] Deploying DetermineSourceMetaData
      17:25:30,905 INFO [EjbModule] Started jboss.j2ee:module=Test.jar,service=EjbModule
      17:25:30,905 INFO [TxInterceptorCMT] Setting TxSupport map for container: org.jboss.ejb.StatelessSessionContainer@16a7c99
      17:25:30,955 INFO [StatelessSessionInstancePool] Started null
      17:25:30,955 INFO [StatelessSessionContainer] Started jboss.j2ee:jndiName=DetermineSourceMetaDataHome,service=EJB
      17:25:30,955 INFO [TxInterceptorCMT] Setting TxSupport map for container: org.jboss.ejb.StatefulSessionContainer@1860045
      17:25:30,985 INFO [StatefulSessionInstancePool] Started null
      17:25:30,985 INFO [StatefulSessionFilePersistenceManager] Started null
      17:25:30,985 INFO [StatefulSessionContainer] Started jboss.j2ee:jndiName=TestHome,service=EJB
      17:25:31,015 INFO [MainDeployer] Deployed package: file:/C:/JBoss/jboss-4.0.0DR2/server/default/deploy/Test.jar
      17:25:31,015 INFO [EJBDeployer] Started jboss.ejb:service=EJBDeployer
      17:25:31,015 INFO [XSLSubDeployer] Started jboss.ejb:service=ActivationSpecDeployer
      17:25:31,135 INFO [MainDeployer] Deployed package: file:/C:/JBoss/jboss-4.0.0DR2/server/default/conf/jboss-service.xml

      What does
      [StatefulSessionFilePersistenceManager] Started null
      mean?

      I am used to seeing some sort of start up infomraiton here... Is this an error, or new to JBoss4?

      As I mentioned, the beans deployed work under JBoss3.2.1 using Jetty... I am new to JBoss and expect this is a configuration problem, as it works with JBoss3.2.1... If someone could help me with this I would be most greatfull...

      cheers

      Tem

      PS Sorry for the long mail!