Error in mod_jk Makefile?

2004-01-15 Thread David Meier
I am trying to build mod_jk-1.2.5 from source on FreeBSD 4.9-RELEASE and I encounter at the end of the build process the following error: ... /usr/local/bin/bash /usr/local/apache/build/libtool --silent --mode=install cp `pwd`/mod_jk.so libtool: install: you must specify a destination Try

When is a session cookie set?

2004-01-15 Thread Sonny Sukumar
Is a session cookie supposed to be set for the very first page one visits of a site, even if no session is created in the logic to produce that page? (i.e. getSession() is never called) Because, from my tests, that seems to be happening for me. And I don't want it to because I'm actually

RE: Sessions and clients

2004-01-15 Thread Chris Picton
On Wed, 2004-01-14 at 15:59, Ralph Einfeldt wrote: Just include the session id in the request. (As query parameter or as form field) My problem is that I am submitting data via POST and the Content-Type is text/xml, so I have no idea on how to pass extra variables through. I had thought that

Re: no contexts, several webapps, autoDeploy, different loggers?

2004-01-15 Thread Howard Watson
In order to have a seperate log file for each web app you will need a logger for each context. Tomcat3 had ContextXmlReader that would allow you put context configuration for each webapp in its own file. It also had LogSetter name=servlet_log that you could define in ContextManager and log all

RE: NoClassDefFoundError

2004-01-15 Thread Xavier ANDRE
Thankds guys. I will try now... Have a good day -Message d'origine- De : news [mailto:[EMAIL PROTECTED] De la part de Bill Barker Envoyé : jeudi 15 janvier 2004 07:39 À : [EMAIL PROTECTED] Objet : Re: NoClassDefFoundError Actually, since he is using TC 3.3, the correct link is:

RE: NoClassDefFoundError

