TC 404 Servlet Registration?

2002-09-20 Thread Oakes, Jeff (HTSC, IT)

I can run the examples fine.  But when I make my own test case I can run the
html, but keep getting the message "xxx not available", where xxx is the
servlet reference to my servlet.  It is in web.xml, and the class file is
located in WebApps/MyHome/WEB-INF/classes .

Any suggestions, or location of specific docs (I have the examples and their
presentation of the tc docs)?

Thanks.

later,
 
Jeff Oakes
(860)-843-3918 Windsor
(860)-673-4816 Home
(860)-547-4620 Hartford

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Servlet registration

2001-04-11 Thread Heckel, Jeffery S.

I assume that the line:

JkMount /servelt/* ajp12 

from your http.conf file in the original message is a typo.  If not that may
be the problem.

Jeff Heckel - Systems Engineer
AITS - Software Development & Integration, University of Illinois
50 Gerty Drive, Champaign, IL 61820
(217)333-3842
[EMAIL PROTECTED]


-Original Message-
From: Chris Andreou [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 11, 2001 11:05 AM
To: '[EMAIL PROTECTED]'
Subject: RE: Servlet registration


I didn't make a difference.  I am frustrated :( 

my context path definition is 

 

my Host name is trw02
I am hitting the server by 
http://trw02/servlet/SimpleExample  does not work
http://trw02/servlet/examples.SimpleExample  works
http://trw02/servlet/simple does not work

Chris




-Original Message-
From: Julien, Timothy [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 11, 2001 10:48 AM
To: '[EMAIL PROTECTED]'
Subject: RE: Servlet registration


The whitespace in your  in your web.xml could be leading to
the failure you see.
try:

  SimpleServlet
  /simple


what URL are you attempting to hit from your browser?

Tim Julien
HP middleware

-Original Message-
From: Chris Andreou [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 11, 2001 11:37 AM
To: '[EMAIL PROTECTED]'
Subject: RE: Servlet registration


I have the same problem. 

I have put my servlets under the WEB-INF/classes: 

For example:
directory structure 
WEB-INF/classes/examples.SimpleServlet

web.xml file

  
 SimpleServlet
 examples.SimpleServlet 
  
  
  
   
  
  SimpleServlet
  
  
  /simple
  
  


httpd.conf:
JkMount /*.jsp ajp12
JkMount /servelt/* ajp12 


I am able to see the servlet using a complete path
http://trw02/servlet/examples.SimpleExample 

but not using the names in web.xml 

Based on the documentation and examples I am doing right. Please any
suggestions are welcome

Thanks in advance

Chris


-Original Message-
From: Ron Pitts [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 11, 2001 9:57 AM
To: [EMAIL PROTECTED]
Subject: RE: Servlet registration



Zsolt,

Your missing some stuff 

webapps/myapp/WEB-INF/classes - store servlets/jsp in here 
 
put your web.xml in 
webapps/mysql/WEB-INF/


-Original Message-
From: Zsolt Horvath [mailto:[EMAIL PROTECTED]]
Sent: 11 April 2001 15:55
To: [EMAIL PROTECTED]
Subject: Servlet registration


Hi !

How could I register my own servlets into TomCat ??

I put them into the %TOMCAT_HOME%/webapps/myapp/Web-inf/classes directory.
After I create a web.xml file in the %TOMCAT_HOME%/webapps/myapp directory.
The web.xml file contains this:

http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">



 Web Application


  Servlet1
  Servlet1



  Servlet1
  /Servlet1




And I restarted the tomcat, but it doesn`t work ! What`s wrong?
Please help for me: [EMAIL PROTECTED]



Re: Servlet registration

2001-04-11 Thread Jeff Kilbride

Maybe it's a typo, but the first problem I see is that your mappings don't
match the URL's you're trying to pull up. You have:

>   
>  SimpleServlet
>  examples.SimpleServlet
>   

and

> 
>   SimpleServlet
>   /simple
> 

but you are trying to pull up "SimpleExample" in your URL. I don't see how
"/servlet/examples.SimpleExample" is pulling up if the class name is really
"examples.SimpleServlet". So, one of these is wrong, unless it's a typo.

Thanks,
--jeff

- Original Message -
From: "Chris Andreou" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, April 11, 2001 9:04 AM
Subject: RE: Servlet registration


> I didn't make a difference.  I am frustrated :(
>
> my context path definition is
>
>  docBase="e:/wwwroot/dgms_dev"
> reloadable="true" />
>
> my Host name is trw02
> I am hitting the server by
> http://trw02/servlet/SimpleExample  does not work
> http://trw02/servlet/examples.SimpleExample  works
> http://trw02/servlet/simple does not work
>
> Chris
>
>
>
>
> -Original Message-
> From: Julien, Timothy [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, April 11, 2001 10:48 AM
> To: '[EMAIL PROTECTED]'
> Subject: RE: Servlet registration
>
>
> The whitespace in your  in your web.xml could be leading
to
> the failure you see.
> try:
> 
>   SimpleServlet
>   /simple
> 
>
> what URL are you attempting to hit from your browser?
>
> Tim Julien
> HP middleware
>
> -Original Message-
> From: Chris Andreou [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, April 11, 2001 11:37 AM
> To: '[EMAIL PROTECTED]'
> Subject: RE: Servlet registration
>
>
> I have the same problem.
>
> I have put my servlets under the WEB-INF/classes:
>
> For example:
> directory structure
> WEB-INF/classes/examples.SimpleServlet
>
> web.xml file
>
>   
>  SimpleServlet
>  examples.SimpleServlet
>   
>
>
>
>   
>   SimpleServlet
>   
>   
>   /simple
>   
>   
>
>
> httpd.conf:
> JkMount /*.jsp ajp12
> JkMount /servelt/* ajp12
>
>
> I am able to see the servlet using a complete path
> http://trw02/servlet/examples.SimpleExample
>
> but not using the names in web.xml
>
> Based on the documentation and examples I am doing right. Please any
> suggestions are welcome
>
> Thanks in advance
>
> Chris
>
>
> -Original Message-
> From: Ron Pitts [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, April 11, 2001 9:57 AM
> To: [EMAIL PROTECTED]
> Subject: RE: Servlet registration
>
>
>
> Zsolt,
>
> Your missing some stuff
>
> webapps/myapp/WEB-INF/classes - store servlets/jsp in here
>
> put your web.xml in
> webapps/mysql/WEB-INF/
>
>
> -Original Message-
> From: Zsolt Horvath [mailto:[EMAIL PROTECTED]]
> Sent: 11 April 2001 15:55
> To: [EMAIL PROTECTED]
> Subject: Servlet registration
>
>
> Hi !
>
> How could I register my own servlets into TomCat ??
>
> I put them into the %TOMCAT_HOME%/webapps/myapp/Web-inf/classes directory.
> After I create a web.xml file in the %TOMCAT_HOME%/webapps/myapp
directory.
> The web.xml file contains this:
>
>  2.2//EN" "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
>
> 
>
>  Web Application
>
> 
>   Servlet1
>   Servlet1
> 
>
> 
>   Servlet1
>   /Servlet1
> 
>
> 
>
> And I restarted the tomcat, but it doesn`t work ! What`s wrong?
> Please help for me: [EMAIL PROTECTED]
>




RE: Servlet registration

2001-04-11 Thread Gaël Oberson

try to modify the context definition:





-Message d'origine-
De : Chris Andreou [mailto:[EMAIL PROTECTED]]
Envoyé : mercredi, 11. avril 2001 18:05
À : '[EMAIL PROTECTED]'
Objet : RE: Servlet registration


I didn't make a difference.  I am frustrated


my context path definition is



my Host name is trw02
I am hitting the server by
http://trw02/servlet/SimpleExample  does not work
http://trw02/servlet/examples.SimpleExample  works
http://trw02/servlet/simple does not work

Chris




-Original Message-
From: Julien, Timothy [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 11, 2001 10:48 AM
To: '[EMAIL PROTECTED]'
Subject: RE: Servlet registration


The whitespace in your  in your web.xml could be leading to
the failure you see.
try:

  SimpleServlet
  /simple


what URL are you attempting to hit from your browser?

Tim Julien
HP middleware

-Original Message-
From: Chris Andreou [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 11, 2001 11:37 AM
To: '[EMAIL PROTECTED]'
Subject: RE: Servlet registration


I have the same problem.

I have put my servlets under the WEB-INF/classes:

For example:
directory structure
WEB-INF/classes/examples.SimpleServlet

web.xml file

  
 SimpleServlet
 examples.SimpleServlet
  


   
  
  SimpleServlet
  
  
  /simple
  
  


httpd.conf:
JkMount /*.jsp ajp12
JkMount /servelt/* ajp12


I am able to see the servlet using a complete path
http://trw02/servlet/examples.SimpleExample

but not using the names in web.xml

Based on the documentation and examples I am doing right. Please any
suggestions are welcome

Thanks in advance

Chris


-Original Message-
From: Ron Pitts [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 11, 2001 9:57 AM
To: [EMAIL PROTECTED]
Subject: RE: Servlet registration



Zsolt,

Your missing some stuff

webapps/myapp/WEB-INF/classes - store servlets/jsp in here

put your web.xml in
webapps/mysql/WEB-INF/


-Original Message-
From: Zsolt Horvath [mailto:[EMAIL PROTECTED]]
Sent: 11 April 2001 15:55
To: [EMAIL PROTECTED]
Subject: Servlet registration


Hi !

How could I register my own servlets into TomCat ??

I put them into the %TOMCAT_HOME%/webapps/myapp/Web-inf/classes directory.
After I create a web.xml file in the %TOMCAT_HOME%/webapps/myapp directory.
The web.xml file contains this:

http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">



 Web Application


  Servlet1
  Servlet1



  Servlet1
  /Servlet1




And I restarted the tomcat, but it doesn`t work ! What`s wrong?
Please help for me: [EMAIL PROTECTED]




RE: Servlet registration

2001-04-11 Thread Chris Andreou

I didn't make a difference.  I am frustrated :( 

my context path definition is 

 

my Host name is trw02
I am hitting the server by 
http://trw02/servlet/SimpleExample  does not work
http://trw02/servlet/examples.SimpleExample  works
http://trw02/servlet/simple does not work

Chris




-Original Message-
From: Julien, Timothy [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 11, 2001 10:48 AM
To: '[EMAIL PROTECTED]'
Subject: RE: Servlet registration


The whitespace in your  in your web.xml could be leading to
the failure you see.
try:

  SimpleServlet
  /simple


what URL are you attempting to hit from your browser?

Tim Julien
HP middleware

-Original Message-
From: Chris Andreou [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 11, 2001 11:37 AM
To: '[EMAIL PROTECTED]'
Subject: RE: Servlet registration


I have the same problem. 

I have put my servlets under the WEB-INF/classes: 

For example:
directory structure 
WEB-INF/classes/examples.SimpleServlet

web.xml file

  
 SimpleServlet
 examples.SimpleServlet 
  
  
  
   
  
  SimpleServlet
  
  
  /simple
  
  


httpd.conf:
JkMount /*.jsp ajp12
JkMount /servelt/* ajp12 


I am able to see the servlet using a complete path
http://trw02/servlet/examples.SimpleExample 

but not using the names in web.xml 

Based on the documentation and examples I am doing right. Please any
suggestions are welcome

Thanks in advance

Chris


-Original Message-
From: Ron Pitts [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 11, 2001 9:57 AM
To: [EMAIL PROTECTED]
Subject: RE: Servlet registration



Zsolt,

Your missing some stuff 

webapps/myapp/WEB-INF/classes - store servlets/jsp in here 
 
put your web.xml in 
webapps/mysql/WEB-INF/


-Original Message-
From: Zsolt Horvath [mailto:[EMAIL PROTECTED]]
Sent: 11 April 2001 15:55
To: [EMAIL PROTECTED]
Subject: Servlet registration


Hi !

How could I register my own servlets into TomCat ??

I put them into the %TOMCAT_HOME%/webapps/myapp/Web-inf/classes directory.
After I create a web.xml file in the %TOMCAT_HOME%/webapps/myapp directory.
The web.xml file contains this:

http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">



 Web Application


  Servlet1
  Servlet1



  Servlet1
  /Servlet1




And I restarted the tomcat, but it doesn`t work ! What`s wrong?
Please help for me: [EMAIL PROTECTED]



RE: Servlet registration

2001-04-11 Thread Julien, Timothy

The whitespace in your  in your web.xml could be leading to
the failure you see.
try:

  SimpleServlet
  /simple


what URL are you attempting to hit from your browser?

Tim Julien
HP middleware

-Original Message-
From: Chris Andreou [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 11, 2001 11:37 AM
To: '[EMAIL PROTECTED]'
Subject: RE: Servlet registration


I have the same problem. 

I have put my servlets under the WEB-INF/classes: 

For example:
directory structure 
WEB-INF/classes/examples.SimpleServlet

web.xml file

  
 SimpleServlet
 examples.SimpleServlet 
  
  
  
   
  
  SimpleServlet
  
  
  /simple
  
  


httpd.conf:
JkMount /*.jsp ajp12
JkMount /servelt/* ajp12 


I am able to see the servlet using a complete path
http://trw02/servlet/examples.SimpleExample 

but not using the names in web.xml 

Based on the documentation and examples I am doing right. Please any
suggestions are welcome

Thanks in advance

Chris


-Original Message-
From: Ron Pitts [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 11, 2001 9:57 AM
To: [EMAIL PROTECTED]
Subject: RE: Servlet registration



Zsolt,

Your missing some stuff 

webapps/myapp/WEB-INF/classes - store servlets/jsp in here 
 
put your web.xml in 
webapps/mysql/WEB-INF/


-Original Message-
From: Zsolt Horvath [mailto:[EMAIL PROTECTED]]
Sent: 11 April 2001 15:55
To: [EMAIL PROTECTED]
Subject: Servlet registration


Hi !

How could I register my own servlets into TomCat ??

I put them into the %TOMCAT_HOME%/webapps/myapp/Web-inf/classes directory.
After I create a web.xml file in the %TOMCAT_HOME%/webapps/myapp directory.
The web.xml file contains this:

http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">



 Web Application


  Servlet1
  Servlet1



  Servlet1
  /Servlet1




And I restarted the tomcat, but it doesn`t work ! What`s wrong?
Please help for me: [EMAIL PROTECTED]



RE: Servlet registration

2001-04-11 Thread Chris Andreou

I have the same problem. 

I have put my servlets under the WEB-INF/classes: 

For example:
directory structure 
WEB-INF/classes/examples.SimpleServlet

web.xml file

  
 SimpleServlet
 examples.SimpleServlet 
  
  
  
   
  
  SimpleServlet
  
  
  /simple
  
  


httpd.conf:
JkMount /*.jsp ajp12
JkMount /servelt/* ajp12 


I am able to see the servlet using a complete path
http://trw02/servlet/examples.SimpleExample 

but not using the names in web.xml 

Based on the documentation and examples I am doing right. Please any
suggestions are welcome

Thanks in advance

Chris


-Original Message-
From: Ron Pitts [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 11, 2001 9:57 AM
To: [EMAIL PROTECTED]
Subject: RE: Servlet registration



Zsolt,

Your missing some stuff 

webapps/myapp/WEB-INF/classes - store servlets/jsp in here 
 
put your web.xml in 
webapps/mysql/WEB-INF/


-Original Message-
From: Zsolt Horvath [mailto:[EMAIL PROTECTED]]
Sent: 11 April 2001 15:55
To: [EMAIL PROTECTED]
Subject: Servlet registration


Hi !

How could I register my own servlets into TomCat ??

I put them into the %TOMCAT_HOME%/webapps/myapp/Web-inf/classes directory.
After I create a web.xml file in the %TOMCAT_HOME%/webapps/myapp directory.
The web.xml file contains this:

http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">



 Web Application


  Servlet1
  Servlet1



  Servlet1
  /Servlet1




And I restarted the tomcat, but it doesn`t work ! What`s wrong?
Please help for me: [EMAIL PROTECTED]




RE: Servlet registration

2001-04-11 Thread Ron Pitts


Zsolt,

Your missing some stuff 

webapps/myapp/WEB-INF/classes - store servlets/jsp in here 
 
put your web.xml in 
webapps/mysql/WEB-INF/


-Original Message-
From: Zsolt Horvath [mailto:[EMAIL PROTECTED]]
Sent: 11 April 2001 15:55
To: [EMAIL PROTECTED]
Subject: Servlet registration


Hi !

How could I register my own servlets into TomCat ??

I put them into the %TOMCAT_HOME%/webapps/myapp/Web-inf/classes directory.
After I create a web.xml file in the %TOMCAT_HOME%/webapps/myapp directory.
The web.xml file contains this:

http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">



 Web Application


  Servlet1
  Servlet1



  Servlet1
  /Servlet1




And I restarted the tomcat, but it doesn`t work ! What`s wrong?
Please help for me: [EMAIL PROTECTED]





Servlet registration

2001-04-11 Thread Zsolt Horvath

Hi !

How could I register my own servlets into TomCat ??

I put them into the %TOMCAT_HOME%/webapps/myapp/Web-inf/classes directory.
After I create a web.xml file in the %TOMCAT_HOME%/webapps/myapp directory.
The web.xml file contains this:

http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">



 Web Application


  Servlet1
  Servlet1



  Servlet1
  /Servlet1




And I restarted the tomcat, but it doesn`t work ! What`s wrong?
Please help for me: [EMAIL PROTECTED]




Servlet registration

2001-04-11 Thread Zsolt Horvath



Hi !
 
How could I register my own servlets into TomCat 
??
 
I put them into the 
%TOMCAT_HOME%/webapps/myapp/Web-inf/classes directory. After I create a 
web.xml file in the %TOMCAT_HOME%/webapps/myapp directory. The web.xml file 
contains this:
 
http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
 

 
     Web 
Application
 
    
  
Servlet1  
Servlet1    

 
    
  
Servlet1  
/Servlet1    

 

 
And I restarted the tomcat, but it doesn`t work ! 
What`s wrong? 
Please help for me: [EMAIL PROTECTED]