You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by scarlson <sc...@i2s.com> on 2009/02/18 18:37:27 UTC

Ubuntu 8.10 GWT Apache2 Tomcat Servlet Problems


 Hello All --

I've been pouring over the mailing lists trying to solve my problem, which
seems like a popular one.

My servlet does not seem to be running.

I'm using Ubuntu 8.10 / Apache2 / Tomcat6 and Mod-Proxy

Both Apache and Tomcat are functional (Mod-proxy also works). I deploy my
war file and my client side code works. Just not the servlet. The servlet is
minimal, just returns a string. This of course, works fine in GWT Host Mode,
but not when I deploy to real server.

Here is some output from my access logs. The MsgService is the servlet.

--------- snip ---------------
127.0.0.1 - - [18/Feb/2009:11:52:58 -0500] "GET /webMonster/MsgExample.html
HTTP/1.1" 304 - 0.002 -
127.0.0.1 - - [18/Feb/2009:11:52:58 -0500] "GET
/webMonster/com.i2s.webMonster.MsgExample.nocache.js HTTP/1.1" 304 - 0.005 -
127.0.0.1 - - [18/Feb/2009:11:52:58 -0500] "GET
/webMonster/C57B680ED75187B43082D58F754F20DF.cache.html HTTP/1.1" 304 -
0.000 -
127.0.0.1 - - [18/Feb/2009:11:52:58 -0500] "GET
/webMonster/gwt/standard/standard.css HTTP/1.1" 304 - 0.001 -
127.0.0.1 - - [18/Feb/2009:11:52:58 -0500] "GET /webMonster/MsgExample.css
HTTP/1.1" 304 - 0.001 -
127.0.0.1 - - [18/Feb/2009:11:52:58 -0500] "GET
/webMonster/C57B680ED75187B43082D58F754F20DF.cache.html HTTP/1.1" 304 -
0.000 -
127.0.0.1 - - [18/Feb/2009:11:52:58 -0500] "GET
/webMonster/gwt/standard/images/hborder.png HTTP/1.1" 304 - 0.001 -
127.0.0.1 - - [18/Feb/2009:11:52:58 -0500] "POST /webMonster/MsgService
HTTP/1.1" 404 1018 0.001 -
127.0.0.1 - - [18/Feb/2009:11:53:18 -0500] "GET /webMonster/MsgExample.html
HTTP/1.1" 304 - 0.001 -
127.0.0.1 - - [18/Feb/2009:11:53:18 -0500] "GET
/webMonster/com.i2s.webMonster.MsgExample.nocache.js HTTP/1.1" 304 - 0.001 -
127.0.0.1 - - [18/Feb/2009:11:53:18 -0500] "GET
/webMonster/C57B680ED75187B43082D58F754F20DF.cache.html HTTP/1.1" 304 -
0.000 -
127.0.0.1 - - [18/Feb/2009:11:53:18 -0500] "GET
/webMonster/gwt/standard/standard.css HTTP/1.1" 304 - 0.000 -
127.0.0.1 - - [18/Feb/2009:11:53:18 -0500] "GET /webMonster/MsgExample.css
HTTP/1.1" 304 - 0.002 -
127.0.0.1 - - [18/Feb/2009:11:53:18 -0500] "GET
/webMonster/C57B680ED75187B43082D58F754F20DF.cache.html HTTP/1.1" 304 -
0.001 -
127.0.0.1 - - [18/Feb/2009:11:53:18 -0500] "GET
/webMonster/gwt/standard/images/hborder.png HTTP/1.1" 304 - 0.000 -
127.0.0.1 - - [18/Feb/2009:11:53:18 -0500] "POST /webMonster/MsgService
HTTP/1.1" 404 1018 0.001 -
127.0.0.1 - - [18/Feb/2009:11:53:25 -0500] "GET /webMonster/MsgExample.html
HTTP/1.1" 304 - 0.001 -
127.0.0.1 - - [18/Feb/2009:11:53:25 -0500] "GET
/webMonster/com.i2s.webMonster.MsgExample.nocache.js HTTP/1.1" 304 - 0.000 -
127.0.0.1 - - [18/Feb/2009:11:53:25 -0500] "GET
/webMonster/C57B680ED75187B43082D58F754F20DF.cache.html HTTP/1.1" 304 -
0.000 -
127.0.0.1 - - [18/Feb/2009:11:53:25 -0500] "GET
/webMonster/gwt/standard/standard.css HTTP/1.1" 304 - 0.001 -
127.0.0.1 - - [18/Feb/2009:11:53:25 -0500] "GET /webMonster/MsgExample.css
HTTP/1.1" 304 - 0.000 -
127.0.0.1 - - [18/Feb/2009:11:53:25 -0500] "GET
/webMonster/gwt/standard/images/hborder.png HTTP/1.1" 304 - 0.001 -
127.0.0.1 - - [18/Feb/2009:11:53:25 -0500] "POST /webMonster/MsgService
HTTP/1.1" 404 1018 0.001 -
---------snip-----------



