Cocoon 2 via command line & Baltimore CHUG

2003-02-03 Thread Horsfield, Peter A.
Hi everybody. 



I encountered the need to execute Cocoon from the command line. I'm not
aware of 

whether this functionality has been deprecated or not, but I couldn't for
the life of me

find any info anywhere. 



So I posted some details up on the wiki. This is my first post so don't be
too harsh :)



http://wiki.cocoondev.org/Wiki.jsp?page=CommandLine



It's not linked from anywhere.



Completely unrelated note, I'm working just outside Baltimore, so I'd
definitely be up

for a user group.



Peter Horsfield




-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




RE: I cant get cocoon to process??

2003-01-28 Thread Horsfield, Peter A.
Hi Richard, Derek. Sorry to butt in, but heres my two cents:



Tomcat/Cocoon is pulling your soundpool.xml file unchanged. This /could/ be
because

tomcat is not forwarding the request to Cocoon, but I think that is
unlikely.



You can test it by renaming the soundpool.xml file to something else and
trying the

url http://192.168.0.5:8080/soundpool/soundpool.xml 



If you get a "Cocoon resource not found" error, then you can be sure the
request is 

reaching Cocoon.



*However* the map:match pattern you showed seems to indicate that

you should be accessing the URL without the final .xml instead:



http://192.168.0.5:8080/soundpool/soundpool 



I would guess some other part of the sitemap is setup to supply

a .xml file directly if it is requested as such.



--Pause-- :)



Next, your serializer might need to look something like this:







Then you know you're getting the html serializer and not the 

xml serializer. It's important because the serializer defines

the content-type that the browser sees.



Oh, and I'm assuming that your xsl transform converts your soundpool.xml

into valid html, correct? So you would have something like





http://www.w3.org/1999/XSL/Transform";>



































Hope that's some help,



Peter



-Original Message-

From: Richard Cunliffe [mailto:[EMAIL PROTECTED]]

Sent: Tuesday, January 28, 2003 4:22 AM

To: [EMAIL PROTECTED]

Subject: RE: I cant get cocoon to process??





Derek,



Thank you for the big welcome!



I have had a quick look at the logs, but to be honest I m not sure how to
interrupt them.



When I did the install examples I got cocoon to do the Hello world example.
So yes that s working.



Here is the pipeline I have created for a soundpool example (this will just
show the word soundpool)





  







  





So when I type the my local address
http://192.168.0.5:8080/soundpool/soundpool.xml this is what is displayed:



 

-   

soundpool 





It looks like tomcat is not forwarding the request to cocoon to me, what do
you think?





Richard.











-Original Message-

From: Derek Hohls [mailto:[EMAIL PROTECTED]] 

Sent: 28 January 2003 09:03

To: [EMAIL PROTECTED]

Subject: Re: I cant get cocoon to process??



Richard



Welcome to the wonderful world of Cocoon application

debugging !



First off, I assume that the Cocoon samples are up-and-

running, so that you have tested that the Cocoon servlet 

as such is working OK.



Next thing is to check the log files; you will find them

located under the [cocoon] directory (which I guess you

have installed somewhere under tomcat)  in a subdir

called WEB-INF/logs.



Finally - and this is the hard part! - you will need to try 

and understand what is causing the "missing link" - 

it *seems* like it might be the entry in your site map -

perhaps you can post that part of the site map that

should be doing the xml/xsl matching so we can try

and figure where there might be an error.



Derek



>>> [EMAIL PROTECTED] 28/01/2003 10:40:03 >>>

Apache -   v1.3

Cocoon -   v2.0

Tomcat -   v3.3a

Jserv -   1.1.1



Operating system -Windows XP





I can not get cocoon to work. The problem I have is that when I try and load
an xml page, it will not use the style sheet and show the desired page.
Instead the browser only shows the xml document (source code). I have linked
cocoon and tomcat, and tomcat with apache using Jserv. What suggestions do
you have?



Richard.





-- 

This message has been scanned for viruses and dangerous content by 

MailScanner, and is believed to be clean. 



"The CSIR exercises no editorial control over E-mail messages and/or 

attachments thereto/links referred to therein originating in the 

organisation and the views in this message/attachments thereto are 

therefore not necessarily those of the CSIR and/or its employees. 

The sender of this e-mail is, moreover, in terms of the CSIR's Conditions 

of Service, subject to compliance with the CSIR's internal E-mail and 

Internet Policy." 

-
Please check that your question  has not already been answered in the
FAQ before posting. 

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