Re: Apache -> Tomcat Examples not working

2001-05-31 Thread Renato Salazar

Hello Steve,

I've tried the way you recommend and it doesn't work 
(but apache and tomcat work fine separately)...besides 
as far as i'm concerned Tomcat-Apache is suppoused to 
work only modifying mod_jk.conf (mod_jk.conf-auto) and 
httpd.conf files.
I have the same problem than Phillip but I got 403 
("Forbidden. You don't have permission to 
access /examples directory"), the same as I don't use 
Tomcat, either Apache can't connect Tomcat or Apache 
don't realize what requests belong to Tomcat (it 
definitely has to do with mod_jk.so connector).
Also, I'd like to know if I have to change any line 
(wherever) after enabling ajp13 if I want it to be my 
default.
Thanks in advance.

Renato

ps: I don't have SSL enabled, could it be the problem??

> Phillip,
> 
> Tomcat uses port 8080 as a default; 8080 is not,
> however the default http port.
> So http://localhost/examples/servlet/HelloWorldExample
> is actually equivalent to 
> 
http://localhost:8000/examples/servlet/HelloWorldExample
> (8000 is the default port for http used by most
> browsers).  Tomcat's listening on 8080, so it doesn't
> respond.
> 
> you need to edit the server.xml file to change the
> port number that Tomcat listens on.  See the faq at 
> http://jakarta.apache.org:8080/jyve-
faq/Turbine/screen/DisplayQuestionAnswer/action/SetAll/pr
oject_id/2/faq_id/12/topic_id/42/question_id/389
> for details on how to do it.
> 
> --steve
> 
> 
> --- [EMAIL PROTECTED] wrote:
> > I'm running Tomcat 3.2.1 & Apache on Linux and I'm
> > having a problem w/ the examples.
> > They work if I use
> >
> 
http://localhost:8080/examples/servlet/HelloWorldExample
> > however if I use
> > http://localhost/examples/servlet/HelloWorldExample
> > I get a 404 (the same w/ the sample JSP pages as
> > well).
> > 
> > Since I am attempting to have Apache serve Static
> > content and Tomcat serve JSP's I have already
> > installed mod_jk and am using the stock
> > mod_jk.conf-auto include in my httpd.conf file..
> > 
> > Is there something I'm missing?
> > 
> > Thanks in advance.
> > -Phillip
> 
> 
> 
> __
> Do You Yahoo!?
> Get personalized email addresses from Yahoo! Mail - 
only $35 
> a year!  http://personal.mail.yahoo.com/
> 
> 
> 
> 
> 
> 

--



Re: Apache -> Tomcat Examples not working

2001-05-30 Thread Michael Misovec

I have the following error when I post to a servlet. Also the shtml file is only 
displayed in source from my web server. I saving the shtml as
html and I get the following error. (JBuilder4 is my IDE) Can anyone offer advise?

Thank you,
Mike Misovec
757-686-2440

Error: 404

Location: /servlet/LoginServlet

File Not Found
/servlet/LoginServlet

steve gold wrote:

> Phillip,
>
> Tomcat uses port 8080 as a default; 8080 is not,
> however the default http port.
> So http://localhost/examples/servlet/HelloWorldExample
> is actually equivalent to
> http://localhost:8000/examples/servlet/HelloWorldExample
> (8000 is the default port for http used by most
> browsers).  Tomcat's listening on 8080, so it doesn't
> respond.
>
> you need to edit the server.xml file to change the
> port number that Tomcat listens on.  See the faq at
> 
>http://jakarta.apache.org:8080/jyve-faq/Turbine/screen/DisplayQuestionAnswer/action/SetAll/project_id/2/faq_id/12/topic_id/42/question_id/389
> for details on how to do it.
>
> --steve
>
> --- [EMAIL PROTECTED] wrote:
> > I'm running Tomcat 3.2.1 & Apache on Linux and I'm
> > having a problem w/ the examples.
> > They work if I use
> >
> http://localhost:8080/examples/servlet/HelloWorldExample
> > however if I use
> > http://localhost/examples/servlet/HelloWorldExample
> > I get a 404 (the same w/ the sample JSP pages as
> > well).
> >
> > Since I am attempting to have Apache serve Static
> > content and Tomcat serve JSP's I have already
> > installed mod_jk and am using the stock
> > mod_jk.conf-auto include in my httpd.conf file..
> >
> > Is there something I'm missing?
> >
> > Thanks in advance.
> > -Phillip
>
> __
> Do You Yahoo!?
> Get personalized email addresses from Yahoo! Mail - only $35
> a year!  http://personal.mail.yahoo.com/




