You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Mike Thomas <mi...@bigrideau.com> on 2001/06/13 03:46:10 UTC

Tomcat + Cocoon, .xml not displayed

 Let me preface by saying I have read the FAQ and searched the archvies,
but no luck.

 When attempting to view .xml files via Cocoon-Tomcat  I get a 404
error. The Tomcat install itself serves up the other pages and seems to
work ok(/cocoon context is visible etc).

 I deleted the parser.jar so that xerces would be alone in the
classpath. I also tried changing the properties parm to be a fully
qualified file:// URL, but no success. I also tried changing the debug
levels in Tomcat and Cocoon, again without success.

 TIA,

 Mike.

---------------------------------------------------------------------
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: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>


Re: Tomcat + Cocoon, .xml not displayed

Posted by Mike Thomas <mi...@bedarra.com>.
> I am experiencing the exact same problem. I too get
> 404 error. But when I try to execute the xml for the
> first time, it gives me an error saying:
> 
> exception in preInit org.apache.cocoon.Cocoon not
> found java.lang.ClassNotFoundException.

 This is definitely a classpath issue. Sounds like the cocoon jars were
not copied to the tomcat lib directory.
> 
> Do you get the same exception?? 

 No, unfortunately, I get no exceptions at all.

 My cp is:
 
../bin/../lib/1xalan.jar:../bin/../lib/1xerces.jar:../bin/../lib/ant.jar:../bin/../lib/ant_1_1.jar:../bin/../lib/bsf.jar:../bin/../lib/bsfengines.jar:../bin/../lib/fesi.jar:../bin/../lib/fop_0_15_0.jar:../bin/../lib/jasper.jar:../bin/../lib/sax-bugfix.jar:../bin/../lib/servlet.jar:../bin/../lib/servlet_2_2.jar:../bin/../lib/stylebook-1.0-b2.jar:../bin/../lib/test:../bin/../lib/turbine-pool.jar:../bin/../lib/w3c.jar:../bin/../lib/webserver.jar:../bin/../lib/xml.jar:../bin/../lib/xt.jar:/home/mike/jdk/lib/tools.jar

---------------------------------------------------------------------
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: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>


Re: Tomcat + Cocoon, .xml not displayed

Posted by kaushik lahoti <co...@yahoo.com>.
Hi Mike,

I am experiencing the exact same problem. I too get
404 error. But when I try to execute the xml for the
first time, it gives me an error saying:

exception in preInit org.apache.cocoon.Cocoon not
found java.lang.ClassNotFoundException.

Do you get the same exception?? That makes me believe
that this is a classpath error. Can you tell me what
your classpath is? I am using windows 2000
professional.

Thanks much,

Kaushik.
--- Mike Thomas <mi...@bedarra.com> wrote:
> 
> > 
> > Have you added context to server.xml file?
> 
>  Yes. I can access the context and any non .xml
> files fine. It is just
> the xml that does not display. If I change the
> web.xml file to handle
> some other bogus type (.yyz for instance) then the
> .xml is displayed as
> text in the browser. This leads me to believe that
> Cocoon is throwing an
> exception while trying to process the xml file and
> that is being turned
> into a 404 error by Tomcat. Any help on increasing
> the Cocoon debugging
> is welcome(I have already done so in Tomcat, but no
> help).
> 
>  I have read the install doc several times, as well
> as some other
> tutorials but cannot see where I have gone wrong. I
> am using Tomcat
> standalone (No apache).
> 
> 
> > 
> > Here is the steps to installing cocoon
> successfully:
> > http://xml.apache.org/cocoon/install.html#tomcat
> > if you follow this steps with care your cocoon
> MUST works.
> > 
> >
> 
>
---------------------------------------------------------------------
> 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:
> <co...@xml.apache.org>
> For additional commands, e-mail:
> <co...@xml.apache.org>
> 


__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35 
a year!  http://personal.mail.yahoo.com/

---------------------------------------------------------------------
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: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>


Re: Tomcat + Cocoon, .xml not displayed

Posted by Mike Thomas <mi...@bedarra.com>.
> 
> Have you added context to server.xml file?

 Yes. I can access the context and any non .xml files fine. It is just
the xml that does not display. If I change the web.xml file to handle
some other bogus type (.yyz for instance) then the .xml is displayed as
text in the browser. This leads me to believe that Cocoon is throwing an
exception while trying to process the xml file and that is being turned
into a 404 error by Tomcat. Any help on increasing the Cocoon debugging
is welcome(I have already done so in Tomcat, but no help).

 I have read the install doc several times, as well as some other
tutorials but cannot see where I have gone wrong. I am using Tomcat
standalone (No apache).


> 
> Here is the steps to installing cocoon successfully:
> http://xml.apache.org/cocoon/install.html#tomcat
> if you follow this steps with care your cocoon MUST works.
> 
>

---------------------------------------------------------------------
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: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>


Re: Tomcat + Cocoon, .xml not displayed

