Please ignore my previous post.
Sorry, when you mentioned context.xml I was thinking of the one
located under the project's META-INF folder.
Chuck is right, there's no need to move the contents of the
conf/context.xml file anywhere.
Whenever configuration gets messed up (happens very rarely), I
normally start with a fresh install of the zip version of Tomcat after
backing up the existing version. This process normally fixes my
problems quickly with little effort.
-Regards
Rashmi
On 4/29/07, sc <[EMAIL PROTECTED]> wrote:
I tried as you suggested. But didn't work. I have cleaned up tomcat
deployment directories and currently the configuration is very simple.
Under $CATALINA_HOME/webapps, there is only one directory ROOT.
Under $CATALINA_HOME/Catalina, there is only one directory "localhost",
which in turn only contains 1 file trip.xml
<?xml version='1.0' encoding='utf-8'?>
<Context docBase="d:/dev/trip/main/build">
<Resource name="jdbc/trip" auth="Container"
type="javax.sql.DataSource"
username="sa"
password="xxxxx"
driverClassName="com.microsoft.jdbc.sqlserver.SQLServerDriver"
url="jdbc:microsoft:sqlserver://localhost:1433;databaseName=trip"
maxActive="8"
maxIdle="4"/>
<WatchedResource>WEB-INF/web.xml</WatchedResource>
<!-- Note: as suggested, I have moved the above entry from context.xml over
here. -->
<Logger className="org.apache.catalina.logger.FileLogger"
prefix="local_cutetrip." suffix=".log"
timestamp="true"/>
</Context>
$CATALINA_HOME/conf/server.xml is as following:
<Server port="8005" shutdown="SHUTDOWN">
<Listener className="org.apache.catalina.core.AprLifecycleListener" />
<Listener className="org.apache.catalina.mbeans.ServerLifecycleListener"
/>
<Listener
className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" />
<Listener
className="org.apache.catalina.storeconfig.StoreConfigLifecycleListener"/>
<GlobalNamingResources>
<Environment name="simpleValue" type="java.lang.Integer" value="30"/>
<Resource name="UserDatabase" auth="Container"
type="org.apache.catalina.UserDatabase"
description="User database that can be updated and saved"
factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
pathname="conf/tomcat-users.xml" />
</GlobalNamingResources>
<Service name="Catalina">
<Connector port="8080" maxHttpHeaderSize="8192"
maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
enableLookups="false" redirectPort="8443" acceptCount="100"
connectionTimeout="20000" disableUploadTimeout="true" />
<Connector port="8009"
enableLookups="false" redirectPort="8443" protocol="AJP/1.3"
/>
<Engine name="Catalina" defaultHost="localhost">
<Realm className="org.apache.catalina.realm.UserDatabaseRealm"
resourceName="UserDatabase"/>
<Host name="localhost" appBase="webapps"
unpackWARs="true" autoDeploy="true"
xmlValidation="false" xmlNamespaceAware="false">
</Host>
</Engine>
</Service>
</Server>
$CATALINA_HOME/conf/context.xml is:
<Context>
</Context>
---------------------------------------------------------------------
To start a new topic, e-mail: [email protected]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]