[jboss-user] [JNDI/Naming/Network] - Re: Lookup error [Jboss 3.2.5 >> 4.2.2]

aaraujo do-not-reply at jboss.com
Mon Nov 10 12:56:34 EST 2008


"PeterJ" wrote : The high-level answer is that your client and the server need to be using the same versions of the classes that are being serialized and transferred. To do this, you need to package the  jboss422/lib/jboss-common.jar into your application. You will have to set up a loader repository so that you app will use this jar file instead of the one that comes with jboss325.

Hi,

I have tried to package jboss-common.jar in my application A and configured classloader parameters, but now I'm getting another error, probably because Jboss 4.2.2' classes are compiled on Java 1.5 and Jboss 3.2.5 runs on Java 1.4.

2008-11-09 19:19:38,366 INFO  [STDOUT] java.lang.UnsupportedClassVersionError: org/jnp/interfaces/Naming (Unsupported major.minor version 49.0)
  | 2008-11-09 19:19:38,366 INFO  [STDOUT] 	at java.lang.ClassLoader.defineClass0(Native Method)
  | 2008-11-09 19:19:38,366 INFO  [STDOUT] 	at java.lang.ClassLoader.defineClass(ClassLoader.java:539)
  | 2008-11-09 19:19:38,366 INFO  [STDOUT] 	at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
  | 2008-11-09 19:19:38,366 INFO  [STDOUT] 	at java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
  | 2008-11-09 19:19:38,366 INFO  [STDOUT] 	at java.net.URLClassLoader.access$100(URLClassLoader.java:55)
  | 2008-11-09 19:19:38,366 INFO  [STDOUT] 	at java.net.URLClassLoader$1.run(URLClassLoader.java:194)
  | 2008-11-09 19:19:38,366 INFO  [STDOUT] 	at java.security.AccessController.doPrivileged(Native Method)
  | 2008-11-09 19:19:38,366 INFO  [STDOUT] 	at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
  | 2008-11-09 19:19:38,366 INFO  [STDOUT] 	at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
  | 2008-11-09 19:19:38,366 INFO  [STDOUT] 	at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
  | 2008-11-09 19:19:38,366 INFO  [STDOUT] 	at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
  | 2008-11-09 19:19:38,366 INFO  [STDOUT] 	at java.lang.ClassLoader.defineClass0(Native Method)
  | 2008-11-09 19:19:38,366 INFO  [STDOUT] 	at java.lang.ClassLoader.defineClass(ClassLoader.java:539)
  | 2008-11-09 19:19:38,366 INFO  [STDOUT] 	at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
  | 2008-11-09 19:19:38,366 INFO  [STDOUT] 	at java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
  | 2008-11-09 19:19:38,366 INFO  [STDOUT] 	at java.net.URLClassLoader.access$100(URLClassLoader.java:55)
  | 

Any clue?

Tks

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

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



More information about the jboss-user mailing list