Hi all!
I got some issues to deploy my application.
Environment: Ubuntu 10.04, Tomcat 7.02 (Install from archive from tomcat site, not from repositories), server is run and stoped manualy, not using any IDE.
For the first I've created host in $CATALINA_HOME/conf/server.xml
<Host name="java.dev"
appBase="/home/krasilich/java/"
autoDeploy="true" >
<Alias>www.java.dev</Alias>
</Host>
Then create a context in $CATALINA_HOME/conf/Catalina/java.dev/siloc.xml
<Context docBase="siloc/web/" />
And got the error
A docBase /home/krasilich/java/siloc/web/ inside the host appBase has been specified, and will be ignored
But, if I copy manager.xml to $CATALINA_HOME/conf/Catalina/java.dev/ I can run manager app. If I deploy my application through manager - it says that everything is going well, but I still see the 404 on java.dev:8080/siloc/
Thats all about custom host.
I've tried to deploy application through manager on localhost also and it works, I can see my "Hello Word" on localhost:8080/siloc/ But, if I change the text in my index.jsp it'll not affected on frontend. The "Redeploy" button isn't help for me. As I mentioned manager just copy application files to webapps directory, and don't make any changes in config files.
All I need that I can deploy application in any directory in my filesystem (actually it will be /home/krasilich/java/ ) And it would be great if I can do this on custom host like java.dev I need the answer, why the context in $CATALINA_HOME/conf/Catalina/java.dev/siloc.xml isn't working for me, and what shall I do to make it consistent?
Thanks, Igor.