Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / Tools / December 2006

Tip: Looking for answers? Try searching our database.

JBoss 4.0.3SP1 Startup Error With dom4j 1.6.1

Thread view: 
Jubz - 15 Dec 2006 22:35 GMT
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/


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.