cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Samuel Bruce <>
Subject Re: Cocoon App Invocation & server.xml
Date Wed, 17 Mar 2004 13:26:10 GMT


Before my app was at http://localhost:8080/myapp and
once invoking my app at the above location, a pattern
in my sitemap (<map:match pattern="apattern/hello">)
worked. Since I made the previously mentioned change
in server.xml, I could invoke my app at
http://localhost:8080 but for some reason inside my
app when there was a link to
http://localhost:8080/apattern/hello, I got a 404

I found out what the problem was. I assumed that since
one such pattern didn't work they all didn't. But
others did. In fact the only one that didn't was a
pattern called "admin/hello". It turns out that there
is a Tomcat application called admin and that's why
the pattern wasn't being found. It was looking in the
Tomcat application. Once I changed my code from
"admin" all was well.

Thanks for your help. Your responses led me to think
that what I was doing should have worked, so I began
to investigate why it wasn't working which led me to
try to load an "admin" app. That brought up the Tomcat
admin jsp.

Thanks again for helping me solve this problem.
--- Mark Lundquist <> wrote:
> On Mar 16, 2004, at 8:19 AM, Samuel Bruce wrote:
> > Hi,
> >
> > Thanks for responding!
> >
> > Yes, what breaks is that there would be a link
> within
> > my app that would point to
> > http://localhost:8080/apattern/hello that would
> fail.
> > In my sitemap I have a <map:match
> > pattern="apattern/hello" that worked before but it
> now
> > gives me a 404 message - the requested resource
> > /apattern/hello is not available.
> You mean that before, your Cocoon webapp was at
> 	http://localhost:8080/myapp
> and you had links URLs like this
> 	http://localhost:8080/apattern/hello
> and those worked?
> ~ mark
> To unsubscribe, e-mail:
> For additional commands, e-mail:

Do you Yahoo!?
Yahoo! Mail - More reliable, more storage, less spam

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message