You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by "Udaypal R. Aarkoti" <ua...@techcontrol.com> on 2000/06/07 19:09:53 UTC

Unable to see Cocoon.xml

Hi guys,
         i pretty new to this cocoon concept.
I'm trying to set up cocoon in my machine but when i try to use this URL

http://localhost:8080/Cocoon.xml

i get the following error

java.io.FileNotFoundException:
/var/jakarta-tomcat/webapps/ROOT/var/cocoon-1.7.4/conf/cocoon.properties (No
such file or directory)
	at java.io.FileInputStream.open(Native Method)
	at java.io.FileInputStream.(FileInputStream.java:64)
	at
sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:6
8)
	at
sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLConnection
.java:132)
	at org.apache.cocoon.Cocoon.init(Cocoon.java:123)
	at
org.apache.tomcat.core.ServletWrapper.initServlet(ServletWrapper.java:315)
	at
org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:445)
	at org.apache.tomcat.core.ContextManager.service(ContextManager.java:559)
	at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:160)
	at
org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java:338
)
	at java.lang.Thread.run(Thread.java:475)


I tried to change the path in the property file (cocoon.properties) but i'm
still getting the same error.

I have one more question, when i run the build.sh shell script what are the
files that are build?

Please direct me in the correct direction.

Thank you in advance
Udaypal R. Aarkoti


Re: Unable to see Cocoon.xml

Posted by Giacomo Pati <Gi...@pwr.ch>.
The status page is called Cocoon.xml not cocoon.xml

Giacomo

On Wed, Jun 07, 2000 at 02:41:40PM -0400, Udaypal R. Aarkoti wrote:
> Mike,
>       now there is a new error.
> 
> Error found handling the request.
> org.xml.sax.SAXParseException: File
> "file:/var/jakarta-tomcat/webapps/ROOT/cocoon.xml" not found.
> 	at
> org.apache.cocoon.parser.AbstractParser.fatalError(AbstractParser.java:105)
> 	at org.apache.xerces.framework.XMLParser.reportError(XMLParser.java:1347)
> 	at
> org.apache.xerces.framework.XMLParser.startReadingFromDocument(XMLParser.jav
> a:2424)
> 	at org.apache.xerces.framework.XMLParser.parseSomeSetup(XMLParser.java:346)
> 	at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1207)
> 	at org.apache.cocoon.parser.XercesParser.parse(XercesParser.java:84)
> 	at org.apache.cocoon.parser.AbstractParser.parse(AbstractParser.java:83)
> 	at
> org.apache.cocoon.producer.ProducerFromFile.getDocument(ProducerFromFile.jav
> a:78)
> 	at org.apache.cocoon.Engine.handle(Engine.java:289)
> 	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
> onnectionHandler.java:160)
> 	at
> org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java:338
> )
> 	at java.lang.Thread.run(Thread.java:475)
> 
> Is cocoon.xml created dynamically?
> If yes, i dont see that in the ROOT directory, if no where does this
> cocoon.xml reside
> 
> 
> -----Original Message-----
> From: Mike Engelhart [mailto:mengelhart@earthtrip.com]
> Sent: Wednesday, June 07, 2000 2:12 PM
> To: cocoon-users@xml.apache.org
> Subject: Re: Unable to see Cocoon.xml
> 
> 
> on 6/7/00 12:51 PM, Udaypal R. Aarkoti at uaarkoti@techcontrol.com wrote:
> 
> > Hi Mike,
> > i already tried this, i also tried to put the propeties file in
> > /var/jakarta-tomcat/webapps/ROOT but it didnot work. I get the same error.
> >
> > I'm trying the change the path of the properties file throught the web.xml
> > in cocoon/src/WEB-INF directory and then run the build.sh script. Is this
> > the correct approach or is there another approach.
> >
> > After i build i'm copying the cocoon.jar into the tomcat/lib directory,
> > again can i ask if this is the only change needed when you change the
> path?
> >
> > thank you
> 
> It doesn't matter where you build cocoon.jar.  Just build it in any
> directory and then move it to tomcat/lib.
> 
> Then, in your root web directories WEB-INF/ directory, there needs to be 2
> things, a cocoon.properties and a web.xml.   web.xml needs to have this:
> 
>     <servlet>
>         <servlet-name>
>             cocoon
>         </servlet-name>
>         <servlet-class>
>             org.apache.cocoon.Cocoon
>         </servlet-class>
>         <init-param>
>             <param-name>
>                 properties
>             </param-name>
>             <param-value>
>                 WEB-INF/cocoon.properties
>             </param-value>
>         </init-param>
>         <load-on-startup>-10</load-on-startup>
>     </servlet>
> 
> 
> and that should do it.
> 
> Mike
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
> For additional commands, e-mail: cocoon-users-help@xml.apache.org
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
> For additional commands, e-mail: cocoon-users-help@xml.apache.org
> 

-- 
PWR GmbH, Organisation & Entwicklung      Tel:   +41 (0)1 856 2202
Giacomo Pati, CTO/CEO                     Fax:   +41 (0)1 856 2201
Hintereichenstrasse 7                     Mailto:Giacomo.Pati@pwr.ch
CH-8166 Niederweningen                    Web:   http://www.pwr.ch


