tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pradeep Fernando <pradee...@gmail.com>
Subject configuring org.apache.catalina.startup.Tomcat using server.xml
Date Mon, 30 Jan 2012 18:18:54 GMT
Hi all,

I wanted to do the $subject. For that I extended the existing Tomcat
class and added a configure step. Within the configure method i
created a digester to configure my embedded tomcat instance.

looks like things are getting configured. But when i call start method
on Tomcat, it gives some errors related to connectors. These are the
connectors http & https that i configured using the server.xml.

what is happening here. Looks like an illegal state. What should i do
to rectify this. Suggestions, code-pointers welcome.


30 Jan, 2012 11:33:59 PM org.apache.catalina.core.StandardService startInternal
SEVERE: Failed to start connector [Connector[HTTP_11_NIO-9467]]
org.apache.catalina.LifecycleException: An invalid Lifecycle
transition was attempted ([before_start]) for component
[Connector[HTTP_11_NIO-9467]] in state [INITIALIZING]
	at org.apache.catalina.util.LifecycleBase.invalidTransition(LifecycleBase.java:386)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:139)
	at org.apache.catalina.core.StandardService.startInternal(StandardService.java:459)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
	at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:727)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
	at org.wso2.carbon.tomcat.internal.CarbonTomcat.start(CarbonTomcat.java:38)
	at org.wso2.carbon.tomcat.server.ServerManager$1.run(ServerManager.java:81)
	at java.lang.Thread.run(Thread.java:619)
30 Jan, 2012 11:33:59 PM org.apache.catalina.core.StandardService startInternal
SEVERE: Failed to start connector [Connector[HTTPS_11_NIO-9443]]
org.apache.catalina.LifecycleException: An invalid Lifecycle
transition was attempted ([before_start]) for component
[Connector[HTTPS_11_NIO-9443]] in state [INITIALIZING]
	at org.apache.catalina.util.LifecycleBase.invalidTransition(LifecycleBase.java:386)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:139)
	at org.apache.catalina.core.StandardService.startInternal(StandardService.java:459)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
	at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:727)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
	at org.wso2.carbon.tomcat.internal.CarbonTomcat.start(CarbonTomcat.java:38)
	at org.wso2.carbon.tomcat.server.ServerManager$1.run(ServerManager.java:81)
	at java.lang.Thread.run(Thread.java:619)


thanks,
--Pradeep

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


Mime
View raw message