Questions tagged [context.xml]

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

199 questions
4
votes
3 answers

Spring context XML validator for eclipse?

Is there any way to validate spring context xml files in eclipse? Features like: Validate class attribute of bean Validate bean references Validating with autowireing perhaps? We're not working with annotations on current project unfortunatly. I…
Michael Bavin
  • 3,944
  • 6
  • 31
  • 35
4
votes
3 answers

Loading Bean property values from context.xml

Currently we are loading our JDBC source values from properties file as per following:
navaltiger
  • 884
  • 12
  • 27
4
votes
3 answers

Set Tomcat Default Context Path

In my context.xml file I set the following to: When I run my project from NetBeans then it works correctly and goes to http://localhost:8080/login. Then when I clean & build and go into Tomcat Manager and…
user1191027
3
votes
2 answers

How to arrange spring context configuration files so they match the project dependencies?

I have a web-application which is dependent on two other modules. For simplicity let's call them ServiceA module and ServiceB module. Each of these modules has various different dependencies and also a common dependency on the Entities module. Each…
Ittai
  • 5,625
  • 14
  • 60
  • 97
3
votes
2 answers

Tomcat6 ignores META-INF/context.xml

Tomcat6 keeps ignoring my META-INF/context.xml. I keep getting "Name tt is not bound in this Context" when I try to look up "tt" (please see 'details'). When I put the content of META-INF/context.xml inside the 'context' tag in server.xml, it…
stackoverflower
  • 3,885
  • 10
  • 47
  • 71
3
votes
1 answer

Tomcat 6 doesn't copy my context.xml

Everthing I've read about Tomcat seems to indicate that when I deploy my web application, Tomcat will take my context.xml file, copy it to and rename it to .xml. ...only it doesn't. I have Liferay 6…
David
  • 393
  • 4
  • 16
3
votes
3 answers

How to add META-INF/context.xml in Warbler

How can I add META-INF/context.xml into the war? I didn't find any config entry in config/warble.rb.
Bewang
  • 453
  • 3
  • 18
3
votes
2 answers

Heroku Tomcat based Deployment : context.xml Environment variables

I have deployed a Java Tomat application to Heroku platform. I needed a JDBC datasource. So I have added a "local" context.xml in the "META-INF" directory through maven war plugin. Heroku provides a system environment variable JDBC_DATABASE_URL that…
3
votes
0 answers

Tomcat different context config for each webapp and automatic deployment

I have two webApps FOO and BAR which I want to deploy on the same Tomcat 8 instance. Both weppApps should have their own context configuration for JNDI purposes. Also both webApps should be able to autodeploy when a new WAR file is transferred over…
G-J
  • 401
  • 7
  • 17
3
votes
1 answer

JBoss JNP as standalone server and using Resource configs from tomcat's context.xml

I have a couple of modules which now have the need of JNDI. One of these modules runs via Apache Tomcat while the rest run standalone as J2SE application. I was able to configure the module which uses tomcat without a problem and I've googled a bit…
Ittai
  • 5,625
  • 14
  • 60
  • 97
3
votes
1 answer

Tomcat not executing the correct realm

I am working on a tomcat 7 webapp that I recently inherited. We are working on migrating from Tomcat 5.5. The webapp uses a tomcat realm to handle a combination of ldap/sql authentication. When I define my context.xml as follows
marbletravis
  • 135
  • 1
  • 8
3
votes
1 answer

Context.xml file missing Tomcat 8

I'm a beginner at creating a dynamic web project in Eclipse. I need the context.xml file to set up a database realm, but it's not under META-INF, instead I have found it in Tomcat's conf directory. Have I configured Eclipse/Tomcat wrong since all…
manic bubble
  • 147
  • 1
  • 3
  • 13
3
votes
1 answer

Vaadin 7.4 , Spring, Tomcat 7 , Change context root using @WebServlet

I'm using Vaadin 7.4 with Spring using the "spring4vaadin" - Project. I'm deploying the Application on a Tomcat 7.0.29 with Servlet API 3.0. I deploy the Application under the Root-Context of Tomcat ("/") and I'm using the @WebServlet-Annotation to…
Frank Marx
  • 151
  • 11
3
votes
0 answers

Spring @Value not working inside @Service class

I have the following bits of code: MySerivceImpl.java package com.bomb.domb.impl; ... @Service("myService") public class MyServiceImpl { @Value("${telephoneId}") private String telephoneId; //no constructor defined…
Dax Durax
  • 1,607
  • 5
  • 23
  • 31
3
votes
1 answer

Error detecting database type: Cannot create PoolableConnectionFactory (FATAL: no pg_hba.conf

I am using pgAdmin3 and used the pkg to install postgreSQL and pg. I am trying to connect to postgreSQL through tomcat. When I do ./startup.sh from my tomcat /bin directory the log file shows this error: Caused by:…
1 2
3
13 14