tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gilberto C Andrade (JIRA)" <j...@apache.org>
Subject [jira] [Issue Comment Deleted] (MTOMCAT-205) Two executions of the tomcat7 plugin in the same build makes the JNDI context of the second execution fail
Date Mon, 03 Jun 2013 21:36:21 GMT

     [ https://issues.apache.org/jira/browse/MTOMCAT-205?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Gilberto C Andrade updated MTOMCAT-205:
---------------------------------------

    Comment: was deleted

(was: I don't know if has relation, but I'm having this problem(running in embedded mode)
with tomcat7(seven) and NOT with tomcat6(six):

[CODE]
INFO: Creation of SecureRandom instance for session ID generation using [SHA1PRNG] took [290]
milliseconds.
16:30:45,707 [localhost-startStop-1] INFO   ActionServlet : Loading chain catalog from jar:file:/home/gilberto.andrade/.m2/repository/org/apache/struts/struts-core/1.3.10/struts-core-1.3.10.jar!/org/apache/struts/chain/chain-config.xml
16:30:45,907 [localhost-startStop-1] INFO   TilesPlugin : Tiles definition factory loaded
for module ''.
16:30:45,909 [localhost-startStop-1] INFO   ValidatorPlugIn : Loading validation rules file
from '/WEB-INF/validator-rules.xml'
16:30:45,910 [localhost-startStop-1] INFO   ValidatorPlugIn : Loading validation rules file
from '/WEB-INF/validation.xml'
Abr 18, 2013 4:30:45 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-bio-8080"]
Nao foi possivel abrir a conex�o: javax.naming.NameNotFoundException: Name [portal] is not
bound in this Context. Unable to find [portal].

[/CODE])
    
> Two executions of the tomcat7 plugin in the same build makes the JNDI context of the
second execution fail
> ----------------------------------------------------------------------------------------------------------
>
>                 Key: MTOMCAT-205
>                 URL: https://issues.apache.org/jira/browse/MTOMCAT-205
>             Project: Apache Tomcat Maven Plugin
>          Issue Type: Bug
>          Components: tomcat7
>    Affects Versions: 2.0
>         Environment: windows 7, maven 2.2.1
>            Reporter: Laurent Van Basselaere
>            Assignee: Olivier Lamy (*$^¨%`£)
>         Attachments: MTOMCAT-205.zip
>
>
> When starting only one instance of a tomcat7 server with the run-war-only mojo, it works.
> If I start more than one server (necessary in our project as our integration tests include
interaction between several deployments of the app with various configurations), all servers
after the first one fail to deploy with a jndi lookup error:
> javax.naming.NameNotFoundException: Name [comp/env/jms/ConnectionFactory] is not bound
in this Context. Unable to find [comp].
> 	org.apache.naming.NamingContext.lookup(NamingContext.java:820)
> 	org.apache.naming.NamingContext.lookup(NamingContext.java:168)
> 	org.apache.naming.SelectorContext.lookup(SelectorContext.java:158)
> 	javax.naming.InitialContext.lookup(InitialContext.java:392)
> 	org.springframework.jndi.JndiTemplate$1.doInContext(JndiTemplate.java:154)
> 	org.springframework.jndi.JndiTemplate.execute(JndiTemplate.java:87)
> 	org.springframework.jndi.JndiTemplate.lookup(JndiTemplate.java:152)
> 	org.springframework.jndi.JndiTemplate.lookup(JndiTemplate.java:178)
> 	org.springframework.jndi.JndiLocatorSupport.lookup(JndiLocatorSupport.java:95)
> 	org.springframework.jndi.JndiObjectLocator.lookup(JndiObjectLocator.java:105)
> 	org.springframework.jndi.JndiObjectTargetSource.afterPropertiesSet(JndiObjectTargetSource.java:97)
> 	org.springframework.jndi.JndiObjectFactoryBean$JndiObjectProxyFactory.createJndiObjectProxy(JndiObjectFactoryBean.java:285)
> 	org.springframework.jndi.JndiObjectFactoryBean$JndiObjectProxyFactory.access$0(JndiObjectFactoryBean.java:276)
> 	org.springframework.jndi.JndiObjectFactoryBean.afterPropertiesSet(JndiObjectFactoryBean.java:177)
> 	org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1479)
> 	org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1419)
> 	org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:518)
> 	org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:455)
> 	org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:293)
> 	org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
> 	org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:290)
> 	org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:192)
> 	org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:567)
> 	org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)
> 	org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425)
> 	org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:467)
> 	org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:483)
> 	org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:358)
> 	org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:325)
> 	org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:127)
> 	javax.servlet.GenericServlet.init(GenericServlet.java:160)
> 	org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
> 	org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
> 	org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:929)
> 	org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
> 	org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1002)
> 	org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:585)
> 	org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:310)
> 	java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
> 	java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
> 	java.lang.Thread.run(Thread.java:662)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message