Re: Getting a servlet running under Tomcat-Apache 4.0.3

2002-04-10 Thread rsequeira


Try:
http://localhost:8080/servlet/seating
or
http://localhost:8080/servlet/MySeatingServlet


RS





Brook Monroe [EMAIL PROTECTED] on 04/10/2002 10:13:56 AM

Please respond to Tomcat Users List [EMAIL PROTECTED]

To:   '[EMAIL PROTECTED]' [EMAIL PROTECTED]
cc:

Subject:  Getting a servlet running under Tomcat-Apache 4.0.3

Greetings, y'all.
* I've read all the documentation I can find.
* I've emulated all the examples.
* I've asked people I know who have set up servlets before.

I still can't get access to the servlet I just wrote and installed.

No matter how I've set up servlet-mappings, or url-patterns, or otherwise,
I
get 404'd on any attempt to test the servlet. The class files are where
they're supposed to be, and the manager HTML applet says that the servlet
is
loaded and running. Supposedly (based on reading docs and looking at
examples)

servlet
servlet-nameMySeatingServlet/servlet-name
servlet-classSeating/servlet-class
/servlet
servlet-mapping
servlet-nameMySeatingServlet/servlet-name
url-pattern/seating/url-pattern
/servlet-mapping

in my web.xml file should be sufficient to get the servlet mapped to a url,
but

http://localhost:8080/seating

produces nothing but a 404, specifically

type Status report
message /seating
description The requested resource (/seating) is not available.

Obviously I'm either misinterpreting the documentation, missed something
somewhere, or making a bad assumption. I'd appreciate any input I could get
on this, because the servlet customer is breathing down my neck for the
prototype, which I would like to test before delivering it

jbm!




--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]









--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: Getting a servlet running under Tomcat-Apache 4.0.3

2002-04-10 Thread Jeff Larsen

Under what context path is your servlet deployed? The 
context path is typically the name of the directory 
under $TOMCAT_HOME/webapps in which your app resides.

Unless your app is deployed in the ROOT context, your
URL should be http://localhost:8080/context/seating.

Jeff



