You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@forrest.apache.org by Tony Collen <tc...@hist.umn.edu> on 2002/11/13 21:43:42 UTC
webapp failure: Servlet.init() for servlet Cocoon2 threw exception
Hi all - I just pulled forrest down from cvs, and built it fine. I ran
"forrest webapp" and then deployed the war (nhgis-forrest.war) to
$TOMCAT_HOME. When I acceess http://localhost/nhgis-forrest/ I get the
following error. (Note that I am running an older version of Tomcat on
Win2000... would that be the source of the problem?)
TIA,
Tony
Apache Tomcat/4.0.1 - HTTP Status 500 - Internal Server Error
------------------------------------------------------------------------
*type* Exception report
*message* _Internal Server Error_
*description* _The server encountered an internal error (Internal Server
Error) that prevented it from fulfilling this request._
*exception*
javax.servlet.ServletException: Servlet.init() for servlet Cocoon2 threw exception
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:871)
at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:615)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:201)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:163)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1011)
at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1106)
at java.lang.Thread.run(Unknown Source)
*root cause*
java.lang.NoClassDefFoundError: javax/xml/transform/URIResolver
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1534)
at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:852)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1273)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1156)
at org.apache.avalon.excalibur.component.ExcaliburComponentManager.configure(ExcaliburComponentManager.java:435)
at org.apache.cocoon.Cocoon.configure(Cocoon.java:418)
at org.apache.cocoon.Cocoon.initialize(Cocoon.java:284)
at org.apache.cocoon.servlet.CocoonServlet.createCocoon(CocoonServlet.java:1255)
at org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:454)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:852)
at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:615)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:201)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:163)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1011)
at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1106)
at java.lang.Thread.run(Unknown Source)
------------------------------------------------------------------------
Re: webapp failure: Servlet.init() for servlet Cocoon2 threw exception
Posted by Jeff Turner <je...@apache.org>.
On Wed, Nov 13, 2002 at 03:21:40PM -0600, Tony Collen wrote:
> Steven Noels wrote:
>
> >Tony Collen wrote:
> >
> >>Roger that, 1.4.
> >>
> >>So go grab the latest xerces.jar and xalan.jar, and throw them into
> >>$JAVA_HOME/lib/endorsed ? Pardon my ignorance :)
> >
> >
> >You're welcome. You don't have to go grab them elsewhere, they come
> >with Forrest (lib\endorsed)... welcome to Java Jar Hell :-)
>
>
>
> Bingo. They weren't working in $JAVA_HOME/lib/endorsed/ so I moved them
> to $TOMCAT_HOME/common/lib/ and the webapp started... thank you very
> much, kind sir :)
:) You missed the last part of message printed after 'forrest webapp' has run:
...
If using JDK 1.4 or above, make sure to set the Java environment variable
-Djava.endorsed.dirs=/home/jeff/apache/xml/xml-forrest/build/dist/shbat/bin/../lib/endorsed
Eg, in the TOMCAT_OPTS (3.3.x) or CATALINA_OPTS (4.x) env variable.
---------------------------------
Also, for anyone else having trouble with the webapp: it breaks under JDK 1.3
because lib/endorsed/*.jar isn't copied into WEB-INF/lib. This is fixed in CVS
and will be in 0.2 final.
> On a side note, now that I see what Forrest is for, I can say, "COOL!"
> because it gives me most of the functionality that I needed, and it
> saves me the pain of having to figure out how to create automatic
> navigation. I look forward to hacking the hell out of the default skin
> =]
The skins are a bit of a mess currently.. soon as 0.2 is out I'll commit
a refactored set of skins, which makes modifications _much_ easier. For
example, here is the avalon-tigris document2html.xsl file:
<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:import href="../../../common/xslt/html/document2html.xsl"/>
<xsl:template name="pdflink">
<!-- No PDFs thankyou -->
</xsl:template>
<xsl:template match="section">
<div class="section">
<xsl:apply-imports/>
</div>
</xsl:template>
<xsl:template match="section/section">
<div class="subsection">
<xsl:apply-imports/>
</div>
</xsl:template>
</xsl:stylesheet>
--Jeff
> Tony
>
Re: webapp failure: Servlet.init() for servlet Cocoon2 threw exception
Posted by Tony Collen <tc...@hist.umn.edu>.
Steven Noels wrote:
> Tony Collen wrote:
>
>> Roger that, 1.4.
>>
>> So go grab the latest xerces.jar and xalan.jar, and throw them into
>> $JAVA_HOME/lib/endorsed ? Pardon my ignorance :)
>
>
> You're welcome. You don't have to go grab them elsewhere, they come
> with Forrest (lib\endorsed)... welcome to Java Jar Hell :-)
Bingo. They weren't working in $JAVA_HOME/lib/endorsed/ so I moved them
to $TOMCAT_HOME/common/lib/ and the webapp started... thank you very
much, kind sir :)
On a side note, now that I see what Forrest is for, I can say, "COOL!"
because it gives me most of the functionality that I needed, and it
saves me the pain of having to figure out how to create automatic
navigation. I look forward to hacking the hell out of the default skin =]
Tony
Re: webapp failure: Servlet.init() for servlet Cocoon2 threw exception
Posted by Steven Noels <st...@outerthought.org>.
Tony Collen wrote:
> Roger that, 1.4.
>
> So go grab the latest xerces.jar and xalan.jar, and throw them into
> $JAVA_HOME/lib/endorsed ? Pardon my ignorance :)
You're welcome. You don't have to go grab them elsewhere, they come with
Forrest (lib\endorsed)... welcome to Java Jar Hell :-)
</Steven>
--
Steven Noels http://outerthought.org/
Outerthought - Open Source, Java & XML Competence Support Center
Read my weblog at http://radio.weblogs.com/0103539/
stevenn at outerthought.org stevenn at apache.org
Re: webapp failure: Servlet.init() for servlet Cocoon2 threw exception
Posted by Tony Collen <tc...@hist.umn.edu>.
Steven Noels wrote:
> Tony Collen wrote:
>
>> Hi all - I just pulled forrest down from cvs, and built it fine. I
>> ran "forrest webapp" and then deployed the war (nhgis-forrest.war) to
>> $TOMCAT_HOME. When I acceess http://localhost/nhgis-forrest/ I get
>> the following error. (Note that I am running an older version of
>> Tomcat on Win2000... would that be the source of the problem?)
>
>
> JDK 1.4?
>
> Make sure you have the correct (updated) versions of the XML/XSLT
> APIs/jars in your classpath - JDK 1.4 comes with outdated ones.
>
> Reminds me vividly of http://radio.weblogs.com/0103539/2002/02/14.html
Roger that, 1.4.
So go grab the latest xerces.jar and xalan.jar, and throw them into
$JAVA_HOME/lib/endorsed ? Pardon my ignorance :)
Tony
Re: webapp failure: Servlet.init() for servlet Cocoon2 threw exception
Posted by Steven Noels <st...@outerthought.org>.
Tony Collen wrote:
> Hi all - I just pulled forrest down from cvs, and built it fine. I ran
> "forrest webapp" and then deployed the war (nhgis-forrest.war) to
> $TOMCAT_HOME. When I acceess http://localhost/nhgis-forrest/ I get the
> following error. (Note that I am running an older version of Tomcat on
> Win2000... would that be the source of the problem?)
JDK 1.4?
Make sure you have the correct (updated) versions of the XML/XSLT
APIs/jars in your classpath - JDK 1.4 comes with outdated ones.
Reminds me vividly of http://radio.weblogs.com/0103539/2002/02/14.html
</Steven>
--
Steven Noels http://outerthought.org/
Outerthought - Open Source, Java & XML Competence Support Center
Read my weblog at http://radio.weblogs.com/0103539/
stevenn at outerthought.org stevenn at apache.org