Running two jboss servers on one box problems. plz help
filipjboss Feb 12, 2005 11:12 AMHi,
I've run into a wall configuring two jboss servers on one machine.
It's a linux environment with jdk1.4 having two installations of jboss 3.0.4.
All the port numbers have been changed on the second jboss instance.
Everything works as expected on the first instance I started but on the second jboss server things don't work out as expected.
All the base services seem to startup correctly.
Then during initialization in the web container,
when accessing a stateless session bean, I get a linkage error.
java.lang.LinkageError: loader constraints violated when linking javax/transaction/UserTransaction class
at org.jboss.ejb.StatelessSessionEnterpriseContext.(StatelessSessionEnterpriseContext.java:45)
at org.jboss.ejb.plugins.StatelessSessionInstancePool.create(StatelessSessionInstancePool.java:61)
at org.jboss.ejb.plugins.AbstractInstancePool.get(AbstractInstancePool.java:209)
at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:63)
at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:107)
at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:178)
at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:60)
at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:130)
at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:204)
at org.jboss.ejb.StatelessSessionContainer.invoke(StatelessSessionContainer.java:313)
at org.jboss.ejb.Container.invoke(Container.java:712)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
at org.jboss.invocation.local.LocalInvoker.invoke(LocalInvoker.java:98)
at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:102)
at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:77)
at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:80)
at org.jboss.proxy.ejb.StatelessSessionInterceptor.invoke(StatelessSessionInterceptor.java:111)
at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:76)
The application deployed on server A nd B is identical. The only difference exist in the ports and db used.
Can anybody shed some light on why this could happens only in the 2nd application?
I thought it might have something to do with that the webcontainer from server B loads something from server A. Is this possibly the reason?
What could I do to solve this?
Any suggestions would be greatly appreciated as I'm reaching close to despair.