[Installation, Configuration & DEPLOYMENT] - .NoClassDefFoundError: org.jboss.dom4j.DocumentFactory
by shuttlesworth
Hi,
I am running jboss 4.2.0 on Ubuntu and when I start the application server I get the following error
Caused by: java.lang.NoClassDefFoundError: org.jboss.dom4j.DocumentFactory
at java.lang.Class.initializeClass(libgcj.so.70)
at org.jboss.dom4j.io.SAXReader.getDocumentFactory(SAXReader.java:645)
at org.jboss.dom4j.io.SAXReader.createContentHandler(SAXReader.java:969)
at org.jboss.dom4j.io.SAXReader.read(SAXReader.java:449)
at org.jboss.dom4j.io.SAXReader.read(SAXReader.java:291)
at org.jboss.mx.metadata.XMLMetaData.build(XMLMetaData.java:255)
at org.jboss.mx.modelmbean.XMBean.(XMBean.java:253)
at org.jboss.mx.modelmbean.XMBean.(XMBean.java:282)
at java.lang.reflect.Constructor.newInstance(libgcj.so.70)
at org.jboss.mx.server.MBeanServerImpl.instantiate(MBeanServerImpl.java:1233)
at org.jboss.mx.server.MBeanServerImpl.instantiate(MBeanServerImpl.java:286)
at org.jboss.mx.server.MBeanServerImpl.createMBean(MBeanServerImpl.java:344)
at org.jboss.system.ServiceCreator.install(ServiceCreator.java:212)
I am unclear on why this error is occuring. Can someone give me some insight on how to resolve this issue? I have check the forum archive but there does not appear to be any mention of this issue. Any help would be greatly appreciated.
Best Regards,
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4061608#4061608
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4061608
18Â years, 9Â months
[JBoss jBPM] - Re: jBPM 3.2.1 and App Server (AS) 4.2 - Web Console
by burrsutter
I decided to "cheat" and went back to CVS. The build script for the console makes a 4.2 compatible WAR where the primary differences seem to the following:
jsf-impl-14.jar (gone)
jsf-api-14.jar (gone)
el-ri.jar (gone)
el-api.jar (gone)
javassist.jar (gone)
gravel-14.jar is now gravel.jar
So, that tells me this information is not completely accurate:
http://wiki.jboss.org/wiki/Wiki.jsp?page=DeployJbpm3.2WebAppUnderJBoss4.2.x
I suspect this was accurate for 3.2.0 but I can't verify that at this moment.
Another tip for anyone trying this at home:
Modify your AS login-config.xml to include the following -
| <application-policy name = "jbpm">
| <authentication>
| <login-module code="org.jboss.security.auth.spi.DatabaseServerLoginModule"
| flag="required">
| <module-option name="dsJndiName">java:/JbpmDS</module-option>
| <module-option name="principalsQuery">
| SELECT PASSWORD_ FROM JBPM_ID_USER WHERE NAME_=?
| </module-option>
| <module-option name="rolesQuery">
| SELECT g.NAME_ ,'Roles'
| FROM JBPM_ID_USER u,
| JBPM_ID_MEMBERSHIP m,
| JBPM_ID_GROUP g
| WHERE g.TYPE_='security-role'
| AND m.GROUP_ = g.ID_
| AND m.USER_ = u.ID_
| AND u.NAME_=?
| </module-option>
| </login-module>
| </authentication>
| </application-policy>
|
|
But the results of my adventure basically show me that I need to go to CVS, build the console and use the 4.2 version of jbpm-console.war.
I've found 3 copies of jbpm-console.war in the jbpm-jpdl-suite-3.2.1 download. All have the gravel-14.jar which seems to be a problem.
I'm guessing this is related to Java version number and I'm running on JDK 1.5.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4061607#4061607
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4061607
18Â years, 9Â months
[JBoss jBPM] - Re: jBPM 3.2.1 and App Server (AS) 4.2 - Web Console
by burrsutter
I'll try to clearly specify my steps for the next person who will wish to attempt this trick. My ultimate goal is to make the console with with the jBPM embedded in the ESB 4.2 but for now I'm just shooting for AS 4.2.
- Plain vanilla AS 4.2 instance (no Messaging, no ESB, etc)
- jBPM 3.2.1 jPDL Suite download
1) Copied jbpm-console.war from the jbpm-jpdl-3.2.1\server\server\jbpm\deploy directory to my AS 4.2 default\deploy directory
2) removed the JSF & EI jars from the WAR's WEB-INF\lib
3) Copied jboss-backport-concurrent.jar from the jbpm-jpdl-3.2.1\server\server\jbpm\lib to my AS 4.2 server\default\lib directory
4) Copied jbpmDB.* from jbpm-jpdl-3.2.1\server\server\jbpm\data\hypersonic to
AS 4.2 server\default\data\hypersonic directory
Note: also tried building the schema by using the sql scripts found in jbpm-jpdl-3.2.1\db
5) Copied jbpm-ds.xml from jbpm-jpdl-3.2.1\server\server\jbpm\deploy to
AS 4.2 server\default\deploy
6) Start the AS instance via "run" from the bin directory.
7) Dig through the server.log to find:
| ERROR [org.hibernate.proxy.pojo.BasicLazyInitializer] Javassist Enhancement failed: org.jbpm.taskmgmt.log.TaskAssignLog
| java.lang.RuntimeException: java.lang.IllegalArgumentException
So I need to modify the Hibernate related items in the jbpm-console.war it seems.
Or perhaps this is just going down the wrong path all together?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4061603#4061603
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4061603
18Â years, 9Â months