Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Won't Fix
-
1.2
-
None
-
RHEL 5.0, JDK Sun 1.6_9, JBoss 4.2.3.GA
Description
I am trying create a Todo for install ODE in JBoss 4.2.3, I already changed the jboss-esb.xml for solving classloader issues:
<jboss-web>
<context-root>/ode</context-root>
<resource-ref>
<res-ref-name>jdbc/ode-ds</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<jndi-name>java:OdeDS</jndi-name>
</resource-ref>
<class-loading>
<loader-repository>
org.hibernate:archive=ode-hibernate
<loader-repository-config>
java2ParentDelegation=true
</loader-repository-config>
</loader-repository>
</class-loading>
</jboss-web>
Based on that jboss-web.xml, I removed the comments from web.xml about Datasource on the following section:
<resource-ref>
<res-ref-name>jdbc/ode-ds</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
<res-sharing-scope>Shareable</res-sharing-scope>
</resource-ref>
This will match with mydatasource name and the declaration from
I added the property: -Dode.persistence=hibernate into my run.conf as well as created my axis2-ode.properties with the information:
ode-axis2.db.mode=EXTERNAL
ode-axis2.db.ext.dataSource=java:OdeDS
ode-axis2.tx.factory.class=org.apache.ode.axis2.util.JBossFactory
I created a Datasource pointing for a Mysql database, seems to be fine according the loggin message:
20:41:48,331 INFO [SessionFactoryObjectFactory] Not binding factory to JNDI, no JNDI name configured
20:41:48,370 INFO [JdbcDelegate] Using database dialect: MYSQL
20:41:48,430 INFO [BpelServerImpl] BPEL Server Started.
But, after I see the folliowing message in my log:
20:41:48,475 ERROR [[/ode]] StandardWrapper.Throwable
java.lang.IllegalAccessError: tried to access class org.apache.xmlbeans.XmlBeans$1 from class org.apache.xmlbeans.XmlBeans
at org.apache.xmlbeans.XmlBeans.<clinit>(XmlBeans.java:85)
at org.apache.ode.bpel.pmapi.TInstanceStatus.<clinit>(TInstanceStatus.java:18)
at org.apache.ode.bpel.engine.ProcessStatusConverter.cvtInstanceStatus(ProcessStatusConverter.java:84)
at org.apache.ode.bpel.engine.ProcessStatusConverter.<init>(ProcessStatusConverter.java:54)
at org.apache.ode.bpel.engine.ProcessAndInstanceManagementImpl.<clinit>(ProcessAndInstanceManagementImpl.java:143)
at org.apache.ode.axis2.service.ManagementService.enableService(ManagementService.java:77)
at org.apache.ode.axis2.ODEServer.init(ODEServer.java:181)
at org.apache.ode.axis2.ODEServer.init(ODEServer.java:119)
at org.apache.ode.axis2.hooks.ODEAxisServlet.init(ODEAxisServlet.java:53)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1161)
The ode web application works, but when I try see more information about the WSDL I got an exception:
20:46:24,854 ERROR [[/ode]] StandardWrapper.Throwable
java.lang.NoClassDefFoundError: Could not initialize class org.apache.ode.bpel.engine.ProcessAndInstanceManagementImpl
at org.apache.ode.axis2.service.ManagementService.enableService(ManagementService.java:77)
at org.apache.ode.axis2.ODEServer.init(ODEServer.java:181)
at org.apache.ode.axis2.ODEServer.init(ODEServer.java:119)
at org.apache.ode.axis2.hooks.ODEAxisServlet.init(ODEAxisServlet.java:53)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1161)
at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:806)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:129)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:182)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
at java.lang.Thread.run(Thread.java:619)
20:46:24,854 ERROR [[AxisServlet]] Allocate exception for servlet AxisServlet
java.lang.NoClassDefFoundError: Could not initialize class org.apache.ode.bpel.engine.ProcessAndInstanceManagementImpl
at org.apache.ode.axis2.service.ManagementService.enableService(ManagementService.java:77)
at org.apache.ode.axis2.ODEServer.init(ODEServer.java:181)
at org.apache.ode.axis2.ODEServer.init(ODEServer.java:119)
at org.apache.ode.axis2.hooks.ODEAxisServlet.init(ODEAxisServlet.java:53)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1161)
at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:806)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:129)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:182)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
at java.lang.Thread.run(Thread.java:619)
Some idea for make it works?
Thanks in Advance
Edgar