You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Fabrice SOLLAMI <fa...@marketschemer.com> on 2000/09/13 13:04:50 UTC

Trooble to map a new servlet

Hello,


I have installed tomcat and cocoon and all examples are working.

But I would to modify the conf to map for example http://localhost/servlet/
to
webapps/mks

and to put all my .class in this folder.

Thanks a lot.
Fabrice

-----Message d'origine-----
De : cocoon-users-admin@lists.real-time.com
[mailto:cocoon-users-admin@lists.real-time.com]De la part de Chris
Cuilla
Envoyé : mardi 12 septembre 2000 22:48
À : cocoon-users@lists.real-time.com
Objet : [Cocoon Users] Re: trouble getting beyond hello world


Update...

Upon closer examination, Hello World does NOT appear to be working. The XML
appears to get passed straight through. Though it sure looks like IE is
doing
some interpretation of the XML and XSL.

Any clues on ways to troubleshoot this?

Chris


----- Original Message -----
From: "Chris Cuilla" <ch...@cuilla.com>
To: <co...@lists.real-time.com>
Sent: Tuesday, September 12, 2000 2:38 PM
Subject: trouble getting beyond hello world


> Setup:
>
>     Tomcat 3.1
>     JDK 1.3
>     Cocoon 1.7.4
>
> Situation:
>
>     - Hello World works
>     - I have created an XML file, with corresponding DTD and XSL file
>     - I get the following when the DTD line is included in the XML file:
>
> java.lang.NoSuchMethodError
>  at
>
org.apache.xml.serialize.BaseMarkupSerializer.serializeNode(BaseMarkupSerial
izer
> .java:845)
>  at
>
org.apache.xml.serialize.BaseMarkupSerializer.serialize(BaseMarkupSerializer
.jav
> a:421)
>  at
org.apache.cocoon.formatter.HTMLFormatter.format(HTMLFormatter.java:90)
>  at org.apache.cocoon.Engine.handle(Engine.java:319)
>  at org.apache.cocoon.Cocoon.service(Cocoon.java:167)
>  at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>  at
org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:503)
>  at org.apache.tomcat.core.ContextManager.service(ContextManager.java:559)
>  at
>
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onne
> ctionHandler.java:160)
>  at
>
org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java:338
)
>  at java.lang.Thread.run(Unknown Source)
>
> Here is a small samble of the XML file:
>
> <?xml version="1.0" standalone="no" ?>
> <!DOCTYPE EVENTLIST SYSTEM
"http://localhost/www.cuilla.com/DTDs/events.dtd">
> <?xml-stylesheet href="events.xsl" type="text/xsl"?>
>
> <EVENTLIST VERSION="1.0">
>
> <EVENT TITLE="family life marriage conference">
> <DESCRIPTION>
> October 6-9th at the Omni Interlocken Resort. Please pick up brochures and
> registration forms in the atrium at the information table.
> </DESCRIPTION>
> </EVENT>
>
> </EVENTLIST>
>
> The DTD is accessible (when I'm running Tomcat locally). The DTD and XML
are
> valid (I have them working under a different framework).
>
> When I drop the <!DOCTYPE line, I do not get the exception, but the XML
seems
to
> get passed straight through to the browser, un-transformed by the XSL.
Here is
> the XSL:
>
> <?xml version="1.0"?>
> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
>
> <xsl:template match="EVENTLIST">
>  <p>
>  For questions, details or directions on any of the following events,
please
> contact the <a
href="discovery_index.jsp?t=Contact%20Us&p=contact&m=5">Discovery
> office</a>.
>  </p>
>  <xsl:apply-templates/>
> </xsl:template>
>
> <xsl:template match="CATEGORY">
>  <br>
>  <img src="images/W.gif" width=19 height=1><img src="images/chip.gif"
width=512
> height=1><img src="images/E.gif" width=19 height=1>
>  <a name="TBD">
>  <h1 class=events>TBD</h1>
>  <xsl:apply-templates/>
> </xsl:template>
>
> <xsl:template match="EVENT">
>  <a name="TBD">
>  <h2 class=events>TBD</h2>
>  <xsl:apply-templates/>
> </xsl:template>
>
> <xsl:template match="DESCRIPTION">
>  <p class=events_2>
>  <xsl:value-of select="."/>
>  </p>
> </xsl:template>
>
> </xsl:stylesheet>
>
> Chris Cuilla
>
> Don't be fooled by the radio, the TV or the magazines...who show you
photographs
> of how your life should be...compared to someone else's fantasy.
>

_______________________________________________
cocoon-users mailing list
cocoon-users@lists.real-time.com
https://mailman.real-time.com/mailman/listinfo/cocoon-users