aspose file tools*
The moose likes Tomcat and the fly likes Tomcat startup problems (MySQL driver) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Tomcat startup problems (MySQL driver)" Watch "Tomcat startup problems (MySQL driver)" New topic
Author

Tomcat startup problems (MySQL driver)

Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9427
    
    2

Guys,

I have some problems with my Tomcat startup especially when I have my app deployed. Following is what I see.



Any suggestions on what the issue could be?


SCJP 1.4, SCWCD 1.4 - Hints for you, Certified Scrum Master
Did a rm -R / to find out that I lost my entire Linux installation!
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16145
    
  21

Well, I don't like a context name of "[]". It should be something like "/" or "/myapp". Maybe you deployed an app with context name = ""?


Customer surveys are for companies who didn't pay proper attention to begin with.
Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9427
    
    2

I can check that, but what has that got to do with the exception that I get here with respect to the MySQL driver? Any ideas?
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16145
    
  21

Joe Harry wrote:I can check that, but what has that got to do with the exception that I get here with respect to the MySQL driver? Any ideas?

When I have an error coming from a bad app, the first thing I do is find out what's wrong with the app. Fixing that often fixes the other errors.
Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9427
    
    2

Do I specify my context name in the context.xml of Tomcat?
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16145
    
  21

Joe Harry wrote:Do I specify my context name in the context.xml of Tomcat?


http://tomcat.apache.org/tomcat-6.0-doc/config/context.html

And ignore what it says about server.xml. Someone needs to update that.

Typical usage:

Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9427
    
    2

did you mean that I have to create a context.xml for my web app and place it under META-INF of my web app?
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16145
    
  21

You can do that. Or you can create a file with a Tomcat Context in it and place it in TOMCAT_HOME/conf/Catalina/localhost. Since there can be multiple contexts in there, obviously they can't all be named "context.xm", but any file with an ".xml" suffix will be scanned by Tomcat and the name of the file doesn't have to match the context. Although it makes life easier if they do match.
 
 
subject: Tomcat startup problems (MySQL driver)