You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by "Jim Marino (JIRA)" <tu...@ws.apache.org> on 2006/05/14 00:59:08 UTC

[jira] Assigned: (TUSCANY-367) Cannot stop/start a Tuscany app deployed as a web app

     [ http://issues.apache.org/jira/browse/TUSCANY-367?page=all ]

Jim Marino reassigned TUSCANY-367:
----------------------------------

    Assign To: Jim Marino

> Cannot stop/start a Tuscany app deployed as a web app
> -----------------------------------------------------
>
>          Key: TUSCANY-367
>          URL: http://issues.apache.org/jira/browse/TUSCANY-367
>      Project: Tuscany
>         Type: Bug

>   Components: Java SCA Core, Java SCA Tomcat Integration
>     Versions: Java-M1
>     Reporter: Jean-Sebastien Delfino
>     Assignee: Jim Marino
>     Priority: Blocker
>      Fix For: Java-M1

>
> This is a significant issue, pretty much blocking any basic use of Tuscany in a Tomcat environment (you will run into this as soon as you start to develop and test a Tuscany application in a Tomcat environment, as most application updates in this environment require or trigger an application restart).
> The scenario is very simple, the problem can be reproduced as folllows:
> - Deploy the sample-helloworldweb-SNAPSHOT.war module to Tomcat (copy it to the Tomcat webapps)
> - Start Tomcat
> - Stop the Web app
> You can use the Tomcat manager at http://localhost:8080/manager/html to do that
> By default the Tomcat manager is not enabled, to enable it you need to add the following to your Tomcat conf/tomcat-users.xml
> <user username="admin" password="tomcat" roles="tomcat,manager"/>
> - Try to start the Web app again
> The app cannot be started anymore. The Tomcat manager will show the following:
> FAIL - Application at context path /sample-helloworldweb-SNAPSHOT could not be started
> FAIL - Encountered exception org.apache.tuscany.core.context.DuplicateNameException: /sample-helloworldweb-SNAPSHOT
> The Tomcat logs will contain the following exception:
> SEVERE: FAIL - Application at context path /sample-helloworldweb-SNAPSHOT could not be started
> org.apache.tuscany.core.context.DuplicateNameException: /sample-helloworldweb-SNAPSHOT
>         at org.apache.tuscany.core.context.impl.AbstractCompositeContext.registerConfiguration(AbstractCompositeContext.java:489)
>         at org.apache.tuscany.core.context.impl.AbstractCompositeContext.registerModelObject(AbstractCompositeContext.java:446)
>         at org.apache.tuscany.tomcat.TuscanyContextListener.loadContext(TuscanyContextListener.java:125)
>         at org.apache.tuscany.tomcat.TuscanyContextListener.startContext(TuscanyContextListener.java:81)
>         at org.apache.tuscany.tomcat.TuscanyContextListener.lifecycleEvent(TuscanyContextListener.java:67)
>         at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
>         at org.apache.catalina.core.StandardContext.start(StandardContext.java:4182)
>         at org.apache.catalina.manager.ManagerServlet.start(ManagerServlet.java:1175)
>         at org.apache.catalina.manager.HTMLManagerServlet.start(HTMLManagerServlet.java:527)
>         at org.apache.catalina.manager.HTMLManagerServlet.doGet(HTMLManagerServlet.java:104)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
>         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
>         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
>         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
>         at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:524)
>         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
>         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
>         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
>         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
>         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
>         at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
>         at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
>         at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
>         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
>         at java.lang.Thread.run(Thread.java:595)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira