context.xml Questions
14
Solved
I know that I can rename my webapp (or it's WAR file) to ROOT but this is a terrible way to do it, IMHO. Now I checked out the tomcat doc & it says
It is NOT recommended to place elements d...
Tentmaker asked 1/9, 2011 at 21:51
2
Solved
I have a Tomcat 8 project that uses a datasource (see below)
<Resource auth="Container"
name="jdbc/JtmDS"
driverClassName="org.apache.derby.jdbc.EmbeddedDriver"
type="javax.sql.DataSource...
Sachasachem asked 26/6, 2017 at 14:17
1
Solved
I've been learning about connection pools, and I have gotten one working by using Tomcat's PoolProperties. Now I would like to set one up using a context.xml file with Tomcat and IntelliJ, but I ca...
Sottish asked 8/3, 2019 at 2:37
5
I have a question about context config in Tomcat 8. I migrating project from Tomcat 7 to 8 and have unusual problem: if nothing change in config I caught an error:
"2015-02-03 12:05:48,310 FIRST_...
Herzig asked 3/2, 2015 at 9:32
2
Solved
I know there's many questions regarding this exception, however, I believe I've tried everything for many days, without any luck yet. As this is a production server, I can only work on this after m...
Drifter asked 23/5, 2018 at 7:52
8
Solved
I understand that I can specify system properties to Tomcat by passing arguments with the -D parameter, for example "-Dmy.prop=value".
I am wondering if there is a cleaner way of doing this by spe...
Geologize asked 16/12, 2008 at 20:59
3
I am using Spring 3.2.9, Tomcat 6.0.44
I am trying to configure my application's Spring instrumentation provider (e.g. spring-instrumentation.jar) for load-time weaving, when it is deployed on Tom...
Johppa asked 14/3, 2016 at 17:11
2
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):
<jee:jndi-lookup id="someMessage" jndi-name="someMessage"/>
in one of t...
Mushroom asked 28/1, 2016 at 17:8
4
I have a servlet running under Tomcat.
I need to serve some files, I guess we can call them semi-static (which change occasionally ... they are updated by another part of the app) from an external ...
Projector asked 3/10, 2012 at 19:19
1
Solved
Is there a way to set a relative path to the docBase attribute in the context.xml of a web application, so it is outside of the appBase directory of the tomcat server instance?
I would like to be ...
Indigenous asked 22/10, 2013 at 12:38
1
Solved
Should a "context.xml" file for deploying application-specific configuration to Tomcat be placed in:
src/main/resources/META-INF/context.xml
...or...
src/main/webapp/META-INF/context.xml ?
Ju...
Acme asked 27/10, 2014 at 10:27
2
Solved
I'd like to store connection URLs in a JNDI binding for my Tomcat application. Since Tomcat uses context.xml for JNDI resource defining, I need to figure out the propert way to store a String (or m...
Coexist asked 23/8, 2013 at 13:34
3
What is the best way to deploy an app with datasource both in development and in production environments?
It is recommended to use META-INF/context.xml to specify Tomcat context but I don't unders...
Barathea asked 10/1, 2011 at 16:47
1
I hope this is something stupid. But I've been staring at it way too long.
I am upgrading to Tomcat 7 (from 6) on Linux and it's ignoring my context.xml file. If I include the Context (datasource)...
Existence asked 24/1, 2013 at 22:29
3
Solved
I'm writing an integration test where an application context xml is initialized during startup. There are several test methods in the test class which make use of a specific bean 'X'(already define...
Tenant asked 9/10, 2012 at 13:7
3
Solved
I am working on a web application that allows users to upload attachments. These attachments are stored on a different drive than that of the web application. How can I create an alias (equivalent ...
Neanderthal asked 8/12, 2008 at 21:8
2
Solved
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 t...
Derris asked 19/7, 2012 at 4:18
2
Solved
I've got a servlet that I wish to deploy programmatically using Jetty. The servlet uses Spring and it's web.xml points to the Spring context XML file as you'd expect.
At the moment, I'm just tryin...
Thermodynamics asked 24/5, 2012 at 13:50
1
Solved
NetBeans has great support for showing the nodes and attributes available in an XML, but it needs to load the schema. Is there one for Tomcat's context container XML?
Phelgen asked 28/4, 2012 at 21:29
2
Solved
This is my context.xml file:
...
<Resource auth="Container"
driverClass="net.sourceforge.jtds.jdbc.Driver"
type="com.jolbox.bonecp.BoneCPDataSource"
idleMaxAge="240"
idleConnectionTestPerio...
Subtreasury asked 28/11, 2011 at 15:29
1
Solved
I am developing a small web application application. The objective is to create one welcome index.html page with Ajax + one servlet to handle ajax requests.
Although I thought I would be fine with...
Ionogen asked 13/10, 2011 at 23:37
1
Solved
I'm looking to implement a custom Valve and configuring it using META-INF/context.xml.
At the moment though, when context.xml is parsed during deployment, Tomcat (6.0.32) dies with a ClassNotFound...
Newson asked 26/5, 2011 at 12:23
2
Solved
I created a mainly empty dynamic web project in eclipse.
It has
no servlets
no jsp files
The web.xml is
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/...
Auctioneer asked 2/11, 2009 at 12:35
2
Solved
I'm using Spring and struts and have the following entry in '/META-INF/context.xml'
<Context cachingAllowed="false" useHttpOnly="true">
<Resource name="jdbc/xxx" auth="Container" type="ja...
Sajovich asked 9/10, 2009 at 4:4
2
Solved
I am trying to use symbolic links in one of the applications I have running on Tomcat5. Thanks to some help from another StackOverflow question I was able to do it
by creating a context.xml file ...
Gemma asked 25/11, 2008 at 17:38
1 Next >
© 2022 - 2024 — McMap. All rights reserved.