Re: JK2 performance tuning

2003-07-18 Thread Simon Pabst
yes its milliseconds, my fault sorry At 00:08 18.07.2003 -0700, you wrote: Simon Pabst wrote: try reasonable values like 10 mins (600) Are you sure that is seconds...I think it's milliseconds. - Original Message - From: joseph lam [EMAIL PROTECTED] To: Tomcat Users List [EMAIL

Re: JK2 performance tuning

2003-07-18 Thread Simon Pabst
As far as i know: (this may be wrong and can be different on your system/configuration - test) Theoretically Apache will do as many connections as childs are used, on Apache 2 the default maximum is 150 i think. I read somewhere that suggested for Tomcat is to use a higher Coyote maxProcessors

Re: JK2 performance tuning

2003-07-18 Thread siddharthgupta
hi there i was able to get in the administration tolls but please tell me what else have to configured as i am not able to see me pages from different machines in the network . only my machine with localhost:8080 displays the site please inform me how to do it .. Siddharth gupta

Howto setup env with WAR in Tomcat and EJB's in WebSphere ?

2003-07-18 Thread Elankath, Tarun (Cognizant)
Hi all, I need to setup a devel environment where web-applications are deployed in the local instance of Tomcat and ejb's are deployed in a remote WebSphere instance. I have created all the remote interfaces deployment descriptors, the ejb jar's, the WAR's and the EAR. I have deployed the EAR

tomcat+apache

2003-07-18 Thread frankie
Dear all, i can build the mod_jk and setup the apache + tomcat + j2sdk+mysql+jdbc sucessfully,now i still have some problems want to ask you!! when i testing the server in local,i can access the jsp file without specific the port

Re: tomcat+apache

2003-07-18 Thread Samuel Le Berrigaud
I think you have only one virtual host in your Tomcat server.xml file Host name=localhost debug=0 appBase=webapps unpackWARs=true autoDeploy=true /Host you should add one with the name coresponding with your IP address like : Host name=10.0.0.1 debug=0 appBase=webapps unpackWARs=true

Tomcat standard error page - security issue

2003-07-18 Thread Mris Orbidns
Hello How can I change standard Tomcat error page ? It prints Tomcat version and our auditors said it might be a security issue. I have servlets and JSP pages in my app. I have error-page directive in all JSP pages, however in case of Null Pointer Exception it's seems not working. thanx in

Re: JK2 performance tuning

2003-07-18 Thread joseph lam
I'm new to Apache 2Can you kindly show me how to config that? Joseph Luciano Kiniti Issoe wrote: Have you already compiled Apache for MaxClients 256 ? - Original Message - From: Simon Pabst [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, July 17, 2003

MemoryRealm and tomcat-users.xml

2003-07-18 Thread Roland Carlsson
Hi! I have created a simple form-based authentication. It works well with the predefined users (tomcat, role1) but it doesn't work at all if I try to add users and roles in the /%tomcat-root%/conf/tomcat-users.xml. My server.xml is not changed from install so it defines a realm in the

Re: Using JMX in a webapp

2003-07-18 Thread Tim Funk
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/mbeans-descriptor-howto.html -Tim Kwok Peng Tuck wrote: If I wish to use JMX in my own webapp, is it necessary for me to write my own implementation of ServerLifecycleListener in the webapp's Context ? Say for example : Context ..

RE: MemoryRealm and tomcat-users.xml

