404 not found

2002-06-03 Thread will

Hi all

Im am trying to use cocoon in conjunction with apache tomcat to serv xml 
pages.  When trying to access .xml pages a 404 error is reported even tho the 
page exists.  I am using cocoon 2.0.2, j2sdk1.4.0, tomcat 3.3.1 and apache 
1.3.22.  I am using mod_jk and ajp13 to pass requests from apache to tomcat.

As it stands if i access http://ip-addr:8080/cocoon the cocoon sitemap is 
compiled and works like a charm showing all the sample pages etc.

However if i access http://vhostname/ which has the appropriate entries in 
httpd.conf and the context in apps-vhost.xml in the $TOMCAT_HOME/conf dir, I 
get a 404 error saying that index.xml is not found.

The requiest is being passed from apache to tomcat because tomcat reports the 
404 error.

I am new to this and have been working from info i have managed to scavenge up 
from around the web.

Any help would be greatly appreciated.

Thanks in advance

Will <[EMAIL PROTECTED]>


This message sent through E-Access Internet Webmail
--> http://www.e-access.com.au

A Subsidiary of E-Consortium Pty Ltd
-

-
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]>




Re: 404 not found

2002-06-04 Thread will

The under the dir in which the context is serverd from the access.log file reads

DEBUG   (2002-06-04) 18:10.59:902   [access](/referees.xml) Thread-
29/AbstractEnvironment: Set the URI Prefix (OLD=, NEW=)
DEBUG   (2002-06-04) 18:10.59:902   [access](/referees.xml) Thread-
29/AbstractEnvironment: Reset context to file:/home/www/hosted/sasf/
WARN(2002-06-04) 18:10.59:903   [access](/referees.xml) Thread-
29/CocoonServlet: The resource was not found
org.apache.cocoon.ResourceNotFoundException: No pipeline matched 
request: /referees.xml

at org.apache.cocoon.www.sitemap_xmap.process(/usr/local/jakarta-
tomcat/work/www.sasf.com.au/ROOT/cocoon-
files/org/apache/cocoon/www/sitemap_xmap.java:3847)
at org.apache.cocoon.www.sitemap_xmap.process(/usr/local/jakarta-
tomcat/work/www.sasf.com.au/ROOT/cocoon-
files/org/apache/cocoon/www/sitemap_xmap.java:3085

at org.apache.cocoon.sitemap.Handler.process(Handler.java:222)
at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:179)
at org.apache.cocoon.sitemap.SitemapManager.process
(SitemapManager.java:154) 
at org.apache.cocoon.Cocoon.process(Cocoon.java:575)
at org.apache.cocoon.servlet.CocoonServlet.service
(CocoonServlet.java:998)
at javax.servlet.http.HttpServlet.service(HttpServlet.java)
at org.apache.tomcat.facade.ServletHandler.doService
(ServletHandler.java:574)
at org.apache.tomcat.core.Handler.invoke(Handler.java:322)
at org.apache.tomcat.core.Handler.service(Handler.java:235)
at org.apache.tomcat.facade.ServletHandler.service
(ServletHandler.java:485)  
at org.apache.tomcat.core.ContextManager.internalService
(ContextManager.java:917)
at org.apache.tomcat.core.ContextManager.service
(ContextManager.java:833)
at org.apache.tomcat.modules.server.Ajp13Interceptor.processConnection
(Ajp13Interceptor.java:341)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt
(PoolTcpEndpoint.java:494)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run
(ThreadPool.java:516)
at java.lang.Thread.run(Thread.java:536)

INFO(2002-06-04) 18:10.59:905   [access](/referees.xml) Thread-
29/CocoonServlet: 'referees.xml' Processed by Apache Cocoon 2.0.2 in 20.42 
seconds.

Sorry about the wrapping, hope this might shed some light on the prob.  Thanks 
for your response

Will <[EMAIL PROTECTED]>



This message sent through E-Access Internet Webmail
--> http://www.e-access.com.au

A Subsidiary of E-Consortium Pty Ltd
-

-
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]>




cocoon woes

2002-06-06 Thread will

Hi all

I am new to cocoon and have a small problem with it. I am using redhat linux 
7.2 and have apache 1.3.22, cocoon 2.0.2, tomcat 3.3.1 and am using mod_jk to 
connect apache and tomcat.
My cocoon setup is done as instructed on the cocoon homepage (ie put .war file 
in webapps dir and start tomcat)  The web app is deployed with no errors and i 
can access http://localhost:8080/cocoon and all the examples etc work
like a 
charm.
My problem is that i want to be able to serv pages for various virtual hosts 
outside of the cocoon directory structure.  So far i have gathered that i have 
to make a apps-vhosts.xml file in the tomcat conf dir.  The file looks like
this




  

 

The corrosponding apache vhost entry and the config for mod_jk looks like this:

