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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]