You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Marco Laponder <ml...@interchain.nl> on 2003/06/02 16:53:50 UTC

RE: mod_jk.log , almost working, now: the requested resource is n ot a vailable

That will be the problem as I have no idea what you are talking about ! Do
you have a document on that ? I will search on Google anyway...

Marco 

> -----Oorspronkelijk bericht-----
> Van: John Turner [mailto:tomcat-user@johnturner.com]
> Verzonden: maandag 2 juni 2003 16:56
> Aan: Tomcat Users List
> Onderwerp: Re: mod_jk.log , almost working, now: the 
> requested resource
> is not a vailable
> 
> 
> 
> Do you have a Context in server.xml for "/test"?
> 
> John
> 
> On Mon, 2 Jun 2003 16:26:02 +0200, Marco Laponder <ml...@interchain.nl> 
> wrote:
> 
> > Oke, I am a bit further up the road getting apache and 
> tomcat to work. My
> > problem was I was installing on a linux server and testing 
> againts this
> > server from my windows client. I I use the Netscape on the 
> same server 
> > there
> > are happening some other things. (well, not quite working 
> but I think I 
> > am
> > heading in the right direction.
> >
> >
> > It seems now that the request is passed to Tomcat and that 
> tomcat also
> > responses but I get a general page that the requested 
> object is not found
> > (the requested resource is not available).
> >
> > I created a Alias to a directory called /test/ when I request this 
> > directory
> > I see indeed the contents ( an test.jsp and test.html ) The 
> test.html 
> > works
> > fine, the test.jsp gives the message the objects is not found. The
> > mod_jk.log gives the following:[Mon Jun 02 17:30:00 2003]  
> [jk_connect.c
> > (200)]: jk_open_socket, return, sd = 1
> > 5
> > [Mon Jun 02 17:30:00 2003]  [jk_ajp_common.c (661)]: In
> > jk_endpoint_t::ajp_conne
> > ct_to_endpoint, connected sd = 15
> > [Mon Jun 02 17:30:00 2003]  [jk_ajp_common.c (693)]: 
> sending to ajp13 
> > #435
> > [Mon Jun 02 17:30:00 2003]  [jk_ajp_common.c (966)]: 
> ajp_send_request 2:
> > request
> > body to send 0 - request body to resend 0
> > [Mon Jun 02 17:30:00 2003]  [jk_ajp_common.c (804)]: 
> received from ajp13 
> > #60
> > [Mon Jun 02 17:30:00 2003]  [jk_ajp_common.c (515)]: 
> > ajp_unmarshal_response:
> > sta
> > tus = 404
> > [Mon Jun 02 17:30:00 2003]  [jk_ajp_common.c (521)]: 
> > ajp_unmarshal_response:
> > Num
> > ber of headers is = 2
> > [Mon Jun 02 17:30:00 2003]  [jk_ajp_common.c (575)]: 
> > ajp_unmarshal_response:
> > Hea
> > der[0] [Content-Type] = [text/html;charset=ISO-8859-1]
> > [Mon Jun 02 17:30:00 2003]  [jk_ajp_common.c (575)]: 
> > ajp_unmarshal_response:
> > Hea
> > der[1] [Content-Language] = [en-US]
> > [Mon Jun 02 17:30:00 2003]  [jk_ajp_common.c (804)]: 
> received from ajp13
> > #705
> > [Mon Jun 02 17:30:00 2003]  [mod_jk.c (398)]: writing 701 
> (701) out of 
> > 701
> > [Mon Jun 02 17:30:00 2003]  [jk_ajp_common.c (804)]: 
> received from ajp13 
> > #2
> > [Mon Jun 02 17:30:00 2003]  [jk_ajp_common.c (1521)]: Into
> > jk_endpoint_t::done,
> > recycling connection
> >
> > Ayone a clue what the problem is ? Any logs I can use ? 
> Looks that the 
> > page
> > is now passed to tomcat, but that tomcat cannot find it.
> >
> > Kind regards,
> > Marco Laponder
> >
> > 
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> >
> >
> 
> 
> 
> -- 
> Using M2, Opera's revolutionary e-mail client: 
http://www.opera.com/m2/

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: mod_jk.log , almost working, now: the requested resource is n ot a vailable

Posted by John Turner <to...@johnturner.com>.
That is what the examples web application is for, in a default Tomcat 
installation.  If you copy that setup, you should be OK.

If you have:

http://my.host.com = ROOT Context in server.xml (<Context path="" 
docBase="ROOT" ... >)

http://my.host.com/someURL = someURL Context in server.xml (<Context 
path="someURL" docBase="someURL" ...>)

http://my.host.com/examples = /examples Context in server.xml (<Context 
path="examples" docBase="examples" ...>)

