- This topic has 3 replies, 2 voices, and was last updated 17 years, 10 months ago by Riyad Kalla.
-
AuthorPosts
-
sunil1808MemberHi,
I’m using MyEclipse 5.1 with eclipse 3.2.0 and JBoss, 4.0.4 GA on windows desktop.I was getting the following ClassNotFoundException.
Throwable while trying to match ManagedConnection, destroying connection: org.jboss.resource.connectionmanager.
TxConnectionManager$TxConnectionEventListener@6df9bc[state=NORMAL mc=org.jboss.resource.adapter.jdbc.local.
LocalManagedConnection@2a3135 handles=0 lastUse=1172800375548 permit=false trackByTx=false mcp=org.jboss.resource.
connectionmanager.JBossManagedConnectionPool$OnePool@f8acd0 context=org.jboss.resource.connectionmanager.
InternalManagedConnectionPool@199049 xaResource=org.jboss.resource.connectionmanager.TxConnectionManager$LocalXAResource@4b7
b1 txSync=null]
java.lang.NoClassDefFoundError: org/jboss/resource/adapter/jdbc/ValidConnectionChecker
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)After incorporating the following jar, jboss-ejb3-all-2004-04-17.jar from http://www.docjar.com, I’m getting the following
NoSuchMethodError.
Throwable while trying to match ManagedConnection, destroying connection: org.jboss.resource.connectionmanager.
TxConnectionManager$TxConnectionEventListener@1845568[state=NORMAL mc=org.jboss.resource.adapter.jdbc.local.
LocalManagedConnection@17c8f7f handles=0 lastUse=1172799696171 permit=false trackByTx=false mcp=org.jboss.resource.
connectionmanager.JBossManagedConnectionPool$OnePool@1136da6 context=org.jboss.resource.connectionmanager.
InternalManagedConnectionPool@83df14 xaResource=org.jboss.resource.connectionmanager.TxConnectionManager$LocalXAResource@b
10190 txSync=null]
java.lang.NoSuchMethodError: org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory.getValidateOnMatch()Z
at org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory.matchManagedConnections(LocalManagedConnectionFactory.java:198)
at org.jboss.resource.connectionmanager.InternalManagedConnectionPool.getConnection(InternalManagedConnectionPool.java:206)
at org.jboss.resource.connectionmanager.JBossManagedConnectionPool$BasePool.getConnection(JBossManagedConnectionPool.java:540)
at org.jboss.resource.connectionmanager.BaseConnectionManager2.getManagedConnection(BaseConnectionManager2.java:339)
at org.jboss.resource.connectionmanager.TxConnectionManager.getManagedConnection(TxConnectionManager.java:301)
at org.jboss.resource.connectionmanager.BaseConnectionManager2.allocateConnection(BaseConnectionManager2.java:392)
at org.jboss.resource.connectionmanager.BaseConnectionManager2$ConnectionManagerProxy.allocateConnection(BaseConnectionManager2.java:836)
at org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:88)
at org.jboss.ejb.plugins.cmp.jdbc.SQLUtil.tableExists(SQLUtil.java:995)
at org.jboss.ejb.plugins.cmp.jdbc.JDBCStartCommand.createTable(JDBCStartCommand.java:566)
at org.jboss.ejb.plugins.cmp.jdbc.JDBCStartCommand.execute(JDBCStartCommand.java:210)
at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.startStoreManager(JDBCStoreManager.java:499)
at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.start(JDBCStoreManager.java:396)
at org.jboss.ejb.plugins.CMPPersistenceManager.start(CMPPersistenceManager.java:172)
at org.jboss.ejb.EntityContainer.startPmAndInterceptors(EntityContainer.java:1062)
at org.jboss.ejb.EjbModule.startService(EjbModule.java:424)
at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
at sun.reflect.GeneratedMethodAccessor75.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
at $Proxy0.start(Unknown Source)
at org.jboss.system.ServiceController.start(ServiceController.java:417)Please help me reolve this problem. I’ve once again checked the class LocalManagedConnectionFactory on http://www.docjar.com and I
didn’t find the method, getValidateOnMatch().
Not sure whether for the above error, when I’m trying to access my struts based web application (ear containing a war); I’m
getting the following error, “”WARN [[action]] Servlet action is currently unavailable””. I’ve proper entry in the web.xml
pointing to the struts-config.xml and I’ve proper entries in the struts-config.xml
Thanking you in advance,
Sunil.
Riyad KallaMemberSunil,
It’s hard to say. It looks like you grabbed an incompatible version of that JAR though since you are seeing NoSuchMethodExceptions.
sunil1808Member@support-rkalla wrote:
Sunil,
It’s hard to say. It looks like you grabbed an incompatible version of that JAR though since you are seeing NoSuchMethodExceptions.Hi Riyad,
Could you please point me to the location where I can get the right jar for the first part of the problem (or the original problem, for which I went ahead and picked the jar from doc.jar).
This is my original problem,
I was getting the following ClassNotFoundException.Throwable while trying to match ManagedConnection, destroying connection: org.jboss.resource.connectionmanager.
TxConnectionManager$TxConnectionEventListener@6df9bc[state=NORMAL mc=org.jboss.resource.adapter.jdbc.local.
LocalManagedConnection@2a3135 handles=0 lastUse=1172800375548 permit=false trackByTx=false mcp=org.jboss.resource.
connectionmanager.JBossManagedConnectionPool$OnePool@f8acd0 context=org.jboss.resource.connectionmanager.
InternalManagedConnectionPool@199049 xaResource=org.jboss.resource.connectionmanager.TxConnectionManager$LocalXAResource@4b7
b1 txSync=null]
java.lang.NoClassDefFoundError: org/jboss/resource/adapter/jdbc/ValidConnectionChecker
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
Riyad KallaMemberNo, I’m sorry I can’t point you to the correct version because I am not familiar with the JBoss software that you need, what version you need, etc.
-
AuthorPosts