The context.xml file is a web application context descriptor used by the Apache Tomcat servlet container.
Questions tagged [context.xml]
199 questions
0
votes
1 answer
How set context variable in a web app's context.xml when it's also the default web app?
I have a WAR that I've set as the default web app in Tomcat's server.xml:
Inside Server.xml
In addition, I have a META-INF/context.xml file where I set an environment variable.

Don Rhummy
- 24,730
- 42
- 175
- 330
0
votes
1 answer
Stop Prompt for Password Expiration Apache Tomcat
Every time my application connects to its database (AS400), it shows a prompt "Your password will expire in X days".
This causes the application to hang while waiting on YES/NO selection.
I am working with security to get the passwords…

IMReal
- 3
- 3
0
votes
1 answer
No Initial Context Exception in j2ee
I am trying to do the connection pooling with context.xml
and web.xml.
context.xml

Hemal
- 26
- 1
0
votes
1 answer
A class referenced in META-INF/context.xml not found when starting Tomcat
I am trying to implement a custom session manager (based on AWS DynamoDBSessionManager).
I have context.xml file placed in web/META-INF folder. The contents is the following:
…

yateam
- 119
- 2
- 9
0
votes
1 answer
set the context path of a web application in Tomcat 7.0
I have an application with WAR name like "test< Version >.war",every time the version changes. I need my context path to be "/test", I know that I can rename WAR file to test.war and deploy it.
I added a file called ROOT.xml in…

Nagendra
- 191
- 1
- 3
- 20
0
votes
1 answer
tomcat 6: accessing web app without war name in the URL and without overwriting ROOT?
in my war's META-INF/context.xml I have:
I deploy my war to the webapps/ directory and I confirm that my contex.xml is in …

pastafarian
- 1,010
- 3
- 16
- 30
0
votes
2 answers
Web application specific form authenticator under Tomcat 6
With your help I have successfully resolved a question that I have asked here. I have developed a custom Tomcat authenticator for the web application, and currently the authenticator and its configuration file are located in the %CATALINA_HOME%\lib\…

Lyubomyr Shaydariv
- 20,327
- 12
- 64
- 105
0
votes
1 answer
How to get Tomcat to recognize context.xml?
I'm working on a web application using Tomcat 8 and I've been trying to get a custom session manager working. The problem is that I can't get Tomcat to recognize my context.xml file that contains the config.
My server.xml looks like…

RTF
- 6,214
- 12
- 64
- 132
0
votes
0 answers
Tomcat context.xml Parameter declaration accessed in Spring's application context
One of our apps declare some parameters in Tomcat's context.xml as such:
WEB-INF/web.xml
…

Marvo
- 17,845
- 8
- 50
- 74
0
votes
1 answer
JSF application giving 404 for a sub-context
My JSF application works in my local tomcat for URL like http://localhost:8080/MyApp/admin, but not on the hosting server, the URL there is http://www.myapp.com/admin
Do I need to do something with 'context.xml'/ put BocBase & AppBase. I got these…

Abhishek Dhote
- 1,638
- 10
- 41
- 62
0
votes
2 answers
Java - Tomcat: Reload context.xml without restarting server
I'm using spring mvc and tomcat as a server. I want to be able to change a jndi field that is Autowired(as String):
in one of the my services, that is referenced to conf/context.xml of…

Meriton Husaj
- 239
- 3
- 9
0
votes
1 answer
Redirect with parameters in tomcat7
I'm trying to redirect to my application in tomcat7,
I want a link to my app as: http://my_IP/newpath/
I've created ROOT.xml in /conf/Catalina/localhost with :

pearinthemountains
- 115
- 2
- 11
0
votes
1 answer
jboss JNDI setup failure - no valid JNDI binding
I have followed the JBoss Web - JNDI Resources HOW-TO, but am still getting a no valid JNDI binding error on mail/Session. Here are the entries in the associated files.
web app name is goDog.
jboss-web.xml:
…

Zombo99
- 1
- 2
0
votes
0 answers
Passing Java arguments to Tomcat WebApp with context.xml
I have an application named "lab-4-eureka-server" which I have made a war file for. I am deploying this application into my standalone tomcat. When I deploy the app, since no spring.profiles.active is specified, the webapp starts with the default…

GSUgambit
- 4,459
- 6
- 25
- 31