Need help on Servlet deployment on Tomcat 4.1.30

2004-07-20 Thread Weimin Ma
Hi!

I received the following error when I deployed
HelloCS6386.class under the directory below and then
try to access it using browser by typing in the
address field
http://localhost:10034/cs6386/serlvet/HelloCS6386:
+-- webapps
   +-- cs6386
  +-- WEB-INF
 +-- classes
+--  HelloCS6386.class

Can anyone tell me how to fix it?

Thanks a lot!
=
HTTP Status 404 - /cs6386/servlet/HelloCS6386

type Status report

message /cs6386/servlet/HelloCS6386

description The requested resource
(/cs6386/servlet/HelloCS6386) is not available.
Apache Tomcat/4.1.30
==



__
Do you Yahoo!?
Take Yahoo! Mail with you! Get it on your mobile phone.
http://mobile.yahoo.com/maildemo 

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



Servlet Deployment Problem

2003-10-29 Thread Miles, Fiske III [NTWK SVCS]
I've spent 6-8 hours trying to figure out why Tomcat (ver 4.1.27) could not find 
servlet classes using a standard 
http://localhost:8080/%CATALINA_HOME%/appdir/servlet/ServletName url.

While trying to run this down I used a stack of JSP development manuals, the WROX 
Apache Tomcat manual, and the Jakarta website to no avail. I tried every conceivable 
permutation of deployment web.xml file, server.xml file and app directory structure 
(carefully following directions from multiple books).

The solution was finally found in a devshed forum -- the invoker servlet mapping has 
been commented out of the conf/web.xml file in the binary distribution.

Why

My second question is where would documentation for this issue reasonably be found?

Fiske
(frustrated JSP developer)


RE: Servlet Deployment Problem

2003-10-29 Thread Bodycombe, Andrew
http://jakarta.apache.org/tomcat/faq/misc.html#invoker