Re: Unable to see Cocoon.xml

Posted by Ulrich Mayring <ul...@denic.de>.
Stefano Mazzocchi wrote:
> 
> I think this is addressed to me and, well, it hurts a little to know
> that, given that I wrote it to simplify installation and runtime
> checking...

I'm happy with Cocoon.xml, don't spend too much time there. It's a
status page, guys :)

> Mike, since we need to rewrite this for C2, do you have any idea on how
> to improve the thing? I'm all ears.

Considering that the normal cocoon user will see this page only once,
after a fresh install, and subsequently turn it off, and only turn it on
again, if cocoon stops working, I don't think this merits too much work
:)

Ulrich

-- 
Ulrich Mayring
DENIC eG, Systementwicklung

Re: Unable to see Cocoon.xml

Posted by Stefano Mazzocchi <st...@apache.org>.
Sebastien Koechlin I-VISION wrote:
> 
> Stefano Mazzocchi wrote:
> 
> > I think this is addressed to me and, well, it hurts a little to know
> > that, given that I wrote it to simplify installation and runtime
> > checking...
> >
> > Mike, since we need to rewrite this for C2, do you have any idea on how
> > to improve the thing? I'm all ears.
> 
> Could you add CLASS_PATH? Many people have problems because of a
> wrong class path and not every Serlvet allow you to display the
> effective CLASS_PATH.

Well, Cocoon2 will have a special classloader... anyway, yes, I'll list
all the packages accessible from that classloader.
 
> Sort() the 'store' (cache) displayed cell would make it easier to read.

Good point.
 
> <out-of-topic>
> Why does I have:
>         Mozilla/4.0 (compatible; MSIE 5.0; Windows
> NT):http://ivision-7.ivision.fr:80/cocoon/samples/?null
> AND
>         Mozilla/4.6 [fr] (WinNT;
> I):http://ivision-7.ivision.fr:80/cocoon/samples/?null
> ?
> it's a static page,
> both use the same stylesheet,
> both have the same media value (html) in my cocoon.properties
> </out-of-topic>

In Cocoon2 you will be able to indicate _how_ you should index your
requests in the cache... this means that if you have different
stylesheets depending on user-agent, you need to index them containing
this information or the different will be lost after the first hit.

Same thing with request queries.
 
> Global statistics may also be usefull like:
>         - Cocoon start time (did I restart Cocoon after
>                 changing cocoon.properties?)

Ok, trivial fix.

>         - Number of hits
>         - Number of cache hit
>         - Average service time

Good.
 
> Less usefull:
>         For each entry in cache:
>         - Number of hit
>         - Age
>         - Average service time

Hmmm, might require memory... but, well, allowing to turning them off
would not hurt...

> In fact, having thoses in Cocoon1 would be also
> usefull (to me).

Good suggestions. Thanks a lot. :)

-- 
Stefano Mazzocchi      One must still have chaos in oneself to be
                          able to give birth to a dancing star.
<st...@apache.org>                             Friedrich Nietzsche
--------------------------------------------------------------------
 Missed us in Orlando? Make it up with ApacheCON Europe in London!
------------------------- http://ApacheCon.Com ---------------------



Re: Unable to see Cocoon.xml

Posted by Sebastien Koechlin I-VISION <sk...@n-soft.com>.
Stefano Mazzocchi wrote:

> I think this is addressed to me and, well, it hurts a little to know
> that, given that I wrote it to simplify installation and runtime
> checking...
> 
> Mike, since we need to rewrite this for C2, do you have any idea on how
> to improve the thing? I'm all ears.

Could you add CLASS_PATH? Many people have problems because of a
wrong class path and not every Serlvet allow you to display the
effective CLASS_PATH.

Sort() the 'store' (cache) displayed cell would make it easier to read.

<out-of-topic>
Why does I have:
	Mozilla/4.0 (compatible; MSIE 5.0; Windows
NT):http://ivision-7.ivision.fr:80/cocoon/samples/?null  
AND
	Mozilla/4.6 [fr] (WinNT;
I):http://ivision-7.ivision.fr:80/cocoon/samples/?null
?
it's a static page,
both use the same stylesheet,
both have the same media value (html) in my cocoon.properties
</out-of-topic>

Global statistics may also be usefull like:
	- Cocoon start time (did I restart Cocoon after
		changing cocoon.properties?)
	- Number of hits
	- Number of cache hit
	- Average service time

Less usefull:
	For each entry in cache:
	- Number of hit
	- Age
	- Average service time

In fact, having thoses in Cocoon1 would be also
usefull (to me).

-- 
Sebastien Koechlin

Re: Unable to see Cocoon.xml

