hi luc, et al -

        regarding tomcat and cocoon ... i was able to get
        cocoon to print out a status page for the following
        logical request:

                localhost:8080/hello.xml

        perhaps the root cause has something to do with the
        attached posting by brenden on [EMAIL PROTECTED]

        now, i'm doing this under the next tomcat release
        which is the servlet 2.2 reference implementation
        and i realize the following will only be relevant to
        a select number of folks on this list but ... here's
        the configuration information i'm using:

<web-app>
  <servlet>
    <servlet-name>
      cocoon
    </servlet-name>
    <servlet-class>
      org.apache.cocoon.Cocoon
    </servlet-class>
    <init-param>
      <param-name>
        properties
      </param-name>
      <param-name>
        /tmp/cocoon.properties
      </param-value>
    </init-param>
  </servlet>
  <servlet-mapping>
    <servlet-name>
      cocoon
    </servlet-name>
    <url-pattern>
      *.xml
    </url-pattern>
  </servlet-mapping>
</web-app>

        now, given a bit of time i could try this with the
        jswdk-1.0-ea (tomcat) distribution but based on my
        recent findings i'm fairly confident cocoon should
        work. i'll see if i can give it a go.

brenden -

        thx for the posting. you mention a fix for Engine.java
        and indicate something must change in Cocoon.java as
        well. can you provide more info as to the necessary
        changes?

        thx much,

- james

Luc Saint-Elie wrote:
>
> Jebu,
>
> I've exactly the same problem with Tomcat and Cocoon (that is the same kind
> of stuff, a servlet processing a specific extension, xml in cocoon's case)
> under NT.
>
> I can use cocoon with
> http://my_server/my_webapp/servlet/cocoon/news.xml
>
> But not with the logical (logical because I have a mapping.properties
> stating .xml=cocoon)
>
> http://my_server/my_webapp/news.xml
>
> Not big deal.. but strange deal :-))
>
> Le 15:18 18/08/99 +0530, Jebu Ittiachen a écrit:
> >Hi,
> >         Is there anyway I can get Tomcat to work with GNUJSP?? ie; how do I
> >map the .jsp extension to jsp servlet under the reference kit provided by
> >Sun??
> >I was able to load the jsp pages by tricking the servlet into loading it by
> >giving a url of this form
> >http://localhost:8080/servlet/gnujsp/examples/snoop.jsp
> >This way the servlet was generated and compiled but I have to reload the
> >page to see the contents of the jsp. All futher calls go on fine.
>
> +------------------------------------------------+
> | Luc Saint-Elie                                 |
> | 53, rue Caulaincourt                           |
> | 75018  Paris France                            |
> | Tel: 01 42 52 09 62 / 06 12 90 19 65           |
> | email : [EMAIL PROTECTED]                   |
> +------------------------------------------------+
> |  Java Server Side  Open Source technologies    |
> |       http://www.interpasnet.com/JSS           |
> +------------------------------------------------+
>
> ___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html


go to Engine.java , find
==============================================================
    public void handle(PrintWriter out, HttpServletRequest request,
HttpServletResponse response) throws Exception {

        long time = 0;

        if (VERBOSE) {
            time = System.currentTimeMillis();
        }

        String basename = request.getPathTranslated();
==============================================================
at Tomcate, getPathTranslated() will get nulll at mapping, so change it to

==============================================================
 public void handle(PrintWriter out, HttpServletRequest request,
HttpServletResponse response, ServletContext context) throws Exception {

        long time = 0;

        if (VERBOSE) {
            time = System.currentTimeMillis();
        }


String basename =  context.getRealPath(request.getServletPath()));

==============================================================

you must change Cocoon.java, too.
-Brenden- @_@
----- Original Message -----
From: Luc Saint-Elie <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, August 18, 1999 12:53 AM
Subject: JSWDK 1.0 (Tomcat) with Cocoon


> Hello,
>
> Has anybody successfully set Cocoon 1.3.1 with Tomcat (JSWDK 1.0-ea) under
> Win32?
> I'm looking for correct settings.
>
> Until now I'm able to display Cocoon status but despite
>
> .xml = Cocoon
>
> In my mapping.properties file, a call to a .xml file leads to a Cocoon
> status page display, not to a XSL processing
> (The strange thing is that JSP work perfectly)
>
> To avoid a class loader problem I'v tried with cocoon.jar, xslp.jar and
> openxml.jar jared and included in the CLASSPATH (the files been inside
> JSWDK directory, in the lib directory), and I tried also unjaring both in
> the WEB-INF/servlets.
> Both solutions fail, the only result been a status page display.
>
> I post this message in JSP-INTEREST because its clearly a Tomcat (JSP)
> settings problem, cocoon works like a charm with other servers
>
> Thanks in advance
> +------------------------------------------------+
> | Luc Saint-Elie                                 |
> | 53, rue Caulaincourt                           |
> | 75018  Paris France                            |
> | Tel: 01 42 52 09 62 / 06 12 90 19 65           |
> | email : [EMAIL PROTECTED]                   |
> +------------------------------------------------+
> |  Java Server Side  Open Source technologies    |
> |       http://www.interpasnet.com/JSS           |
> +------------------------------------------------+
>
>
===========================================================================
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
body
> of the message "signoff JSP-INTEREST".  For general help, send email to
> [EMAIL PROTECTED] and include in the body of the message "help".
> For JSP FAQ, http://www.esperanto.org.nz/jsp/jspfaq.html
>
>

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JSP-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".
For JSP FAQ, http://www.esperanto.org.nz/jsp/jspfaq.html


Reply via email to