That seems to match my sitemap entry.  The only difference is the /servlet/
in the URI.
In my configuration I do not have any other web servers, just using
Tomcat4.0.  What is your servlet container?
I assume that your output matches the elements of the stylesheet
"simple-page2html.xsl"

----- Original Message -----
From: "Hall, Joe" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, January 29, 2002 3:33 PM
Subject: RE: Servlets and Cocoon2.


> I forgot to add my servlet to the web.xml file.
> I now have it outputting XML to the browser but cocoon isn't translating
the
> XML output.
> Is there some other configuration needed to make your servlet a
"pipeline"?
>
> Thanks for the quick response.
>
> -----Original Message-----
> From: Bob Garvey [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, January 29, 2002 4:11 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Servlets and Cocoon2.
>
>
> I had a question about servlets in a pipeline and came up with the
following
> a few days ago.  The discussion is in the archives, I assume.
>
>
> Thanks to Vadim Gritsenko and David Rosenstrauch.
> This scheme now works.
> Here is what I learned that may be valuable to others who would like to
> write servlets that output XML and would like for the XML to be input to
an
> XLS Transformation.
>
> The sitemap entry:
>    <map:match pattern="servlet23/*">
>      <map:generate src="http://cb:8080/examples/servlet/servlet23.{1}"/>
>      <map:transform src="stylesheets/servlet23/{1}"/>
>      <map:serialize type="html"/>
>    </map:match>
> ---------------------
> where
> . servlet23 is a package name; this makes the matching straightforward.
> . the generate src entry is the servlet as externally referencable: note
> that if you address it from a browser you will get xml that you can look
at
> for debug
> . the stylesheet is pathed from cocoon root.
> ---------------------------------------------------------------------
> Debugging required looking at:
> the logs in %tomcathome%\logs
> and %tomcathome%\webapps\cocoon\WEB-INF\logs
>
>
> A distinction I see is that you do not have /servlet/ in the URI path.
>
>
> ----- Original Message -----
> From: "Hall, Joe" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, January 29, 2002 2:55 PM
> Subject: Servlets and Cocoon2.
>
>
> > I saw this message in the archives, but I can't seem to get servlets and
> > Cocoon2 to work.
> > I think my problem is getting the servlet to run.  It's like it is not
in
> > the classpath.
> > I have my servlet in WEB-INF\classes\testcocoonproject\TestServlet.
> > Here's the entry from my sitemap file:
> >   <map:match pattern="testcocoonproject/*">
> >      <map:generate
> > src="http://localhost:9090/Cocoon/testcocoonproject.{1}"/>
> >      <map:transform src="stylesheets/page/simple-page2html.xsl"/>
> >      <map:serialize type="html"/>
> >    </map:match
> >
> > I would expect when I enter the URL
> > (http://localhost:9090/Cocoon/testcocoonproject/TestServlet) that the
> > servlet would execute but I get a an error message.  It picks up the
> > testcocoonproject/*, but TestServlet yeilds the same result as any other
> > non-existant name.
> >
> > org.apache.cocoon.ProcessingException: Could not read resource
> > http://localhost:9090/Cocoon/testcocoonproject.TestServlet
> >
> > Do you have any suggestions on how to get this to work or samples of
> servlet
> > output to Cocoon for XSL Transformation?
> >
> > Thanks,
> >
> > Joe Hall
> >
> > --------------INCLUDED MESSAGE FROM THE COCOON
ARCHIVES-------------------
> > Yes, working now.  I sent the following yesterday.  Thanks very much for
> > your help.
> >
> > Thanks to Vadim Gritsenko and David Rosenstrauch.
> > This scheme now works.
> > Here is what I learned that may be valuable to others who would like to
> > write servlets that output XML and would like for the XML to be input to
> an
> > XLS Transformation.
> >
> > The sitemap entry:
> >    <map:match pattern="servlet23/*">
> >      <map:generate src="http://cb:8080/examples/servlet/servlet23.{1}"/>
> >      <map:transform src="stylesheets/servlet23/{1}"/>
> >      <map:serialize type="html"/>
> >    </map:match>
> > ---------------------
> > where
> > . servlet23 is a package name; this makes the matching straightforward.
> > . the generate src entry is the servlet as externally referencable: note
> > that if you address it from a browser you will get xml that you can look
> at
> > for debug
> > . the stylesheet is pathed from cocoon root.
> > ---------------------------------------------------------------------
> > Debugging required looking at:
> > the logs in %tomcathome%\logs
> > and %tomcathome%\webapps\cocoon\WEB-INF\logs
>
> --------------------------------------------------------------------------
> -
> > Thanks to all developers for a great system.
> >
> > ---------------------------END INCLUDED
> > MESSAGE-------------------------------------------------
> >
> > ---------------------------------------------------------------------
> > Please check that your question has not already been answered in the
> > FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
> >
> > To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> > For additional commands, e-mail: <[EMAIL PROTECTED]>
> >
>
>
> ---------------------------------------------------------------------
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
>
> ---------------------------------------------------------------------
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
>


---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>

Reply via email to