Re: DB connection error and broken images while changing webapp context path

2010-08-13 Thread Estanislao Gonzalez
Hi Astghik, I don't really have a clue on your problem as I think you are creating a virtual host within your tomcat installation. What I do when I want to have myapp at the root directory of server (so you access it with http://myip:8080) is to install your application in webapps/ROOT

Re: DB connection error and broken images while changing webapp context path

2010-08-13 Thread Astghik
And to create virtual host and to set my webapp as root dir. I've done both of them. But now I have db access problems and images on site don't display. Estanislao Gonzalez-2 wrote: Hi Astghik, I don't really have a clue on your problem as I think you are creating a virtual host within

Re: DB connection error and broken images while changing webapp context path

2010-08-13 Thread David Smith
HI Astghik 1. Don't put Context ... / elements in server.xml. They should go into files named ROOT.xml in /etc/tomcat6/Catalina/localhost and /etc/tomcat6/Catalina/www.myip.com. While your at it, drop the docbase and path attributes ... they aren't needed when the Context element is in it's own

Re: DB connection error and broken images while changing webapp context path

2010-08-13 Thread Mark Eggers
Astghik, As has already been pointed out: 1. Don't put Context elements in server.xml - use either: a. META-INF/context.xml in your web application b. $CATALINA_HOME/conf/Catalina/[hostname]/[application].xml 2. Don't use docBase in your Context element. Tomcat will figure that out 3.