Skip to Content
0
Former Member
Feb 24, 2009 at 10:16 AM

External library referencing to another library

47 Views

Hi

I have used a external jar in my project and deployed it in server using following blogs.

/people/raphael.vogel/blog/2008/05/05/how-to-use-external-libraries-in-the-sap-component-model-part-i

/people/raphael.vogel/blog/2008/05/05/how-to-use-external-libraries-in-the-sap-component-model-part-ii

jar which i am using is "apache common file upload".

The problem is that this jar in turns call/uses servlet.jar, which it is unable to find at runtime. But it is there in server.

Thats why it is throwing following error :

java.lang.NoClassDefFoundError: javax/servlet/ServletInputStream

Now how can I point a reference in my used jar (apache common file upload jar) to this servlet.jar.

In j2ee visual admin when i saw other libraries, it is having a section "Library References" which has an entry for "servlet.jar" as weak reference.

BUT

There is no such entry in my case for (apache common file upload jar)

Please comment