Skip to main content



      Home
Home » Language IDEs » ServerTools (WTP) » Deploymentdescriptor works only with JBoss4.0
Deploymentdescriptor works only with JBoss4.0 [message #115996] Mon, 04 July 2005 16:23 Go to next message
Eclipse UserFriend
the problem I posted to this group (ejb-jar.xml must define a valid
DOCTYPE)only appears in JBoss 3.x. If I deploy the jar-file of the
tutorial on jboss 4.0.0 everything is ok. It seems that JBoss 3.x cannot
handle xml-Schema-Definitions. But if It try to start JBoss 4.0.0 from
eclipse 3.1 the following error happens while starting the server:

22:00:37,765 ERROR [BasicMBeanRegistry] Cannot register MBean
java.lang.NoClassDefFoundError: org/dom4j/DocumentException
at
javax.management.modelmbean.ModelMBeanAttributeInfo.createDe faultDescriptor(ModelMBeanAttributeInfo.java:268)
at
javax.management.modelmbean.ModelMBeanAttributeInfo.<init>(ModelMBeanAttributeInfo.java:145)
at
org.jboss.mx.metadata.MBeanInfoConversion.toModelMBeanInfo(M BeanInfoConversion.java:80)
at org.jboss.mx.modelmbean.XMBean.<init>(XMBean.java:212)
at
org.jboss.mx.server.registry.BasicMBeanRegistry.registerMBea n(BasicMBeanRegistry.java:180)
at org.jboss.mx.server.MBeanServerImpl.<init>(MBeanServerImpl.java:200)
at
org.jboss.mx.server.MBeanServerBuilderImpl.newMBeanServer(MB eanServerBuilderImpl.java:56)
at javax.management.MBeanServerFactory$2.run(MBeanServerFactory .java:226)
at java.security.AccessController.doPrivileged(Native Method)
at
javax.management.MBeanServerFactory.createMBeanServer(MBeanS erverFactory.java:221)
at
javax.management.MBeanServerFactory.createMBeanServer(MBeanS erverFactory.java:153)
at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:3 32)
at org.jboss.system.server.ServerImpl.start(ServerImpl.java:293 )
at org.jboss.Main.boot(Main.java:151)
at org.jboss.Main$1.run(Main.java:405)
at java.lang.Thread.run(Thread.java:534)
java.lang.NoClassDefFoundError: org/dom4j/Element
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Class.java:16 18)
at java.lang.Class.getConstructor0(Class.java:1930)
at java.lang.Class.newInstance0(Class.java:278)
at java.lang.Class.newInstance(Class.java:261)
at
org.jboss.mx.modelmbean.RequiredModelMBeanInstantiator.insta ntiate(RequiredModelMBeanInstantiator.java:37)
at org.jboss.mx.server.MBeanServerImpl.<init>(MBeanServerImpl.java:205)
at
org.jboss.mx.server.MBeanServerBuilderImpl.newMBeanServer(MB eanServerBuilderImpl.java:56)
at javax.management.MBeanServerFactory$2.run(MBeanServerFactory .java:226)
at java.security.AccessController.doPrivileged(Native Method)
at
javax.management.MBeanServerFactory.createMBeanServer(MBeanS erverFactory.java:221)
at
javax.management.MBeanServerFactory.createMBeanServer(MBeanS erverFactory.java:153)
at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:3 32)
at org.jboss.system.server.ServerImpl.start(ServerImpl.java:293 )
at org.jboss.Main.boot(Main.java:151)
at org.jboss.Main$1.run(Main.java:405)
at java.lang.Thread.run(Thread.java:534)