Posted by Stefano Mazzocchi <st...@apache.org>.
Mike Engelhart wrote:
> 
> on 6/8/00 6:48 AM, Stefano Mazzocchi at stefano@apache.org wrote:
> 
> > I think this is addressed to me and, well, it hurts a little to know
> > that, given that I wrote it to simplify installation and runtime
> > checking...
> >
> > Mike, since we need to rewrite this for C2, do you have any idea on how
> > to improve the thing? I'm all ears.
> Sorry Stefano - I didn't mean to flip it off but the cocoon-users list is
> rife with questions regarding not being able to get Cocoon.xml to work. I
> personally have done fresh installs several times of different releases of
> Cocoon where Cocoon.xml didn't work but everything else did.  Also, I was
> getting frustrated with this thread...
> 
> As for improving this, since I started using Cocoon 6 months ago, I have
> been envisioning much more than a flat startup status page but rather an
> applet that hooks into both Cocoon and the servlet engine that has real-time
> session information, number of current threads, and other "live" stats as
> well as ways to change maybe cocoon.properties and some other things like
> start/stop the server and/or servlet, etc.   I doubt this would make it into
> C2 and as I haven't even built the a1 CVS yet, I don't know anything about
> the status page but I would say just leave it if people think it's useful
> but I hope to create my admin applet at some point as well.

Applets are evil to write and to manage. Since we control the server
side, I think a web application would be the thing. I already thought
about creating SVG piecharts of cache load and all some very juicy
stuff.

Also, the use of Java 1.2 and Servlet 2.2 will much reduce the
installation effort given the ability of special classloaders (where
classpath will not be needed!!) and cocoon.war dropping into Tomcat.

It already works more or less that way and the sitemap is simply great.

I know installing Cocoon1 is frustrating, but not even close to the
frustration of supporting almost all the Servlet 2.0, 2.1 and 2.2
engines all in one servlet!!!

Cocoon2 will require a Java 1.2 JVM and a Servlet 2.2 servlet engine.
Period.

But will be a piece of cake to install, otherwise, it will be considered
a bug.

-- 
Stefano Mazzocchi      One must still have chaos in oneself to be
                          able to give birth to a dancing star.
<st...@apache.org>                             Friedrich Nietzsche
--------------------------------------------------------------------
 Missed us in Orlando? Make it up with ApacheCON Europe in London!
------------------------- http://ApacheCon.Com ---------------------



Re: Unable to see Cocoon.xml

Posted by Sebastien Koechlin I-VISION <sk...@n-soft.com>.
Mike Engelhart wrote:

> I personally have done fresh installs several times of different
> releases of Cocoon where Cocoon.xml didn't work but everything
> else did.  Also, I was getting frustrated with this thread...

It's the same here.

I use JServ and	http://host/servlet/org.apache.cocoon.Cocoon/Cocoon.xml
is always working, http://host/Cocoon.xml not.

We should find a similar URI for Tomcat and put this into the FAQ.

-- 
Sebastien Koechlin

Re: Unable to see Cocoon.xml

Posted by Mike Engelhart <me...@earthtrip.com>.
on 6/8/00 6:48 AM, Stefano Mazzocchi at stefano@apache.org wrote:

> I think this is addressed to me and, well, it hurts a little to know
> that, given that I wrote it to simplify installation and runtime
> checking...
> 
> Mike, since we need to rewrite this for C2, do you have any idea on how
> to improve the thing? I'm all ears.
Sorry Stefano - I didn't mean to flip it off but the cocoon-users list is
rife with questions regarding not being able to get Cocoon.xml to work. I
personally have done fresh installs several times of different releases of
Cocoon where Cocoon.xml didn't work but everything else did.  Also, I was
getting frustrated with this thread...

As for improving this, since I started using Cocoon 6 months ago, I have
been envisioning much more than a flat startup status page but rather an
applet that hooks into both Cocoon and the servlet engine that has real-time
session information, number of current threads, and other "live" stats as
well as ways to change maybe cocoon.properties and some other things like
start/stop the server and/or servlet, etc.   I doubt this would make it into
C2 and as I haven't even built the a1 CVS yet, I don't know anything about
the status page but I would say just leave it if people think it's useful
but I hope to create my admin applet at some point as well.

??

mike



Re: Unable to see Cocoon.xml

Posted by Mark Washeim <es...@canuck.com>.
on 8/6/00 1:48 pm, Stefano Mazzocchi at stefano@apache.org wrote:

> Mike Engelhart wrote:
>> 
>> on 6/7/00 1:41 PM, Udaypal R. Aarkoti at uaarkoti@techcontrol.com wrote:
>> 
>>> Mike,
>>> now there is a new error.
>>> 
>>> Is cocoon.xml created dynamically?
>>> If yes, i dont see that in the ROOT directory, if no where does this
>>> cocoon.xml reside
>> cocoon.xml is not a real page. Cocoon just intercepts it and spits out a
>> response.
>> 
>> Try http://localhost/ROOT/Cocoon.xml?
>> 
>> Cocoon.xml is not a very good metric on whether or not Cocoon is working
>> properly.  It's been more of a pain in the ass than anything else :-)
> 
> I think this is addressed to me and, well, it hurts a little to know
> that, given that I wrote it to simplify installation and runtime
> checking...
> 
> Mike, since we need to rewrite this for C2, do you have any idea on how
> to improve the thing? I'm all ears.

