Skip to Content
author's profile photo Former Member
Former Member

preloaded SystemLibraries and Resart des Servers

Hi all,

i use jco nativ (not JCA,) within an EJB to get Data from SAP System.

if i deploy my Application over NWDS, i become an exception , that means, that some libraries (sapjcorfc) has been already loaded in another ClassLoader. After that , i have to stop und start my appServer again, it takes a long time and impeded corporate work.

Has anybody an idea, how can i optimize it, so that, i do not need restart my server , after i deploey my ear-file ?

Best Regards

A. Büyükyilmaz

Hier ist Exception :

-

-


java.rmi.RemoteException:

com.sap.engine.services.ejb.exceptions.BaseRemoteException: Exception in

method getGesamtEngagementData. at de.hshnordbank.kreditvorlage.kv.ejb.KreditvorlageGeneratorObjectImpl0_0.getGesamtEngagementData(KreditvorlageGeneratorObjectImpl0_0.java:281)

at

de.hshnordbank.kreditvorlage.kv.ejb.KreditvorlageGenerator_Stub.getGesamtEngagementData(KreditvorlageGenerator_Stub.java:309)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at

sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:85)

at

sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:58)

at

sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:60)

at java.lang.reflect.Method.invoke(Method.java:391)

at

com.sap.engine.services.ejb.session.stateless_sp5.ObjectStubProxyImpl.invoke(ObjectStubProxyImpl.java:187)

at $Proxy162.getGesamtEngagementData(Unknown Source)

at

de.hshnordbank.connectivity.logonticket.DocumentFabric.getGeData(DocumentFabric.java:125)

at

de.hshnordbank.connectivity.logonticket.TestLogonTicketIView$TestLogonTicketDynPage.onKreditvorlageErstellen(TestLogonTicketIView.java:455)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at

sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:85)

at

sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:58)

at

sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:60)

at java.lang.reflect.Method.invoke(Method.java:391)

at

com.sapportals.htmlb.page.DynPage.doProcessCurrentEvent(DynPage.java:172)

at

com.sapportals.htmlb.page.PageProcessor.handleRequest(PageProcessor.java:115)

at

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

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

at

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

at

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

at

com.sapportals.portal.prt.core.async.AsyncPortalComponentResponse.include(AsyncPortalComponentResponse.java:355)

at

com.sapportals.portal.prt.core.async.AsyncPortalComponentResponse.include(AsyncPortalComponentResponse.java:310)

at

com.sapportals.portal.navigation.workAreaiView.doContent(workAreaiView.java:228)

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

at

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

at

com.sapportals.portal.prt.core.async.AsyncIncludeRunnable$1$DoDispatchRequest.run(AsyncIncludeRunnable.java:375)

at

java.security.AccessController.doPrivileged(AccessController.java:242)

at

com.sapportals.portal.prt.core.async.AsyncIncludeRunnable.run(AsyncIncludeRunnable.java:388)

at

com.sapportals.portal.prt.core.async.ThreadContextRunnable.run(ThreadContextRunnable.java:164)

at

EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:729)

at java.lang.Thread.run(Thread.java:761)

Caused by: java.lang.ExceptionInInitializerError:

JCO.classInitialize():

Could not load middleware layer 'com.sap.mw.jco.rfc.MiddlewareRFC'

JCO.nativeInit(): Could not initialize dynamic link library sapjcorfc

.

java.library.path

at com.sap.mw.jco.JCO.(JCO.java:776)

at java.lang.J9VMInternals.initializeImpl(Native Method)

at java.lang.J9VMInternals.initialize(J9VMInternals.java:187)

at

de.hshnordbank.kreditvorlage.kv.Tools.connectToSAP(Tools.java:206)

at

de.hshnordbank.kreditvorlage.ge.queries.Query00.initializeTable(Query00.java:66)

at

de.hshnordbank.kreditvorlage.ge.GesamtEngagementDataImpl.holeGesamtengagementDaten(GesamtEngagementDataImpl.java:134)

at

de.hshnordbank.kreditvorlage.kv.ejb.KreditvorlageGeneratorBean.getGesamtEngagementData(KreditvorlageGeneratorBean.java:177)

at

de.hshnordbank.kreditvorlage.kv.ejb.KreditvorlageGeneratorObjectImpl0_0.getGesamtEngagementData(KreditvorlageGeneratorObjectImpl0_0.java:261)

... 36 more

; nested exception is:

java.lang.ExceptionInInitializerError: JCO.classInitialize():

Could

not load middleware layer 'com.sap.mw.jco.rfc.MiddlewareRFC'

JCO.nativeInit(): Could not initialize dynamic link library sapjcorfc

