• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Run an application anywhere on my system

 
Timothy Sam
Ranch Hand
Posts: 751
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys, I've heard of editing the xml files in your TOMCAT_HOME/conf/Catalina/localhost. Placing an XML file there and putting the name of your application, changing the docBase, path, and workDir could actually make tomcat run your application from anywhere in your system. How come mine is not?

I did the following

1. Add AssetManagementSystem.xml
2. Edit the xml file like this...



3. Start Tomcat and invoke the URL in my browser...

DIDN'T WORK...

I tried to change the slashes...



This didn't work also...

I'm making a struts application in exadel studio... There isn't really any struts involved here yet... I'm just testing if it would run... I didn't want to use the Tomcat server bundled with exadel or eclipse... Thanks!
 
Ulf Dittmer
Rancher
Pie
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm not sure if you can specify a relative workDir path like that; simply leave out that parameter, and Tomcat will figure out a good place to put it.

And this only works on Tomcat 5.0 and newer, so make sure your version is not too old.
[ January 04, 2006: Message edited by: Ulf Dittmer ]
 
Pavan Tummala
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
removing the workdir should work, it works even on tomcat 4.1
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic