Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » scout » Problem after deploying to tomcat
Problem after deploying to tomcat [message #1121653] Mon, 30 September 2013 21:12 Go to next message
katie evans is currently offline katie evansFriend
Messages: 28
Registered: July 2012
Location: brisbane queensland austr...
Junior Member
Hello,

When I start my application in eclipse everything is fine. Once it also worked in Tomcat7, but for some reason it does not work any more. I always get an error. I made sure that tomcat is still fine, as i tried a tomcat6 on a different machine.

I'm not quite sure were to start debugging or having a look, as in eclipse is everything fine.

Kind regards Silvan.
  • Attachment: tomcat.png
    (Size: 26.21KB, Downloaded 73 times)
Re: Problem after deploying to tomcat [message #1121663 is a reply to message #1121653] Mon, 30 September 2013 21:27 Go to previous messageGo to next message
Matthias Otterbach is currently offline Matthias OtterbachFriend
Messages: 8
Registered: June 2013
Junior Member
A server error might have occured, does the attachment describe the client log output? Do you also have any server output (might be somewhere in the Tomcat log files)?
Re: Problem after deploying to tomcat [message #1122164 is a reply to message #1121663] Tue, 01 October 2013 09:33 Go to previous messageGo to next message
katie evans is currently offline katie evansFriend
Messages: 28
Registered: July 2012
Location: brisbane queensland austr...
Junior Member
Hello,

yes in the picture was what i could see as result of catalina log.

I had a look again into the log dir of the tomcat7. (It's a stock debian wheezy, so in /var/log/tomcat...) With a current date i basically have: catalina.out, catalina.2013-09-30.log, localhost.2013-09-30.log and localhost_access_log.2013-09-30.txt. In my understanding the server log should also go to catalina.out.

After I start restart the tomcat, I get one message that might be interesting, but I'm not sure if it is really important: Exception unloading sessions to persistent storage

INFO: Initialization processed in 2159 ms
30.09.2013 23:49:16 org.apache.catalina.core.StandardService startInternal
INFO: Starting service Catalina
30.09.2013 23:49:16 org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.28
30.09.2013 23:49:16 org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive /var/lib/tomcat7/webapps/crm.war
30.09.2013 23:49:17 org.apache.catalina.session.StandardManager doLoad
SCHWERWIEGEND: ClassNotFoundException while loading persisted sessions: java.lang.ClassNotFoundException: org.eclipse.rap.rwt.internal.lifecycle.RequestCounter
java.lang.ClassNotFoundException: org.eclipse.rap.rwt.internal.lifecycle.RequestCounter
        at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1711)
        at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1556)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:266)
        at org.apache.catalina.util.CustomObjectInputStream.resolveClass(CustomObjectInputStream.java:76)
        at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1609)
        at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1514)
        at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1768)
        at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1347)
        at java.io.ObjectInputStream.readObject(ObjectInputStream.java:369)
        at org.apache.catalina.session.StandardSession.readObject(StandardSession.java:1595)
        at org.apache.catalina.session.StandardSession.readObjectData(StandardSession.java:1060)
        at org.apache.catalina.session.StandardManager.doLoad(StandardManager.java:284)
        at org.apache.catalina.session.StandardManager.load(StandardManager.java:204)
        at org.apache.catalina.session.StandardManager.startInternal(StandardManager.java:491)
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
        at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5293)
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:899)
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:875)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:618)
        at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:963)
        at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1600)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
        at java.util.concurrent.FutureTask.run(FutureTask.java:166)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
        at java.lang.Thread.run(Thread.java:679)
