cancel
Showing results for 
Search instead for 
Did you mean: 

JAXB Exception "java.lang.NoClassDefFoundError: javax/xml/bind/JAXBContext"

Former Member
0 Kudos

Hi Experts,

We are developing a WebDynpro for java application in NWDI for XML File Uploading, we have followed the below given process for that

1) Created one XSD as per the client table structure.

2) Developed one java webserver for the XSD file using jwsdp1.6

3) Copied that generated folder in WebDynpro application

4) Included all the required JAX-B jars as External jar files

5) Finally Compiles the application

When running the application it is throwing the below exception

500 Internal Server Error Web Dynpro Container/SAP J2EE Engine/6.40

Failed to process request. Please contact your system administrator.

Error Summary

While processing the current request, an exception occured which could not be handled by the application or the framework.

If the information contained on this page doesn't help you to find and correct the cause of the problem, please contact your system administrator. To facilitate analysis of the problem, keep a copy of this error page. Hint: Most browsers allow to select all content, copy it and then paste it into an empty document (e.g. email or simple text file).

Root Cause

The initial exception that caused the request to fail, was:

java.lang.NoClassDefFoundError: javax/xml/bind/JAXBContext

at com.ae.energy.scm.wdp.InternalXMLFileUpload.<init>(InternalXMLFileUpload.java:403)

at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)

at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)

at java.lang.reflect.Constructor.newInstance(Constructor.java:274)

We checked entire application to ensure all the required files included, Could you please give us the cause for this exception and please explain us the solution to resolve it.

We are very thankful for all the people who can give their support in resolving this issue.

Thanks in advance,

Sandeep Bonam

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

I'm able to resolve the issue in different approach. Thanks for the support.

Vlado
Advisor
Advisor
0 Kudos

Hi,

You've done only the design time part of the job. You also need a runtime reference from your application to the JAXB library (and this library needs to be built and deployed separately since AS Java 6.40 doesn't contain JAXB). For more information: [Working with J2EE Engine Libraries|http://help.sap.com/saphelp_nw04/helpdata/en/9f/2ade3fc6c6ec06e10000000a1550b0/frameset.htm].

HTH!

\-- Vladimir

Former Member
0 Kudos

Vladimar,

Thank you very much for the response. We deployed the jar files as seperate one, in NWDI all the common jar files created as one DC and deployed it into the WAS.

Thanks,

Sandeep Bonam