Here is my httpd.conf

-----------snip

ProxyTimeout 1
ProxyRequests Off
ProxyPreserveHost On

ProxyPass / http://localhost:8080/webMonster/
ProxyPassReverse / http://localhost:8080/webMonster/ 

<Proxy http://localhost:8080/webMonster>
Order allow,deny 
Allow from all
</Proxy>

----------- snip


The only change I've made to server.xml is turning on access logs.

Attached are the source code and my WAR files.. I hope this is enough
information to offer.

It seems like I've tried most of the suggestions, regarding paths.. I am
obviously missing something?

Thanks in Advanced for your help!

-SCarlson


http://www.nabble.com/file/p22084028/webMonster-src.zip webMonster-src.zip 
http://www.nabble.com/file/p22084028/webMonster.war webMonster.war 

-- 
View this message in context: http://www.nabble.com/Ubuntu-8.10-GWT-Apache2-Tomcat-Servlet-Problems-tp22084028p22084028.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


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


Re: Ubuntu 8.10 GWT Apache2 Tomcat Servlet Problems

Posted by Scott Carlson <sc...@i2s.com>.
André Warnier wrote:
> Hi.
>
> Instead of POST-ing to the Apache server on port 80, what happens if 
> you try to send your POST firectly to Tomcat, at http://localhost:8080 ?
> Can you send a logfile of /Tomcat/ after you try that ?
> Or better : stop Tomcat, remove your webapp, clean the Tomcat logs, 
> restart Tomcat, re-deploy your webapp, then have a look at the Tomcat 
> logs.
> Thanks for the quick response.. I am not entirely sure how I would do 
> that. I am using a generic GWT RPC implementation. Are you familiar? I 
> should also mention that I can get to my application via Port 80 using 
> mod-proxy. This seems to work fine, just no functioning servlet. The 
> majority of the forums always bring up web.xml (I've attached in 
> previous post)..
>
> -SCarlson

I did some reading.. Here is a quote from another list.
 http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/64c676ad67fabb6e

"GWT-RPC uses the browsers XMLHTTPRequest mechanism. As such, it is  
required to use the same protocol and port used to load your host page  
(to avoid running afoul of the Same Origin Policy).
So, if your host page is loaded via HTTP port 80 the RPC uses HTTP  
port 80 ... if you are in hosted mode (HTTP port 8888) then rpc uses  
HTTP port 8888. If your host page was loaded via HTTPS port 443 then  
GWT-RPC uses HTTPS port 443. "

-SCarlson

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


RE: Ubuntu 8.10 GWT Apache2 Tomcat Servlet Problems

Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Scott Carlson [mailto:scarlson@i2s.com]
> Subject: Re: Ubuntu 8.10 GWT Apache2 Tomcat Servlet Problems
>
> My WEB-INF/classes/ ....   contains the "missing" class...
> MsgServiceImpl.class  .. not sure what the heck the problem is..?

You don't have it properly placed in the subdirectories; it needs to be:
WEB-INF/classes/com/i2s/webMonster/server/MsgServiceImpl.class

The package name is the subdirectory structure - this is basic Java.

 - 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 unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Ubuntu 8.10 GWT Apache2 Tomcat Servlet Problems