I disagree entirely with Mike. It's generally all one needs for a quick
check . . . in the case where XSP is employed, it's not that usefull, but
for general operation on to observe the activity of the object store, it's
GREAT!



-- 
Mark (Poetaster) Washeim

'On the linen wrappings of certain mummified remains
found near the Etrurian coast are invaluable writings
that await translation.

Quem colorem habet sapientia?'

Evan S. Connell

 



Re: Unable to see Cocoon.xml

Posted by Stefano Mazzocchi <st...@apache.org>.
Mike Engelhart wrote:
> 
> on 6/7/00 1:41 PM, Udaypal R. Aarkoti at uaarkoti@techcontrol.com wrote:
> 
> > Mike,
> > now there is a new error.
> >
> > Is cocoon.xml created dynamically?
> > If yes, i dont see that in the ROOT directory, if no where does this
> > cocoon.xml reside
> cocoon.xml is not a real page. Cocoon just intercepts it and spits out a
> response.
> 
> Try http://localhost/ROOT/Cocoon.xml?
> 
> Cocoon.xml is not a very good metric on whether or not Cocoon is working
> properly.  It's been more of a pain in the ass than anything else :-)

I think this is addressed to me and, well, it hurts a little to know
that, given that I wrote it to simplify installation and runtime
checking...

Mike, since we need to rewrite this for C2, do you have any idea on how
to improve the thing? I'm all ears.

-- 
Stefano Mazzocchi      One must still have chaos in oneself to be
                          able to give birth to a dancing star.
<st...@apache.org>                             Friedrich Nietzsche
--------------------------------------------------------------------
 Missed us in Orlando? Make it up with ApacheCON Europe in London!
------------------------- http://ApacheCon.Com ---------------------



wml content generation problem with cocoon

Posted by "K.Sridhar Babu" <sb...@noida.hclt.com>.
Hi Friends,

        I am very new to Cocoon comunity, I just installed apache, jserv and cocoon on
win nt. All of them are working fine, I am also able to see all sample files using the
address http://127.0.0.1/samples/index.xml.
    I had written a xml file and two xsl s for html and wml content generation. I am able
to see from the ie5 the contents in html, but when I am trying to access the same file
from Nokia Toolkit, it is giving an error "unsupported content type text/html";
    The wml file given in the samples is working fine.

    Thanks in Advance for any help.

    Regards
        Sridhar Babu



Re: Unable to see Cocoon.xml

Posted by Nishit Trivedi <ni...@planet.net>.
First of all COMMENT OUT these lines in tomcat.properties

wrapper.classpath=@JSERV_CLASSES@
wrapper.classpath=@JSDK_CLASSES@

And add following lines in your tomcat.properties:

wrapper.classpath=<path_where_you_installed_tomcat>\lib\ant.jar
wrapper.classpath=<path_where_you_installed_tomcat>\lib\jasper.jar
wrapper.classpath=<path_where_you_installed_tomcat>\lib\serlvet.jar
wrapper.classpath=<path_where_you_installed_tomcat>\lib\webserver.jar
wrapper.classpath=<path_where_you_installed_tomcat>\lib\xml.jar

IF you are using jdk1.2.2, add this line also.
wrapper.classpath=<path_where_you_installed_jdk>\lib\tools.jar

cocoon.properties seems fine...
Good luck...

Nishit
Internet Programmer
Planet Access Networks
973-691-4704 Ext:157
----- Original Message -----
From: "Udaypal R. Aarkoti" <ua...@techcontrol.com>
To: <co...@xml.apache.org>
Sent: Wednesday, June 07, 2000 3:46 PM
Subject: RE: Unable to see Cocoon.xml


> These are the two property files.
>
> -----Original Message-----
> From: Nishit Trivedi [mailto:nishit@planet.net]
> Sent: Wednesday, June 07, 2000 3:32 PM
> To: cocoon-users@xml.apache.org
> Subject: Re: Unable to see Cocoon.xml
>
>
> can you send your cocoon.properties, tomcat.properties
> so we can have a look at it...
>
> Nishit
> Internet Programmer
> Planet Access Networks
> 973-691-4704 Ext:157
> ----- Original Message -----
> From: "Udaypal R. Aarkoti" <ua...@techcontrol.com>
> To: <co...@xml.apache.org>
> Sent: Wednesday, June 07, 2000 3:24 PM
> Subject: RE: Unable to see Cocoon.xml
>
>
> > no mike even that doesn't work. Is there any other way i can view those
> > examples?
> >
> >
> > -----Original Message-----
> > From: Mike Engelhart [mailto:mengelhart@earthtrip.com]
> > Sent: Wednesday, June 07, 2000 2:46 PM
> > To: cocoon-users@xml.apache.org
> > Subject: Re: Unable to see Cocoon.xml
> >
> >
> > on 6/7/00 1:41 PM, Udaypal R. Aarkoti at uaarkoti@techcontrol.com wrote:
> >
> > > Mike,
> > > now there is a new error.
> > >
> > > Is cocoon.xml created dynamically?
> > > If yes, i dont see that in the ROOT directory, if no where does this
> > > cocoon.xml reside
> > cocoon.xml is not a real page. Cocoon just intercepts it and spits out a
> > response.
> >
> > Try http://localhost/ROOT/Cocoon.xml?
> >
> > Cocoon.xml is not a very good metric on whether or not Cocoon is working
> > properly.  It's been more of a pain in the ass than anything else :-)
> >
> > Mike
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
> > For additional commands, e-mail: cocoon-users-help@xml.apache.org
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
> > For additional commands, e-mail: cocoon-users-help@xml.apache.org
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
> For additional commands, e-mail: cocoon-users-help@xml.apache.org
>


