[JBoss Web Services Users] - Question about SOAPMessage
by oechevarria
Hi all,
I installed and ran the test suite for jbossws-native-3.2.0.GA. Everything worked OK. Then using Eclipse I ran and debugged the tests in the org.jboss.test.ws.jaxws.samples.provider package. Everything OK again.
Then I modified ProviderBeanMessage.java to look like this (just the modified part):
public SOAPMessage invoke(SOAPMessage request)
{
SOAPPart soapPart = request.getSOAPPart();
try {
SOAPEnvelope envelope =soapPart.getEnvelope();
SOAPBody body = envelope.getBody();
SOAPHeader header = envelope.getHeader();
Source source = soapPart.getContent();
} catch (SOAPException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
return request;
}
I also modified ProviderMessageTestCase.java to enhance the test String to look like this
private String msgString =
"<soap:Envelope xmlns:soap='http://schemas.xmlsoap.org/soap/envelope/'>" +
" <soap:Body>" +
" <ns1:somePayload xmlns:ns1='http://org.jboss.ws/provider'/>" +
"<ns1:addcall xmlns:ns1='http://org.jboss.ws/provider'>" +
"<ns1:addImport xmlns:ns1='http://org.jboss.ws/provider'>" +
"<ns1:ImportCalcCalculator xmlns:ns1='http://org.jboss.ws/provider'>" +
"<ns1:Num2 xmlns:ns1='http://org.jboss.ws/provider'>?</ns1:Num2>" +
"<ns1:Num1 xmlns:ns1='http://org.jboss.ws/provider'>?</ns1:Num1>" +
"</ns1:ImportCalcCalculator>" +
"</ns1:addImport>" +
"</ns1:addcall>" +
" </soap:Body>" +
"</soap:Envelope>";
I rebuilt and ran everything again and when I looked at the contents of the incoming request in the Bean I noticed that element ns1:addImport and its children are not visible or present in the message structure. So the line Source source = soapPart.getContent();
returns an invalid object.
If I inspect the response back in testProviderDispatch() and testProviderMessage() (in ProviderMessageTestCase.java) the entire message is there.
So the question is: why is that when the message arrives on the server side it is missing a portion of its contents?
Any thoughts or comments are greatly appreciated
Regards,
Octavio
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4264389#4264389
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4264389
16 years, 5 months
[jBPM Users] - jBPM-4.2 Remote API problem?
by markroy
In jBPM 4.1, using the following jbpm.cfg.xml in my simple test app worked:
<jbpm-configuration>
| <import resource="jbpm.jbossremote.cfg.xml" />
| </jbpm-configuration>
Since upgrading to 4.2, however, I now get a NPE:
java.lang.NullPointerException
| at org.jbpm.pvm.internal.cfg.ProcessEngineImpl.checkDb(ProcessEngineImpl.java:177)
| at org.jbpm.pvm.internal.cfg.ProcessEngineImpl.buildProcessEngine(ProcessEngineImpl.java:170)
| at org.jbpm.api.Configuration.getProcessEngine(Configuration.java:161)
| at org.jbpm.test.JbpmTestCase.initialize(JbpmTestCase.java:81)
| at org.jbpm.test.JbpmTestCase.setUp(JbpmTestCase.java:76)
| at gov.faa.ato.esp.ReviewProcess.setUp(ReviewProcess.java:24)
| at junit.framework.TestCase.runBare(TestCase.java:132)
| at junit.framework.TestResult$1.protect(TestResult.java:110)
| at junit.framework.TestResult.runProtected(TestResult.java:128)
| at junit.framework.TestResult.run(TestResult.java:113)
| at junit.framework.TestCase.run(TestCase.java:124)
| at junit.framework.TestSuite.runTest(TestSuite.java:232)
| at junit.framework.TestSuite.run(TestSuite.java:227)
| at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:130)
| at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
| at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
| at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
| at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
| at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
I traced this to the fact the userCommandService is assigned null from the following:
userCommandService = (CommandService) processEngineWireContext.get(CommandService.NAME_TX_REQUIRED_COMMAND_SERVICE);
Is this a bug in 4.2, or are there some additional configuration requirements to use the remote API? (I did upgrade the server's db schema to 4.2)
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4264383#4264383
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4264383
16 years, 5 months
[EJB 3.0 Users] - java.lang.reflect.UndeclaredThrowableException
by pi4630
Hi all,
I'm beginning ejb3.0.
I have the following stuff inside a JAR, I deploy on my JBoss 4.0.4-GA:
FooBarBean.java - a stateless session bean
FooBarException.java - an extension of Exception
FooBarRemote.java - the remote interface
A method in FooBarRemote throws FooBarException.
FooBarBean implements FooBarRemote (and thus throws the FooBarException).
I have a FooBarClient.java that connects to JBoss via jnp and looks up JNDI to get the right bean and uses its method.
I start the JBoss server, create a Remote debug config inside eclipse where I enter the project folder, connection type is standard (socket attach), host is localhost and port is 8000 (I have configured eclipse to bypass proxy for localhost). I launch the remote debug and it is fine.
When I run the client, I am able to debug up to the point where I pass FooBarBean an invalid parameter, for which I except to see the FooBarException printed on the console.
Some thing like
input is i=-1
| if ( i<0){
| throw new FooBarException("Here some msg").
|
But I get the above java.lang.reflect.UndeclaredThrowableException on a proxy0 back caused by java.lang.ClassNotFoundException.
I've double checked: the client invokes the correct bean and the method call is made between try catch, catching FooBarException (the client would syserrprint the FooBarException to the console). If the input is valid, everything is fine.
I'm not sure how I should interpret this error: Does it mean that JBoss is unaware of the FooBarException class in runtime? It looks like the reference can't be matched back to the client.
Any hints?
Thanks in advance,
~pasquale
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4264380#4264380
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4264380
16 years, 5 months
[jBPM Users] - Running demo.setup.jboss Problems under MySQL
by tangrui
I'm running "ant -Ddatabase=mysql demo.setup.jboss", after install JBoss and create database schema, while starting JBoss AS, some exception occurred.
[start-jboss] 02:55:28,309 WARN [JBossManagedConnectionPool] Throwable while at
tempting to get a new connection: null
[start-jboss] org.jboss.resource.JBossResourceException: Could not create connec
tion; - nested throwable: (org.jboss.resource.JBossResourceException: Class not
found for XADataSource com.mysql.jdbc.jdbc2.optional.MysqlXADataSource; - nested
throwable: (java.lang.ClassNotFoundException: com.mysql.jdbc.jdbc2.optional.Mys
qlXADataSource from BaseClassLoader@25b3d5{VFSClassLoaderPolicy@1416b2d{name=vfs
file:/E:/home/all/jbpm-4.1/jboss-5.0.0.GA/server/default/deploy/jbpm/jbpm-servic
e.sar/ domain=ClassLoaderDomain@8a6fc{name=DefaultDomain parentPolicy=BEFORE par
ent=org.jboss.system.NoAnnotationURLClassLoader@14c1103} roots=[MemoryContextHan
dler@31692960[path= context=vfsmemory://5c4o1k1-37hjqk-g1pb2npu-1-g1pb3g3u-11 re
al=vfsmemory://5c4o1k1-37hjqk-g1pb2npu-1-g1pb3g3u-11], FileHandler@20529339[path
=jbpm/jbpm-service.sar context=file:/E:/home/all/jbpm-4.1/jboss-5.0.0.GA/server/
default/deploy/ real=file:/E:/home/all/jbpm-4.1/jboss-5.0.0.GA/server/default/de
ploy/jbpm/jbpm-service.sar/], DelegatingHandler@29933798[path=jbpm/jbpm-service.
sar/freemarker.jar context=file:/E:/home/all/jbpm-4.1/jboss-5.0.0.GA/server/defa
ult/deploy/ real=file:/E:/home/all/jbpm-4.1/jboss-5.0.0.GA/server/default/deploy
/jbpm/jbpm-service.sar/freemarker.jar], DelegatingHandler@15750284[path=jbpm/jbp
m-service.sar/jbpm-console-form-plugin.jar context=file:/E:/home/all/jbpm-4.1/jb
oss-5.0.0.GA/server/default/deploy/ real=file:/E:/home/all/jbpm-4.1/jboss-5.0.0.
GA/server/default/deploy/jbpm/jbpm-service.sar/jbpm-console-form-plugin.jar], De
legatingHandler(a)4113990[path=jbpm/jbpm-service.sar/jbpm-console-graphView-plugin
.jar context=file:/E:/home/all/jbpm-4.1/jboss-5.0.0.GA/server/default/deploy/ re
al=file:/E:/home/all/jbpm-4.1/jboss-5.0.0.GA/server/default/deploy/jbpm/jbpm-ser
vice.sar/jbpm-console-graphView-plugin.jar], DelegatingHandler@21703981[path=jbp
m/jbpm-service.sar/jbpm-console-integration.jar context=file:/E:/home/all/jbpm-4
.1/jboss-5.0.0.GA/server/default/deploy/ real=file:/E:/home/all/jbpm-4.1/jboss-5
.0.0.GA/server/default/deploy/jbpm/jbpm-service.sar/jbpm-console-integration.jar
], DelegatingHandler(a)8584079[path=jbpm/jbpm-service.sar/jbpm-spi.jar context=fil
e:/E:/home/all/jbpm-4.1/jboss-5.0.0.GA/server/default/deploy/ real=file:/E:/home
/all/jbpm-4.1/jboss-5.0.0.GA/server/default/deploy/jbpm/jbpm-service.sar/jbpm-sp
i.jar], DelegatingHandler(a)22123681[path=jbpm/jbpm-service.sar/juel-engine.jar co
ntext=file:/E:/home/all/jbpm-4.1/jboss-5.0.0.GA/server/default/deploy/ real=file
:/E:/home/all/jbpm-4.1/jboss-5.0.0.GA/server/default/deploy/jbpm/jbpm-service.sa
r/juel-engine.jar], DelegatingHandler(a)16058616[path=jbpm/jbpm-service.sar/juel-i
mpl.jar context=file:/E:/home/all/jbpm-4.1/jboss-5.0.0.GA/server/default/deploy/
real=file:/E:/home/all/jbpm-4.1/jboss-5.0.0.GA/server/default/deploy/jbpm/jbpm-
service.sar/juel-impl.jar], DelegatingHandler(a)18862661[path=jbpm/jbpm-service.sa
r/juel.jar context=file:/E:/home/all/jbpm-4.1/jboss-5.0.0.GA/server/default/depl
oy/ real=file:/E:/home/all/jbpm-4.1/jboss-5.0.0.GA/server/default/deploy/jbpm/jb
pm-service.sar/juel.jar], DelegatingHandler(a)2481330[path=jbpm/jbpm-service.sar/l
ivetribe-jsr223.jar context=file:/E:/home/all/jbpm-4.1/jboss-5.0.0.GA/server/def
ault/deploy/ real=file:/E:/home/all/jbpm-4.1/jboss-5.0.0.GA/server/default/deplo
y/jbpm/jbpm-service.sar/livetribe-jsr223.jar]] delegates=null exported=[, de.od
ysseus.el.tree.impl, freemarker, org.jbpm.integration.spi, org.jbpm.integration.
console.forms, freemarker.ext.dom, de.odysseus.el.tree.impl.ast, org.jbpm.integr
ation.console.graphView, META-INF.maven.org.livetribe.livetribe-jsr223, freemark
er.ext.jython, META-INF.maven.org.jbpm.jbpm4.jbpm-spi, javax.script, org.jbpm.in
tegration.util, freemarker.ext.beans, META-INF.maven.org.jbpm.jbpm4.jbpm-console
-integration, META-INF.maven.org.jbpm.jbpm4.jbpm-console-graphView-plugin, de.od
ysseus.el.tree, freemarker.debug.impl, freemarker.core, META-INF.maven.org.jbpm.
jbpm4.jbpm-console-form-plugin, freemarker.ext.servlet, freemarker.ext.util, jav
ax.el, de.odysseus.el.misc, freemarker.debug, freemarker.cache, de.odysseus.el.u
til, org.jbpm.integration.console, freemarker.ext.xml, META-INF, de.odysseus.el,
freemarker.ext.jdom, freemarker.template.utility, freemarker.ext.jsp, freemarke
r.log, freemarker.ext.rhino, META-INF.services, com.sun.script.juel, org.jbpm.in
tegration.spi.mgmt, freemarker.template, freemarker.ext.ant] <IMPORT-ALL>NON_EMP
TY}}))
[start-jboss] at org.jboss.resource.adapter.jdbc.xa.XAManagedConnectionFactory
.getXAManagedConnection(XAManagedConnectionFactory.java:465)
[start-jboss] at org.jboss.resource.adapter.jdbc.xa.XAManagedConnectionFactory
.createManagedConnection(XAManagedConnectionFactory.java:409)
[start-jboss] at org.jboss.resource.connectionmanager.InternalManagedConnectio
nPool.createConnectionEventListener(InternalManagedConnectionPool.java:611)
[start-jboss] at org.jboss.resource.connectionmanager.InternalManagedConnectio
nPool.getConnection(InternalManagedConnectionPool.java:257)
[start-jboss] at org.jboss.resource.connectionmanager.JBossManagedConnectionPo
ol$BasePool.getConnection(JBossManagedConnectionPool.java:644)
[start-jboss] at org.jboss.resource.connectionmanager.BaseConnectionManager2.g
etManagedConnection(BaseConnectionManager2.java:404)
[start-jboss] at org.jboss.resource.connectionmanager.TxConnectionManager.getM
anagedConnection(TxConnectionManager.java:381)
[start-jboss] at org.jboss.resource.connectionmanager.BaseConnectionManager2.a
llocateConnection(BaseConnectionManager2.java:496)
[start-jboss] at org.jboss.resource.connectionmanager.BaseConnectionManager2$C
onnectionManagerProxy.allocateConnection(BaseConnectionManager2.java:941)
[start-jboss] at org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnecti
on(WrapperDataSource.java:89)
[start-jboss] at org.hibernate.connection.DatasourceConnectionProvider.getConn
ection(DatasourceConnectionProvider.java:92)
[start-jboss] at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFacto
ry.java:111)
[start-jboss] at org.hibernate.cfg.Configuration.buildSettings(Configuration.j
ava:2101)
[start-jboss] at org.hibernate.cfg.Configuration.buildSessionFactory(Configura
tion.java:1325)
[start-jboss] at org.jbpm.pvm.internal.wire.descriptor.HibernateSessionFactory
Descriptor.construct(HibernateSessionFactoryDescriptor.java:64)
[start-jboss] at org.jbpm.pvm.internal.wire.WireContext.construct(WireContext.
java:473)
[start-jboss] at org.jbpm.pvm.internal.wire.WireContext.create(WireContext.jav
a:452)
[start-jboss] at org.jbpm.pvm.internal.wire.WireContext.create(WireContext.jav
a:441)
[start-jboss] at org.jbpm.pvm.internal.wire.WireContext.get(WireContext.java:4
21)
[start-jboss] at org.jbpm.pvm.internal.wire.WireContext.get(WireContext.java:3
31)
[start-jboss] at org.jbpm.pvm.internal.wire.WireContext.get(WireContext.java:7
07)
[start-jboss] at org.jbpm.pvm.internal.env.BasicEnvironment.get(BasicEnvironme
nt.java:139)
[start-jboss] at org.jbpm.pvm.internal.env.BasicEnvironment.get(BasicEnvironme
nt.java:130)
[start-jboss] at org.jbpm.pvm.internal.wire.descriptor.HibernateSessionDescrip
tor.construct(HibernateSessionDescriptor.java:63)
[start-jboss] at org.jbpm.pvm.internal.wire.WireContext.construct(WireContext.
java:473)
[start-jboss] at org.jbpm.pvm.internal.wire.WireContext.create(WireContext.jav
a:452)
[start-jboss] at org.jbpm.pvm.internal.wire.WireContext.create(WireContext.jav
a:441)
[start-jboss] at org.jbpm.pvm.internal.wire.WireContext.get(WireContext.java:4
21)
[start-jboss] at org.jbpm.pvm.internal.wire.WireContext.get(WireContext.java:3
31)
[start-jboss] at org.jbpm.pvm.internal.wire.WireContext.get(WireContext.java:7
07)
[start-jboss] at org.jbpm.pvm.internal.wire.descriptor.DbSessionDescriptor.ini
tialize(DbSessionDescriptor.java:49)
[start-jboss] at org.jbpm.pvm.internal.wire.WireContext.performInitialization(
WireContext.java:537)
[start-jboss] at org.jbpm.pvm.internal.wire.WireContext.initialize(WireContext
.java:499)
[start-jboss] at org.jbpm.pvm.internal.wire.WireContext.create(WireContext.jav
a:453)
[start-jboss] at org.jbpm.pvm.internal.wire.WireContext.create(WireContext.jav
a:441)
[start-jboss] at org.jbpm.pvm.internal.wire.WireContext.get(WireContext.java:4
21)
[start-jboss] at org.jbpm.pvm.internal.wire.WireContext.get(WireContext.java:3
31)
[start-jboss] at org.jbpm.pvm.internal.wire.WireContext.get(WireContext.java:7
07)
[start-jboss] at org.jbpm.pvm.internal.env.BasicEnvironment.get(BasicEnvironme
nt.java:139)
[start-jboss] at org.jbpm.pvm.internal.env.BasicEnvironment.get(BasicEnvironme
nt.java:130)
[start-jboss] at org.jbpm.pvm.internal.jobexecutor.AcquireJobsCmd.execute(Acqu
ireJobsCmd.java:60)
[start-jboss] at org.jbpm.pvm.internal.jobexecutor.AcquireJobsCmd.execute(Acqu
ireJobsCmd.java:41)
[start-jboss] at org.jbpm.pvm.internal.svc.DefaultCommandService.execute(Defau
ltCommandService.java:42)
[start-jboss] at org.jbpm.pvm.internal.tx.jta.JtaTransactionInterceptor.execut
eInNewTx(JtaTransactionInterceptor.java:79)
[start-jboss] at org.jbpm.pvm.internal.tx.jta.JtaTransactionInterceptor.execut
e(JtaTransactionInterceptor.java:61)
[start-jboss] at org.jbpm.pvm.internal.svc.RetryInterceptor.execute(RetryInter
ceptor.java:55)
[start-jboss] at org.jbpm.pvm.internal.tx.jta.JtaRetryInterceptor.executeWithR
etry(JtaRetryInterceptor.java:52)
[start-jboss] at org.jbpm.pvm.internal.tx.jta.JtaRetryInterceptor.execute(JtaR
etryInterceptor.java:45)
[start-jboss] at org.jbpm.pvm.internal.svc.EnvironmentInterceptor.execute(Envi
ronmentInterceptor.java:46)
[start-jboss] at org.jbpm.pvm.internal.jobexecutor.DispatcherThread.acquireJob
s(DispatcherThread.java:126)
[start-jboss] at org.jbpm.pvm.internal.jobexecutor.DispatcherThread.run(Dispat
cherThread.java:67)
[start-jboss] Caused by: org.jboss.resource.JBossResourceException: Class not fo
und for XADataSource com.mysql.jdbc.jdbc2.optional.MysqlXADataSource; - nested t
hrowable: (java.lang.ClassNotFoundException: com.mysql.jdbc.jdbc2.optional.Mysql
XADataSource from BaseClassLoader@25b3d5{VFSClassLoaderPolicy@1416b2d{name=vfsfi
le:/E:/home/all/jbpm-4.1/jboss-5.0.0.GA/server/default/deploy/jbpm/jbpm-service.
sar/ domain=ClassLoaderDomain@8a6fc{name=DefaultDomain parentPolicy=BEFORE paren
t=org.jboss.system.NoAnnotationURLClassLoader@14c1103} roots=[MemoryContextHandl
er@31692960[path= context=vfsmemory://5c4o1k1-37hjqk-g1pb2npu-1-g1pb3g3u-11 real
=vfsmemory://5c4o1k1-37hjqk-g1pb2npu-1-g1pb3g3u-11], FileHandler@20529339[path=j
bpm/jbpm-service.sar context=file:/E:/home/all/jbpm-4.1/jboss-5.0.0.GA/server/de
fault/deploy/ real=file:/E:/home/all/jbpm-4.1/jboss-5.0.0.GA/server/default/depl
oy/jbpm/jbpm-service.sar/], DelegatingHandler(a)29933798[path=jbpm/jbpm-service.sa
r/freemarker.jar context=file:/E:/home/all/jbpm-4.1/jboss-5.0.0.GA/server/defaul
t/deploy/ real=file:/E:/home/all/jbpm-4.1/jboss-5.0.0.GA/server/default/deploy/j
bpm/jbpm-service.sar/freemarker.jar], DelegatingHandler@15750284[path=jbpm/jbpm-
service.sar/jbpm-console-form-plugin.jar context=file:/E:/home/all/jbpm-4.1/jbos
s-5.0.0.GA/server/default/deploy/ real=file:/E:/home/all/jbpm-4.1/jboss-5.0.0.GA
/server/default/deploy/jbpm/jbpm-service.sar/jbpm-console-form-plugin.jar], Dele
gatingHandler(a)4113990[path=jbpm/jbpm-service.sar/jbpm-console-graphView-plugin.j
ar context=file:/E:/home/all/jbpm-4.1/jboss-5.0.0.GA/server/default/deploy/ real
=file:/E:/home/all/jbpm-4.1/jboss-5.0.0.GA/server/default/deploy/jbpm/jbpm-servi
ce.sar/jbpm-console-graphView-plugin.jar], DelegatingHandler@21703981[path=jbpm/
jbpm-service.sar/jbpm-console-integration.jar context=file:/E:/home/all/jbpm-4.1
/jboss-5.0.0.GA/server/default/deploy/ real=file:/E:/home/all/jbpm-4.1/jboss-5.0
.0.GA/server/default/deploy/jbpm/jbpm-service.sar/jbpm-console-integration.jar],
DelegatingHandler(a)8584079[path=jbpm/jbpm-service.sar/jbpm-spi.jar context=file:
/E:/home/all/jbpm-4.1/jboss-5.0.0.GA/server/default/deploy/ real=file:/E:/home/a
ll/jbpm-4.1/jboss-5.0.0.GA/server/default/deploy/jbpm/jbpm-service.sar/jbpm-spi.
jar], DelegatingHandler(a)22123681[path=jbpm/jbpm-service.sar/juel-engine.jar cont
ext=file:/E:/home/all/jbpm-4.1/jboss-5.0.0.GA/server/default/deploy/ real=file:/
E:/home/all/jbpm-4.1/jboss-5.0.0.GA/server/default/deploy/jbpm/jbpm-service.sar/
juel-engine.jar], DelegatingHandler(a)16058616[path=jbpm/jbpm-service.sar/juel-imp
l.jar context=file:/E:/home/all/jbpm-4.1/jboss-5.0.0.GA/server/default/deploy/ r
eal=file:/E:/home/all/jbpm-4.1/jboss-5.0.0.GA/server/default/deploy/jbpm/jbpm-se
rvice.sar/juel-impl.jar], DelegatingHandler(a)18862661[path=jbpm/jbpm-service.sar/
juel.jar context=file:/E:/home/all/jbpm-4.1/jboss-5.0.0.GA/server/default/deploy
/ real=file:/E:/home/all/jbpm-4.1/jboss-5.0.0.GA/server/default/deploy/jbpm/jbpm
-service.sar/juel.jar], DelegatingHandler(a)2481330[path=jbpm/jbpm-service.sar/liv
etribe-jsr223.jar context=file:/E:/home/all/jbpm-4.1/jboss-5.0.0.GA/server/defau
lt/deploy/ real=file:/E:/home/all/jbpm-4.1/jboss-5.0.0.GA/server/default/deploy/
jbpm/jbpm-service.sar/livetribe-jsr223.jar]] delegates=null exported=[, de.odys
seus.el.tree.impl, freemarker, org.jbpm.integration.spi, org.jbpm.integration.co
nsole.forms, freemarker.ext.dom, de.odysseus.el.tree.impl.ast, org.jbpm.integrat
ion.console.graphView, META-INF.maven.org.livetribe.livetribe-jsr223, freemarker
.ext.jython, META-INF.maven.org.jbpm.jbpm4.jbpm-spi, javax.script, org.jbpm.inte
gration.util, freemarker.ext.beans, META-INF.maven.org.jbpm.jbpm4.jbpm-console-i
ntegration, META-INF.maven.org.jbpm.jbpm4.jbpm-console-graphView-plugin, de.odys
seus.el.tree, freemarker.debug.impl, freemarker.core, META-INF.maven.org.jbpm.jb
pm4.jbpm-console-form-plugin, freemarker.ext.servlet, freemarker.ext.util, javax
.el, de.odysseus.el.misc, freemarker.debug, freemarker.cache, de.odysseus.el.uti
l, org.jbpm.integration.console, freemarker.ext.xml, META-INF, de.odysseus.el, f
reemarker.ext.jdom, freemarker.template.utility, freemarker.ext.jsp, freemarker.
log, freemarker.ext.rhino, META-INF.services, com.sun.script.juel, org.jbpm.inte
gration.spi.mgmt, freemarker.template, freemarker.ext.ant] <IMPORT-ALL>NON_EMPTY
}})
[start-jboss] at org.jboss.resource.adapter.jdbc.xa.XAManagedConnectionFactory
.getXADataSource(XAManagedConnectionFactory.java:582)
[start-jboss] at org.jboss.resource.adapter.jdbc.xa.XAManagedConnectionFactory
.getXAManagedConnection(XAManagedConnectionFactory.java:449)
[start-jboss] ... 50 more
[start-jboss] Caused by: java.lang.ClassNotFoundException: com.mysql.jdbc.jdbc2.
optional.MysqlXADataSource from BaseClassLoader@25b3d5{VFSClassLoaderPolicy@1416
b2d{name=vfsfile:/E:/home/all/jbpm-4.1/jboss-5.0.0.GA/server/default/deploy/jbpm
/jbpm-service.sar/ domain=ClassLoaderDomain@8a6fc{name=DefaultDomain parentPolic
y=BEFORE parent=org.jboss.system.NoAnnotationURLClassLoader@14c1103} roots=[Memo
ryContextHandler@31692960[path= context=vfsmemory://5c4o1k1-37hjqk-g1pb2npu-1-g1
pb3g3u-11 real=vfsmemory://5c4o1k1-37hjqk-g1pb2npu-1-g1pb3g3u-11], FileHandler@2
0529339[path=jbpm/jbpm-service.sar context=file:/E:/home/all/jbpm-4.1/jboss-5.0.
0.GA/server/default/deploy/ real=file:/E:/home/all/jbpm-4.1/jboss-5.0.0.GA/serve
r/default/deploy/jbpm/jbpm-service.sar/], DelegatingHandler@29933798[path=jbpm/j
bpm-service.sar/freemarker.jar context=file:/E:/home/all/jbpm-4.1/jboss-5.0.0.GA
/server/default/deploy/ real=file:/E:/home/all/jbpm-4.1/jboss-5.0.0.GA/server/de
fault/deploy/jbpm/jbpm-service.sar/freemarker.jar], DelegatingHandler@15750284[p
ath=jbpm/jbpm-service.sar/jbpm-console-form-plugin.jar context=file:/E:/home/all
/jbpm-4.1/jboss-5.0.0.GA/server/default/deploy/ real=file:/E:/home/all/jbpm-4.1/
jboss-5.0.0.GA/server/default/deploy/jbpm/jbpm-service.sar/jbpm-console-form-plu
gin.jar], DelegatingHandler(a)4113990[path=jbpm/jbpm-service.sar/jbpm-console-grap
hView-plugin.jar context=file:/E:/home/all/jbpm-4.1/jboss-5.0.0.GA/server/defaul
t/deploy/ real=file:/E:/home/all/jbpm-4.1/jboss-5.0.0.GA/server/default/deploy/j
bpm/jbpm-service.sar/jbpm-console-graphView-plugin.jar], DelegatingHandler@21703
981[path=jbpm/jbpm-service.sar/jbpm-console-integration.jar context=file:/E:/hom
e/all/jbpm-4.1/jboss-5.0.0.GA/server/default/deploy/ real=file:/E:/home/all/jbpm
-4.1/jboss-5.0.0.GA/server/default/deploy/jbpm/jbpm-service.sar/jbpm-console-int
egration.jar], DelegatingHandler(a)8584079[path=jbpm/jbpm-service.sar/jbpm-spi.jar
context=file:/E:/home/all/jbpm-4.1/jboss-5.0.0.GA/server/default/deploy/ real=f
ile:/E:/home/all/jbpm-4.1/jboss-5.0.0.GA/server/default/deploy/jbpm/jbpm-service
.sar/jbpm-spi.jar], DelegatingHandler(a)22123681[path=jbpm/jbpm-service.sar/juel-e
ngine.jar context=file:/E:/home/all/jbpm-4.1/jboss-5.0.0.GA/server/default/deplo
y/ real=file:/E:/home/all/jbpm-4.1/jboss-5.0.0.GA/server/default/deploy/jbpm/jbp
m-service.sar/juel-engine.jar], DelegatingHandler@16058616[path=jbpm/jbpm-servic
e.sar/juel-impl.jar context=file:/E:/home/all/jbpm-4.1/jboss-5.0.0.GA/server/def
ault/deploy/ real=file:/E:/home/all/jbpm-4.1/jboss-5.0.0.GA/server/default/deplo
y/jbpm/jbpm-service.sar/juel-impl.jar], DelegatingHandler@18862661[path=jbpm/jbp
m-service.sar/juel.jar context=file:/E:/home/all/jbpm-4.1/jboss-5.0.0.GA/server/
default/deploy/ real=file:/E:/home/all/jbpm-4.1/jboss-5.0.0.GA/server/default/de
ploy/jbpm/jbpm-service.sar/juel.jar], DelegatingHandler@2481330[path=jbpm/jbpm-s
ervice.sar/livetribe-jsr223.jar context=file:/E:/home/all/jbpm-4.1/jboss-5.0.0.G
A/server/default/deploy/ real=file:/E:/home/all/jbpm-4.1/jboss-5.0.0.GA/server/d
efault/deploy/jbpm/jbpm-service.sar/livetribe-jsr223.jar]] delegates=null expor
ted=[, de.odysseus.el.tree.impl, freemarker, org.jbpm.integration.spi, org.jbpm.
integration.console.forms, freemarker.ext.dom, de.odysseus.el.tree.impl.ast, org
.jbpm.integration.console.graphView, META-INF.maven.org.livetribe.livetribe-jsr2
23, freemarker.ext.jython, META-INF.maven.org.jbpm.jbpm4.jbpm-spi, javax.script,
org.jbpm.integration.util, freemarker.ext.beans, META-INF.maven.org.jbpm.jbpm4.
jbpm-console-integration, META-INF.maven.org.jbpm.jbpm4.jbpm-console-graphView-p
lugin, de.odysseus.el.tree, freemarker.debug.impl, freemarker.core, META-INF.mav
en.org.jbpm.jbpm4.jbpm-console-form-plugin, freemarker.ext.servlet, freemarker.e
xt.util, javax.el, de.odysseus.el.misc, freemarker.debug, freemarker.cache, de.o
dysseus.el.util, org.jbpm.integration.console, freemarker.ext.xml, META-INF, de.
odysseus.el, freemarker.ext.jdom, freemarker.template.utility, freemarker.ext.js
p, freemarker.log, freemarker.ext.rhino, META-INF.services, com.sun.script.juel,
org.jbpm.integration.spi.mgmt, freemarker.template, freemarker.ext.ant] <IMPORT
-ALL>NON_EMPTY}}
[start-jboss] at org.jboss.classloader.spi.base.BaseClassLoader.loadClass(Base
ClassLoader.java:385)
[start-jboss] at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
[start-jboss] at org.jboss.resource.adapter.jdbc.xa.XAManagedConnectionFactory
.getXADataSource(XAManagedConnectionFactory.java:544)
[start-jboss] ... 51 more
[start-jboss] 02:55:28,474 WARN [SettingsFactory] Could not obtain connection m
etadata
What is the problem, and how can I fix it? It's OK when using hsqldb with JBoss or using MySQL with Tomcat.
I'm trying jBPM 4.1 with MySQL 5.0.
thank you!
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4264376#4264376
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4264376
16 years, 5 months
[jBPM Users] - JBPM under websphere 7
by amezzi
Hi,
I'm having a seam application with JBPM . the JBPM part is running very well under jboos 5( JBPM creats its tables in the databse) , I configured the same app to run under websphere 7 , everything runs well except JBPM that fails on server startup , my hibernate.cfg ,my jbpm.cfg as well as jbpm-jbdl.jar and jbpm`s process definition file are all under the ear root , so when websphere starts , i get the follwing exceptions:
org.jbpm.jpdl.xml.JpdlXmlReader readProcessDefinition couldn't parse process definition
org.dom4j.DocumentException: null Nested exception: null
at org.dom4j.io.SAXReader.read(SAXReader.java:484)
at org.jbpm.jpdl.xml.JpdlParser.parse(JpdlParser.java:58)
at org.jbpm.jpdl.xml.JpdlXmlReader.readProcessDefinition(JpdlXmlReader.java:141)
at org.jbpm.graph.def.ProcessDefinition.parseXmlInputStream(ProcessDefinition.java:180)
at org.jbpm.graph.def.ProcessDefinition.parseXmlResource(ProcessDefinition.java:161)
at org.jboss.seam.bpm.Jbpm.deployProcess(Jbpm.java:311)
at org.jboss.seam.bpm.Jbpm.installProcessDefinitions(Jbpm.java:294)
at org.jboss.seam.bpm.Jbpm.startup(Jbpm.java:80)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
at java.lang.reflect.Method.invoke(Method.java:599)
at org.jboss.seam.util.Reflections.invoke(Reflections.java:22)
at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:144)
at org.jboss.seam.Component.callComponentMethod(Component.java:2249)
at org.jboss.seam.Component.callCreateMethod(Component.java:2172)
at org.jboss.seam.Component.newInstance(Component.java:2132)
at org.jboss.seam.contexts.Contexts.startup(Contexts.java:304)
at org.jboss.seam.contexts.Contexts.startup(Contexts.java:278)
at org.jboss.seam.contexts.ServletLifecycle.endInitialization(ServletLifecycle.java:116)
at org.jboss.seam.init.Initialization.init(Initialization.java:740)
at org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.java:36)
at com.ibm.ws.webcontainer.webapp.WebApp.notifyServletContextCreated(WebApp.java:1591)
at com.ibm.ws.webcontainer.webapp.WebApp.commonInitializationFinish(WebApp.java:353)
at com.ibm.ws.webcontainer.webapp.WebAppImpl.initialize(WebAppImpl.java:293)
at com.ibm.ws.webcontainer.webapp.WebGroupImpl.addWebApplication(WebGroupImpl.java:100)
at com.ibm.ws.webcontainer.VirtualHostImpl.addWebApplication(VirtualHostImpl.java:166)
at com.ibm.ws.webcontainer.WSWebContainer.addWebApp(WSWebContainer.java:728)
at com.ibm.ws.webcontainer.WSWebContainer.addWebApplication(WSWebContainer.java:613)
at com.ibm.ws.webcontainer.component.WebContainerImpl.install(WebContainerImpl.java:376)
at com.ibm.ws.webcontainer.component.WebContainerImpl.start(WebContainerImpl.java:668)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:1144)
at com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectStart(DeployedApplicationImpl.java:1313)
at com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModuleImpl.java:611)
at com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:938)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:723)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:2068)
at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.start(CompositionUnitMgrImpl.java:437)
at com.ibm.ws.runtime.component.CompositionUnitImpl.start(CompositionUnitImpl.java:122)
at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.start(CompositionUnitMgrImpl.java:380)
at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.access$300(CompositionUnitMgrImpl.java:108)
at com.ibm.ws.runtime.component.CompositionUnitMgrImpl$CUInitializer.run(CompositionUnitMgrImpl.java:935)
at com.ibm.wsspi.runtime.component.WsComponentImpl$_AsynchInitializer.run(WsComponentImpl.java:349)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1527)
Nested exception:
java.net.MalformedURLException
at java.net.URL.(URL.java:601)
at java.net.URL.(URL.java:464)
at java.net.URL.(URL.java:413)
at org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(Unknown Source)
at org.apache.xerces.impl.XMLVersionDetector.determineDocVersion(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
at org.dom4j.io.SAXReader.read(SAXReader.java:465)
at org.jbpm.jpdl.xml.JpdlParser.parse(JpdlParser.java:58)
at org.jbpm.jpdl.xml.JpdlXmlReader.readProcessDefinition(JpdlXmlReader.java:141)
at org.jbpm.graph.def.ProcessDefinition.parseXmlInputStream(ProcessDefinition.java:180)
at org.jbpm.graph.def.ProcessDefinition.parseXmlResource(ProcessDefinition.java:161)
at org.jboss.seam.bpm.Jbpm.deployProcess(Jbpm.java:311)
at org.jboss.seam.bpm.Jbpm.installProcessDefinitions(Jbpm.java:294)
at org.jboss.seam.bpm.Jbpm.startup(Jbpm.java:80)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
at java.lang.reflect.Method.invoke(Method.java:599)
at org.jboss.seam.util.Reflections.invoke(Reflections.java:22)
at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:144)
at org.jboss.seam.Component.callComponentMethod(Component.java:2249)
at org.jboss.seam.Component.callCreateMethod(Component.java:2172)
at org.jboss.seam.Component.newInstance(Component.java:2132)
at org.jboss.seam.contexts.Contexts.startup(Contexts.java:304)
at org.jboss.seam.contexts.Contexts.startup(Contexts.java:278)
at org.jboss.seam.contexts.ServletLifecycle.endInitialization(ServletLifecycle.java:116)
at org.jboss.seam.init.Initialization.init(Initialization.java:740)
at org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.java:36)
at com.ibm.ws.webcontainer.webapp.WebApp.notifyServletContextCreated(WebApp.java:1591)
at com.ibm.ws.webcontainer.webapp.WebApp.commonInitializationFinish(WebApp.java:353)
at com.ibm.ws.webcontainer.webapp.WebAppImpl.initialize(WebAppImpl.java:293)
at com.ibm.ws.webcontainer.webapp.WebGroupImpl.addWebApplication(WebGroupImpl.java:100)
at com.ibm.ws.webcontainer.VirtualHostImpl.addWebApplication(VirtualHostImpl.java:166)
at com.ibm.ws.webcontainer.WSWebContainer.addWebApp(WSWebContainer.java:728)
at com.ibm.ws.webcontainer.WSWebContainer.addWebApplication(WSWebContainer.java:613)
at com.ibm.ws.webcontainer.component.WebContainerImpl.install(WebContainerImpl.java:376)
at com.ibm.ws.webcontainer.component.WebContainerImpl.start(WebContainerImpl.java:668)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:1144)
at com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectStart(DeployedApplicationImpl.java:1313)
at com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModuleImpl.java:611)
at com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:938)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:723)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:2068)
at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.start(CompositionUnitMgrImpl.java:437)
at com.ibm.ws.runtime.component.CompositionUnitImpl.start(CompositionUnitImpl.java:122)
at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.start(CompositionUnitMgrImpl.java:380)
at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.access$300(CompositionUnitMgrImpl.java:108)
at com.ibm.ws.runtime.component.CompositionUnitMgrImpl$CUInitializer.run(CompositionUnitMgrImpl.java:935)
at com.ibm.wsspi.runtime.component.WsComponentImpl$_AsynchInitializer.run(WsComponentImpl.java:349)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1527)
[09-11-06 11:54:13:416 EST] 00000014 FfdcProvider I com.ibm.ws.ffdc.impl.FfdcProvider logIncident FFDC1003I: Incident FFDC émis sur C:\IBM\SDP\runtimes\base_v7\profiles\SGCIProfile\logs\ffdc\server1_7bdb7bdb_09.11.06_11.54.12.7666288080441772851559.txt com.ibm.ws.webcontainer.webapp.WebApp.notifyServletContextCreated 1341
[09-11-06 11:54:13:416 EST] 00000014 webapp E com.ibm.ws.webcontainer.webapp.WebApp notifyServletContextCreated SRVE0283E: Exception interceptée lors de l''initialisation du contexte : {0}
org.jboss.seam.InstantiationException: Could not instantiate Seam component: org.jboss.seam.bpm.jbpm
at org.jboss.seam.Component.newInstance(Component.java:2144)
at org.jboss.seam.contexts.Contexts.startup(Contexts.java:304)
at org.jboss.seam.contexts.Contexts.startup(Contexts.java:278)
at org.jboss.seam.contexts.ServletLifecycle.endInitialization(ServletLifecycle.java:116)
at org.jboss.seam.init.Initialization.init(Initialization.java:740)
at org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.java:36)
at com.ibm.ws.webcontainer.webapp.WebApp.notifyServletContextCreated(WebApp.java:1591)
at com.ibm.ws.webcontainer.webapp.WebApp.commonInitializationFinish(WebApp.java:353)
at com.ibm.ws.webcontainer.webapp.WebAppImpl.initialize(WebAppImpl.java:293)
at com.ibm.ws.webcontainer.webapp.WebGroupImpl.addWebApplication(WebGroupImpl.java:100)
at com.ibm.ws.webcontainer.VirtualHostImpl.addWebApplication(VirtualHostImpl.java:166)
at com.ibm.ws.webcontainer.WSWebContainer.addWebApp(WSWebContainer.java:728)
at com.ibm.ws.webcontainer.WSWebContainer.addWebApplication(WSWebContainer.java:613)
at com.ibm.ws.webcontainer.component.WebContainerImpl.install(WebContainerImpl.java:376)
at com.ibm.ws.webcontainer.component.WebContainerImpl.start(WebContainerImpl.java:668)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:1144)
at com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectStart(DeployedApplicationImpl.java:1313)
at com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModuleImpl.java:611)
at com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:938)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:723)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:2068)
at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.start(CompositionUnitMgrImpl.java:437)
at com.ibm.ws.runtime.component.CompositionUnitImpl.start(CompositionUnitImpl.java:122)
at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.start(CompositionUnitMgrImpl.java:380)
at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.access$300(CompositionUnitMgrImpl.java:108)
at com.ibm.ws.runtime.component.CompositionUnitMgrImpl$CUInitializer.run(CompositionUnitMgrImpl.java:935)
at com.ibm.wsspi.runtime.component.WsComponentImpl$_AsynchInitializer.run(WsComponentImpl.java:349)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1527)
Caused by: java.lang.RuntimeException: could not deploy a process definition
at org.jboss.seam.bpm.Jbpm.installProcessDefinitions(Jbpm.java:300)
at org.jboss.seam.bpm.Jbpm.startup(Jbpm.java:80)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
at java.lang.reflect.Method.invoke(Method.java:599)
at org.jboss.seam.util.Reflections.invoke(Reflections.java:22)
at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:144)
at org.jboss.seam.Component.callComponentMethod(Component.java:2249)
at org.jboss.seam.Component.callCreateMethod(Component.java:2172)
at org.jboss.seam.Component.newInstance(Component.java:2132)
... 27 more
Caused by: org.jbpm.jpdl.JpdlException: [[ERROR] couldn't parse process definition]
at org.jbpm.jpdl.xml.JpdlXmlReader.readProcessDefinition(JpdlXmlReader.java:172)
at org.jbpm.graph.def.ProcessDefinition.parseXmlInputStream(ProcessDefinition.java:180)
at org.jbpm.graph.def.ProcessDefinition.parseXmlResource(ProcessDefinition.java:161)
at org.jboss.seam.bpm.Jbpm.deployProcess(Jbpm.java:311)
at org.jboss.seam.bpm.Jbpm.installProcessDefinitions(Jbpm.java:294)
any kind of help will be apreciated
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4264367#4264367
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4264367
16 years, 5 months
[Clustering] - obtain cluster lock
by niefeng
Hi all,
Could I know what will be the available option for us to ensure that no two md bean instance reside in different cluster node accessing the same shared resources?
The current approach i have identified is using the Hibernate LockMode.UPGRADE_NOWAIT. Whenever the md bean access the shared resource, it will acquire the lock via LockMode.UPGRADE_NOWAIT.
| Thus whenever the following error happened , it signal that other md bean instance in different cluster node is accessing.
|
| org.hibernate.exception.LockAcquisitionException: could not execute query
| at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:87)
| at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)
| at org.hibernate.loader.Loader.doList(Loader.java:2147)
Is the above mentioned approach recommended? Or any other mechanism is better in this scenario? Thanks!
My deploy env
JBOSS 405
oracle 10
niefeng
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4264364#4264364
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4264364
16 years, 5 months