Posted by Scott Carlson <sc...@i2s.com>.
Caldarale, Charles R wrote:
>> From: Scott Carlson [mailto:scarlson@i2s.com]
>> Subject: Re: Ubuntu 8.10 GWT Apache2 Tomcat Servlet Problems
>>     
>
>   
>> That was what I had originally, it has changed often due to
>> conflicting advice on forums. I did change it back to test.
>>     
>
> Leave it as is, without the package name.  The <url-pattern> must match... the URL pattern (what a coincidence).  If you're not using com.i2s.webMonster.server as part of the URL, it shouldn't be in the <url-pattern>.  (Whatever forum advised including the package name is a forum to avoid.)
>
>   
>> 127.0.0.1 - - [18/Feb/2009:13:46:39 -0500] "POST
>> /webMonster/MsgService HTTP/1.1" 500 2656 0.004 -
>>     
>
> The above is the only one of interest in the access log.  As previously suggested, test with just this URL, using wget or equivalent, direct to Tomcat; eliminate the rest of the crap until the servlet is sorted.
>
>   
>> SEVERE: Allocate exception for servlet MsgService
>> java.lang.ClassNotFoundException:
>> com.i2s.webMonster.server.MsgServiceImpl
>>     
>
> Perhaps you need to fix the above before doing anything else.
>
>   
>> I haven't seen that latter log until just now! Does this help?
>>     
>
> In the word of Homer Simpson, Doh!
>
>  - 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 unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>
>   
Thanks for your time Chuck.  I have moved this question to the GWT 
Group, hope they respond as fast as you did!

As of now, I haven't resolved these issues. I will come back with a 
follow-up..

My WEB-INF/classes/ ....   contains the "missing" class...  
MsgServiceImpl.class  .. not sure what the heck the problem is..?

Thanks Again
Scott

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


RE: Ubuntu 8.10 GWT Apache2 Tomcat Servlet Problems

Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Scott Carlson [mailto:scarlson@i2s.com]
> Subject: Re: Ubuntu 8.10 GWT Apache2 Tomcat Servlet Problems

> That was what I had originally, it has changed often due to
> conflicting advice on forums. I did change it back to test.

Leave it as is, without the package name.  The <url-pattern> must match... the URL pattern (what a coincidence).  If you're not using com.i2s.webMonster.server as part of the URL, it shouldn't be in the <url-pattern>.  (Whatever forum advised including the package name is a forum to avoid.)

> 127.0.0.1 - - [18/Feb/2009:13:46:39 -0500] "POST
> /webMonster/MsgService HTTP/1.1" 500 2656 0.004 -

The above is the only one of interest in the access log.  As previously suggested, test with just this URL, using wget or equivalent, direct to Tomcat; eliminate the rest of the crap until the servlet is sorted.

> SEVERE: Allocate exception for servlet MsgService
> java.lang.ClassNotFoundException:
> com.i2s.webMonster.server.MsgServiceImpl

Perhaps you need to fix the above before doing anything else.

> I haven't seen that latter log until just now! Does this help?

In the word of Homer Simpson, Doh!

 - 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 unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Ubuntu 8.10 GWT Apache2 Tomcat Servlet Problems

Posted by Scott Carlson <sc...@i2s.com>.
Caldarale, Charles R wrote:
>> From: Scott Carlson [mailto:scarlson@i2s.com]
>> Subject: Re: Ubuntu 8.10 GWT Apache2 Tomcat Servlet Problems
>>
>> The majority of the forums always bring up web.xml
>>     
>
> Which is appropriate, since yours is incorrect.  Your URL pattern should be:
>
> <url-pattern>/MsgService</url-pattern>
>
>  - 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 unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>
>   
Hi Chuck --

That was what I had originally, it has changed often due to conflicting 
advice on forums. I did change it back to test.

I undeployed my app. changed web.xml to this

------------snip
<?xml version="1.0" encoding="UTF-8"?>
<web-app>

 <!-- Standard Action Servlet Configuration -->
 <servlet>
   <servlet-name>MsgService</servlet-name>
   <servlet-class>com.i2s.webMonster.server.MsgServiceImpl</servlet-class>
 </servlet>

 <!-- Standard Action Servlet Mapping -->
 <servlet-mapping>
   <servlet-name>MsgService</servlet-name>
   <url-pattern>/MsgService</url-pattern>
 </servlet-mapping>

</web-app>

----------------snip

And still no luck. Here are my logs.. These are fresh.


