You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Ken Bowen <kb...@als.com> on 2008/06/24 20:34:07 UTC

Problem (apparent) with servlet mapping

Hi All,

Using OS = Mac OS/X 5.2;  Tomcat 5.5.26 [unzipped from Apache site];    
Java 1.5.0_13
Using Eclipse/MyEclipse 6.0 as a development env (plus startup.sh/ 
shutdown.sh/printfs as needed).

Is there a way get a grip on the servlet mapping Tomcat tries to apply?
Here's my problem [from the RPC of a GWT (sub)app -- it works with  
GWT's hosted & web modes (which use
an embedded Tomcat), but fails when I try to deploy on a free-standing  
Tomcat.  That is, the page index.jsp
renders correctly, including the appopriate javascript, but the  
embedded rpc to populate several ListBoxes isn't working.]

I have AccessLogValve turned on for localhost (using JULI).   For the  
request

http://localhost:8080/hnm1/index.jsp ,

localhost_access_log.2008-06-24.txt shows (datetime stripped off):

  "GET /hnm1/ HTTP/1.1" 200 914
  "GET /hnm1/UserMain.css HTTP/1.1" 404 1006
  "GET /hnm1/www/com.herenow.hnm.userMain.UserMain/ 
com.herenow.hnm.userMain.UserMain.nocache.js HTTP/1.1" 304 -
  "GET /hnm1/www/com.herenow.hnm.userMain.UserMain/gwt/standard/ 
standard.css HTTP/1.1" 304 -
  "GET /hnm1/www/com.herenow.hnm.userMain.UserMain/UserMain.css HTTP/ 
1.1" 304 -
  "POST /hnm1/www/com.herenow.hnm.userMain.UserMain/messageInfo HTTP/ 
1.1" 500 3046
  "POST /hnm1/www/com.herenow.hnm.userMain.UserMain/messageInfo HTTP/ 
1.1" 500 3046
  "GET /hnm1/www/com.herenow.hnm.userMain.UserMain/gwt/standard/images/ 
hborder.png HTTP/1.1" 304 -

The two POST requests are the items of concern (they are the RPC calls  
for the GWT involved).
My web.xml contains:

   <servlet>
     <servlet-name>UserMainInfoService</servlet-name>
     <servlet- 
class>com.herenow.hnm.userMain.server.UserMainInfoServiceImpl</servlet- 
class>
     <init-param>
        <param-name>debug</param-name>
        <param-value>true</param-value>
     </init-param>
   </servlet>
   <servlet-mapping>
     <servlet-name>UserMainInfoService</servlet-name>
     <url-pattern>/www/com.herenow.hnm.userMain.UserMain/messageInfo</ 
url-pattern>
   </servlet-mapping>

The class com.herenow.hnm.userMain.server.UserMainInfoServiceImpl  
exists and runs appropriately under GWT's
embedded Tomcat.

Finally, I have RequestDumperValve also turned on, and for the (first)  
POST above, it shows me:

Jun 24, 2008 1:31:19 PM org.apache.catalina.valves.RequestDumperValve  
invoke
INFO: REQUEST URI       =/hnm1/www/com.herenow.hnm.userMain.UserMain/ 
messageInfo
Jun 24, 2008 1:31:19 PM org.apache.catalina.valves.RequestDumperValve  
invoke
INFO: REQUEST URI       =/hnm1/www/com.herenow.hnm.userMain.UserMain/ 
messageInfo

......[snip]

INFO:         serverName=localhost
Jun 24, 2008 1:31:19 PM org.apache.catalina.valves.RequestDumperValve  
invoke
INFO:         serverPort=8080
Jun 24, 2008 1:31:19 PM org.apache.catalina.valves.RequestDumperValve  
invoke
INFO:        servletPath=/www/com.herenow.hnm.userMain.UserMain/ 
messageInfo

I've put simple System.out.println's at the tops of the methods in  
UserMainInfoServiceImpl which should be invoked,
and have tried placing breakpoints in Eclipse, but don't see anything.

Are there any techniques I can use to figure what's happening here?

Thanks in advance,
Ken Bowen


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Problem (apparent) with servlet mapping

Posted by Mark Thomas <ma...@apache.org>.
Ken Bowen wrote:
> Sorry, I forgot to mention (careless of me) that there are no Exceptions 
> or ERRORs showing in catalina.out or in
> localhost.2008-06-24.log.  ..... that's why it feels so strange.
> 
> 
> On Jun 24, 2008, at 2:43 PM, Caldarale, Charles R wrote:
> 
>>> From: Ken Bowen [mailto:kbowen@als.com]
>>> Subject: Problem (apparent) with servlet mapping
>>>
>>>  "POST /hnm1/www/com.herenow.hnm.userMain.UserMain/messageInfo HTTP/
>>> 1.1" 500 3046
>>>  "POST /hnm1/www/com.herenow.hnm.userMain.UserMain/messageInfo HTTP/
>>> 1.1" 500 3046
>>
>> If you're getting a 500, there should be an entry in the Tomcat logs.  
>> These frequently occur due to a servlet throwing an exception, so 
>> there should be stack traces to look at.

Maybe https://issues.apache.org/bugzilla/show_bug.cgi?id=44494 ?

Mark



---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Problem (apparent) with servlet mapping

Posted by Ken Bowen <kb...@als.com>.
Sorry, I forgot to mention (careless of me) that there are no  
Exceptions or ERRORs showing in catalina.out or in
localhost.2008-06-24.log.  ..... that's why it feels so strange.


On Jun 24, 2008, at 2:43 PM, Caldarale, Charles R wrote:

>> From: Ken Bowen [mailto:kbowen@als.com]
>> Subject: Problem (apparent) with servlet mapping
>>
>>  "POST /hnm1/www/com.herenow.hnm.userMain.UserMain/messageInfo HTTP/
>> 1.1" 500 3046
>>  "POST /hnm1/www/com.herenow.hnm.userMain.UserMain/messageInfo HTTP/
>> 1.1" 500 3046
>
> If you're getting a 500, there should be an entry in the Tomcat  
> logs.  These frequently occur due to a servlet throwing an  
> exception, so there should be stack traces to look at.
>
> - Chuck
>
>
> THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE  
> PROPRIETARY MATERIAL and is thus for use only by the intended  
> recipient. If you received this in error, please contact the sender  
> and delete the e-mail and its attachments from all computers.
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


RE: Problem (apparent) with servlet mapping

Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Ken Bowen [mailto:kbowen@als.com]
> Subject: Problem (apparent) with servlet mapping
>
>   "POST /hnm1/www/com.herenow.hnm.userMain.UserMain/messageInfo HTTP/
> 1.1" 500 3046
>   "POST /hnm1/www/com.herenow.hnm.userMain.UserMain/messageInfo HTTP/
> 1.1" 500 3046

If you're getting a 500, there should be an entry in the Tomcat logs.  These frequently occur due to a servlet throwing an exception, so there should be stack traces to look at.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org