----------------------------------------------------------------------------
----


> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
> For additional commands, e-mail: cocoon-users-help@xml.apache.org


Re: Unable to see Cocoon.xml

Posted by Nishit Trivedi <ni...@planet.net>.
I am suspecting this line in web.xml...(:-{
check it out...

<param-value>[path-to-cocoon]/conf/cocoon.properties</param-value>

Nishit
Internet Programmer
Planet Access Networks
973-691-4704 Ext:157
----- Original Message -----
From: "Udaypal R. Aarkoti" <ua...@techcontrol.com>
To: <co...@xml.apache.org>
Sent: Wednesday, June 07, 2000 5:11 PM
Subject: RE: Unable to see Cocoon.xml


> Yes, tomcat is pretty good, i have problems with cocoon.
>
> I'm also sending you the web.xml /root/web-inf, this is it
>
> -----Original Message-----
> From: Mike Engelhart [mailto:mengelhart@earthtrip.com]
> Sent: Wednesday, June 07, 2000 3:52 PM
> To: cocoon-users@xml.apache.org
> Subject: Re: Unable to see Cocoon.xml
>
>
> on 6/7/00 2:46 PM, Udaypal R. Aarkoti at uaarkoti@techcontrol.com wrote:
>
> >
> > can you send your cocoon.properties, tomcat.properties
> > so we can have a look at it...
> >
> I think you meant to ask for web.xml.  We're assuming here that Tomcat
works
> fine right?  Just cocoon is giving you trouble?
>
> Mike
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
> For additional commands, e-mail: cocoon-users-help@xml.apache.org
>


----------------------------------------------------------------------------
----


> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
> For additional commands, e-mail: cocoon-users-help@xml.apache.org


Re: Unable to see Cocoon.xml

Posted by Mike Engelhart <me...@earthtrip.com>.
on 6/7/00 5:57 PM, Udaypal R. Aarkoti at uaarkoti@techcontrol.com wrote:

> did i tell you that i'm running the tomcat in linux. Anyhow does it
> matter if i'm running it on linux?
That's what I'm running it on...
what's the question?

If you make sure that cocoon.jar is in your tomcat/lib directory, your
cocoon.properties file is the WEB-INF directory of your web application and
have the following as the configuration for Cocoon in your web.xml file, all
should work fine.  Until you do that I can't help.

<!-- this goes in the web.xml file -->
    <servlet>
        <servlet-name>
            cocoon
        </servlet-name>
        <servlet-class>
            org.apache.cocoon.Cocoon
        </servlet-class>
        <init-param>
            <param-name>
                properties
            </param-name>
            <param-value>
                WEB-INF/cocoon.properties
            </param-value>
        </init-param>
        <load-on-startup>-10</load-on-startup>
    </servlet>

Mike



RE: Unable to see Cocoon.xml

Posted by "Udaypal R. Aarkoti" <ua...@techcontrol.com>.
Hi Mike,
        did i tell you that i'm running the tomcat in linux. Anyhow does it
matter if i'm running it on linux?

-----Original Message-----
From: Mike Engelhart [mailto:mengelhart@earthtrip.com]
Sent: Wednesday, June 07, 2000 7:24 PM
To: cocoon-users@xml.apache.org
Subject: Re: Unable to see Cocoon.xml


on 6/7/00 5:00 PM, Udaypal R. Aarkoti at uaarkoti@techcontrol.com wrote:

> I'm sorry i'm not using that xml file, i sent the wrong once. The actual
> file has that line as
> <param-value>cocoon.properties</param-value>
> coz i copied the properties file into the ROOT directory
Ok, but you still didn't put what i sent originally. It has to be:

<param-value>WEB-INF/cocoon.properties</param-value>


Mike


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org


Re: Unable to see Cocoon.xml

Posted by Mike Engelhart <me...@earthtrip.com>.
on 6/7/00 5:00 PM, Udaypal R. Aarkoti at uaarkoti@techcontrol.com wrote:

> I'm sorry i'm not using that xml file, i sent the wrong once. The actual
> file has that line as
> <param-value>cocoon.properties</param-value>
> coz i copied the properties file into the ROOT directory
Ok, but you still didn't put what i sent originally. It has to be:

<param-value>WEB-INF/cocoon.properties</param-value>


Mike


RE: Unable to see Cocoon.xml

Posted by "Udaypal R. Aarkoti" <ua...@techcontrol.com>.
I'm sorry i'm not using that xml file, i sent the wrong once. The actual
file has that line as
<param-value>cocoon.properties</param-value>
coz i copied the properties file into the ROOT directory

-----Original Message-----
From: Mike Engelhart [mailto:mengelhart@earthtrip.com]
Sent: Wednesday, June 07, 2000 5:32 PM
To: cocoon-users@xml.apache.org
Subject: Re: Unable to see Cocoon.xml


on 6/7/00 4:11 PM, Udaypal R. Aarkoti at uaarkoti@techcontrol.com wrote:

> Yes, tomcat is pretty good, i have problems with cocoon.
>
> I'm also sending you the web.xml /root/web-inf, this is it
Is this the exact web.xml you were using?

If it is then this line is what's causing your problem:

   <param-value>[path-to-cocoon]/conf/cocoon.properties</param-value>

That's why I sent you a complete web.xml element to stick in there.

Mike


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org


Re: Unable to see Cocoon.xml

Posted by Mike Engelhart <me...@earthtrip.com>.
on 6/7/00 4:11 PM, Udaypal R. Aarkoti at uaarkoti@techcontrol.com wrote:

> Yes, tomcat is pretty good, i have problems with cocoon.
> 
> I'm also sending you the web.xml /root/web-inf, this is it
Is this the exact web.xml you were using?

If it is then this line is what's causing your problem:

   <param-value>[path-to-cocoon]/conf/cocoon.properties</param-value>

That's why I sent you a complete web.xml element to stick in there.

Mike


RE: Unable to see Cocoon.xml

Posted by "Udaypal R. Aarkoti" <ua...@techcontrol.com>.
Yes, tomcat is pretty good, i have problems with cocoon.

I'm also sending you the web.xml /root/web-inf, this is it

-----Original Message-----
From: Mike Engelhart [mailto:mengelhart@earthtrip.com]
Sent: Wednesday, June 07, 2000 3:52 PM
To: cocoon-users@xml.apache.org
Subject: Re: Unable to see Cocoon.xml


on 6/7/00 2:46 PM, Udaypal R. Aarkoti at uaarkoti@techcontrol.com wrote:

>
> can you send your cocoon.properties, tomcat.properties
> so we can have a look at it...
>
I think you meant to ask for web.xml.  We're assuming here that Tomcat works
fine right?  Just cocoon is giving you trouble?

Mike


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org

Re: Unable to see Cocoon.xml

Posted by Mike Engelhart <me...@earthtrip.com>.
on 6/7/00 2:46 PM, Udaypal R. Aarkoti at uaarkoti@techcontrol.com wrote:

> 
> can you send your cocoon.properties, tomcat.properties
> so we can have a look at it...
> 
I think you meant to ask for web.xml.  We're assuming here that Tomcat works
fine right?  Just cocoon is giving you trouble?

Mike


RE: Unable to see Cocoon.xml

Posted by "Udaypal R. Aarkoti" <ua...@techcontrol.com>.
These are the two property files. 

-----Original Message-----
From: Nishit Trivedi [mailto:nishit@planet.net]
Sent: Wednesday, June 07, 2000 3:32 PM
To: cocoon-users@xml.apache.org
Subject: Re: Unable to see Cocoon.xml


can you send your cocoon.properties, tomcat.properties
so we can have a look at it...

Nishit
Internet Programmer
Planet Access Networks
973-691-4704 Ext:157
----- Original Message ----- 
From: "Udaypal R. Aarkoti" <ua...@techcontrol.com>
To: <co...@xml.apache.org>
Sent: Wednesday, June 07, 2000 3:24 PM
Subject: RE: Unable to see Cocoon.xml


> no mike even that doesn't work. Is there any other way i can view those
> examples?
> 
> 
> -----Original Message-----
> From: Mike Engelhart [mailto:mengelhart@earthtrip.com]
> Sent: Wednesday, June 07, 2000 2:46 PM
> To: cocoon-users@xml.apache.org
> Subject: Re: Unable to see Cocoon.xml
> 
> 
> on 6/7/00 1:41 PM, Udaypal R. Aarkoti at uaarkoti@techcontrol.com wrote:
> 
> > Mike,
> > now there is a new error.
> >
> > Is cocoon.xml created dynamically?
> > If yes, i dont see that in the ROOT directory, if no where does this
> > cocoon.xml reside
> cocoon.xml is not a real page. Cocoon just intercepts it and spits out a
> response.
> 
> Try http://localhost/ROOT/Cocoon.xml?
> 
> Cocoon.xml is not a very good metric on whether or not Cocoon is working
> properly.  It's been more of a pain in the ass than anything else :-)
> 
> Mike
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
> For additional commands, e-mail: cocoon-users-help@xml.apache.org
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
> For additional commands, e-mail: cocoon-users-help@xml.apache.org
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org

Re: Unable to see Cocoon.xml

Posted by Nishit Trivedi <ni...@planet.net>.
can you send your cocoon.properties, tomcat.properties
so we can have a look at it...

Nishit
Internet Programmer
Planet Access Networks
973-691-4704 Ext:157
----- Original Message ----- 
From: "Udaypal R. Aarkoti" <ua...@techcontrol.com>
To: <co...@xml.apache.org>
Sent: Wednesday, June 07, 2000 3:24 PM
Subject: RE: Unable to see Cocoon.xml


> no mike even that doesn't work. Is there any other way i can view those
> examples?
> 
> 
> -----Original Message-----
> From: Mike Engelhart [mailto:mengelhart@earthtrip.com]
> Sent: Wednesday, June 07, 2000 2:46 PM
> To: cocoon-users@xml.apache.org
> Subject: Re: Unable to see Cocoon.xml
> 
> 
> on 6/7/00 1:41 PM, Udaypal R. Aarkoti at uaarkoti@techcontrol.com wrote:
> 
> > Mike,
> > now there is a new error.
> >
> > Is cocoon.xml created dynamically?
> > If yes, i dont see that in the ROOT directory, if no where does this
> > cocoon.xml reside
> cocoon.xml is not a real page. Cocoon just intercepts it and spits out a
> response.
> 
> Try http://localhost/ROOT/Cocoon.xml?
> 
> Cocoon.xml is not a very good metric on whether or not Cocoon is working
> properly.  It's been more of a pain in the ass than anything else :-)
> 
> Mike
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
> For additional commands, e-mail: cocoon-users-help@xml.apache.org
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
> For additional commands, e-mail: cocoon-users-help@xml.apache.org
> 
> 


RE: Unable to see Cocoon.xml

Posted by "Udaypal R. Aarkoti" <ua...@techcontrol.com>.
no mike even that doesn't work. Is there any other way i can view those
examples?


-----Original Message-----
From: Mike Engelhart [mailto:mengelhart@earthtrip.com]
Sent: Wednesday, June 07, 2000 2:46 PM
To: cocoon-users@xml.apache.org
Subject: Re: Unable to see Cocoon.xml


on 6/7/00 1:41 PM, Udaypal R. Aarkoti at uaarkoti@techcontrol.com wrote:

> Mike,
> now there is a new error.
>
> Is cocoon.xml created dynamically?
> If yes, i dont see that in the ROOT directory, if no where does this
> cocoon.xml reside
cocoon.xml is not a real page. Cocoon just intercepts it and spits out a
response.

Try http://localhost/ROOT/Cocoon.xml?

Cocoon.xml is not a very good metric on whether or not Cocoon is working
properly.  It's been more of a pain in the ass than anything else :-)

Mike


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org


Re: Unable to see Cocoon.xml

Posted by Mike Engelhart <me...@earthtrip.com>.
on 6/7/00 1:41 PM, Udaypal R. Aarkoti at uaarkoti@techcontrol.com wrote:

> Mike,
> now there is a new error.
> 
> Is cocoon.xml created dynamically?
> If yes, i dont see that in the ROOT directory, if no where does this
> cocoon.xml reside
cocoon.xml is not a real page. Cocoon just intercepts it and spits out a
response.

Try http://localhost/ROOT/Cocoon.xml?

Cocoon.xml is not a very good metric on whether or not Cocoon is working
properly.  It's been more of a pain in the ass than anything else :-)

Mike


RE: Unable to see Cocoon.xml

Posted by "Udaypal R. Aarkoti" <ua...@techcontrol.com>.
Mike,
      now there is a new error.

Error found handling the request.
org.xml.sax.SAXParseException: File
"file:/var/jakarta-tomcat/webapps/ROOT/cocoon.xml" not found.
	at
org.apache.cocoon.parser.AbstractParser.fatalError(AbstractParser.java:105)
	at org.apache.xerces.framework.XMLParser.reportError(XMLParser.java:1347)
	at
org.apache.xerces.framework.XMLParser.startReadingFromDocument(XMLParser.jav
a:2424)
	at org.apache.xerces.framework.XMLParser.parseSomeSetup(XMLParser.java:346)
	at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1207)
	at org.apache.cocoon.parser.XercesParser.parse(XercesParser.java:84)
	at org.apache.cocoon.parser.AbstractParser.parse(AbstractParser.java:83)
	at
org.apache.cocoon.producer.ProducerFromFile.getDocument(ProducerFromFile.jav
a:78)
	at org.apache.cocoon.Engine.handle(Engine.java:289)
	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
onnectionHandler.java:160)
	at
