cancel
Showing results for 
Search instead for 
Did you mean: 

Error in javax.resource.cci.Connection during Compilation

Former Member
0 Kudos

Hi,

I am using NW 04 to write a par for my EP.

But I encountered the following error at the line

package com.sap.nwrig.demo;

The error is as shown :

This compilation unit indirectly references the missing type javax.resource.cci.connection (typically some required class file is referencing a type outside the classpath)

Do hope anyone could help.

Thanks.

Regards,

Mike Lee

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Mike,

I guess you need to add the JCA library that contains the javax.resource.cci.Connection class to the classpath of your project. Here's how to do it (assuming you're using the NetWeaver Developer Studio):

1. Right click on your project and choose Properties.

2. Choose Java Build Path from the lefthand side tree, and then choose the Libraries tab on the right.

3. Click on the Add External JARs button and browse to the following directory: <NW_Dev_Studio_inst_dir>\eclipse\plugins\com.tssap.ext.libs.j2ee_1.3\lib

4. Select connector.jar and choose Open.

This adds the library and now the referenced type should be resolved.

Regards,

Ivo