JkWorkersFile /usr/local/tomcat/conf/workers.properties
JkLogFile logs/jk.log
JkLogLevel info
JkMount /*.jsp ajp13
JkMount /servlet/* ajp13


ServerAdmin [EMAIL PROTECTED]
DocumentRoot /home/www/internal/iquip
ServerName www.iquip.com.au
ServerAlias iquip.com.au
ErrorLog /var/log/httpd/www.iquip.com.au.error_log
CustomLog /var/log/httpd/www.iquip.com.au.access_log combined
JkMount /*xml ajp13 
JkMount /servlet/* ajp13

Options None 
Deny from all



When tomcat starts the output looks like this:

2002-06-06 19:27:18 - ServerXmlReader: Config=$TOMCAT_HOME/conf/server.xml
2002-06-06 19:27:18 - PathSetter: home=/usr/local/tomcat
2002-06-06 19:27:18 - ContextXmlReader: Context config=$TOMCAT_HOME/conf/apps-
127.0.0.1.xml
2002-06-06 19:27:18 - ContextXmlReader: Context config=$TOMCAT_HOME/conf/apps-
admin.xml
2002-06-06 19:27:18 - ContextXmlReader: Context config=$TOMCAT_HOME/conf/apps-
examples.xml
2002-06-06 19:27:18 - ContextXmlReader: Context config=$TOMCAT_HOME/conf/apps-
vhosts.xml
2002-06-06 19:27:18 - AutoWebApp: Loaded from config: DEFAULT:/admin
2002-06-06 19:27:18 - AutoWebApp: Auto-Adding DEFAULT:/
2002-06-06 19:27:18 - AutoWebApp: Loaded from config: DEFAULT:/examples
2002-06-06 19:27:18 - AutoWebApp: Auto-Adding DEFAULT:/cocoon
2002-06-06 19:27:18 - ContextManager: Tomcat configured and in stable state 
2002-06-06 19:27:18 - WorkDirSetup: Creating work 
dir /usr/local/tomcat/work/DEFAULT/admin
2002-06-06 19:27:18 - ContextManager: Adding  DEFAULT:/admin
2002-06-06 19:27:18 - WorkDirSetup: Creating work 
dir /usr/local/tomcat/work/DEFAULT/examples
2002-06-06 19:27:18 - ContextManager: Adding  DEFAULT:/examples
2002-06-06 19:27:18 - WorkDirSetup: Creating work 
dir /usr/local/tomcat/work/www.iquip.com.au/ROOT
2002-06-06 19:27:18 - ContextManager: Adding  www.iquip.com.au:/ROOT
2002-06-06 19:27:18 - WorkDirSetup: Creating work 
dir /usr/local/tomcat/work/DEFAULT/ROOT
2002-06-06 19:27:18 - ContextManager: Adding  DEFAULT:/ROOT
2002-06-06 19:27:18 - WorkDirSetup: Creating work 
dir /usr/local/tomcat/work/DEFAULT/cocoon
2002-06-06 19:27:18 - ContextManager: Adding  DEFAULT:/cocoon
2002-06-06 19:27:18 - Ctx(/admin) : Validating web.xml
XmlMapper: systemId is 'null'
XmlMapper: systemId is 'null'
2002-06-06 19:27:19 - Ctx() : Validating web.xml
XmlMapper: systemId is 'null'
2002-06-06 19:27:19 - Ctx() : Validating web.xml
XmlMapper: systemId is 'null'
2002-06-06 19:27:19 - Ctx(/cocoon) : Validating web.xml
XmlMapper: systemId is 'null'
EmbededTomcat: Init time 5980
2002-06-06 19:27:23 - Http10Interceptor: Starting on 8080
2002-06-06 19:27:23 - Ajp12Interceptor: Starting on 8007
2002-06-06 19:27:23 - Ajp13Interceptor: Starting on 8009
EmbededTomcat: Startup time 59
Server 1.6 is running
Press [Ctrl]+[C] to abort

Apache starts with no problems

However this does not work if i goto http://www.iquip.com.au i get a 404 not 
found on index.xml from tomcat ( the console running tomcat shows the error)

Are there any other files that need altered before this setup will work??? If 
so what are they and what do i have to put in them.

Any help will be greatly appreciated, thanks in advance

Will <[EMAIL PROTECTED]> 



This message sent through E-Access Internet Webmail
--> http://www.e-access.com.au

A Subsidiary of E-Consortium Pty Ltd
-

-
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]>




bad error messages on missing name

2002-12-06 Thread Will Holcomb
I am new to trying to use cocoon for a command line application and I had 
an error in my sitemap where I had:



rather than the



that I should have. The errors that I got were no help whatsoever. It 
threw a ClassNotFoundException, but it did not name the class that wasn't 
found and it came in the debugging log at this point:

DEBUG   2002-12-06 02:57:20.308 [manager ] (): ComponentHandler 
  initialized for: org.apache.cocoon.transformation.TraxTransformer
DEBUG   2002-12-06 02:57:20.309 [manager ] (): Adding 
 org.apache.cocoon.transformation.TraxTransformer for xslt
DEBUG   2002-12-06 02:57:20.319 [manager ] (): ComponentHandler 
 initialized for: org.apache.cocoon.serialization.XMLSerializer

And so I kept trying to figure out what was wrong with the serializer. And 
the only description that comes out is:

ComponentSelector could not find the component for hint:

(Since the name was wrong it doesn't have a name to put in as the hint.)

It was just really tough to find the error in the file because of my lack 
of familiarity and I wanted to suggest that a more descriptive exception 
is throw for this error.

Will Holcomb


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

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