org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java:338
)
	at java.lang.Thread.run(Thread.java:475)

Is cocoon.xml created dynamically?
If yes, i dont see that in the ROOT directory, if no where does this
cocoon.xml reside


-----Original Message-----
From: Mike Engelhart [mailto:mengelhart@earthtrip.com]
Sent: Wednesday, June 07, 2000 2:12 PM
To: cocoon-users@xml.apache.org
Subject: Re: Unable to see Cocoon.xml


on 6/7/00 12:51 PM, Udaypal R. Aarkoti at uaarkoti@techcontrol.com wrote:

> Hi Mike,
> i already tried this, i also tried to put the propeties file in
> /var/jakarta-tomcat/webapps/ROOT but it didnot work. I get the same error.
>
> I'm trying the change the path of the properties file throught the web.xml
> in cocoon/src/WEB-INF directory and then run the build.sh script. Is this
> the correct approach or is there another approach.
>
> After i build i'm copying the cocoon.jar into the tomcat/lib directory,
> again can i ask if this is the only change needed when you change the
path?
>
> thank you

It doesn't matter where you build cocoon.jar.  Just build it in any
directory and then move it to tomcat/lib.

Then, in your root web directories WEB-INF/ directory, there needs to be 2
things, a cocoon.properties and a web.xml.   web.xml needs to have this:

    <servlet>
        <servlet-name>
            cocoon
        </servlet-name>
        <servlet-class>
            org.apache.cocoon.Cocoon
        </servlet-class>
        <init-param>
            <param-name>
                properties
            </param-name>
            <param-value>
                WEB-INF/cocoon.properties
            </param-value>
        </init-param>
        <load-on-startup>-10</load-on-startup>
    </servlet>


