cancel
Showing results for 
Search instead for 
Did you mean: 

MDM Session Exception While Creating Web Services

Former Member
0 Kudos

Hi all i am creating webservices over a java class. My Java class connects with MDM and fethes the data. When I am running my java class it is able to fetch the values from MDM but when i am exposing this method to web services I am getting request same as my method but the I am not getting any response, What i am getting is "An error has occurred. Maybe the request is not accepted by the server:

com/sap/mdm/session/MdmSessionContext" . Also the response is

HTTP/1.1 500 Internal Server Error

Connection: close

Server: SAP J2EE Engine/7.00

Content-Type: text/xml; charset=UTF-8

Date: Thu, 24 Sep 2009 17:04:02 GMT

<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ><SOAP-ENV:Body><SOAP-ENV:Fault><faultcode>SOAP-ENV:Server</faultcode><faultstring>com/sap/mdm/session/MdmSessionContext</faultstring><detail><ns1:java.lang.NoClassDefFoundError xmlns:ns1='http://sap-j2ee-engine/error'>com/sap/mdm/session/MdmSessionContext</ns1:java.lang.NoClassDefFoundError></detail></SOAP-ENV:Fault></SOAP-ENV:Body></SOAP-ENV:Envelope>

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

It looks like when you are running webservice it is not able to find some reference classes you might have missed to include one or more jar files while deploying the web service on server thats might be the reason as when you are running Java class it is working fine.

please follow below process and check if anything is missing.

Right click on project -> Properties -> Java Build Path

at this place you can see the reference projects and jar files in different tabs

go to tab Order & Export and see if the desired jar file is selected or not if not select it and deploy the application again.

Ninad

Former Member
0 Kudos

Hi Ninad,

I did the same. Still i am facing the same problem. I checked all the jars in java build path.

Former Member
0 Kudos

Have you rebuild the project and deployed the application on the server after this activity?

if still problem remains please post the stack trace to track the error

Ninad

Answers (1)

Answers (1)

Former Member
0 Kudos

Still facing the problem