jboss-2.4.6_Tomcat-4.0.3 + EJB
arvindbc Jul 23, 2002 5:59 PMWhen I deploy a simple EJB ,later to be used by my webservice I get the following errors
[INFO,J2eeDeployer] Create application SparePartPriceEJB.jar
[INFO,J2eeDeployer] install EJB module SparePartPriceEJB.jar
[INFO,ContainerFactory] Deploying:file:/C:/Java/JBoss-2.4.6_Tomcat-4.0.3/jboss/t
mp/deploy/Default/SparePartPriceEJB.jar
[ERROR,ContainerFactory] Verify failure
java.lang.NoClassDefFoundError: javax/ejb/SessionBean
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:488)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:11
The javax.ejb.SessionBean etc classes are located in jboss-j2ee.jar, which is located in jboss-2.4.6_Tomcat-4.0.3\jboss\lib\ext directroy.Isn't this supposed to be discoverd by Jboss-Tomcat automatically?.
Anyway ,I tried setting this in classsapth in run-with-catalina.bat file.Doing this gets rid of the above exception,but gives me
[INFO,ContainerFactory] Deploying SparePartPriceSessionBean
[ERROR,Proxies] unexpected error
java.lang.NoClassDefFoundError: org/jboss/proxy/Proxies$ProxyTarget
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:488)
at java.lang.ClassLoader.defineClass(ClassLoader.java:426)
at org.jboss.proxy.ProxyCompiler$Runtime.makeProxyType(ProxyCompiler.jav
a:160)
at org.jboss.proxy.ProxyCompiler.(ProxyCompiler.java:25)
at org.jboss.proxy.Proxies$Impl.makeProxyConstructor(Proxies.java:675)
at org.jboss.proxy.Proxies$Impl.newTarget(Proxies.java:550)
Then I tried adding all the jars in jboss-2.4.6_Tomcat-4.0.3\jboss\lib\ext directroy , then i got the following error
[ERROR,AutoDeployer] DeploymentInfo failed:file:/C:/Java/JBoss-2.4.6_Tomcat-4.0.
3/jboss/deploy/webtest.ear
java.lang.NullPointerException
at org.jboss.deployment.J2eeDeployer.installApplication(J2eeDeployer.jav
a:409)
at org.jboss.deployment.J2eeDeployer.deploy(J2eeDeployer.java:185)
at java.lang.reflect.Method.invoke(Native Method)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:16
It has been very frustarting.Any suggestions or ideas.
Thanks,
Arvind