and that should do it.

Mike


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org


Re: Unable to see Cocoon.xml

Posted by Mike Engelhart <me...@earthtrip.com>.
on 6/7/00 12:51 PM, Udaypal R. Aarkoti at uaarkoti@techcontrol.com wrote:

> Hi Mike,
> i already tried this, i also tried to put the propeties file in
> /var/jakarta-tomcat/webapps/ROOT but it didnot work. I get the same error.
> 
> I'm trying the change the path of the properties file throught the web.xml
> in cocoon/src/WEB-INF directory and then run the build.sh script. Is this
> the correct approach or is there another approach.
> 
> After i build i'm copying the cocoon.jar into the tomcat/lib directory,
> again can i ask if this is the only change needed when you change the path?
> 
> thank you

It doesn't matter where you build cocoon.jar.  Just build it in any
directory and then move it to tomcat/lib.

Then, in your root web directories WEB-INF/ directory, there needs to be 2
things, a cocoon.properties and a web.xml.   web.xml needs to have this:

    <servlet>
        <servlet-name>
            cocoon
        </servlet-name>
        <servlet-class>
            org.apache.cocoon.Cocoon
        </servlet-class>
        <init-param>
            <param-name>
                properties
            </param-name>
            <param-value>
                WEB-INF/cocoon.properties
            </param-value>
        </init-param>
        <load-on-startup>-10</load-on-startup>
    </servlet>


