WEB-INF/web.xml problem

2003-04-02 Thread Bryan Richardson
Here's the deal...I have a .class file that is in the 
webapps/pnm/WEB-INF/classes folder that I am trying to run.  In web.xml I 
have the following:


   
   
Submit


A simple servlet

   
ranade.SubmitServlet

   

   
   
Submit


/Submit

   
I can go to http://:8080/pnm/Submit and the .class file will run.  
However, if I try to go through my Apache web server and run the .class 
file, I get the Error 404 message.  I'm assuming I have Apache-Tomcat 
configured correctly because I can run the java examples in the Tomcat 
"examples" folder through Apache.  I'm thinking it has something to do with 
Apache not referencing the web.xml file because when I set up a security 
realm in web.xml, it will ask me for a password when I go directly to Tomcat 
via port 8080, but if I go through Apache the page will come up without 
asking for a password.  Can anyone help me with this?

Thanks.

_
MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*.  
http://join.msn.com/?page=features/virus

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


Re: WEB-INF/web.xml problem

2003-04-02 Thread Mariusz Wiktorczyk
In your url http://:8080/pnm/Submit should be some hint for apache 
telling that this is a Tomcat app i.e. http:///servlet/pnm/Submit.
See exactly how is build URL to Tomcat examples.

Bryan Richardson wrote:

Here's the deal...I have a .class file that is in the 
webapps/pnm/WEB-INF/classes folder that I am trying to run.  In 
web.xml I have the following:


   
   
Submit


A simple servlet

   
ranade.SubmitServlet

   

   
   
Submit
   
   
/Submit

   
I can go to http://:8080/pnm/Submit and the .class file will 
run.  However, if I try to go through my Apache web server and run the 
.class file, I get the Error 404 message.  I'm assuming I have 
Apache-Tomcat configured correctly because I can run the java examples 
in the Tomcat "examples" folder through Apache.  I'm thinking it has 
something to do with Apache not referencing the web.xml file because 
when I set up a security realm in web.xml, it will ask me for a 
password when I go directly to Tomcat via port 8080, but if I go 
through Apache the page will come up without asking for a password.  
Can anyone help me with this?

Thanks.

_
MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*.  
http://join.msn.com/?page=features/virus

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




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


Re: WEB-INF/web.xml problem

2003-04-03 Thread Bryan Richardson
Thanks Mariusz!!  That was the ticket!  I appreciate the help...wish I could 
have figured that one out!

Thanks Again!!

Bryan

Original Message Follows
From: Mariusz Wiktorczyk <[EMAIL PROTECTED]>
Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]>
To: Tomcat Users List <[EMAIL PROTECTED]>
Subject: Re: WEB-INF/web.xml problem
Date: Thu, 03 Apr 2003 09:05:23 +0200
In your url http://:8080/pnm/Submit should be some hint for apache 
telling that this is a Tomcat app i.e. http:///servlet/pnm/Submit.
See exactly how is build URL to Tomcat examples.

Bryan Richardson wrote:

Here's the deal...I have a .class file that is in the 
webapps/pnm/WEB-INF/classes folder that I am trying to run.  In web.xml I 
have the following:


   
   
Submit


A simple servlet

   
ranade.SubmitServlet

   

   
   
Submit
   
   
/Submit

   
I can go to http://:8080/pnm/Submit and the .class file will run.  
However, if I try to go through my Apache web server and run the .class 
file, I get the Error 404 message.  I'm assuming I have Apache-Tomcat 
configured correctly because I can run the java examples in the Tomcat 
"examples" folder through Apache.  I'm thinking it has something to do with 
Apache not referencing the web.xml file because when I set up a security 
realm in web.xml, it will ask me for a password when I go directly to 
Tomcat via port 8080, but if I go through Apache the page will come up 
without asking for a password.  Can anyone help me with this?

Thanks.

_
MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*.  
http://join.msn.com/?page=features/virus

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




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


_
MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*.  
http://join.msn.com/?page=features/virus

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


Re: WEB-INF/web.xml problem

2003-04-03 Thread Bill Barker
I'm assuming that you haven't enabled the ApacheConfig Listener (or, you
haven't restarted Apache after Tomcat was started).

Assuming that you are using mod_jk1.x, you need to include the directive:
  JkMount /mycontext/Submit ajp13
somewhere in your httpd.conf file.  Despite it's many draw-backs, I'd
recommend using the ApacheConfig Listener to generate this for you.

"Bryan Richardson" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Here's the deal...I have a .class file that is in the
> webapps/pnm/WEB-INF/classes folder that I am trying to run.  In web.xml I
> have the following:
>
> 
> 
> 
> Submit
> 
> 
> A simple servlet
> 
> 
> ranade.SubmitServlet
> 
> 
> 
> 
> 
> Submit
> 
> 
> /Submit
> 
> 
>
> I can go to http://:8080/pnm/Submit and the .class file will run.
> However, if I try to go through my Apache web server and run the .class
> file, I get the Error 404 message.  I'm assuming I have Apache-Tomcat
> configured correctly because I can run the java examples in the Tomcat
> "examples" folder through Apache.  I'm thinking it has something to do
with
> Apache not referencing the web.xml file because when I set up a security
> realm in web.xml, it will ask me for a password when I go directly to
Tomcat
> via port 8080, but if I go through Apache the page will come up without
> asking for a password.  Can anyone help me with this?
>
> Thanks.
>
> _
> MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*.
> http://join.msn.com/?page=features/virus




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