- Original Message - 
From: Brook Monroe [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, April 10, 2002 10:13 AM
Subject: Getting a servlet running under Tomcat-Apache 4.0.3


 Greetings, y'all.
 * I've read all the documentation I can find.
 * I've emulated all the examples.
 * I've asked people I know who have set up servlets before.
 
 I still can't get access to the servlet I just wrote and installed.
 
 No matter how I've set up servlet-mappings, or url-patterns, or otherwise, I
 get 404'd on any attempt to test the servlet. The class files are where
 they're supposed to be, and the manager HTML applet says that the servlet is
 loaded and running. Supposedly (based on reading docs and looking at
 examples)
 
 servlet
 servlet-nameMySeatingServlet/servlet-name
 servlet-classSeating/servlet-class
 /servlet
 servlet-mapping
 servlet-nameMySeatingServlet/servlet-name
 url-pattern/seating/url-pattern
 /servlet-mapping
 
 in my web.xml file should be sufficient to get the servlet mapped to a url,
 but
 
 http://localhost:8080/seating
 
 produces nothing but a 404, specifically
 
 type Status report
 message /seating
 description The requested resource (/seating) is not available.
 
 Obviously I'm either misinterpreting the documentation, missed something
 somewhere, or making a bad assumption. I'd appreciate any input I could get
 on this, because the servlet customer is breathing down my neck for the
 prototype, which I would like to test before delivering it
 
 jbm!
 
 
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: Getting a servlet running under Tomcat-Apache 4.0.3

2002-04-10 Thread Fabian Sommer

Hi!

something not directly mentioned in the howtos for deploying a servlet:
you have to update the TOMCAT_HOME/conf/server.xml file for installing 
your application in the web-app-directory. You have to add an entry like
Context path=/seating docBase=seating
 debug=0 reloadable=true/
in server.xml if you have your servlet in a folder named
TOMCAT_HOME/web-app/seating/WEB-INF/classes

I too was wandering some time what to do for making my servlet work in a 
different folder than /web-app/examples ...

Perhaps this helps.



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: Getting a servlet running under Tomcat-Apache 4.0.3

2002-04-10 Thread rsequeira


Gosh! I just read the reply I posted. Oops! with a big O.
The URLs should actually be:
http://localhost:8080/servlet/Seating
or
http://localhost:8080/seating

Ofcourse, assuming you deployed your servlet under the ROOT webapp. And
since the second URL doesn't work for you, I'd check to see if the ROOT
application was deployed or not. Check your logs.

I apologize.
RS







[EMAIL PROTECTED] on 04/10/2002 10:28:59 AM

Please respond to Tomcat Users List [EMAIL PROTECTED]

To:   Tomcat Users List [EMAIL PROTECTED]
cc:

Subject:  Re: Getting a servlet running under Tomcat-Apache 4.0.3


Try:
http://localhost:8080/servlet/seating
or
http://localhost:8080/servlet/MySeatingServlet


RS





Brook Monroe [EMAIL PROTECTED] on 04/10/2002 10:13:56 AM

Please respond to Tomcat Users List [EMAIL PROTECTED]

To:   '[EMAIL PROTECTED]' [EMAIL PROTECTED]
cc:

Subject:  Getting a servlet running under Tomcat-Apache 4.0.3

Greetings, y'all.
* I've read all the documentation I can find.
* I've emulated all the examples.
* I've asked people I know who have set up servlets before.

I still can't get access to the servlet I just wrote and installed.

No matter how I've set up servlet-mappings, or url-patterns, or otherwise,
I
get 404'd on any attempt to test the servlet. The class files are where
they're supposed to be, and the manager HTML applet says that the servlet
is
loaded and running. Supposedly (based on reading docs and looking at
examples)

servlet
servlet-nameMySeatingServlet/servlet-name
servlet-classSeating/servlet-class
/servlet
servlet-mapping
servlet-nameMySeatingServlet/servlet-name
url-pattern/seating/url-pattern
/servlet-mapping

in my web.xml file should be sufficient to get the servlet mapped to a url,
but

http://localhost:8080/seating

produces nothing but a 404, specifically

type Status report
message /seating
description The requested resource (/seating) is not available.

Obviously I'm either misinterpreting the documentation, missed something
somewhere, or making a bad assumption. I'd appreciate any input I could get
on this, because the servlet customer is breathing down my neck for the
prototype, which I would like to test before delivering it

jbm!




--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]









--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]









--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: Getting a servlet running under Tomcat-Apache 4.0.3

2002-04-10 Thread Brook Monroe

Fabian:
something not directly mentioned in the howtos for deploying a servlet:
you have to update the TOMCAT_HOME/conf/server.xml file for installing 
your application in the web-app-directory. You have to add an entry like
  Context path=/seating docBase=seating
   debug=0 reloadable=true/
in server.xml if you have your servlet in a folder named
TOMCAT_HOME/web-app/seating/WEB-INF/classes

That was the first thing I did, actually.  No variations on that theme seem
to be making any difference, and it doesn't matter whether it's under the
Tomcat-Standalone or Tomcat-Apache section

Jeff:

Under what context path is your servlet deployed? The 
context path is typically the name of the directory 
under $TOMCAT_HOME/webapps in which your app resides.

It's deployed where the examples are, and where the manager is.

The specific path is

drive:\Tomcat\webapps\MySeatMap\

with the class files in drive:\Tomcat\webapps\MySeatMap\WEB-INF\classes

I've tried permuting this almost to exhaustion.  I've been reading the
example setups, and I can't even figure out how the HelloWorldExample class
gets called.  Something to do with filter tags, but I can't make out
what's happening.

And to repeat: I know the servlet is running, because the manager and the
logs confirm it.

For grins and giggles, here's the web.xml file.