-Original Message-
From: Miles, Fiske III [NTWK SVCS] [mailto:[EMAIL PROTECTED] 
Sent: 28 October 2003 20:10
To: [EMAIL PROTECTED]
Subject: Servlet Deployment Problem


I've spent 6-8 hours trying to figure out why Tomcat (ver 4.1.27) could not
find servlet classes using a standard
http://localhost:8080/%CATALINA_HOME%/appdir/servlet/ServletName url.

While trying to run this down I used a stack of JSP development manuals, the
WROX Apache Tomcat manual, and the Jakarta website to no avail. I tried
every conceivable permutation of deployment web.xml file, server.xml file
and app directory structure (carefully following directions from multiple
books).

The solution was finally found in a devshed forum -- the invoker servlet
mapping has been commented out of the conf/web.xml file in the binary
distribution.

Why

My second question is where would documentation for this issue reasonably be
found?

Fiske
(frustrated JSP developer)

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



RE: Servlet Deployment Problem

2003-10-29 Thread Shapira, Yoav

Howdy,

I've spent 6-8 hours trying to figure out why Tomcat (ver 4.1.27) could
not
find servlet classes using a standard
http://localhost:8080/%CATALINA_HOME%/appdir/servlet/ServletName url.

Your first mistake is assuming the above URL is a standard.  It's not,
and the servlet specification does not mandate that a servlet container
support such URLs.

The solution was finally found in a devshed forum -- the invoker
servlet
mapping has been commented out of the conf/web.xml file in the binary
distribution.

Why

The invoker servlet was disabled for security reasons.  This is in the
release notes for every tomcat version since 4.1.18.  It's also in the
tomcat FAQ (http://jakarta.apache.org/tomcat/faq), and has been
discussed many times on this list (so searching the list archives would
have revealed this information).  Many books, as is nearly always the
case for this field, are out of date.

Yoav Shapira



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



RE: Manual servlet deployment problems on 4.1.18

2003-02-27 Thread Turner, John

There are examples of how to setup servlets in web.xml in the web.xml file
in the /examples webapp that comes with Tomcat.  There's other good stuff in
the examples webapp as well.

John

-Original Message-
From: Steve Hole [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, February 26, 2003 11:40 PM
To: Tomcat Users List
Subject: RE: Manual servlet deployment problems on 4.1.18


In otherwords, I assumed the servlet-name element linked the servlet 
and servlet-mapping elements.   Is that true?  The documentation for the
servlet-mapping functionality is not exactly great and there is no 
documentation on the default mapping rules at all that I could find.

Anyway, thanks for the help.

Cheers.

---
Steve Hole
Chief Technology Officer - Billing and Payment Systems
ACI Worldwide
mailto:[EMAIL PROTECTED]
Phone: 780-424-4922


-
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: Manual servlet deployment problems on 4.1.18

2003-02-27 Thread Turner, John

Yes, the Invoker servlet is disabled by default.

You need to either:

- enable the Invoker servlet (not recommended)

OR

- explicitly declare your servlet in your web application's web.xml file

John

-Original Message-
From: Ray Tayek [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, February 26, 2003 9:25 PM
To: Tomcat Users List
Subject: RE: Manual servlet deployment problems on 4.1.18

i can not get 4.1.18-le to run on win98se and i get at a 404 on linux when 
i try to put Hello.class manually in 
.../jakarta-tomcat-4.1.18-LE-jdk14/webapps/ROOT\WEB-INF/classes and using 
localhost:8080/servlet/Hello (without adding to the web.xml)

could the servlet option be turned off by default? (does anyone know 
where to look?)

also, running the sample in 
.../jakarta-tomcat-4.1.18-LE-jdk14/webapps/tomcat-docs/appdev/sample fails 
with 401 when doing the ant install.

if you get 4.1.18 to work, please let me know how you did it.

thanks


---
ray tayek http://tayek.com/ actively seeking mentoring or telecommuting work
vice chair orange county java users group http://www.ocjug.org/ hate spam?
http://samspade.org/ssw/


-
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: Manual servlet deployment problems on 4.1.18

2003-02-27 Thread Steve Hole
On Wed, 26 Feb 2003 22:04:56 -0800 (PST) Steve Guo [EMAIL PROTECTED] 
wrote:

  Steve Hole [EMAIL PROTECTED] wrote:
 This implies that the element defines the name of the 
 web application?
 -- what do you mean? the webapp is defined by the name of the folder (test)

Ah!   Which explains the problem.   I will suggest that there is a problem
somewhere in the JVM dealing with symbolic links to files held on a SAN.  
I'll have to try this on something other than Linux and see if I still see
the problem.   That's why it suddenly worked when I moved it locally and I 
thought it was because I had made a corresponding change in the web.xml 
file.

Thanks for your help Steve.

Cheers.
---
Steve Hole
Chief Technology Officer - Billing and Payment Systems
ACI Worldwide
mailto:[EMAIL PROTECTED]
Phone: 780-424-4922


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



RE: Manual servlet deployment problems on 4.1.18

2003-02-27 Thread Turner, John

Tomcat doesn't follow symbolic links by default.  You have to enable this in
server.xml for each Context where you want to use symbolic links.  I'm not
saying 100% that that was the problem, just that symlink support is not
available out of the box with recent versions of Tomcat.

John


 -Original Message-
 From: Steve Hole [mailto:[EMAIL PROTECTED]
 Sent: Thursday, February 27, 2003 11:06 AM
 To: Tomcat Users List
 Subject: RE: Manual servlet deployment problems on 4.1.18
 
 
 On Wed, 26 Feb 2003 22:04:56 -0800 (PST) Steve Guo 
 [EMAIL PROTECTED] 
 wrote:
 
   Steve Hole [EMAIL PROTECTED] wrote:
  This implies that the element defines the name of the 
  web application?
  -- what do you mean? the webapp is defined by the name 
 of the folder (test)
 
 Ah!   Which explains the problem.   I will suggest that there 
 is a problem
 somewhere in the JVM dealing with symbolic links to files 
 held on a SAN.  
 I'll have to try this on something other than Linux and see 
 if I still see
 the problem.   That's why it suddenly worked when I moved it 
 locally and I 
 thought it was because I had made a corresponding change in 
 the web.xml 
 file.
 
 Thanks for your help Steve.
 
 Cheers.
 ---
 Steve Hole
 Chief Technology Officer - Billing and Payment Systems
 ACI Worldwide
 mailto:[EMAIL PROTECTED]
 Phone: 780-424-4922
 
 
 -
 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: Manual servlet deployment problems on 4.1.18

2003-02-27 Thread Ray Tayek
At 06:02 AM 2/27/03 -0500, you wrote:

Yes, the Invoker servlet is disabled by default.

You need to either:

- enable the Invoker servlet (not recommended)

OR

- explicitly declare your servlet in your web application's web.xml file

John
i enabled it for testing. works like a charm :)

thanks

-Original Message-
From: Ray Tayek [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 26, 2003 9:25 PM
To: Tomcat Users List
Subject: RE: Manual servlet deployment problems on 4.1.18
i can not get 4.1.18-le to run on win98se and i get at a 404 on linux when
i try to put Hello.class manually in
.../jakarta-tomcat-4.1.18-LE-jdk14/webapps/ROOT\WEB-INF/classes and using
localhost:8080/servlet/Hello (without adding to the web.xml)
could the servlet option be turned off by default? (does anyone know
where to look?)
also, running the sample in
.../jakarta-tomcat-4.1.18-LE-jdk14/webapps/tomcat-docs/appdev/sample fails
with 401 when doing the ant install.
if you get 4.1.18 to work, please let me know how you did it
---
ray tayek http://tayek.com/ actively seeking mentoring or telecommuting work
vice chair orange county java users group http://www.ocjug.org/
hate spam? http://samspade.org/ssw/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Manual servlet deployment problems on 4.1.18

2003-02-26 Thread Steve Hole
Yes, I am a newbie.

I am having some difficulty in getting *any* servlets to deploy on a 
Tomcat 4.1.3 installation in my development environment.   It is very 
likely a simple configuration problem, but I have tried about everything I
can think of to resolve it with no luck.

Environment:

 j2sdk1.4.1_01
 jakarta-tomcat-4.1.18
 Redhat Linux 8.0 (kernel 2.4.18)

All of the example, management and admin servlets are working properly in 
the Tomcat instance.

I have tried the simplest possible servlet implementation simple (hello 
world). The class definition was ripped of directly from the shipped 
examples with only a name change in the class itself (to hopefully 
eliminate java class loading problems).

The servlet was deployed as:

  {CATALINA_HOME}/webapps/simple
  {CATALINA_HOME}/webapps/simple/WEB-INF/web.xml
  {CATALINA_HOME}/webapps/simple/WEB-INF/classes/simple.class

The web.xml file contains (less the  delimiters):

?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/j2ee/dtds/web-app_2_3.dtd;

web-app
  servlet
servlet-namesimple/servlet-name
servlet-classca.esys.simple/servlet-class
  /servlet

  servlet-mapping
 servlet-namesimple/servlet-name
 url-pattern/simple/url-pattern
  /servlet-mapping

/web-app


The behaviour that I see is:

1.   The servlet appears to deploy when Tomcat starts up (at least the 
logs seem to say so).   It appears to find the class libraries.

2.   When I run the servlet it simply lists the 
${CATALINA_HOME}/webapps/simple directory.   The logs seem to indicate 
that it maps the URI to the default servlet, which lists directories.  
It does not run the servlet class that I specify in the web.xml file.


I have tried the following things:

1.   I created the following context element in the server.xml file to 
explicitly define the context (rather than letting it build an implicit 
context).

Context path=/simple docBase=simple debug=1 reloadable=true /

Note that I turned on debugging which elicited the following log entries 
in the logs/localhost_log.2003-02-26.txt file.

2003-02-26 10:25:02 StandardContext[/simple]: Mapping contextPath='/simple' with 
requestURI='/simple/' and relativeURI='/'
2003-02-26 10:25:02 StandardContext[/simple]:  Mapped to servlet 'default' with 
servlet path '/' and path info 'null' and update=true

Which seems to confirm the mapping of the URI to the default servlet 
rather than the simple servlet.

2.   The original simple class was not part of a package and I had it
placed directly under the classes directory.  I tried defining it to be 
in the ca.esys package and put it under the classes/ca/esys directory, but
that didn't work.

3.   I've tried referring to the servlet using the URI's:

 localhost:8080/simple
 localhost:8080/servlet/simple

The first maps to the default servlet.   The second gives a resource 
unavailable error - which I would expect.

So ...

I am at a loss.   Any ideas for things to try would be very helpful.  I've
looked at every example I could find and scanned through the list archive 
for similar things, but had no luck. 

Thanks ahead for any help that you can provide.

Cheers.


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



RE: Manual servlet deployment problems on 4.1.18

2003-02-26 Thread Shapira, Yoav

Howdy,

The servlet was deployed as:

  {CATALINA_HOME}/webapps/simple
  {CATALINA_HOME}/webapps/simple/WEB-INF/web.xml
  {CATALINA_HOME}/webapps/simple/WEB-INF/classes/simple.class
snip
The web.xml file contains (less the  delimiters):
  servlet
servlet-namesimple/servlet-name
servlet-classca.esys.simple/servlet-class
  /servlet

That's a mismatch.  If the servlet is in package ca.esys then it should
be under WEB-INF/clases/ca/esys/simple.class.

Yoav Shapira
Millennium ChemInformatics



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



RE: Manual servlet deployment problems on 4.1.18

2003-02-26 Thread Steve Hole
On Wed, 26 Feb 2003 13:12:47 -0500 Shapira, Yoav [EMAIL PROTECTED] 
wrote:

 
 Howdy,
 
 The servlet was deployed as:
 
   {CATALINA_HOME}/webapps/simple
   {CATALINA_HOME}/webapps/simple/WEB-INF/web.xml
   {CATALINA_HOME}/webapps/simple/WEB-INF/classes/simple.class
 snip
 The web.xml file contains (less the  delimiters):
   servlet
 servlet-namesimple/servlet-name
 servlet-classca.esys.simple/servlet-class
   /servlet
 
 That's a mismatch.  If the servlet is in package ca.esys then it should
 be under WEB-INF/clases/ca/esys/simple.class.

Actually, that is a cut and paste error in the mail message.   My 
apologies.  The web.xml file actually contains:

servlet
   servlet-namesimple/servlet-name
   servlet-classsimple/servlet-class
/servlet

The version that I put in the earlier message was my attempt to try 
deploying under a package, which also did not work.

Cheers.

---
Steve Hole
Chief Technical Officer - Electronic Billing and Payment Systems
ACI Worldwide

Email: [EMAIL PROTECTED]
Phone: 780 424 4922


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



RE: Manual servlet deployment problems on 4.1.18

2003-02-26 Thread Steve Guo

3.   I've tried referring to the servlet using the URI's:

 localhost:8080/simple
  localhost:8080/servlet/simple

You tried to make it simple, but actually made it complicated.
Your webapp is simple, so you should invoke the servlet by:
localhost:8080/simple/simple
localhost:8080/simple/servlet/simple
Naming all the same tends to confuse users (not sure confuses Tomcat or not). Why not 
try:
'test' for the webapp
'Simple' for the servlet
'simple' for the servlet name in web.xml
then you will invoke by
http://localhost:8080/test/servlet/Simple or
http://localhost:8080/test/servlet/simple or
http://localhost:8080/test/simple
Good luck.
 
 Steve Hole [EMAIL PROTECTED] wrote:On Wed, 26 Feb 2003 13:12:47 -0500 Shapira, 
Yoav 
wrote:

 
 Howdy,
 
 The servlet was deployed as:
 
  {CATALINA_HOME}/webapps/simple
  {CATALINA_HOME}/webapps/simple/WEB-INF/web.xml
  {CATALINA_HOME}/webapps/simple/WEB-INF/classes/simple.class
 
 The web.xml file contains (less the  delimiters):
  
  simple
  ca.esys.simple
  
 
 That's a mismatch. If the servlet is in package ca.esys then it should
 be under WEB-INF/clases/ca/esys/simple.class.

Actually, that is a cut and paste error in the mail message. My 
apologies. The web.xml file actually contains:


simple
simple


The version that I put in the earlier message was my attempt to try 
deploying under a package, which also did not work.

Cheers.

---
Steve Hole
Chief Technical Officer - Electronic Billing and Payment Systems
ACI Worldwide

Email: [EMAIL PROTECTED]
Phone: 780 424 4922


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



-
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, and more

RE: Manual servlet deployment problems on 4.1.18

2003-02-26 Thread Ray Tayek
At 11:43 AM 2/26/03 -0700, you wrote:
On Wed, 26 Feb 2003 13:12:47 -0500 Shapira, Yoav [EMAIL PROTECTED]
wrote:

 Howdy,

 The servlet was deployed as:
 
   {CATALINA_HOME}/webapps/simple
   {CATALINA_HOME}/webapps/simple/WEB-INF/web.xml
   {CATALINA_HOME}/webapps/simple/WEB-INF/classes/simple.class
 ...

 That's a mismatch
Actually, that is a cut and paste error in the mail message.   My
apologies.  The web.xml file actually contains:
servlet
   servlet-namesimple/servlet-name
   servlet-classsimple/servlet-class
/servlet
The version that I put in the earlier message was my attempt to try
deploying under a package, which also did not work.
i can not get 4.1.18-le to run on win98se and i get at a 404 on linux when 
i try to put Hello.class manually in 
.../jakarta-tomcat-4.1.18-LE-jdk14/webapps/ROOT\WEB-INF/classes and using 
localhost:8080/servlet/Hello (without adding to the web.xml)

could the servlet option be turned off by default? (does anyone know 
where to look?)

also, running the sample in 
.../jakarta-tomcat-4.1.18-LE-jdk14/webapps/tomcat-docs/appdev/sample fails 
with 401 when doing the ant install.

if you get 4.1.18 to work, please let me know how you did it.

thanks

---
ray tayek http://tayek.com/ actively seeking mentoring or telecommuting work
vice chair orange county java users group http://www.ocjug.org/
hate spam? http://samspade.org/ssw/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Manual servlet deployment problems on 4.1.18

2003-02-26 Thread Steve Hole
On Wed, 26 Feb 2003 11:21:21 -0800 (PST) Steve Guo [EMAIL PROTECTED] 
wrote:


 You tried to make it simple, but actually made it complicated.
 Your webapp is simple, so you should invoke the servlet by:
 localhost:8080/simple/simple
 localhost:8080/simple/servlet/simple

That was the trick.

This implies that the servlet-mapping element defines the name of the 
web application?

 Naming all the same tends to confuse users (not sure confuses Tomcat or 
 not). Why not try:
 'test' for the webapp
 'Simple' for the servlet
 'simple' for the servlet name in web.xml
 then you will invoke by
 http://localhost:8080/test/servlet/Simple or
 http://localhost:8080/test/servlet/simple or
 http://localhost:8080/test/simple

So what does the web.xml look like for the above?   Something like:

webapp
  servlet
 servlet-namesimple/servlet-name
 servlet-classSimple/servlet-class
  /servlet

  servlet-mapping
 servlet-namesimple/servlet-name
 url-pattern/test/url-pattern
  /servlet-mapping
/webapp

In otherwords, I assumed the servlet-name element linked the servlet 
and servlet-mapping elements.   Is that true?  The documentation for the
servlet-mapping functionality is not exactly great and there is no 
documentation on the default mapping rules at all that I could find.

Anyway, thanks for the help.

Cheers.

---
Steve Hole
Chief Technology Officer - Billing and Payment Systems
ACI Worldwide
mailto:[EMAIL PROTECTED]
Phone: 780-424-4922


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



RE: Manual servlet deployment problems on 4.1.18

2003-02-26 Thread Steve Guo

 
 Steve Hole [EMAIL PROTECTED] wrote:
This implies that the element defines the name of the 
web application?
-- what do you mean? the webapp is defined by the name of the folder (test)

So what does the web.xml look like for the above? Something like:
servlet
 servlet-namesimple/servlet-name
 servlet-classSimple/servlet-class
  /servlet

  servlet-mapping
 servlet-namesimple/servlet-name
 url-pattern/welcomeme.xxx/url-pattern
  /servlet-mapping


then you will invoke by
http://localhost:8080/test/servlet/Simple - from servlet class
http://localhost:8080/test/servlet/simple -  from servlet tag
http://localhost:8080/test/welcomeme.xxx - from servlet-mapping tag




-
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, and more

Servlet deployment problems (Apache 2.0.44 / Jakarta-Tomcat 4.1.18)

2003-02-24 Thread Lars Nielsen Lind
Hi.

I have some problems with the deployment of servlets with Apahce / Jakarta-Tomcat.

1.) I have placed the servlet class in:

.../webapps/application/WEB-INF/classes/servlet class

2.) I have added a web.xml file in:

.../webapps/application/WEB-INF/web.xml

3.) I have added the following lines to the web.xml file:

- servlet
-servlet-nameTesting/servlet-name
-servlet-classTesting/servlet-class
- /servlet

4.) I have then tried to execute the servlet with this:

- a href=/servlet/TestingTesting servlet/a

and

- a href=/application/servlet/TestingTesting servlet/a

but I am always getting a HTTP Status 404 ERR:

- The requested resource (path to servlet class) is not available.

Any help is appriciated.


Best regards,

Lars Nielsen Lind



RE: Servlet deployment problems (Apache 2.0.44 / Jakarta-Tomcat 4.1.18)

2003-02-24 Thread Turner, John

Add

servlet-mapping
  servlet-nameTesting/servlet-name
  url-pattern/servlet/MyServlet/url-pattern (change this as needed)
/servlet-mapping

to your web.xml below the entry you already made.  The entry you have is
incomplete, there is no URL map.  That's the reason for the 404.

John

-Original Message-
From: Lars Nielsen Lind [mailto:[EMAIL PROTECTED] 
Sent: Monday, February 24, 2003 6:56 AM
To: Tomcat Users List
Subject: Servlet deployment problems (Apache 2.0.44 / Jakarta-Tomcat 4.1.18)


Hi.

I have some problems with the deployment of servlets with Apahce /
Jakarta-Tomcat.

1.) I have placed the servlet class in:

.../webapps/application/WEB-INF/classes/servlet class

2.) I have added a web.xml file in:

