on 09-16-2014 12:57 PM
Dear Experts,
I am trying to test the JAVA mapping compiled in NWDS but receiving the error
"LinkageError at JavaMapping.load(): Could not load class".
java.lang.NoClassDefFoundError: JSONXMLProject/bin/com/sap/json/ConvJson2Xml (wrong name: com/sap/json/ConvJson2Xml)
at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClassCond(ClassLoader.java:735)
at java.lang.ClassLoader.defineClass(ClassLoader.java:716) at java.lang.ClassLoader.defineClass(ClassLoader.java:537)
at com.sap.aii.ib.server.mapping.execution.MappingLoader.findClass(MappingLoader.java:195)
Following are the details:
SAP PO 7.4
SP Stack Number 05
JDK Version jdk16
NWDS
SAP Enhancement Package 1 for SAP NetWeaver Developer Studio 7.3 SP10 PAT0000
1.Created the Project , Package and then class (Included the logic)
2. Included 1 JSON Jar file into my project and the Added to build path.
3.Exported the project as Archive File and saved in desktop
4.Imported into SAP PO system as Imported Archive
5.Could not observe the JSON jar file which i used as referenced JAR in NWDS
6.Tested in OM after referencing the JAVA class and found the above error.
I have JDK 5, 6 and 7 present in my local desktop and I am trying to export the compiled code using both JAVA SE 1.6 and 1.5 in NWDS seperatly after going several discussions.
Can any one hep me with the screenshots and tell me how to include all the reference jar files in exported project..
Regards..
Right click on Project Folder -> Build path-> Configure Build Path -> Order and Export ->select all the jar files that are required and then export it as a jar file.
In that jar(zip) file you should be able to see the class "ConvJson2Xml " at the location "JSONXMLProject/bin/com/sap/json"
If it doesn't work can you share the screenshot of your project navigation in NWDS?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Import the jars added in NWDS as Imported archive in ESR PI. The imported jars and the java mapping should be in the same SWCV.
Thanks,
Anand
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Dear Anand,
I did exactly as you shared. As the JSON jar has number of classes, then in OM all the Classes had to be assigned. Then the linkage error went.
But in execution , it shows a new error that all the classes of the JSON jar has to be implemented with interface StremTransformation or AbstractTransformation.
I assume in the Operation Mapping I will use only 1 class as JAVA Class. Anyway I am attaching the document with navigation.
Do we have any other alternative??
Please rename the extension of the document by remove .txt
Regards
User | Count |
---|---|
84 | |
24 | |
11 | |
9 | |
7 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.