cancel
Showing results for 
Search instead for 
Did you mean: 

NoClassDefFoundError on external Jar

Former Member
0 Kudos

Hi,

I've build an JspDynpage and I'm using an external Jar File that is not included in NWDS.

I've added the Jar to the Java build path.

But now if I'm uploading the Par File to portal, I got a <b>java.lang.NoClassDefFoundError: com/lowagie/text/pdf/PdfWriter</b>

I think that NWDS doesn't upload the external Jar and the Web AS doesn't find that one. What I have to do to get the Jar File on the Web AS?

Regards,

Dennis

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Dennis,

The classpath on the client side is for compilation purposes only.

To include a jar on the server side, you should do one of the following:

1. If it's an EP jar, add a <i>Sharing Reference</i> to the directory under portalapps that contains it in portalapp.xml.

2. Otherwise, put the jar under dist/PORTAL-INF/lib.

Hope that helps,

Yoav.

Answers (0)