.../webapps/application/WEB-INF/web.xml

3.) I have added the following lines to the web.xml file:

- servlet
-servlet-nameTesting/servlet-name
-servlet-classTesting/servlet-class
- /servlet

4.) I have then tried to execute the servlet with this:

- a href=/servlet/TestingTesting servlet/a

and

- a href=/application/servlet/TestingTesting servlet/a

but I am always getting a HTTP Status 404 ERR:

- The requested resource (path to servlet class) is not available.

Any help is appriciated.


Best regards,

Lars Nielsen Lind


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



RE: Servlet deployment problems (Apache 2.0.44 / Jakarta-Tomcat 4.1.18)

2003-02-24 Thread John Trollinger
Are you using jdk 1.4, in 1.4 you can no longer have non packaged
classes.. Also you might need to setup the default servlet as it is
disabled by default for security reasons.  If you do not want to enable
the default servlet you could also create a servlet mapping.

John

 -Original Message-
 From: Lars Nielsen Lind [mailto:[EMAIL PROTECTED] 
 Sent: Monday, February 24, 2003 6:56 AM
 To: Tomcat Users List
 Subject: Servlet deployment problems (Apache 2.0.44 / 
 Jakarta-Tomcat 4.1.18)
 
 
 Hi.
 
 I have some problems with the deployment of servlets with 
 Apahce / Jakarta-Tomcat.
 
 1.) I have placed the servlet class in:
 
 .../webapps/application/WEB-INF/classes/servlet class
 
 2.) I have added a web.xml file in:
 
 .../webapps/application/WEB-INF/web.xml
 
 3.) I have added the following lines to the web.xml file:
 
 - servlet
 -servlet-nameTesting/servlet-name
 -servlet-classTesting/servlet-class
 - /servlet
 
 4.) I have then tried to execute the servlet with this:
 
 - a href=/servlet/TestingTesting servlet/a
 
 and
 
 - a href=/application/servlet/TestingTesting servlet/a
 
 but I am always getting a HTTP Status 404 ERR:
 
 - The requested resource (path to servlet class) is not available.
 
 Any help is appriciated.
 
 
 Best regards,
 
 Lars Nielsen Lind
 
 


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



