i.e. "SUBST S \\192.168.0.200\path\to\webroot"
Then inside Tomcat you just set "S:\" as the webroot, and all the
paths will start with that, but will be using the other server.
(The SUBST command needs to be re-run if Windows is rebooted - but you
can of course set it to run automatically on startup.)
Doesn't using a UNC generally require that the correct user have the
correct permissions as well?
:Den
--
The degree of one's emotions varies inversely with one's knowledge of the facts.
Bertrand Russell
You have to make sure that the tomcat service has permissions to the unc path. I use UNC paths with Railo/Jetty/Windows and just give the jetty service the correct login and it works perfect.
| ||
Lyle Karstensen Jr. | ||
|
I'm pretty sure if you click the "run as", enter the creds, and then
check "restore on boot" (or whatever the option is called), it does
the mapping with the creds when the box boots.
There is a little bit of jiggery-pokery if you're doing the "run as
admin" + doing a mapped drive-- that's usually when you need a script
of some sort, IIRC.
There should be an authentication event log (I think it's there-- been
a while, might be in application, etc.) that logs the attempt. Is
there something showing up in there?
It could be something else, but I'm leaning towards a permissions
error at the moment.
:Den
--
The fact that an opinion has been widely held is no evidence whatever
that it is not utterly absurd.
Bertrand Russell
Maybe try that suggestion (directly editing the railo-web.xml.cfm
config file -- note, setting "/" root mappings only work in the web
context, not the server context):
<mapping archive="" physical=" \\192.168.0.200\www\mysite"
primary="physical" readonly="no" toplevel="yes" trusted="no" virtual="/"/>
You can also try a smb path: smb://192.168.0.200/www/mysite
Using the web admin UI. Might try that first as it's pretty easy.
I'm thinking this is a bug, probably with VFS, but there should be a
work around until it's fixed.
:Den
--
The good life is one inspired by love and guided by knowledge.
Bertrand Russell
Hrm. I'm not a big fan of windows networking in general...
I'd recommend not using the network to serve files.
Maybe use a file synchronization tool instead?
That way you remove a dependency from your app, plus things should serve faster.
That's a long-term idea, I reckon. I'm thinking we can get you going
with one of the workarounds...
:Den
--
The infliction of cruelty with a good conscience is a delight to
moralists. That is why they invented Hell.
Bertrand Russell
--
Sean A Corfield -- (904) 302-SEAN
An Architect's View -- http://corfield.org/
World Singles, LLC. -- http://worldsingles.com/
Railo Technologies, Inc. -- http://www.getrailo.com/
"Perfection is the enemy of the good."
-- Gustave Flaubert, French realist novelist (1821-1880)
Yeah, it tripped me up once, so I figured I'd be a bit explicit, just
in case. :)
Glad you're rocking along now!
:Den
--
The only thing that will redeem mankind is cooperation.
Bertrand Russell