1 Reply Latest reply: Oct 17, 2012 7:22 AM by Sachin Gupta RSS

    P6 WSDemo App

    968405
      I'm not sure if this is the correct place to put this, but here goes. With our purchase of Primavera 6 we were given the java source code to a simple application that exports a project to the local drive as an xml file. When the application opens, it asks for username, password, host name, and port. After entering all of the required information and clicking next through the following screens, I get the response below:


      Any idea as to what might be the problem?


      Response was of unexpected text/html ContentType. Incoming portion of HTML stream: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Draft//EN">
      <HTML>
      <HEAD>
      <TITLE>Error 500--Internal Server Error</TITLE>
      <META NAME="GENERATOR" CONTENT="WebLogic Server">
      </HEAD>
      <BODY bgcolor="white">
      <FONT FACE=Helvetica><BR CLEAR=all>
      <TABLE border=0 cellspacing=5><TR><TD><BR CLEAR=all>
      <FONT FACE="Helvetica" COLOR="black" SIZE="3"><H2>Error 500--Internal Server Error</H2>
      </FONT></TD></TR>
      </TABLE>
      <TABLE border=0 width=100% cellpadding=10><TR><TD VALIGN=top WIDTH=100% BGCOLOR=white><FONT FACE="Courier New"><pre>java.lang.NoClassDefFoundError: com/sun/xml/messaging/saaj/soap/SOAPDocumentImpl
           at com.sun.xml.messaging.saaj.soap.SOAPPartImpl.<init>(SOAPPartImpl.java:119)
           at com.sun.xml.messaging.saaj.soap.ver1_1.Message1_1Impl.getSOAPPart(Message1_1Impl.java:109)
           at org.apache.cxf.binding.soap.saaj.SAAJInInterceptor.handleMessage(SAAJInInterceptor.java:104)
           at org.apache.cxf.binding.soap.saaj.SAAJInInterceptor.handleMessage(SAAJInInterceptor.java:71)
           at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:243)
           at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:110)
           at org.apache.cxf.transport.servlet.ServletDestination.invoke(ServletDestination.java:98)
           at org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:423)
           at org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:178)
           at org.apache.cxf.transport.servlet.AbstractCXFServlet.invoke(AbstractCXFServlet.java:142)
           at org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(AbstractHTTPServlet.java:179)
           at org.apache.cxf.transport.servlet.AbstractHTTPServlet.doPost(AbstractHTTPServlet.java:103)
           at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
           at org.apache.cxf.transport.servlet.AbstractHTTPServlet.service(AbstractHTTPServlet.java:159)
           at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
           at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
           at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
           at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:183)
           at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3717)
           at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
           at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
           at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
           at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
           at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
           at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
           at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
           at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
      </pre></FONT></TD></TR>
      </TABLE>

      </BODY>
      </HTML>


      -----------------------------
      --- End WS Demo ---
      -----------------------------
        • 1. Re: P6 WSDemo App
          Sachin Gupta
          This must be related to P6 Web Service demo. Assuming you have the Web services installed and deployed on the application server like webLogic or WebSphere, there was one step where you need to copy the endorsed folder to ../jre/lib folder. This step might be missing is your case. Copy the endorsed folder from WS Home to jre/lib folder and restart the application server, you will not see this error.

          Let me know if this works for you.

          Sachin Gupta