Servlet deployment.

2002-11-20 Thread Triptpal Singh Lamba
Hi all.
I have worked with iPlanet and other servers but havent really
deployed/coded for Tomcat much.

I want some expert advise on structure of tomcat applications.
I have the current structure :-

webapps/examples/jsp has default examples.

I started my project say  projectA like this

webapps/examples/projectA

 I want to ideally take it 1 level up to webapps/projectA. This would  make
me do some context settings in some xml files. Which all and how ?

The jsp page came up instantly on
http://localhost:8080/examples/ProjectA/index.jsp

==

Now I have written a servlet  Router.java, how do I get the  jsp above to
submit to this java program. Where do I put the java program in a project
structure in Tomcat and what changes do I make. I tried changing the
web.xml  (url patterm etc) in webapps\examples\WEB-INF\web.xml but I didnt
know  how tomcat does this.
So coudl someone tell me where I would get an example of how to configure
the xml files to MAP the servlet I write for tomcat.

Thanks all

Tript Singh




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




Re: Servlet deployment.

2002-11-20 Thread billfly3
See the article,Deploying Web Applications to Tomcat at
http://www.onjava.com/pub/a/onjava/2001/04/19/tomcat.html
 Hi all.
 I have worked with iPlanet and other servers but havent really
 deployed/coded for Tomcat much.
 
 I want some expert advise on structure of tomcat applications.
 I have the current structure :-
 
 webapps/examples/jsp has default examples.
 
 I started my project say  projectA like this
 
 webapps/examples/projectA
 
  I want to ideally take it 1 level up to webapps/projectA. This would  make
 me do some context settings in some xml files. Which all and how ?
 
 The jsp page came up instantly on
 http://localhost:8080/examples/ProjectA/index.jsp
 
 ==
 
 Now I have written a servlet  Router.java, how do I get the  jsp above to
 submit to this java program. Where do I put the java program in a project
 structure in Tomcat and what changes do I make. I tried changing the
 web.xml  (url patterm etc) in webapps\examples\WEB-INF\web.xml but I didnt
 know  how tomcat does this.
 So coudl someone tell me where I would get an example of how to configure
 the xml files to MAP the servlet I write for tomcat.
 
 Thanks all
 
 Tript Singh
 
 
 
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
 

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




SOLVING...seems ok so far. Re: Servlet deployment.

2002-11-20 Thread Triptpal Singh Lamba
Thanks.
The link provides exactly what I wanted.

Tript Singh
- Original Message -
From: [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]; Triptpal Singh
Lamba [EMAIL PROTECTED]
Sent: Wednesday, November 20, 2002 4:06 PM
Subject: Re: Servlet deployment.


 See the article,Deploying Web Applications to Tomcat at
 http://www.onjava.com/pub/a/onjava/2001/04/19/tomcat.html
  Hi all.
  I have worked with iPlanet and other servers but havent really
  deployed/coded for Tomcat much.
 
  I want some expert advise on structure of tomcat applications.
  I have the current structure :-
 
  webapps/examples/jsp has default examples.
 
  I started my project say  projectA like this
 
  webapps/examples/projectA
 
   I want to ideally take it 1 level up to webapps/projectA. This would
