404 not found error

2003-02-04 Thread Asif Talpur
Hi guys,
I am a novice user and I need your help with this problem. Following is an excerpt from my sitemap file. Basically at this moment I wantthe pagehttp://www.google.comto show up whenI request the page http://localhost:8080/cocoon/seegoogle
map:pipeline map:match pattern="seegoogle" map:generate src=""http://www.google.com">http://www.google.com"type="html"/ map:serialize/ /map:match /map:pipeline
Now, when I request the page http://localhost:8080/cocoon/seegooglethe browser gives "404 not found error." But strange thing is that when I modify the pipeline by giving the src=""http://localhost:8080/cocoon/">http://localhost:8080/cocoon" and request thepage http://localhost:8080/cocoon/seegoogle,it shows the cocoon welcome page.
So can anybody help me with that? 
Thanks
Asif TalpurDo you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now

RE: 404 not found error

2003-02-04 Thread Richard Cunliffe








Asif,



Where have you put your files? your file structure
should look like this if you kept to all the original directory settings:



 C:\tomcat\webapps\cocoon\seegoogle.xml





This gives the address



 http://localhost:8080/cocoon/seegoogle/seegoogle







If you put map:match pattern=seegoogle.html
then the address would be



 http://localhost:8080/cocoon/seegoogle/seegoogle.html






Richard.









-Original
Message-
From: Asif Talpur
[mailto:[EMAIL PROTECTED]] 
Sent: 04 February 2003 12:23
To: [EMAIL PROTECTED]
Subject: 404 not found error



Hi guys,

I am a novice user and I need your help with this
problem. Following is an excerpt from my sitemap file. Basically at this moment
I wantthe pagehttp://www.google.comto
show up whenI request the page http://localhost:8080/cocoon/seegoogle

map:pipeline
 map:match pattern=seegoogle
 map:generate src=""
href="">http://www.google.comtype=html/
 map:serialize/
 /map:match 
/map:pipeline

Now, when I request the page http://localhost:8080/cocoon/seegooglethe
browser gives 404 not found error. But strange thing is that when I
modify the pipeline by giving the src=""
href="">http://localhost:8080/cocoon
and request thepage http://localhost:8080/cocoon/seegoogle,it
shows the cocoon welcome page.

So can anybody help me with that? 

Thanks

Asif Talpur









Do you Yahoo!?
Yahoo!
Mail Plus - Powerful. Affordable. Sign up now








Generating a 404 not found

2002-10-07 Thread Ugo Cei

Hi people,

let's say you have a website with an administrative section that is 
protected using the Authentication Framework:

map:match pattern=admin/**

   map:act type=auth-protect
 map:parameter name=handler value=authhandler/

 map:match pattern=admin/newuser
   ...
 /map:match

 map:match pattern=admin/deluser
   ...
 /map:match

 !-- more matchers here --

   /map:act

   !--
  - if the user is not authenticated,
  - redirect him to the login page
 --
   map:redirect-to uri=login/

/map:match

The problem here is that when someone requests an URI like 
admin/this-uri-does-not-match-anything, they are redirected to the 
login page. I'd like to generate a 404 Not Found result code instead, 
and possibly have it trapped by the map:handle-errors block.

I'm using C2.1-dev and I see there's a NotifyingGenerator, but I cannot 
figure out whether it would be useful in this case and how to use it.

Any hints?

TIA,

Ugo

-- 
Ugo Cei - http://www.beblogging.com/blog/


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




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]




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-03 Thread John Austin

On Tuesday 04 June 2002 01:13 am, you wrote:
 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.

What is in the logs ? (.../cocoon/WEB-INF/logs/ ...)

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




Apache Tomcat/4.0.1 - HTTP Status 404 - Not Found

2002-02-14 Thread Bai-Hao Chen




Dear Sir,

I can run "http://localhost:8080/cocoon/welcome".But 
when I try to run my xml filesusing http://localhost:8080/cocoon/myhello.xml, 
I receiveda msg 
" Apache 
Tomcat/4.0.1 - HTTP Status 404 - Not Found". 

1. my xml files are located in 
"\webapps\cocoon\docs\samples".
2. my xsl files are located in 
"\webapps\cocoon\stylesheets".
3. I am using tomcat4.0.1 and 
cocoon2.0.

I have been using tomcat4.0.1 forseveral 
months, but I am new in using cocoon.

Sincerely,

Bai-Hao 
Chen


RE: Apache Tomcat/4.0.1 - HTTP Status 404 - Not Found

2002-02-14 Thread Vadim Gritsenko

Then please read documentation available on site and with the
distribution about Cocoon sitemap. No URI will be served automagically
unless it is configured in the sitemap what Cocoon should do to produce
the content for the requested URI.

Regards,
Vadim

-Original Message-
From: Bai-Hao Chen [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, February 14, 2002 6:09 PM
To: [EMAIL PROTECTED]
Cc: bc
Subject: Apache Tomcat/4.0.1 - HTTP Status 404 - Not Found

Dear Sir,
 
I can run http://localhost:8080/cocoon/welcome.  But when I try to run
my xml files using http://localhost:8080/cocoon/myhello.xml, I
received a msg 
 Apache Tomcat/4.0.1 - HTTP Status 404 - Not Found.  
 
1. my xml files are located in \webapps\cocoon\docs\samples.
2. my xsl files are located in \webapps\cocoon\stylesheets.
3. I am using tomcat4.0.1 and cocoon2.0.
 
I have been using tomcat4.0.1 for several months, but I am new in using
cocoon.
 
Sincerely,
 
Bai-Hao Chen


-
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: Apache Tomcat/4.0.1 - HTTP Status 404 - Not Found

2002-02-14 Thread Andre Thenot
You need to set up your sitemap so that Cocoon knows how to respond to that request, and which xml and xsl files it should use:
http://xml.apache.org/cocoon/userdocs/concepts/sitemap.html

A.

On Thursday, February 14, 2002, at 06:09 , Bai-Hao Chen wrote:

Dear Sir,
 
I can run "http://localhost:8080/cocoon/welcome".  But when I try to run my xml files using http://localhost:8080/cocoon/myhello.xml, I received a msg
" Apache Tomcat/4.0.1 - HTTP Status 404 - Not Found". 
 
1. my xml files are located in "\webapps\cocoon\docs\samples".
2. my xsl files are located in "\webapps\cocoon\stylesheets".
3. I am using tomcat4.0.1 and cocoon2.0.
 
I have been using tomcat4.0.1 for several months, but I am new in using cocoon.
 
Sincerely,
 
Bai-Hao Chen