Has anyone tried to deploy "ZooBeansProject.jar" from the tutorial
successfully on JBoss?
Re: Deploymentdescriptor works only with JBoss4.0 [message #116155 is a reply to message #115996] Tue, 05 July 2005 01:11 Go to previous messageGo to next message
Eclipse UserFriend
Matthias Wagner wrote:
> the problem I posted to this group (ejb-jar.xml must define a valid
> DOCTYPE)only appears in JBoss 3.x. If I deploy the jar-file of the
> tutorial on jboss 4.0.0 everything is ok. It seems that JBoss 3.x cannot
> handle xml-Schema-Definitions.

This is due to the fact that J2EE 1.3 (JBoss 3.x) uses DTD to validate
the deployment descriptors and J2EE 1.4 (JBoss 4.x) uses schema
definitions. I think you should be able to control which (doctype or
scheme reference) gets generated by choosing the right JBoss version
from xdoclet settings.

But if It try to start JBoss 4.0.0 from
> eclipse 3.1 the following error happens while starting the server:

Your're using Java 1.4.2 or Java 1.5.0? Does JBoss 4.x start ok when you
start it from command line outside Eclipse? I've some similar stack
traces with Java 1.5.0.

> 22:00:37,765 ERROR [BasicMBeanRegistry] Cannot register MBean
> java.lang.NoClassDefFoundError: org/dom4j/DocumentException
> at
> javax.management.modelmbean.ModelMBeanAttributeInfo.createDe faultDescriptor(ModelMBeanAttributeInfo.java:268)
>
> at
> javax.management.modelmbean.ModelMBeanAttributeInfo.<init>(ModelMBeanAttributeInfo.java:145)
>
> at
> org.jboss.mx.metadata.MBeanInfoConversion.toModelMBeanInfo(M BeanInfoConversion.java:80)
>
> at org.jboss.mx.modelmbean.XMBean.<init>(XMBean.java:212)
> at
> org.jboss.mx.server.registry.BasicMBeanRegistry.registerMBea n(BasicMBeanRegistry.java:180)
>
> at org.jboss.mx.server.MBeanServerImpl.<init>(MBeanServerImpl.java:200)
> at
> org.jboss.mx.server.MBeanServerBuilderImpl.newMBeanServer(MB eanServerBuilderImpl.java:56)
>
> at
> javax.management.MBeanServerFactory$2.run(MBeanServerFactory .java:226)
> at java.security.AccessController.doPrivileged(Native Method)
> at
> javax.management.MBeanServerFactory.createMBeanServer(MBeanS erverFactory.java:221)
>
> at
> javax.management.MBeanServerFactory.createMBeanServer(MBeanS erverFactory.java:153)
>
> at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:3 32)
> at org.jboss.system.server.ServerImpl.start(ServerImpl.java:293 )
> at org.jboss.Main.boot(Main.java:151)
> at org.jboss.Main$1.run(Main.java:405)
> at java.lang.Thread.run(Thread.java:534)
> java.lang.NoClassDefFoundError: org/dom4j/Element
> at java.lang.Class.getDeclaredConstructors0(Native Method)
> at java.lang.Class.privateGetDeclaredConstructors(Class.java:16 18)
> at java.lang.Class.getConstructor0(Class.java:1930)
> at java.lang.Class.newInstance0(Class.java:278)
> at java.lang.Class.newInstance(Class.java:261)
> at
> org.jboss.mx.modelmbean.RequiredModelMBeanInstantiator.insta ntiate(RequiredModelMBeanInstantiator.java:37)
>
> at org.jboss.mx.server.MBeanServerImpl.<init>(MBeanServerImpl.java:205)
> at
> org.jboss.mx.server.MBeanServerBuilderImpl.newMBeanServer(MB eanServerBuilderImpl.java:56)
>
> at
> javax.management.MBeanServerFactory$2.run(MBeanServerFactory .java:226)
> at java.security.AccessController.doPrivileged(Native Method)
> at
> javax.management.MBeanServerFactory.createMBeanServer(MBeanS erverFactory.java:221)
>
> at
> javax.management.MBeanServerFactory.createMBeanServer(MBeanS erverFactory.java:153)
>
> at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:3 32)
> at org.jboss.system.server.ServerImpl.start(ServerImpl.java:293 )
> at org.jboss.Main.boot(Main.java:151)
> at org.jboss.Main$1.run(Main.java:405)
> at java.lang.Thread.run(Thread.java:534)
>
> Has anyone tried to deploy "ZooBeansProject.jar" from the tutorial
> successfully on JBoss?
Re: Deploymentdescriptor works only with JBoss4.0 [message #116232 is a reply to message #116155] Tue, 05 July 2005 08:20 Go to previous message
Eclipse UserFriend
Janne Kario wrote:

> Matthias Wagner wrote:
>> the problem I posted to this group (ejb-jar.xml must define a valid
>> DOCTYPE)only appears in JBoss 3.x. If I deploy the jar-file of the
>> tutorial on jboss 4.0.0 everything is ok. It seems that JBoss 3.x cannot
>> handle xml-Schema-Definitions.

> This is due to the fact that J2EE 1.3 (JBoss 3.x) uses DTD to validate
> the deployment descriptors and J2EE 1.4 (JBoss 4.x) uses schema
> definitions. I think you should be able to control which (doctype or
> scheme reference) gets generated by choosing the right JBoss version
> from xdoclet settings.

I changed the settings in
Window->Preference->J2EEAnnotations->xdoclet->ejbDoclet. If I choose JBoss
3.x, ejb-jar ist generated with schema - reference, too. Please tell me
how I can get an ejb-jar with DOCTYPE like jboss 3.x needs.

> But if It try to start JBoss 4.0.0 from
>> eclipse 3.1 the following error happens while starting the server:

> Your're using Java 1.4.2 or Java 1.5.0? Does JBoss 4.x start ok when you
> start it from command line outside Eclipse? I've some similar stack
> traces with Java 1.5.0.

yes, if I start jboss4.0 from outside eclipse, it uses java version 1.5 an
starts without problems.

>> 22:00:37,765 ERROR [BasicMBeanRegistry] Cannot register MBean
>> java.lang.NoClassDefFoundError: org/dom4j/DocumentException
>> at
>>
javax.management.modelmbean.ModelMBeanAttributeInfo.createDe faultDescriptor(ModelMBeanAttributeInfo.java:268)
>>
>> at
>>
javax.management.modelmbean.ModelMBeanAttributeInfo.<init>(ModelMBeanAttributeInfo.java:145)
>>
>> at
>>
org.jboss.mx.metadata.MBeanInfoConversion.toModelMBeanInfo(M BeanInfoConversion.java:80)
>>
>> at org.jboss.mx.modelmbean.XMBean.<init>(XMBean.java:212)
>> at
>>
org.jboss.mx.server.registry.BasicMBeanRegistry.registerMBea n(BasicMBeanRegistry.java:180)
>>
>> at org.jboss.mx.server.MBeanServerImpl.<init>(MBeanServerImpl.java:200)
>> at
>>
org.jboss.mx.server.MBeanServerBuilderImpl.newMBeanServer(MB eanServerBuilderImpl.java:56)
>>
>> at
>> javax.management.MBeanServerFactory$2.run(MBeanServerFactory .java:226)
>> at java.security.AccessController.doPrivileged(Native Method)
>> at
>>
javax.management.MBeanServerFactory.createMBeanServer(MBeanS erverFactory.java:221)
>>
>> at
>>
javax.management.MBeanServerFactory.createMBeanServer(MBeanS erverFactory.java:153)
>>
>> at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:3 32)
>> at org.jboss.system.server.ServerImpl.start(ServerImpl.java:293 )
>> at org.jboss.Main.boot(Main.java:151)
>> at org.jboss.Main$1.run(Main.java:405)
>> at java.lang.Thread.run(Thread.java:534)
>> java.lang.NoClassDefFoundError: org/dom4j/Element
>> at java.lang.Class.getDeclaredConstructors0(Native Method)
>> at java.lang.Class.privateGetDeclaredConstructors(Class.java:16 18)
>> at java.lang.Class.getConstructor0(Class.java:1930)
>> at java.lang.Class.newInstance0(Class.java:278)
>> at java.lang.Class.newInstance(Class.java:261)
>> at
>>
org.jboss.mx.modelmbean.RequiredModelMBeanInstantiator.insta ntiate(RequiredModelMBeanInstantiator.java:37)
>>
>> at org.jboss.mx.server.MBeanServerImpl.<init>(MBeanServerImpl.java:205)
>> at
>>
org.jboss.mx.server.MBeanServerBuilderImpl.newMBeanServer(MB eanServerBuilderImpl.java:56)
>>
>> at
>> javax.management.MBeanServerFactory$2.run(MBeanServerFactory .java:226)
>> at java.security.AccessController.doPrivileged(Native Method)
>> at
>>
javax.management.MBeanServerFactory.createMBeanServer(MBeanS erverFactory.java:221)
>>
>> at
>>
javax.management.MBeanServerFactory.createMBeanServer(MBeanS erverFactory.java:153)
>>
>> at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:3 32)
>> at org.jboss.system.server.ServerImpl.start(ServerImpl.java:293 )
>> at org.jboss.Main.boot(Main.java:151)
>> at org.jboss.Main$1.run(Main.java:405)
>> at java.lang.Thread.run(Thread.java:534)
>>
>> Has anyone tried to deploy "ZooBeansProject.jar" from the tutorial
>> successfully on JBoss?
Previous Topic:Can't debug JSP pages
Next Topic:Tomcat 5.0 on Gentoo with WTP
Goto Forum:
  


Current Time: Sat Apr 05 01:03:00 EDT 2025

Powered by FUDForum. Page generated in 0.02697 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top