make
  me do some context settings in some xml files. Which all and how ?
 
  The jsp page came up instantly on
  http://localhost:8080/examples/ProjectA/index.jsp
 
  ==
 
  Now I have written a servlet  Router.java, how do I get the  jsp above
to
  submit to this java program. Where do I put the java program in a
project
  structure in Tomcat and what changes do I make. I tried changing the
  web.xml  (url patterm etc) in webapps\examples\WEB-INF\web.xml but I
didnt
  know  how tomcat does this.
  So coudl someone tell me where I would get an example of how to
configure
  the xml files to MAP the servlet I write for tomcat.
 
  Thanks all
 
  Tript Singh
 
 
 
 
  --
  To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
mailto:[EMAIL PROTECTED]
 

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






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




Need guidance with servlet deployment.

2002-03-05 Thread Carver, Christopher

I'm having difficulty deploying/implementing my servlet under Tomcat 3.2.4. Here is 
the situation. I created a basic servlet to handle SOAP messages called gizmoservlet. 
I edited the web.xml file in the samples that came with Apache SOAP and placed the 
servlet in the same directory as rpcrouter and everything works fine and I get the 
proper error message when going to http://localhost:8080/soap/servlet/gizmoservlet. I 
was able to test and develop the servlet with no problems. However when I create my 
own gizmoservlet.war and try to deploy it as its own and not under the SOAP sample all 
I get on my web browser is a directoy listing of a blank directory at the URL 
http://localhost:8080/gizmoservlet. What could I be doing wrong?

Here is my web.xml file and thanks for any help:

?xml version=1.0 encoding=ISO-8859-1?

!DOCTYPE web-app
PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.2//EN
http://java.sun.com/j2ee/dtds/web-app_2.2.dtd;

web-app
  servlet
servlet-namegizmoservlet/servlet-name
display-nameGizmo SOAP Servlet/display-name
descriptionno description/description
servlet-classGizmoServlet/servlet-class
init-param
/init-param
  /servlet

  servlet-mapping
servlet-namegizmoservlet/servlet-name
url-patterngizmoservlet/url-pattern
  /servlet-mapping
/web-app



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




RE: Need guidance with servlet deployment.

