Re: Ressource not found

Stefan Haustein <[email protected]> Wed, 08 Jan 2003 00:01:11 +0100
Newsgroups gmane.comp.java.enhydra.kxml
Message-ID <[email protected]>
Hi Andrea,

the kxml jar file contains a ressource file

/META-INF/services/org.xmlpull.v1.XmlPullParserFactory

This file contains a list of the XmlPull parsers available.

Please make sure that this file is also contained int your servlet 
war/jar file at the appropriate location.

You can also use the KXmlParser constructor directly, without using the 
factory. In that case, the resource file is not required.

Best,
Stefan


Andrea Carpani wrote:
> Hi everybody, here's my problem.
> 
> I'm trying to use the latest kxml2 in a servlet deployed with tomcat
> 4.0.4 and I always get the following:
> 
> Error ... Exception : org.xmlpull.v1.XmlPullParserException: caused by:
> org.xmlpull.v1.XmlPullParserException: Ressource not found:
> /META-INF/services/org.xmlpull.v1.XmlPullParserFactory
> 
> while using it in the JDeveloper IDE gives no error.
> 
> I've tried to put the jar file kxml2.zip renamed to kxml2.jar in the
> /WEB-INF/lib of the servlet without luck: am I missing something?
> 
> Thanks.
>