Re: proper use of servlet contexts

2002-11-16 Thread Noah Davis
Any other thoughts on this? Someone suggested using Struts . . but short of instituting a framework . . - Original Message - From: "Noah Davis" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, November 12, 2002 8:18 PM Subject: proper use of servlet contexts I have a question

Re: Programmatic login

2002-11-16 Thread Bill Barker
The following is a bare-bones implemetation. Posted under the standard Apache Licence. import java.io.*; import java.security.Principal; import javax.servlet.*; import javax.servlet.http.*; import org.apache.catalina.*; public class MyValve implements Valve { public MyValve() {} public

Re: Keep Alives

2002-11-16 Thread Bill Barker
Yeah, at first glance it does look like 4.1.x ignores it. I added the attribute for 3.3.x, and just assumed that 4.x would pick it up. Please file a bug report at http://nagoya.apache.org/bugzilla/ so that I don't forget about this. "Miles Elam" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTE

Re: Unexpected results for minProcessors setting

2002-11-16 Thread Bill Barker
As I recall (without looking at the code), Coyote will create instances for the mininal number of threads. However they won't show up in 'ps' until they are actually needed, since the 'run' method won't be called until then. "Chris Halstead" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]"

RE: JSP1.2 xml syntax

2002-11-16 Thread David Tildesley
Doug, If you look at what you are sending to the browser - html right (the stuff in the CDATA elements)? yet you have the contenttype set to xml. IE is therefore told the content type is xml, expects to receive well-formed xml yet gets fed non-well-formed html from your jsp script and then correct

Re: A long classpath list

2002-11-16 Thread chasee
Would you please expand your answer? Are you referring to the ms v-j++ project by mentioning a "project"? Thanks, Chasee Nicholas Pappas <[EMAIL PROTECTED]> wrote:As an aside, if you have a development environment that allows you to set a project's class path individually (i.e. just for the pr

Using catalina.policy to set permissions for individual jar files

2002-11-16 Thread tc
(running Tomcat 4.04) Granting permissions to individual jar files in a webapp's WEB-INF/lib directory does not seem to be working correctly for me: I'm using the lastest Log4J and decided to put it in the lib directory for my specific webapp. In a servlet filter for this webapp I have a static Lo

ln -s synbolic links not followed on unix/linux

