Skip to Content
avatar image
Former Member

JCA Question to Rem Swa

Hi Rem Swa,

Thanks for you sincere reply. I am getting an error message as you have told to execute the direct connection to sap.

This error message comes when we miss something in portalapp.xml in sharing reference.

Caused by: java.lang.NoClassDefFoundError

Is there any specific reference i have to add to this code if so what should be added in future if i have to add sharereference where should i look for.

Currently i have

<application-config>

<property name="startup" value="true"/>

<property name="SharingReference" value="htmlb, jcoclient"/>

<property name="SharingReference" value="com.sap.portal.ivs.connectorservice,htmlb"/>

</application-config>

Mar 31, 2004 6:38:43 PM # Client_Thread_26 Info Loading application: MyJCOTest #

Mar 31, 2004 6:38:43 PM # Client_Thread_26 Info Loading services: #

Mar 31, 2004 6:39:10 PM # Client_Thread_22 Fatal JCoTemplate--->doJCoConnection #

Mar 31, 2004 6:39:10 PM # Client_Thread_22 Fatal JCoTemplate->doJCoConnectionInitialContext unsuccessful #

Mar 31, 2004 6:39:10 PM # Client_Thread_22 Fatal JCoTemplate->doJCoConnectionInitialContext connectionFactory #

Mar 31, 2004 6:39:10 PM # Client_Thread_22 Fatal Exception ID:06:39_31/03/04_0005

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

Component : MyJCOTest.default

Component class : JCoTemplate

User : OSIsoft

at com.sapportals.portal.prt.core.PortalRequestManager.handlePortalComponentException(PortalRequestManager.java:863)

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

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:1152)

at com.inqmy.core.service.context.container.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:36)

at com.inqmy.core.cluster.impl0.ParserRunner.run(ParserRunner.java:35)

at com.inqmy.core.thread.impl0.ActionObject.run(ActionObject.java:46)

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

at com.inqmy.core.thread.impl0.SingleThread.run(SingleThread.java:132)

Caused by: java.lang.NoClassDefFoundError

at com.sapportals.connectors.SAPCFConnector.connection.SAPCFConnectorManagedConnection.init(SAPCFConnectorManagedConnection.java:75)

at com.sapportals.connectors.SAPCFConnector.connection.SAPCFConnectorManagedConnectionFactory.createManagedConnection(SAPCFConnectorManagedConnectionFactory.java:62)

at com.inqmy.services.eisconnector.server.ConnectionHashSet.match(ConnectionHashSet.java:231)

at com.inqmy.services.eisconnector.server.ConnectionManagerImpl.allocateConnection(ConnectionManagerImpl.java:155)

at com.sapportals.connectors.SAPCFConnector.connection.SAPCFConnectorConnectionFactory.getConnectionEx(SAPCFConnectorConnectionFactory.java:136)

at JCoTemplate$MyDynPage.doJCoConnection(JCoTemplate.java:144)

at JCoTemplate$MyDynPage.doProcessBeforeOutput(JCoTemplate.java:61)

at com.sapportals.htmlb.page.PageProcessor.handleRequest(PageProcessor.java:106)

at com.sapportals.portal.htmlb.page.PageProcessorComponent.doContent(PageProcessorComponent.java:135)

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:1152)

at com.inqmy.core.service.context.container.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:36)

at com.inqmy.core.cluster.impl0.ParserRunner.run(ParserRunner.java:35)

at com.inqmy.core.thread.impl0.ActionObject.run(ActionObject.java:46)

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

at com.inqmy.core.thread.impl0.SingleThread.run(SingleThread.java:132)

com.sapportals.portal.prt.connection.ContentExceptionHandler@1fc987 #

Thanks for your help.

Ajoy

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Apr 01, 2004 at 01:04 AM

    Hi Ajoy,

    "SharingReference" is appearing twice, change this to "ServicesReference". For e.x.

    <property name="ServicesReference" value="htmlb, connectorservice, jcoclient"/>

    Regards,

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Rem Swa,

      Thanks for your help. Now it passes the few functions not like before as it fails in the start itself

      but it still gets the error as shown below,

      Caused by: java.lang.NoClassDefFoundError

      It fails when it tries to execute the below function

      mm_con = connectionFactory.getConnectionEx(spec);

      Is there any other things should i do to execute this function.

      Thanks for your help

      Ajoy