I am trying to connect my J2EE application with SAP software using ABAP function calls. When I run it as a single class in Eclipse with hot coded values, it works fine. When I try to run it in JBoss server, where I am getting some values from my front end and passing it to my Java class which is the same class I referred before, it shows this following exception
java.lang.NoClassDefFoundError: com/sap/conn/jco/JCoException at java.lang.Class.getDeclaredMethods0(Native Method) at java.lang.Class.privateGetDeclaredMethods(Unknown Source) at java.lang.Class.privateGetPublicMethods(Unknown Source) at java.lang.Class.getMethods(Unknown Source) at org.jboss.aop.ClassContainer.createMethodMap(ClassContainer.java:182) 09:35:42,326 INFO [EARDeployer] Started J2EE application: file:/F:/jboss/jboss-4.2.3.GA/server/default/deploy/MPCS.ear 09:35:42,326 ERROR [URLDeploymentScanner] Incomplete Deployment listing: --- MBeans waiting for other MBeans --- ObjectName: jboss.j2ee:service=EJB3,module=MPCS.jar State: FAILED Reason: java.lang.NoClassDefFoundError: com/sap/conn/jco/JCoException --- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM --- ObjectName: jboss.j2ee:service=EJB3,module=MPCS.jar State: FAILED Reason: java.lang.NoClassDefFoundError: com/sap/conn/jco/JCoException
I have my sapjco3.jar
in F:/jar
where I also have ejb3-persistence.jar
, jboss-ejb3x.jar
, etc. and they are properly recognized. I have added the jar in build path also. But nothing helps.