jspwiki-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Harry Metske" <harry.met...@gmail.com>
Subject JSP's cannot find classes in org.apache.jspwiki packages
Date Mon, 22 Dec 2008 20:59:26 GMT
Hi all,

I now seem to have the same problem again as in :
http://www.mail-archive.com/jspwiki-dev@incubator.apache.org/msg03870.html
Now it's another class, but also in an org.apache.jspwiki package, I just
built the latest JSPWiki (3.0.0-svn-38), and get the following stacktrace
loading the first page:

INFO: Server startup in 35926 ms
tomcat@scharnhorst:/usr/local/tomcat/work$
2008-12-21 19:15:54,603 [http-8080-1] WARN
com.ecyrd.jspwiki.tags.WikiTagBase  - Including failed, got a servlet
exception from sub-page. Rethrowing the exception to the JSP engine.
org.apache.jasper.JasperException: An exception occurred processing JSP page
/templates/default/PageTab.jsp at line 13

10: <%
11:     WikiContext c = WikiContextFactory.findContext( pageContext );
12:        WikiPage p = c.getPage();
13:     String pagename = p.getName();
14:
15:     /* check possible permalink (blogentry) pages */
16:     String blogcommentpage="";


Stacktrace:
    at
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:505)
    at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:398)
    at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:337)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
    at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:630)
    at
org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:535)
    at
org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:472)
    at
org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:968)
    at
org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.java:609)
    at com.ecyrd.jspwiki.tags.IncludeTag.doEndTag(IncludeTag.java:84)
    at
org.apache.jsp.templates.default_.PageContent_jsp._jspx_meth_wiki_005fInclude_005f0(PageContent_jsp.java:387)
    at
org.apache.jsp.templates.default_.PageContent_jsp._jspService(PageContent_jsp.java:141)
    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
    at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:337)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
    at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:630)
    at
org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:535)
    at
org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:472)
    at
org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:968)
    at
org.apache.jsp.Wiki_jsp._jspx_meth_stripes_005flayout_002dcomponent_005f0(Wiki_jsp.java:163)
    at
org.apache.jsp.Wiki_jsp._jspx_meth_stripes_005flayout_002drender_005f0(Wiki_jsp.java:122)
    at org.apache.jsp.Wiki_jsp._jspService(Wiki_jsp.java:84)
    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
    at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:337)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
    at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at
net.sourceforge.stripes.controller.StripesFilter.doFilter(StripesFilter.java:246)
    at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at
com.ecyrd.jspwiki.ui.WikiServletFilter.doFilter(WikiServletFilter.java:183)
    at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:219)
    at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
    at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)
    at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
    at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
    at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:568)
    at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
    at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
    at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
    at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
    at
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
    at java.lang.Thread.run(Thread.java:636)
Caused by: javax.servlet.ServletException: java.lang.NoClassDefFoundError:
org/apache/jspwiki/api/WikiPage
    at
org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:850)
    at
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:779)
    at
org.apache.jsp.templates.default_.PageTab_jsp._jspService(PageTab_jsp.java:458)
    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
    ... 54 more
Caused by: java.lang.NoClassDefFoundError: org/apache/jspwiki/api/WikiPage
    at
org.apache.jsp.templates.default_.PageTab_jsp._jspService(PageTab_jsp.java:116)
    ... 57 more
Caused by: java.lang.ClassNotFoundException: org.apache.jspwiki.api.WikiPage
    at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
    at
org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:134)
    at
org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:66)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:336)
    ... 58 more


I checked the JSPWiki.jar, it has the org.apache.jspwiki.api.WikiPage class
in it.
I cleared out Tomcat's work/temp directory, no difference.
I deleted the whole JSPWiki project from Eclipse and export a fresh copy
from SVN, still same results.
Also, the web-tests in Eclipse fail with the same results.

Am I the only one having this ?

regards,
Harry

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message