2003-07-18 Thread Abid Ali Teepo
Hi Don't you have to add the roles in your web.xml under the tag security-constraint. And there has to be matching roles in auth-constraint and security-role if you haven't done this...it could be the problem ... Abid -Original Message- From: Roland Carlsson [mailto:[EMAIL

Re: Tomcat standard error page - security issue

2003-07-18 Thread Tim Funk
http://jakarta.apache.org/tomcat/faq/misc.html#error -Tim Mris Orbidns wrote: Hello How can I change standard Tomcat error page ? It prints Tomcat version and our auditors said it might be a security issue. I have servlets and JSP pages in my app. I have error-page directive in all JSP

RE: Location of servlets?

2003-07-18 Thread Abid Ali Teepo
Hi Hve you mapped the servlet in a web.xml file ? If you put the servlet directly under webapps without a catalog containing the WEB-INF catalog that doesn't contain the web.xml file ... it will not work. Abid -Original Message- From: Jeff Howard [mailto:[EMAIL PROTECTED] Sent: 17.

Re: MemoryRealm and tomcat-users.xml

2003-07-18 Thread Roland Carlsson
Heres my tomcat-users.xml tomcat-users role rolename=supervisor / role rolename=tomcat / role rolename=role1 / role rolename=manager / user name=tomcat password=tomcatroles=tomcat,supervisor / user name=role1 password=tomcatroles=role1 / user name=both

RE: MemoryRealm and tomcat-users.xml

2003-07-18 Thread Abid Ali Teepo
It looks correct to me ... your url-pattern will only trigger on that specific file... but i guess you know that .. Abid -Original Message- From: Roland Carlsson [mailto:[EMAIL PROTECTED] Sent: 18. juli 2003 13:06 To: Tomcat Users List Subject: Re: MemoryRealm and tomcat-users.xml

Re: MemoryRealm and tomcat-users.xml

2003-07-18 Thread Roland Carlsson
Yes, i'm only testing with one file, the problem is that I can't get tomcat to use the tomcat-users.xml so that I can login with user test. Regards Roland Carlsson - Original Message - From: Abid Ali Teepo [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Friday, July 18,

Problem using SSL

2003-07-18 Thread Jeremy . Hetzel
I want to use an SSL connection with the Coyote Connector. I I have a problem with my server.xml, here it is : Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=8443 minProcessors=5 maxProcessors=75 enableLookups=true

Tomcat 4.1.24 and Commons FileUpload

2003-07-18 Thread Shaun Kenny
Hi I've been trying to get a web application to work using the Commons FileUpload 1.0 with Tomcat 4.1.24; the servlet using FileUpload will compile (using NetBeans 3.5) but when Tomcat processes it, a ClassNotFoundException is thrown saying javax.servlet.ServletInputStream can't be found. This

RE: Classpath Conundrum (2nd try)

2003-07-18 Thread Norris Shelton
You are working too hard. My start-up icon looks like: C:\dev\tomcat\Tomcat 4.1.18\bin\catalina.bat start That's it. --- Thomas Davis [EMAIL PROTECTED] wrote: --- Norris Shelton [EMAIL PROTECTED] wrote: Remember, these changes were for W2K PRO, should work on other environments but

Re: tomcat+apache

2003-07-18 Thread John Turner
That's only half the solution, you'll also need to define another virtual host in Apache's httpd.conf. John On Fri, 18 Jul 2003 10:41:16 +0200, Samuel Le Berrigaud [EMAIL PROTECTED] wrote: I think you have only one virtual host in your Tomcat server.xml file Host name=localhost debug=0

Re: Tomcat configuration error when displaying default page

2003-07-18 Thread John Turner
You have the ROOT Context disabled in server.xml. John On Thu, 17 Jul 2003 21:48:51 -0400, [EMAIL PROTECTED] wrote: Hi, I've just installed Tomcat 4.X, RH 9, JDK 1.4.2, Apache 2.X and with some help from the list have gotten the tomcat process running. I've set up the server.xml file,

Re: tomcat+apache

2003-07-18 Thread frankie
then how to define the virtual host in apache?any example? That's only half the solution, you'll also need to define another virtual host in Apache's httpd.conf. John On Fri, 18 Jul 2003 10:41:16 +0200, Samuel Le Berrigaud [EMAIL PROTECTED] wrote: I think you have only one virtual

Possible bug in PageContextImpl.java?

2003-07-18 Thread Peter Smith
Hi all, I am trying to write a struts action that will log a message when an exception occurs in a servlet or jsp page. I have the servlet working fine, but the Action does not get the error from the jsp page. I have tracked it to PageContextImpl.java, inside the handlePageException. There, it

Re: tomcat+apache

2003-07-18 Thread John Turner
You mean aside from the extensive documentation available at the Apache site (http://httpd.apache.org/docs-2.0/vhosts/)? You could try here: http://www.johnturner.com/howto/mod_jk_conf.html John On Fri, 18 Jul 2003 20:52:37 +0800, frankie [EMAIL PROTECTED] wrote: then how to define the

RE: Classpath Conundrum (2nd try)

2003-07-18 Thread Shapira, Yoav
Howdy, Here are a few: Custom classloader: http://marc.theaimsgroup.com/?l=tomcat-userm=105703894521593w=2 Another one: http://marc.theaimsgroup.com/?l=tomcat-userm=105176832519964w=2 Dynamic class loading (whatever that means): http://marc.theaimsgroup.com/?l=tomcat-userm=105577963607375w=2

RE: Log4j initialized in each JSP?

2003-07-18 Thread Abid Ali Teepo
It works now :-) Thank you for all the help !! -Original Message- From: Winifred Sanchez [mailto:[EMAIL PROTECTED] Sent: 17. juli 2003 19:20 To: [EMAIL PROTECTED] Subject: Re: Log4j initialized in each JSP? Just a correction: % static Logger logg = Logger.getLogger(jspName); %

RE: Adherence to DTD issue

2003-07-18 Thread Abid Ali Teepo
Hi All servlet must be before any servlet-mapping Do it like this: web-app servlet servlet-nameHello3/servlet-name servlet-classHello3/servlet-class /servlet servlet servlet-nameSurveyServlet/servlet-name

RE: Tomcat Standalone with Jboss

2003-07-18 Thread Shapira, Yoav
Howdy, I need Jboss and tomcat to run on separate VMs (and later on, on diff machines). I need them to interact, as in the EJB would be the JBoss machine and the the servlet/webservice on the another machine. How do i accomplish this? Perferably by starting with some sort of EJB book and

RE: Pl can anybody give me the solution

2003-07-18 Thread Shapira, Yoav
Howdy, The first guy's question was on the right track: Login.jsp or one of the classes it's using is trying to extend a final class. Can you compile the whole thing (including JSPs using JSPC) offline? Yoav Shapira This e-mail, including any attachments, is a confidential business

RE: MemoryRealm and tomcat-users.xml

2003-07-18 Thread Mike Curwen
And you restart Tomcat after changing tomcat-user.xml ? -Original Message- From: Roland Carlsson [mailto:[EMAIL PROTECTED] Sent: Friday, July 18, 2003 6:21 AM To: Tomcat Users List Subject: Re: MemoryRealm and tomcat-users.xml Yes, i'm only testing with one file, the problem

accessing realm data from application

2003-07-18 Thread Gavin O' Gorman
Hey, I'm developing an application that will use realms to authenticate users. I have two issues I'd like to get opinions on. I couldn't find anything similar in the archives dealing with this. Firstly I would like the ability to use different realms in the application. So the user can choose

Apache2 / Tomcat4-1 / mod_jk2.dll / XP setup issues

2003-07-18 Thread Tricky
Hi, I emailed yesterday with my problems, I since followed the tutorial provided very kindly by one of the respondents, but still no joy :( So, what I'm trying to do is to get tomcat running as an apache process. Tomcat appears to be sulking about this idea, and just won't have any of it. Its

2 newbie questions: Apache-tomcat

2003-07-18 Thread Fischer, Ilona
1. is it possibly apply aliases to tomcat? For example: the webapp-root is /www/mywebapp. I want to mount an directory /other/directory/help to the name help (httpd.conf: alias /help other/directory/help). But when i'm calling http://mywebsite/help it crash's with a 404 error:o( . When i'm using

Re: 2 newbie questions: Apache-tomcat

2003-07-18 Thread John Turner
On Fri, 18 Jul 2003 16:45:42 +0200, Fischer, Ilona [EMAIL PROTECTED] wrote: 1. is it possibly apply aliases to tomcat? For example: the webapp-root is /www/mywebapp. I want to mount an directory /other/directory/help to the name help (httpd.conf: alias /help other/directory/help). But when i'm

War file with server.xml context won't unpack, without server.xml context will

2003-07-18 Thread EPugh
Hi all, My question is basically the subject. I have a war file called fortius.war. If I drop it in my webapp/ directory it will not unpack using tomcat 4.1.24. However, if I rename it to anything else, like fortius-new.war, it will! I attribute this to having a context in the server.xml file:

RE: Apache2 / Tomcat4-1 / mod_jk2.dll / XP setup issues

2003-07-18 Thread Atreya Basu
Tricky, I got this problem a while ago. I think it has something to do with how you are starting tomcat. How are you starting it? What are the contents of your workers2.properties and jk2.properties files? Atreya _ Atreya Basu Developer, Greenfield Research

Re: MemoryRealm and tomcat-users.xml

2003-07-18 Thread Roland Carlsson
I have restarted the whole computer a couple of times now. I guess that I have to re-install tomcat, a later version and try with it. I have 4.0.6 that came with netbeans 3.5. Regards Roland Carlsson - Original Message - From: Mike Curwen [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL

RE: Tomcat4-1, Apache2, jk2 setup problem - help!

2003-07-18 Thread Atreya Basu
Tristan, Can you start Tomcat on its own? _ Atreya Basu Developer, Greenfield Research Inc. e-mail: atreya (at) greenfieldresearch (dot) ca -Original Message- From: Tristan [mailto:[EMAIL PROTECTED] Sent: July 17, 2003 12:21 PM To: [EMAIL

RE: 2 newbie questions: Apache-tomcat

2003-07-18 Thread Ralph Einfeldt
If you go this way you you have to be carefull with the alias directive. (If you let tomcat serve everything, you don't need the alias, but that's quite uncommon) If you have static resources that are directly delivered through apache, apache has to alias just this resources, not the the ones

Re: tomcat+apache

2003-07-18 Thread Simon Pabst
If the 404 error comes from Apache your JkMount doesn't work properly (for 10.0.0.1) Look for errors in mod_jk.log or error_log. Also try putting a proper ServerName in httpd.conf (http://httpd.apache.org/docs/mod/core.html#servername) and set UseCanonicalName off

RE: Apache2 / Tomcat4-1 / mod_jk2.dll / XP setup issues

2003-07-18 Thread Tricky
Atreya, Thank you for your help! Good to know someone else had the same problem, gives me hope that I'll get it running. I start tomcat by opening a command prompt, cd to \tomcat\bin, and issuing the startup command. Like so: C:\tomact\binstartup Using CATALINA_BASE:c:\tomcat

apache tomcat mod_webapp

2003-07-18 Thread Nicolas Stienne
Hello I have got a problem ! I want to use Tomcat to run my jsp pages and Apache to serve other pages. My configuration : - jakarta-tomcat-5 (cvs) - apache 1.3 - j2sdk-1_4_2 What I did : (apache was installed) - install jdk - install tomcat - test it : www.monserver.com:8080/

need a working mod_jk2 for RH Apache 2.0.40

2003-07-18 Thread Rob Cartier - Yahoo
I am kind of in a catch 22 I just upgraded my RH server to version 9 this installs a backported httpd server that is 2.0.40 and I believe has the latest patches that would have been 2.0.43 Every time I try to update the rpm from redhat it says it is up-to-date but LoadModule fails saying the

RE: Tomcat4-1, Apache2, jk2 setup problem - help!

2003-07-18 Thread Tricky
Yes, I just have to uncomment the standalone section in server.xml, and I can then access tomcat on http://localhost:8080. However, I really need the two working in unison! Cheers, Tristan -Original Message- From: Atreya Basu [mailto:[EMAIL PROTECTED] Sent: 18 July 2003 16:08 To:

Re: need a working mod_jk2 for RH Apache 2.0.40

2003-07-18 Thread Eric J. Pinnell
I think one way is to remove the rpm from redhat and install the httpd server from apache.org and not use package management . But I was hoping to avoid if I can . That's the best thing you can do. -e - To unsubscribe,

Re: need a working mod_jk2 for RH Apache 2.0.40

2003-07-18 Thread John Turner
You're right...remove the RPM from RH and install Apache from source. At least, that's my advice. It's absolutely painless, its all in my HOWTO if you want to try (except for the part on removing the RPM, as I don't do RPMs in general for msot things): http://www.johnturner.com/howto There

JSP Precompilation / JSPC / JSP servlet mapping

2003-07-18 Thread Zach Gatu
Hi, I've set my Tomcat 4.1.24 installation to production mode, i.e. I've set 'development' to false, 'reloading' to true and 'fork' to true in CATALINA_HOME/conf/web.xml. I have some JSPs that are modified from time to time. My questions are: 1a. Why is the package name for java files

RE: Logging off container authenticated user

2003-07-18 Thread Extance, Paul
We use a filter to cache other data about a user in the session once they have authenticated. (see http://jaffa.sourceforge.net/documentation/presentation/sessions.html or the code @ http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/jaffa/JaffaCore/source/java/o

AW: 2 newbie questions: Apache-tomcat

2003-07-18 Thread Fischer, Ilona
John and Ralph: thanks for help! :o) aliases: in principle- it works :o) but there was an error on tomcat-start: Missing application web.xml, using defaults only. Our application web.xml is located in %docroot%/WEB-INF/classes. Why Tomcat dosn't find them if i call the alias? The Rest of the

RE: Tomcat4-1, Apache2, jk2 setup problem - help!

2003-07-18 Thread Atreya Basu
Okay, Probably leaving the connector for 8080 un-commented won't hurt anything while testing. The fist thing you want to do is make sure your environment variables are set. You should have: JAVA_HOME CATALINA_HOME APACHE_HOME TOMCAT_HOME Also can you post your jk2.properties and

RE: Tomcat4-1, Apache2, jk2 setup problem - help!

2003-07-18 Thread Tricky
Atreya, I've set all the environment variables, and have made the APACHE_HOME addition at your recommendation. My .properties files are appended below. The directories are as follows Apache 2c:\Apache2 Tomact 4.1 c:\tomcat Java 1.4.2 c:\java Thanks for your help! Tristan

Re: AW: 2 newbie questions: Apache-tomcat

2003-07-18 Thread John Turner
Hi - You're welcome. web.xml belongs in WEB-INF, not WEB-INF/classes. John On Fri, 18 Jul 2003 18:51:01 +0200, Fischer, Ilona [EMAIL PROTECTED] wrote: John and Ralph: thanks for help! :o) aliases: in principle- it works :o) but there was an error on tomcat- start: Missing application

RE: Tomcat4-1, Apache2, jk2 setup problem - help!

2003-07-18 Thread Atreya Basu
Alright, Those all look good. But in your jk2.properties file you should put in: handler.list= apr,request,channelJni Next, if you installed the Apache there should be an applet on the taskbar, next to the time. You shouldn't have to start Tomcat separately. Simply click on the applet and

AW: AW: 2 newbie questions: Apache-tomcat

2003-07-18 Thread Fischer, Ilona
Sorry, John ... ist was an typing error. Of course, our web.xml is in the right path : %docroot%/WEB-INF... its friday...;o) -Ursprüngliche Nachricht- Von: John Turner [mailto:[EMAIL PROTECTED] Gesendet: Freitag, 18. Juli 2003 19:12 An: Tomcat Users List Betreff: Re: AW: 2 newbie

RE: Classpath Conundrum (2nd try)

2003-07-18 Thread Thomas Davis
For the sake of argument, I moved all the classes from /native into /WEB-INF/classes and I moved all the classes from /foreign into /WEB-INF/lib. Also, for the sake of being extra careful, I packaged up everthing in /WEB-INF/lib into classes.jar (so there's two copies there, the raw directory

RE: Classpath Conundrum (2nd try)

2003-07-18 Thread Shapira, Yoav
Howdy, For the sake of argument, I moved all the classes from /native into /WEB-INF/classes and I moved all the classes from /foreign into /WEB-INF/lib. Also, for the sake of being extra careful, I packaged up everthing in /WEB-INF/lib into classes.jar (so there's two copies there, the raw

Re: JSP Precompilation / JSPC / JSP servlet mapping

2003-07-18 Thread Justin Ruthenbeck
At 09:24 AM 7/18/2003, you wrote: Hi, I've set my Tomcat 4.1.24 installation to production mode, i.e. I've set 'development' to false, 'reloading' to true and 'fork' to true in CATALINA_HOME/conf/web.xml. If you're in production, reloading should be false (you don't want to poll for changed

ErrorReportValve not working after server.xml changes

2003-07-18 Thread Patrick L Archibald
Hi I'm not getting the standard Tomcat error message pages any more when errors occur. I get a bland page with the following text Additionally, error 404 Not Found was encountered while attempting to use ErrorDocument to handle the request. I guess I don't have the ErrorReportValve

Tomcat 5.0 w/ JSPX and TAGX

2003-07-18 Thread Ammai.com
Hi there, I'm using Tomcat 5.0.4 and I think it is the best Tomcat release to date. Everything works fine and it seems faster than the 4.x series. Anyways, I was testing JSP 2.0 by writing a sample JSP Document (JSPX) and everything worked fine. Then I tried to use a tag file by writing a

RE: Tomcat4-1, Apache2, jk2 setup problem - help!

2003-07-18 Thread Tricky
Still no joy! :( The line 'handler.list= apr,request,channelJni' was definitely in my jk2.properties, but I must have deleted the line return when I emailed it by accident. When I start apache, http://localhost/examples gives me the same Internal Server Error page. I've also noticed the

RE: Tomcat4-1, Apache2, jk2 setup problem - help!

2003-07-18 Thread Atreya Basu
Tristan, I had a similar problem with ClassNotFoundException. What I had to do was find all the jar files and uncompress them into the lib directory. That was about 10MB worth of Jar files and it took me about 30 mins to do, but that was the only way to get it running.

'Package does not exist' and 'cannot resolve symbol' woes

2003-07-18 Thread mnewby
Greetings, oh most gracious and knowledgable tomcat-users community. I'm hopeful someone(s) of you can shed some light on our problem. We're encountering a 'Package does not exist' and 'cannot resolve symbol' errors when attempting to load some JSP pages. This error appears to be one that's

Re: Tomcat4-1, Apache2, jk2 setup problem - help!

2003-07-18 Thread John Turner
Wait. ClassNotFoundException != NoClassDefFoundError They're completely different. NoClassDefFoundError typically means that there are multiple copies of a JAR file somewhere, or multiple copies of a class file, and the one Tomcat expects is not the one it is finding. Was this a clean

RE: 'Package does not exist' and 'cannot resolve symbol' woes

2003-07-18 Thread Shapira, Yoav
Howdy, Let's get back to basics to simplify things: - Do a clean installation of tomcat to a new location. Don't install Apache, don't connect to the existing apache, leave it standalone tomcat. The part that's got me stumped is that I've got multiple copies of the

RE: Tomcat 5.0 w/ JSPX and TAGX

2003-07-18 Thread Raible, Matt
Maybe this will help: tags:xhtmlbasic xmlns:tags=urn:jsptagdir:/WEB-INF/tags xmlns:jsp=http://java.sun.com/JSP/Page; xmlns:fmt=http://java.sun.com/jstl/fmt_rt; xmlns=http://www.w3.org/1999/xhtml; jsp:directive.page contentType=text/html /

RE: Tomcat4-1, Apache2, jk2 setup problem - help!

2003-07-18 Thread Tricky
OK, I think I've finally managed to fix it. What I did was change the part of workers2.properties that read: --- workers2.properties snip --- # Define the parameters for the Java Virtual Machine [vm:] info=Parameters used to load a JVM in the server process OPT=-Djava.class.path=c:/tomcat/lib

How do I get the total number of users logged into my app

2003-07-18 Thread Kevin Ritter
I would like to know if there is a parameter or class or JSP that I could use to return the total number of users/sessions that are using/logged into my application. Thank you in advance. Kevin Ritter - To unsubscribe, e-mail:

RE: How do I get the total number of users logged into my app

2003-07-18 Thread Angus Mezick
Look in the manager app. -Original Message- From: Kevin Ritter [mailto:[EMAIL PROTECTED] Sent: Friday, July 18, 2003 3:17 PM To: 'Tomcat Users List' Subject: How do I get the total number of users logged into my app I would like to know if there is a parameter or class or JSP

RE: How do I get the total number of users logged into my app

2003-07-18 Thread Kevin Ritter
Thanks for the quick response; however, when I do I get the following error java.lang.SecurityException: Servlet of class org.apache.catalina.servlets.ManagerServlet is privileged and cannot be loaded by this web application The url is http://localhost:8080/manager/sessions?path=/LMS Again,

RE: Tomcat4-1, Apache2, jk2 setup problem - help!

2003-07-18 Thread Atreya Basu
Great, Thanks for the feedback. I'll add that to the HOWTO. Atreya _ Atreya Basu Developer, Greenfield Research Inc. e-mail: atreya (at) greenfieldresearch (dot) ca -Original Message- From: Tricky [mailto:[EMAIL PROTECTED] Sent: July 18, 2003 4:02

Re: Tomcat 5.0 w/ JSPX and TAGX

2003-07-18 Thread Ammai.com
Hi Matt, The suggestion you gave is exactly what's in my JSPX page so that isn't the problem. The problem lies in the TAGX file itself. It can't find the prefix of jsp:doBody/ in the TAGX file. Any help would be nice. Thanks, Vinu. By the way Matt, your blog is one of the best I've ever seen.

Running Tomcat as Non-Root

2003-07-18 Thread Latesha Williams
Is it possible to run Tomcat as a non-root user, with root as the owner of the entire Tomcat directory structure and grant file/directory permissions to the non-root account? Please advise. - To unsubscribe, e-mail: [EMAIL

RE: Running Tomcat as Non-Root

2003-07-18 Thread Shapira, Yoav
Howdy, Are you running on a unix OS? If so, root is normally required if you want to run on a port 1024. There are workarounds, but they vary in complexity and portability, and none are that good at this point. If you're running on a port higher than 1024, than you don't need to run as root

RE: Running Tomcat as Non-Root

2003-07-18 Thread Lawrence, Gabriel
Has any one submitted a request to get dropping privs into the JDK? Or escalating privs to grab one of these ports and then dropping them again? As I see this request over and over again on this list I think there is a large number of people who would like to see it or would vote for it in the

RE: Running Tomcat as Non-Root

2003-07-18 Thread Shapira, Yoav
Howdy, Huh??? Have you looked at java.security.AccessController#doPrivileged() ? The issue is that port binding is a native operation and there's no bridge between the JDK java.security.Principal and the native user credentials needed to open the port. Yoav Shapira Millennium ChemInformatics

RE: Running Tomcat as Non-Root

2003-07-18 Thread Lawrence, Gabriel
Right. I'm saying has anyone looked into submitting something to sun asking them to make it possible to start up a process as root an then drop down to another user like most native services do? I want that bridge between native user credentials and capabilities, and the ability to switch which

Re: Running Tomcat as Non-Root

2003-07-18 Thread John Turner
So every Java-based service would need its own JVM instance? Would you want your Java-based MTA on port 25 running as your Tomcat user or vice versa? Isn't that how it would work if you configured the user account in the JVM...all services would run as the same user? Seems like that would

RE: Running Tomcat as Non-Root

2003-07-18 Thread Latesha Williams
To reply to your previous question: yes, running on a unix OS. . .also, running on ports above 1024, but receiving Connection Refused error messages in localhost_log when starting Tomcat as a non-root user. -Original Message- From: Lawrence, Gabriel [mailto:[EMAIL PROTECTED] Sent:

RE: Running Tomcat as Non-Root

2003-07-18 Thread Lawrence, Gabriel
So I'm going to take that as a no. No one has bothered to pester sun about this. And yes, the way things tend to work today is that people run these things with extra JVMs, although if its running on port 25 they'd all have to be running as root. So I realize that its possible that you could

calling methods

2003-07-18 Thread Ben Austin
I have a method (myMethod) in a servlet (servletA). I want to use myMethod in servletB. I could just copy myMethod into servletB, but then I would have to update both copies of my Method whenever I wanted to change something. Is there a way to call myMethod in servletA from servletB?

Re: JSP Precompilation / JSPC / JSP servlet mapping

2003-07-18 Thread Lukas Bradley
Then, the declarations and mappings for the servlets which were generated during the precompilation must be added to the web application deployment descriptor. Insert the ${webapp.path}/WEB-INF/generated_web.xml at the right place inside the ${webapp.path}/WEB-INF/web.xml file. Restart the web

Re: calling methods

2003-07-18 Thread RSEQUEIRA
Move this method out to a java class and then just instantiate this class (and then access the method) from both servlets. RS Ben Austin

Re: Running Tomcat as Non-Root

2003-07-18 Thread John Turner
Not for me. I only have one Java service and that's Tomcat. I run Apache on port 80, and everything is just fine, and I don't have to worry (too much) about anything, as Apache's downgrading mechanism is well tested. So, as a sys-admin, there's no benefit to me whatosever, as I will most

Re: Running Tomcat as Non-Root

2003-07-18 Thread Lukas Bradley
Yes, but is this a Java problem, or is this an OS related problem/feature? IMHO, since UNIX/LINUX is doing the restricting of port traffic, the problem resides with the OS, not with Java. Adding an API to shift the native security model is out of scope. Why don't particular flavors of the OS

Re: Running Tomcat as Non-Root

2003-07-18 Thread John Turner
On Fri, 18 Jul 2003 17:01:46 -0400, Lukas Bradley [EMAIL PROTECTED] wrote: Why don't particular flavors of the OS allow for 1024 to be non-root? Lukas Because then ANYONE with a user account could bind a service to those ports. Then, to protect your server and your users, your only recourse

RE: Running Tomcat as Non-Root

2003-07-18 Thread Lawrence, Gabriel
It's a java problem as the OSes that block access to 1024 ports give native code api's to open these ports and then loose the root privs. Java should allow those of us who are interested in running java services to have the option to take advantage of this. I've filed a bug. When I get a bug

Re: How do I get the total number of users logged into my app

2003-07-18 Thread Tim Funk
When you declare your webapp, it must be privledged. Look at the manager webapp declaration. -Tim Kevin Ritter wrote: Thanks for the quick response; however, when I do I get the following error java.lang.SecurityException: Servlet of class org.apache.catalina.servlets.ManagerServlet is

Re: JSP Precompilation / JSPC / JSP servlet mapping

2003-07-18 Thread Justin Ruthenbeck
At 01:46 PM 7/18/2003, you wrote: ...An appropriate token placed in the web application deployment descriptor may also be used to automatically insert the generated servlet declarations and mappings using Ant filtering capabilities. This is actually how all the webapps distributed with Tomcat are

(How to) Tomcat as a Linux service

2003-07-18 Thread Jose Euclides da Silva Junior - DATAPREVRJ
Hi everybody, where can i find tips about how to make TomCat be a Linux's service? Regards, Euclides. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: (How to) Tomcat as a Linux service

2003-07-18 Thread Jeremy Whitlock
Euclides, Save the attached file in /etc/init.d/ and update the paths to suit your needs. Once that's done, you can use it like any other service. Later, Jeremy -Original Message- From: Jose Euclides da Silva Junior - DATAPREVRJ [mailto:[EMAIL PROTECTED] Sent: Friday, July

MOD_JK2 Error (shm.fil 13 Permission Denied)

2003-07-18 Thread ykp_java
My Apache HTTPD and Tomcat installation cosists for following version: 1. RedHat 8.0 2. Apache HTTPD 2.0.47 (from source) 3. Tomcat 4.1.24 (binary) 4. JK2 Connector (jakarta-tomcat-connector-4.1.24-src) I followed all the setup instructions to install JK2 connector. I am running HTTPD and Tomcat

Nedd Help with mod_jk or mod_jk2 in HPUX.

2003-07-18 Thread jume
Hi All, Does anyone have a mod_jk or mod_jk2 connector compiled for HPUX 11 they can share? Thanks Julio - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: (How to) Tomcat as a Linux service

2003-07-18 Thread ykp_java
Tried running tomcat as service using the attached file, but got this message: env: /etc/init.d/tomcatd: No such file or directory - Original Message - From: Jeremy Whitlock [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Friday, July 18, 2003 3:43 PM Subject: RE: (How

How to clean objects in user's session

2003-07-18 Thread Imran Balkhi
Hello, Our application is divided into multiple vertical views (ie, multiple company). User can work in only one vertical slice at a time (ie, abc company). Currently users have to logout and login again to change the vertical. There is a business requirement to provide ability to switch

TC5 clustering info?

2003-07-18 Thread Chris Halstead
Hello all, Is there any resource out there that has in-depth information regarding the TC5 clustering implementation? I have been able to set it up and play around with it some, but I still have some questions. BTW - I was unable to get proper functioning from a cluster on RH9 with TC 5.0.4 and

Re: apache tomcat mod_webapp

2003-07-18 Thread Bill Barker
The configuration for mod_webapp in server.xml in TC 5 has been removed. You could try re-adding it, but it likely won't work. mod_webapp is simply not going to be supported in TC 5 (unless, possibly, there is someone that wants to take charge of it and get it to work ;-). Nicolas Stienne [EMAIL

Re: Running Tomcat as Non-Root

2003-07-18 Thread Bill Barker
While this is flaming out of control ;-): Let me point out that there is jakarta-commons-sandbox/daemon that allows you to do this right now (i.e. launch as root, Tomcat binds to port 80, and then setuid to a non-privileged user before Tomcat actually handles any request). It also allows you to

Re: How do I get the total number of users logged into my app

2003-07-18 Thread Bill Barker
I'd go for something a little safer myself. Declaire a HttpSessionListener something like: public class MyCounter implements HttpSessionListener { private boolean registered = false; private int sessionCount = 0; public void sessionCreated(HttpSessionEvent ev) {

Tomcat doesn't shutdown: java.net.ConnectException: Connection refused

2003-07-18 Thread Daniel Farinha
It took way too long to find a solution. Others in this list have described this problem, so hopefully this might solve it for them too. The problem: Tomcat starts and runs fine. It listens on 8080 as usual, and does its stuff. But when you try shutting down, you get the following error:

RE: Running Tomcat as Non-Root

2003-07-18 Thread Lawrence, Gabriel
Hey, that looks really useful. Thanks for pointing it out. Exactly what I'd like to see drawn into the platform, but I guess since its here already no need to wait :-) -gabe -Original Message- From: Bill Barker [mailto:[EMAIL PROTECTED] Sent: Fri 7/18/2003 7:40 PM To: [EMAIL

  1   2   >