Re: Fw: Servlet problem

2006-02-21 Thread Mark Whitby
Oops, that's a major typo on my part. It is meant to say: SearchServlet SearchServlet SearchServlet /searchitem.jsp SearchServlet /searchmatch.jsp Now ironically enough now I've done this change my servlet is acting even more silly. When I type in searchmatch.js

Use the tomcat authentification mecanisms in a webapp

2006-02-21 Thread David Delbecq
Hello, I probably will have the following webapp structure to configure - webapp X manage authentification all by itself (using forms and so on) but provide a way to configure your own credential using a quite basic checkPassword(user,pass) interface. - Tomcat is able to authenticate all my users

Re: Use the tomcat authentification mecanisms in a webapp

2006-02-21 Thread Poornachandran
Hi David, I am just wondering after your app authenticates, are you able to get not-null from request.getUserPrincipal(). I understand this is how the container understands that user is logged on or not. Poorna David Delbecq wrote: Hello, I probably will have the following webapp structur

Re: Use the tomcat authentification mecanisms in a webapp

2006-02-21 Thread David Delbecq
Hello Poornachandran, as i said webapp X manage authentification all by itself (basically using it's own providers, so there is now security constraint and so on in the web.xml, webapp does not use container managed security, and i have no control over this, closed source webapp), but it provides

Re: Use the tomcat authentification mecanisms in a webapp

2006-02-21 Thread Poornachandran
Okay, I see your point. But, if a user requests a secure page without logging in, how will you find out? Are you using a Servlet Filter or something? Poorna David Delbecq wrote: Hello Poornachandran, as i said webapp X manage authentification all by itself (basically using it's own provide

RE: remote debug on tomcat using eclipse

2006-02-21 Thread Asaf Lahav
Hi Tim, Your screen capture helped allot and actually solved my problem. Apparently I didn't include all the required arguments in the java tab of the tomcat5w.exe Thanks allot, Asaf Lahav VP R&D, Prima Grid LTD. Cellular: 972-54-4717955 Phone: 972-3-6540255 Fax:

Re: Use the tomcat authentification mecanisms in a webapp

2006-02-21 Thread David Delbecq
That's the job of the webapp :) All i see in my point of view is a user / pass checking method to implement (for information the webapp uses osuser authentification mecanism. So i have to provide an implementation of com.opensymphony.user.provider.CredentialsProvider which negociate it with tomcat

Re: reg. custom security

2006-02-21 Thread Reinhard Moosauer
Hi Poorna, you must have access to the manager-application. Otherwise you could not deploy/restart your webapp. Don't you? If you have access to the manager-webapp, you can deploy a context.xml-file along with your realm. Please see http://yourserver:8080/manager/html/ ->Install->XML config UR

Re:how to get help if no answer from this list? - thanks for the right answer

2006-02-21 Thread Dr. Exner
Thanks, you were right that I don't really understand the tomcat classloading yet. In the meantime I had noticed allready that the error messages appeared in the tomcat log file as soon as I copied the axis directory into the tomcat webapps directory. (The server being up) So I followed your h

Re: users Digest 20 Feb 2006 20:29:12 -0000 Issue 6230

2006-02-21 Thread Alexander E Genaud
Thanks for the reply George, Scratch directories are not a problem. I am able to set the workDir="C:\mywork". However, this is not generic enough. I've tried workDir="~/mywork", but that simply places a directory named "~" in CATALINA_HOME. You suggest creating a CatalinaBase directory. And that

Loosing Session-ID with JAAS

2006-02-21 Thread Franck Borel
Hi, I would like to forward error messages from the Login-Module (JAAS) to my login-error.jsp site. To do this I create a own JAASRealm class that override SecurityContraint method. In this method I placed a this.request = request, so that I can use request.getSession.getID() and request.getSessio

Re: Fw: Servlet problem

2006-02-21 Thread Mark Whitby
Actually that's wrong and my jsp code was wrong but my servlet code was right for what I wanted. I've solved the problem by replacing the ACTION command with "SearchItem" and then replacing /searchitem.jsp with /SearchItem in the web.xml file and that seems to have solved the problem fine. It

Re: Fw: Servlet problem

2006-02-21 Thread David Smith
I get the impression you are a beginner at this. Reading the servlet spec would go a long way in understanding how the servlet container works. For the immediate problem: 1) Try to get SearchServlet in a package. ie: com.mycompany.myproject.SearchServlet This isn't strictly required for s

Servlet problem/Data Source Problem

2006-02-21 Thread Mark Whitby
David, Thanks very much for the tips. I haven't yet got it in a package as I am just using this for testing at the moment though I had managed to find out about number 2 and 3 for myself. Thanks for the hint though. Now I have another problem with the following code: import java.io.*; impo

Tools to save click through data in a search engine

2006-02-21 Thread rrshwrk
hi all, I am using lucene + tomcat to host a web search engine. I want to save the queries posted to the search engine and the clicked results returned by the search engine. However, i am unsure if they are any tools readily available to do that (prefererably open source tools) I am sure atleast s

Remove Excess whitespace from jsp

2006-02-21 Thread Steven Pannell
Hi, Is there a way to configure tomcat to remove the excess whitespace that is left over when tomcat parses the jsp tags. There is lots of blank lines left over in my html were the jsp tags use to be and I want to remove them. sometimes I get stuff like (this is just an example): hello

RE: NoClassDefFoundError in SystemLogHandler during Bootstrap in binary version of TOMCAT 5.5.15

2006-02-21 Thread William . Adams
thanks for the suggestion. please see below. CLASSPATH=/usr/lpp/java/J1.4/lib/tools.jar: /usr/lpp/tomcat/bin/bootstrap.jar: /usr/lpp/tomcat/bin/commons-daemon.jar: /usr/lpp/jzos/jzos.jar: however the results are the same. William L Adams lll Systems Programmer

Re: Remove Excess whitespace from jsp

2006-02-21 Thread Rahul Akolkar
On 2/21/06, Steven Pannell <[EMAIL PROTECTED]> wrote: > Hi, > > Is there a way to configure tomcat to remove the excess whitespace that is > left over when tomcat parses the jsp tags. Configuring Jasper to trim spaces [1] should help some. If justified, a compaction filter could be introduced as

Re: users Digest 20 Feb 2006 20:29:12 -0000 Issue 6230

2006-02-21 Thread Mark Eggers
You might try using existing environment variables. %HOMEPATH% is the user's home path, but they might not like having temporary files stuffed into their Documents and Settings directory. Maybe "%HOMEPATH%\My Documents" wouldn't be too bad. Or, you could use the TMP or TEMP environment variable.

SOAP 1.1

2006-02-21 Thread Ludvig Lindstr
Hi, What Tomcat version should you use if you want it to support SOAP 1.1? Thanks in advance! /Ludvig - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

jakarta-tomcat-connectors-1.2.15 make error

2006-02-21 Thread James Taylor
Hi there, I'm trying to config communication between apache 2.0 and tomcat-5.5.12 in my account on a unix (solaris 10) machine using the jakarta-tomcat-connectors-1.2.15 connector. make keeps gives me annoying errors! I ran configure with these options; ./configure --with apxs2=/home/rmorrin/sw/apa

Multiple services in single Tomcat instance

2006-02-21 Thread Antti Ollilainen
Hello, I'm configuring a single Tomcat instance to serve two separate web applications. The applications are on separate ports and one is accessed over HTTP while the other one over HTTPS. I managed to get the webapps configured so that each is its own Service in the server.xml. Actually there was

RE: Multiple services in single Tomcat instance

2006-02-21 Thread Biernesser, Beth
I am also interested in this issue ... I am setting up the same situation. If anyone has information, could they also include me in the reply? Thanks so much! -Original Message- From: Antti Ollilainen [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 21, 2006 10:24 AM To: users@tomcat.

Can anyone tell me what causes this?

2006-02-21 Thread Earnie Dyke
[Tue Feb 21 10:36:39 2006] [3476:3868] [info] jk_open_socket::jk_connect.c (183): connect() failed errno = 55 I get this on some requests but not all. I have two workers loadbalanced with stick session =1. Earnie!

Re: jakarta-tomcat-connectors-1.2.15 make error

2006-02-21 Thread Mladen Turk
James Taylor wrote: Hi there, I'm trying to config communication between apache 2.0 and tomcat-5.5.12 in my account on a unix (solaris 10) machine using the jakarta-tomcat-connectors-1.2.15 connector. make keeps gives me annoying errors! I ran configure with these options; ./configure --with apxs

Re: Can anyone tell me what causes this?

2006-02-21 Thread Mladen Turk
Earnie Dyke wrote: [Tue Feb 21 10:36:39 2006] [3476:3868] [info] jk_open_socket::jk_connect.c (183): connect() failed errno = 55 ENOBUFS No buffer space available. Sounds like you're running low on system resources. Regards, Mladen.

RE: Servlet problem/Data Source Problem

2006-02-21 Thread GB Developer
Did you look in the catalina.out file for any thrown Exceptions? You are try/catching and then System.out.println'ing them. You should have seen a SQLException trace of some sort, read inline below... > -Original Message- > From: Mark Whitby [mailto:[EMAIL PROTECTED] > Sent: Tuesday, Fe

Strange servlet exception

2006-02-21 Thread Artur Rataj
Hello! I am developing a web app inside netbeans, and it worked until the following servlet exception began to appear: javax.servlet.ServletException: Servlet execution threw an exception root cause java.lang.NoClassDefFoundError: javax/servlet/http/HttpSession org.algstoch.httpuserlib

RE: [May Be Spam] Re: Can anyone tell me what causes this?

2006-02-21 Thread Earnie Dyke
On which end? IIS or JBoss/Tomcat? Earnie! -Original Message- From: Mladen Turk [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 21, 2006 10:56 AM To: Tomcat Users List Subject: [May Be Spam] Re: Can anyone tell me what causes this? Earnie Dyke wrote: > [Tue Feb 21 10:36:39 2006] [3476

RE: Strange servlet exception

2006-02-21 Thread Tim Lucia
You cannot ship servlet-api.jar as part of your war. If you do, you will have two different instances of the HttpSession.class object -- one loaded via Tomcat (from common/lib/servlet-api.jar) and the other loaded from the one in your .war. So, put it on your compile-time classpath, but do not in

Re: [May Be Spam] Re: Can anyone tell me what causes this?

2006-02-21 Thread Mladen Turk
Earnie Dyke wrote: On which end? IIS or JBoss/Tomcat? Well, it's the isapi_redirect error, so it's in the IIS obviously :) Regards, Mladen. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

RE: [May Be Spam] Re: [May Be Spam] Re: Can anyone tell me what causes this?

2006-02-21 Thread Earnie Dyke
Duh! Earnie! -Original Message- From: Mladen Turk [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 21, 2006 11:05 AM To: Tomcat Users List Subject: [May Be Spam] Re: [May Be Spam] Re: Can anyone tell me what causes this? Earnie Dyke wrote: > On which end? IIS or JBoss/Tomcat? > W

Passwords in tomcat_users.xml

2006-02-21 Thread Möller Ulf
Hi, Do the passwords in tomcat_users.xml have to be stored in plain text, or is there any way of using hashed passwords? I couldn't find this question answered in the docs, so I'd be grateful for any help. Thanks, Ulf

Re: Strange servlet exception

2006-02-21 Thread Artur Rataj
Thank you for help. It was the tomcat web app that was putting the servlet-api-jar into war. I corrected it and the app works ok again. Artur - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PRO

Re: Passwords in tomcat_users.xml

2006-02-21 Thread Markus Schönhaber
Möller Ulf wrote: > Do the passwords in tomcat_users.xml have to be stored in plain text, or is > there any way of using hashed passwords? You can use digested passwords. Of course, you have to tell Tomcat that the passwords are digested by setting the "digest"-attribute of the corresponding "Re

Re: jakarta-tomcat-connectors-1.2.15 make error

2006-02-21 Thread James Taylor
Nice one Mladen I wasn't aware of this, So is it the case that running tomcat in-process is no longer supported? do people prefer to use ajp13? Regards, James On 2/21/06, Mladen Turk <[EMAIL PROTECTED]> wrote: > James Taylor wrote: > > Hi there, > > I'm trying to config communication between apach

Re: jakarta-tomcat-connectors-1.2.15 make error

2006-02-21 Thread James Taylor
So i was able to run make but I got a warning; libtool: install: warning: remember to run `libtool --finish /home/rmorrin/James/Java/DownloadedSoftware/apache2.0/modules' make[1]: Leaving directory `/home/rmorrin/James/Java/DownloadedSoftware/jakarta-tomcat-connectors-1.2.15-src/jk/native/apache-2.

Re: jakarta-tomcat-connectors-1.2.15 make error

2006-02-21 Thread Mladen Turk
James Taylor wrote: So i was able to run make but I got a warning; libtool: install: warning: remember to run `libtool --finish mod_jk does not comes with .so version numbering, so just disregard that note. Does this mean to run libtool after I copy across mod_jk to ${APACHE_HOME}/modules

Re: how to get help if no answer from this list? - thanks for the right answer

2006-02-21 Thread Richard Schilling
Look for the directory WEB-INF. Windows search of the file system might not pick up server-config.wsdd because the file name is longer than a traditional DOS file name. Windows stores long file names in an abbreviated format. But the file should be in the Tomcat directory, so restrict your s

Re: Strange servlet exception

2006-02-21 Thread Artur Rataj
The error is there again. javax.servlet.ServletException: Servlet execution threw an exception root cause java.lang.NoClassDefFoundError: javax/servlet/http/HttpSession org.algstoch.httpuserlib.Password.removeUserId(Password.java:118) servlets.LoginScreenServlet.processRequest(Lo

RE: how to get help if no answer from this list? - thanks for the right answer

2006-02-21 Thread Caldarale, Charles R
> From: Richard Schilling [mailto:[EMAIL PROTECTED] > Subject: Re: how to get help if no answer from this list? - > thanks for the right answer > > Windows stores long file names in an abbreviated format. That hasn't been true since FAT16 days. The newer Windows file systems use the long names

Re: Strange servlet exception

2006-02-21 Thread Artur Rataj
More details: 1. The jars within the war do not have servlet_api.jar, too. 2. The method session.removeAttribute() works OK in servlets.LoginScreenServlet.processRequest, but in the method called by processRequest it throws the exception. 3. processRequest is in the netbeans webapp, and removeUs

Can anyone tell me...

2006-02-21 Thread Earnie Dyke
what the units are for this in ISAPI redirector? Milliseconds, seconds, minutes? Earnie! cache_timeout 0 Cache timeout property should be used with cachesize to specify how to time JK should keep an open socket in cache before closing it. This property should be used to reduce the

Re: Strange servlet exception

2006-02-21 Thread Artur Rataj
5. And the error occurs also with Java 1.5 and Tomcat 5.5.15. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Client Cert

2006-02-21 Thread Luis Henrique
I have founded one way to do what I want I have used the JCAPI lib (www.phoex.com) in an applet So, now the user can choose the cert to send to server. It works on Windows keystore. On 2/17/06, David Tonhofer, m-plify S.A. <[EMAIL PROTECTED]> wrote: > --On Friday, February 17, 2006 2:01 PM -0300

Remove Excess whitespace from jsp

2006-02-21 Thread Terence M. Bandoian
Hi- There is a short section on white space in the JSP spec which may be helpful. -Terence M. Bandoian >>> >>>Hi, >>> >>>Is there a way to configure tomcat to remove the excess whitespace that is >>>left over when tomcat parses the jsp tags. There is lots of blank lines >>>left over in my html

init.d Tomcat5 file modifications

2006-02-21 Thread rwhart
Hi all, I am a newbie (really new) to the world of java, tomcat, etc. I have a medical program for teaching cases called MIRC installed on Tomcat5.5 and Java1.5.0_06. I installed Tomcat5.5 and the Sun JDK as they are required for the application and I could not figure out all the references in

Does mod_jk work with Tomcat 5.5?

2006-02-21 Thread Brad O'Hearne
I downloaded the mod_jk binary for my distribution, and the filename was: jakarta-tomcat-connectors-jk-1.2.14-linux-sles9-x86_64-worker.so I placed the file in the httpd modules subdirectory, I then added the load directive in my httpd.conf file using the following line: LoadModule mod_jk mo

common-compress

2006-02-21 Thread Gilbert, Antoine
Hi Where I can find the jar of this project? Unable to find it there http://jakarta.apache.org/commons/sandbox/compress/

Re: Does mod_jk work with Tomcat 5.5?

2006-02-21 Thread Francis Galiegue
2006/2/21, Brad O'Hearne <[EMAIL PROTECTED]>: [...] mod_jk does work with tomcat5, we've been using it here for at least 8 months. Anyway, this error: > Syntax error on line 207 of /etc/httpd/conf/httpd.conf: > Cannot load > /etc/httpd/modules/jakarta-tomcat-connectors-jk-1.2.14-linux-sles9-x > 8

Re: Does mod_jk work with Tomcat 5.5?

2006-02-21 Thread Brad O'Hearne
Francis, That's just it though. The file *is* there, named exactly right, is has the same permissions and is owned by the same owner as all the other modules. Is there something else, perhaps another file, that its looking for? Brad Francis Galiegue wrote: 2006/2/21, Brad O'Hearne <[EMAIL

Re: Does mod_jk work with Tomcat 5.5?

2006-02-21 Thread Francis Galiegue
2006/2/21, Brad O'Hearne <[EMAIL PROTECTED]>: > Francis, > > That's just it though. The file *is* there, named exactly right, is has > the same permissions and is owned by the same owner as all the other > modules. > > Is there something else, perhaps another file, that its looking for? > Your wor

Re: Does mod_jk work with Tomcat 5.5?

2006-02-21 Thread Warren Pace
> > From: Brad O'Hearne <[EMAIL PROTECTED]> > Date: 2006/02/21 Tue PM 03:35:52 EST > To: Tomcat Users List > Subject: Does mod_jk work with Tomcat 5.5? > > I downloaded the mod_jk binary for my distribution, and the filename was: > > jakarta-tomcat-connectors-jk-1.2.14-linux-sles9-x86_64-worke

Re: Client Cert

2006-02-21 Thread David Tonhofer, m-plify S.A.
Hi, You mean Interesting link (\me writes down) But in that case, what you do is basically do is provide the user with a tool to extract his cert from a Windows keystore and then upload the cert to the server over an open connection. This is perfectly all rig

Re: init.d Tomcat5 file modifications

2006-02-21 Thread Warren Pace
> > From: [EMAIL PROTECTED] > Date: 2006/02/21 Tue PM 03:18:27 EST > To: users@tomcat.apache.org > Subject: init.d Tomcat5 file modifications > > Hi all, > I am a newbie (really new) to the world of java, tomcat, etc. I have a > medical program for teaching cases called MIRC installed on Tomc

Re: init.d Tomcat5 file modifications

2006-02-21 Thread rwhart
Warren, I would appreciate a copy of your tomcat init file. I will have tomorrow to work on it. Thanks for the offer. Bob Hartung [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail

Re: Re: init.d Tomcat5 file modifications

2006-02-21 Thread Warren Pace
> > From: [EMAIL PROTECTED] > Date: 2006/02/21 Tue PM 05:46:43 EST > To: "Tomcat Users List" > CC: [EMAIL PROTECTED] > Subject: Re: init.d Tomcat5 file modifications > > Warren, > I would appreciate a copy of your tomcat init file. I will have tomorrow to > work on it. Thanks for the offer. >

BadInputFilterValve working with Tomcat 5.5

2006-02-21 Thread Matrix
Does someone run the valve BadInputFilterValve with Tomcat 5.5? This valve immunes against all XSS, HTML injection, and command injection exploits. It has been written by Jason Brittain using Tomcat 4 (http://examples.oreilly.com/tomcat/tomcatbook-examples-1.0.zip). I made it compile and ins

Re: init.d Tomcat5 file modifications

2006-02-21 Thread Glen Mazza
[EMAIL PROTECTED] wrote: My problem is to make it function under /etc/init.d so it will start automagically whenever the machine reboots [should be rare, of course!]. I have compiled jsvc and copied the Tomcat5.sh file into /etc/init.d. My problem is with the editing of this file. Possibly

Re: Multiple services in single Tomcat instance

2006-02-21 Thread Antti Ollilainen
Hi, Here is a link to the archived discussion which helped me to configure the services up and running: http://marc.theaimsgroup.com/?l=tomcat-user&m=111411822627845&w=2 On 2/21/06, Biernesser, Beth <[EMAIL PROTECTED]> wrote: > > I am also interested in this issue ... I am setting up the same > s

Re: common-compress

2006-02-21 Thread Mario Ivankovits
Hi! > Where I can find the jar of this project? > You have to build it from SVN using maven, or download a snapshot from http://www.ibiblio.org/maven/commons-compress/jars/commons-compress-20050911.jar Currently we have no nightly nor a release build. Ciao, Mario

images

2006-02-21 Thread Zohar Amir
Hi, I have a servlet that transforms an XML using XSLT. In the result HTML I want to include some images. Where do I place those images? I tried the WebContent directory, but they could not be loaded (I even tried getting them explicitly, but the servlet was invoked instead). Thanks, Zohar.