I think you've got some entries on your server's runtime classpath (in
WAR/WEB-INF/lib) which do not need to be there. gwt-user.jar should not be
there - gwt-servlet.jar should. Also, servlet-api-2.5.jar does not need to
be there either; that is provided by Tomcat.

On Wed, Jun 9, 2010 at 3:57 PM, fazie <[email protected]> wrote:

> Hi,
> I'm quite new in GWT.
> I built gwt app using Spring, Hibernate and GXT.
> It works fine in hosted mode (jetty), but when i build war (maven
> install) then war file is generated.
> WAR itsefl looks good, but when i navigate to deployed App in my
> browser pop-up is showed.
> "gwt module "my module" may need to be (re)compiled"
> When i start hosted mode simultanously and add "?
> gwt.codesvr=127.0.0.1:9997" to deployed app it works fine ...
> What I'm doing wrong ?
>
> I attache log from tomcat6 which I use to deploy war file.
> ########################### LOG TOMCAT
> ######################################
> 2010-06-09 21:54:59 org.apache.coyote.http11.Http11Protocol init
> INFO: Initializing Coyote HTTP/1.1 on http-8080
> 2010-06-09 21:54:59 org.apache.catalina.startup.Catalina load
> INFO: Initialization processed in 670 ms
> 2010-06-09 21:54:59 org.apache.catalina.core.StandardService start
> INFO: Starting service Catalina
> 2010-06-09 21:54:59 org.apache.catalina.core.StandardEngine start
> INFO: Starting Servlet Engine: Apache Tomcat/6.0.20
> 2010-06-09 21:54:59 org.apache.catalina.startup.HostConfig deployWAR
> INFO: Deploying web application archive tracks-0.0.3-SNAPSHOT.war
> 2010-06-09 21:54:59 org.apache.catalina.loader.WebappClassLoader
> validateJarFile
> INFO: validateJarFile(/var/lib/tomcat6/webapps/tracks-0.0.3-SNAPSHOT/
> WEB-INF/lib/gwt-user-2.0.3.jar) - jar not loaded. See Servlet Spec
> 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
> 2010-06-09 21:54:59 org.apache.catalina.loader.WebappClassLoader
> validateJarFile
> INFO: validateJarFile(/var/lib/tomcat6/webapps/tracks-0.0.3-SNAPSHOT/
> WEB-INF/lib/servlet-api-2.5.jar) - jar not loaded. See Servlet Spec
> 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
> 2010-06-09 21:54:59 org.springframework.web.context.ContextLoader
> initWebApplicationContext
> INFO: Root WebApplicationContext: initialization started
> 2010-06-09 21:55:00
> org.springframework.context.support.AbstractApplicationContext
> prepareRefresh
> INFO: Refreshing Root WebApplicationContext: startup date [Wed Jun 09
> 21:55:00 CEST 2010]; root of context hierarchy
> 2010-06-09 21:55:00
> org.springframework.beans.factory.xml.XmlBeanDefinitionReader
> loadBeanDefinitions
> INFO: Loading XML bean definitions from ServletContext resource [/WEB-
> INF/applicationContext.xml]
> 2010-06-09 21:55:00
> org.springframework.beans.factory.support.DefaultListableBeanFactory
> preInstantiateSingletons
> INFO: Pre-instantiating singletons in
> org.springframework.beans.factory.support.defaultlistablebeanfact...@2c35e
> :
> defining beans
>
> [org.springframework.context.annotation.internalConfigurationAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,dataSource,sessionFactory,ContractsService,ContractorsService,AddressesService,TrucksService,PersonsService];
> root of factory hierarchy
> 2010-06-09 21:55:00
> org.springframework.jdbc.datasource.DriverManagerDataSource
> setDriverClassName
> INFO: Loaded JDBC driver: com.mysql.jdbc.Driver
> 2010-06-09 21:55:01 org.hibernate.cfg.Environment <clinit>
> INFO: Hibernate 3.2.6
> 2010-06-09 21:55:01 org.hibernate.cfg.Environment <clinit>
> INFO: hibernate.properties not found
> 2010-06-09 21:55:01 org.hibernate.cfg.Environment <clinit>
> WARNING: could not copy system properties, system properties will be
> ignored
> 2010-06-09 21:55:01 org.hibernate.cfg.Environment
> buildBytecodeProvider
> INFO: Bytecode provider name : cglib
> 2010-06-09 21:55:01 org.hibernate.cfg.Environment <clinit>
> INFO: using JDK 1.4 java.sql.Timestamp handling
> 2010-06-09 21:55:01 org.hibernate.cfg.HbmBinder
> bindRootPersistentClassCommonValues
> INFO: Mapping class: mypackage.model.ContractDTO -> contracts
> 2010-06-09 21:55:01 org.hibernate.cfg.HbmBinder
> bindRootPersistentClassCommonValues
> INFO: Mapping class: mypackage.model.ContractorDTO -> contractors
> 2010-06-09 21:55:01 org.hibernate.cfg.HbmBinder
> bindRootPersistentClassCommonValues
> INFO: Mapping class: mypackage.model.AddressDTO -> addresses
> 2010-06-09 21:55:01 org.hibernate.cfg.HbmBinder
> bindRootPersistentClassCommonValues
> INFO: Mapping class: mypackage.model.PersonDTO -> persons
> 2010-06-09 21:55:01 org.hibernate.cfg.HbmBinder
> bindRootPersistentClassCommonValues
> INFO: Mapping class: mypackage.model.DriverDTO -> drivers
> 2010-06-09 21:55:01 org.hibernate.cfg.HbmBinder
> bindRootPersistentClassCommonValues
> INFO: Mapping class: mypackage.model.TruckDTO -> trucks
> 2010-06-09 21:55:01
> org.springframework.orm.hibernate3.LocalSessionFactoryBean
> buildSessionFactory
> INFO: Building new Hibernate SessionFactory
> 2010-06-09 21:55:01 org.hibernate.connection.ConnectionProviderFactory
> newConnectionProvider
> INFO: Initializing connection provider:
> org.springframework.orm.hibernate3.LocalDataSourceConnectionProvider
> 2010-06-09 21:55:02 org.hibernate.cfg.SettingsFactory buildSettings
> INFO: RDBMS: MySQL, version: 5.1.37-1ubuntu5.1
> 2010-06-09 21:55:02 org.hibernate.cfg.SettingsFactory buildSettings
> INFO: JDBC driver: MySQL-AB JDBC Driver, version: mysql-connector-
> java-5.1.9 ( Revision: ${svn.Revision} )
> 2010-06-09 21:55:02 org.hibernate.dialect.Dialect <init>
> INFO: Using dialect: org.hibernate.dialect.MySQLDialect
> 2010-06-09 21:55:02
> org.hibernate.tracksaction.TransactionFactoryFactory
> buildTransactionFactory
> INFO: Transaction strategy:
> org.springframework.orm.hibernate3.SpringTransactionFactory
> 2010-06-09 21:55:02
> org.hibernate.tracksaction.TransactionManagerLookupFactory
> getTransactionManagerLookup
> INFO: No TransactionManagerLookup configured (in JTA environment, use
> of read-write or tracksactional second-level cache is not recommended)
> 2010-06-09 21:55:02 org.hibernate.cfg.SettingsFactory buildSettings
> INFO: Automatic flush during beforeCompletion(): disabled
> 2010-06-09 21:55:02 org.hibernate.cfg.SettingsFactory buildSettings
> INFO: Automatic session close at end of tracksaction: disabled
> 2010-06-09 21:55:02 org.hibernate.cfg.SettingsFactory buildSettings
> INFO: JDBC batch size: 15
> 2010-06-09 21:55:02 org.hibernate.cfg.SettingsFactory buildSettings
> INFO: JDBC batch updates for versioned data: disabled
> 2010-06-09 21:55:02 org.hibernate.cfg.SettingsFactory buildSettings
> INFO: Scrollable result sets: enabled
> 2010-06-09 21:55:02 org.hibernate.cfg.SettingsFactory buildSettings
> INFO: JDBC3 getGeneratedKeys(): enabled
> 2010-06-09 21:55:02 org.hibernate.cfg.SettingsFactory buildSettings
> INFO: Connection release mode: auto
> 2010-06-09 21:55:02 org.hibernate.cfg.SettingsFactory buildSettings
> INFO: Maximum outer join fetch depth: 2
> 2010-06-09 21:55:02 org.hibernate.cfg.SettingsFactory buildSettings
> INFO: Default batch fetch size: 1
> 2010-06-09 21:55:02 org.hibernate.cfg.SettingsFactory buildSettings
> INFO: Generate SQL with comments: disabled
> 2010-06-09 21:55:02 org.hibernate.cfg.SettingsFactory buildSettings
> INFO: Order SQL updates by primary key: disabled
> 2010-06-09 21:55:02 org.hibernate.cfg.SettingsFactory buildSettings
> INFO: Order SQL inserts for batching: disabled
> 2010-06-09 21:55:02 org.hibernate.cfg.SettingsFactory
> createQueryTranslatorFactory
> INFO: Query trackslator:
> org.hibernate.hql.ast.ASTQueryTranslatorFactory
> 2010-06-09 21:55:02 org.hibernate.hql.ast.ASTQueryTranslatorFactory
> <init>
> INFO: Using ASTQueryTranslatorFactory
> 2010-06-09 21:55:02 org.hibernate.cfg.SettingsFactory buildSettings
> INFO: Query language substitutions: {}
> 2010-06-09 21:55:02 org.hibernate.cfg.SettingsFactory buildSettings
> INFO: JPA-QL strict compliance: disabled
> 2010-06-09 21:55:02 org.hibernate.cfg.SettingsFactory buildSettings
> INFO: Second-level cache: enabled
> 2010-06-09 21:55:02 org.hibernate.cfg.SettingsFactory buildSettings
> INFO: Query cache: disabled
> 2010-06-09 21:55:02 org.hibernate.cfg.SettingsFactory
> createCacheProvider
> INFO: Cache provider: org.hibernate.cache.NoCacheProvider
> 2010-06-09 21:55:02 org.hibernate.cfg.SettingsFactory buildSettings
> INFO: Optimize cache for minimal puts: disabled
> 2010-06-09 21:55:02 org.hibernate.cfg.SettingsFactory buildSettings
> INFO: Structured second-level cache entries: disabled
> 2010-06-09 21:55:02 org.hibernate.cfg.SettingsFactory buildSettings
> INFO: Echoing all SQL to stdout
> 2010-06-09 21:55:02 org.hibernate.cfg.SettingsFactory buildSettings
> INFO: Statistics: disabled
> 2010-06-09 21:55:02 org.hibernate.cfg.SettingsFactory buildSettings
> INFO: Deleted entity synthetic identifier rollback: disabled
> 2010-06-09 21:55:02 org.hibernate.cfg.SettingsFactory buildSettings
> INFO: Default entity-mode: pojo
> 2010-06-09 21:55:02 org.hibernate.cfg.SettingsFactory buildSettings
> INFO: Named query checking : enabled
> 2010-06-09 21:55:02 org.hibernate.impl.SessionFactoryImpl <init>
> INFO: building session factory
> 2010-06-09 21:55:03 org.hibernate.impl.SessionFactoryObjectFactory
> addInstance
> INFO: Not binding factory to JNDI, no JNDI name configured
> 2010-06-09 21:55:03 org.springframework.web.context.ContextLoader
> initWebApplicationContext
> INFO: Root WebApplicationContext: initialization completed in 3238 ms
> 2010-06-09 21:55:03 org.apache.coyote.http11.Http11Protocol start
> INFO: Starting Coyote HTTP/1.1 on http-8080
> 2010-06-09 21:55:03 org.apache.catalina.startup.Catalina start
> INFO: Server startup in 4043 ms
> ########################### END LOG TOMCAT
> #################################
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<google-web-toolkit%[email protected]>
> .
> 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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to