2004-01-15 Thread Xavier ANDRE
Hi again, I try to put my jar in $TOMCAT_HOME/lib/common/ but it does not work also... It drives me crazy :-((( Xavier André -Message d'origine- De : news [mailto:[EMAIL PROTECTED] De la part de Bill Barker Envoyé : jeudi 15 janvier 2004 07:39 À : [EMAIL PROTECTED] Objet : Re:

RE: tomcat 4.1.24 hangs

2004-01-15 Thread frederik.de.backer
I did some investigation and found the following bug report for tomcat 4.1.24: http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21763 Can this explain the problem I have and does anyone knows whether the bug is solved or under investigation? regards, Frederik. -Original Message-

UTF-8 Charset from mod_jk and Apache http server

2004-01-15 Thread Spencer Bruce
Hi, I am using apche http server 1.3.27, tomcat 4.1.29 and mod_jk/1.2.4 to connect it up. I have set tomcat to serve all pages using the utf-8 charset in the http header. This works fine. However, when I serve the same page through the web server, the charset is set to be iso-8859-1. I

RE: Calling a JSP from a virtual host

2004-01-15 Thread Dolores García-Izquierdo Jaén
Hi, Thank you guys for your answers. Oscar, I followed the instructions in your HOWTO but it didn't work. I'm not sure if I made myself clear yesterday explaining my problem. What I want to do is to have, for each virtual host in Apache, its respective web application in Tomcat so as I can

Re: tomcat 4.1.24 hangs

2004-01-15 Thread David Rees
[EMAIL PROTECTED] wrote, On 1/15/2004 12:54 AM: I did some investigation and found the following bug report for tomcat 4.1.24: http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21763 Can this explain the problem I have and does anyone knows whether the bug is solved or under investigation? I

Re: Redhat9 / mod_jk2 builds from source

2004-01-15 Thread George Shafik
Hi Mark, Oscar, and anyone interested: I found the following always works: ./configure --enable-module=all --enabled-shared=max make make install I think I've could the eXtrem functionality - I call is Xapache while drinking lots of Pepsi :-) enjoy, George - Original Message - From:

Re: Redhat9 / mod_jk2 builds from source

2004-01-15 Thread George Shafik
Opps typo ./configure --enable-module=all --enabled-shared=max should be ./configure --enable-module=all --enable-shared=max - Original Message - From: George Shafik [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, January 15, 2004 8:35 PM Subject: Re:

Unable to start web application

2004-01-15 Thread Ralf Schneider
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, I'm quite new to developing web applications with Tomcat (5.0.6 that comes with JWSDP 1.3). I have a problem with starting a web application that is deployed as a WAR file. On my machine the web application works fine, but here I use it from

Re: RTFM

2004-01-15 Thread Carlos Pereira
no, I'm not returning anything from the servlet. It's not returning anything! You must return after using sendRedirect, otherwise your servlet will continue running. That's probably the problem, as it redirects you to another page, but continues it's execution. Try returning. Carlos Pereira

CRL configuration with SSL connector

2004-01-15 Thread Alain Baucant
Is it possible to define a CRL to be checked by tomcat when using SSL ? Thanks for your help, Alain. PS: Where can I find a full description of configuration attributes of the coyote connector ? - To unsubscribe, e-mail:

Re: Redhat9 / mod_jk2 builds from source

2004-01-15 Thread OUTTERS Guillaume
George Shafik wrote: I found the following always works: ./configure --enable-module=all --enabled-shared=max make make install I personaly had (on Solaris 9 with the gcc suite) to explicitely add: --enable-so --enable-rule=SHARED_CORE --enable-static=no --enable-shared=yes I don't know which

Cannot define Djava.library.path while using tomcat as a Windows 2000 service.

2004-01-15 Thread Bruchem, A. van (Alexander)
Hi, I defined my library path in the Catalina.bat under Windows 2000 and if I start the startup.bat Tomcat 5.0.16 works fine with the connected libraries. Now I made a Windows 2000 service of Tomcat, but can't it find my libraries anymore. I used the install script which has been

Re: Cannot define Djava.library.path while using tomcat as a Windows 2000 service.

2004-01-15 Thread pavan . k
what is the error windows is referring to??? Pavan Kumar Tata Consultancy Services mailto: [EMAIL PROTECTED] DISCLAIMER: The information contained in this message is intended only and solely for the addressed individual or entity indicated in this message and

RE: Cannot define Djava.library.path while using tomcat as a Wind ows 2000 service.

2004-01-15 Thread Bruchem, A. van (Alexander)
Just can't start the service and did not return an error. Log files are also not updated! ___ Alexander van Bruchem Windows System Engineer ISD - N.V. Organon P.O. Box 20 5340 BH Oss The Netherlands Ext.: +31 (0) 412 665076 mailto:[EMAIL

RE: Cannot define Djava.library.path while using tomcat as a Wind ows 2000 service.

2004-01-15 Thread pavan . k
can you look clear all events from windows event viewer and start the service?then again check the event viewer and let me know the error... Pavan Kumar Tata Consultancy Services mailto: [EMAIL PROTECTED] DISCLAIMER: The information contained in this message

Why URLConnection parameters are decoded incorrectly?

2004-01-15 Thread Zsolt Koppany
Hi, from a java application I build an URL and encode the URL parameters with URLEncoder.encode(str, UTF-8) and than I create a connection with: URLConnection uconn = URL.openConnection(); InputStream inputStream = uconn.getInputStream(); ... In the tomcat (4.1.29) servlet I

Re: How to install new verisign intermediate signing certificate to apache tomcat 4.0

2004-01-15 Thread Mauro Pencov
See http://sunsolve.sun.com/pub-cgi/retrieve.pl?doc=fsalert/57436 On Wed, 14 Jan 2004 20:04:17 +0200, Harun Veliolu (Ko.net) [EMAIL PROTECTED] wrote: Hi, I have; - Java 2 SDK 1.3.1 - Apache Tomcat version 4.0 - Windows 2000 Server And I download new verisign internadiate signing certificate

RE: Cannot define Djava.library.path while using tomcat as a Windows 2000 service.

2004-01-15 Thread Emile Coetzee
Here is a copy of my service install batch file that's currently working (I don't use the library). %CATALINA_HOME%\bin\tomcat -install Jakarta Tomcat %JAVA_HOME%\jre\bin\server\jvm.dll -Djava.class.path=%CATALINA_HOME%\bin\boo tstrap.jar;%JAVA_HOME%\lib\tools.jar -Dcatalina.home=%CATALINA_HOME%

Re: WebAppConnection missing

2004-01-15 Thread Frantzcy Paisible
hmmm, well that make sense,since I've been reading the version 4 docs to be able to restart my servers per domain. What replaces WebAppConnection ? or Is there no more need to have a per user version of tomcat running ? Frantzcy At 00:34 2004-01-13, you wrote: Well, mod_webapp has be

RE: Unable to start web application

2004-01-15 Thread Emile Coetzee
AFAIK you can't run a webapp from a war. You have to deploy (expand/extract) the war in the webapp folder to be able to run it. Usually Tomcat will deploy this for you when you start it up. It will also auto deploy depending on your configuration. If you're not to sure that your war was built

RE: Unable to start web application

2004-01-15 Thread Bodycombe, Andrew
I have to disagree with you on this point. A war file is the standard way to deploy a web application. See the servlet specification: http://jcp.org/aboutJava/communityprocess/final/jsr154/index.html -Original Message- From: Emile Coetzee [mailto:[EMAIL PROTECTED] Sent: 15 January

Re: Unable to start web application

2004-01-15 Thread Vitor Buitoni
We could say that a WAR file is nothing more that a standard zip file, (or a .jar) with all the files and directory structure of your webapp. When you deploy a WAR file into tomcat, it extracts the file content into a directory, so it would have exactly the same result if you deploy your webapp

RE: Unable to start web application

2004-01-15 Thread Emile Coetzee
Sorry i think i need to rephrase that. The original email sounded like he wanted to run the webapp as a war which was not deployed (like winamp reads skins within zip files). I'm no coder and i don't have the strength to go read the specs so i'll take your word for it if it can work that way :)

RE: Cannot define Djava.library.path while using tomcat as a Wind ows 2000 service.

2004-01-15 Thread Bruchem, A. van (Alexander)
Did that, but no event is being recorded! ___ Alexander van Bruchem Windows System Engineer ISD - N.V. Organon P.O. Box 20 5340 BH Oss The Netherlands Ext.: +31 (0) 412 665076 mailto:[EMAIL PROTECTED] -Original Message- From: [EMAIL PROTECTED]

-security with 5.0.16 doesn't work

2004-01-15 Thread Marten Lehmann
Hello, I was setting fine grained permissions to my webapp, but always an exception was thrown. So I tried to use grant { permission java.security.AllPermission; }; but even with that, my application doesn't run (which it does without -security). When calling the site, I get:

RE: Cannot define Djava.library.path while using tomcat as a Wind ows 2000 service.

2004-01-15 Thread Bruchem, A. van (Alexander)
It is working ok for me when I don't use the library as well, but I need the library for my application to work. It should not matter if it is CATALINA_HOME or CATALINE_BASE, tried them both with the same result. Alexander ___ Alexander van Bruchem Windows System

No response from my servlet on tomcat( running on W2K tomcat version 4.1.29)

2004-01-15 Thread Hamed-Abdelouahab
Hi everybody, I have no Idee how to administrate tomcat and there is no configuration error because it was working before very well since I've changed the code of my servlet ;-) My tomcat administrator isn't in the office for several days. I'm using eclipse as IDE and ANT for the build

RE: NoClassDefFoundError

2004-01-15 Thread Stuart Stephen
Try extracting the JAR's contents into the webapp/WEB-INF/classes directory, check the class exists and restart tommy. -Original Message- From: Xavier ANDRE [mailto:[EMAIL PROTECTED] Sent: 15 January 2004 08:32 To: Tomcat Users List Subject: RE: NoClassDefFoundError Hi again, I try to

RE: How to find the differences between versions?

2004-01-15 Thread Jay Glanville
On Wed, January 14, 2004 at 1:29 pm, Glanville, Jay wrote: What is the best way that I can find all the issues that were resolved in between 4.1.12 and 4.1.29? Basically, my manager wants to know if we should upgrade to 4.1.29, and he wants to see a list of all the issues that

RE: NoClassDefFoundError

2004-01-15 Thread Xavier ANDRE
Thankds Stephen for the idea but it doesn't work also. This is my error : ?xml version='1.0' encoding='UTF-8'? SOAP-ENV:Envelope xmlns:SOAP-ENV=http://schemas.xmlsoap.org/soap/envelope/; xmlns:xsi=http://www.w3.org/1999/XMLSchema-instance; xmlns:xsd=http://www.w3.org/1999/XMLSchema;

RE: How to find the differences between versions?

2004-01-15 Thread Shapira, Yoav
Howdy, There's probably a way to do it in bugzilla with the boolean additions, but I don't know off the top of my head. As Senor Rees said, look at the release notes which contain information about the fixes with every point release. You should have a good reason NOT to upgrade, as these point

RE: NoClassDefFoundError

2004-01-15 Thread Bruchem, A. van (Alexander)
You could just place the jar file in the WEB-INF classes directory. A problem might be that you ftp the jar files to it with the wrong setting, it should be binary. I thought that you have to change web.xml to read your WEB-INF directory. ___ Alexander van Bruchem

RE: LogSetter in Context

2004-01-15 Thread Shapira, Yoav
Howdy, Stumped you all, huh? More like very few people care. Bill Barker is the man for tomcat 3.x support, maintenance, development. I don't think anyone else is working on that branch, I don't think anyone else is supporting that branch, and I know there are very few tomcat 3.x users on the

RE: Newbie needs help with Tomcat5.0.14

2004-01-15 Thread Shapira, Yoav
Howdy, Start with a clean tomcat 5.0.16 (a stable build, unlike 5.0.14) installation. Pick one distribution, the standard one, not the embedded or deployer one. Each distribution is just one .tar.gz or .zip file. Unpack that distribution, start the server, and connect to it via a browser to

RE: no contexts, several webapps, autoDeploy, differentloggers?

2004-01-15 Thread Shapira, Yoav
Howdy, There is no magic token for the app name in the DefaultContext element. So you need a Logger for each Context explicitly defined. The Logger for a Context handles all servlets for that context. If you have one logger in your DefaultContext and no other Contexts defined, all output from

RE: RTFM

2004-01-15 Thread Shapira, Yoav
Howdy, It is either so glaringly obvious that no one deems an answer worthwhile (RTFM), or so really really difficult, and no one knows how do this. Surely not. Either way I need to know. Don't forget two more options: people don't care to read your message at all, or they read it and don't

RE: -security with 5.0.16 doesn't work

2004-01-15 Thread Shapira, Yoav
Howdy, What JDK (including minor version) on what OS is this? Yoav Shapira Millennium ChemInformatics -Original Message- From: Marten Lehmann [mailto:[EMAIL PROTECTED] Sent: Thursday, January 15, 2004 8:14 AM To: '[EMAIL PROTECTED]' Subject: -security with 5.0.16 doesn't work Hello,

RE: Unable to start web application

2004-01-15 Thread Shapira, Yoav
Howdy, We could say that a WAR file is nothing more that a standard zip file, (or a .jar) with all the files and directory structure of your webapp. You can think of a WAR as either a distribution format to be unpacked at the destination, or an executable format to be run directly by the

Re: Session Persistance

2004-01-15 Thread Jon Wingfield
It's my experience that Tomcat persists sessions by default, my ROOT.xml doesn't have a Manager. There are a couple of things you have to worry about if you want the sessions to be valid on restart: 1) Don't store non-serializable objects in the session. (You tend to get big stacktraces in the

RE: How to find the differences between versions?

2004-01-15 Thread Subir Sengupta
Look in the Release notes. There is a list of new features and bug fixes, with the version number it was added/fixed in. So look for any version number higher than 4.1.12 to see what changed. Subir -Original Message- From: Glanville, Jay [mailto:[EMAIL PROTECTED] Sent: Wednesday,

jaas.jar not included w/ Tomcat 5.0.16 - why?

2004-01-15 Thread Springer, Ian P.
jaas.jar is no longer present in server/lib/ as it was in Tomcat 4.x. this causes ClassNotFoundExceptions when running under JDK 1.3. was this an oversight or was it intentional. if it was intentional, it should be documented in RUNNING.txt. thanks, Ian

Some questions about Apache working with Tomcat

2004-01-15 Thread CHAVEZA
Hi Mi name is Alejandro Chavez and I want to ask you some question... I have to develop a web aplication with jsp´s. The SO is Unix and somebody had already installed Apache y Tomcat in the Unix machine. But I dont know if they had already configurated both to work together...or I had to

Re: Problems With Caching [tomcat 4.23]

2004-01-15 Thread Phillip Calçado
Hi, I've already did it, in fact the production server is this way (as JSP creation/modification is very important in this app), but it has those problems too. I've used about 5 different browsers :P . Thanks for your help, anyway. Em Quarta 14 Janeiro 2004 16:09,

RE: jaas.jar not included w/ Tomcat 5.0.16 - why?

2004-01-15 Thread Shapira, Yoav
Howdy, jaas.jar is no longer present in server/lib/ as it was in Tomcat 4.x. Small correction there: it was in server/lib for tomcat 4.1.x, not 4.0.x. this causes ClassNotFoundExceptions when running under JDK 1.3. was this an oversight or was it intentional. if it was intentional, it should

RE: NoClassDefFoundError

2004-01-15 Thread Larry Isaacs
Where exactly is the lib123.soap.sms.SmsDriverSOAP class located (jar and directory) and where are the org.apache.soap.* classes listed in the stack trace located (jar and directory)? Cheers, Larry -Original Message- From: Xavier ANDRE [mailto:[EMAIL PROTECTED] Sent: Thursday,

Does Tomcat 5.0.16 allready include Struts, mod_jk2

2004-01-15 Thread Nick
I have installed tomcat 5.0.16 and it looks as if (just by looking at log files ) that mod_jk2 and struts are allready included in the binary for linux? Is this the case? -- Nick (Nix) Gray Senior Systems Engineer Bruzenak Inc. (512) 331-7998

RE: NoClassDefFoundError

2004-01-15 Thread Xavier ANDRE
My structure of tomcat is : /usr/tomcat : Tomcat Directory /usr/tomcat/webapps/soap/ : my app directory /usr/tomcat/webapps/soap/WEB-INF/classes/ my app's classes where there are lib12.soap.sms.SmsDriverSOAP and org.apache.soap.* classes Xavier André -Message d'origine-

Re: restricting access to jsp pages

2004-01-15 Thread Michael E. Allen
Ben Souther wrote: Hiding the JSPs is easy. Put them under the WEB-INF directory. Ok... but then how do I access the jsp pages? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: How to find the differences between versions?

2004-01-15 Thread Tim Funk
If you want source diffs you can do this (I think) cvs diff -r OLD_RELEASE_TAG -r NEW_RELEASE_TAG I'm sure you can also do a cvs log with some arguements to get the commit descriptions for each commit made too. -Tim Shapira, Yoav wrote: Howdy, There's probably a way to do it in bugzilla with

RE: How to find the differences between versions?

2004-01-15 Thread Shapira, Yoav
Howdy, One other thing of note on this issue: for tomcat 5 we've been better about keeping a changelog, available from the left-hand navigation bar of the documentation: http://jakarta.apache.org/tomcat/tomcat-5.0-doc/changelog.html Yoav Shapira Millennium ChemInformatics -Original

org.apache.catalina.HttpRequest.setRequestURI() and valves

2004-01-15 Thread Green, Jeffrey
Hello all. Using valves in Tomcat 4, we successfully managed to intercept requests to specific contexts and direct them elsewhere. For example, we could intercept all requests to /SECRETWEBAPP and redirect them to /. In order to accomplish this, we used valves which would call

Re: restricting access to jsp pages

2004-01-15 Thread Michael E. Allen
Andres Ledesma wrote: Hi, I have not much experience with jsp, but I do not think this is the right way of doing that, your app have not to be inside WEB-INF. To prevent people accessing your pages, you check the user session, if for example, this pages can be view only by registered users

RE: org.apache.catalina.HttpRequest.setRequestURI() and valves

2004-01-15 Thread Shapira, Yoav
Howdy, Hello all. Using valves in Tomcat 4, we successfully managed to intercept requests to specific contexts and direct them elsewhere. For example, we could intercept all requests to /SECRETWEBAPP and redirect them to /. Why would you do this with a valve? Use a Filer, which is

RE: org.apache.catalina.HttpRequest.setRequestURI() and valves

2004-01-15 Thread Shapira, Yoav
Howdy, Hello all. Using valves in Tomcat 4, we successfully managed to intercept requests to specific contexts and direct them elsewhere. For example, we could intercept all requests to /SECRETWEBAPP and redirect them to /. Why would you do this with a valve? Use a Filer, which is

RE: Session Persistance

2004-01-15 Thread Bruno.Melloni
We might have just fixed each other's problem. I have the exact opposite problem (with Tomcat5) - I need to drop the sessions when I redeploy, since new versions might carry different objects and one of my objects is not serializable yet. And I don't need to preserve the sessions across

RE: org.apache.catalina.HttpRequest.setRequestURI() and valves

2004-01-15 Thread Green, Jeffrey
We can't use a filter because filters are per-webapp whereas valves are per host. This is a hostwide redirect. We need to be able to redirect users from /SOME/GARBAGE/HERE/actualWebappDirectory to /actualWebappDirectory for all webapps (without having to require everyone to deploy the same exact

Re: verbose gc

2004-01-15 Thread Christopher Schultz
Mohammed, 1) [Full GC 34521K-15504K(38328K), 0.5953540 secs] [GC 27533K-16335K(38328K), 0.0396336 secs] 2) what does the above statements got in catalina.out means, is garbage collection active? Yes, garbale collection is active. When the garbage collector runs, it will print a line out to

maxProcessors vs maxThreads

2004-01-15 Thread Apu Shah
using tomcat 5.0.16 the JK2 AJP connector (http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/ajp.html) docs doesn't list any directive like maxProcessors or maxThreads. the HTTP connector does (http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/http.html) list a maxThreads directive.

Re: [OT] Apache and Tomcat together

2004-01-15 Thread Christopher Schultz
Mike, Apache is faster for static content. Don't get Yoav started... :) I have gotton him started on this, before. It's funny, though... last time I looked at the Tomcat Connector FAQ, it actually says flat out Apache is faster than Tomcat at serving static content:

Re: restricting access to jsp pages

2004-01-15 Thread Merrill Cornish
I'm confused. I don't want the user to have to log in, ... I can't find in the docs how Tomcat knows whether the user has logged in yet, Question: Do you want your users to log in or not--nevermind who does it? I want to have my guard servlet authenticate the user How is that different

Re: problem with arabic in multilanguage jsp

2004-01-15 Thread Christopher Schultz
Thomas, Until now, our solution was indeed to put META HTTP-EQUIV=Content-Type CONTENT=text/html;charset=windows-1256 / into the html code. ( Tomcat 4.1.24) If the browser finds a content type in the HTTP header, it ignores the HTML header. What? The whole point of the META tag is actually

Re: Signal 11 crash and mod_jk, mod_jk2, apache2

2004-01-15 Thread Christopher Schultz
All, With RH8, I assume that at the very least you'll need to set LD_KERNEL_ASSUME. I would consider that the first course of action, and likely would not need to do anything else. I could see hyperthreading a problem if the kernel didn't support it very well. You could try the latest 2.4.x

RE: restricting access to jsp pages

2004-01-15 Thread Bruno.Melloni
A trivial solution is to store something (anything) in the user session during login, and then retrieve it in the JSP. If the retrieved value is not null, then the user is logged in. If the user is not logged in, you can redirect him to the login or an error page. Of course, this is only one

RE: Signal 11 crash and mod_jk, mod_jk2, apache2

2004-01-15 Thread Ralph Einfeldt
An additional remark, hardware shops are sometimes quite floppy with the ram they use. Even if you order specific ram you may get something different. (E.G. if you order infineon ram, you sometimes just get noname modules with infineon chips, which is a completly different thing) This caused us

RE: LogSetter in Context

2004-01-15 Thread Howard Watson
Howdy, I did not ask anybody to care. I asked for a reference to documentation that I was unable to find myself. I don't remember reading that the list was version specific or only for users that support a single platform. But, thanks for the reply anyhow. [EMAIL PROTECTED] 01/15/04 07:06AM

Re: restricting access to jsp pages

2004-01-15 Thread Michael E. Allen
[EMAIL PROTECTED] wrote: A trivial solution is to store something (anything) in the user session during login, and then retrieve it in the JSP. If the retrieved value is not null, then the user is logged in. If the user is not logged in, you can redirect him to the login or an error page. Of

RE: LogSetter in Context

2004-01-15 Thread Shapira, Yoav
Howdy, I did not ask anybody to care. I asked for a reference to documentation that I was unable to find myself. I don't remember reading that the list was version specific or only for users that support a single platform. But, thanks for the reply anyhow. The list is not version-specific. I

RE: restricting access to jsp pages

2004-01-15 Thread Shapira, Yoav
Howdy, Yes; but I don't want to check for whether user is logged in or not in every page... I want the page to only be accessible to a logged in user. Basically I want single sign on; the webapp should not be accessible at all except to an authenticated user. I may have missed the earlier

RE: NoClassDefFoundError

2004-01-15 Thread Larry Isaacs
Xavier, This structure looks fine. It should be noted that Tomcat 3.3.x follows the JDK classloader delegation model, i.e. always delegate to a parent classloader before looking for a class locally. This means that the SmsDriverSOAP and org.apache.soap classes must not exist in any other

Cannot start Tomcat 5.0.16.

2004-01-15 Thread George Leeman Jr
Today I downloaded and installed Tomcat 5.0.16. I get the sequence shown below. How do I fix this problem? Thanks, George Leeman c:\e\Tomcat5.0.16\jakarta-tomcat-5.0.16\bincatalina run Using CATALINA_BASE: .. Using CATALINA_HOME: .. Using CATALINA_TMPDIR: ..\temp Using JAVA_HOME:

Re: InitParameters Question

2004-01-15 Thread Michael Duffy
Found the answer at the Java Forum: http://forum.java.sun.com/thread.jsp?forum=33thread=482125 I think it's a case of RTFM here. I should have understood that difference between ServletConfig and ServletContext. Now I do. - MOD __ Do you Yahoo!? Yahoo!

Re: org.apache.catalina.HttpRequest.setRequestURI() and valves

2004-01-15 Thread Jeanfrancois Arcand
Green, Jeffrey wrote: Hello all. Using valves in Tomcat 4, we successfully managed to intercept requests to specific contexts and direct them elsewhere. For example, we could intercept all requests to /SECRETWEBAPP and redirect them to /. In order to accomplish this, we used valves which

Re: -security with 5.0.16 doesn't work

2004-01-15 Thread Jeanfrancois Arcand
Marten Lehmann wrote: Hello, I was setting fine grained permissions to my webapp, but always an exception was thrown. So I tried to use grant { permission java.security.AllPermission; }; but even with that, my application doesn't run (which it does without -security). When calling the

RE: Cannot start Tomcat 5.0.16.

2004-01-15 Thread Shapira, Yoav
Howdy What JDK are you using? Yoav Shapira Millennium ChemInformatics -Original Message- From: George Leeman Jr [mailto:[EMAIL PROTECTED] Sent: Thursday, January 15, 2004 11:15 AM To: [EMAIL PROTECTED] Subject: Cannot start Tomcat 5.0.16. Importance: High Today I downloaded and

Re: restricting access to jsp pages

2004-01-15 Thread Merrill Cornish
I don't want to check for whether user is logged in or not in every page Is there any particular reason why? The extra time is in the noise. The code is boilerplate, and you can hige that behind a function call if you want. Merrill

Re: restricting access to jsp pages

2004-01-15 Thread Andres Ledesma
I thought about that... and I would like to set up a role in tomcat-users to accomplish that. However, I don't want the user to have to log in, rather I want to have my guard servlet authenticate the user and then forward the request with the role filled in programmatically. However, I

RE: Manager - STOP application fails to stop session!!!

2004-01-15 Thread Bruno.Melloni
SUMMARY OF PROBLEM - for future people scanning the archives: Needed to disable session persistence for an application. SOLUTION: To turn off session persistence for an application, include a Manager clause (similar to this one) in the application context file: Manager

RE: RTFM

2004-01-15 Thread Januski, Ken
and let us know if it worked. -Original Message- From: Carlos Pereira [mailto:[EMAIL PROTECTED] Sent: Thursday, January 15, 2004 5:09 AM To: Tomcat Users List; [EMAIL PROTECTED] Subject: Re: RTFM no, I'm not returning anything from the servlet. It's not returning anything! You must

RE: org.apache.catalina.HttpRequest.setRequestURI() and valves

2004-01-15 Thread Green, Jeffrey
Aaah. I see. Unfortunately sendRedirect() does not work at the valve level. I could use that solution only if I implemented the redirect for each specific webapp, but this is a bit too much code duplication to be productive / condusive to change. It seems that this decision has crippled some

RE: restricting access to jsp pages

2004-01-15 Thread Bruno.Melloni
Then try a servlet filter (this is what I normally do). That should save you from having code on each JSP page. Search the web for a good tutorial. But you still have to decide what action you want to take when a user is not logged, since your URL is being hit and some response is required.

Trying to write my own startup script, but seems to missed something....

2004-01-15 Thread Johan Bång
Hi! I am trying to write my own init script to tomcat 5 for Fedora Core 1 I have tryed to decode what the startup.sh, catalina.sh and setclasspath.sh is doing, and I think that I have figured out some of it, but according to catalina.out it isn't enought. Could someone who knows how tomcat is

Re: org.apache.catalina.HttpRequest.setRequestURI() and valves

2004-01-15 Thread Jeanfrancois Arcand
Green, Jeffrey wrote: Aaah. I see. Unfortunately sendRedirect() does not work at the valve level. That's not true ;-) SunOne AppServ is using that technique :-) Why are you saying it doesn't work at the valve level? I could use that solution only if I implemented the redirect for each

RE: Cannot start Tomcat 5.0.16.

2004-01-15 Thread George Leeman Jr
Here's the complete information on the java JDK: java version 1.3.0 Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0) Classic VM (build 1.3.0, J2RE 1.3.0 IBM build cn130-20010925 (JIT enabled: jitc))

isapi_redirector2.dll fails - red arrow

2004-01-15 Thread KKolle
Tomcat = 4.1 IIS = 5.0 OS = windows2000 DLL = isapi_redirector2.dll (downloaded from http://apache.mirrors.pair.com/jakarta/tomcat-connectors/jk2/binaries/win32/) I followed http://www.onjava.com/pub/a/onjava/2002/12/18/tomcat.html for instructions. I've made double sure my entries in the

RE: org.apache.catalina.HttpRequest.setRequestURI() and valves

2004-01-15 Thread Green, Jeffrey
Regarding the last post on this topic: 1) sendRedirect() doesn't seem to work because ValveBase's invoke() method takes an org.apache.catalina.Response object and that class has no sendRedirect() method. Am I missing something here? 2) if I put the valve at the engine level, will it be invoked

Trying to compile jsvc from tomcat 5

2004-01-15 Thread Johan Bång
Hi! I'm currently trying to compile jsvc witch are included in the binary release of Tomcat5 I'm following the instructions and the compilation ends without any errors, but nothing happends when I try to execute the Tomcat.sh script (after I have updated it with my settings). The only error

Re: org.apache.catalina.HttpRequest.setRequestURI() and valves

2004-01-15 Thread Jeanfrancois Arcand
Green, Jeffrey wrote: Regarding the last post on this topic: 1) sendRedirect() doesn't seem to work because ValveBase's invoke() method takes an org.apache.catalina.Response object and that class has no sendRedirect() method. Am I missing something here? Yes :-) Downcast the object to

Re: isapi_redirector2.dll fails - red arrow

2004-01-15 Thread Daniel Schmitt
[EMAIL PROTECTED] wrote: I followed http://www.onjava.com/pub/a/onjava/2002/12/18/tomcat.html for instructions. They are out of date - jk1.2 Connector are you pointing to isapi_redirector2.dll not isapi_redirector.dll? could you post your reg entrys here? You can also try our jk2.02 installer

RE: org.apache.catalina.HttpRequest.setRequestURI() and valves

2004-01-15 Thread Green, Jeffrey
AHA! That worked like gold. Thanks for the info! I didn't realize that Tomcat's Response was a superclass of HttpServletResponse. One thing I did note though, is that one can't invoke the next valve in the chain after sending a redirect (as far as I can tell). I suppose this just means that a

Re: isapi_redirector2.dll fails - red arrow

2004-01-15 Thread KKolle
I couldn't find the isapi_redirector.dll, just the isapi_redirector2.dll. Registry: extension_uri = /tomcat/isapi_redirector2.dll worker_file = D:\Program Files\Tomcat 4.1\conf\workers.properties worker_mount_file = D:\Program Files\Tomcat 4.1\conf\uriworkermap.properties log_file =

Re: javax.servlet.jsp.JspException: Premature end of file

2004-01-15 Thread Michael Duffy
Once again, my problems were self-inflicted, and the Java Forum has saved me again: http://forum.java.sun.com/thread.jsp?forum=33thread=482127 I had a serious pilot error: my xml:parse JSTL tag didn't have the correct attributes. Once that was pointed out to me, all was well. Sorry for the

RE: [OT] Apache and Tomcat together

2004-01-15 Thread Green, Jeffrey
Anyone know about the benefits / detriments of using mod_proxy? It sets up a heck of a lot easier than mod_jk2 and seems to offer the same functionality. A great doc on this is at http://marc.theaimsgroup.com/?l=xml-cocoon-devm=104441321803644w=2. Anyone have any insights? Having set up both

Re: LogSetter in Context

2004-01-15 Thread Howard Watson
Thanks for the reply: I'm using Tomcat3.3.1a for Netware. Took a look at what you talked about and had the same problems. But, I did learn a little more about the problem. Apparently, I was hacking the context file, deleting log files and restarting Tomcat before results were being written. The

creating virtual directories

2004-01-15 Thread Gabriel Oyarzabal
how i change the default document root directory? and how i create a virtual document directory? ps.: im using tomcat 5 - windows XP Gabriel

Configuring Tomcat connections

2004-01-15 Thread Christian Cryder
Can someone offer some suggestions on configuring the number of connections Tomcat 4.1 will accept? I am using a stress tester to access the sample servlet (http://localhost:8080/examples/servlet/HelloWorldExample). Somewhere around 14-15 concurrent requests, I start seeing

  1   2   >