--------- access_log ---------
127.0.0.1 - scott [18/Feb/2009:13:46:14 -0500] "GET 
/manager/html/undeploy?path=/webMonster HTTP/1.1" 200 9595 0.048 -
127.0.0.1 - - [18/Feb/2009:13:46:14 -0500] "GET 
/manager/images/tomcat.gif HTTP/1.1" 304 - 0.001 -
127.0.0.1 - - [18/Feb/2009:13:46:14 -0500] "GET 
/manager/images/asf-logo.gif HTTP/1.1" 304 - 0.003 -
127.0.0.1 - scott [18/Feb/2009:13:46:21 -0500] "POST 
/manager/html/upload HTTP/1.1" 200 10721 0.238 -
127.0.0.1 - - [18/Feb/2009:13:46:23 -0500] "GET /webMonster/ HTTP/1.1" 
404 988 0.001 -
127.0.0.1 - - [18/Feb/2009:13:46:39 -0500] "POST /webMonster/MsgService 
HTTP/1.1" 500 2656 0.004 -
127.0.0.1 - - [18/Feb/2009:13:46:44 -0500] "GET 
/webMonster/webMonster/MsgExample.html HTTP/1.1" 404 1066 0.003 -
127.0.0.1 - - [18/Feb/2009:13:46:51 -0500] "GET 
/webMonster/MsgExample.html HTTP/1.1" 200 1304 0.001 -
127.0.0.1 - - [18/Feb/2009:13:46:51 -0500] "GET 
/webMonster/com.i2s.webMonster.MsgExample.nocache.js HTTP/1.1" 200 5694 
0.001 -
127.0.0.1 - - [18/Feb/2009:13:46:51 -0500] "GET 
/webMonster/C57B680ED75187B43082D58F754F20DF.cache.html HTTP/1.1" 200 
44221 0.000 -
127.0.0.1 - - [18/Feb/2009:13:46:51 -0500] "GET 
/webMonster/gwt/standard/standard.css HTTP/1.1" 200 28413 0.000 -
127.0.0.1 - - [18/Feb/2009:13:46:51 -0500] "GET 
/webMonster/MsgExample.css HTTP/1.1" 200 5943 0.001 -
127.0.0.1 - - [18/Feb/2009:13:46:51 -0500] "GET 
/webMonster/gwt/standard/images/hborder.png HTTP/1.1" 200 1384 0.000 -
127.0.0.1 - - [18/Feb/2009:13:46:51 -0500] "POST /webMonster/MsgService 
HTTP/1.1" 404 1057 0.001 -

-------------- snip


----------- catalina logs ---------
Feb 18, 2009 1:46:07 PM org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal 
performance in production environments was not found on the 
java.library.path: /usr/java/packages/lib/i386:/lib:/usr/lib
Feb 18, 2009 1:46:07 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Feb 18, 2009 1:46:07 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 497 ms
Feb 18, 2009 1:46:07 PM org.apache.catalina.users.MemoryUserDatabase save
WARNING: User database is not persistable - no write permissions on 
directory
Feb 18, 2009 1:46:07 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Feb 18, 2009 1:46:07 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.18
Feb 18, 2009 1:46:08 PM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
Feb 18, 2009 1:46:08 PM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
Feb 18, 2009 1:46:08 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/33  config=null
Feb 18, 2009 1:46:08 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 553 ms
Feb 18, 2009 1:46:20 PM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive webMonster.war
--------- snip

-------- localhost tomcat logs ---------
Feb 18, 2009 1:46:14 PM org.apache.catalina.core.ApplicationContext log
INFO: HTMLManager: init: Associated with Deployer 
'Catalina:type=Deployer,host=localhost'
Feb 18, 2009 1:46:14 PM org.apache.catalina.core.ApplicationContext log
INFO: HTMLManager: init: Global resources are available
Feb 18, 2009 1:46:14 PM org.apache.catalina.core.ApplicationContext log
INFO: HTMLManager: undeploy: Undeploying web application at '/webMonster'
Feb 18, 2009 1:46:14 PM org.apache.catalina.core.ApplicationContext log
INFO: HTMLManager: list: Listing contexts for virtual host 'localhost'
Feb 18, 2009 1:46:21 PM org.apache.catalina.core.ApplicationContext log
INFO: HTMLManager: list: Listing contexts for virtual host 'localhost'
Feb 18, 2009 1:46:39 PM org.apache.catalina.core.ApplicationContext log
INFO: Marking servlet MsgService as unavailable
Feb 18, 2009 1:46:39 PM org.apache.catalina.core.ApplicationContext log
SEVERE: Error loading WebappClassLoader
  delegate: false
  repositories:
    /WEB-INF/classes/
----------> Parent Classloader:
org.apache.catalina.loader.StandardClassLoader@1113708
 com.i2s.webMonster.server.MsgServiceImpl
java.lang.ClassNotFoundException: com.i2s.webMonster.server.MsgServiceImpl
    at 
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1387)
    at 
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1233)
    at 
org.apache.catalina.core.StandardWrapper$1.run(StandardWrapper.java:1077)
    at java.security.AccessController.doPrivileged(Native Method)
    at 
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1073)
    at 
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:808)
    at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:129)
    at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
    at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
    at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
    at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
    at 
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:568)
    at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
    at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
    at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
    at 
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
    at java.lang.Thread.run(Thread.java:619)
