-
1. Re: Deploy Ear in Jboss 7
sabbirali Dec 19, 2011 4:14 AM (in response to sabbirali)I resolve above problem when i added
Dependencies: org.apache.log4j in Ear's MANIFEST.MF
but got another error as below in EJB module class
Caused by: java.lang.NoClassDefFoundError: com/sap/mw/jco/JCO$Client
at java.lang.Class.getDeclaredMethods0(Native Method) [:1.6.0_10]
at java.lang.Class.privateGetDeclaredMethods(Class.java:2427) [:1.6.0_10]
at java.lang.Class.getDeclaredMethods(Class.java:1791) [:1.6.0_10]
at org.jboss.as.server.deployment.reflect.ClassReflectionIndex.<init>(ClassReflectionIndex.java:65) [jboss-as-server-7.0.2.Final.jar:7.0.2.Final]
at org.jboss.as.server.deployment.reflect.DeploymentReflectionIndex.getClassIndex(DeploymentReflectionIndex.java:66) [jboss-as-server-7.0.2.Final.jar:7.0.2.Final]
... 11 more
Caused by: java.lang.ClassNotFoundException: com.sap.mw.jco.JCO$Client from [Module "deployment.IASEar.ear.IASEJB.jar:main" from Service Module Loader]
at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:191)
at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:361)
at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:333)
at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:333)
at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:310)
at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:103)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320) [:1.6.0_10]
... 16 more
Quick response appreciate....
-
2. Re: Deploy Ear in Jboss 7
ctomc Dec 19, 2011 6:34 AM (in response to sabbirali)You are probably missing sap jconnector jar in your ear lib
-
3. Re: Deploy Ear in Jboss 7
sabbirali Dec 19, 2011 6:46 AM (in response to ctomc)no sap connector jar file is already there
-
4. Re: Deploy Ear in Jboss 7
ctomc Dec 19, 2011 7:07 AM (in response to sabbirali)what does the output of jar tf <name-of-your-ear>.ear prints out?
Do you have MANIFEST.MF present in your ejb-jar? If yes, what are the entries?
cheers,
tomaz
-
5. Re: Deploy Ear in Jboss 7
sabbirali Dec 19, 2011 8:31 AM (in response to ctomc)output of jar tf command as below
D:\Temp Document>jar tf IASEar.ear
META-INF/MANIFEST.MF
IASCommon.jar
IASEJB.jar
IASWeb-Strust2.war
META-INF/
META-INF/application.xml
libs/ojdbc5.jar
libs/sapjco.jar
-
6. Re: Deploy Ear in Jboss 7
ebross Dec 19, 2011 3:26 PM (in response to sabbirali)Some hints:
1 Find in which project “com.sap.mw.jco.JCO$Client” belongs and add it to the IASEJB build path
2. Since IASCommon is a utility project, it should go under IASEAR/libs
2. (Not the problem) You also what to update you xsd to:<application xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:application="http://java.sun.com/xml/ns/javaee/application_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/application_6.xsd" version="6">
If it doesn't work, I would need to know more about com.sap.mw.jco.JCO$Client (i.e., nature of the project) to improve my next response.
Cheers
-
7. Re: Deploy Ear in Jboss 7
ctomc Dec 19, 2011 3:03 PM (in response to sabbirali)Does IASEJB.jar have any class-path defined in manifest.mf? if not, can you set it up for "sapjco.jar" ?
If you use maven, you just say to add classpath for ejbs
-
8. Re: Deploy Ear in Jboss 7
sabbirali Dec 20, 2011 3:53 AM (in response to sabbirali)I have resolved above error
1. I copy all common jar in IASEar folder. not in libs folder.
2. Add Class-Path: sapjco.jar in Menifest file for IASEJB.
3. Add Class-Path: sapjco.jar in Menifest file fof IASCommon.
Thanx all for your reply