2002-03-05 Thread Randy Layman



 -Original Message-
 From: Carver, Christopher [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, March 05, 2002 10:56 AM
 To: [EMAIL PROTECTED]
 Subject: Need guidance with servlet deployment.
 
 
   servlet-mapping
 servlet-namegizmoservlet/servlet-name
 url-patterngizmoservlet/url-pattern

I'm pretty sure this should be 
 url-pattern/gizmoservlet/url-pattern

(Note the preceding /).

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




RE: Need guidance with servlet deployment.

2002-03-05 Thread Carver, Christopher

Randy, thank you for catching that. I restarted Tomcat after fixing it and it still 
doesn't work. Nutz.

Thank you though. Chris

-Original Message-
From: Randy Layman [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 05, 2002 9:26 AM
To: 'Tomcat Users List'
Subject: RE: Need guidance with servlet deployment.




 -Original Message-
 From: Carver, Christopher [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, March 05, 2002 10:56 AM
 To: [EMAIL PROTECTED]
 Subject: Need guidance with servlet deployment.
 
 
   servlet-mapping
 servlet-namegizmoservlet/servlet-name
 url-patterngizmoservlet/url-pattern

I'm pretty sure this should be 
 url-pattern/gizmoservlet/url-pattern

(Note the preceding /).

--
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: Need guidance with servlet deployment.

2002-03-05 Thread Cox, Charlie

on top of Randy's suggestsion, try to access the URL:
http://localhost:8080/gizmoservlet/something.html

or
http://localhost:8080/servlet/GizmoServlet

You get the blank directory listing becuase you have a logical directory set
up for /gizmoservlet, but no index.html file to handle requests to the root
directory for your webapp.

Charlie

 -Original Message-
 From: Carver, Christopher [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, March 05, 2002 11:20 AM
 To: Tomcat Users List
 Subject: RE: Need guidance with servlet deployment.
 
 
 Randy, thank you for catching that. I restarted Tomcat after 
 fixing it and it still doesn't work. Nutz.
 
 Thank you though. Chris
 
 -Original Message-
 From: Randy Layman [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, March 05, 2002 9:26 AM
 To: 'Tomcat Users List'
 Subject: RE: Need guidance with servlet deployment.
 
 
 
 
  -Original Message-
  From: Carver, Christopher [mailto:[EMAIL PROTECTED]]
  Sent: Tuesday, March 05, 2002 10:56 AM
  To: [EMAIL PROTECTED]
  Subject: Need guidance with servlet deployment.
  
  
servlet-mapping
  servlet-namegizmoservlet/servlet-name
  url-patterngizmoservlet/url-pattern
 
 I'm pretty sure this should be 
  url-pattern/gizmoservlet/url-pattern
 
 (Note the preceding /).
 
 --
 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: Need guidance with servlet deployment.

2002-03-05 Thread Cox, Charlie



 -Original Message-
 From: Cox, Charlie [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, March 05, 2002 11:26 AM
 To: 'Tomcat Users List'
 Subject: RE: Need guidance with servlet deployment.
 
 
 on top of Randy's suggestsion, try to access the URL:
 http://localhost:8080/gizmoservlet/something.html
 
actually your servlet mapping would need to be /gizmoservlet/* for this
URL to work. I misread the mapping when I sent this.

Charlie

 or
 http://localhost:8080/servlet/GizmoServlet
 
 You get the blank directory listing becuase you have a 
 logical directory set
 up for /gizmoservlet, but no index.html file to handle 
 requests to the root
 directory for your webapp.
 
 Charlie
 
  -Original Message-
  From: Carver, Christopher [mailto:[EMAIL PROTECTED]]
  Sent: Tuesday, March 05, 2002 11:20 AM
  To: Tomcat Users List
  Subject: RE: Need guidance with servlet deployment.
  
  
  Randy, thank you for catching that. I restarted Tomcat after 
  fixing it and it still doesn't work. Nutz.
  
  Thank you though. Chris
  
  -Original Message-
  From: Randy Layman [mailto:[EMAIL PROTECTED]]
  Sent: Tuesday, March 05, 2002 9:26 AM
  To: 'Tomcat Users List'
  Subject: RE: Need guidance with servlet deployment.
  
  
  
  
   -Original Message-
   From: Carver, Christopher [mailto:[EMAIL PROTECTED]]
   Sent: Tuesday, March 05, 2002 10:56 AM
   To: [EMAIL PROTECTED]
   Subject: Need guidance with servlet deployment.
   
   
 servlet-mapping
   servlet-namegizmoservlet/servlet-name
   url-patterngizmoservlet/url-pattern
  
  I'm pretty sure this should be 
   url-pattern/gizmoservlet/url-pattern
  
  (Note the preceding /).
  
  --
  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]

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




RE: Need guidance with servlet deployment.

2002-03-05 Thread Carver, Christopher

Oh, I get it now. But I think I'm skating around the issue and not seeing it.

I changed the line to url-pattern/gizmoservlet/url-pattern and went to the URL: 
http://localhost:8080/servlet/gizmoservlet and the reply was page not found.

I changed the line to url-pattern/servlet/gizmoservlet/url-pattern and went to 
the URL: http://localhost:8080/gizmoservlet/servlet/gizmoservlet
but I get the following error: (keep in mind this servlet works when I place it in the 
same directory as rpcrouter)

Error: 500
Location: /jsoapservlet/servlet/jsoapservlet
Internal Servlet Error:

java.lang.NullPointerException
at java.lang.ClassLoader.resolveClass0(Native Method)
at java.lang.ClassLoader.resolveClass(ClassLoader.java:641)
at 
org.apache.tomcat.loader.AdaptiveClassLoader.loadClass(AdaptiveClassLoader.java:518)
at 
org.apache.tomcat.loader.AdaptiveServletLoader.loadClass(AdaptiveServletLoader.java:174)
at org.apache.tomcat.core.ServletWrapper.loadServlet(ServletWrapper.java:265)
at org.apache.tomcat.core.ServletWrapper.init(ServletWrapper.java:289)
at org.apache.tomcat.core.Handler.service(Handler.java:254)
at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at 
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:806)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:752)
at 
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213)
at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
at java.lang.Thread.run(Thread.java:536)





-Original Message-
From: Cox, Charlie [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 05, 2002 10:26 AM
To: 'Tomcat Users List'
Subject: RE: Need guidance with servlet deployment.


on top of Randy's suggestsion, try to access the URL:
http://localhost:8080/gizmoservlet/something.html

or
http://localhost:8080/servlet/GizmoServlet

You get the blank directory listing becuase you have a logical directory set
up for /gizmoservlet, but no index.html file to handle requests to the root
directory for your webapp.

Charlie

 -Original Message-
 From: Carver, Christopher [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, March 05, 2002 11:20 AM
 To: Tomcat Users List
 Subject: RE: Need guidance with servlet deployment.
 
 
 Randy, thank you for catching that. I restarted Tomcat after 
 fixing it and it still doesn't work. Nutz.
 
 Thank you though. Chris
 
 -Original Message-
 From: Randy Layman [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, March 05, 2002 9:26 AM
 To: 'Tomcat Users List'
 Subject: RE: Need guidance with servlet deployment.
 
 
 
 
  -Original Message-
  From: Carver, Christopher [mailto:[EMAIL PROTECTED]]
  Sent: Tuesday, March 05, 2002 10:56 AM
  To: [EMAIL PROTECTED]
  Subject: Need guidance with servlet deployment.
  
  
servlet-mapping
  servlet-namegizmoservlet/servlet-name
  url-patterngizmoservlet/url-pattern
 
 I'm pretty sure this should be 
  url-pattern/gizmoservlet/url-pattern
 
 (Note the preceding /).
 
 --
 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]


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




RE: Need guidance with servlet deployment.

2002-03-05 Thread Cox, Charlie



 -Original Message-
 From: Carver, Christopher [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, March 05, 2002 11:49 AM
 To: Tomcat Users List
 Subject: RE: Need guidance with servlet deployment.
 
 
 Oh, I get it now. But I think I'm skating around the issue 
 and not seeing it.
 
 I changed the line to 
 url-pattern/gizmoservlet/url-pattern and went to the 
 URL: http://localhost:8080/servlet/gizmoservlet and the reply 
 was page not found.

with this mapping, the url should be :
http://localhost:8080/gizmoservlet

 
 I changed the line to 
 url-pattern/servlet/gizmoservlet/url-pattern and went 
 to the URL: http://localhost:8080/gizmoservlet/servlet/gizmoservlet
 but I get the following error: (keep in mind this servlet 
 works when I place it in the same directory as rpcrouter)

/servlet is a default mapping for any servlet(see /conf/web.xml) therefore
you do not need a servlet mapping containing /servet unless you wish to
override this functionality. change(or remove) your url-mapping and try
this url:
http://localhost:8080/servlet/gizmoservlet

Charlie

 
 Error: 500
 Location: /jsoapservlet/servlet/jsoapservlet
 Internal Servlet Error:
 
 java.lang.NullPointerException
   at java.lang.ClassLoader.resolveClass0(Native Method)
   at java.lang.ClassLoader.resolveClass(ClassLoader.java:641)
   at 
 org.apache.tomcat.loader.AdaptiveClassLoader.loadClass(Adaptiv
 eClassLoader.java:518)
   at 
 org.apache.tomcat.loader.AdaptiveServletLoader.loadClass(Adapt
 iveServletLoader.java:174)
   at 
 org.apache.tomcat.core.ServletWrapper.loadServlet(ServletWrapp
 er.java:265)
   at 
 org.apache.tomcat.core.ServletWrapper.init(ServletWrapper.java:289)
   at org.apache.tomcat.core.Handler.service(Handler.java:254)
   at 
 org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
   at 
 org.apache.tomcat.core.ContextManager.internalService(ContextM
 anager.java:806)
   at 
 org.apache.tomcat.core.ContextManager.service(ContextManager.java:752)
   at 
 org.apache.tomcat.service.http.HttpConnectionHandler.processCo
 nnection(HttpConnectionHandler.java:213)
   at 
 org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoin
 t.java:416)
   at 
 org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPo
 ol.java:501)
   at java.lang.Thread.run(Thread.java:536)
 
 
 
 
 
 -Original Message-
 From: Cox, Charlie [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, March 05, 2002 10:26 AM
 To: 'Tomcat Users List'
 Subject: RE: Need guidance with servlet deployment.
 
 
 on top of Randy's suggestsion, try to access the URL:
 http://localhost:8080/gizmoservlet/something.html
 
 or
 http://localhost:8080/servlet/GizmoServlet
 
 You get the blank directory listing becuase you have a 
 logical directory set
 up for /gizmoservlet, but no index.html file to handle 
 requests to the root
 directory for your webapp.
 
 Charlie
 
  -Original Message-
  From: Carver, Christopher [mailto:[EMAIL PROTECTED]]
  Sent: Tuesday, March 05, 2002 11:20 AM
  To: Tomcat Users List
  Subject: RE: Need guidance with servlet deployment.
  
  
  Randy, thank you for catching that. I restarted Tomcat after 
  fixing it and it still doesn't work. Nutz.
  
  Thank you though. Chris
  
  -Original Message-
  From: Randy Layman [mailto:[EMAIL PROTECTED]]
  Sent: Tuesday, March 05, 2002 9:26 AM
  To: 'Tomcat Users List'
  Subject: RE: Need guidance with servlet deployment.
  
  
  
  
   -Original Message-
   From: Carver, Christopher [mailto:[EMAIL PROTECTED]]
   Sent: Tuesday, March 05, 2002 10:56 AM
   To: [EMAIL PROTECTED]
   Subject: Need guidance with servlet deployment.
   
   
 servlet-mapping
   servlet-namegizmoservlet/servlet-name
   url-patterngizmoservlet/url-pattern
  
  I'm pretty sure this should be 
   url-pattern/gizmoservlet/url-pattern
  
  (Note the preceding /).
  
  --
  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]
 
 
 --
 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]




Servlet deployment without using web.xml?!

2002-01-18 Thread Thomas Åhlen

This is what I want to do:

1. First I define one servlet(Controller) in the web.xml file
2. I want my Controller servlet to be able to add and remove
servlets(modules) from the application context.

Why? In my system each servlet is a module and I want my modules to be
pluggable. e.g. possible to add and remove modules(servlets) thru the
Controller servlet. Today I have to change the web.xml file and reload the
application every module I add/remove.

Is this possible? I would see no reason to why there couldn't be some
interface between Tomcat and my servlet that could do this.

Thanks for any suggestions

Thomas Åhlen



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




Re: Servlet deployment without using web.xml?!

2002-01-18 Thread Christopher K. St. John

Thomas Åhlen wrote:
 
 1. First I define one servlet(Controller) in the web.xml file
 2. I want my Controller servlet to be able to add and remove
 servlets(modules) from the application context.
 ...
 Is this possible? I would see no reason to why there couldn't be some
 interface between Tomcat and my servlet that could do this.
 

 Have you considered having your controller servlet dispatch
to regular old Java code instead of to other servlets? That
way you can have full control and still stay within the
servlet spec.

 Otherwise, you're going to have to dig into Tomcat's 
internals. Which is nonportable but fun. Assuming you want
to mess with Tomcat 4 and haven't already got the source,
go online and browse the code through CVS. Take a look at
org.apache.catalina.servlets.InvokerServlet and org.apache
catalina.core.StandardContext. That's what your up against.

-- 
Christopher St. John [EMAIL PROTECTED]
DistribuTopia http://www.distributopia.com

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




Re: Servlet deployment without using web.xml?!

2002-01-18 Thread Thomas Åhlen


 Have you considered having your controller servlet dispatch
to regular old Java code instead of to other servlets? That
way you can have full control and still stay within the
servlet spec.

Yes that is an option but it would require something like this

http://mydomain.com/Controller?module=Authaction=Login

and I want to use

http://mydomain.com/Auth?action=Login


 Otherwise, you're going to have to dig into Tomcat's
internals. Which is nonportable but fun. Assuming you want
to mess with Tomcat 4 and haven't already got the source,
go online and browse the code through CVS. Take a look at
org.apache.catalina.servlets.InvokerServlet and org.apache
catalina.core.StandardContext. That's what your up against.

Thanks will take a look :). Sounds fun!

Thomas




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




servlet deployment

2001-05-22 Thread Montgomery, Kendal L

Hello all,

I am just wandering how I deploy a servlet that is part of a package, and
how to reference it.  For example.. say you take the HelloWorldExample
servlet that comes with and modify it.  Rename the source to
HelloWorld.java, and change the file appropriately, including adding a line
at the top:

package dummy;

so, it is in the dummy class.

When I deploy this new HelloWorld servlet, I put it in
...webapps/examples/WEB-INF/classes/dummy/HelloWorld.class.  Now, to
reference this, I expected to be able to go to my browser and hit
http://myserver/examples/servlet/dummy/HelloWorld
http://myserver/examples/servlet/dummy/HelloWorld .  That did not work.
So, what do I have to do to make this work?

By the way, I am running Apache 1.3.19 and Tomcat 3.2.1.fasdf

Thanks..

Kendal L. Montgomery
Qwest - eFlow Development Team
614-215-4937




RE: servlet deployment

2001-05-22 Thread William Kaufman

Try

http://myserver:8080/servlet/dummy.HelloWorld

1) 8080 is the default port for Tomcat: you can change it in server.xml.
2) All servlets (by default--settable in web.xml) appear under /servlet.
3) After that comes the full class name.

-- Bill K.


 -Original Message-
 From: Montgomery, Kendal L [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, May 22, 2001 6:43 AM
 To: Tomcat-User (E-mail)
 Cc: Sharma, Puneet
 Subject: servlet deployment
 
 
 Hello all,
 
 I am just wandering how I deploy a servlet that is part of a 
 package, and
 how to reference it.  For example.. say you take the HelloWorldExample
 servlet that comes with and modify it.  Rename the source to
 HelloWorld.java, and change the file appropriately, including 
 adding a line
 at the top:
 
 package dummy;
 
 so, it is in the dummy class.
 
 When I deploy this new HelloWorld servlet, I put it in
 ...webapps/examples/WEB-INF/classes/dummy/HelloWorld.class.  Now, to
 reference this, I expected to be able to go to my browser and hit
 http://myserver/examples/servlet/dummy/HelloWorld
 http://myserver/examples/servlet/dummy/HelloWorld .  That 
 did not work.
 So, what do I have to do to make this work?
 
 By the way, I am running Apache 1.3.19 and Tomcat 3.2.1.fasdf
 
 Thanks..
 
 Kendal L. Montgomery
 Qwest - eFlow Development Team
 614-215-4937
 



Re: servlet deployment

2001-05-22 Thread Manuel Melle Ocariz

You have to create a web.xml file in your Web-inf folder. This file should lokk like 
this:

!DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.2//EN 
http://java.sun.com/j2ee/dtds/web-app_2_2.dtd;
web-app
servlet
servlet-nameHelloWorld/servlet-name
servlet-classdummy.HelloWorld/servlet-class
/servlet
servlet-mapping
servlet-nameHelloWorld/servlet-name
url-pattern/HelloWorld/*/url-pattern
/servlet-mapping
welcome-file-list
welcome-file
index.html
/welcome-file
/welcome-file-list
/web-app

As you can see, this file specifies the servlet name and maps it to an url pattern. In 
your html you just have to write i.e:

form action=HelloWorld

This should work.

Manuel Melle Ocáriz
Software AG - E-Business Competence Center
[EMAIL PROTECTED]





RE: servlet deployment

2001-05-22 Thread Montgomery, Kendal L

Thank you... that worked... for some reason I didn't even think to use the
full class name.



Kendal L. Montgomery
Qwest - eFlow Development Team
614-215-4937


-Original Message-
From:   William Kaufman [mailto:[EMAIL PROTECTED]]
Sent:   Tuesday, May 22, 2001 10:04 AM
To: '[EMAIL PROTECTED]'
Subject:RE: servlet deployment

Try

http://myserver:8080/servlet/dummy.HelloWorld

1) 8080 is the default port for Tomcat: you can change it in
server.xml.
2) All servlets (by default--settable in web.xml) appear
under /servlet.
3) After that comes the full class name.


-- Bill K.


 -Original Message-
 From: Montgomery, Kendal L
[mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, May 22, 2001 6:43 AM
 To: Tomcat-User (E-mail)
 Cc: Sharma, Puneet
 Subject: servlet deployment
 
 
 Hello all,
 
 I am just wandering how I deploy a servlet that is part of
a 
 package, and
 how to reference it.  For example.. say you take the
HelloWorldExample
 servlet that comes with and modify it.  Rename the source
to
 HelloWorld.java, and change the file appropriately,
including 
 adding a line
 at the top:
 
 package dummy;
 
 so, it is in the dummy class.
 
 When I deploy this new HelloWorld servlet, I put it in

...webapps/examples/WEB-INF/classes/dummy/HelloWorld.class.  Now, to
 reference this, I expected to be able to go to my browser
and hit
 http://myserver/examples/servlet/dummy/HelloWorld
 http://myserver/examples/servlet/dummy/HelloWorld .
That 
 did not work.
 So, what do I have to do to make this work?
 
 By the way, I am running Apache 1.3.19 and Tomcat
3.2.1.fasdf
 
 Thanks..
 
 Kendal L. Montgomery
 Qwest - eFlow Development Team
 614-215-4937
 



RE: servlet deployment

2001-05-22 Thread Pernica, Jan

you have to modify web.xml
and add:
servlet
servlet-nameHelloWorld/servlet-name
servlet-classdummy.HelloWorld/servlet-class
/servlet
servlet-mapping
servlet-nameHelloWorld/servlet-name
url-pattern/servlet/dummy/HelloWorld/url-pattern
/servlet-mapping

then you can reference it using the URL you have written

On Tuesday, May 22, 2001 3:43 PM, Montgomery, Kendal L
[SMTP:[EMAIL PROTECTED]] wrote:
 Hello all,
 
 I am just wandering how I deploy a servlet that is part of a package, and
 how to reference it.  For example.. say you take the HelloWorldExample
 servlet that comes with and modify it.  Rename the source to
 HelloWorld.java, and change the file appropriately, including adding a
line
 at the top:
 
 package dummy;
 
 so, it is in the dummy class.
 
 When I deploy this new HelloWorld servlet, I put it in
 ...webapps/examples/WEB-INF/classes/dummy/HelloWorld.class.  Now, to
 reference this, I expected to be able to go to my browser and hit
 http://myserver/examples/servlet/dummy/HelloWorld
 http://myserver/examples/servlet/dummy/HelloWorld .  That did not work.
 So, what do I have to do to make this work?
 
 By the way, I am running Apache 1.3.19 and Tomcat 3.2.1.fasdf
 
 Thanks..
 
 Kendal L. Montgomery
 Qwest - eFlow Development Team
 614-215-4937


__
Tato komunikace je urcena vyhradne pro adresata a je duverna. 
This communication is intended solely for the addressee and is confidential.






Hot Servlet Deployment in Tomcat 3.2.1

2001-05-10 Thread Allan Kamau

I am running Tomcat 3.2.1. The Server hosting the
tomcat will soon go into production. I wanted to know
if and how it is possible to deploy servlets without
having to restart Tomcat 3.2.1 so it may read the
modified web.xml in my context.
Thanks in advance.

Allan Kamau.

__
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/



Servlet deployment

2001-04-11 Thread Harkishin Nachnani

Hi all:
For a customer demo, I had written a small servlet and deployed it on Java
Web Server 2.0.
But we have an evaluation version of Java Web Server so we have to
re-install it every 30/45 days.
So I just thought of switching over to Tomcat.
Basically, I just have a couple of html and gif files, 1 webcallback.class
(servlet) and Libm2w32.dll (since servlet uses native methods)

I have successfully installed Tomcat 3.2.1 and the sample jsps work fine.
Can anyone tell me where I should place all the files (.html, .gif, .class,
.dll) of my application ??? Do I need to change the server.xml and add a new
context path ???
Can someone kindly tell me the easiest and fastest way to get the servlet
working since its just a demo machine ???

Thanks
Harry

-Original Message-
From: Tim O'Neil [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 11, 2001 2:04 PM
To: [EMAIL PROTECTED]
Subject: RE: /examples/servlet


At 11:33 PM 4/11/2001 -0400, you wrote:
  I wouldn't know how to get mod_jk.so for linux. If you're using 
 modjserv then
  you're in luck because the user guidelines are for mod_jserv only.

Actually, there are complete instructions for using
mod_jk on the sun site, and you can get the so right
'ere:
http://jakarta.apache.org/builds/jakarta-tomcat/release/v3.2.1/bin/linux/i38
6/




RE: Servlet deployment

2001-04-11 Thread Chris Andreou

http://java.sun.com/docs/books/tutorial/servlets/servletrunner/tomcat-start.
html


-Original Message-
From: Harkishin Nachnani [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 11, 2001 1:15 PM
To: [EMAIL PROTECTED]
Subject: Servlet deployment


Hi all:
For a customer demo, I had written a small servlet and deployed it on Java
Web Server 2.0.
But we have an evaluation version of Java Web Server so we have to
re-install it every 30/45 days.
So I just thought of switching over to Tomcat.
Basically, I just have a couple of html and gif files, 1 webcallback.class
(servlet) and Libm2w32.dll (since servlet uses native methods)

I have successfully installed Tomcat 3.2.1 and the sample jsps work fine.
Can anyone tell me where I should place all the files (.html, .gif, .class,
.dll) of my application ??? Do I need to change the server.xml and add a new
context path ???
Can someone kindly tell me the easiest and fastest way to get the servlet
working since its just a demo machine ???

Thanks
Harry

-Original Message-
From: Tim O'Neil [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 11, 2001 2:04 PM
To: [EMAIL PROTECTED]
Subject: RE: /examples/servlet


At 11:33 PM 4/11/2001 -0400, you wrote:
  I wouldn't know how to get mod_jk.so for linux. If you're using 
 modjserv then
  you're in luck because the user guidelines are for mod_jserv only.

Actually, there are complete instructions for using
mod_jk on the sun site, and you can get the so right
'ere:
http://jakarta.apache.org/builds/jakarta-tomcat/release/v3.2.1/bin/linux/i38
6/



New area for servlet and servlet deployment

2001-02-20 Thread Neil Wood

Hi,

I have just installed Apache and Tomcat and modified configuration files according to 
the minimalistic user's guide.

If I want to create a new directory for my test servlets, what steps do I need to take 
so that they can be detected when I enter a URL?

Do I  need to create a context (where) and just copy my servlet into the context's 
directory?

Please advise.

Thankyou,

Neil


Neil Wood, Systems Developer, Jungle Online Ltd.
www.jungle.com



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