Sunday, 15 June 2014

rss - java.lang.ClassNotFoundException: org.jdom.JDOMException -



rss - java.lang.ClassNotFoundException: org.jdom.JDOMException -

i getting next error message when trying load rss page:

feb 16, 2013 9:08:44 pm org.apache.catalina.core.standardwrappervalve invoke severe: servlet.service() servlet [news-feed] in context path [/publisher] threw exception [servlet execution threw exception] root cause java.lang.classnotfoundexception: org.jdom.jdomexception @ org.apache.catalina.loader.webappclassloader.loadclass(webappclassloader.java:1714) @ org.apache.catalina.loader.webappclassloader.loadclass(webappclassloader.java:1559) @ com.sun.syndication.io.syndfeedoutput.<init>(syndfeedoutput.java:44)

the line of code triggers error is:

syndfeedoutput output = new syndfeedoutput();

i have googled error message , read several postings it, including postings on site. postings suggest adding jdom.jar build path cause error go away. however, have added 8 of jar files come bundled jdom-2.0.4.jar buildpath in eclipse, error message still persists each time seek load rss page.

i wondering if problem might fact using jdom-2.0.4.jar might older syntax of:

syndfeedoutput output = new syndfeedoutput();

the other postings error message older versions of jdom. perhaps there new syntax calling equivalent of syndfeedoutput() in new version of jdom?

can help me past error message?

edit:

to address nocmear's suggestion, have confirmed next 9 jar files jar files related jdom or rome included in buildpath application:

jaxen-1.1.4.jar jdom-2.0.4.jar jdom-2.0.4-contrib.jar jdom-2.0.4-javadoc.jar jdom-2.0.4-junit.jar jdom-2.0.4-sources.jar rome-1.0.jar xercesimpl.jar xml-apis.jar

second edit:

i downloaded jdom-1.1.3 , added application's buildpath in eclipse, rolfl suggested.

when went load rss page in web browser, tomcat gave me next error log:

java.lang.noclassdeffounderror: org/jdom/jdomexception com.sun.syndication.io.syndfeedoutput.<init>(syndfeedoutput.java:44) publisher.web.newsfeedservlet.doget(newsfeedservlet.java:68) javax.servlet.http.httpservlet.service(httpservlet.java:621) javax.servlet.http.httpservlet.service(httpservlet.java:728) java.lang.classnotfoundexception: org.jdom.jdomexception org.apache.catalina.loader.webappclassloader.loadclass(webappclassloader.java:1714) org.apache.catalina.loader.webappclassloader.loadclass(webappclassloader.java:1559) com.sun.syndication.io.syndfeedoutput.<init>(syndfeedoutput.java:44) publisher.web.newsfeedservlet.doget(newsfeedservlet.java:68) javax.servlet.http.httpservlet.service(httpservlet.java:621) javax.servlet.http.httpservlet.service(httpservlet.java:728)

the relevant jar files included in buildpath are:

ant.jar jaxen.jar jaxen 1.1.4.jar jdom-2.0.4.jar jdom-2.0.4-contrib.jar jdom-2.0.4-javadoc.jar jdom-2.0.4-junit.jar jdom-2.0.4-sources.jar rome-1.0.jar xalan.jar xerces.jar xercesimpl.jar xml-apis.jar

also, tried adding these jars bin file in tomcat instead per nocmear's suggestion, triggered error messages in eclipse, set them in eclipse appication.

perhaps not understanding people suggesting. or perhaps might have other suggestions. help appreciated.

you have jdom 2.x version iun classpath, code looking version 1.x.

download jdom 1.1.3 , set in classpath one (the latest) version of jdom 2.x. packages in jdom 1.x org.jdom.* ... , packages in jdom 2.x org.jdom2.*

see note: jdom2 migration

and front end page of jdom site: read downwards project status

rolf

java rss jdom rome

No comments:

Post a Comment