?xml version=1.0 encoding=ISO-8859-1?
!DOCTYPE web-app
PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
http://java.sun.com/dtd/web-app_2_3.dtd;

web-app
servlet
servlet-name
MySeatMap
/servlet-name
servlet-class
/MySeatMap
/servlet-class
/servlet
servlet-mapping
servlet-name
MySeatMap
/servlet-name
url-pattern
/seating
/url-pattern
/servlet-mapping
servlet-mapping
servlet-name
MySeatMap
/servlet-name
url-pattern
/seating/
/url-pattern
/servlet-mapping
servlet-mapping
servlet-name
MySeatMap
/servlet-name
url-pattern*.map/url-pattern
/servlet-mapping
/web-app

And the context entry:

Context path=/MySeatMap docBase=MySeatMap isReloadable=true
debug=2 crossContent=true/

Anyone see anything (in)obviously wrong?

jbm!

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: Getting a servlet running under Tomcat-Apache 4.0.3

2002-04-10 Thread Jeff Larsen

What path does the Manager display for your app? 

If tomcat is auto-deploying your app, then it should be /MySeatMap since
that is the subdir of webapps in which your WEB-INF/web.xml resides.
Then you should be accessing http://localhost:8080/MySeatMap/seating

If you are using a Context path=/mypath docBase=MySeatMap / element in 
server.xml, 
then your URL should be http://localhost:8080/mypath/seating

Remember, the servlet-mapping elements only tell the container
which servlet classes to invoke WITHIN that servlet's context path.
Nothing in web.xml defines the context path itself. 

Try the above URL's and let us know if it works.

Jeff