Posted by Pier Paolo Bortone <pi...@netengineering.it>.
Have you added context to server.xml file?

Here is the steps to installing cocoon successfully:
http://xml.apache.org/cocoon/install.html#tomcat
if you follow this steps with care your cocoon MUST works.

Good Luck :-)

Pier Paolo.


----- Original Message ----- 
From: "Mike Thomas" <mi...@bedarra.com>
To: <co...@xml.apache.org>
Sent: Wednesday, June 13, 2001 2:58 PM
Subject: Re: Tomcat + Cocoon, .xml not displayed


> In had already moved the xerces. I moved the xalan jar, still no luck.
> I am getting no exceptions and no errors(other than the 404). I am
> running on RH 6.1.
> 
>  Mike.
> 
> Frans Thamura wrote:
> > 
> > Try to check you installation.
> > 
> > modify tomcat.bat and put xerces, xalan in the first of the CP
> > 
> > Frans
> 
> ---------------------------------------------------------------------
> 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: <co...@xml.apache.org>
> For additional commands, e-mail: <co...@xml.apache.org>


---------------------------------------------------------------------
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: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>


Re: Tomcat + Cocoon, .xml not displayed

Posted by Mike Thomas <mi...@bedarra.com>.
 In had already moved the xerces. I moved the xalan jar, still no luck.
I am getting no exceptions and no errors(other than the 404). I am
running on RH 6.1.

 Mike.

Frans Thamura wrote:
> 
> Try to check you installation.
> 
> modify tomcat.bat and put xerces, xalan in the first of the CP
> 
> Frans

---------------------------------------------------------------------
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: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>


Re: Tomcat + Cocoon, .xml not displayed

Posted by Frans Thamura <ft...@yahoo.com>.
Try to check you installation.

modify tomcat.bat and put xerces, xalan in the first of the CP

Frans

----- Original Message ----- 
From: "Mike Thomas" <mi...@bigrideau.com>
To: <co...@xml.apache.org>
Sent: Wednesday, June 13, 2001 8:46 AM
Subject: Tomcat + Cocoon, .xml not displayed


> 
>  Let me preface by saying I have read the FAQ and searched the archvies,
> but no luck.
> 
>  When attempting to view .xml files via Cocoon-Tomcat  I get a 404
> error. The Tomcat install itself serves up the other pages and seems to
> work ok(/cocoon context is visible etc).
> 
>  I deleted the parser.jar so that xerces would be alone in the
> classpath. I also tried changing the properties parm to be a fully
> qualified file:// URL, but no success. I also tried changing the debug
> levels in Tomcat and Cocoon, again without success.
> 
>  TIA,
> 
>  Mike.
> 
> ---------------------------------------------------------------------
> 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: <co...@xml.apache.org>
> For additional commands, e-mail: <co...@xml.apache.org>


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


---------------------------------------------------------------------
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: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>


Re: Tomcat + Cocoon, .xml not displayed

Posted by Mike Thomas <mi...@bedarra.com>.
> So, you are using Cocoon 2, rigth? Have you tried the samples?

  No, Cocoon 1.8.2. It is the samples I am trying to use. Any time I
click one of the sample .xml files I get the 404. 

 Mike.
> 
> Giacomo
> 
> >
> >  I deleted the parser.jar so that xerces would be alone in the
> > classpath. I also tried changing the properties parm to be a fully
> > qualified file:// URL, but no success. I also tried changing the debug
> > levels in Tomcat and Cocoon, again without success.
> >
> >  TIA,
> >
> >  Mike.
> >
> > ---------------------------------------------------------------------
> > 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: <co...@xml.apache.org>
> > For additional commands, e-mail: <co...@xml.apache.org>
> >
> >
> >
> >
> 
> ---------------------------------------------------------------------
> 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: <co...@xml.apache.org>
> For additional commands, e-mail: <co...@xml.apache.org>

---------------------------------------------------------------------
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: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>


Re: Tomcat + Cocoon, .xml not displayed

Posted by giacomo <gi...@apache.org>.
On Tue, 12 Jun 2001, Mike Thomas wrote:

>
>  Let me preface by saying I have read the FAQ and searched the archvies,
> but no luck.
>
>  When attempting to view .xml files via Cocoon-Tomcat  I get a 404
> error. The Tomcat install itself serves up the other pages and seems to
> work ok(/cocoon context is visible etc).

So, you are using Cocoon 2, rigth? Have you tried the samples?

Giacomo

>
>  I deleted the parser.jar so that xerces would be alone in the
> classpath. I also tried changing the properties parm to be a fully
> qualified file:// URL, but no success. I also tried changing the debug
> levels in Tomcat and Cocoon, again without success.
>
>  TIA,
>
>  Mike.
>
> ---------------------------------------------------------------------
> 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: <co...@xml.apache.org>
> For additional commands, e-mail: <co...@xml.apache.org>
>
>
>
>


---------------------------------------------------------------------
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: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>