Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Tomcat startup problems (MySQL driver)

 
Joe Harry
Ranch Hand
Posts: 10124
3
Eclipse IDE Mac PPC Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Tim Holloway
Saloon Keeper
Posts: 18303
56
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, I don't like a context name of "[]". It should be something like "/" or "/myapp". Maybe you deployed an app with context name = ""?
 
Joe Harry
Ranch Hand
Posts: 10124
3
Eclipse IDE Mac PPC Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 18303
56
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 10124
3
Eclipse IDE Mac PPC Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do I specify my context name in the context.xml of Tomcat?
 
Tim Holloway
Saloon Keeper
Posts: 18303
56
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 10124
3
Eclipse IDE Mac PPC Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 18303
56
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic