Questions tagged [context.xml]

The context.xml file is a web application context descriptor used by the Apache Tomcat servlet container.

199 questions
0
votes
2 answers

Retrieving property/value as string from Spring bean

I have the following in my context.xml:
Jay Mie
  • 65
  • 1
  • 2
  • 8
0
votes
2 answers

WebApplication Context files on Tomcat

I have a download service served using Tomcat 5.5.15. It is created by adding an XML file in $TOMCAT_HOME/conf/Catalina/localhost. E.g downloads.xml for http://example.com/app.downloads/
n002213f
  • 7,805
  • 13
  • 69
  • 105
0
votes
3 answers

Eclipse + Tomcat = wrong docBase?

I am running Eclipse Galileo with Tomcat 6.0.18. Currently, I have a working application with the m2Eclipse plugin installed. It deploys to Tomcat and I am able to test my application. I am wanting to switch over to just using the Maven Eclipse…
user186644
0
votes
2 answers

JavaxMail JNDI properties: mail.smtp.user vs username

What's the difference between mail.smtp.user and username? Are either where I specify the destination address (to field)? If not, what property does the destination address correspond to?
IAmYourFaja
  • 55,468
  • 181
  • 466
  • 756
0
votes
1 answer

Logback SMTPAppender cannot find JNDI location and start

Using logback-1.0.13.jar and JDK 1.6u34. I have a Java web app (WAR) with the following WEB-INF/classes/logback.xml:
IAmYourFaja
  • 55,468
  • 181
  • 466
  • 756
0
votes
1 answer

Logback SMTPAppender throws exception from JNDI lookup

Edit: Using logback-1.0.13.jar and JDK 1.6u34. I have a Java web app (WAR) with the following WEB-INF/classes/logback.xml:
IAmYourFaja
  • 55,468
  • 181
  • 466
  • 756
0
votes
1 answer

BoneCP in tomcat context.xml throws an exception about being unable to find a jdbc driver

This is the configuration that I'm trying to replace
Cogman
  • 2,070
  • 19
  • 36
0
votes
1 answer

Tomcat 7 - overriding context.xml

The company I work for hosts a few Java web apps. We have production sites and demo sites on the same box. The demo sites are normally copies of what is seen on production, only the resources point to the demo resources (databases and Realm using…
Bob
  • 11
  • 1
  • 4
0
votes
1 answer

how to set context path in context.xml for java application

When i am creating context path in server.xml of tomcat server then everything is working fine. But I want to write context element in context.xml to define different URL to same application then it is not working. Please explain how to modify…
vishal
  • 323
  • 1
  • 2
  • 9
0
votes
2 answers

Is there any way I can store a string in the context.xml during run time?

At many places in my web application I need a certain String which is : request.getServletContext().getRealPath("/"); // I can only get this once the web-app starts Sometimes a simple java class needs to know this string. I don't want to pass each…
Suhail Gupta
  • 22,386
  • 64
  • 200
  • 328
0
votes
1 answer

What is context in tomcat/conf/context.xml for? virtualhost?

I was reading a book (school book) on jsp and there was something I couldn't understand. In the book we had to execute a jsp page and for that they set a context in servlet.xml in tomcat 5.5:
black sensei
  • 6,528
  • 22
  • 109
  • 188
0
votes
1 answer

Placing the Resource tag inside conf/context.xml gets an exception but is okay when I place the same inside META-INF/context.xml : Why is that?

To connect to derby database using tomcat as the server initially I added the following to conf/context.xml of Tomcat :
Suhail Gupta
  • 22,386
  • 64
  • 200
  • 328
0
votes
1 answer

Error : The markup in the document following the root element must be well-formed

The following is my context.xml file in the META-INF directory of my project :
Suhail Gupta
  • 22,386
  • 64
  • 200
  • 328
0
votes
2 answers

What are steps followed in the look-up? what is looked first web.xml or context.xml?

How does a look-up like : Context envContext = (Context)initContext.lookup("java:comp/env"); DataSource ds = (DataSource)envContext.lookup("jdbc/MyDatasource"); proceed ? I mean to say how is the name MyDataSource searched and in the end what is…
saplingPro
  • 20,769
  • 53
  • 137
  • 195
0
votes
1 answer

How to define context path of context.xml in web application in Tomcat 6?

Can anyone suggest to me where I have to put the context path in a Tomcat server? Do I have to put it in context.xml or do I have to create a new .xml inside this apache-tomcat-6.0.18\conf\Catalina\localhost? When I type the URL…
1 2 3
13
14