NoSuchMethodError bcel - prior forum answers tried
lithous2 Aug 30, 2004 2:53 PMWhen trying to upgrade from CMP 1.1 to 2.0 I have run into the bcel problem. I don't have an "endorsed" directory under my JAVA_HOME and I checked my xalan.jarS. Here are a couple things that stand out that may help solve the problem I am having:
1. The return type specified from my createNewArray() is AllocationInstruction. All the other posts seem to have Instruction as the return type specified by that method.
2. I openned my bcel.jar up which is in my deploy lib area (extracted the InstructionFactory.class for later) and deleted that the InstructionFactory.class out of the jar. I then got a "NoClassDefFoundError: org/apache/bcel/generic/InstructionFactory". I assume this tells me that this is the only bcel classes seen by JBoss. So all my looking into xalan,xsltr, and other jars was understandably fruitless.
Here is my error I am hunting down:
14:18:19,579 ERROR [MainDeployer] could not start deployment: file:/C:/jboss-3.0.8_tomcat-4.1.24/server/GWN/deploy/XYZ.ear/XYZCore.jar/
java.lang.NoSuchMethodError: org.apache.bcel.generic.InstructionFactory.createNewArray(Lorg/apache/bcel/generic/Type;S)L
org/apache/bcel/generic/AllocationInstruction;
at org.jboss.proxy.compiler.ProxyImplementationFactory.createProxyMethod(ProxyImplementationFactory.java:319)
at org.jboss.proxy.compiler.ProxyCompiler.getCode(ProxyCompiler.java:167)
at org.jboss.proxy.compiler.Runtime.makeProxyType(Runtime.java:66)
at org.jboss.proxy.compiler.ProxyCompiler.(ProxyCompiler.java:76)
at org.jboss.proxy.compiler.Proxies$Impl.newTarget(Proxies.java:580)
at org.jboss.proxy.compiler.Proxies.newTarget(Proxies.java:77)
at org.jboss.proxy.compiler.Proxy.newProxyInstance(Proxy.java:49)
at org.jboss.ejb.plugins.cmp.jdbc.JDBCCreateBeanClassInstanceCommand.(JDBCCreateBeanClassInstanceCommand.j
ava:52)
at org.jboss.ejb.plugins.cmp.jdbc.JDBCCommandFactory.createCreateBeanClassInstanceCommand(JDBCCommandFactory.jav
a:97)
at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.startStoreManager(JDBCStoreManager.java:436)
at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.start(JDBCStoreManager.java:369)
at org.jboss.ejb.plugins.CMPPersistenceManager.start(CMPPersistenceManager.java:198)
at org.jboss.ejb.EntityContainer.start(EntityContainer.java:376)
at org.jboss.ejb.Container.invoke(Container.java:756)
at org.jboss.ejb.EntityContainer.invoke(EntityContainer.java:1058)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:1003)
Thanks for looking.
BTW, I am on WinXP, JBoss 3.0.8 (as seen in the exception), Java1.4.0.