Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Error when deploying sapjra.rar

When I deploy sapjra.rar on Sun Java System Application Server 9.1. I get the following error.

[#|2007-11-15T16:37:30.405-0800|WARNING|sun-appserver9.1|javax.enterprise.system.stream.err|_ThreadID=18;_ThreadName=Thread-31;

_RequestID=c26ae9ff-6781-4673-b04a-62056a0b81fc;|java.lang.UnsatisfiedLinkError: no CpicNative in java.library.path

at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1682)

at java.lang.Runtime.loadLibrary0(Runtime.java:822)

at java.lang.System.loadLibrary(System.java:993)

at com.sap.mw.rfc.api.RfcApi.initializeDLL(RfcApi.java:1285)

at com.sap.mw.rfc.api.RfcApi.<clinit>(RfcApi.java:1299)

at com.sap.mw.jco.MiddlewareJRfc.<clinit>(MiddlewareJRfc.java:231)

at java.lang.Class.forName0(Native Method)

at java.lang.Class.forName(Class.java:164)

at com.sap.mw.jco.JCO.<clinit>(JCO.java:655)

at com.sap.mw.jco.jra.JRA$ManagedConnectionFactoryImpl.createPrintWriter(JRA.java:1217)

at com.sap.mw.jco.jra.JRA$ManagedConnectionFactoryImpl.<init>(JRA.java:1059)

at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)

at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)

at java.lang.reflect.Constructor.newInstance(Constructor.java:494)

at java.lang.Class.newInstance0(Class.java:350)

at java.lang.Class.newInstance(Class.java:303)

at com.sun.enterprise.connectors.ActiveOutboundResourceAdapter.instantiateMCF(ActiveOutboundResourceAdapter.java:393)

at com.sun.enterprise.connectors.ActiveOutboundResourceAdapter.createManagedConnectionFactory(ActiveOutboundResourceAdapter.java:316)

In the log it looks like sapjra.rar does deploy successfully.

If I continue on and call my ejb where I am using my eis/SAPJRAFactory connector resource, I get the following error by calling

<b>sapjraCFCCI</b>.getConnection();

from from my ejb where:

@javax.annotation.Resource(name = "eis/SAPJRAFactory",

authenticationType=javax.annotation.Resource.AuthenticationType.APPLICATION,shareable=true)

private javax.resource.cci.ConnectionFactory <b>sapjraCFCCI</b>;

Caused by: java.lang.NoClassDefFoundError

at com.sap.mw.jco.MiddlewareJRfc$Client.connect(MiddlewareJRfc.java:818)

at com.sap.mw.jco.JCO$Client.connect(JCO.java:2922)

at com.sap.mw.jco.jra.JRA$ManagedConnectionImpl.<init>(JRA.java:2807)

at com.sap.mw.jco.jra.JRA$ManagedConnectionFactoryImpl.createManagedConnection(JRA.java:2185)

at com.sun.enterprise.resource.LocalTxConnectorAllocator.createResource(LocalTxConnectorAllocator.java:68)

at com.sun.enterprise.resource.AbstractResourcePool.createSingleResource(AbstractResourcePool.java:891)

at com.sun.enterprise.resource.AbstractResourcePool.createResourceAndAddToPool(AbstractResourcePool.java:1752)

at com.sun.enterprise.resource.AbstractResourcePool.createResources(AbstractResourcePool.java:917)

at com.sun.enterprise.resource.AbstractResourcePool.initPool(AbstractResourcePool.java:225)

at com.sun.enterprise.resource.AbstractResourcePool.internalGetResource(AbstractResourcePool.java:516)

at com.sun.enterprise.resource.AbstractResourcePool.getResource(AbstractResourcePool.java:443)

at com.sun.enterprise.resource.PoolManagerImpl.getResourceFromPool(PoolManagerImpl.java:248)

at com.sun.enterprise.resource.PoolManagerImpl.getResource(PoolManagerImpl.java:176)

at com.sun.enterprise.connectors.ConnectionManagerImpl.internalGetConnection(ConnectionManagerImpl.java:327)

at com.sun.enterprise.connectors.ConnectionManagerImpl.allocateConnection(ConnectionManagerImpl.java:235)

at com.sun.enterprise.connectors.ConnectionManagerImpl.allocateConnection(ConnectionManagerImpl.java:165)

at com.sun.enterprise.connectors.ConnectionManagerImpl.allocateConnection(ConnectionManagerImpl.java:158)

at com.sap.mw.jco.jra.JRA$ConnectionFactoryImpl.getConnection(JRA.java:3836)

at com.sun.soabi.sapcci.fileMDB._invoke_sendToSAPJRA(fileMDB.java:96)

I have made sure I am using sapjra.rar, jrfc.jar, sapjcorfc.dll, and librfc32.dll from my NetWeaver install and that they are in the AppServer's classpath and java.library.path.

Am I missing something? Can sapjra.rar be successfully deployed in Sun's AppServer?

Former Member
Not what you were looking for? View more on this topic or Ask a question