This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Tomcat and the fly likes DB connection error and broken images while changing webapp context path Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "DB connection error and broken images while changing webapp context path" Watch "DB connection error and broken images while changing webapp context path" New topic
Author

DB connection error and broken images while changing webapp context path

Astghik Mktchyan
Greenhorn

Joined: Aug 13, 2010
Posts: 2
Hello All.

I have Apache Tomcat 6 server running on Ubuntu 9.10. . I've changed my application context path http://myip:8080/myapp to http://myip:8080 by making changes in server.xml.

But I got another problem, all images (there are in /var/lib/tomcat6/webapps/myapp/img dir) are broken and "An error occurred: org.springframework.dao.DataAccessResourceFailureE xception: could not execute query; nested exception is org.hibernate.exception.JDBCConnectionException: could not execute query" exception is throwing.

How to fix those problems?

Regards,
Astghik
 
Consider Paul's rocket mass heater.
 
subject: DB connection error and broken images while changing webapp context path
 
Similar Threads
Tomcat 5.5(tried 6.0 as well)-JSTL 1.1 not resolved
Apache HTTPD2.2 Virtual Host proxying calls to local Tomcat 6 for JSPs
Directory listing context docBase
listen on multiple ports
virtual hosts in stand alone tomcat