.

java.library.path

at

com.sap.engine.services.ejb.exceptions.BaseRemoteException.writeReplace(BaseRemoteException.java:276)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at

sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:85)

at

sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:58)

at

sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:60)

at java.lang.reflect.Method.invoke(Method.java:391)

at

java.io.ObjectStreamClass.invokeWriteReplace(ObjectStreamClass.java:1061)

at

java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1042)

at

java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:309)

at

com.sap.engine.services.rmi_p4.StubImpl.p4_initializeStreams(StubImpl.java:281)

at

com.sap.engine.services.rmi_p4.StubImpl.p4_replicate(StubImpl.java:274)

at

de.hshnordbank.kreditvorlage.kv.ejb.KreditvorlageGenerator_Stub.getGesamtEngagementData(KreditvorlageGenerator_Stub.java:364)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at

sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:85)

at

sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:58)

at

sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:60)

at java.lang.reflect.Method.invoke(Method.java:391)

at

com.sap.engine.services.ejb.session.stateless_sp5.ObjectStubProxyImpl.invoke(ObjectStubProxyImpl.java:187)

at $Proxy162.getGesamtEngagementData(Unknown Source)

at

de.hshnordbank.connectivity.logonticket.DocumentFabric.getGeData(DocumentFabric.java:125)

at

de.hshnordbank.connectivity.logonticket.TestLogonTicketIView$TestLogonTicketDynPage.onKreditvorlageErstellen(TestLogonTicketIView.java:455)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at

sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:85)

at

sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:58)

at

sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:60)

at java.lang.reflect.Method.invoke(Method.java:391)

at

com.sapportals.htmlb.page.DynPage.doProcessCurrentEvent(DynPage.java:172)

at

com.sapportals.htmlb.page.PageProcessor.handleRequest(PageProcessor.java:115)

at

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

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

at

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

at

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

at

com.sapportals.portal.prt.core.async.AsyncPortalComponentResponse.include(AsyncPortalComponentResponse.java:355)

at

com.sapportals.portal.prt.core.async.AsyncPortalComponentResponse.include(AsyncPortalComponentResponse.java:310)

at

com.sapportals.portal.navigation.workAreaiView.doContent(workAreaiView.java:228)

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

at

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

at

com.sapportals.portal.prt.core.async.AsyncIncludeRunnable$1$DoDispatchRequest.run(AsyncIncludeRunnable.java:375)

at

java.security.AccessController.doPrivileged(AccessController.java:242)

at

com.sapportals.portal.prt.core.async.AsyncIncludeRunnable.run(AsyncIncludeRunnable.java:388)

at

com.sapportals.portal.prt.core.async.ThreadContextRunnable.run(ThreadContextRunnable.java:164)

at

EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:729)

at java.lang.Thread.run(Thread.java:761)

Caused by: java.lang.ExceptionInInitializerError:

JCO.classInitialize():

Could not load middleware layer 'com.sap.mw.jco.rfc.MiddlewareRFC'

JCO.nativeInit(): Could not initialize dynamic link library sapjcorfc

.

java.library.path

at com.sap.mw.jco.JCO.(JCO.java:776)

at java.lang.J9VMInternals.initializeImpl(Native Method)

at java.lang.J9VMInternals.initialize(J9VMInternals.java:187)

at

de.hshnordbank.kreditvorlage.kv.Tools.connectToSAP(Tools.java:206)

at

de.hshnordbank.kreditvorlage.ge.queries.Query00.initializeTable(Query00.java:66)

at

de.hshnordbank.kreditvorlage.ge.GesamtEngagementDataImpl.holeGesamtengagementDaten(GesamtEngagementDataImpl.java:134)

at

de.hshnordbank.kreditvorlage.kv.ejb.KreditvorlageGeneratorBean.getGesamtEngagementData(KreditvorlageGeneratorBean.java:177)

at

de.hshnordbank.kreditvorlage.kv.ejb.KreditvorlageGeneratorObjectImpl0_0.getGesamtEngagementData(KreditvorlageGeneratorObjectImpl0_0.java:261)

at

de.hshnordbank.kreditvorlage.kv.ejb.KreditvorlageGenerator_Stub.getGesamtEngagementData(KreditvorlageGenerator_Stub.java:309)

... 35 more

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Posted on Aug 29, 2007 at 04:15 PM

    Ahmet,

    You need not restart the Application server every time you deploy the EAR. But make sure that sapjcorfc.dll & librfc32.dll in your system path if your OS is windwows. For linux or unix it shuld be sapjcorfc.sh & librfc32.sh files. One time you required restart.

    Regards

    Abhilash

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.