2002-11-16 Thread Hanasaki JiJi
Tomcat 4.1.12 seems to be having problems with symbolic links under linux. The below error is reported when trying to access the docs subdirectory that was soft linked to another part of the filesystem. ls docs/* shows the directory contents fine. Is there a way to allow tomcat to traverse the

Can I use Structs in Tomcat 4.1.12?

2002-11-16 Thread Cui Jun
__ Do you Yahoo!? Yahoo! Web Hosting - Let the expert host your site http://webhosting.yahoo.com -- To unsubscribe, e-mail: For additional commands, e-mail:

Re: eth0 ip, not lo ip

2002-11-16 Thread RXZ JLo
because I do not want to say my software strictly requires 1.4 or higher :) Again, any suggestions for the eth0 ip, any changes in server.xml needed? -rf --- Pae Choi <[EMAIL PROTECTED]> wrote: > I am just curious why the JDK1.4.x is not an > acceptable > choice? It should be backward compatible

Unexpected results for minProcessors setting

2002-11-16 Thread Chris Halstead
I'm working with Tomcat 4.1.12 on Solaris 8, using JDK 1.4.1_01. I created a minimal config in server.xml with a single Coyote HTTP/1.1 connector. No matter what I set minProcessors to (1, 20, 100), the number of threads in the thread pool is constant. This is not the behaviour I expected. Is i

RE: help: how do I get a Java variable inside a body tag?

2002-11-16 Thread Doug Blackburn
One thing you could do is retrieve MyBean in the TagHandler. It would look something like this: MyBean = (MyBean) pageContext.findAttribute("MyBean"); -Original Message- From: Bernd Prager [mailto:[EMAIL PROTECTED]] Sent: Saturday, November 16, 2002 9:28 PM To: 'Tomcat Users List' Subject:

help: how do I get a Java variable inside a body tag?

2002-11-16 Thread Bernd Prager
Hi everybody, I have a JSP body tag that needs a Java variable as an argument. So I wrote a BodyTag and it looks like: <% String myVariable= MyBean.getVariable(); %> <%=myVariable%> For whatever reasons the body contents gets not evaluated. I read the simple string '<%=myVariable%>' inside the ta

RE: building the mod_jk2 in one linux SuSE 8.1

2002-11-16 Thread Robert Williams
Hi, I just went through the process of building jk2 on Solaris. The short answer is that jk2 is in native2. The long answer is that I have included my build notes for Solaris. You may not need 'CPPFLAGS=-DBSD_COMP' on your platform. Try it without first. Adjust your paths to fit. Good luck. I spen

RE: JSP1.2 xml syntax

2002-11-16 Thread Doug Blackburn
David, Thanks for you suggestion. I just looked at the Tomcat generated TableEntry_jsp used to process the requests. It has response.setContentType("text/xml;charset=UTF-8"). I think that should work fine. The only difference between that and the servlet generated by the Sun J2ee Ref Impl Server

Re: A long classpath list

2002-11-16 Thread Nicholas Pappas
As an aside, if you have a development environment that allows you to set a project's class path individually (i.e. just for the project) you can spare your classpath environmental variable... Torsten Fohrer wrote: > if i remember right, tomcat 4 ignores the classpath. > > place classes simply in

RE: JSP1.2 xml syntax

2002-11-16 Thread David Tildesley
reading beween the lines: it seems IE it not happy because it thinks it needs to display it as XML so it looks like a mime type setting in the header. Set it it text/html and it should be fine :-) -Original Message- From: Doug Blackburn [mailto:[EMAIL PROTECTED]] Sent: Sunday, 17 Novemb

Re: A long classpath list

2002-11-16 Thread chasee
Got you. Thanks, Torsten. Torsten Fohrer <[EMAIL PROTECTED]> wrote: if i remember right, tomcat 4 ignores the classpath. place classes simply in the (common or shared)/classes read more under: http://jakarta.apache.org/tomcat/tomcat-4.0-doc/class-loader-howto.html On Saturday 16 November 2002

RE: JSP1.2 xml syntax

2002-11-16 Thread Doug Blackburn
It looks like Tomcat 4.1.12 may not support this jsp1.2 coding style. Any comments, suggestions? -Original Message- From: Doug Blackburn [mailto:[EMAIL PROTECTED]] Sent: Saturday, November 16, 2002 2:06 AM To: Tomcat Users List Subject: RE: JSP1.2 xml syntax I just ran this jsp successfu

Re: A long classpath list

2002-11-16 Thread Torsten Fohrer
if i remember right, tomcat 4 ignores the classpath. place classes simply in the (common or shared)/classes read more under: http://jakarta.apache.org/tomcat/tomcat-4.0-doc/class-loader-howto.html On Saturday 16 November 2002 21:12, chasee wrote: > > Hello all, > > the class loader of my tomca

servlet classpath

2002-11-16 Thread chasee
Hello all, the class loader of my tomcat stand-alone server (jakarta4.0.4) has problems finding classes for my SERVLET. it gives a java.lang.NoClassDefFoundError. I checked the classpath environment variable using echo %classpath%. It is properly set. The only thing I have doubt about is my "cl

Keep Alives

2002-11-16 Thread Miles Elam
I read in the archives that Tomcat 4.1.x has a maxKeepAliveRequests attribute, but I don't see any reference to where this attribute should be set. Basically I need to completely disable keep alives. History: I am using TUX (aka Redhat Content Accelerator) in front of Tomcat. All of my static

A long classpath list

2002-11-16 Thread chasee
Hello all, the class loader of my tomcat stand-alone server (jakarta4.0.4) has problems finding classes. it gives a java.lang.NoClassDefFoundError. I checked the classpath environment variable using echo %classpath%. It is properly set. The only thing I have doubt about is my "classpath" is wa

Re: eth0 ip, not lo ip

2002-11-16 Thread Pae Choi
I am just curious why the JDK1.4.x is not an acceptable choice? It should be backward compatible? Pae - Original Message - From: "RXZ JLo" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Saturday, November 16, 2002 5:23 AM Subject: Re: eth0 ip,

Re: RE: Starting tomcat as user apache instead of root

2002-11-16 Thread jmong
Oh... Yes the shell is the problem or remove -, since the minus sign tells it to read the shell vars, otherwise just do an su apache -c "$TOMCAT_HOME/bin/startup.sh" Make sure to start it as C-shell or in bash but not in bourne because if you exit, the process will probably terminate when you

Re: Servlet filter mapping

2002-11-16 Thread Craig R. McClanahan
On Sat, 16 Nov 2002, Reynir Hübner wrote: > Date: Sat, 16 Nov 2002 12:12:46 - > From: Reynir Hübner <[EMAIL PROTECTED]> > Reply-To: Tomcat Users List <[EMAIL PROTECTED]> > To: Tomcat Users List <[EMAIL PROTECTED]> > Subject: Servlet filter mapping > > Hi, > I have a filter that I want to be

RE: Starting tomcat as user apache instead of root

2002-11-16 Thread Randy Paries
Thanks The problem is that they have to both read and write files The weird thing is if I do a su - apache -c "$TOMCAT_HOME/bin/startup.sh" It does not start But if I do a su - tomcat -c "$TOMCAT_HOME/bin/startup.sh" Is does. The one diff is that in the etc/passwd file apache:x:48:48:Apache:

Re: Unable to find setter method

2002-11-16 Thread David M. Karr
> "Jim" == Jim Cobban <[EMAIL PROTECTED]> writes: Jim> The class definition is: Jim> public class QuerySubDivTag extends QueryTag Jim> { Jim> public void setLang(String lang) Jim> { Jim> super.setLang(lang); Jim> } Jim> public void setMaxRows(Strin

Re: Pager Tag Library - Broken in 4.1.12

2002-11-16 Thread David M. Karr
> "Andrew" == Andrew Geery <[EMAIL PROTECTED]> writes: Andrew> See the following thread which explains why the problem arises and how to Andrew> fix it. Andrew> http://www.mail-archive.com/tomcat-user@jakarta.apache.org/msg67093.html Andrew> To the above solution, I made two

Unable to find setter method

2002-11-16 Thread Jim Cobban
I do not understand why I am getting this error message. The line in the JSP is: The definition of the tag in the TLD is: subdivq Census.tags.QuerySubDivTag JSP Performs a query of the census subdivision table based upon the parameters supplied in the request URL

Re: Starting tomcat as user apache instead of root

2002-11-16 Thread jmong
That's one way and I've used that method successfully. The other is if the tomcat user simply needs read access to the files (not write access) just create a group that has both users and change the group perms on the directory for example (assumes that web user is apache and tomcat user is tom

Re: Serving PDF files on Apache2 + Tomcat4.1

2002-11-16 Thread achana
Hi Hugo ! I have been trying to get .pdf files to display. I am using IE4 on Apache/Tomcat. .pdf is an Oracle blob . pdf does not display on IE but gif and jpg all okay. Did you get it working ? -- To unsubscribe, e-mail: For additional commands, e-mail:

Re: building the mod_jk2 in one linux SuSE 8.1

2002-11-16 Thread Dionisio Ruiz de Zarate
how can i build the mod_jk2? what i ust to download? thanks - Original Message - From: "mlh" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Saturday, November 16, 2002 1:46 PM Subject: Re: building the mod_jk2 in one linux SuSE 8.1 > Dionisio Ruiz de Zarate wrote:

Re: openSSL - but at what point ???

2002-11-16 Thread achana
Hi Bill In other words, the discussion about switching SSL on for Tomcat is premised upon a stand-alone Tomcat rather a collaborative Apache-Tomcat scenario ??? TIA -- To unsubscribe, e-mail: For additional commands, e-mail:

Starting tomcat as user apache instead of root

2002-11-16 Thread Randy Paries
Hello, Currently I am starting tomcat as root. This is not the best thing to say the least Both tomcat and apache have to share files. (Actually I upload files using both) So I need to start tomcat as the user apache So how is this best way to do that? Should I do a su - apache -c $TOMCAT_HOME/bi

Re: eth0 ip, not lo ip

2002-11-16 Thread RXZ JLo
Actually I am getting the eth0 IP on some machines, and not on some others. I am not sure why this is happening, though. May be, I thought, its a configuration issue. And no, I can not use jdk1.4. thanks. --- Torsten Fohrer <[EMAIL PROTECTED]> wrote: > > if you use jdk 1.4 and above, > > loo

Re: building the mod_jk2 in one linux SuSE 8.1

2002-11-16 Thread mlh
Dionisio Ruiz de Zarate wrote: i have build it (i think it) and i see in my line one file with the name : mo_jk.so.0.0.0. is this the mod_jk.so file? yes with is the version? mod_jk or mod_jk2? mod_jk -- To unsubscribe, e-mail: For additional commands, e-m

Re: eth0 ip, not lo ip

2002-11-16 Thread Torsten Fohrer
if you use jdk 1.4 and above, look at java.net.NetworkInterface: NetworkInterface.getByName( "eth0" ); should do it, if i read the docu rights, that's it. Torsten Fohrer On Saturday 16 November 2002 10:54, RXZ JLo wrote: > Hi > > InetAddress.getLocalHost().getHostAddress() > > this is return

Servlet filter mapping

2002-11-16 Thread Reynir Hübner
Hi, I have a filter that I want to be used for most paths in my webapplication. The paths in the webapp are created on runtime, and there for I cannot put them in web.xml, so I put url-pattern=/* Something like : ControllFilter /* Which basically means all requests with in the webappl

Re: Programmatic login

2002-11-16 Thread Zsolt Koppany
Hi, it sounds very interesting. Could you provide some implementation details (source code)? Zsolt On Saturday 16 November 2002 08:26, Bill Barker wrote: > setUserPrincipal -- To unsubscribe, e-mail: For additional commands, e-mail:

How to disable autoloading all directories in 'appBase'?

2002-11-16 Thread Ryszard Lach
Hi! Does anybody now how to prevent tomcat (4.0.5) from loading all directories created in directory defined in 'app base' as applications? Look at this setting: webapps contains directories: myhost otherdir and tomcat loads webapps/myhost at context "" webapps

eth0 ip, not lo ip

2002-11-16 Thread RXZ JLo
Hi InetAddress.getLocalHost().getHostAddress() this is returning the lo interface's ip(127...), i want the eth0 interface's ip. Where and what configuration should I change for this? Thanks, Rf. __ Do you Yahoo!? Yahoo! Web Hosting - Let the expe

Re: building the mod_jk2 in one linux SuSE 8.1

2002-11-16 Thread Dionisio Ruiz de Zarate
i have build it (i think it) and i see in my line one file with the name : mo_jk.so.0.0.0. is this the mod_jk.so file? with is the version? mod_jk or mod_jk2? thanks - Original Message - From: "Turner, John" <[EMAIL PROTECTED]> To: "'Tomcat Users List'" <[EMAIL PROTECTED]> Sent: Friday, Nov