About xml loading in tomcat webapps.

R

ramakrishna

Hi all,
Iam using xml type of loading in tomcat webapps.

Iam using tomcat 5.0.28 webserver.Iam placing thread.xml file
in webapps directory with follwing code.

<Context path="/thread" docBase="applications/thread" debug="0"
reloadable="true">
<Manager saveOnRestart="false"
pathname="/weDoNotWantToPersist" />
<Logger className="org.apache.catalina.logger.FileLogger"
prefix="thread_" suffix=".log" timestamp="true"/>

</Context>

Iam placing my directory in webapps/applications/thread
directory. Problem is tomcat not loading my thread application in
"applictions/thread" folder.

But when iam removing thread.xml and copy the "thread" folder in
"webapps" directory.It is loading the application.

Please tell the reason why it is not loading the when iam using
thread.xml in "webapps" directory.
i.e Does I need to set any tag in server.xml or any other file.

Thanks In Advance.
 
M

Manish Pandit

ramakrishna said:
Hi all,
Iam using xml type of loading in tomcat webapps.

Iam using tomcat 5.0.28 webserver.Iam placing thread.xml file
in webapps directory with follwing code.

<Context path="/thread" docBase="applications/thread" debug="0"
reloadable="true">
<Manager saveOnRestart="false"
pathname="/weDoNotWantToPersist" />
<Logger className="org.apache.catalina.logger.FileLogger"
prefix="thread_" suffix=".log" timestamp="true"/>

</Context>

Iam placing my directory in webapps/applications/thread
directory. Problem is tomcat not loading my thread application in
"applictions/thread" folder.

But when iam removing thread.xml and copy the "thread" folder in
"webapps" directory.It is loading the application.

Please tell the reason why it is not loading the when iam using
thread.xml in "webapps" directory.
i.e Does I need to set any tag in server.xml or any other file.

Thanks In Advance.

I believe you need to set the context in server.xml. Also, I am not
sure what you are trying to achieve by thread.xml. For tomcat to pick
up the application, you need to have a web.xml deployment descriptor.
So, in your case, it'd be $TOMCAT_HOME/webapps/threads/WEB-INF/web.xml.
If there is no WEB-INF or WEB-INF/web.xml, I do not think tomcat will
even consider your app to be deployable.

-cheers,
Manish
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

Forum statistics

Threads
473,744
Messages
2,569,482
Members
44,901
Latest member
Noble71S45

Latest Threads

Top