cancel
Showing results for 
Search instead for 
Did you mean: 

JCA & external libraries

Former Member
0 Kudos

Hello gurus,

I develop an adapter to an 3rd. party system and need some external .jars for that.

I tried to deliver the jars inside the adapter.sda but after the deployment I get some errors regarding the jars in the default.trc:

java.util.zip.ZipException: The system cannot find the path specified

and

java.io.FileNotFoundException: D:\usr\sap\J2E\DVEBMGS00\j2ee\cluster\server0\temp\deploy\1133946732390\xercesImpl.jar

and after the undeployment I get:

[permissions_collection_operator]: domain[apps//ecs.com/com.ecs.aii.af.tc.ra/connector/connectors/tc_ra.rar/xercesImpl.jar] not removed, because is not registered

I need 13 jars and sometimes I get an FileNotFoundException for every jar, sometimes only for 4 jars? What can I do??

The adapter works so far but I want to get it certified and I don't think they accept those errors....

Please help! Best regards,

Christian

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Check out the blog for information on JCA & external libraries

/people/valery.silaev/blog/2005/09/14/a-bit-of-impractical-scripting-for-web-dynpro

Former Member
0 Kudos

Hello,

first thank you for your answers.But I do already have the jars I want to include und the blog is only about WebDynpro libraries....

I think I resolved the errors occuring during the deployment:

java.util.zip.ZipException: The system cannot find the path specified

and

java.io.FileNotFoundException: D:\usr\sap\J2E\DVEBMGS00\j2ee\cluster\server0\temp\deploy\1133946732390\xercesImpl.jar

This was because I tried to "register" the jars inside a provider.xml... I think this was no good idea. OTHER OPINIONS???

But the error message inside the log during/after undeployment remains:

[permissions_collection_operator]: domain[apps//ecs.com/com.ecs.aii.af.tc.ra/connector/connectors/tc_ra.rar/xercesImpl.jar] not removed, because is not registered

It would be great if somebody could give me a hint or something!

Best regards, Christian

Former Member
0 Kudos

Hello christian,

try giving this and c why that exception is coming:

public ZipException(String s)

Constructs an ZipException with the specified detail message.

Parameters

s - the detail message.

public FileNotFoundException(String s)

<This exception is thrown when an attempt is made to access a file that does not exist, or is inaccessible for some other reason (such as writing a read-only file). >

Constructs a FileNotFoundException with the specified

detail message. A detail message is a String that describes this particular exception.

Parameters:

s - the detail message

Hope this helps u,

Regards,

Nagarajan.

Former Member
0 Kudos

Hello,

First of all thank you again for your answers. I was wrong in my previous post.... the errors still occur, only one time they have gone away, strange.

@Nagarajan:

Sorry I'm not sure if I got you right... however... I know that the server does not find the jars. But why?? Do have have to be in a special directory? Or do I need to "register" them somehow?? I don't know...

@ Kirupanand:

> Right click on the proj name ->properties->java

> buildpath->add external jars

But in this way I would not add the jars for the RUNTIME, or not? I need them during the runtime.

OK, I think I expressed myself not clear enough:

- the adapter can be deployed through SDM WITHOUT ERRORS

- some seconds after deployment the adapter is started,

and THEN THE ERRORS OCCUR IN THE LOG

- the adapter itself works fine, I just want to kill these errors because I think they are a problem for the certification

The structure of my adapterSDA looks like this:

adapter.sda

|-META-INF

|-|-...some xmls and manifest files

|-MY_EXTERNAL_JARS (for example xercesImpl.jar)

|-adapter.rar

|-|-META-INF

|-|-|-...some xmls and manifest files

|-|-adapter.jar

Thank you for your help!

Best regards,

Christian

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

If you need the xercesImpl.jar then add it by

Right click on the proj name ->properties->java buildpath->add external jars

if you donot want the jar

Right click on the proj name ->properties->java buildpath->select the jar and click on remove

vijayakhanna_raman
Active Contributor
0 Kudos

Hi,

If u want information rrgarding jar check on this link.

JAR class finder:

http://www.alphaworks.ibm.com/tech/jarclassfinder

http://sourceforge.net/projects/classlocator

Regards,

Vijayakhanna Raman