Re: Apache -> Tomcat Examples not working

2001-05-30 Thread pjcrump

Thanks..so the port should be 8081 in Server.xml?
I have a question though.. if i do this won't Tomcat be serving up both Static and 
Dynamic Pages??  I need Apache to serve static pages and tomcat to serve jsp's & 
servlets??

Thanks
-Phillip




>Phillip,
>
>Tomcat uses port 8080 as a default; 8080 is not,
>however the default http port.
>So http://localhost/examples/servlet/HelloWorldExample
>is actually equivalent to
>http://localhost:8000/examples/servlet/HelloWorldExample
>(8000 is the default port for http used by most
>browsers).  Tomcat's listening on 8080, so it doesn't
>respond.
>
>you need to edit the server.xml file to change the
>port number that Tomcat listens on.  See the faq at
>http://jakarta.apache.org:8080/jyve-
>faq/Turbine/screen/DisplayQuestionAnswer/action/SetAll/project_id/2/faq_id/12/topic_id/42/question_id/389
>for details on how to do it.
>
>--steve
>
>
>--- [EMAIL PROTECTED] wrote:
>> I'm running Tomcat 3.2.1 & Apache on Linux and I'm
>> having a problem w/ the examples.
>> They work if I use
>>
>http://localhost:8080/examples/servlet/HelloWorldExample
>> however if I use
>> http://localhost/examples/servlet/HelloWorldExample
>> I get a 404 (the same w/ the sample JSP pages as
>> well).
>>
>> Since I am attempting to have Apache serve Static
>> content and Tomcat serve JSP's I have already
>> installed mod_jk and am using the stock
>> mod_jk.conf-auto include in my httpd.conf file..
>>
>> Is there something I'm missing?
>>
>> Thanks in advance.
>> -Phillip
>
>
>
>__
>Do You Yahoo!?
>Get personalized email addresses from Yahoo! Mail - only $35
>a year!  http://personal.mail.yahoo.com/



Re: Apache -> Tomcat Examples not working

2001-05-30 Thread steve gold

Phillip,

Tomcat uses port 8080 as a default; 8080 is not,
however the default http port.
So http://localhost/examples/servlet/HelloWorldExample
is actually equivalent to 
http://localhost:8000/examples/servlet/HelloWorldExample
(8000 is the default port for http used by most
browsers).  Tomcat's listening on 8080, so it doesn't
respond.

you need to edit the server.xml file to change the
port number that Tomcat listens on.  See the faq at 
http://jakarta.apache.org:8080/jyve-faq/Turbine/screen/DisplayQuestionAnswer/action/SetAll/project_id/2/faq_id/12/topic_id/42/question_id/389
for details on how to do it.

--steve


--- [EMAIL PROTECTED] wrote:
> I'm running Tomcat 3.2.1 & Apache on Linux and I'm
> having a problem w/ the examples.
> They work if I use
>
http://localhost:8080/examples/servlet/HelloWorldExample
> however if I use
> http://localhost/examples/servlet/HelloWorldExample
> I get a 404 (the same w/ the sample JSP pages as
> well).
> 
> Since I am attempting to have Apache serve Static
> content and Tomcat serve JSP's I have already
> installed mod_jk and am using the stock
> mod_jk.conf-auto include in my httpd.conf file..
> 
> Is there something I'm missing?
> 
> Thanks in advance.
> -Phillip



__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35 
a year!  http://personal.mail.yahoo.com/



Apache -> Tomcat Examples not working

2001-05-30 Thread pjcrump

I'm running Tomcat 3.2.1 & Apache on Linux and I'm having a problem w/ the examples.
They work if I use http://localhost:8080/examples/servlet/HelloWorldExample
however if I use http://localhost/examples/servlet/HelloWorldExample
I get a 404 (the same w/ the sample JSP pages as well).

Since I am attempting to have Apache serve Static content and Tomcat serve JSP's I 
have already installed mod_jk and am using the stock mod_jk.conf-auto include in my 
httpd.conf file..

Is there something I'm missing?

Thanks in advance.
-Phillip