Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

deploying new application on tomcat manager

 
Diogo Magalhaes
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi folks,

I have a little big problem here! I need to deploy an application using tomcat manager, including a context.xml file. But that gives me an error on load()..
Maybe I'm doing something incorrect.

Does anyone knows how to deploy an application by the tomcat manager application using a context xml file (once I need to configure a datasource)?

Thanx in advance.

Diogo Magalhaes
 
unni krishna
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
jus check this link,

http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource-examples-howto.html
 
Diogo Magalhaes
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks for trying...
nice link but that is not the point. datasource is well configured, this application works in my web container and now I'm deploying it into another tomcat container, but I can't access server.xml file. so, I'm using tomcat manager, deploying using context.xml file, did you understand?
 
Pedro Penna
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you tried putting the context.xml in your JAR's META-INF directory?
If so, make sure your XML's main tag is <context> and your docBase is modified to point to the working directory in the enviroment where your application is going to be deployed.
 
Diogo Magalhaes
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
E ai Pedrao, tranquilo?

I've already done that.. but, didn't work either.
 
Diogo Magalhaes
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So.. does anybody have a hint?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic