tomcat - Unable to deploy Jenkins inside tomcat7 with Engine's non defaultHost -
i using ec2, deploy jenkins war file inside tomcat7 , access jenkins ec2's ip.
here excerpt of tomcat7 server.xml configuration:
<engine name="catalina" defaulthost="example.com"> <realm classname="org.apache.catalina.realm.lockoutrealm"> <realm classname="org.apache.catalina.realm.userdatabaserealm" resourcename="userdatabase"/> </realm> <host name="test.example.com" appbase="hosts/hktest" unpackwars="true" autodeploy="true" /> <host name="example.com" appbase="hosts/hkprod" unpackwars="true" autodeploy="true"> <alias>www.example.com</alias> </host> <host name="localhost" appbase="hosts/jenkins" unpackwars="true" autodeploy="true" /> </engine>
here error getting every time invoked "./catalina.sh run"
java.lang.illegalstateexception: invalid context ''. cannot find context in host localhost
did configure context.xml file?
http://tomcat.apache.org/tomcat-7.0-doc/config/context.html#defining_a_context
Comments
Post a Comment