and that should do it.

Mike


RE: Unable to see Cocoon.xml

Posted by "Udaypal R. Aarkoti" <ua...@techcontrol.com>.
Hi Mike,
         i already tried this, i also tried to put the propeties file in
/var/jakarta-tomcat/webapps/ROOT but it didnot work. I get the same error.

I'm trying the change the path of the properties file throught the web.xml
in cocoon/src/WEB-INF directory and then run the build.sh script. Is this
the correct approach or is there another approach.

After i build i'm copying the cocoon.jar into the tomcat/lib directory,
again can i ask if this is the only change needed when you change the path?

thank you

-----Original Message-----
From: Mike Engelhart [mailto:mengelhart@earthtrip.com]
Sent: Wednesday, June 07, 2000 1:19 PM
To: cocoon-users@xml.apache.org
Subject: Re: Unable to see Cocoon.xml


on 6/7/00 12:09 PM, Udaypal R. Aarkoti at uaarkoti@techcontrol.com wrote:

> Hi guys,
> i pretty new to this cocoon concept.
> I'm trying to set up cocoon in my machine but when i try to use this URL
>
> http://localhost:8080/Cocoon.xml
>
> i get the following error
>
> java.io.FileNotFoundException:
> /var/jakarta-tomcat/webapps/ROOT/var/cocoon-1.7.4/conf/cocoon.properties
(No
> such file or directory)
> at java.io.FileInputStream.open(Native Method)
> at java.io.FileInputStream.(FileInputStream.java:64)
> at

your cocoon.properties file must be at the root of your WEB-INF directory of
your web application.
for example your setup would be:

/var/jakarta-tomcat/webapps/ROOT/WEB-INF/cocoon.properties



Mike


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org


Re: Unable to see Cocoon.xml

Posted by Mike Engelhart <me...@earthtrip.com>.
on 6/7/00 12:09 PM, Udaypal R. Aarkoti at uaarkoti@techcontrol.com wrote:

> Hi guys,
> i pretty new to this cocoon concept.
> I'm trying to set up cocoon in my machine but when i try to use this URL
> 
> http://localhost:8080/Cocoon.xml
> 
> i get the following error
> 
> java.io.FileNotFoundException:
> /var/jakarta-tomcat/webapps/ROOT/var/cocoon-1.7.4/conf/cocoon.properties (No
> such file or directory)
> at java.io.FileInputStream.open(Native Method)
> at java.io.FileInputStream.(FileInputStream.java:64)
> at

your cocoon.properties file must be at the root of your WEB-INF directory of
your web application.
for example your setup would be:

/var/jakarta-tomcat/webapps/ROOT/WEB-INF/cocoon.properties



Mike