- Original Message - 
From: Brook Monroe [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, April 10, 2002 10:55 AM
Subject: RE: Getting a servlet running under Tomcat-Apache 4.0.3


 Fabian:
 something not directly mentioned in the howtos for deploying a servlet:
 you have to update the TOMCAT_HOME/conf/server.xml file for installing 
 your application in the web-app-directory. You have to add an entry like
  Context path=/seating docBase=seating
  debug=0 reloadable=true/
 in server.xml if you have your servlet in a folder named
 TOMCAT_HOME/web-app/seating/WEB-INF/classes
 
 That was the first thing I did, actually.  No variations on that theme seem
 to be making any difference, and it doesn't matter whether it's under the
 Tomcat-Standalone or Tomcat-Apache section
 
 Jeff:
 
 Under what context path is your servlet deployed? The 
 context path is typically the name of the directory 
 under $TOMCAT_HOME/webapps in which your app resides.
 
 It's deployed where the examples are, and where the manager is.
 
 The specific path is
 
 drive:\Tomcat\webapps\MySeatMap\
 
 with the class files in drive:\Tomcat\webapps\MySeatMap\WEB-INF\classes
 
 I've tried permuting this almost to exhaustion.  I've been reading the
 example setups, and I can't even figure out how the HelloWorldExample class
 gets called.  Something to do with filter tags, but I can't make out
 what's happening.
 
 And to repeat: I know the servlet is running, because the manager and the
 logs confirm it.
 
 For grins and giggles, here's the web.xml file.
 
 ?xml version=1.0 encoding=ISO-8859-1?
 !DOCTYPE web-app
 PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
 http://java.sun.com/dtd/web-app_2_3.dtd;
 
 web-app
 servlet
 servlet-name
 MySeatMap
 /servlet-name
 servlet-class
 /MySeatMap
 /servlet-class
 /servlet
 servlet-mapping
 servlet-name
 MySeatMap
 /servlet-name
 url-pattern
 /seating
 /url-pattern
 /servlet-mapping
 servlet-mapping
 servlet-name
 MySeatMap
 /servlet-name
 url-pattern
 /seating/
 /url-pattern
 /servlet-mapping
 servlet-mapping
 servlet-name
 MySeatMap
 /servlet-name
 url-pattern*.map/url-pattern
 /servlet-mapping
 /web-app
 
 And the context entry:
 
 Context path=/MySeatMap docBase=MySeatMap isReloadable=true
 debug=2 crossContent=true/
 
 Anyone see anything (in)obviously wrong?
 
 jbm!
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: Getting a servlet running under Tomcat-Apache 4.0.3

2002-04-10 Thread Brook Monroe

Jeff:

The path listed in the manager is /MySeatMap.

http://localhost:8080/MySeatMap/seating works.  Amazing. :)  Got a big list
of errors to resolve, which is what I was looking for.  Thanks!

(Off for the rest of the day...see y'all in the AM)

jbm!

-Original Message-
From: Jeff Larsen [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 10, 2002 12:14 PM
To: Tomcat Users List
Subject: Re: Getting a servlet running under Tomcat-Apache 4.0.3


What path does the Manager display for your app? 

If tomcat is auto-deploying your app, then it should be /MySeatMap since
that is the subdir of webapps in which your WEB-INF/web.xml resides.
Then you should be accessing http://localhost:8080/MySeatMap/seating

If you are using a Context path=/mypath docBase=MySeatMap / element in
server.xml, 
then your URL should be http://localhost:8080/mypath/seating

Remember, the servlet-mapping elements only tell the container
which servlet classes to invoke WITHIN that servlet's context path.
Nothing in web.xml defines the context path itself. 

Try the above URL's and let us know if it works.

Jeff


- Original Message - 
From: Brook Monroe [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, April 10, 2002 10:55 AM
Subject: RE: Getting a servlet running under Tomcat-Apache 4.0.3


 Fabian:
 something not directly mentioned in the howtos for deploying a servlet:
 you have to update the TOMCAT_HOME/conf/server.xml file for installing 
 your application in the web-app-directory. You have to add an entry
like
  Context path=/seating docBase=seating
  debug=0 reloadable=true/
 in server.xml if you have your servlet in a folder named
 TOMCAT_HOME/web-app/seating/WEB-INF/classes
 
 That was the first thing I did, actually.  No variations on that theme
seem
 to be making any difference, and it doesn't matter whether it's under the
 Tomcat-Standalone or Tomcat-Apache section
 
 Jeff:
 
 Under what context path is your servlet deployed? The 
 context path is typically the name of the directory 
 under $TOMCAT_HOME/webapps in which your app resides.
 
 It's deployed where the examples are, and where the manager is.
 
 The specific path is
 
 drive:\Tomcat\webapps\MySeatMap\
 
 with the class files in drive:\Tomcat\webapps\MySeatMap\WEB-INF\classes
 
 I've tried permuting this almost to exhaustion.  I've been reading the
 example setups, and I can't even figure out how the HelloWorldExample
class
 gets called.  Something to do with filter tags, but I can't make out
 what's happening.
 
 And to repeat: I know the servlet is running, because the manager and the
 logs confirm it.
 
 For grins and giggles, here's the web.xml file.
 
 ?xml version=1.0 encoding=ISO-8859-1?
 !DOCTYPE web-app
 PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
 http://java.sun.com/dtd/web-app_2_3.dtd;
 
 web-app
 servlet
 servlet-name
 MySeatMap
 /servlet-name
 servlet-class
 /MySeatMap
 /servlet-class
 /servlet
 servlet-mapping
 servlet-name
 MySeatMap
 /servlet-name
 url-pattern
 /seating
 /url-pattern
 /servlet-mapping
 servlet-mapping
 servlet-name
 MySeatMap
 /servlet-name
 url-pattern
 /seating/
 /url-pattern
 /servlet-mapping
 servlet-mapping
 servlet-name
 MySeatMap
 /servlet-name
 url-pattern*.map/url-pattern
 /servlet-mapping
 /web-app
 
 And the context entry:
 
 Context path=/MySeatMap docBase=MySeatMap isReloadable=true
 debug=2 crossContent=true/
 
 Anyone see anything (in)obviously wrong?
 
 jbm!
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]