That import statement looks ok but the error is being reported for line
21 in SyndFeedInput. Looking at the code (link below) it's a common or
garden import statement.
https://rome.dev.java.net/source/browse/rome/src/java/com/sun/syndication/io/SyndFeedInput.java?rev=1.5&view=auto&content-type=text/vnd.viewcvs-markup
Not sure what is wrong so I would:
1) Check that the jdom jar is readable, non-corrupt and contains
org.jdom.Document
2) Delete the work directory and restart tomcat.
3) Move the jsp out from under WEB-INF (tomcat shouldn't be directly
serving pages from under there anyway) to see if that's the problem.
4) Tear hair out. etc, etc
Jon
Vernon wrote:
Hi, Jon,
Thank for your quick response.
Here is more log messages:
ERROR
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/icommunity].[jsp].invoke:704
- Servlet.service() for servlet jsp threw exception
java.lang.Error: Unresolved compilation problems:
The import org.jdom cannot be resolved
Document cannot be resolved to a type
at
com.sun.syndication.io.SyndFeedInput.<init>(SyndFeedInput.java:21)
at
com.xxx.web.rss.NewsFeedComponentController.doPerform(NewsFeedComponentController.java:39)
...
ERROR
org.apache.struts.taglib.tiles.InsertTag.doEndTag:920
- ServletException in
'/WEB-INF/jsp/news/content1.jsp': Unresolved
compilation problems:
The import org.jdom cannot be resolved
Document cannot be resolved to a type
javax.servlet.ServletException: Unresolved compilation
problems:
The import org.jdom cannot be resolved
Document cannot be resolved to a type
at
org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:848)
at
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:781)
at
org.apache.jsp.WEB_002dINF.jsp.news.content1_jsp._jspService(org.apache.jsp.WEB_002dINF.jsp.news.content1_jsp:64)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
...
Try to resolve this problem, I have insert an immport
statement in the content1.jsp file as
<%@ page import='org.jdom.*' %>
That doesn't make any difference.
--- Jon Wingfield <[EMAIL PROTECTED]> wrote:
Works for me.
Show us the snippet of the jsp with the import
statement...
Jon
Vernon wrote:
I have the jdom-1.0.jar in the application library
directory, that is WEB-INF/lib, where other jar
files
are. The jar doesn't seem to be loaded. I get the
following error:
ERROR
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/icommunity].[jsp].invoke:704
- Servlet.service() for servlet jsp threw
exception
java.lang.Error: Unresolved compilation problems:
The import org.jdom cannot be resolved
Document cannot be resolved to a type
Someone suggests that I need to place the jar file
in
some place else and create a class path for it. Is
it
the only solution?
Thanks,
Vernon
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]