You need to set Tomcat for UCL (Unified Class Loading).

Package your struts jar files in the WAR, and NOT in the Tomcat server 
classpath.

I have apps running in the same container with different versions of struts.

--
Sincerely,
David Webb, President
BrightMove, Inc. 
http://www.brightmove.com
320 High Tide Dr, Suite 101B
Saint Augustine Beach, FL 32080
(904) 861-2396
(866) 895-6299 (Fax)


-----Original Message-----
From: Wes Wannemacher [mailto:w...@wantii.com] 
Sent: Friday, August 14, 2009 11:37 AM
To: Struts Users Mailing List
Subject: Re: Impossible to start two Struts 2 apps at the same time on Tomcat 6

Just curious, where are the struts-*.jar files? I vaguely remember a
classloader issue if you are trying to put the jars in one of Tomcat's
shared jar folders.

-Wes

On Fri, Aug 14, 2009 at 11:00 AM, HENRY Pierre<pierre.he...@unine.ch> wrote:
> Hi,
>
> I have 2 separate Struts 2 webapps, based both on Struts 2.1.6.
>
> Both webapps work fine when deployed separately on Tomcat 6.0.18. But when I 
> deploy both at the same time on the same Tomcat, one is working (the first 
> one alphabetically) and the seconds doesn’t start up, it gives me the 
> infamous  ‘SEVERE : error filterStart’ in the logs, and not much more 
> meaningful information as to why it’s crashing. (I set the log level to DEBUG 
> for the struts2 and xworks2 packages in log4j).
>
> If I comment out the struts 2 filter and filter mapping segments in the 
> web.xml of the second webapp, then the webapp starts without error (but of 
> course it doesn’t work), that’s why I think the problem is related to having 
> 2 Struts 2 webapps together.
>
> Thanks for any advice. I would like to at least have a stack trace…
>
> My config :
> Vista 64
> Tomcat 6.0.18
> Struts 2.1.6
> Besides that my apps also use Hibernate, Quartz, Tiles…
>
> Pierre
>
>
>
> The log of Tomcat’s startup :
>
> Listening for transport dt_socket at address: 8888
> 14 ao¹t 2009 15:53:14 org.apache.catalina.core.AprLifecycleListener init
> INFO: The APR based Apache Tomcat Native library which allows optimal 
> performance in production environments was not fou
> nd on the java.library.path: c:\Program Files 
> (x86)\Java\jdk1.6.0_13\bin;.;C:\Windows\Sun\Java\bin;C:\Windows\system32;C
> :\Windows;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Program 
> Files\Intel\DMIX;C:\Program Files (x86)\Com
> mon Files\Roxio Shared\DLLShared;C:\Program Files (x86)\Common Files\Roxio 
> Shared\DLLShared;C:\Program Files (x86)\Commo
> n Files\Roxio 
> Shared\9.0\DLLShared;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Program 
> Files (x86)\WinSCP\;C:\Program
> Files\SlikSvn\bin\;C:\Program Files\TortoiseSVN\bin;C:\Program Files 
> (x86)\CVSNT\
> 14 ao¹t 2009 15:53:14 org.apache.coyote.http11.Http11Protocol init
> INFO: Initialisation de Coyote HTTP/1.1 sur http-8080
> 14 ao¹t 2009 15:53:14 org.apache.catalina.startup.Catalina load
> INFO: Initialization processed in 319 ms
> 14 ao¹t 2009 15:53:15 org.apache.catalina.core.StandardService start
> INFO: D´┐¢marrage du service Catalina
> 14 ao¹t 2009 15:53:15 org.apache.catalina.core.StandardEngine start
> INFO: Starting Servlet Engine: Apache Tomcat/6.0.18
> 15:53:15,755 - [thread:main] 
> org.apache.tiles.context.ChainedTilesApplicationContextFactory.init()
> WARN:'Cannot find TilesContextFactory class 
> org.apache.tiles.portlet.context.PortletTilesApplicationContextFactory'
> 15:53:15,760 - [thread:main] 
> org.apache.tiles.context.ChainedTilesApplicationContextFactory.init()
> WARN:'Cannot find TilesContextFactory class 
> org.apache.tiles.portlet.context.PortletTilesApplicationContextFactory'
> 15:53:15,793 - [thread:main] 
> org.apache.tiles.context.ChainedTilesApplicationContextFactory.init()
> WARN:'Cannot find TilesContextFactory class 
> org.apache.tiles.portlet.context.PortletTilesApplicationContextFactory'
> 15:53:15,796 - [thread:main] 
> org.apache.tiles.context.ChainedTilesRequestContextFactory.init()
> WARN:'Cannot find TilesRequestContextFactory class 
> org.apache.tiles.portlet.context.PortletTilesRequestContextFactory'
> 15:53:16,569 - [thread:main] 
> ch.unine.sitel.bipeadmin.hibernate.HibernateSessionInterceptor.init()
> INFO:'Initializing filter...'
> 15:53:16,569 - [thread:main] 
> ch.unine.sitel.bipeadmin.hibernate.HibernateSessionInterceptor.init()
> INFO:'Obtaining SessionFactory from static HibernateUtil singleton'
> 15:53:19,482 - [thread:main] 
> ch.unine.sitel.bipeadmin.hibernate.HibernateUtil.<clinit>()
> DEBUG:'Hibernate session factory created.'
> 15:53:19,502 - [thread:main] 
> ch.unine.sitel.bipeadmin.struts.security.SecurityInterceptor.init()
> INFO:'Intializing the securityInterceptor.'
> 15:53:19,506 - [thread:main] 
> ch.unine.sitel.bipeadmin.services.SecurityService.reloadFile()
> INFO:'Reloading permissions.xml file because it has changed.'
> 15:53:20,602 - [thread:main] 
> org.apache.tiles.context.ChainedTilesApplicationContextFactory.init()
> WARN:'Cannot find TilesContextFactory class 
> org.apache.tiles.portlet.context.PortletTilesApplicationContextFactory'
> 15:53:20,610 - [thread:main] 
> org.apache.tiles.context.ChainedTilesApplicationContextFactory.init()
> WARN:'Cannot find TilesContextFactory class 
> org.apache.tiles.portlet.context.PortletTilesApplicationContextFactory'
> 15:53:20,649 - [thread:main] 
> org.apache.tiles.context.ChainedTilesApplicationContextFactory.init()
> WARN:'Cannot find TilesContextFactory class 
> org.apache.tiles.portlet.context.PortletTilesApplicationContextFactory'
> 15:53:20,653 - [thread:main] 
> org.apache.tiles.context.ChainedTilesRequestContextFactory.init()
> WARN:'Cannot find TilesRequestContextFactory class 
> org.apache.tiles.portlet.context.PortletTilesRequestContextFactory'
> 15:53:20,727 - [thread:main] 
> ch.unine.sitel.bipemailing.jobs.QuartzStartContextListener.contextInitialized()
> INFO:'QuartzStartContextListener is starting Quartz jobs...'
> 14 ao¹t 2009 15:53:20 ch.unine.sitel.bipemailing.jobs.QuartzUtils getQuartz
> INFO: Starting the Quartz scheduler and save its instance
> 15:53:20,847 - [thread:main] 
> ch.unine.sitel.bipemailing.jobs.QuartzStartContextListener.startFonctionsMonitoringJob()
> INFO:'Scheduling FonctionsMonitoringJob using cron pattern '0 * * * * ?'...'
> 15:53:20,927 - [thread:main] 
> com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.debug()
> DEBUG:'Loading action configurations from: struts-default.xml'
> 14 ao¹t 2009 15:53:20 org.apache.catalina.core.StandardContext start
> GRAVE: Error filterStart
> 14 ao¹t 2009 15:53:20 org.apache.catalina.core.StandardContext start
> GRAVE: Erreur de d´┐¢marrage du contexte [/BIPE-Mailing] suite aux erreurs 
> pr´┐¢c´┐¢dentes
> 14 ao¹t 2009 15:53:21 org.apache.coyote.http11.Http11Protocol start
> INFO: D´┐¢marrage de Coyote HTTP/1.1 sur http-8080
> 14 ao¹t 2009 15:53:21 org.apache.jk.common.ChannelSocket init
> INFO: JK: ajp13 listening on /0.0.0.0:8009
> 14 ao¹t 2009 15:53:21 org.apache.jk.server.JkMain start
> INFO: Jk running ID=0 time=1/27  config=null
> 14 ao¹t 2009 15:53:21 org.apache.catalina.startup.Catalina start
> INFO: Server startup in 6390 ms
>
>
> Pierre Henry
> Software Engineer
> -------------------------------------------------
> pierre.he...@unine.ch
> +41 32 718 20 45
> -------------------------------------------------
> Université de Neuchâtel
> Service Informatique et Télématique
> Rue Emile-Argand 11
> Case postale 158
> CH-2009 Neuchâtel
>
>



-- 
Wes Wannemacher

Head Engineer, WanTii, Inc.
Need Training? Struts, Spring, Maven, Tomcat...
Ask me for a quote!

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org

Reply via email to