cancel
Showing results for 
Search instead for 
Did you mean: 

What wrong with JCO and SAP

Former Member
0 Kudos

I add all necessary class for JCO in my package but it returns error.

=========================================

28 มิ.ย. 2550 16:09:31 org.apache.axis.utils.JavaUtils isAttachmentSupported

WARNING: Unable to find required classes (javax.activation.DataHandler and javax.mail.internet.MimeMultipart). Attachment support is disabled.

AxisFault

faultCode: Server.generalException

faultSubcode:

<b>faultString: java.lang.NoClassDefFoundError: com/sap/mw/jco/JCO; nested exception is:

java.lang.NoClassDefFoundError: com/sap/mw/jco/JCO</b> faultActor:

faultNode:

faultDetail:

hostname:tagdvtrat1

java.lang.NoClassDefFoundError: com/sap/mw/jco/JCO; nested exception is:

java.lang.NoClassDefFoundError: com/sap/mw/jco/JCO

at org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:222)

at org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:129)

at org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:1087)

at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(Unknown Source)

at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown Source)

at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown Source)

at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown Source)

at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(Unknown Source)

at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)

at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)

at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)

at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)

at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source)

at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)

at javax.xml.parsers.SAXParser.parse(Unknown Source)

at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)

at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)

at org.apache.axis.Message.getSOAPEnvelope(Message.java:435)>>

at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62)

at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)

at org.apache.axis.client.Call.invokeEngine(Call.java:2784)

at org.apache.axis.client.Call.invoke(Call.java:2767)

at org.apache.axis.client.Call.invoke(Call.java:2443)

at org.apache.axis.client.Call.invoke(Call.java:2366)

at org.apache.axis.client.Call.invoke(Call.java:1812)

at com.pda.IssueBAPISoapBindingStub.doIssue201(IssueBAPISoapBindingStub.java:144)

at com.pda.testWS.main(testWS.java:14)

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Definitely it is a problem of some missing jars which contains the classes "javax.activation.DataHandler and javax.mail.internet.MimeMultipart".

I think you need to add the activation.jar amd mail.jar in the classpath of the project and add the jars in the lib folder of the project.

Thanks

ritu

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Pornthep,

this is not the fault of JCO/SAP. There are jar files/classes missing in the classpath. If you are using Axis2 there are some good samples on how to deploy the web service using environmental variables (keywords AXIS2_HOME, ant and maven build file). This may help you to avoid missing libraries. In case you are using Axis1 you can adapt most of the deployment procedure.

Hope that this may help you.

Best regards

Frieder

Former Member
0 Kudos

Hi,

may be some jar files are missing in your application. Try it after adding the external jar files for the missing classes. I am also not sure wheather it will work or not but i also faced the same problem with jar files.