aspose file tools*
The moose likes Tomcat and the fly likes ok new question... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "ok new question..." Watch "ok new question..." New topic
Author

ok new question...

Dave Hanson
Greenhorn

Joined: Aug 17, 2004
Posts: 9
I've discovered that my issue is one of pathing.

webapps
|-app1
|-app2

in both app1 and app2 there is a dll that is used by the application. what hopefully is a stupid n00b question... how do I tell tomcat that the "current" directory is dependant on which app is asking.....

ie app1 current dir = app1
app2 current dir = app2

in my case the "current" directory is system32 for some reason.

thanks all
d
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12825
    
    5
Unfortunately for you, Tomcat does its own thing on "current" directories, you have to use complete paths. This frequently bites people when they don't put servlet class files in a package.
Bill
Dave Hanson
Greenhorn

Joined: Aug 17, 2004
Posts: 9
Originally posted by William Brogden:
Unfortunately for you, Tomcat does its own thing on "current" directories, you have to use complete paths. This frequently bites people when they don't put servlet class files in a package.
Bill


Bill,
are you saying that if I jar all this stuff together this issue just... goes away? forgive my ignorance, but I have not had the occassion to follow the more correct ways of "packaging" my web apps. ...never had the need. but if this fixes it, I'll figure it out in two jiffs. ...well, possibly three... I'm old.

dh
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12825
    
    5
I'll figure it out in two jiffs. ...well, possibly three... I'm old.
I win, I'll be 65 in October.
What I'm saying is that you should never do anything in Tomcat that depends on the "current" directory.
Since I have not done anything with loading DLLs I don't know how that applies to your problem.
Bill
Dave Hanson
Greenhorn

Joined: Aug 17, 2004
Posts: 9
Originally posted by William Brogden:
I win, I'll be 65 in October.
What I'm saying is that you should never do anything in Tomcat that depends on the "current" directory.
Since I have not done anything with loading DLLs I don't know how that applies to your problem.
Bill


ahh... learned something new today. guess i can stay home.

guess I keep...
 
jQuery in Action, 2nd edition
 
subject: ok new question...