Re: Installation file
Hi Ludvig, May I know why did u choose tomcat version 3.3.2 while the latest version 5.5 is available? Regards Kary Systems Engineer PTG - Original Message - From: Ludvig Lindström [EMAIL PROTECTED] To: users@tomcat.apache.org Sent: Thursday, February 23, 2006 1:28 PM Subject: Installation file How do you install tomcat 3.3.2 for windows? I can't find an exe-file (installation file) on the tomcat webpage. Thanks in advance! /Ludvig - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Installation file
Because version 5.5 doesn´t support SOAP version 1.1 that I use in Siebel 6.3... Regards, Ludvig From: PKarthick [EMAIL PROTECTED] Reply-To: Tomcat Users List users@tomcat.apache.org To: Tomcat Users List users@tomcat.apache.org Subject: Re: Installation file Date: Thu, 23 Feb 2006 13:34:34 +0530 Hi Ludvig, May I know why did u choose tomcat version 3.3.2 while the latest version 5.5 is available? Regards Kary Systems Engineer PTG - Original Message - From: Ludvig Lindström [EMAIL PROTECTED] To: users@tomcat.apache.org Sent: Thursday, February 23, 2006 1:28 PM Subject: Installation file How do you install tomcat 3.3.2 for windows? I can't find an exe-file (installation file) on the tomcat webpage. Thanks in advance! /Ludvig - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
JAAS : HTTP 400 Invalid direct reference to form login ... (JAAS + Filter + j_security_check)
Hello, I implements a solution with JAAS and userfilter on Tomcat. the loginmodule return always 'true' eventhough the password is wrong. I do that to be able to return detail error messages to the login.jsp. (I use the role principal to display messages). The filter is used to dispatch to the application pages or back to the login.jsp page if the authentification failed. The error : Etat HTTP 400 - Référence directe à la form de connexion (form login page) invalide OR HTTP 400 : Invalid direct reference to form login ... is displayed when I first logon with a wrong password and then I relog with the correct password. It seems I didnot invalidate correctly the jaas or the session after the failure. Do you have any idea ? Thanks
Re: JAAS : HTTP 400 Invalid direct reference to form login ... (JAAS + Filter + j_security_check)
Thanks for the answer. You are right, I will check this solution with the ThreadLocal pattern (i don't know at all). I used the filter and the loginModule returns always 'true' beacuse it's not easy to pass some messages 'wrong password', 'validity perdio expired', etc... to the login.jsp in case of a wrong authentification. Thanks PS : Do you have any example of a solution with threadlocal ? Message du 23/02/06 à 10h19 De : David Delbecq A : Tomcat Users List Copie à : Objet : Re: JAAS : HTTP 400 Invalid direct reference to form login ... (JAAS + Filter + j_security_check) Login module should return false if not authenticated. If you need to store messages for the user, i'll suggest you pass them another way (like by using a ThreadLocal pattern) Vincent Delhommois a écrit : Hello, I implements a solution with JAAS and userfilter on Tomcat. the loginmodule return always 'true' eventhough the password is wrong. I do that to be able to return detail error messages to the login.jsp. (I use the role principal to display messages). The filter is used to dispatch to the application pages or back to the login.jsp page if the authentification failed. The error : Etat HTTP 400 - Référence directe à la form de connexion (form login page) invalide OR HTTP 400 : Invalid direct reference to form login ... is displayed when I first logon with a wrong password and then I relog with the correct password. It seems I didnot invalidate correctly the jaas or the session after the failure. Do you have any idea ? Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JAAS : HTTP 400 Invalid direct reference to form login ... (JAAS + Filter + j_security_check)
Login module should return false if not authenticated. If you need to store messages for the user, i'll suggest you pass them another way (like by using a ThreadLocal pattern) Vincent Delhommois a écrit : Hello, I implements a solution with JAAS and userfilter on Tomcat. the loginmodule return always 'true' eventhough the password is wrong. I do that to be able to return detail error messages to the login.jsp. (I use the role principal to display messages). The filter is used to dispatch to the application pages or back to the login.jsp page if the authentification failed. The error : Etat HTTP 400 - Référence directe à la form de connexion (form login page) invalide OR HTTP 400 : Invalid direct reference to form login ... is displayed when I first logon with a wrong password and then I relog with the correct password. It seems I didnot invalidate correctly the jaas or the session after the failure. Do you have any idea ? Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JAAS : HTTP 400 Invalid direct reference to form login ... (JAAS + Filter + j_security_check)
The most basic way i see is to have a class with 3 static methods and one static field:: setMessage(), getMessage(), clearMessage() private static ThreadLocal message = new ThreadLocal; ... message.set(theMessage); ... return (String)message.get(); your jaas would do a setMessage() and your error.jsp wouold do a getMessage() be carefull, this class must be visible to both you jaas and your webapp Vincent Delhommois a écrit : Thanks for the answer. You are right, I will check this solution with the ThreadLocal pattern (i don't know at all). I used the filter and the loginModule returns always 'true' beacuse it's not easy to pass some messages 'wrong password', 'validity perdio expired', etc... to the login.jsp in case of a wrong authentification. Thanks PS : Do you have any example of a solution with threadlocal ? Message du 23/02/06 à 10h19 De : David Delbecq A : Tomcat Users List Copie à : Objet : Re: JAAS : HTTP 400 Invalid direct reference to form login ... (JAAS + Filter + j_security_check) Login module should return false if not authenticated. If you need to store messages for the user, i'll suggest you pass them another way (like by using a ThreadLocal pattern) Vincent Delhommois a écrit : Hello, I implements a solution with JAAS and userfilter on Tomcat. the loginmodule return always 'true' eventhough the password is wrong. I do that to be able to return detail error messages to the login.jsp. (I use the role principal to display messages). The filter is used to dispatch to the application pages or back to the login.jsp page if the authentification failed. The error : Etat HTTP 400 - Référence directe à la form de connexion (form login page) invalide OR HTTP 400 : Invalid direct reference to form login ... is displayed when I first logon with a wrong password and then I relog with the correct password. It seems I didnot invalidate correctly the jaas or the session after the failure. Do you have any idea ? Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Java Question
From: Andrew English [mailto:[EMAIL PROTECTED] Is there anyway to check this theory? -Original Message- From: Peter Crowther [mailto:[EMAIL PROTECTED] [...] I suspect an operations issue. Has someone configured a revision control system (such as CVS or Subversion) on the production server, FileMon on Windows or your preferred syscall tracing utility on your flavour of UNIX. I see from a later post that you plan to do this anyway. If you're on Windows, you could also enable file auditing on the server and turn on auditing for the directories that contain the HTML files - this feature is provided by default on NT-derived OSs, logs to the security event log, and means you won't get tons of irrelevant output from FileMon. However, I'd advise increasing the size of the security event log if you're going to do this. - Peter - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Removing an authenticated session
Hi! I have a filter that passes the username and password entered in the basic http authentication pop up dialog to a login.jsp which redirects to a servlet that does the actuall authentication. Since my authentication takes place somewhere else, I would like the basic http authentication pop up window to be displayed again if the authentication fails. I.e. the servlet to which I send the username and password redirects to the protected login.jsp if the user has entered an incorrect username or password. But since there's already an established authenticated session with tomcat regardless of what the users has entered, this will result in an infinte loop of reloads. So I need to somehow remove the authenticated session before I redirect to the authentication servlet, either from the filter or from the JSP. Does anyone know what I should do? I was thinking about removing the session cookies programatically from a my login.jsp, but when I tried removing them by hand in Firefox I still didn't see the pop up dialog. But removing the authenticated sessions in Firefox helped, so I'm looking for something like this. Thanks, Johan
Re: Redirect username and password from http basic authentication to a serlvet as parameters
In your webapp, there is no authenticated session -- at least from the perspective of tomcat there isn't. Since you are managing the authentication directly, all you need to do is send another unauthorized response when the username/password aren't correct: response.setStatus( HttpServletResponse.SC_UNAUTHORIZED); response.setHeader(WWW-Authenticate, BASIC realm=\My realm\); And end the response there. The browser will do exactly what it should do and ask the user for credentials again. --David Johan Haleby wrote: Thanks David! I got things working now exactly the way I wanted! But I still have another question if you're up for it. Since my authentication takes place somewhere else, I would like the basic http authentication pop up window to be displayed again if the authentication fails. I.e. the servlet to which I send the username and password redirects to the protected login.jsp if the users has entered a incorrect username or password. But since there's already an established authenticated session regardless of what the users has typed, this will result in an infinte loop of reloads. So I need to somehow remove the authenticated session again, either from the filter or from the JSP. I've tried to remove the cookies but that doesn't help. Do you know how to solve this? Thanks again, Johan On 2/22/06, David Smith [EMAIL PROTECTED] wrote: You didn't actually say why this code doesn't work. Is there an error or is it you just can't get the credentials from the request in your jsp? At any rate, you have some options with storing the decoded credentials. If you are writing all the code and you don't care if getRemoteUser() ever returns the username, you could do something as simple as request.setAttribute( username, username ). Same with password. Your jsp would simply pull the attribute out of the request with (String)request.getAttribute( username ) to get the auth information. As a second option, you could also write a class that extends HttpServletRequestWrapper with a couple of methods for setting username and password and then override getRemoteUser() to return the username. There isn't a method for retrieving the password from HttpServletRequest, so you'll still need to just store it in the request as an attribute if you want it available later. In the filter, you'd do something like: wrapRequest = new WrappedRequestClass( request ) ; wrapRequest.setUsername( username ) ; wrapRequest.setPassword( password ) ; chain( (HttpServletRequest)wrapRequest, response ) ; All things being equal, I'd go for the first option since it's the simplest. Use the second if you are using third-party code that expects to be able to use getRemoteUser(). --David Johan Haleby wrote: Thanks for the reply, (I'm thanking Tim as well :)). I've never worked with filters before so I don't quite get everything you're saying. Your code seem to be a good first step though. But I have a few questions: My code in the doFilter looks like this atm: HttpServletRequest httpServletRequest = (HttpServletRequest) request; HttpServletResponse httpServletResponse = (HttpServletResponse) response; System.out.println(# Authentication header = + httpServletRequest.getHeader(Authentication)); if (httpServletRequest.getHeader(Authentication) == null || httpServletRequest.getHeader(Authentication).length() = 6) { System.out.println(# No authentication header found); httpServletResponse.setStatus( HttpServletResponse.SC_UNAUTHORIZED); httpServletResponse.setHeader(WWW-Authenticate, BASIC realm=\My realm\); } else { System.out.println(# Authentication info received!!!); // Decode the auth header String authHeader = httpServletRequest.getHeader (Authentication); String authInfo= new String(Base64.decode(authHeader.substring(6).getBytes() )) ; String user=authInfo.substring(0, authInfo.indexOf(':')-1) ; String password = authInfo.substring(authInfo.indexOf(':')+1) ; System.out.println(# User = + user); System.out.println(# Password = + password); } This is not working, and the reason is probably obvious for most of you. But what should I do? Should I somehow wrap the httpServletResponse in a response wrapper so that I can receive what the user type when the window pops up? (Right now the authentication header is always null regardless of what I write in the username/password box in the pop up windows). And do I really have to wrap the request when I'm doing my redirect even though the filter should not care about what's happening next? And the last thing: My thoughts right now is that I'll configure this filter to protect a jsp page that will never be accessed
mod_jk config error
Hi there, I'm trying to config mod_jk 1.2.15 with tomcat 5.5.12 and apache2 in my account on a solaris10 machine and I get the following error when I run ~/sw/apache2.0/bin/apachectl start Syntax error on line 1038 of /home/rmorrin/James/Java/DownloadedSoftware/apache2.0/conf/httpd.conf: Cannot load /home/rmorrin/James/Java/DownloadedSoftware/apache2.0/modules/mod_jk.so into server: ld.so.1: httpd: fatal: relocation error: file /home/rmorrin/James/Java/DownloadedSoftware/apache2.0/modules/mod_jk.so: symbol jni_worker_factory: referenced symbol not found Please see my config file details at the end of this post. Any help to resolve this is appreciated, Regards, James. the mod_jk part of my httpd.conf file is as follows: # Load mod_jk module LoadModule jk_module modules/mod_jk.so # Where to find workers.properties JkWorkersFile ~/sw/apache2.0/conf/workers.properties # Where to put jk logs JkLogFile ~/sw/apache2.0/logs/mod_jk.log # Set the jk log level [debug/error/info] JkLogLevelinfo # Select the log format JkLogStampFormat [%a %b %d %H:%M:%S %Y] # JkOptions indicate to send SSL KEY SIZE, JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories # JkRequestLogFormat set the request format JkRequestLogFormat %w %V %T # Send servlet for context /examples to worker named testWorker JkMount /examples/servlet/* ajp13Worker # Send JSPs for context /examples to worker named testWorker JkMount /examples/*.jsp ajp13Worker and my workers.properties is in ~/sw/apache2.0/conf and is as follows: workers.tomcat_home=/home/rmorrin/sw/tomcat-5.5.12 workers.java_home=/home/rmorrin/sw/jdk1.5.0_05 ps=/ worker.list=ajp13Worker worker.default.port=8009 worker.default.host=localhost worker.default.type=ajp13 worker.default.lbfactor=1 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Installation file
My 2 cents If there is zip file, it is likely to be as in successive versions. It is pretty simple either launching it as service or manually by its batch files. I started with version 4 and it didn't changed till 5.5, from this point of view. On 2/23/06, Ludvig Lindström [EMAIL PROTECTED] wrote: Because version 5.5 doesn´t support SOAP version 1.1 that I use in Siebel 6.3... Regards, Ludvig From: PKarthick [EMAIL PROTECTED] Reply-To: Tomcat Users List users@tomcat.apache.org To: Tomcat Users List users@tomcat.apache.org Subject: Re: Installation file Date: Thu, 23 Feb 2006 13:34:34 +0530 Hi Ludvig, May I know why did u choose tomcat version 3.3.2 while the latest version 5.5 is available? Regards Kary Systems Engineer PTG - Original Message - From: Ludvig Lindström [EMAIL PROTECTED] To: users@tomcat.apache.org Sent: Thursday, February 23, 2006 1:28 PM Subject: Installation file How do you install tomcat 3.3.2 for windows? I can't find an exe-file (installation file) on the tomcat webpage. Thanks in advance! /Ludvig - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Changing content of response on canceled basic authentication
Hello fellow tomcat users, I'm running Tomcat 5.5.4 with Apache 2.0.54 and mod_jk. The system uses basic authentication to serve certain pages for authenticated users. One of my users said that if he enters my system and is being asked to authenticate via that popup-windows, he sometimes hits the cancel-button of that popup-window. After that he his shown a page that seems to be generated from tomcat: HTTP Status 401 - unauthorized *type* Status report *message* _unauthorized_ *description* _This request requires HTTP authentication (unauthorized)._ Apache Tomcat/5.5.7 The users said (and I concur) that this page is not only too technical, but it doesn't contain any informations for users that have forgotten their passwords or have to apply for their own account. Recently I tried out to set the error-page in web.xml for response-code 401 to show a certain page with infos about forgotten passwords and how to apply for a new account, but after I restarted the server noone was able to login any longer. Whenever someone tried to open one page that required authentication, the defined error-page for error 401 was shown and no authentication request was passed to the client. Here some internas about my application: My web application is handling authentication internally, meaning I don't use an authentication realm in web.xml. A central Controller-Servlet (the one and only servlet of the whole web application, viva MVC) decides when a certain request requires authentication. When the requires credentials are not already part of the request, the Controller-Servlet sends the following as response using the Servlet-API: response.setHeader(WWW-Authenticate,Basic realm=\MySystem\); response.sendError(401,unauthorized); Note: response is the HttpServletResponse-Object. When no error-page for error 401 is defined in web.xml that works properly. Here my questions: Can I configure tomcat properly without changing its code to send another authentication required-page instead of the defaut error-content? Thank you in advance, Oliver Schönwald Germany
Re: mod_jk config error
James Taylor wrote: Hi there, I'm trying to config mod_jk 1.2.15 with tomcat 5.5.12 and apache2 in my account on a solaris10 machine and I get the following error when I run ~/sw/apache2.0/bin/apachectl start Syntax error on line 1038 of /home/rmorrin/James/Java/DownloadedSoftware/apache2.0/conf/httpd.conf: Cannot load /home/rmorrin/James/Java/DownloadedSoftware/apache2.0/modules/mod_jk.so into server: ld.so.1: httpd: fatal: relocation error: file /home/rmorrin/James/Java/DownloadedSoftware/apache2.0/modules/mod_jk.so: symbol jni_worker_factory: referenced symbol not found Please see my config file details at the end of this post. Any help to resolve this is appreciated, Regards, James. I told you on Feb 21 that the jni is not supported. I do not understand why do you still try to have JNI support? Please follow the instructions I gave you, because things you are trying to do leads to nowhere. Regards, Mladen. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Changing content of response on canceled basic authentication
put your response.setHeader(WWW-Authenticate,Basic realm=\MySystem\); insode your error page instead of authentification servlet. (I guess sendError() clear all headers) Oliver Schoenwald a écrit : Hello fellow tomcat users, I'm running Tomcat 5.5.4 with Apache 2.0.54 and mod_jk. The system uses basic authentication to serve certain pages for authenticated users. One of my users said that if he enters my system and is being asked to authenticate via that popup-windows, he sometimes hits the cancel-button of that popup-window. After that he his shown a page that seems to be generated from tomcat: HTTP Status 401 - unauthorized *type* Status report *message* _unauthorized_ *description* _This request requires HTTP authentication (unauthorized)._ Apache Tomcat/5.5.7 The users said (and I concur) that this page is not only too technical, but it doesn't contain any informations for users that have forgotten their passwords or have to apply for their own account. Recently I tried out to set the error-page in web.xml for response-code 401 to show a certain page with infos about forgotten passwords and how to apply for a new account, but after I restarted the server noone was able to login any longer. Whenever someone tried to open one page that required authentication, the defined error-page for error 401 was shown and no authentication request was passed to the client. Here some internas about my application: My web application is handling authentication internally, meaning I don't use an authentication realm in web.xml. A central Controller-Servlet (the one and only servlet of the whole web application, viva MVC) decides when a certain request requires authentication. When the requires credentials are not already part of the request, the Controller-Servlet sends the following as response using the Servlet-API: response.setHeader(WWW-Authenticate,Basic realm=\MySystem\); response.sendError(401,unauthorized); Note: response is the HttpServletResponse-Object. When no error-page for error 401 is defined in web.xml that works properly. Here my questions: Can I configure tomcat properly without changing its code to send another authentication required-page instead of the defaut error-content? Thank you in advance, Oliver Schönwald Germany - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: context path ignored in Context.xml
Robert Taylor wrote: Greetings, I'm using Tomcat 5.5.15 on Win2k in development. I start Tomcat through a target in my Ant build and pass it a server.xml file. My web app is deployed to a directory named webapp (the docbase) and contains a /META-INF/context.xml file which has a context path, /test. When I start tomcat and attempt to access my web app using the context path of /test, I get a strange 400 error. HTTP/1.x 400 No Host matches server name localhost When I access the webapp using /webapp as the context path, tomcat serves up the content. Therefore, it appears that Tomcat is ignoring the context path I have defined and using the docbase directory in name by default. And that's exactly the way it's documented. Read about Context's path-attribute here: http://tomcat.apache.org/tomcat-5.5-doc/config/context.html In essence: in most situations the path-attribute is ignored (even documented as must not be set) and the Context path is derived from the corresponding filename. Regards mks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Multiple Tomcat 5.5 on Windows 2003
Hi, I need to run multiple Tomcat 5.5 instances on Windows 2003 behind IIS. Each instance will be supporting different clients with applications that are not able to be restarted using the tomcat 5.5 manager/admin tools. I have managed to get isapi.redirect to work for the different IIS sites but can only run the Tomcat installs from their individual catalina.bat files under a dos window. I have established how to install these using the zip file not the exe, but am not sure how to set them up to run as services so that they will start on a system reboot. Under tomcat 3 there was a jk_nt_service.exe program along with a wrapper.properties file that was used, will this still work with 5.5 on Windows 2003? Any assistance welcome Thanks Dave
RE: Reading Data Form MS -execel 2003- in java
One note on POI. It is a good product and works but it is also abandon-ware - there has been no new development on it for years. Thanks - dave David Thielen www.windwardreports.com 303-499-2544 -Original Message- From: Vincent [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 22, 2006 11:00 PM To: Tomcat Users List Subject: Re: Reading Data Form MS -execel 2003- in java yeah , definally POI On 2/23/06, Bill Barker [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi Forum, Did anyone used java program to read data from microsoft excel ? Can any one give me pointers where to look for this ?? http://jakarta.apache.org/poi/ thanks Birendar Singh Waldiya Tata Consultancy Services Limited Mailto: [EMAIL PROTECTED] Website: http://www.tcs.com Notice: The information contained in this e-mail message and/or attachments to it may contain confidential or privileged information. If you are not the intended recipient, any dissemination, use, review, distribution, printing or copying of the information contained in this e-mail message and/or attachments to it are strictly prohibited. If you have received this communication in error, please notify us by reply e-mail or telephone and immediately and permanently delete the message and any attachments. Thank you - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Custom TrustManager issue
Hello, I am trying to build a very simple webmail client that accesses my IMAPS server (self signed). I downloaded the sample code presented in http://www.javaworld.com/javatips/jw-javatip115.html and got it working from the command line. However, when I tried to implement the same code within a servlet, I get the following error: javax.servlet.ServletException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target; nested exception is: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target at com.sun.mail.imap.IMAPStore.protocolConnect(IMAPStore.java:335) It looks almost as though the custom TrustManager is not being consulted? I am obviously missing some additional configuration step (s) when deploying in Tomcat. You can download the source code from http://www.rakeshv.org/tmp/ imaps.zip. I can run the program using the run.sh script fine, but the war file gives the above error when deployed on Tomcat 5.5.12, with Java 1.5.0_05-83 Thanks in advance for all help in solving this issue. Rakesh - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: context path ignored in Context.xml
Markus, Thanks for replying. I saw that line as well: The value of this field must not be set except when statically defining a Context in server.xml, as it will be infered from the filenames used for either the .xml context file or the docBase. As the current 5.5 documentation states that it is not recommended to embed Contexts in server.xml but rather place them in /META-INF/ of the web app, I was unclear as to the validity of the above statement for my particular case. That is, I don't staically define my Context in server.xml, but rather in the recommended location (META-INF). Thanks for the clarification. /robert Markus Schönhaber wrote: Robert Taylor wrote: Greetings, I'm using Tomcat 5.5.15 on Win2k in development. I start Tomcat through a target in my Ant build and pass it a server.xml file. My web app is deployed to a directory named webapp (the docbase) and contains a /META-INF/context.xml file which has a context path, /test. When I start tomcat and attempt to access my web app using the context path of /test, I get a strange 400 error. HTTP/1.x 400 No Host matches server name localhost When I access the webapp using /webapp as the context path, tomcat serves up the content. Therefore, it appears that Tomcat is ignoring the context path I have defined and using the docbase directory in name by default. And that's exactly the way it's documented. Read about Context's path-attribute here: http://tomcat.apache.org/tomcat-5.5-doc/config/context.html In essence: in most situations the path-attribute is ignored (even documented as must not be set) and the Context path is derived from the corresponding filename. Regards mks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Detect expired server certificate
Thanks Bill, 1. My client doesn't throw an exception if the client and server's cert is identical and both are expired. If only one of them is expired, it thorws exception. I want to detect the expired situation even if both side are expired. 2. WebLogic detects expired cert. So, it means JSSE doesn't do this but does WebLogic have its own code to detect this? Thanks, On 2/22/06, Bill Barker [EMAIL PROTECTED] wrote: Jihwan Kim [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, I have this in my server.xml Connector port=443 maxThreads=150 minSpareThreads=25 maxSpareThreads=75 enableLookups=false disableUploadTimeout=true acceptCount=100 debug=0 scheme=https secure=true clientAuth=true sslProtocol=TLS keystoreFile=c:/j2sdk1.4.2_09/jre/lib/security/cacerts keystorePass= / cacerts is a self signed certificate. Whewn the certificate is expired, I would like to detect it and send a proper message to a client side user. This happens deep within JSSE, before normally any of your or Tomcat's code gets a chance to do anything. So, 1. how can I detect the expired cert from a Java application client. Unless you configure your own TrustManager, the client will throw an exception when you try to connect. 2. Can I detect the expired cert during the Tomcat startup? Strangely, JSSE doesn't do this. Of course, there is nothing stopping your app from reading the cert from the KeyStore and checking yourself ;-). Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How to configure my Realm class from context.xml?
Does anybody know how to configure Realm from .../META-INF/context.xml? Realm className=my.realm.JNDIRealm resourceName=my/RealmFactory/ I always get a ClassNotFoundException but the class does exist (under ../WEB-INF. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Detect expired server certificate
BTW, we use the Apache Axis to make a connection between our client and server. On 2/23/06, Jihwan Kim [EMAIL PROTECTED] wrote: Thanks Bill, 1. My client doesn't throw an exception if the client and server's cert is identical and both are expired. If only one of them is expired, it thorws exception. I want to detect the expired situation even if both side are expired. 2. WebLogic detects expired cert. So, it means JSSE doesn't do this but does WebLogic have its own code to detect this? Thanks, On 2/22/06, Bill Barker [EMAIL PROTECTED] wrote: Jihwan Kim [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, I have this in my server.xml Connector port=443 maxThreads=150 minSpareThreads=25 maxSpareThreads=75 enableLookups=false disableUploadTimeout=true acceptCount=100 debug=0 scheme=https secure=true clientAuth=true sslProtocol=TLS keystoreFile=c:/j2sdk1.4.2_09/jre/lib/security/cacerts keystorePass= / cacerts is a self signed certificate. Whewn the certificate is expired, I would like to detect it and send a proper message to a client side user. This happens deep within JSSE, before normally any of your or Tomcat's code gets a chance to do anything. So, 1. how can I detect the expired cert from a Java application client. Unless you configure your own TrustManager, the client will throw an exception when you try to connect. 2. Can I detect the expired cert during the Tomcat startup? Strangely, JSSE doesn't do this. Of course, there is nothing stopping your app from reading the cert from the KeyStore and checking yourself ;-). Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Time out with AJP13
Hello My environment : OS= Windows 2000 Web Server = Apache 2.0 Tomcat-Apache = 1.4.31 with AJP 13 connector Application uses JSP, Servlet and Driver JDBC Thin of Oracle RDBMS = Oracle 7.3.62 under z/OS (mainframe IBM) The application does'nt use connexion pooling : one physical connexion is used for each user The connexion is explicitly closed only when the user click on the button Quit of the application What's happen when a session is timed out ( without activity during the time set in web.xml) for the processor(limited by maxProcessor of ajp13) in which the last request was executed ? does this processor be released ? what's happen for the connexion to the database ? i didn't find documentation for this situation on the web : only about howto configure AJP13 connector ( that is done ) Last day i have to reboot the tomcat instance because the maxProcessor was reached ( saw it in the log of Tomcat ) I suppose that many users don't quit the application properly I see many more sessions open in the database than users connected ( under z/os the connection not cleanly closed stay ther until the shutdown of database) Regards [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to configure my Realm class from context.xml?
Your Realm implementation needs to sit in the server classloader as the Realm interface is only defined there (in catalina.jar). This is a PITA so when we did this we made the Realm implementation just lookup the real implementation via JNDI. That way all the authentication logic stayed in the webapp and only a couple of simple wrapper classes and interfaces went into the server and common classloaders. HTH, Jon Zsolt wrote: Does anybody know how to configure Realm from .../META-INF/context.xml? Realm className=my.realm.JNDIRealm resourceName=my/RealmFactory/ I always get a ClassNotFoundException but the class does exist (under ../WEB-INF. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Need advice on Java Servlet IIS/Win 2003
Hi, I have a customer that needs a Java servlet included into their web site. I've never had to do this before so I thought I should ask you experienced people. Their web server is a Windows 2003 server with IIS and Frontpage extensions. Could I install TomCat to accomplish this purpose? I'm not sure what's involved but I've read some docs about it and this seem like the proper way to go. Some of the docs are for older versions of TomCat though. If this will work are there any detailed instructions I can reference? Part of the reason I ask is I would eventually need to install this on a production web server so I need to be careful while doing this. Bill Dunn - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
first jdbc tomcat application
I'm stepping through the example Professional Apache Tomcat 5 book by Wrox in Chapter 14 - I have set up the mysql database and confirmed it works and set up the tomcat server and confirmed that I can see my index.jsp page. When I try to go to http://localhost:8070/jsp-examples/wroxjdbc/JDBCTest.jsp I get a standard The page cannot be displayed page. I've included all my steps below. Anyone that can help is most appreciated. Thanks in advance.Dave Steps I have done 1) Created a DB called everycitizen and a table called test with a column called pk. Created user everyuser w/ a password and granted Select privileges to that user. 2) Copied the mysql-connector-java-3.1.12-bin.jar into $CATALINA_HOME/common/lib. 3)Added the following to the $CATALINA_HOME/conf/server.xml just before the /Host tag. Password is blotted out. !-- added by DM 2/22/2006 -- DefaultContext Resource name=jdbc/WroxTC5 auth=Container type=javax.sql.Datasource/ ResourceParams name=jdbc/WroxTC5 parameter namedriverClassName/name valuecom.mysql.jdbc.Driver/value /parameter parameter nameurl/name valuejdbc:mysql://localhost/everycitizen/value /parameter parameter nameusername/name valueeveryuser/value /parameter parameter namepassword/name value*/value /parameter parameter namemaxActive/name ; value20/value /parameter parameter namemaxIdle/name value3/value /parameter parameter namemaxWait/name value100/value /parameter /ResourceParams /DefaultContext 4) Added the following to the $CATALINA_HOME/webapps/jsp-examples/WEB-INF web.xml file at the bottom just before the /web-app entry after the last env-entry. resource-ref res-ref-namejdbc/WroxTC5/res-ref-name res-typejavax.sql.DataSource/res-type res-authContainer/res-auth /resource-ref 5) Added the JDBCTest.jsp file and the errorpg.jsp file to $CATALINA_HOME/webapps/jsp-examples/wroxjdbc directory. I created the wroxjdbc folder. The JDBC Test is: html head %@ page errorPage=errorpg.jsp import=java.sql.*, javax.sql.*, java.io.*, javax.naming.InitialContext, javax.naming.Context % /head body h1JDBC JNDI Resource Test/h1 % InitialContext initCtx = new InitialContext(); DataSource ds = (DataSource)initCtx.lookup(java:comp/env/jdbc/WroxTC5); Connection conn = ds.getConnection(); Statement stmt = conn.createStatement(); ResultSet rset = stmt.executeQuery(select * from test;); % table width = '600' border='1' tr th align='left'/th /tr % while (rset.next()) { % trtd %=rset.getInt(0)%/td/tr % } rset.close(); stmt.close(); conn.close(); initCtx.close(); % /table /body /html and the errorpg is: html body %@ page isErrorPage=true % h1 An error has occurred /h1 %= exception.getMessage() % /body /html
configuring tomcat 5.5.9+ connector socket factory
I'm trying to provide a socket factory class that overrides the getKeystorePass method but I can't figure out how to hook it in. What attribute or subelement (is the Factory element supported in 5.5.x?) do I configure with my class name to get this to work? I've looked at the 5.5.15source code and I see references to attributes named 'socketFactory' and 'sslImplementation' but nothing in the docs http://tomcat.apache.org/tomcat-5.5-doc/config/http.html. Are either of these attributes the one I would use for this purpose? Is there a dtd for server.xml?
RE: Need advice on Java Servlet IIS/Win 2003
This works fine. Two companies I've worked at recently used W2K3 + IIS6 + JK 1.2.15 + Tomcat 5.5.12. Basically, you need to install the JK isapi_redirector in IIS, so that it will redirect the appropriate URLs to Tomcat for service, and then install the servlet(s)/JSP(s) on that Tomcat to answer the requests. Everything you need to know is on the http://tomcat.apache.org/ web site. Tim -Original Message- From: Bill [mailto:[EMAIL PROTECTED] Sent: Thursday, February 23, 2006 11:11 AM To: users@tomcat.apache.org Subject: Need advice on Java Servlet IIS/Win 2003 Hi, I have a customer that needs a Java servlet included into their web site. I've never had to do this before so I thought I should ask you experienced people. Their web server is a Windows 2003 server with IIS and Frontpage extensions. Could I install TomCat to accomplish this purpose? I'm not sure what's involved but I've read some docs about it and this seem like the proper way to go. Some of the docs are for older versions of TomCat though. If this will work are there any detailed instructions I can reference? Part of the reason I ask is I would eventually need to install this on a production web server so I need to be careful while doing this. Bill Dunn - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat Virtual Directory
I wrote a search application that returns database records, and based upon the key field in database, retrieve a picture from a separate picture repository on the server. My question is how can i set up my webapp to access my repository? Info: IDE- Netbeans 4.1 version- Tomcat 5.5.9 webapp path- c:\apache\tomcat\webapp\[application name] repository path- c:\pictures - Relax. Yahoo! Mail virus scanning helps detect nasty viruses!
Re: How to configure a separate security realm for an web application (Tomcat 5.5)
Hi I want to use JNDIRealm to authentice users for one of my JSP application. When the Realm was defined in the server.xml, it works for all applications. When I moved the Realm configuration to the myweb/WEB-INF/context.xml, and restarted the application. I also reloaded the application using Tomcat Manager. But I when I tried logging on to the application, it won't work. I have looked at the doc but find it a bit confusing. May I just clarify if this arrangement only work for deployment with a war file? Are there any step-to-step guide available on how to achieve this? I have done a google but came up with very little useful example. Many thanks in advance, Shirley - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
context.xml: ClassNotFoundException
Hello, I have a problem with Tomcat 5.5 I created a file CiccioPasticcio.war with my application. I have to filter user requests using Tomcat Valves, so I wrote a context.xml file with the following Context cookies=true crossContext=false Valve className=com.ciccio.pasticcio.web.valve.LoginErrorMessageValve / Valve className=com.ciccio.pasticcio.web.valve.LicenseRequirementsValve / Valve className=com.ciccio.pasticcio.web.valve.TomcatFixValve / /Context The file is in the folder CiccioPasticcio.war\META-INF\context.xml The Valve classes are in the war into the following locations: CiccioPasticcio.war\WEB-INF\classes\com\ciccio\pasticcio\web\valve\LoginErrorMessageValve.class . When I start tomcat I have the following SEVERE: Begin event threw exception java.lang.ClassNotFoundException: com.ciccio.pasticcio.web.valve.LoginErrorMessageValve at java.net.URLClassLoader$1.run(URLClassLoader.java:200) ... SEVERE: Parse error in default web.xml java.lang.ClassNotFoundException: com.ciccio.pasticcio.web.valve.LoginErrorMessageValve I really canot figure out where I failed. Can you help me? TREMALNAIK - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How to configure my Realm class from context.xml?
Thank you Jon, That's what I'm also trying but I always get a NPE because JNDIRealm.containerLog is null. Do you know how I can figure out the Container from for example a Filter? In the case I could call realm.setContainer(container) no NPE would happen. Zsolt -Original Message- From: Jon Wingfield [mailto:[EMAIL PROTECTED] Sent: Thursday, February 23, 2006 5:05 PM To: Tomcat Users List Subject: Re: How to configure my Realm class from context.xml? Your Realm implementation needs to sit in the server classloader as the Realm interface is only defined there (in catalina.jar). This is a PITA so when we did this we made the Realm implementation just lookup the real implementation via JNDI. That way all the authentication logic stayed in the webapp and only a couple of simple wrapper classes and interfaces went into the server and common classloaders. HTH, Jon Zsolt wrote: Does anybody know how to configure Realm from .../META-INF/context.xml? Realm className=my.realm.JNDIRealm resourceName=my/RealmFactory/ I always get a ClassNotFoundException but the class does exist (under ../WEB-INF. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
mod_jk on Apache 2.2.x
Hello, Sorry for the newbie post but I'm finding conflicting data (or no data ;p) about this (I'm trying to RTFM and STFW but swimming in a sea of cluelessness) a) Will mod_jk work on Apache 2.2.x ? b) Where is 2.2.x support/installation into apache (as DSO or static) documented specifically? TIA! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Configuring mod_jk, and the notion of webapps
I have been having trouble getting mod_jk to work. After having Googled and read various information on configuring mod_jk (that's the first problem -- we need good documentation without having to Google), I settled on this link which is a pretty good HOWTO: http://www.meritonlinesystems.com/docs/apache_tomcat_redhat.html The problem is, once I got everything setup, things didn't work as expected. Before going into a long diatribe about all the potential issues, what I checked, etc., I want to inquire about the notion of this document's advice about your webapp, as mentioned in http.conf and server.xml configuration, and as shown in step 5 of this HOWTO, in directory creation. The document instructs you to create the appropriate application directories as follows: mkdir /home/tomcat/webapps mkdir /home/tomcat/webapps/{YOUR_DOMAIN} mkdir /home/tomcat/webapps/{YOUR_DOMAIN}/logs mkdir /home/tomcat/webapps/{YOUR_DOMAIN}/{YOUR_APPLICATION} mkdir /home/tomcat/webapps/{YOUR_DOMAIN}/{YOUR_APPLICATION}/WEB-INF mkdir /home/tomcat/webapps/{YOUR_DOMAIN}/{YOUR_APPLICATION}/WEB-INF/classes In the httpd.conf, the virtualHost directive setup recommended is as follows: VirtualHost 127.0.0.1:80 ServerAdmin [EMAIL PROTECTED] ServerName {YOUR_DOMAIN} DocumentRoot /home/tomcat/webapps/{YOUR_DOMAIN}/{YOUR_APPLICATION} ErrorLog /home/tomcat/webapps/{YOUR_DOMAIN}/logs/error_log CustomLog /home/tomcat/webapps/{YOUR_DOMAIN}/logs/access_log common JkMount /*.jsp wrkr JkMount /servlet/* wrkr # Deny direct access to WEB-INF LocationMatch .*WEB-INF.* AllowOverride None deny from all /LocationMatch /VirtualHost and in configuring the Tomcat context, the configuration recommended is as follows: Context path= docBase={YOUR_APPLICATION} reloadable=true debug=0/ I don't get the {YOUR_APPLICATION} part of this. Basically, I have a domain, and from it, I will be serving the contents of one or more web applications. These web applications of course are WAR files. The directory creation instructions look as if you would be creating the exploded WAR structure manually, and the virtual host configuration and context configuration appear to be addressing a particular WAR. This doesn't make sense to me. All I want to do is forward all requests with a particular prefix to Tomcat, regardless of the web application, and based upon the prefix, tomcat will determine which web application will respond (just as if you were using Tomcat without Apache httpd). Can someone give me a heads up on how to configure this? Thanks! Brad - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: mod_jk config error
Sorry Mladen, I thought I had done as you advised. I've reconfigured and remade it and have it working. Thanks for your help with this. Regards, James. On 2/23/06, Mladen Turk [EMAIL PROTECTED] wrote: James Taylor wrote: Hi there, I'm trying to config mod_jk 1.2.15 with tomcat 5.5.12 and apache2 in my account on a solaris10 machine and I get the following error when I run ~/sw/apache2.0/bin/apachectl start Syntax error on line 1038 of /home/rmorrin/James/Java/DownloadedSoftware/apache2.0/conf/httpd.conf: Cannot load /home/rmorrin/James/Java/DownloadedSoftware/apache2.0/modules/mod_jk.so into server: ld.so.1: httpd: fatal: relocation error: file /home/rmorrin/James/Java/DownloadedSoftware/apache2.0/modules/mod_jk.so: symbol jni_worker_factory: referenced symbol not found Please see my config file details at the end of this post. Any help to resolve this is appreciated, Regards, James. I told you on Feb 21 that the jni is not supported. I do not understand why do you still try to have JNI support? Please follow the instructions I gave you, because things you are trying to do leads to nowhere. Regards, Mladen. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
exception in tomcat log
Hi there, I've just recently got Apache2 and tomcat-5.5.12 working on a solaris10 machine using mod_jk but I see this exception in the tomcat logs, can someone please tell me what it's about? Thanks, James. INFO: Server startup in 10481 ms Feb 23, 2006 5:21:03 PM org.apache.coyote.http11.Http11BaseProtocol pause INFO: Pausing Coyote HTTP/1.1 on http-6060 Feb 23, 2006 5:21:03 PM org.apache.jk.common.ChannelSocket acceptConnections WARNING: Exception executing accept java.net.SocketException: Invalid argument at java.net.PlainSocketImpl.socketSetOption(Native Method) at java.net.PlainSocketImpl.setOption(PlainSocketImpl.java:264) at java.net.Socket.setSoLinger(Socket.java:869) at org.apache.jk.common.ChannelSocket.accept(ChannelSocket.java:298) at org.apache.jk.common.ChannelSocket.acceptConnections(ChannelSocket.java:637) at org.apache.jk.common.ChannelSocket$SocketAcceptor.runIt(ChannelSocket.java:847) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) at java.lang.Thread.run(Thread.java:595) Feb 23, 2006 5:21:04 PM org.apache.catalina.core.StandardService stop INFO: Stopping service Catalina Feb 23, 2006 5:21:04 PM org.apache.coyote.http11.Http11BaseProtocol destroy INFO: Stopping Coyote HTTP/1.1 on http-6060 Feb 23, 2006 5:21:04 PM org.apache.catalina.core.AprLifecycleListener lifecycleEvent INFO: Failed shutdown of Apache Portable Runtime - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: context.xml: ClassNotFoundException
From: Tremal Naik [mailto:[EMAIL PROTECTED] Subject: context.xml: ClassNotFoundException The file is in the folder CiccioPasticcio.war\META-INF\context.xml Can you verify that the following does not exist: conf\Catalina\[hostname]\CiccioPasticcio.xml where [hostname] is usually localhost? If the above file exists, it may be overriding the one in your META-INF directory. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
mod_jk PUT request-method returns 405 Error
I was using Tomcat standalone and I could send files to the server with the PUT request-method with no problems (in a REST Web Service). Now that I have Apache hooked into Tomcat with mod_jk, the PUT request gives me a 405 error (method not allowed). Does anyone know how to set this up so that the PUT request gets forwarded from Apache to a servlet or a JSP (through mod_jk)? Does mod_jk even support the forwarding of PUT requests? I am running Apache 2.0.50, Tomcat 5.5 and mod_jk 1.2.15 all on RedHat Linux. Any help would be appreciated. Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
where can I find server.xml documentation?
Where can I find comprehensive documentation on the contents of the server.xml file? Brad - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: where can I find server.xml documentation?
From: Brad O'Hearne [mailto:[EMAIL PROTECTED] Subject: where can I find server.xml documentation? Where can I find comprehensive documentation on the contents of the server.xml file? There's a fair amount within the file itself. Also look here: http://tomcat.apache.org/tomcat-5.5-doc/config/index.html Since you didn't bother to tell us what level of Tomcat you're using, you may have to adjust the above link for your version. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Configuring mod_jk, and the notion of webapps
Brad O'Hearne wrote: I have been having trouble getting mod_jk to work. After having Googled and read various information on configuring mod_jk (that's the first problem -- we need good documentation without having to Google), I settled on this link which is a pretty good HOWTO: I agree with you. We need a better documentation, but at the end of the day no one ever wishes to contribute. Mod_jk is open source project and without help from the community I'm not sure how it's quality can ever rise. So, I would suggest that if you come to an idea how to extend the existing docs to the next level, simply write a small email and send it to the dev@tomcat.apache.org The guys there will be happy to commit that. Best regards, Mladen. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
mod_jk problems
Hi, everybody. I configured Apache, Tomcat and mod_jk. It was working fine, but suddenly it stopped. The mod_jk.log shows this message: [Thu Feb 23 11:52:28 2006] [jk_uri_worker_map.c (445)]: Into jk_uri_worker_map_t::map_uri_to_worker [Thu Feb 23 11:52:28 2006] [jk_uri_worker_map.c (459)]: Attempting to map URI '/' [Thu Feb 23 11:52:28 2006] [jk_uri_worker_map.c (473)]: jk_uri_worker_map_t::map_uri_to_worker, Found an exact match worker1 - / [Thu Feb 23 11:52:28 2006] [mod_jk.c (1689)]: Into handler r-proxyreq=0 r-handler=jakarta-servlet r-notes=6178504 worker=worker1 [Thu Feb 23 11:52:28 2006] [jk_worker.c (90)]: Into wc_get_worker_for_name worker1 [Thu Feb 23 11:52:28 2006] [jk_worker.c (94)]: wc_get_worker_for_name, done did not find a worker I'm using: Apache 2.0.55 Tomcat 5.5.15 mod_jk 1.2.6 Thank you, Vanessa Campos [EMAIL PROTECTED] ICQ 35381281 Efetivamente, para o homem, enquanto homem, nada tem valor a menos que ele possa executa-lo com entusiasmo Max Weber ___ Yahoo! Acesso Grátis - Internet rápida e grátis. Instale o discador agora! http://br.acesso.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to configure my Realm class from context.xml?
Erm. Ok. My Realm extends RealmBase so I don't need to worry about such things. But, I guess in the Filter you could cast the request to an o.a.catalina.HttpRequest and then call getContext() on it. http://tomcat.apache.org/tomcat-5.0-doc/catalina/docs/api/index.html Jon PS I've never done the above, nor needed to. Good luck. Zsolt wrote: Thank you Jon, That's what I'm also trying but I always get a NPE because JNDIRealm.containerLog is null. Do you know how I can figure out the Container from for example a Filter? In the case I could call realm.setContainer(container) no NPE would happen. Zsolt -Original Message- From: Jon Wingfield [mailto:[EMAIL PROTECTED] Sent: Thursday, February 23, 2006 5:05 PM To: Tomcat Users List Subject: Re: How to configure my Realm class from context.xml? Your Realm implementation needs to sit in the server classloader as the Realm interface is only defined there (in catalina.jar). This is a PITA so when we did this we made the Realm implementation just lookup the real implementation via JNDI. That way all the authentication logic stayed in the webapp and only a couple of simple wrapper classes and interfaces went into the server and common classloaders. HTH, Jon Zsolt wrote: Does anybody know how to configure Realm from .../META-INF/context.xml? Realm className=my.realm.JNDIRealm resourceName=my/RealmFactory/ I always get a ClassNotFoundException but the class does exist (under ../WEB-INF. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Configuring mod_jk, and the notion of webapps
Brad, I found a good how-to that helped me put mod_jk to work. www.howtoforge.com/apache2_tomcat5_mod_jk It's very simple, and it works. --- Brad O'Hearne [EMAIL PROTECTED] escreveu: I have been having trouble getting mod_jk to work. After having Googled and read various information on configuring mod_jk (that's the first problem -- we need good documentation without having to Google), I settled on this link which is a pretty good HOWTO: http://www.meritonlinesystems.com/docs/apache_tomcat_redhat.html The problem is, once I got everything setup, things didn't work as expected. Before going into a long diatribe about all the potential issues, what I checked, etc., I want to inquire about the notion of this document's advice about your webapp, as mentioned in http.conf and server.xml configuration, and as shown in step 5 of this HOWTO, in directory creation. The document instructs you to create the appropriate application directories as follows: mkdir /home/tomcat/webapps mkdir /home/tomcat/webapps/{YOUR_DOMAIN} mkdir /home/tomcat/webapps/{YOUR_DOMAIN}/logs mkdir /home/tomcat/webapps/{YOUR_DOMAIN}/{YOUR_APPLICATION} mkdir /home/tomcat/webapps/{YOUR_DOMAIN}/{YOUR_APPLICATION}/WEB-INF mkdir /home/tomcat/webapps/{YOUR_DOMAIN}/{YOUR_APPLICATION}/WEB-INF/classes In the httpd.conf, the virtualHost directive setup recommended is as follows: VirtualHost 127.0.0.1:80 ServerAdmin [EMAIL PROTECTED] ServerName {YOUR_DOMAIN} DocumentRoot /home/tomcat/webapps/{YOUR_DOMAIN}/{YOUR_APPLICATION} ErrorLog /home/tomcat/webapps/{YOUR_DOMAIN}/logs/error_log CustomLog /home/tomcat/webapps/{YOUR_DOMAIN}/logs/access_log common JkMount /*.jsp wrkr JkMount /servlet/* wrkr # Deny direct access to WEB-INF LocationMatch .*WEB-INF.* AllowOverride None deny from all /LocationMatch /VirtualHost and in configuring the Tomcat context, the configuration recommended is as follows: Context path= docBase={YOUR_APPLICATION} reloadable=true debug=0/ I don't get the {YOUR_APPLICATION} part of this. Basically, I have a domain, and from it, I will be serving the contents of one or more web applications. These web applications of course are WAR files. The directory creation instructions look as if you would be creating the exploded WAR structure manually, and the virtual host configuration and context configuration appear to be addressing a particular WAR. This doesn't make sense to me. All I want to do is forward all requests with a particular prefix to Tomcat, regardless of the web application, and based upon the prefix, tomcat will determine which web application will respond (just as if you were using Tomcat without Apache httpd). Can someone give me a heads up on how to configure this? Thanks! Brad - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Vanessa Campos [EMAIL PROTECTED] ICQ 35381281 Efetivamente, para o homem, enquanto homem, nada tem valor a menos que ele possa executa-lo com entusiasmo Max Weber ___ Yahoo! Acesso Grátis - Internet rápida e grátis. Instale o discador agora! http://br.acesso.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: mod_jk PUT request-method returns 405 Error
Jack J. Coleman wrote: Any help would be appreciated. It's hard to tell without your config files but I bet you've done something like: JkMount /* worker Since by default the DocumentRoot in Apache does not allow PUT methods, you are receiving 405. Regards, Mladen. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: mod_jk PUT request-method returns 405 Error
Thanks for the response Mladen. My config file has the following: JKMount /accounts/account/* wrkr Where /accounts/account/* is setup as a sevlet mapping to a JSP in WEB-INF/jsp If the documentRoot in Apache doesn't allow the PUT method, what about other paths? I know you can set up a PUT request in Apache with a cgi script, but I was hoping that mod_jk could handle this without cgi. Mladen Turk wrote: Jack J. Coleman wrote: Any help would be appreciated. It's hard to tell without your config files but I bet you've done something like: JkMount /* worker Since by default the DocumentRoot in Apache does not allow PUT methods, you are receiving 405. Regards, Mladen. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: first jdbc tomcat application
If you are using tomcat5, do not use ResourceParams. Instead, define those params as attribute of Resource, as this: Resource name=jdbc/WroxTC5 auth=Container type=javax.sql.Datasource driverClassName=com.mysql.jdbc.Driver username=xyz ... / -Original Message- From: David McMinn [mailto:[EMAIL PROTECTED] Sent: Thursday, February 23, 2006 9:20 AM To: users@tomcat.apache.org Subject: first jdbc tomcat application I'm stepping through the example Professional Apache Tomcat 5 book by Wrox in Chapter 14 - I have set up the mysql database and confirmed it works and set up the tomcat server and confirmed that I can see my index.jsp page. When I try to go to http://localhost:8070/jsp-examples/wroxjdbc/JDBCTest.jsp I get a standard The page cannot be displayed page. I've included all my steps below. Anyone that can help is most appreciated. Thanks in advance.Dave Steps I have done 1) Created a DB called everycitizen and a table called test with a column called pk. Created user everyuser w/ a password and granted Select privileges to that user. 2) Copied the mysql-connector-java-3.1.12-bin.jar into $CATALINA_HOME/common/lib. 3)Added the following to the $CATALINA_HOME/conf/server.xml just before the /Host tag. Password is blotted out. !-- added by DM 2/22/2006 -- DefaultContext Resource name=jdbc/WroxTC5 auth=Container type=javax.sql.Datasource/ ResourceParams name=jdbc/WroxTC5 parameter namedriverClassName/name valuecom.mysql.jdbc.Driver/value /parameter parameter nameurl/name valuejdbc:mysql://localhost/everycitizen/value /parameter parameter nameusername/name valueeveryuser/value /parameter parameter namepassword/name value*/value /parameter parameter namemaxActive/name ; value20/value /parameter parameter namemaxIdle/name value3/value /parameter parameter namemaxWait/name value100/value /parameter /ResourceParams /DefaultContext 4) Added the following to the $CATALINA_HOME/webapps/jsp-examples/WEB-INF web.xml file at the bottom just before the /web-app entry after the last env-entry. resource-ref res-ref-namejdbc/WroxTC5/res-ref-name res-typejavax.sql.DataSource/res-type res-authContainer/res-auth /resource-ref 5) Added the JDBCTest.jsp file and the errorpg.jsp file to $CATALINA_HOME/webapps/jsp-examples/wroxjdbc directory. I created the wroxjdbc folder. The JDBC Test is: html head %@ page errorPage=errorpg.jsp import=java.sql.*, javax.sql.*, java.io.*, javax.naming.InitialContext, javax.naming.Context % /head body h1JDBC JNDI Resource Test/h1 % InitialContext initCtx = new InitialContext(); DataSource ds = (DataSource)initCtx.lookup(java:comp/env/jdbc/WroxTC5); Connection conn = ds.getConnection(); Statement stmt = conn.createStatement(); ResultSet rset = stmt.executeQuery(select * from test;); % table width = '600' border='1' tr th align='left'/th /tr % while (rset.next()) { % trtd %=rset.getInt(0)%/td/tr % } rset.close(); stmt.close(); conn.close(); initCtx.close(); % /table /body /html and the errorpg is: html body %@ page isErrorPage=true % h1 An error has occurred /h1 %= exception.getMessage() % /body /html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: mod_jk PUT request-method returns 405 Error
Jack J. Coleman wrote: Thanks for the response Mladen. My config file has the following: JKMount /accounts/account/* wrkr Well, that's certainly a better solution. BTW, is 405 issued by Apache or Tomcat? Regards, Mladen. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: mod_jk PUT request-method returns 405 Error
Apache. BTW, is 405 issued by Apache or Tomcat? Regards, Mladen. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: mod_jk PUT request-method returns 405 Error
Jack J. Coleman wrote: Apache. Then you must have some config value that forbids PUTs. See if you have some Location directive that contains a path prefix of JkMount. Also try to put your .jsp files outside WEB-INF. mod_jk explicitly denies the access to WEB-INF and META-INF locations (if you are using auto aliasing). Regards, Mladen. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat native library not found on startup.sh - Solaris
Bill, That did it!!! THANK YOU. I added '/usr/local/ssl' to the LD_LIBRARY_PATH and all is well. Regards, John Bill Barker wrote: johngbud [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Tomcat users: I installed APR and Tomcat native library and placed in LD_LIBRARY_PATH before starting Tomcat 5.5.15 'startup.sh'. The logs keep showing this message: INFO: The Apache Tomcat native library which allows optimal performance in production environments was not found on java.library.path: APR library installed in /usr/local/apr/lib and included in LD_LIBRARY_PATH. I'm guessing that the OpenSSL .so files are in a non-standard place (e.g. /usr/local/ssl/lib), so ld isn't finding them. However, if you don't like guessing, just do: $ ldd /path/to/libtcnative.so and adjust your LD_LIBRARY_PATH until every dependant .so is found. Can anyone help me resolve this message? Thanks, JGB - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: where can I find server.xml documentation?
Unfortunately this documentation seems to be out of date as it makes reference to the Factory element as a way to specify a keystore password but I don't think this is valid in 5.5.x. On 2/23/06, Caldarale, Charles R [EMAIL PROTECTED] wrote: From: Brad O'Hearne [mailto:[EMAIL PROTECTED] Subject: where can I find server.xml documentation? Where can I find comprehensive documentation on the contents of the server.xml file? There's a fair amount within the file itself. Also look here: http://tomcat.apache.org/tomcat-5.5-doc/config/index.html Since you didn't bother to tell us what level of Tomcat you're using, you may have to adjust the above link for your version. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
JSP Compiler error Windows XP Tomcat 5.5.9
I am getting the following JSP compiler error when running tomcat 5.5.9 with JDK 1.5_05 on Windows XP Professional Service Pack 1: java.io.IOException: tmpFile.renameTo(classFile) failed at org.apache.jasper.compiler.SmapUtil$SDEInstaller.install(SmapUtil.java:245) at org.apache.jasper.compiler.SmapUtil.installSmap(SmapUtil.java:164) at org.apache.jasper.compiler.AntCompiler.generateClass(AntCompiler.java:267) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:288) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:267) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:255) at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:556) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:293) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264) at javax.servlet.http.HttpServlet.service(HttpServlet.java:810) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672) at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301) The work directory contains a .classtmp file after the error occurs. This problem does not happen for every JSP page and the JSP page usually compiles if I hit the refresh button. It doesn't always fail on the same JSP page. I have not changed any tomcat JSP configuration settings in the \conf\web.xml file. Has anyone else experienced this problem? If so, is there a workaround? Thank you. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
java.lang.InstantiationException: demo.TimeSeriesDemo8 -Solaris
Tomcat Users: I'm having trouble connecting to app TimeSeriesDemo8 (JFreechart 1.0.1). Tomcat 5.5.15 is executing ok on my Solaris machine. Receiving this error message: java.lang.InstantiationException: demo.TimeSeriesDemo8. Can anyone help me get over this last hurdle? I'm fairly new to Tomcat and Java but feel I'm very close to getting this to work. Thanks, John ** STEP #1 building TimeSeriesDemo8.class: ** javac -verbose -classpath jfreechart-1.0.1-demo.jar:lib/jcommon-1.0.0.jar:lib/servlet.jar source/demo/TimeSeriesDemo8.java [parsing started source/demo/TimeSeriesDemo8.java] [parsing completed 865ms] [search path for source files: [jfreechart-1.0.1-demo.jar, lib/jfreechart-1.0.1jar, lib/jcommon-1.0.0.jar]] [search path for class files: [/usr/jdk/instances/jdk1.5.0/jre/lib/rt.jar, /usrjdk/instances/jdk1.5.0/jre/lib/jsse.jar, /usr/jdk/instances/jdk1.5.0/jre/lib/jc.jar, /usr/jdk/instances/jdk1.5.0/jre/lib/charsets.jar, /usr/jdk/instances/jdk15.0/jre/lib/ext/dnsns.jar, /usr/jdk/instances/jdk1.5.0/jre/lib/ext/localedata.jr, /usr/jdk/instances/jdk1.5.0/jre/lib/ext/sunjce_provider.jar, /usr/jdk/instanes/jdk1.5.0/jre/lib/ext/sunpkcs11.jar, jfreechart-1.0.1-demo.jar, lib/jfreechar-1.0.1.jar, lib/jcommon-1.0.0.jar]] [loading /usr/jdk/instances/jdk1.5.0/jre/lib/rt.jar(java/text/DecimalFormat.clas)] [loading /usr/jdk/instances/jdk1.5.0/jre/lib/rt.jar(java/text/SimpleDateFormat.lass)] [loading /usr/jdk/instances/jdk1.5.0/jre/lib/rt.jar(javax/swing/JPanel.class)] [loading lib/jfreechart-1.0.1.jar(org/jfree/chart/ChartFactory.class)] [loading lib/jfreechart-1.0.1.jar(org/jfree/chart/ChartPanel.class)] [loading lib/jfreechart-1.0.1.jar(org/jfree/chart/JFreeChart.class)] [loading lib/jfreechart-1.0.1.jar(org/jfree/chart/labels/StandardXYToolTipGenertor.class)] [loading lib/jfreechart-1.0.1.jar(org/jfree/chart/renderer/xy/XYItemRenderer.clss)] [loading lib/jfreechart-1.0.1.jar(org/jfree/data/time/Day.class)] [loading lib/jfreechart-1.0.1.jar(org/jfree/data/time/MovingAverage.class)] [loading lib/jfreechart-1.0.1.jar(org/jfree/data/time/TimeSeries.class)] [loading lib/jfreechart-1.0.1.jar(org/jfree/data/time/TimeSeriesCollection.clas)] [loading lib/jfreechart-1.0.1.jar(org/jfree/data/xy/XYDataset.class)] [loading lib/jcommon-1.0.0.jar(org/jfree/date/MonthConstants.class)] [loading lib/jcommon-1.0.0.jar(org/jfree/ui/ApplicationFrame.class)] [loading lib/jcommon-1.0.0.jar(org/jfree/ui/RefineryUtilities.class)] [loading /usr/jdk/instances/jdk1.5.0/jre/lib/rt.jar(java/awt/event/WindowListenr.class)] [loading /usr/jdk/instances/jdk1.5.0/jre/lib/rt.jar(java/util/EventListener.clas)] [loading /usr/jdk/instances/jdk1.5.0/jre/lib/rt.jar(java/lang/Object.class)] [loading /usr/jdk/instances/jdk1.5.0/jre/lib/rt.jar(javax/swing/JFrame.class)] [loading /usr/jdk/instances/jdk1.5.0/jre/lib/rt.jar(javax/swing/WindowConstantsclass)] [loading /usr/jdk/instances/jdk1.5.0/jre/lib/rt.jar(javax/accessibility/Accessile.class)] [loading /usr/jdk/instances/jdk1.5.0/jre/lib/rt.jar(javax/swing/RootPaneContainr.class)] [loading /usr/jdk/instances/jdk1.5.0/jre/lib/rt.jar(java/awt/Frame.class)] [loading /usr/jdk/instances/jdk1.5.0/jre/lib/rt.jar(java/awt/MenuContainer.clas)] [loading /usr/jdk/instances/jdk1.5.0/jre/lib/rt.jar(java/awt/Window.class)] [loading /usr/jdk/instances/jdk1.5.0/jre/lib/rt.jar(java/awt/Container.class)] [loading /usr/jdk/instances/jdk1.5.0/jre/lib/rt.jar(java/awt/Component.class)] [loading /usr/jdk/instances/jdk1.5.0/jre/lib/rt.jar(java/awt/image/ImageObserve.class)] [loading /usr/jdk/instances/jdk1.5.0/jre/lib/rt.jar(java/io/Serializable.class) [loading /usr/jdk/instances/jdk1.5.0/jre/lib/rt.jar(java/lang/String.class)] [checking demo.TimeSeriesDemo8] [loading /usr/jdk/instances/jdk1.5.0/jre/lib/rt.jar(java/awt/GraphicsConfiguraton.class)] [loading /usr/jdk/instances/jdk1.5.0/jre/lib/rt.jar(java/awt/LayoutManager.clas)] [loading lib/jcommon-1.0.0.jar(org/jfree/ui/Drawable.class)] [loading lib/jfreechart-1.0.1.jar(org/jfree/chart/event/TitleChangeListener.clas)] [loading lib/jfreechart-1.0.1.jar(org/jfree/chart/event/PlotChangeListener.clas)] [loading /usr/jdk/instances/jdk1.5.0/jre/lib/rt.jar(java/lang/Cloneable.class)] [loading /usr/jdk/instances/jdk1.5.0/jre/lib/rt.jar(javax/swing/JComponent.clas )] [loading /usr/jdk/instances/jdk1.5.0/jre/lib/rt.jar(java/awt/Dimension.class)] [loading /usr/jdk/instances/jdk1.5.0/jre/lib/rt.jar(java/awt/geom/Dimension2D.cass)] [loading lib/jfreechart-1.0.1.jar(org/jfree/data/general/Series.class)] [loading lib/jfreechart-1.0.1.jar(org/jfree/data/xy/AbstractIntervalXYDataset.cass)] [loading lib/jfreechart-1.0.1.jar(org/jfree/data/xy/AbstractXYDataset.class)] [loading lib/jfreechart-1.0.1.jar(org/jfree/data/general/AbstractSeriesDataset.lass)] [loading lib/jfreechart-1.0.1.jar(org/jfree/data/general/AbstractDataset.class) [loading
RE: where can I find server.xml documentation?
From: Xavier Toth [mailto:[EMAIL PROTECTED] Subject: Re: where can I find server.xml documentation? Unfortunately this documentation seems to be out of date as it makes reference to the Factory element as a way to specify a keystore password but I don't think this is valid in 5.5.x. The doc links I suggested do not reference the Factory element, but this one does: http://tomcat.apache.org/tomcat-5.5-doc/ssl-howto.html It appears that Connector is what's intended, not Factory. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: where can I find server.xml documentation?
Xavier Toth wrote: Unfortunately this documentation seems to be out of date as it makes reference to the Factory element as a way to specify a keystore password but I don't think this is valid in 5.5.x. Can you provide a URL that references the Factory element. I couldn't find one when I looked at the 5.5. docs. Once I know where it is, I can get it fixed. Mark - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: where can I find server.xml documentation?
Caldarale, Charles R wrote: It's here: http://tomcat.apache.org/tomcat-5.5-doc/ssl-howto.html Near the bottom, in the Troubleshooting section. Thanks. Just fixed it. Will be in next release. Note that except in extreme circumstances (eg security bug) the docs on the website are only updated with each release. Mark - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: mod_jk PUT request-method returns 405 Error
I do not have any Location directives and I am not using auto aliasing. My httpd.conf has a simple VirtualHost directive. Even so, I tried moving the JSP outside of the WEB-INF, but still no luck. The request doesn't seem to be getting to mod_jk at all. In the Apache access_log I can see the 405 error message, but in the mod_jk log (with debug turned on), I see nothing about that request. Apache seems to be stopping the PUT in its tracks. Is there some way to tell mod_jk to handle the PUT request (like you would for a cgi script)? Directory /www/docsScript PUT /cgi-bin/put.cgi/Directory Then you must have some config value that forbids PUTs. See if you have some Location directive that contains a path prefix of JkMount. Also try to put your .jsp files outside WEB-INF. mod_jk explicitly denies the access to WEB-INF and META-INF locations (if you are using auto aliasing). Regards, Mladen. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: mod_jk PUT request-method returns 405 Error
Jack J. Coleman wrote: I do not have any Location directives and I am not using auto aliasing. My httpd.conf has a simple VirtualHost directive. Even so, I tried moving the JSP outside of the WEB-INF, but still no luck. The request doesn't seem to be getting to mod_jk at all. In the Apache access_log I can see the 405 error message, but in the mod_jk log (with debug turned on), I see nothing about that request. Apache seems to be stopping the PUT in its tracks. No idea then. Unless you have some Limit directive, check the access.log if you are hitting the correct location. Is there some way to tell mod_jk to handle the PUT request (like you would for a cgi script)? No need, mod_jk is a handler, and as such is independent of the http method. Regards, Mladen. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Access permission exceptions when calling RMI from within Tomcat servlet.
I have a simple RMI server that I need a Tomcat servlet to access. A very simple command-line app accesses the RMI server just fine with the following code: registry = LocateRegistry.getRegistry (host); xxx = (XXX) registry.lookup (name); But when I move the same code into my servlet I get strange access permission exceptions. The exception traces back to a caused by access denied having to do with java.util.logging.LoggingPermission, which eventually leads back to some JULI code. Any ideas what's going on here? Thanks. The full stacktrace is here: (Actually, the RMI registry call is made from a thread that was launched by a servlet, but the point is that it is in Java code launched by and running under the control of Tomcat.) Exception in thread Thread-36 java.lang.ExceptionInInitializerError at sun.rmi.transport.tcp.TCPEndpoint.clinit(TCPEndpoint.java:104) at java.rmi.registry.LocateRegistry.getRegistry(LocateRegistry.java:158) at java.rmi.registry.LocateRegistry.getRegistry(LocateRegistry.java:106) at java.rmi.registry.LocateRegistry.getRegistry(LocateRegistry.java:89) at gov.sensornet.rftrax.VandyPositionClient.init(VandyPositionClient.java:53) at gov.sensornet.rftrax.SocketHandlerThread.init(SocketHandlerThread.java:68) at gov.sensornet.rftrax.SocketAcceptThread.run(SocketAcceptThread.java:119) Caused by: java.security.AccessControlException: access denied (java.util.logging.LoggingPermission control) at java.security.AccessControlContext.checkPermission(AccessControlContext.java:264) at java.security.AccessController.checkPermission(AccessController.java:427) at java.lang.SecurityManager.checkPermission(SecurityManager.java:532) at java.util.logging.LogManager.checkAccess(LogManager.java:927) at java.util.logging.Logger.setParent(Logger.java:1331) at org.apache.juli.ClassLoaderLogManager$2.run(ClassLoaderLogManager.java:377) at java.security.AccessController.doPrivileged(Native Method) at org.apache.juli.ClassLoaderLogManager.doSetParentLogger(ClassLoaderLogManager.java:375) at org.apache.juli.ClassLoaderLogManager.addLogger(ClassLoaderLogManager.java:120) at java.util.logging.Logger.getLogger(Logger.java:232) at sun.rmi.runtime.Log$LoggerLogFactory.createLog(Log.java:154) at sun.rmi.runtime.Log.getLog(Log.java:121) at sun.rmi.transport.Transport.clinit(Transport.java:43) ... 7 more Exception in thread ContainerBackgroundProcessor[StandardEngine[Catalina]] java.security.AccessControlException: access denied (java.lang.RuntimePermission setContextClassLoader) at java.security.AccessControlContext.checkPermission(AccessControlContext.java:264) at java.security.AccessController.checkPermission(AccessController.java:427) at java.lang.SecurityManager.checkPermission(SecurityManager.java:532) at java.lang.Thread.setContextClassLoader(Thread.java:1306) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1572) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1557) at java.lang.Thread.run(Thread.java:595) Johnny S. Tolliver Oak Ridge National Laboratory [EMAIL PROTECTED], 865-574-1305 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 4 - Disable low level cipher
Chad Joubert wrote: I have tried several different string combinations using commas and collon dilimiters in the server.xml file (ciphers=3D* ALL:!aNULL:!ADH:!eNULL:!LOW:!EXP:RC4+RSA:+HIGH:+MEDIUM*) but nothing seem= s to be working. I have searched and found a couple other people asking the same question but no solutions. These are not the Java names for the cipher suites (I think they might be from openssl). You need to use the ones in http://java.sun.com/j2se/1.4.2/docs/guide/security/jsse/JSSERefGuide.html The list should be comma delimiited. Mark - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat native library not found on startup.sh - Solaris
Hi, Can you tell me where the Native Tomcat Library is in the Tomcat installation. Then do I have to set the classpath to it? Thanks in anticipation. Regards, Jimmy Bill, That did it!!! THANK YOU. I added '/usr/local/ssl' to the LD_LIBRARY_PATH and all is well. Regards, John
5.5.x Connector no className attribute?
I don't see className as an attribute can connector behavior no longer be overloaded?
Re: Tomcat native library not found on startup.sh - Solaris
Caldarale, Charles R wrote: From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Subject: Re: Tomcat native library not found on startup.sh - Solaris Can you tell me where the Native Tomcat Library is in the Tomcat installation. For UNIX/Linux and 64-bit Windows, you have to build it from what's in bin/tomcat-native.tar.gz; for 32-bit Windows, it's already built in bin/tcnative-1.dll, if you used the .exe form of the download. There is also a set of official binaries at: http://tomcat.heanet.ie/ We are using this site because of US export law regarding cryptographic software, and since it contains OpenSSL binaries it's in Ireland, thanks to the courtesy of Ireland's National Education and Research Network. Win32 installer uses this site to download tcnative-1.dll upon install. The binaries for other OS's like for Solaris, Linux, WIN64, etc. can be obtained from the same site. Regards, Mladen. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat5.5 init script on FC4 revisited
From: Bob Hartung [EMAIL PROTECTED] Date: 2006/02/22 Wed PM 05:35:05 EST To: TomcatUsers users@tomcat.apache.org Subject: Tomcat5.5 init script on FC4 revisited Hi all, I have modified a file from Warren Pace. After running, I can ps ax | grep jsvc and have two pids but trying to http://localhost:8080 gives a refusal. I have checked the log files and there is no entry. If I try to start with the startup.sh file everygthing works including running the shell script as either root or user tomcat. I have reproduced portions of the file below. This file is written for SuSE and I am running FC4. I do not find checkproc on the fedora site. Any and all suggestions appreciated. Bob, You should have a script in /etc/init.d named skeleton which will serve as a template. I believe checkproc is part of the kernel. Make sure the jsvc executable has been copied from $CATALINA_HOME/bin/jsvc-src to $CATALINA_HOME/bin. If you've attempted to start tomcat using jsvc and get a refused message when attempting to connect to http://localhost:8080 but then run startup.sh and can connect to http://localhost:8080 then I don't believe jsvc ever launched. warren begin file --- #!/bin/sh # Copyright (c) 2005 Warren Pace, Charleston, SC, USA # init.d script for Apache-Tomcat ver 5.5.12 # For Open SuSE Linux ver 10.0 # Free for all - Use at your own risk # Author: Warren Pace [EMAIL PROTECTED] # # /etc/init.d/tomcat5 # JAVA_HOME=/usr/local/java CATALINA_HOME=/usr/local/tomcat5 DAEMON_HOME=/usr/local/tomcat5 TOMCAT_USER=tomcat TMP_DIR=/var/tmp PID_FILE=/var/run/jsvc.pid CATALINA_BASE=/usr/local/tomcat5 CATALINA_TMPDIR=/usr/local/tomcat5/temp CATALINA_OPTS=-Djava.endorsed.dirs=$CATALINA_HOME/common/endorsed CLASSPATH=\ $JAVA_HOME/lib/tools.jar:\ $CATALINA_HOME/bin/commons-daemon.jar:\ $CATALINA_HOME/bin/bootstrap.jar JSVC_BIN=$DAEMON_HOME/bin/jsvc #. /etc/rc.status #rc_reset if [ ! -x ${JSVC_BIN} ]; then echo -n $2 Cannot Run Tomcat as a jsvc daemon, ${JSVC_BIN} is not installed. # rc_status -s exit 5 fi case $1 in start) # # Start Tomcat # echo -n Starting Tomcat 5.5.12 Servlet Engine # checkproc on installed on FC4 (?) # checkproc -p ${PID_FILE} ${JSVC_BIN} # case $? in # 0) echo -n - Warning: daemon already running. ;; # 1) echo -n - Warning: ${PID_FILE} exists. ;; # esac $DAEMON_HOME/bin/jsvc \ -user $TOMCAT_USER \ -home $JAVA_HOME \ -Dcatalina.home=$CATALINA_HOME \ -Dcatalina.base=$CATALINA_BASE \ -Dcatalina.tmpdir=$CATALINA_TMPDIR \ -Djava.io.tmpdir=$TMP_DIR \ -wait 10 \ -pidfile $PID_FILE \ -outfile $CATALINA_HOME/logs/catalina.out \ -errfile '1' \ $CATALINA_OPTS \ -Xms64M -Xmx128M \ -cp $CLASSPATH \ org.apache.catalina.startup.Bootstrap \ #-verbose \ #-debug \ chown -R -H --dereference tomcat:tomcat $CATALINA_HOME/* chown -R -H --dereference tomcat:tomcat $CATALINA_BASE/* # rc_status -v ;; - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
mod_rewrite losing session
Hi all, I am having a problem when using mod_rewrite to hide the Tomcat webapp/context name, where it spawns a new session with each request. I am using apache2.2 and mod_proxy_ajp to dispatch the request and tomcat 5.5.9 So if I try to send this URL: http://www.website.com/someServlet to http://www.website.com/tomcatWebappName/someServlet with mod_rewrite, it's a new session with every request. Any ideas? thanks pete - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Re: Tomcat5.5 init script on FC4 revisited
From: Warren Pace [EMAIL PROTECTED] Date: 2006/02/23 Thu PM 06:43:49 EST To: Tomcat Users List users@tomcat.apache.org Subject: Re: Tomcat5.5 init script on FC4 revisited From: Bob Hartung [EMAIL PROTECTED] Date: 2006/02/22 Wed PM 05:35:05 EST To: TomcatUsers users@tomcat.apache.org Subject: Tomcat5.5 init script on FC4 revisited Hi all, I have modified a file from Warren Pace. After running, I can ps ax | grep jsvc and have two pids but trying to http://localhost:8080 gives a refusal. I have checked the log files and there is no entry. If I try to start with the startup.sh file everygthing works including running the shell script as either root or user tomcat. I have reproduced portions of the file below. This file is written for SuSE and I am running FC4. I do not find checkproc on the fedora site. Any and all suggestions appreciated. Bob, You should have a script in /etc/init.d named skeleton which will serve as a template. I believe checkproc is part of the kernel. Make sure the jsvc executable has been copied from $CATALINA_HOME/bin/jsvc-src to $CATALINA_HOME/bin. If you've attempted to start tomcat using jsvc and get a refused message when attempting to connect to http://localhost:8080 but then run startup.sh and can connect to http://localhost:8080 then I don't believe jsvc ever launched. warren Bob, I just had another thought. If you've never written your own init script before, you might not know. You also have to create start and stop symlinks to the script (which should be saved in /etc/init.d) in the rcX.d folders for the appropriate runlevels. For instance, in my script the default runlevels are noted 3 and 5. Get a directory listing of /etc/init.d/rc3.d and see where network is starting and create a symlink to jsvc which calls it to launch after network and another which calls it to stop before network. create a start symlink by typing: ln -s ./tomcat5 S13tomcat5 (make sure to include the . before the /) a kill symlink by typing: ln -s ./tomcat5 K09tomcat5 just make sure the start Sxx is higher than network's and the kill Kxx is lower. Do the same in rc5.d. I've used FC4 only sparingly but I'm sure there's a an equivalent to YaST for configuration of your system where you can do all this from the desktop... begin file --- #!/bin/sh # Copyright (c) 2005 Warren Pace, Charleston, SC, USA # init.d script for Apache-Tomcat ver 5.5.12 # For Open SuSE Linux ver 10.0 # Free for all - Use at your own risk # Author: Warren Pace [EMAIL PROTECTED] # # /etc/init.d/tomcat5 # JAVA_HOME=/usr/local/java CATALINA_HOME=/usr/local/tomcat5 DAEMON_HOME=/usr/local/tomcat5 TOMCAT_USER=tomcat TMP_DIR=/var/tmp PID_FILE=/var/run/jsvc.pid CATALINA_BASE=/usr/local/tomcat5 CATALINA_TMPDIR=/usr/local/tomcat5/temp CATALINA_OPTS=-Djava.endorsed.dirs=$CATALINA_HOME/common/endorsed CLASSPATH=\ $JAVA_HOME/lib/tools.jar:\ $CATALINA_HOME/bin/commons-daemon.jar:\ $CATALINA_HOME/bin/bootstrap.jar JSVC_BIN=$DAEMON_HOME/bin/jsvc #. /etc/rc.status #rc_reset if [ ! -x ${JSVC_BIN} ]; then echo -n $2 Cannot Run Tomcat as a jsvc daemon, ${JSVC_BIN} is not installed. # rc_status -s exit 5 fi case $1 in start) # # Start Tomcat # echo -n Starting Tomcat 5.5.12 Servlet Engine # checkproc on installed on FC4 (?) # checkproc -p ${PID_FILE} ${JSVC_BIN} # case $? in # 0) echo -n - Warning: daemon already running. ;; # 1) echo -n - Warning: ${PID_FILE} exists. ;; # esac $DAEMON_HOME/bin/jsvc \ -user $TOMCAT_USER \ -home $JAVA_HOME \ -Dcatalina.home=$CATALINA_HOME \ -Dcatalina.base=$CATALINA_BASE \ -Dcatalina.tmpdir=$CATALINA_TMPDIR \ -Djava.io.tmpdir=$TMP_DIR \ -wait 10 \ -pidfile $PID_FILE \ -outfile $CATALINA_HOME/logs/catalina.out \ -errfile '1' \ $CATALINA_OPTS \ -Xms64M -Xmx128M \ -cp $CLASSPATH \ org.apache.catalina.startup.Bootstrap \ #-verbose \ #-debug \ chown -R -H --dereference tomcat:tomcat $CATALINA_HOME/* chown -R -H --dereference tomcat:tomcat $CATALINA_BASE/* # rc_status -v ;; - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: mod_rewrite losing session
Yes. I posted a similar question not long ago. I wanted to know how to preserve the session under exactly this case (my specific need was to have a version in the Tomcat path, but hide that context / version from the user.) I can tell you why it's NOT preserving it. Tomcat sets the cookie JSESSIONID for host=www.website.com, path /tomcatWebappName/someServlet. The browser sees the cookie for that path on the response (check - it is set). You then ask for /someServlet and there is no cookie with that path (the hosts match, of course) and so the browser does not send the cookie along. No cookie (JSESSIONID), no session. Tim P.s. see http://marc.theaimsgroup.com/?l=tomcat-userm=113761657202592w=2 -Original Message- From: Pete Lamborne [mailto:[EMAIL PROTECTED] Sent: Thursday, February 23, 2006 7:21 PM To: Tomcat Users List Subject: mod_rewrite losing session Hi all, I am having a problem when using mod_rewrite to hide the Tomcat webapp/context name, where it spawns a new session with each request. I am using apache2.2 and mod_proxy_ajp to dispatch the request and tomcat 5.5.9 So if I try to send this URL: http://www.website.com/someServlet to http://www.website.com/tomcatWebappName/someServlet with mod_rewrite, it's a new session with every request. Any ideas? thanks pete - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: configuring tomcat 5.5.9+ connector socket factory
Xavier Toth [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I'm trying to provide a socket factory class that overrides the getKeystorePass method but I can't figure out how to hook it in. What attribute or subelement (is the Factory element supported in 5.5.x?) do I No, the Factory element is ignored in 5.5.x (it was useless anyway :). configure with my class name to get this to work? I've looked at the 5.5.15source code and I see references to attributes named 'socketFactory' and 'sslImplementation' but nothing in the docs This is the correct one. The value is the fully-qualified class name to your class that extends org.apache.tomcat.util.net.SSLImplementation. http://tomcat.apache.org/tomcat-5.5-doc/config/http.html. Are either of these attributes the one I would use for this purpose? Is there a dtd for server.xml? Nope. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: mod_jk on Apache 2.2.x
JupiterHost.Net [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hello, Sorry for the newbie post but I'm finding conflicting data (or no data ;p) about this (I'm trying to RTFM and STFW but swimming in a sea of cluelessness) a) Will mod_jk work on Apache 2.2.x ? I know it compiles against it (it even compiles against 2.3.x :). However, I've never tried it, so I don't know. b) Where is 2.2.x support/installation into apache (as DSO or static) documented specifically? It's pretty much identical to the 2.0.x stuff (i.e. the mod_jk code is identical for all 2.x versions of Httpd). However, the real question is: Why would you lose hair over setting up mod_jk, when you have mod_proxy_ajp already installed in Httpd? TIA! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Detect expired server certificate
Jihwan Kim [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Thanks Bill, 1. My client doesn't throw an exception if the client and server's cert is identical and both are expired. If only one of them is expired, it thorws exception. I want to detect the expired situation even if both side are expired. Well, you could call HttpsURLConnection.getServerCertificates() and check :). But if your connection is being masked by Axis, this probably won't work. 2. WebLogic detects expired cert. So, it means JSSE doesn't do this but does WebLogic have its own code to detect this? Probably. It's not too bad of an idea, actually (and not too hard to do :). When I can find where I put my spare cycles, I might even add it to Tomcat :). Thanks, - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: context path ignored in Context.xml
Hi Robert, To counter such a problem, try giving the absolute path in the 'appBase' parameter of the HostName tag in server.xml. My server.xml is something like this: Service name=Catalina Connector port=8080 maxThreads=150 minSpareThreads=25 maxSpareThreads=75 enableLookups=true redirectPort=8443 acceptCount=10 debug=0 connectionTimeout=2 disableUploadTimeout=true / Engine name=Standalone defaultHost=localhost debug=0 Realm className=org.apache.catalina.realm.UserDatabaseRealm debug=0 resourceName=UserDatabase / Host name=localhost appBase=/opt/oss/share/tomcat/base/webapps /Host /Engine /Service After making these changes, the error didn't appear for me. Thanks, Sathish On Thu, 2006-02-23 at 08:29 -0500, Robert Taylor wrote: Greetings, I'm using Tomcat 5.5.15 on Win2k in development. I start Tomcat through a target in my Ant build and pass it a server.xml file. My web app is deployed to a directory named webapp (the docbase) and contains a /META-INF/context.xml file which has a context path, /test. When I start tomcat and attempt to access my web app using the context path of /test, I get a strange 400 error. HTTP/1.x 400 No Host matches server name localhost When I access the webapp using /webapp as the context path, tomcat serves up the content. Therefore, it appears that Tomcat is ignoring the context path I have defined and using the docbase directory in name by default. I have been pouring over the online docs for a couple days and haven't been able to figure this one out. Any help would be appreciated. /robert - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. Any unauthorised review, use, disclosure, dissemination, forwarding, printing or copying of this email or any action taken in reliance on this e-mail is strictly prohibited and may be unlawful. Visit us at http://www.cognizant.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
2 sessions different instead of one wished !!!
Hello, I use JAAS and filter (security-filter) of Tomcat with the j_security_check. So here is the context : - the user try to access to the ActionServlet?action=welcome As the user is not authenticates, it loads the login.jsp page : - login.jsp submit the username and password through the j_security_check. - My custom LoginModule is called to authenticates with JAAS (commit() method is called ssuccessfullly if login and password are OK) - Then it should call the ActionServlet?action=welcome. As i describe a filter in the web.xml, before that call, it execute my UserFilter code. Here is the problem : In my UserFilter, I get a session objet (internal id = 150 for example) To terminate the UserFilter, I do a : chain.doFilter(request, response); In my ActionServlet, I get a session objet (internal id = 999 for example) !!! It's not the same session I don't know why and what's wrong and what I do not understand. Thanks Message du 24/02/06 à 06h03 De : Sathish Sathyan A : Tomcat Users List Copie à : Objet : Re: context path ignored in Context.xml Hi Robert, To counter such a problem, try giving the absolute path in the 'appBase' parameter of the HostName tag in server.xml. My server.xml is something like this: maxThreads=150 minSpareThreads=25 maxSpareThreads=75 enableLookups=true redirectPort=8443 acceptCount=10 debug=0 connectionTimeout=2 disableUploadTimeout=true / debug=0 resourceName=UserDatabase / After making these changes, the error didn't appear for me. Thanks, Sathish On Thu, 2006-02-23 at 08:29 -0500, Robert Taylor wrote: Greetings, I'm using Tomcat 5.5.15 on Win2k in development. I start Tomcat through a target in my Ant build and pass it a server.xml file. My web app is deployed to a directory named webapp (the docbase) and contains a /META-INF/context.xml file which has a context path, /test. When I start tomcat and attempt to access my web app using the context path of /test, I get a strange 400 error. HTTP/1.x 400 No Host matches server name localhost When I access the webapp using /webapp as the context path, tomcat serves up the content. Therefore, it appears that Tomcat is ignoring the context path I have defined and using the docbase directory in name by default. I have been pouring over the online docs for a couple days and haven't been able to figure this one out. Any help would be appreciated. /robert - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. Any unauthorised review, use, disclosure, dissemination, forwarding, printing or copying of this email or any action taken in reliance on this e-mail is strictly prohibited and may be unlawful. Visit us at http://www.cognizant.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
The bottomless pit of mod_jk
Pardon any show of frustration here, but I wanted to know if there is any real definitive reference on configuring mod_jk. I've burned 3 full days Googling, endless configuration file editing, tailing logs, etc., and there just seems to be problem after problem. I've worked off of several apparently comprehensive HOW-TOs that are out there, and each one seems to have their set of problems -- either they aren't current to the latest versions of httpd and/or tomcat, or there are other issues present. Is there an official Tomcat resource which tells how to configure mod_jk on the most recent version of Tomcat and Httpd? Brad - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Java Question
http://cruisecontrol.sourceforge.net/ --- Andrew English [EMAIL PROTECTED] wrote: Is there anyway to check this theory? Andrew -Original Message- From: Peter Crowther [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 22, 2006 11:22 AM To: Tomcat Users List Subject: RE: Java Question From: Andrew English [mailto:[EMAIL PROTECTED] I have looked for the filenames.* on all the servers including the linux ones and not come up with anything except for what's on the two servers. I suspect an operations issue. Has someone configured a revision control system (such as CVS or Subversion) on the production server, such that it does nightly checkouts of the 'known good' content, to assist in staging content from the development to the production server? - Peter - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
why use mod_jk?
After wasting time trying to configure mod_jk, I thought I'd just wipe my mind free and just play dumb for a moment. If Apache can proxy requests using mod_proxy, what is the benefit of using mod_jk as an integration technique between httpd and tomcat, if integration is *not* in-process, which I understand is not recommended for Tomcat 5.5? Brad - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Configuring mod_jk, and the notion of webapps
Vanessa, Thanks for the resource. However, as I've been told, in-process/JNI is/will be deprecated and isn't recommended with Tomcat 5.5 and Apache 2.x, and it appears that this particular configuration is trying to do that. Perhaps I've heard wrong. But I guess the confusion underscores the lack of documentation surrounding this area of Tomcat. Brad Vanessa Campos wrote: Brad, I found a good how-to that helped me put mod_jk to work. www.howtoforge.com/apache2_tomcat5_mod_jk It's very simple, and it works. --- Brad O'Hearne [EMAIL PROTECTED] escreveu: I have been having trouble getting mod_jk to work. After having Googled and read various information on configuring mod_jk (that's the first problem -- we need good documentation without having to Google), I settled on this link which is a pretty good HOWTO: http://www.meritonlinesystems.com/docs/apache_tomcat_redhat.html The problem is, once I got everything setup, things didn't work as expected. Before going into a long diatribe about all the potential issues, what I checked, etc., I want to inquire about the notion of this document's advice about your webapp, as mentioned in http.conf and server.xml configuration, and as shown in step 5 of this HOWTO, in directory creation. The document instructs you to create the appropriate application directories as follows: mkdir /home/tomcat/webapps mkdir /home/tomcat/webapps/{YOUR_DOMAIN} mkdir /home/tomcat/webapps/{YOUR_DOMAIN}/logs mkdir /home/tomcat/webapps/{YOUR_DOMAIN}/{YOUR_APPLICATION} mkdir /home/tomcat/webapps/{YOUR_DOMAIN}/{YOUR_APPLICATION}/WEB-INF mkdir /home/tomcat/webapps/{YOUR_DOMAIN}/{YOUR_APPLICATION}/WEB-INF/classes In the httpd.conf, the virtualHost directive setup recommended is as follows: VirtualHost 127.0.0.1:80 ServerAdmin [EMAIL PROTECTED] ServerName {YOUR_DOMAIN} DocumentRoot /home/tomcat/webapps/{YOUR_DOMAIN}/{YOUR_APPLICATION} ErrorLog /home/tomcat/webapps/{YOUR_DOMAIN}/logs/error_log CustomLog /home/tomcat/webapps/{YOUR_DOMAIN}/logs/access_log common JkMount /*.jsp wrkr JkMount /servlet/* wrkr # Deny direct access to WEB-INF LocationMatch .*WEB-INF.* AllowOverride None deny from all /LocationMatch /VirtualHost and in configuring the Tomcat context, the configuration recommended is as follows: Context path= docBase={YOUR_APPLICATION} reloadable=true debug=0/ I don't get the {YOUR_APPLICATION} part of this. Basically, I have a domain, and from it, I will be serving the contents of one or more web applications. These web applications of course are WAR files. The directory creation instructions look as if you would be creating the exploded WAR structure manually, and the virtual host configuration and context configuration appear to be addressing a particular WAR. This doesn't make sense to me. All I want to do is forward all requests with a particular prefix to Tomcat, regardless of the web application, and based upon the prefix, tomcat will determine which web application will respond (just as if you were using Tomcat without Apache httpd). Can someone give me a heads up on how to configure this? Thanks! Brad - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Vanessa Campos [EMAIL PROTECTED] ICQ 35381281 Efetivamente, para o homem, enquanto homem, nada tem valor a menos que ele possa executa-lo com entusiasmo Max Weber ___ Yahoo! Acesso Grátis - Internet rápida e grátis. Instale o discador agora! http://br.acesso.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]