You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "David C. Hicks" <dh...@i-hicks.org> on 2005/04/21 16:25:55 UTC
Missing JNDI resource params after deployment.
I have the following in a file called "ems.xml" in my META-INF
directory. After deploying this application, the JNDI resource is
listed for the application in the administration screen, but none of the
ResourceParams are associated with it. Have I got something wrong in
the context file?
Thanks in advance.
Dave
<Context path="/ems" reloadable="true"
docBase="/home/dhicks/projects/ems/build/webapp"
workDir="/home/dhicks/projects/ems/build/webapp/WEB-INF/work" >
<Logger className="org.apache.catalina.logger.SystemOutLogger"
verbosity="4" timestamp="true"/>
<Resource name="jdbc/emsDb" auth="Container"
type="javax.sql.DataSource"/>
<ResourceParams name="jdbc/emsDb">
<parameter><name>username</name><value>sa</value></parameter>
<parameter><name>password</name><value></value></parameter>
<parameter><name>driverClassName</name><value>net.sourceforge.jtds.jdbc.Driver</value></parameter>
<parameter><name>url</name><value>jdbc:jtds:sqlserver://psg01:1433/dchems;user=sa</value></parameter>
</ResourceParams>
</Context>
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: Missing JNDI resource params after deployment.
Posted by Parsons Technical Services <pa...@earthlink.net>.
Which version of Tomcat are you running. There is a difference from the
5.0.x and 5.5.x tree. The setup you have listed is for the 5.0.x branch.
Doug
PS Didn't mean to not respond but I actually took a small vacation to Busch
Gardens. Apollo's Chariot rocks, especially front row! And just now back on
line.
----- Original Message -----
From: "David C. Hicks" <dh...@i-hicks.org>
To: <to...@jakarta.apache.org>
Sent: Thursday, April 21, 2005 10:25 AM
Subject: Missing JNDI resource params after deployment.
>I have the following in a file called "ems.xml" in my META-INF directory.
>After deploying this application, the JNDI resource is listed for the
>application in the administration screen, but none of the ResourceParams
>are associated with it. Have I got something wrong in the context file?
>
> Thanks in advance.
> Dave
>
> <Context path="/ems" reloadable="true"
> docBase="/home/dhicks/projects/ems/build/webapp"
> workDir="/home/dhicks/projects/ems/build/webapp/WEB-INF/work" >
> <Logger className="org.apache.catalina.logger.SystemOutLogger"
> verbosity="4" timestamp="true"/>
> <Resource name="jdbc/emsDb" auth="Container"
> type="javax.sql.DataSource"/>
> <ResourceParams name="jdbc/emsDb">
> <parameter><name>username</name><value>sa</value></parameter>
> <parameter><name>password</name><value></value></parameter>
>
> <parameter><name>driverClassName</name><value>net.sourceforge.jtds.jdbc.Driver</value></parameter>
>
> <parameter><name>url</name><value>jdbc:jtds:sqlserver://psg01:1433/dchems;user=sa</value></parameter>
> </ResourceParams>
> </Context>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: Missing JNDI resource params after deployment.
Posted by QM <qm...@brandxdev.net>.
On Thu, Apr 21, 2005 at 10:25:55AM -0400, David C. Hicks wrote:
: I have the following in a file called "ems.xml" in my META-INF
: directory. After deploying this application, the JNDI resource is
: listed for the application in the administration screen, but none of the
: ResourceParams are associated with it. Have I got something wrong in
: the context file?
Where is the context file, inside a WAR or in an exploded-directory
webapp?
For the former, it should be called context.xml.
For the latter, it should be in
{catalina_home}/conf/{server}/{engine}/{host}/{name.xml}
-QM
--
software -- http://www.brandxdev.net/
tech news -- http://www.RoarNetworX.com/
code scan -- http://www.JxRef.org/
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org