Re: Symlinks inside WEB-INF/classes not working for me

2009-07-14 Thread John W
 Again, wrong. allowLinking applies to any web-app resources. Only internal
 Tomcat file access (bin, lib, logs etc) goes directly to the file system.

And for what it's worth, allowLinking appears to have fixed it :)

It manifested itself really silently and I didn't see anything about it in
WebAppClassLoader.java so it never occurred to me it was possibly
configurable. Now I can see the DirContext object that's used in there and
everything makes sense.

Thanks!

John


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Symlinks inside WEB-INF/classes not working for me

2009-07-13 Thread John W
 Tomcat 6.0.16
 Linux 2.6.18
 JDK 1.6.0_05

 Imagine a webapp like this:
 /index.jsp
 /WEB-INF
 -web.xml (of course)
 -/classes
 --ConfigFile.txt
 -/lib
 --MyConfigLoader.class

... and imagine that .class file is inside a .jar file :) Sorry about that.

John





-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



How many webapps on one instance? How to tell when to add another?

2007-08-03 Thread Newman, John W
Ok ok i know this is very much not a one size fits all sort of question,
but I'm just wondering what those out there have.  How many webapps do
you have per instance?  What is recommended (one, three, 10, 40 i have
no idea) ?  Hardware specs are probably about the norm these days, 2 G
of ram dual processor etc.  

 

How were you able to realize you needed to add a second?  Right now we
have 6 smaller CRUD like applications on there, trying to get a feel for
whether or not I need to start messing with the servers again.

 

Thanks
john



How to have some webapps use IIS security and some not?

2007-08-01 Thread Newman, John W
Hi,

 

This is a nasty problem but I hope someone out there has figured it out.
We have been using tomcat 5.5.17, IIS 6, and JK2 happily for about a
year now.  Up to this point, we have not used IIS directory security to
pass the NT username to tomcat.  Some of our webapps have no security
requirements, some have their own security mechanism, but now we have
one that would benefit from pulling the NT username from IIS.

 

I have gotten all that to work fine on localhost,
getRequest().getRemoteUser() returns exactly what I want.  The issue is
that on the actual server, it's either all or nothing.  In IIS the
Jakarta virtual directory either has security or not.  I can't specify
it at the webapp level.

 

So I thought maybe I could have two tomcat instances on the same
machine, one Jakarta directory w/o security, and the other with it
turned on.  I was able to get both instances installed, but I can't get
the second (secure) one connected to IIS.  I spent a good bit of time
with this yesterday and have gotten pretty close.  

 

I actually hex edited the second isapi_redirector2.dll to change the
registry key to point to Isapi Rediretor\2.1 instead of Isapi
Redirector\2.0.  That allowed me to have two instances pointing to
c:\tomcat and c:\tomcat-sec ... I could have just rebuilt the thing from
source but am too busy/lazy to sit through the visual studio install yet
again ... that seriously takes like 45 minutes J

 

So I got to that point where everything should work right?  Well sort
of, the second filter at the bottom of the order in IIS works.  The
first one just hangs.  If I switch the order, the other one works fine
and the one that was working breaks.  I ran across this which looks like
a similar problem with jk1
http://issues.apache.org/bugzilla/show_bug.cgi?id=34584

 

Just wondering if anyone out there can give me some ideas.  Maybe two
tomcat instances is not the way to go and there is a better solution.
I just need to figure out how to have some webapps be able to pull the
NT name and some not.

 

Thanks for any help

John