Check the docs.

You can't just create a folder under http://my.host.com and have it 
magically work like it does for PHP and ASP.  Tomcat doesn't work like 
that.  You need a WEB-INF folder, you need a web.xml file, you need a 
Context, etc.

Google is not necessary, check the docs!!!

http://jakarta.apache.org/tomcat/tomcat-4.1-doc/appdev/index.html
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/appdev/deployment.html

John

On Mon, 2 Jun 2003 16:53:50 +0200, Marco Laponder <ml...@interchain.nl> 
wrote:

> That will be the problem as I have no idea what you are talking about ! 
> Do
> you have a document on that ? I will search on Google anyway...
>
> Marco
>
>> -----Oorspronkelijk bericht-----
>> Van: John Turner [mailto:tomcat-user@johnturner.com]
>> Verzonden: maandag 2 juni 2003 16:56
>> Aan: Tomcat Users List
>> Onderwerp: Re: mod_jk.log , almost working, now: the requested resource
>> is not a vailable
>>
>>
>>
>> Do you have a Context in server.xml for "/test"?
>>
>> John
>>
>> On Mon, 2 Jun 2003 16:26:02 +0200, Marco Laponder <ml...@interchain.nl> 
>> wrote:
>>
>> > Oke, I am a bit further up the road getting apache and tomcat to work. 
>> My
>> > problem was I was installing on a linux server and testing againts 
>> this
>> > server from my windows client. I I use the Netscape on the same server 
>> > there
>> > are happening some other things. (well, not quite working but I think 
>> I > am
>> > heading in the right direction.
>> >
>> >
>> > It seems now that the request is passed to Tomcat and that tomcat also
>> > responses but I get a general page that the requested object is not 
>> found
>> > (the requested resource is not available).
>> >
>> > I created a Alias to a directory called /test/ when I request this > 
>> directory
>> > I see indeed the contents ( an test.jsp and test.html ) The test.html 
>> > works
>> > fine, the test.jsp gives the message the objects is not found. The
>> > mod_jk.log gives the following:[Mon Jun 02 17:30:00 2003]  
>> [jk_connect.c
>> > (200)]: jk_open_socket, return, sd = 1
>> > 5
>> > [Mon Jun 02 17:30:00 2003]  [jk_ajp_common.c (661)]: In
>> > jk_endpoint_t::ajp_conne
>> > ct_to_endpoint, connected sd = 15
>> > [Mon Jun 02 17:30:00 2003]  [jk_ajp_common.c (693)]: sending to ajp13 
>> > #435
>> > [Mon Jun 02 17:30:00 2003]  [jk_ajp_common.c (966)]: ajp_send_request 
>> 2:
>> > request
>> > body to send 0 - request body to resend 0
>> > [Mon Jun 02 17:30:00 2003]  [jk_ajp_common.c (804)]: received from 
>> ajp13 > #60
>> > [Mon Jun 02 17:30:00 2003]  [jk_ajp_common.c (515)]: > 
>> ajp_unmarshal_response:
>> > sta
>> > tus = 404
>> > [Mon Jun 02 17:30:00 2003]  [jk_ajp_common.c (521)]: > 
>> ajp_unmarshal_response:
>> > Num
>> > ber of headers is = 2
>> > [Mon Jun 02 17:30:00 2003]  [jk_ajp_common.c (575)]: > 
>> ajp_unmarshal_response:
>> > Hea
>> > der[0] [Content-Type] = [text/html;charset=ISO-8859-1]
>> > [Mon Jun 02 17:30:00 2003]  [jk_ajp_common.c (575)]: > 
>> ajp_unmarshal_response:
>> > Hea
>> > der[1] [Content-Language] = [en-US]
>> > [Mon Jun 02 17:30:00 2003]  [jk_ajp_common.c (804)]: received from 
>> ajp13
>> > #705
>> > [Mon Jun 02 17:30:00 2003]  [mod_jk.c (398)]: writing 701 (701) out of 
>> > 701
>> > [Mon Jun 02 17:30:00 2003]  [jk_ajp_common.c (804)]: received from 
>> ajp13 > #2
>> > [Mon Jun 02 17:30:00 2003]  [jk_ajp_common.c (1521)]: Into
>> > jk_endpoint_t::done,
>> > recycling connection
>> >
>> > Ayone a clue what the problem is ? Any logs I can use ? Looks that the 
>> > page
>> > is now passed to tomcat, but that tomcat cannot find it.
>> >
>> > Kind regards,
>> > Marco Laponder
>> >
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>> > For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>> >
>> >
>>
>>
>>
>> -- Using M2, Opera's revolutionary e-mail client:
> http://www.opera.com/m2/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>



-- 
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org