When you replace the dom4j that comes with this version of JBoss AS
with the latest dom4j (1.6.1), you get the following error when the AS
is starting up:
Exception in thread "main" java.lang.NoClassDefFoundError:
org/dom4j/Element
at java.lang.Class.getDeclaredConstructors0(Native Method)
at
java.lang.Class.privateGetDeclaredConstructors(Class.java:2388)
at java.lang.Class.getConstructor0(Class.java:2698)
at java.lang.Class.newInstance0(Class.java:326)
at java.lang.Class.newInstance(Class.java:308)
at
org.jboss.mx.modelmbean.RequiredModelMBeanInstantiator.instantiate(RequiredModelMBeanInstantiator.java:37)
at
org.jboss.mx.server.MBeanServerImpl.<init>(MBeanServerImpl.java:205)
at
org.jboss.mx.server.MBeanServerBuilderImpl.newMBeanServer(MBeanServerBuilderImpl.java:56)
at
javax.management.MBeanServerFactory.newMBeanServer(MBeanServerFactory.java:310)
at
javax.management.MBeanServerFactory.createMBeanServer(MBeanServerFactory.java:213)
at
org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:388)
at
org.jboss.system.server.ServerImpl.start(ServerImpl.java:330)
at org.jboss.Main.boot(Main.java:187)
at org.jboss.Main$1.run(Main.java:438)
at java.lang.Thread.run(Thread.java:619)
Press any key to continue . . .
Does anyone know how to resolve this? My application is built with that
version of dom4j so the fix needs to be on the JBoss AS side.
Funny thing is that viewing the JAR, the class it's complaining about
exists in the correct directory. I don't know why it won't use it. I'll
appreciate any help.
Vitaly - 31 Dec 2006 15:04 GMT
I have found a problem in Java 1.6.1 with native methods registration. May
be you have the same problem.
See http://forum.java.sun.com/thread.jspa?threadID=5117849&tstart=0
Regards,
Vitaly Shelest
> When you replace the dom4j that comes with this version of JBoss AS
> with the latest dom4j (1.6.1), you get the following error when the AS
[quoted text clipped - 32 lines]
> exists in the correct directory. I don't know why it won't use it. I'll
> appreciate any help.
I'm protected by SpamBrave
http://www.spambrave.com/