RE: Running Tomcat as Non-Root

2003-07-21 Thread Ralph Einfeldt
I don't see any need for this. You can run a java service on ports 1024 without being root with portmappers, proxies, iptables and several other tools, that let sysadmins open well defined holes without compromising the security. In the long term I would like to see ACL's in the os, that

Re: Where can i find mod_webapp ?

2003-07-21 Thread Nicolas Stienne
Does it work with Apache 1.3 (I don't think so...) ? mod_webapp is deprecated, you should use mod_jk(2): http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/connectors.html Yann Hi, i am looking for a connector between Apache 1.3 and TomCat 4.1.18. Can anybody help me?

Re: apache tomcat mod_webapp

2003-07-21 Thread Nicolas Stienne
ok. So I try with Tomcat 4.1.24 : [root /home]# tail -f /home/tomcat/logs/catalina.out at org.apache.catalina.core.StandardServer.stop(StandardServer.java:2213) at org.apache.catalina.startup.Catalina.start(Catalina.java:543) at

Config file for OpenSSL.exe

2003-07-21 Thread Cui Xiaojing-a13339
Hello All, I am configing Apache+SSL. A config file will be needed for OpenSSL.exe. I try to download the config file from http://tud.at/programm/apache-ssl-win32-howto.php3, but failed. Could you please give me a help about from where I can get the config file? Thanks a lot. Regards,

Re: Not finding my servlet ....

2003-07-21 Thread Simon Pabst
Tomcat Contexts are configured in server.xml If docBase is a relative path it points to a sub-directory of tomcat/webapps If you want to have your application directory somewhere else you need to use an absolute pathname for docBase. The docBase directory should contain the following

RE: trouble precompiling JSPs

2003-07-21 Thread Abid Ali Teepo
i think there should be no space between -d and the path, and no space between the two paths, i think u must use ; to separate the paths ... -Original Message- From: Atreya Basu [mailto:[EMAIL PROTECTED] Sent: 21. juli 2003 06:09 To: Tomcat Users List Subject: trouble precompiling JSPs

SSL Compress Protocol

2003-07-21 Thread HuabingDu
I use Tomcat 4.1.18's SSL connector and MS IE6,and find that it have not implement compress protocol. Is IE6 or Tomcat not implements it? Which version would implement it? If I use compress filter(servlet 2.3),that can match all type of Browser for all ContentType? HuabingDu

Re: how two web applications share a java bean object ?

2003-07-21 Thread Feng-Chang
YES! What I ask is how to get a bean instance in one web application that is created in another web application. Put class file in Shared,I can use the class in different web applications,but I still CAN'T get the bean value in one web application that is set in another web application. Martin.

Request Your Help For Installion

2003-07-21 Thread Ravi Jayasekara
Dear I installed Tomcat 4.0 which is 4.40Mb in size in JDK1.3 .But I have a problem when I am compiling servlets.I give a error javax.servlet.* package does't exist .Can't resovle a symbol . My machine run in WIN 2000 Professional Edition.But JSP files works properly.I write servlets and

Pls Help~ apache tomcat symbolic link

2003-07-21 Thread wing
Hi all, I'm using apache tomcat4.1, in webapps i made a symbolic link for my directory content, and I've modified the context configuration with below: Resources className=org.apache.naming.resources.FileDirContext allowLinking=true / files inside the content can be accessed if i use port

Re: Location of servlets?

2003-07-21 Thread bernd pier
if you try the example servlet Hello World the url must be http://localhost:8080/examples/servlet/HelloWorldExample; cause this servlet is located in webapps/examples/WEB-INF/classes. bernd Jeff Howard schrieb: Thanks for everyone's help earlier today. Upgrading to JDK 1.4.2 from 1.2.2 allowed

SSL+HTTPS only via localhost:8843 (Tomcat server)

2003-07-21 Thread Beatle Stevens
have the following problem: I installed the SSL support for Tomcat 4.0 and almost everything works. For instance when I type https://localhost:8443/ into my browser it works, but how can I acces my localhost addres from another computer? or in other words what should I type instead of

Has anyone managed to get Tomcat 4.1.x to make EJB calls to Weblogic 8?

2003-07-21 Thread Will Hartung
We already have Tomcat 4.1.18 talking well to Weblogic 5.1, and it was quite the event of tearing jars et al apart and getting them placed in the proper spots of the classloader hierarchy. I'm now struggling with trying to do the same integration of Tomcat 4.1.18 to Weblogic 8.1, and it's not

Re: What order are jars used in the WARs lib directory?

2003-07-21 Thread Will Hartung
From: Tim Funk [EMAIL PROTECTED] Sent: Thursday, July 17, 2003 5:43 PM From the spec: The web application classloader must load classes from the WEB-INF/ classes directory first, and then from library JARs in the WEB-INF/lib directory. So if you have patches - don't JAR them. Since the

ensim and permissions

2003-07-21 Thread Jen Beaven
Using tomcat 4.0.3 under ensim; can't figure out permissions. I get this error (or like this): access denied (java.io.FilePermission /var/www/html/WEB-INF/Torque.properties read) Of course under ensim the real file is under /home/virtual/sitexx/fst/var/www... not /var/www... the tomcat policy

tomcat, jk2 and apache

2003-07-21 Thread Seamus Hanly
Hi, I am trying to set up Apache/2.0.40 to talk to Tomcat 4.1.24 using jk2 connector on Red Hat 9.0. This is my first time setting something like this up so can you please tell me where I can get a version mod_jk2.so compatible with Apache/2.0.40 ? or should I use mod_jk.so? or some other

Re: Request Your Help For Installion

2003-07-21 Thread Bikash Paul
Hi, You have to set servlet.jar file on classpath before compiling.That file is located in TOMCAT_HOME/common/lib/servlet.jar; Hope this will help you. Cheers Bikash --- Ravi Jayasekara [EMAIL PROTECTED] wrote: Dear I installed Tomcat 4.0 which is 4.40Mb in size in JDK1.3 .But I have a

Re: apache tomcat mod_webapp

2003-07-21 Thread Nicolas Stienne
I just had to uncomment the part that talk about the warp connection in the server.xml file... Now, I will search some information about virtualHost... ok. So I try with Tomcat 4.1.24 : [root /home]# tail -f /home/tomcat/logs/catalina.out at

for my mod_jk : WARP vs AJP13 ???

2003-07-21 Thread achana
Hi. I'm struggling a bit trying to coax server.xml to auto-generate an acceptable copy of mod_jk.conf for me after modifying my workers.properties and adding some virtual hosts. AS I understand it, WARP is the alternative connector-protocol which I can use instead of AJP13. Are there any reasons

Re: tomcat, jk2 and apache

2003-07-21 Thread Eric J. Pinnell
Hi, Look through the archives and you will find numerous discussions on this subject. -e On Sun, 20 Jul 2003, Seamus Hanly wrote: Hi, I am trying to set up Apache/2.0.40 to talk to Tomcat 4.1.24 using jk2 connector on Red Hat 9.0. This is my first time setting something like this up so

RE: for my mod_jk : WARP vs AJP13 ???

2003-07-21 Thread Ralph Einfeldt
No it'sdeprecated and not any longer supported. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, July 21, 2003 10:40 AM To: [EMAIL PROTECTED] Subject: for my mod_jk : WARP vs AJP13 ??? Are there any reasons to prefer WARP over AJP ???

Re: tomcat, jk2 and apache

2003-07-21 Thread Zach Gatu
I've not used JK2 but I've had sucess with Tomcat + Apache (1.3.27 and 2.0.44) in Red Hat using mod_jk. You can download mod_jk for your OS here: http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk/release/v1.2.4/bin/ If you download for *nix, make surre you chmod it to executable

Re: Re: Tomcat XML example

2003-07-21 Thread Martin Gainty
Display Error Reported in bugzilla [21740] Martin - Original Message - From: Christian FEARD [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, July 20, 2003 2:47 AM Subject: Re: Tomcat XML example Martin, try putting ':jsp' after 'xmlns' christian

How to configure TOMCAT with AWStats (logfile analyzer)

2003-07-21 Thread Zaragoza, Carles
Hi, I would like to configure TOMCAT 4.X with AWStats (a logfile analyzer http://awstats.sourceforge.net/ http://awstats.sourceforge.net/ ) There are a HOWTO guides for Apache and IIS. Does anybody out there has integrate with TomCat ? Could

mod_jk2 + Tomcat 4.1.24 - no sessions?

2003-07-21 Thread Marc Palmer
Hi, I upgraded my Tomcat 4.1.18 to 4.1.24, connected to Apache 2 using mod_jk2. However now Tomcat is not succeeding in sending any JSESSIONID cookies to clients if they connect via Apache. i.e: http://myhost:8080/myapp --- Tomcat sends JSESSIONID cookie OK http://myhost/myapp ---

mod_jk ErrorReportValve

2003-07-21 Thread Patrick L Archibald
Hi Does the ErrorReportValve work with mod_jk? I'm having trouble with it. I'm running iSeries, jdk 1.4, mod_jk 1.2.4, Apache 2.0.43, Tomcat 4.1.24. Thanx, PLA - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

RE: Loosing DBCP object - how to solve it?

2003-07-21 Thread Angus Mezick
Are you using mysql? If so, are you using this as your jdbc url: jdbc:mysql://MACHINE_NAME/DBNAME?autoReconnect=true -Original Message- From: Jose Euclides da Silva Junior - DATAPREVRJ [mailto:[EMAIL PROTECTED] Sent: Saturday, July 19, 2003 1:17 PM To: '[EMAIL PROTECTED]'

RE: SSL+HTTPS only via localhost:8843 (Tomcat server)

2003-07-21 Thread Murray
You've not specified what platform you are using. Do you have a firewall installed on your tomcat server computer and, if so, is it configured to allow access to port 8443? Have you tried port 8080 via the same IP address (http://your.ip.addr:8080/)? Murray -Original Message- From:

RE: Redirect to home page on logon

2003-07-21 Thread Tarek M. Nabil
Thanks, I got the idea. But I imagine that since my application is protected, any request I make will be redirected to the login page. And since telnet doesn't support sessions, I don't I'll every get rid of that, or can I? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL

RE: How to configure TOMCAT with AWStats (logfile analyzer)

2003-07-21 Thread Shapira, Yoav
Howdy, You can do one of three things. A prerequisite to all three is to turn on Tomcat's AccessLogValve (I like the combined pattern myself, but the default common pattern works as well). - Use something easier than AWStats (IMHO, YMMV): Webalizer, or httpAnalyze for example. - Use AWStats in

RE: Not finding my servlet ....

2003-07-21 Thread Shapira, Yoav
Howdy, I have Tomcat installed and running. I'm trying to get it to see a test sevlet but it can't seem to find it. I started looking at the If you post the exact error you'll likely get the cause and solution very quickly ;) example code that comes with the 4.1.24 release. I can call the

Re: Redirect to home page on logon

2003-07-21 Thread Tim Funk
Telnet should support the full HTTP Spec. ;) The tricky part is knowing the headers to send with your request and remembering any special headers you get back for your next request. For example: = [EMAIL PROTECTED]: telnet jenny 80 Trying 10.0.1.20 ... Connected to jenny Escape

RE: Recycling Tomcat

2003-07-21 Thread Shapira, Yoav
Howdy, Actually, it looks like the first problem is with your administrator ;) The second is likely with your webapps: why are they crashing tomcat? ;) But given that neither of those can be changed, it seems your problem is OS-specific. There's no tomcat lock file with the default installation

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

2003-07-21 Thread Shapira, Yoav
Howdy, Annoying problem, good solution, good post. Thanks! Yoav Shapira Millennium ChemInformatics -Original Message- From: Daniel Farinha [mailto:[EMAIL PROTECTED] Sent: Friday, July 18, 2003 11:50 PM To: [EMAIL PROTECTED] Subject: Tomcat doesn't shutdown: java.net.ConnectException:

Re: problem with auto-generating mod_jk

2003-07-21 Thread John Turner
In my experience, if you have more than one virtual host, and more than one webapp, you are better off making the changes to httpd.conf manually. The auto stuff really doesn't work too well for more than the most simple configurations. Search the archives within the last two weeks (and also

Re: Where can i find mod_webapp ?

2003-07-21 Thread John Turner
Mod_jk works just fine with Apache 1.3. JK2 might be a little more difficult, but it might work. John On Mon, 21 Jul 2003 09:22:35 +0200, Nicolas Stienne [EMAIL PROTECTED] wrote: Does it work with Apache 1.3 (I don't think so...) ? mod_webapp is deprecated, you should use mod_jk(2):

Re: Solved!

2003-07-21 Thread John Turner
On Sun, 20 Jul 2003 23:18:28 +0200, Simon Pabst [EMAIL PROTECTED] wrote: IMO the auto-generated mod_jk.conf is only good for learning the proper setup anyway ;-) Agreed. It doesn't even work for complex environments. Single dev environments and for newbie learning its great, but if you have

Re: tomcat+apache

2003-07-21 Thread John Turner
mod_jk.conf is included into httpd.conf. If you make your changes in mod_jk.conf, they are included by default in httpd.conf. There is no need to make them twice. My HOWTO covers everything step-by-step, I really can't think of a way to describe what's needed any better:

Handling auth failure

2003-07-21 Thread Christian J. Dechery - ACCENTURE
I have successfully implemented authentication in Tomcat, but I don't want that 403 screen to ever show up. Is that possible? I'd like that, for whatever reason, the login screen would always show indicating an authentication failure and requesting a new login. If that's not possible, how can I

Re: for my mod_jk : WARP vs AJP13 ???

2003-07-21 Thread John Turner
Just the opposite: AJP is most definitely preferred over WARP. Use WARP if you want, but it is currently not actively developed or supported, and there is no support for it at all planned for Tomcat 5. Don't get caught up in the auto-generation. Take it from me, please: if you have more than

RE: Handling auth failure

2003-07-21 Thread Abid Ali Teepo
Add this to your web.xml and make a page called error.jsp . error-page error-code403/error-code location/error.jsp/location /error-page -Original Message- From: Christian J. Dechery - ACCENTURE [mailto:[EMAIL PROTECTED] Sent: 21.

Re: How to assign a context to a web application manually?

2003-07-21 Thread John Turner
I'd have to say the DOCUMENTATION would be a good place to start (hint, hint): http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/context.html John On Mon, 21 Jul 2003 02:07:40 +0100 (BST), seera naveen [EMAIL PROTECTED] wrote: Hi, Where can I find information about Context? Currently I

RES: Handling auth failure

2003-07-21 Thread Christian J. Dechery - ACCENTURE
where exactly in web.xml does this error-page go? ___ :: Christian J. Dechery :: Accenture do Brasil :: CHT - Solutions Operations :: [EMAIL PROTECTED] -Mensagem original- De: Abid Ali Teepo [mailto:[EMAIL PROTECTED] Enviada em: segunda-feira, 21 de julho

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

2003-07-21 Thread Kevin Ritter
I never thought about doing it this way. Great solution! I'll let you know how it turns out. With kind regards, Kevin Ritter -Original Message- From: Bill Barker [mailto:[EMAIL PROTECTED] Sent: Friday, July 18, 2003 9:57 PM To: [EMAIL PROTECTED] Subject: Re: How do I get the total

Re: RES: Handling auth failure

2003-07-21 Thread Peter Smith
Hi Christian, Its after the welcome-list. You can look at the dtd (http://java.sun.com/dtd/web-app_2_3.dtd) for more info. Peter -- Peter Smith Software Engineer InfoNow Corporation From: Christian J. Dechery - ACCENTURE [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] Date:

RE: RES: Handling auth failure

2003-07-21 Thread Kevin Ritter
Hi Christian, Here the web-app element that show where the error-page element can be inserted: !ELEMENT web-app (icon?, display-name?, description?, distributable?, context-param*, filter*, filter-mapping*, listener*, servlet*, servlet-mapping*, session-config?, mime-mapping*,

RE: trouble precompiling JSPs

2003-07-21 Thread Atreya Basu
No unfortunately that didn't help. Here is what I typed: ./jspc.sh /tmp/Stoichiometric.jsp What I got in return was: at org.apache.jasper.JspC.locateUriRoot(JspC.java:628) at org.apache.jasper.JspC.execute(JspC.java:759) at org.apache.jasper.JspC.main(JspC.java:823) If

Application_scope

2003-07-21 Thread Elif Akten
Hi, I am using tomcat4.0 and developing a web application with jsp. In my application I want to an admin to open a session. If the session is not initialized user cant open the page, forward them notinitialized.jsp I initialize session and put some variables to session in application_scope in

Invalid direct reference to form login page

2003-07-21 Thread Christian J. Dechery - ACCENTURE
Sometimes I get this error message... can someone give me a hint on the probable causes?? ___ :: Christian J. Dechery :: Accenture do Brasil :: CHT - Solutions Operations :: [EMAIL PROTECTED]

RE: Application_scope

2003-07-21 Thread Shapira, Yoav
Howdy, When the admin opens a session, the session is associated with the admin, not the user, so the user's session is still null/empty ? Yoav Shapira Millennium ChemInformatics -Original Message- From: Elif Akten [mailto:[EMAIL PROTECTED] Sent: Monday, July 21, 2003 10:05 AM To:

RE: Invalid direct reference to form login page

2003-07-21 Thread Abid Ali Teepo
Usually you are interested in some secured resource, and you try to get it. Because it's secured you will be redirected to a login-page, and after authenticating yourself you will be redirected to the requested resource. If you go directly to the login-page, where will it redirect you when you

RES: Invalid direct reference to form login page

2003-07-21 Thread Christian J. Dechery - ACCENTURE
yeah... I figured that. I have a logoff page, and it used to call the login in case the user wanted the re-authenticate... now I just have to link to the index page instead of the login page and everything works fine. Thanks! ___ :: Christian J. Dechery :: Accenture

Problems compiling tomcat

2003-07-21 Thread Larry Griffith
I'm new to this list, so please pardon any obvious idiocies. When I compile Tomcat I'm getting syntax errors. My setup: Server: SUN Enterprise 250 running Solaris 9 uname -a output: SunOS africa 5.9 Generic sun4u sparc SUNW,Ultra-250 Java version: 1.4.2 (SUN version of javac) Ant version: 1.5.3

JDBC - driver and connection pooling question.

2003-07-21 Thread Kevin Passey
I have just loaded 4.1.24 and want to do as much as I can thru the admin and manager functions without hand crafting the server.xml file. Now this may not be possible but here goes:- Previously I put the connection pooling entries in the server.xml file like this:- Context docBase=adultcf

Re: mod_jk2 + Tomcat 4.1.24 - no sessions?

2003-07-21 Thread Simon Pabst
You need to use tomcatId jvmRoute for stickySession to work (don't know if it works with default settings), for example: workers2.properties: [channel.socket:localhost:8009] tomcatId=tomcat1 (http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk2/configwebcom.html#workers) server.xml:

RE: Handling auth failure

2003-07-21 Thread Mike Curwen
Check the DTD !-- The web-app element is the root of the deployment descriptor for a web application. -- !ELEMENT web-app (icon?, display-name?, description?, distributable?, context-param*, filter*, filter-mapping*, listener*, servlet*, servlet-mapping*, session-config?, mime-mapping*,

TomCat 4.1.24 - alias problem?

2003-07-21 Thread Volker
Hi, after installing TomCat 4.1.24 and making it run correctly with mod_jk (jk1.2) I still have a little problem which I did not have in the former TomCat 3.2.3 environment: I have a HttpTunnelingServlet.class located under /tomcat/webapps/ROOT/WEB-INF/classes/com/net/chat/util/tunnel3 which

Loading context

2003-07-21 Thread Luc Foisy
How would I go about loading a new context so that it is live, without restarting the tomcat server? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: mod_jk2 + Tomcat 4.1.24 - no sessions?

2003-07-21 Thread Marc Palmer
On Mon, 21 Jul 2003 16:43:05 +0200, Simon Pabst [EMAIL PROTECTED] wrote: You need to use tomcatId jvmRoute for stickySession to work (don't know if it works with default settings), for example: workers2.properties: [channel.socket:localhost:8009] tomcatId=tomcat1

Re: TomCat 4.1.24 - alias problem?

2003-07-21 Thread John Turner
Hi - Check servlet-mapping in the web.xml DTD. Also: http://jakarta.apache.org/tomcat/faq/misc.html#invoker John On Mon, 21 Jul 2003 16:57:05 +0200, Volker [EMAIL PROTECTED] wrote: Hi, after installing TomCat 4.1.24 and making it run correctly with mod_jk (jk1.2) I still have a little

Re: Loading context

2003-07-21 Thread John Turner
See Auto Deploy: http://jakarta.apache.org/tomcat/tomcat-4.1- doc/config/host.html#Automatic%20Application%20Deployment John On Mon, 21 Jul 2003 10:58:41 -0400, Luc Foisy [EMAIL PROTECTED] magic.com wrote: How would I go about loading a new context so that it is live, without restarting the

RE: Loading context

2003-07-21 Thread Luc Foisy
autodeploy=true ( the default ) I placed a context directory into webapps and it is not autodeploying Does it only auto deploy if the context is packed as .war? -Original Message- From: John Turner [mailto:[EMAIL PROTECTED] Sent: Monday, July 21, 2003 11:04 AM To: Tomcat Users List

Re: Loading context

2003-07-21 Thread John Turner
What do you mean, exactly, by I placed a context directory into webapps. You just created the directory? Is there a valid structure there (WEB-INF, etc)? John On Mon, 21 Jul 2003 11:23:13 -0400, Luc Foisy [EMAIL PROTECTED] magic.com wrote: autodeploy=true ( the default ) I placed a context

RE: Loading context

2003-07-21 Thread Luc Foisy
I created a directory in webapps webapps/portal This directory contains some jsp's There is also webapp/portal/WEB-INF directory ( empty ) All files and directories in this context are owned by the tomcat user ( same as the other contexts this tomcat server is running ) Should that work or not?

Re: mod_jk2 + Tomcat 4.1.24 - no sessions?

2003-07-21 Thread Simon Pabst
hmm no, if you have just one Tomcat, it shouldn't be necessary. At 15:58 21.07.2003 +0100, you wrote: On Mon, 21 Jul 2003 16:43:05 +0200, Simon Pabst [EMAIL PROTECTED] wrote: You need to use tomcatId jvmRoute for stickySession to work (don't know if it works with default settings), for

Client authentication - no client certificate

2003-07-21 Thread René Vangsgaard
Hi I have successfully setup Tomcat with SSL and client authentication, and I have successfully identified myself to the web application using a browser certificate. But when I access a port with client authentication enabled WITHOUT sending a certificate, I receive an error from Tomcat. I would

crazy iPlanet/Tomcat question.

2003-07-21 Thread Eric J. Pinnell
Hi, I have seached and looked through the archives with no luck. I have also experimented quite a bit and have a question: I currently have iPlanet 4.1 connected to Tomcat 4.1.18 via the NSAPI redirector on Solaris. However it will not load the default page (welcome page) such as index.jsp.

Re: Loading context

2003-07-21 Thread John Turner
There's no web.xml file? John On Mon, 21 Jul 2003 11:40:29 -0400, Luc Foisy [EMAIL PROTECTED] magic.com wrote: I created a directory in webapps webapps/portal This directory contains some jsp's There is also webapp/portal/WEB-INF directory ( empty ) All files and directories in this context

RE: Loading context

2003-07-21 Thread Luc Foisy
no -Original Message- From: John Turner [mailto:[EMAIL PROTECTED] Sent: Monday, July 21, 2003 11:55 AM To: Tomcat Users List Subject: Re: Loading context There's no web.xml file? John On Mon, 21 Jul 2003 11:40:29 -0400, Luc Foisy [EMAIL PROTECTED] magic.com wrote: I created a

isErrorPage=true NOT WORKING?

2003-07-21 Thread Matthew Oatham
Hi, I have a web app inside which I have an errorPage.jsp file. My web.xml file defines: error-page exception-typejava.lang.Throwable/exception-type locationerrorPage.jsp/location /error-page And my errorPage.jsp is as follows: %@ page isErrorPage=true % %@ import=java.io.*;% html link

Re: isErrorPage=true NOT WORKING?

2003-07-21 Thread Matthew Oatham
BTW the exception is being thrown from a method inside a servlet as follows: public synchronized void writeOrder(HttpServletRequest request) throws IOException { Date d = new Date(); DateFormat df = DateFormat.getDateInstance(); String fileName = (request.getRemoteUser()

Re: Loading context

2003-07-21 Thread John Turner
There should be one, as explained in the docs. John On Mon, 21 Jul 2003 12:03:42 -0400, Luc Foisy [EMAIL PROTECTED] magic.com wrote: no -Original Message- From: John Turner [mailto:[EMAIL PROTECTED] Sent: Monday, July 21, 2003 11:55 AM To: Tomcat Users List Subject: Re: Loading

RE: Loading context

2003-07-21 Thread Luc Foisy
Ok. When I restart the tomcat server, it will deploy an empty directory And it will deploy contexts that do not have a web.xml file Is this a definate need for the autodeploy function to work? I know my version of tomcat has the autodeploy, since it has its value set in conf/server.xml, so that

TOMCAT AND TLS CLIENT AUTHN

2003-07-21 Thread Evaristo Camarero
Hi all: I'm running Tomcat 4.1.24 and I'm trying to configure TLS client authn. I have created a SSL connector (in server.xml) !-- Define a SSL Coyote HTTP/1.1 Connector on port 15445 -- Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=15445

Where are ISAPI filter registry settings defined?

2003-07-21 Thread Nathan Ward
Hello, Is there any more documentation on the registry settings used by the isapi_redirect.dll than defined in the IIS How-To in the Tomcat documenation? I'd like to configure two web sites defined in the same IIS server to use different instances of the ISAPI redirector plug-in so that each

Re: Loading context

2003-07-21 Thread John Turner
No, that is the whole point of auto-deploy...you can deploy when Tomcat is running. There are various ways to do this, as outlined in the docs, not to mention the Tomcat manager application. As I read the docs, if you have a directory within appBase that has a valid directory structure

NullPointerException/Connection pool gets exhausted very quickly

2003-07-21 Thread Lior Shliechkorn
Hi, I created a Tomcat connection pool (4.1.18/Win2k) which gets exhausted fairly quickly if a user refreshes a page a few times. I have all the pages with the following code:p - Context initCtx = new InitialContext(); Context envCtx = (Context)

RE: Loading context

2003-07-21 Thread Luc Foisy
I put a web.xml file in there, still not autodeploying The autodeploy is something that runs in the background, correct? Should just be able to drop it down, and away it goes when it hits that deploy cycle? -Original Message- From: John Turner [mailto:[EMAIL PROTECTED] Sent: Monday, July

Re: Where are ISAPI filter registry settings defined?

2003-07-21 Thread Lior Shliechkorn
Which Tomcat are you using? isapi_redirect.dll or isapi_redirect2.dll? Nathan Ward [EMAIL PROTECTED] wrote: Hello, Is there any more documentation on the registry settings used by the isapi_redirect.dll than defined in the IIS How-To in the Tomcat documenation? I'd like to configure two web

RE: isErrorPage=true NOT WORKING?

2003-07-21 Thread Shapira, Yoav
Howdy, Does it work if you set the exception-type as java.io.FileNotFoundException in your web.xml? Yoav Shapira Millennium ChemInformatics -Original Message- From: Matthew Oatham [mailto:[EMAIL PROTECTED] Sent: Monday, July 21, 2003 12:12 PM To: [EMAIL PROTECTED] Subject: Re:

Re: Where are ISAPI filter registry settings defined?

2003-07-21 Thread Nathan Ward
I'm using Tomcat 4.1.24 and isapi_redirector.dll. Should I be using isapi_redirectory2.dll? I saw something in a book about isapi_redirectory2.dll, but I didn't see it yet in the Tomcat docs. Nathan - Original Message - From: Lior Shliechkorn [EMAIL PROTECTED] To: Tomcat Users List

Re: Where are ISAPI filter registry settings defined?

2003-07-21 Thread Lior Shliechkorn
The redirector2.dll file is a new implementation...I was told that it was faster. I have a document you can use if you choose the redirector2.dll file. Let me know. Nathan Ward [EMAIL PROTECTED] wrote:I'm using Tomcat 4.1.24 and isapi_redirector.dll. Should I be using isapi_redirectory2.dll? I

Re: mod_jk2 + Tomcat 4.1.24 - no sessions?

2003-07-21 Thread Marc Palmer
On Mon, 21 Jul 2003 17:41:13 +0200, Simon Pabst [EMAIL PROTECTED] wrote: hmm no, if you have just one Tomcat, it shouldn't be necessary. I guessed as much. The thing is, I can see that the browser is just never getting the JSESSIONID cookies when accessing via Apache. If you access directly to

RE: Loading context

2003-07-21 Thread Luc Foisy
Any subdirectory within the Application Base directory that appears to be an unpacked web application (that is, it contains a /WEB-INF/web.xml file) will receive an automatically generated Context element, even if this directory is not mentioned in the conf/server.xml file. This generated

JK2 connector

2003-07-21 Thread v.siguier
Hello everybody ! I am new Apache, Tomcat user and I try to learn how to make them communicate. I use Apache 2.0.47, Tomcat 4.1.24 and I downloaded mod_jk_2.0.46.dll (Windows NT platform) in Apache2/modules. I try to do what is described in the Quick Start JK2 configuration guide

Re: Loading context

2003-07-21 Thread John Turner
As far as I know. As I said, if this isn't working, and you have verified this (how are you testing it, anyways?), then you should file a bug. John On Mon, 21 Jul 2003 12:48:47 -0400, Luc Foisy [EMAIL PROTECTED] magic.com wrote: Any subdirectory within the Application Base directory that

RE: Loading context

2003-07-21 Thread Luc Foisy
I am checking with the manager to see if the context is there, and I am trying to hit that page How else would you suppose I should test this, its there or not isnt it? -Original Message- From: John Turner [mailto:[EMAIL PROTECTED] Sent: Monday, July 21, 2003 12:54 PM To: Tomcat Users

System.load Exceptions cannot be caught

2003-07-21 Thread Peter Kwan
I have the following code in my static class initialization code for loading native code: static { try { System.load(some_path_A); } catch (Exception e) { System.load(some_path_B); } .. The class is used in a JSP project. If I put my

RE: System.load Exceptions cannot be caught

2003-07-21 Thread Mike Curwen
Did you mean UnsatisiedLinkError ? Because that's all I can find in the javadocs. In this case, your code won't catch this Error, since an Error is not an Exception. So perhaps the container will end up catching it and wrapping it in a JasperException. Is there a 'route cause' for the

Re: Loading context

2003-07-21 Thread John Turner
I was just asking. So, you: - created a directory called webapps/portal - created a directory called webapps/portal/WEB-INF - created a file called webapps/portal/WEB-INF/web.xml - put some JSP in webapps/portal With all of the above, you cannot resolve http://www.host.com/portal/some.jsp?

Re: JK2 connector

2003-07-21 Thread John Turner
If you are using mod_jk_2.0.46.dll, that would be mod_jk, not mod_jk2. Check out my HOWTO for Windows, it covers everything step by step. The version numbers are a little out of date, but it shouldn't matter. http://www.johnturner.com/howto Incidentally, I had a little trouble with the DLL

RE: isErrorPage=true NOT WORKING?

2003-07-21 Thread Tarek M. Nabil
Hi Matthew, The problem with your JSP is that it has a syntax error. When Tomcat fails to compile the error page it uses it's internal error page. You should delete the second line, and replace the first with the following %@ page isErrorPage=true import=java.io.* % The import is part of the

jni_connect.so placement

2003-07-21 Thread Sullivan, Patrick
I have seen conflicting docs on where jni_connect.so should be placed. Is it 1) $APACHE_HOME/modules or 2) $TOMCAT_HOME/bin Thank you, Patrick Sullivan Centura Health This communication is for the use of the intended recipient only. It may contain information that is privileged and

Re: System.load Exceptions cannot be caught

2003-07-21 Thread Peter Kwan
Thanks Mike. You are absolutely right. I never verified if UnsatisiedLinkError is an Exception or not. It is in fact an Error, not an Exception? If I change my code to catch Throwable (which includes both Exception and Error), everything works fine. Thanks a lot for your help. Regards Peter

Re: TomCat 4.1.24 - alias problem?

2003-07-21 Thread Volker
Hi John, I read the document and made my web.xml under /tomcat/webapps/ROOT/WEB-INF/ look like this: ?xml version=1.0 encoding=ISO-8859-1? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd; web-app servlet

Problem Deploying Servlets

2003-07-21 Thread Lenandlar Singh
Hello Members, Im a bit new to Tomcat.I have installed Tomcat 4.1.24 and running. Im have trouble accessing servlets from a static web page even though i can access both the servlet and the static page independently. Please shed some light. Thanks. Ls

Help How to Tomcat as a user - tomcat4?

2003-07-21 Thread Ann Clive Tonge
I am using Tomcat 4.1.24, Java 1.4.1_02 on Mandrake Linux 9.1. Tomcat will not run as a user, although I am using it on port 8080. If I run Tomcat as user tomcat4 I get a starting tomcat4 [OK]. But it does not start. ps ax shows that no Tomcat processes running. It does work fine as root. I

[ANNOUNCE] Tomcat Training Class in August

2003-07-21 Thread Lajos
Hi all - For those looking for an advanced Tomcat training class, I am giving a four-day intensive in Colorado Springs, CO, August 18-21. The objective of the course is to give users an in-depth knowledge of developing with and administering Tomcat. Topics include JNDI, the ever-popular Apache

RE: Problem Deploying Servlets

2003-07-21 Thread Shapira, Yoav
Howdy, Your link from the static page to the servlet is probably wrong. What does it look like? Yoav Shapira Millennium ChemInformatics -Original Message- From: Lenandlar Singh [mailto:[EMAIL PROTECTED] Sent: Monday, July 21, 2003 1:32 PM To: Tomcat Users List Subject: Problem

Cannot authenticate in Tomcat

2003-07-21 Thread Stuart MacPherson
I am running Tomcat 4.1.24 and Slide 1.0.16 and I have a problem (that I originally thought was isolated to Slide) where I can no longer authenticate any user. When I try to login to Tomcat admin webapp as 'admin' I am refused stating Invalid username and password. this occurs with all of my

  1   2   >