Feb 18, 2009 1:46:39 PM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Allocate exception for servlet MsgService
java.lang.ClassNotFoundException: com.i2s.webMonster.server.MsgServiceImpl
    at 
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1387)
    at 
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1233)
    at 
org.apache.catalina.core.StandardWrapper$1.run(StandardWrapper.java:1077)
    at java.security.AccessController.doPrivileged(Native Method)
    at 
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1073)
    at 
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:808)
    at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:129)
    at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
    at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
    at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
    at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
    at 
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:568)
    at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
    at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
    at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
    at 
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
    at java.lang.Thread.run(Thread.java:619)
Feb 18, 2009 1:46:51 PM org.apache.catalina.core.StandardWrapperValve invoke
INFO: Servlet MsgService is currently unavailable
--------------- snip

I haven't seen that latter log until just now! Does this help?

-SCarlson

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


RE: Ubuntu 8.10 GWT Apache2 Tomcat Servlet Problems

Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Scott Carlson [mailto:scarlson@i2s.com]
> Subject: Re: Ubuntu 8.10 GWT Apache2 Tomcat Servlet Problems
>
> The majority of the forums always bring up web.xml

Which is appropriate, since yours is incorrect.  Your URL pattern should be:

<url-pattern>/MsgService</url-pattern>

 - 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 unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Ubuntu 8.10 GWT Apache2 Tomcat Servlet Problems

Posted by Scott Carlson <sc...@i2s.com>.
André Warnier wrote:
> Hi.
>
> Instead of POST-ing to the Apache server on port 80, what happens if 
> you try to send your POST firectly to Tomcat, at http://localhost:8080 ?
> Can you send a logfile of /Tomcat/ after you try that ?
> Or better : stop Tomcat, remove your webapp, clean the Tomcat logs, 
> restart Tomcat, re-deploy your webapp, then have a look at the Tomcat 
> logs.
>

Thanks for the quick response.. I am not entirely sure how I would do 
that. I am using a generic GWT RPC implementation. Are you familiar? I 
should also mention that I can get to my application via Port 80 using 
mod-proxy. This seems to work fine, just no functioning servlet. The 
majority of the forums always bring up web.xml (I've attached in 
previous post)..

-SCarlson

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


Re: Ubuntu 8.10 GWT Apache2 Tomcat Servlet Problems

Posted by André Warnier <aw...@ice-sa.com>.
Hi.

Instead of POST-ing to the Apache server on port 80, what happens if you 
try to send your POST firectly to Tomcat, at http://localhost:8080 ?
Can you send a logfile of /Tomcat/ after you try that ?
Or better : stop Tomcat, remove your webapp, clean the Tomcat logs, 
restart Tomcat, re-deploy your webapp, then have a look at the Tomcat logs.



