cancel
Showing results for 
Search instead for 
Did you mean: 

Error after Deploying a .ear File

Former Member
0 Kudos

Hi,

I have deployed an .ear file on the SAP J2EE engine 6.20 on EP6.0 sp2. When I access one of the JSP's, I am getting a NoClassDefFound exception even though the particular jar (xml-apis.jar) file containing the class is in the additional-lib directory. Also, the jar file has been added to the classpath in go.bat? What other changes are to be done for a successful deployment?

Environment :EP6.0, sp2 hotfix4 on Windows 2003, MS SQL server DB.

Please reply ASAP

Thanks

Bhanu

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Bhanu,

did you make an entry for your library JAR file into the library.txt file?

the entry should look like:

library xml-api xml-api.jar

For more information, see the documentation that comes with J2EE Engine: Administration Manual -> Configuration Tasks -> Configuration of Additional Libraries.

Good luck!

Former Member
0 Kudos

Hi Ivalylo,

Yes, I did that. However it did not work. I tried the steps as indicated in the document. But that failed too.

I tried using the Node class from SAP. (inqmyxml.jar) My application is not able to find the org\w3c\dom\Node Class in inqmyxml.jar file. How should i place this jar file in the classpath?

regards

Bhanu

Former Member
0 Kudos

hello,

have you tried including the 3rd party jar in your EAR file itself?

i use a number of external jars in my web app and ejb, including some xml parsing classes. what i did was to put them all in the EAR, at the root level, in other words, not in a sub-directory. then in my WAR's meta-inf/MANIFEST.MF file reference them in the Class-path. do simililar thing for the ejbs if necessary.

when you tried to use the inqxml instead, did you make a reference in manager/referecen.txt from your app to the inqmy library? if so, did you look into the inqmyxml.jar to see if the Node class is actually there?

regards,

wentao

Former Member
0 Kudos

Hi,

Thanks for the input.

I was able to resolve the problem after putting sapxmltoolkit.jar file in the classpath.

Thanks

Bhanu