30.09.2013 23:49:17 org.apache.catalina.session.StandardManager startInternal
SCHWERWIEGEND: Exception loading sessions from persistent storage
java.lang.ClassNotFoundException: org.eclipse.rap.rwt.internal.lifecycle.RequestCounter
        at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1711)
        at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1556)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:266)
        at org.apache.catalina.util.CustomObjectInputStream.resolveClass(CustomObjectInputStream.java:76)
        at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1609)
        at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1514)
        at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1768)
        at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1347)
        at java.io.ObjectInputStream.readObject(ObjectInputStream.java:369)
        at org.apache.catalina.session.StandardSession.readObject(StandardSession.java:1595)
        at org.apache.catalina.session.StandardSession.readObjectData(StandardSession.java:1060)
        at org.apache.catalina.session.StandardManager.doLoad(StandardManager.java:284)
        at org.apache.catalina.session.StandardManager.load(StandardManager.java:204)
        at org.apache.catalina.session.StandardManager.startInternal(StandardManager.java:491)
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
        at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5293)
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:899)
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:875)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:618)
        at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:963)
        at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1600)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
        at java.util.concurrent.FutureTask.run(FutureTask.java:166)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
        at java.lang.Thread.run(Thread.java:679)
30.09.2013 23:49:24 org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive /var/lib/tomcat7/webapps/crm_server.war
30.09.2013 23:49:25 org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory /var/lib/tomcat7/webapps/ROOT



I also had a look again into the config.ini for the production deploy:

### Eclipse Runtime Configuration File
osgi.noShutdown=true
eclipse.ignoreApp=false
eclipse.product=eu.wiznet.scout.crm.server.product
osgi.bundles=org.eclipse.equinox.common@2:start, org.eclipse.update.configurator@start, org.eclipse.equinox.http.servletbridge@start, org.eclipse.equinox.http.registry@start, org.eclipse.core.runtime@start, org.eclipse.scout.rt.server@start
osgi.bundles.defaultStartLevel=4

#eclipse.consoleLog=false
eclipse.consoleLog=true
org.eclipse.scout.log=eclipse
org.eclipse.scout.log.level=DEBUG
#org.eclipse.scout.log.level=WARNING


### RAP ajax back-end ws-security key
scout.ajax.token.key=1a84DowXuadg12jsadtqAiS6XE


### Validation
org.eclipse.scout.rt.server.validateInput=true


### Serialization
org.eclipse.scout.commons.serialization.bundleOrderPrefixes=eu.wiznet.scout.crm,org.eclipse.scout

### Service Runtime Configuration
org.eclipse.scout.rt.server.services.common.file.RemoteFileService#rootPath=/home/tw/workspace/eu.wiznet.scout.crm.server/j2ee/ear/war/WEB-INF/remotefiles


### Servlet Filter Runtime Configuration
org.eclipse.scout.http.servletfilter.security.BasicSecurityFilter#active=true
org.eclipse.scout.http.servletfilter.security.BasicSecurityFilter#realm=crm Development
org.eclipse.scout.http.servletfilter.security.BasicSecurityFilter#users=admin\=manager,aa\=aa,bb\=bb

org.eclipse.scout.http.servletfilter.security.AnonymousSecurityFilter#active=false

### Config of DB - Deploy
org.eclipse.scout.my.app.config.db.username=XXXXX
org.eclipse.scout.my.app.config.db.password=XXXXX
org.eclipse.scout.my.app.config.db.jdbc=jdbc:mysql://192.168.111.4/projectdb
Re: Problem after deploying to tomcat [message #1124353 is a reply to message #1122164] Thu, 03 October 2013 12:58 Go to previous message
Jeremie Bresson is currently offline Jeremie BressonFriend
Messages: 790
Registered: October 2011
Senior Member
This seems really strange...

Can you indicate your version of Eclipse Scout? (I know that there was a problem with Luna M1 and Rap, but I do not think that it looks like this).

Other question: are you sure you have deployed properly in Tomcat? To be sure:
* stop tomcat
* delete:
-> apache-tomcat-7.x/webapps/<your_app>.war
-> apache-tomcat-7.x/webapps/<your_app>/ (if you use the unpackWARs="true" config)
-> apache-tomcat-7.x/work/
* copy your new war (<your_app>.war) in the webapps folder.
* restart tomcat

Previous Topic:AbstractSqlStyle returns different data types in the same column
Next Topic:Accessing the Table Page from an Abstract Menu
Goto Forum:
  


Current Time: Mon Nov 24 01:37:21 GMT 2014

Powered by FUDForum. Page generated in 0.01833 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software