scarlson wrote:
> 
>  Hello All --
> 
> I've been pouring over the mailing lists trying to solve my problem, which
> seems like a popular one.
> 
> My servlet does not seem to be running.
> 
> I'm using Ubuntu 8.10 / Apache2 / Tomcat6 and Mod-Proxy
> 
> Both Apache and Tomcat are functional (Mod-proxy also works). I deploy my
> war file and my client side code works. Just not the servlet. The servlet is
> minimal, just returns a string. This of course, works fine in GWT Host Mode,
> but not when I deploy to real server.
> 
> Here is some output from my access logs. The MsgService is the servlet.
> 
> --------- snip ---------------
> 127.0.0.1 - - [18/Feb/2009:11:52:58 -0500] "GET /webMonster/MsgExample.html
> HTTP/1.1" 304 - 0.002 -
> 127.0.0.1 - - [18/Feb/2009:11:52:58 -0500] "GET
> /webMonster/com.i2s.webMonster.MsgExample.nocache.js HTTP/1.1" 304 - 0.005 -
> 127.0.0.1 - - [18/Feb/2009:11:52:58 -0500] "GET
> /webMonster/C57B680ED75187B43082D58F754F20DF.cache.html HTTP/1.1" 304 -
> 0.000 -
> 127.0.0.1 - - [18/Feb/2009:11:52:58 -0500] "GET
> /webMonster/gwt/standard/standard.css HTTP/1.1" 304 - 0.001 -
> 127.0.0.1 - - [18/Feb/2009:11:52:58 -0500] "GET /webMonster/MsgExample.css
> HTTP/1.1" 304 - 0.001 -
> 127.0.0.1 - - [18/Feb/2009:11:52:58 -0500] "GET
> /webMonster/C57B680ED75187B43082D58F754F20DF.cache.html HTTP/1.1" 304 -
> 0.000 -
> 127.0.0.1 - - [18/Feb/2009:11:52:58 -0500] "GET
> /webMonster/gwt/standard/images/hborder.png HTTP/1.1" 304 - 0.001 -
> 127.0.0.1 - - [18/Feb/2009:11:52:58 -0500] "POST /webMonster/MsgService
> HTTP/1.1" 404 1018 0.001 -
> 127.0.0.1 - - [18/Feb/2009:11:53:18 -0500] "GET /webMonster/MsgExample.html
> HTTP/1.1" 304 - 0.001 -
> 127.0.0.1 - - [18/Feb/2009:11:53:18 -0500] "GET
> /webMonster/com.i2s.webMonster.MsgExample.nocache.js HTTP/1.1" 304 - 0.001 -
> 127.0.0.1 - - [18/Feb/2009:11:53:18 -0500] "GET
> /webMonster/C57B680ED75187B43082D58F754F20DF.cache.html HTTP/1.1" 304 -
> 0.000 -
> 127.0.0.1 - - [18/Feb/2009:11:53:18 -0500] "GET
> /webMonster/gwt/standard/standard.css HTTP/1.1" 304 - 0.000 -
> 127.0.0.1 - - [18/Feb/2009:11:53:18 -0500] "GET /webMonster/MsgExample.css
> HTTP/1.1" 304 - 0.002 -
> 127.0.0.1 - - [18/Feb/2009:11:53:18 -0500] "GET
> /webMonster/C57B680ED75187B43082D58F754F20DF.cache.html HTTP/1.1" 304 -
> 0.001 -
> 127.0.0.1 - - [18/Feb/2009:11:53:18 -0500] "GET
> /webMonster/gwt/standard/images/hborder.png HTTP/1.1" 304 - 0.000 -
> 127.0.0.1 - - [18/Feb/2009:11:53:18 -0500] "POST /webMonster/MsgService
> HTTP/1.1" 404 1018 0.001 -
> 127.0.0.1 - - [18/Feb/2009:11:53:25 -0500] "GET /webMonster/MsgExample.html
> HTTP/1.1" 304 - 0.001 -
> 127.0.0.1 - - [18/Feb/2009:11:53:25 -0500] "GET
> /webMonster/com.i2s.webMonster.MsgExample.nocache.js HTTP/1.1" 304 - 0.000 -
> 127.0.0.1 - - [18/Feb/2009:11:53:25 -0500] "GET
> /webMonster/C57B680ED75187B43082D58F754F20DF.cache.html HTTP/1.1" 304 -
> 0.000 -
> 127.0.0.1 - - [18/Feb/2009:11:53:25 -0500] "GET
> /webMonster/gwt/standard/standard.css HTTP/1.1" 304 - 0.001 -
> 127.0.0.1 - - [18/Feb/2009:11:53:25 -0500] "GET /webMonster/MsgExample.css
> HTTP/1.1" 304 - 0.000 -
> 127.0.0.1 - - [18/Feb/2009:11:53:25 -0500] "GET
> /webMonster/gwt/standard/images/hborder.png HTTP/1.1" 304 - 0.001 -
> 127.0.0.1 - - [18/Feb/2009:11:53:25 -0500] "POST /webMonster/MsgService
> HTTP/1.1" 404 1018 0.001 -
> ---------snip-----------
> 
> 
> 
> Here is my httpd.conf
> 
> -----------snip
> 
> ProxyTimeout 1
> ProxyRequests Off
> ProxyPreserveHost On
> 
> ProxyPass / http://localhost:8080/webMonster/
> ProxyPassReverse / http://localhost:8080/webMonster/ 
> 
> <Proxy http://localhost:8080/webMonster>
> Order allow,deny 
> Allow from all
> </Proxy>
> 
> ----------- snip
> 
> 
> The only change I've made to server.xml is turning on access logs.
> 
> Attached are the source code and my WAR files.. I hope this is enough
> information to offer.
> 
> It seems like I've tried most of the suggestions, regarding paths.. I am
> obviously missing something?
> 
> Thanks in Advanced for your help!
> 
> -SCarlson
> 
> 
> http://www.nabble.com/file/p22084028/webMonster-src.zip webMonster-src.zip 
> http://www.nabble.com/file/p22084028/webMonster.war webMonster.war 
> 


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