Skip to Content
author's profile photo
Former Member

EP 6.9 JCA SimpleSapConnection not working

Hallo,

I tried to get the JCA example in EP 6.0 working but, it compiles ok, the upload to the portal works fine, but running it I get

java.lang.NoClassDefFoundError: com/sapportals/portal/ivs/cg/IConnectorGatewayService.

I have checked whether the package does exist on the J2EE Server - and it does.

I am completely clueless why the class cannot be found.

I appreciate any help on this.

Thanks a lot in advance!

Regards,

Helga

com.sapportals.portal.prt.component.PortalComponentException: Error in service call of Portal Component

Component : SimpleSapConnection.SimpleSapConnection

[...]

Caused by: java.lang.NoClassDefFoundError: com/sapportals/portal/ivs/cg/IConnectorGatewayService

at de.tsystems.connection.SimpleSapConnection.doContent(SimpleSapConnection.java:36)

at com.sapportals.portal.prt.component.AbstractPortalComponent.serviceDeprecated(AbstractPortalComponent.java:209)

at com.sapportals.portal.prt.component.AbstractPortalComponent.service(AbstractPortalComponent.java:114)

at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:301)

at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:143)

at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:195)

at com.sapportals.portal.prt.component.PortalComponentResponse.include(PortalComponentResponse.java:209)

at com.sapportals.portal.prt.pom.PortalNode.service(PortalNode.java:589)

at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:301)

at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:143)

at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:195)

at com.sapportals.portal.prt.core.PortalRequestManager.runRequestCycle(PortalRequestManager.java:644)

at com.sapportals.portal.prt.connection.ServletConnection.handleRequest(ServletConnection.java:209)

at com.sapportals.portal.prt.dispatcher.Dispatcher$doService.run(Dispatcher.java:532)

at java.security.AccessController.doPrivileged(Native Method)

at com.sapportals.portal.prt.dispatcher.Dispatcher.service(Dispatcher.java:415)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

at com.inqmy.services.servlets_jsp.server.InvokerServlet.service(InvokerServlet.java:126)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

at com.inqmy.services.servlets_jsp.server.RunServlet.runSerlvet(RunServlet.java:147)

at com.inqmy.services.servlets_jsp.server.ServletsAndJspImpl.startServlet(ServletsAndJspImpl.java:789)

at com.inqmy.services.httpserver.server.RequestAnalizer.checkFilename(RequestAnalizer.java:644)

at com.inqmy.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:305)

at com.inqmy.services.httpserver.server.Response.handle(Response.java:166)

at com.inqmy.services.httpserver.server.HttpServerFrame.request(HttpServerFrame.java:1156)

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • author's profile photo
    Former Member
    Feb 09, 2004 at 12:13 PM

    Hello Helga,

    maybe you have not included the reference to the library in the portalapp.xml?

    As far as I know you have to include something like:

     ÂÂ

    I'm not sure if this info was already incuded in the example and hope it might help.

    Cheers,

    Michael

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi,

      Can you please tell me how to do a connection in EP6

      since this code below gives me an error. The getconnection is depricated

      cgService.getConnection(sapSystem,request);

      Can you please the way to get connected to SAP. I will appreciate if you can send me the code.

      IConnection connection = null;

      try {

      // get the Connector Gateway Service

      Object connectorservice = PortalRuntime.getRuntimeResources().getService( IConnectorService.KEY);

      IConnectorGatewayService cgService =(IConnectorGatewayService) connectorservice;

      if (cgService == null) {

      logger.severe("Error in get Connector Gateway Service <br>");

      }

      try {

      connection = cgService.getConnection(sapSystem,request);

      } catch (Exception e) {

      logger.severe("Connection to SAP system failed <br>");

      }

      if (connection == null) {

      logger.severe("Connection is null <br>");

      }

      else {

      logger.severe("Connection succesful");

      }

      } catch (Exception e) {

      logger.severe("Exception occured");

      }

      Thanks

      Ajoy

  • author's profile photo
    Former Member
    Mar 31, 2004 at 07:02 PM

    Hi,

    Can you please tell me what is the equivalent of EP6.0 for getConnection

    connection = cgService.getConnection(sapSystem,request);(EP5)

    When I use the above getConnection it is saying this is depricated. I like to know what is the way to connect and to avoid "Connection = null" while connecting to SAP via Connector Framework. If you can send the code it will be great.

    Thanks

    Ajoy

    Add comment
    10|10000 characters needed characters exceeded