Problems deploying to Tomcat [message #1714249] |
Wed, 11 November 2015 05:58  |
Christian Ramirez Messages: 10 Registered: April 2015 |
Junior Member |
|
|
Hi there,
I intend to deploy Stardust on a production server (centos), but first I'm trying to get it working on a OS X, this is my basic configuration:
Tomcat 7.0.59
MySQL 5.1.44
I've set up the carnot.properties for MySQL, here it is:
--------------------------------------------------------
#-------------------------------------------------------------------------------
# EJB and JNDI usage
#-------------------------------------------------------------------------------
Web.ServiceFactory = org.eclipse.stardust.engine.api.spring.SpringServiceFactory
#Client.ServiceFactory = org.eclipse.stardust.engine.api.spring.SpringServiceFactory
Client.ServiceFactory = org.eclipse.stardust.engine.api.ejb2.RemoteServiceFactory
Carnot.Spring.ApplicationContextFile = carnot-spring-context.xml
Carnot.Configuration.UseDocumentRepository = true
#-------------------------------------------------------------------------------
# Audit Trail Database Settings (used in POJO mode and by the sysconsole tool)
#-------------------------------------------------------------------------------
AuditTrail.DataSource = AuditTrail.DataSource
AuditTrail.Type = MYSQL
#AuditTrail.URL = jdbc:derby://localhost:1527/ipp
AuditTrail.URL = jdbc:mysql://localhost:3306/carnot
AuditTrail.User = root
AuditTrail.Password =
AuditTrail.Schema =
AuditTrail.UseLockTables = false
AuditTrail.UsePreparedStatements = false
AuditTrail.FixAutoCommit = true
#AuditTrail.XaDataSourceClass = org.apache.derby.jdbc.ClientXADataSource
AuditTrail.XaDataSourceClass = com.mysql.jdbc.jdbc2.optional.MysqlXADataSource
AuditTrail.Instance = carnot
AuditTrail.Port = 3306
AuditTrail.Host = localhost
---------------------------
Still I get these errors in the catalina.2015-11-10.log:
-------------------------------
Nov 10, 2015 10:53:12 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory /Users/norhel/Documents/apache/apache-tomcat-7.0.59/webapps/ipp-portal
Nov 10, 2015 10:53:32 PM org.apache.catalina.core.StandardContext addApplicationListener
INFO: The listener "com.icesoft.faces.util.event.servlet.ContextEventRepeater" is already configured for this context. The duplicate definition has been ignored.
Nov 10, 2015 10:53:32 PM org.apache.catalina.core.StandardContext addApplicationListener
INFO: The listener "org.apache.myfaces.webapp.StartupServletContextListener" is already configured for this context. The duplicate definition has been ignored.
Nov 10, 2015 10:53:43 PM org.apache.catalina.core.StandardContext startInternal
SEVERE: Error listenerStart
Nov 10, 2015 10:53:43 PM org.apache.catalina.core.StandardContext startInternal
SEVERE: Context [/ipp-portal] startup failed due to previous errors
Nov 10, 2015 10:53:44 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/ipp-portal] appears to have started a thread named [RetryTimer] but has failed to stop it. This is very likely to create a memory leak.
Nov 10, 2015 10:53:44 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/ipp-portal] appears to have started a thread named [PoolIdleReleaseTimer] but has failed to stop it. This is very likely to create a memory leak.
Nov 10, 2015 10:53:44 PM org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks
SEVERE: The web application [/ipp-portal] created a ThreadLocal with key of type [org.eclipse.stardust.engine.core.runtime.beans.interceptors.DebugInterceptor.ThreadLocalSqlTimeRecorder] (value [org.eclipse.stardust.engine.core.runtime.beans.interceptors.DebugInterceptor$ThreadLocalSqlTimeRecorder@76de839e]) and a value of type [org.eclipse.stardust.engine.core.runtime.beans.interceptors.DebugInterceptor.RecorderData] (value [org.eclipse.stardust.engine.core.runtime.beans.interceptors.DebugInterceptor$RecorderData@a93370a]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.
Nov 10, 2015 10:53:44 PM org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks
SEVERE: The web application [/ipp-portal] created a ThreadLocal with key of type [java.lang.ThreadLocal] (value [java.lang.ThreadLocal@470276f2]) and a value of type [org.eclipse.stardust.common.config.ParametersFacade] (value [org.eclipse.stardust.common.config.ParametersFacade@72cf2e49]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.
Nov 10, 2015 10:53:44 PM org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks
SEVERE: The web application [/ipp-portal] created a ThreadLocal with key of type [com.sun.xml.bind.v2.ClassFactory$1] (value [com.sun.xml.bind.v2.ClassFactory$1@55a729c1]) and a value of type [java.util.WeakHashMap] (value [{class javax.xml.bind.annotation.adapters.CollapsedStringAdapter=java.lang.ref.WeakReference@51a669d5, class org.apache.camel.spring.CamelContextFactoryBean=java.lang.ref.WeakReference@46e48d4}]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.
Nov 10, 2015 10:53:44 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deployment of web application directory /Users/norhel/Documents/apache/apache-tomcat-7.0.59/webapps/ipp-portal has finished in 32,075 ms
-----------------------------------
Thank you.
|
|
|
|
|
|
|
|
|
|
|
Re: Problems deploying to Tomcat [message #1715448 is a reply to message #1715369] |
Mon, 23 November 2015 16:47  |
Christian Ramirez Messages: 10 Registered: April 2015 |
Junior Member |
|
|
Thank you very much Tanmoy, actually before you posted, I try to post my new findings, but the forum form threw an error. So here I go again.
I had to regenerate via maven the sysconsole in order to get version 2. I changed these two parameters:
DarchetypeVersion=2.0.0 and Dversion=2.0-SNAPSHOT
Then I was able to upgrade my Audit Trail schema (which I had already tweaked by hand to had it working with mysql 5.6, changing things like type=innodb to engine=innodb, and changing reserved words such as partition, code, source, etc. to 'partition','code', 'source', etc)
I think this info should be updated on the maven basic setup page (https://wiki.eclipse.org/Stardust/Knowledge_Base/Build_and_Change_Management/Maven/Basic_Setup), so that anyone who is new to Stardust could be able to get it working.
Hope this helps someone else.
Thank you.
Christian Ramirez
|
|
|
Powered by
FUDForum. Page generated in 0.01998 seconds