Are you working with tomcat inside eclipse?

2011/8/11 Henkie <iits.hen...@gmail.com>

> My GWT rpc message works well in development mode, but has the
> following behaviour when deployed in Tomcat:
>
> - The call DOES go through to the server_ I can see from the log files
> and the database insert happens successfully.
> - But the callback methods in my JavaScript is never executed. It is
> as if the response message back got stuck or loss.
>
> There is NO error message in the Tomcat logs. See below.
> I've disabled the Windows firewall to make sure it is not that. Double
> checked the jars deployed.
>
> How do I debug this? I'm STUCK - please help.
> Remember this is working in eclipse....not in Tomcat.
> I'm using GWT 2.3 and Smart GWT 2.5 - this call is a GWT RPC call  -
> here's the code:
>
> @RemoteServiceRelativePath("miscService")
> public interface MiscService extends RemoteService {
>  UserSessionDto beginUserSession(String token) throws
> BookAServiceException;
> }
>
> public interface MiscServiceAsync {
>  void beginUserSession(String token, AsyncCallback<UserSessionDto>
> callback);
> }
>
> public class MiscServiceImpl extends RemoteServiceServlet implements
> MiscService {
>  public UserDetailDto userLogin(String email, String password, String
> sessionId) throws BookAServiceException {
>    UserDetailDto userDetailDto = null;
>    try {
>      .....
>    } catch (Throwable e) {
>      throw new BookAServiceException(e);
>    }
>    return userDetailDto;
>  }
> }
>
> ================================================================
> Tomcat logs:
> ================================================================
> Aug 11, 2011 3:25:52 PM org.apache.catalina.core.AprLifecycleListener
> init
> INFO: Loaded APR based Apache Tomcat Native library 1.1.20.
> Aug 11, 2011 3:25:52 PM org.apache.catalina.core.AprLifecycleListener
> init
> INFO: APR capabilities: IPv6 [true], sendfile [true], accept filters
> [false], random [true].
> Aug 11, 2011 3:25:52 PM org.apache.coyote.AbstractProtocolHandler init
> INFO: Initializing ProtocolHandler ["http-apr-8080"]
> Aug 11, 2011 3:25:52 PM org.apache.coyote.AbstractProtocolHandler init
> INFO: Initializing ProtocolHandler ["ajp-apr-8009"]
> Aug 11, 2011 3:25:52 PM org.apache.catalina.startup.Catalina load
> INFO: Initialization processed in 789 ms
> Aug 11, 2011 3:25:52 PM org.apache.catalina.core.StandardService
> startInternal
> INFO: Starting service Catalina
> Aug 11, 2011 3:25:52 PM org.apache.catalina.core.StandardEngine
> startInternal
> INFO: Starting Servlet Engine: Apache Tomcat/7.0.6
> Aug 11, 2011 3:25:52 PM org.apache.catalina.startup.HostConfig
> deployWAR
> INFO: Deploying web application archive BookAService.war
> === 2011-08-11 15:25:59,241 [ad-2] INFO  DispatcherServlet -
> FrameworkServlet 'bookaservice': initialization started
> === 2011-08-11 15:25:59,304 [ad-2] INFO  XmlWebApplicationContext -
> Refreshing
> org.springframework.web.context.support.XmlWebApplicationContext@746a63d3:
> display name [WebApplicationContext for namespace 'bookaservice-
> servlet']; startup date [Thu Aug 11 15:25:59 CAT 2011]; root of
> context hierarchy
> === 2011-08-11 15:25:59,366 [ad-2] INFO  XmlBeanDefinitionReader -
> Loading XML bean definitions from ServletContext resource [/WEB-INF/
> bookaservice-servlet.xml]
> === 2011-08-11 15:25:59,444 [ad-2] INFO  XmlWebApplicationContext -
> Bean factory for application context
> [org.springframework.web.context.support.XmlWebApplicationContext@746a63d3
> ]:
>
> org.springframework.beans.factory.support.DefaultListableBeanFactory@538eb7b8
> === 2011-08-11 15:25:59,475 [ad-2] INFO  DefaultListableBeanFactory -
> Pre-instantiating singletons in
>
> org.springframework.beans.factory.support.DefaultListableBeanFactory@538eb7b8
> :
> defining beans [urlMapping,hibernateOperationsController]; root of
> factory hierarchy
> === 2011-08-11 15:25:59,522 [ad-2] INFO  DispatcherServlet -
> FrameworkServlet 'bookaservice': initialization completed in 234 ms
> ISC: Configuring log4j from: file:/C:/Dev/apache-tomcat-7.0.6/webapps/
> BookAService/WEB-INF/classes/log4j.isc.config.xml
> === 2011-08-11 15:25:59,538 [ad-2] INFO  ISCInit - Isomorphic
> SmartClient Framework - Initializing
> === 2011-08-11 15:25:59,553 [ad-2] INFO  ConfigLoader - Attempting to
> load framework.properties from CLASSPATH
> === 2011-08-11 15:25:59,662 [ad-2] INFO  ConfigLoader - Successfully
> loaded framework.properties from CLASSPATH at location: jar:file:/C:/
> Dev/apache-tomcat-7.0.6/webapps/BookAService/WEB-INF/lib/
> isomorphic_core_rpc.jar!/framework.properties
> === 2011-08-11 15:25:59,662 [ad-2] INFO  ConfigLoader - Attempting to
> load project.properties from CLASSPATH
> === 2011-08-11 15:25:59,662 [ad-2] INFO  ConfigLoader - Unable to
> locate project.properties in CLASSPATH
> === 2011-08-11 15:25:59,678 [ad-2] INFO  ConfigLoader - Successfully
> loaded isc_interfaces.properties from CLASSPATH at location: jar:file:/
> C:/Dev/apache-tomcat-7.0.6/webapps/BookAService/WEB-INF/lib/
> isomorphic_core_rpc.jar!/isc_interfaces.properties
> === 2011-08-11 15:25:59,678 [ad-2] INFO  ConfigLoader - Attempting to
> load server.properties from CLASSPATH
> === 2011-08-11 15:25:59,678 [ad-2] INFO  ConfigLoader - Successfully
> loaded server.properties from CLASSPATH at location: file:/C:/Dev/
> apache-tomcat-7.0.6/webapps/BookAService/WEB-INF/classes/
> server.properties
> === 2011-08-11 15:25:59,678 [ad-2] INFO  Logger - Logging system
> started.
> === 2011-08-11 15:25:59,678 [ad-2] INFO  ISCInit - Isomorphic
> SmartClient Framework (SC_SNAPSHOT-2011-08-02/Pro Deployment
> 2011-08-02) - Initialization Complete
> === 2011-08-11 15:25:59,678 [ad-2] INFO  ISCInit - Auto-detected
> webRoot - using: C:\Dev\apache-tomcat-7.0.6\webapps\BookAService
> === 2011-08-11 15:25:59,694 [ad-2] INFO  PreCache - Isomorphic
> PreCache servlet loading
> === 2011-08-11 15:25:59,709 [ad-2] INFO  PoolManager - SmartClient
> pooling disabled for 'DataSource' objects
> === 2011-08-11 15:26:00,068 [ad-2] INFO  PreCache - Isomorphic
> PreCache complete (374ms)
> Aug 11, 2011 3:26:00 PM org.apache.catalina.startup.HostConfig
> deployDirectory
> INFO: Deploying web application directory docs
> Aug 11, 2011 3:26:00 PM org.apache.catalina.startup.HostConfig
> deployDirectory
> INFO: Deploying web application directory examples
> Aug 11, 2011 3:26:00 PM org.apache.catalina.startup.HostConfig
> deployDirectory
> INFO: Deploying web application directory host-manager
> Aug 11, 2011 3:26:00 PM org.apache.catalina.startup.HostConfig
> deployDirectory
> INFO: Deploying web application directory manager
> Aug 11, 2011 3:26:00 PM org.apache.catalina.startup.HostConfig
> deployDirectory
> INFO: Deploying web application directory ROOT
> Aug 11, 2011 3:26:00 PM org.apache.coyote.AbstractProtocolHandler
> start
> INFO: Starting ProtocolHandler ["http-apr-8080"]
> Aug 11, 2011 3:26:00 PM org.apache.coyote.AbstractProtocolHandler
> start
> INFO: Starting ProtocolHandler ["ajp-apr-8009"]
> Aug 11, 2011 3:26:00 PM org.apache.catalina.startup.Catalina start
> INFO: Server startup in 7935 ms
> === 2011-08-11 15:26:53,748 [ec-9] INFO  RequestContext - URL: '/
> BookAService/bookaservice/sc/skins/Enterprise/load_skin.js', User-
> Agent: 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:5.0) Gecko/20100101
> Firefox/5.0': Moz (Gecko) with Accept-Encoding header
> === 2011-08-11 15:26:53,748 [ec-9] INFO  Download - done streaming: C:/
> Dev/apache-tomcat-7.0.6/webapps/BookAService/bookaservice/sc/skins/
> Enterprise/load_skin.js
> === 2011-08-11 15:26:55,074 [ec-1] INFO  RequestContext - URL: '/
> BookAService/bookaservice/sc/skins/Enterprise/skin_styles.css', User-
> Agent: 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:5.0) Gecko/20100101
> Firefox/5.0': Moz (Gecko) with Accept-Encoding header
> === 2011-08-11 15:26:55,074 [ec-1] INFO  Download - done streaming: C:/
> Dev/apache-tomcat-7.0.6/webapps/BookAService/bookaservice/sc/skins/
> Enterprise/skin_styles.css
> Hibernate: /* named native SQL query UserSessionStartSpi */ { call
> USER_SESSION_START_SPI(?, ?) }
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to