Re: Howto compile mod_jk2 under windows?
After I hit build button, the MSVC debug windows displayed as follow: Configuration: mod_jk2 - Win32 Debug Creating resources from ..\..\common\jk_logger_win32_message.mc MC: may only specify one message file to compile. MC: may only specify one message file to compile. MC: may only specify one message file to compile. MC: may only specify one message file to compile. Microsoft (R) Message Compiler Version 1.00.5239 Copyright (c) Microsoft Corp 1992-1995. All rights reserved. usage: MC [-?vcdwso] [-m maxmsglen] [-h dirspec] [-e extension] [-r dirspec] [-x dbgFileSpec] [-u] [-U] filename.mc -? - displays this message -v - gives verbose output. -c - sets the Customer bit in all the message Ids. -d - FACILTY and SEVERITY values in header file in decimal. Sets message values in header to decimal initially. -w - warns if message text contains non-OS/2 compatible inserts. -s - insert symbolic name as first line of each message. -o - generate OLE2 header file (use HRESULT definition instead of status code definition) -m maxmsglen - generate a warning if the size of any message exceeds maxmsglen characters. -h pathspec - gives the path of where to create the C include file Default is .\ -e extension - Specify the extension for the header file. From 1 - 3 chars. -r pathspec - gives the path of where to create the RC include file and the binary message resource files it includes. Default is .\ -x pathspec - gives the path of where to create the .dbg C include file that maps message Ids to their symbolic name. -u - input file is Unicode. -U - messages in .BIN file should be Unicode. filename.mc - gives the names of a message text file to compile. Generated files have the Archive bit cleared. Error executing c:\windows\system32\cmd.exe. mod_jk2.dll - 1 error(s), 1 warning(s) -- Nuclear Science Technology Virtual Research Center http://nst.pku.edu.cn -- Original Message --- From: Bill Barker [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thu, 26 Jun 2003 22:07:20 -0700 Subject: Re: Howto compile mod_jk2 under windows? I'm neither a Windows user nor a Jk2 user, but just by looking, there are '.dsp' files under all of server/apache13, server/apache2, and server/isapi. Assuming that you have MSVC installed, it should be enough to click on the file and hit the 'build' button. Ares Liu [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I need newest mod_jk2 under windows. But I don't know how to compile it. Who can give me a tutorial? Thanks! -Ares -- Nuclear Science Technology Virtual Research Center http://nst.pku.edu.cn - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --- End of Original Message --- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: index.html
On Thu, 2003-06-26 at 18:53, Tim Funk wrote: Are you sure you installed the right tomcat? Ouch, silly me; no it was 4.0-b4. OK, cd to the right directory. But, [EMAIL PROTECTED]:/usr/local/jakarta-tomcat-5.0.3/bin$ ./catalina.sh run Using CATALINA_BASE: /usr/local/jakarta-tomcat-5.0.3 Using CATALINA_HOME: /usr/local/jakarta-tomcat-5.0.3 Using CATALINA_TMPDIR: /usr/local/jakarta-tomcat-5.0.3/temp Using JAVA_HOME: /usr/local/j2sdk141 java.lang.NoSuchMethodException: org.apache.catalina.startup.Catalina.setAwait(boolean) at java.lang.Class.getMethod0(Class.java:1756) at java.lang.Class.getMethod(Class.java:963) at org.apache.catalina.startup.Bootstrap.setAwait(Bootstrap.java:337) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:392) I downloaded the binary dist. yesterday. [EMAIL PROTECTED]:/var/backups$ more wg*3 --09:06:47-- http://jakarta.apache.org/builds/jakarta-tomcat/release/v5.0.3-alpha/bin/jakarta-tomcat-5.0.3.tar.gz = `jakarta-tomcat-5.0.3.tar.gz' Resolving bdg2.pindad.co.id... done. Connecting to bdg2.pindad.co.id[192.168.1.45]:3128... connected. Proxy request sent, awaiting response... 200 OK Length: 10,110,158 [application/x-tar] ... 09:19:11 (13.30 KB/s) - `jakarta-tomcat-5.0.3.tar.gz' saved [10110158/10110158] [EMAIL PROTECTED]:/var/backups$ ls -l wg*3 -rw-r--r--1 okidzokidz 16073 Jun 26 09:19 wget-log.3 Oki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: HTTP10Interceptor: SocketException
Robert Irwin [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Thanks Bill, Followed the directions(thanks), no love... Same problem, HTTP10Interceptor: SocketException 6 times on close of browser. Well, part of the instructions were to comment out the HTTP10Interceptor in server.xml and use the CoyoteConnector instead ;-). There aren't any fixes to the HTTP10Interceptor in 3.3.2, since the plan is to deprecate it in favor of the CoyoteConnector. Note that the 3.3.2 CoyoteConnector is almost the same code-base as the 4.1.x CoyoteConnector (the only difference is the thin communications layer between Coyote and Tomcat). Would it be worth trying the 3.3.2 build? Even though it's still a dev release? The 3.3.2-dev is pretty stable (there haven't been any changes in months, since it is considered feature-complete, and not many bugs get reported against it anymore). It is likely that the current nightly will become the official 3.3.2 release when myself or Larry has enough spare time to actually release it. Most of the changes from 3.3.1-3.3.2 are pretty obscure bug fixes. And none of them relate to the Connectors. As much as I'd like people to try out 3.3.2, I don't think that you will see much of a difference from the hybrid 3.3.1/Coyote. Thanks, truck - Original Message - From: Bill Barker [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, June 26, 2003 9:24 PM Subject: Re: HTTP10Interceptor: SocketException You could also try using the CoyoteConnector from 3.3.2-dev (fully compatible with 3.3). Instructions 1) Grab the 3.3.2-dev build from http://jakarta.apache.org/builds/jakarta-tomcat/nightly-3.3/ and unpack into a seperate directory. 2) Follow the instructions at http://jakarta.apache.org/builds/jakarta-tomcat-connectors/coyote/release/v1 .0-rc2/. However don't use the jars from here, as this version is known to be broken with TC 3.3. /Intructions Robert Irwin [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hello all, and any help please! Tomcat 3.3 on w2k server App throws the following when clients close browser window! ANy help??? (yes, 6 or more times!) HTTP10Interceptor: SocketException reading request, ignored HTTP10Interceptor: SocketException reading request, ignored HTTP10Interceptor: SocketException reading request, ignored HTTP10Interceptor: SocketException reading request, ignored HTTP10Interceptor: SocketException reading request, ignored HTTP10Interceptor: SocketException reading request, ignored - 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]
Help. how to get ServletContext ?
Hi, I have a class which implements HttpSessionBindingListener interface. The class is put in the session scope. I have to get the ServletContext from inside this class. How to get it ?. I don't know much about servlets and Java. Antony - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE : JK2 question again + context in a different partition
Thanks John, I tried to create a context pointing to a different partition, to no avail (tried with backslashes, double-slashes, etc). Maybe you could explain how to achieve this ? Thanks. Regards Alain -Message d'origine- De : John Turner [mailto:[EMAIL PROTECTED] Envoyé : jeudi, 26. juin 2003 18:59 À : Tomcat Users List Objet : Re: JK2 question again + context in a different partition Answer #1: Yes. Answer #2: I think so, but I don't use JK2. Should be easy to test. John On Thu, 26 Jun 2003 17:24:44 +0200, Hertenstein Alain [EMAIL PROTECTED] wrote: Hi again, I've got a couple of questions : - is it possible to create a context whose path goes to another partition ? Let's say Tomcat is installed in the c:\tomcat4 folder. Is it possible to have a Web Application on the d:\myWebApps folder ? - in the uri mapping section of the workers2.properties file, in case of a JK2 connector for IIS and Tomcat, is it possible to map 2 different contexts ? This would look something like this : - # Map the Tomcat examples webapp AND myWebApp to the Web server uri space [uri:/examples/*] [uri:/myWebApp/*] info=Map both webapps -- Is this valid, or should I do it another way ? Thanks a lot for your help. Best regards Alain ** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. ** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Memory Activity
Hi ! How can I mesure the memory used for a web app (A struts one) that is started but not used by any client. What must I do to prevent any waste of memory in this case. In the same way, I must limit the memory consumtion of Tomcat on my system : It must be very small consumer as far as there is no client activity. Thanks a lot. Arnaud - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Log4j problem mixing 2 apps
OK, I think I see the problem but I'm not sure how to fix. I'm using eclipse to debug and run tomcat and as it uses log4j to log in the webapps I have to put log4j in the classpath for eclipse so that the code will compile. However, I think this is causing a problem when the application runs as the log4j jar is loaded by eclipse and therefore it seems to use that version instead of the version in WEB-INF/lib. If I run the application from the command line it works fine. Anybody got any idea on how I can work in Eclipse (or any IDE) and get around this loading problem? Thanks Donie -Original Message- From: Jim Lynch [mailto:[EMAIL PROTECTED] Sent: 26 June 2003 16:56 To: Tomcat Users List Subject: Re: Log4j problem mixing 2 apps OK, I removed the jar file from common/lib and put copies in each WEB-INF/lib and it works as expected. Thanks again, Donie, be sure you don't still have a copy somewhere in your tomcat lib path, too. Jim. Donie Kelly wrote: I have this problem as well but my log4j.jar is in WEB-INF/lib in both contexts. The problem happens exactly the same way. The last app to load sets the logging for each webapp and all the logs go to the same location. Donie -Original Message- From: Vladimer Shioshvili [mailto:[EMAIL PROTECTED] Sent: 26 June 2003 14:48 To: Tomcat Users List Subject: Re: Log4j problem mixing 2 apps easiest solution is to use log4j in the context scope, instead of application scope. meaning that you put your log4j.jar file in web-inf/lib of every context, instead of some central location. each application will have to configure the logger separately after that, and you will have no interference. cheers, Vlad At 09:40 AM 6/26/2003, you wrote: I've two different applications running, using log4j to log. For some reason output destined for one app gets in the others log. It looks like only one application can have a log at a time. What might I have done to cause this problem? It looks like the application that has been deployed last gets all the log messages. Thanks, Jim. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Vladimer Shioshvili QRC Division of Macro International Inc. 7315 Wisconsin Avenue, Suite 400W Bethesda, MD 20814 Phone: (301) 657 3077 ext. 155 - 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] ** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the sender. This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. ** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Log4j problem mixing 2 apps
Hi New to servlets. could anybody tell me what is log4j and about its usage. Thanks and Regards Deepak -Original Message- From: Donie Kelly [mailto:[EMAIL PROTECTED] Sent: Friday, June 27, 2003 3:17 PM To: 'Tomcat Users List' Subject: RE: Log4j problem mixing 2 apps OK, I think I see the problem but I'm not sure how to fix. I'm using eclipse to debug and run tomcat and as it uses log4j to log in the webapps I have to put log4j in the classpath for eclipse so that the code will compile. However, I think this is causing a problem when the application runs as the log4j jar is loaded by eclipse and therefore it seems to use that version instead of the version in WEB-INF/lib. If I run the application from the command line it works fine. Anybody got any idea on how I can work in Eclipse (or any IDE) and get around this loading problem? Thanks Donie -Original Message- From: Jim Lynch [mailto:[EMAIL PROTECTED] Sent: 26 June 2003 16:56 To: Tomcat Users List Subject: Re: Log4j problem mixing 2 apps OK, I removed the jar file from common/lib and put copies in each WEB-INF/lib and it works as expected. Thanks again, Donie, be sure you don't still have a copy somewhere in your tomcat lib path, too. Jim. Donie Kelly wrote: I have this problem as well but my log4j.jar is in WEB-INF/lib in both contexts. The problem happens exactly the same way. The last app to load sets the logging for each webapp and all the logs go to the same location. Donie -Original Message- From: Vladimer Shioshvili [mailto:[EMAIL PROTECTED] Sent: 26 June 2003 14:48 To: Tomcat Users List Subject: Re: Log4j problem mixing 2 apps easiest solution is to use log4j in the context scope, instead of application scope. meaning that you put your log4j.jar file in web-inf/lib of every context, instead of some central location. each application will have to configure the logger separately after that, and you will have no interference. cheers, Vlad At 09:40 AM 6/26/2003, you wrote: I've two different applications running, using log4j to log. For some reason output destined for one app gets in the others log. It looks like only one application can have a log at a time. What might I have done to cause this problem? It looks like the application that has been deployed last gets all the log messages. Thanks, Jim. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Vladimer Shioshvili QRC Division of Macro International Inc. 7315 Wisconsin Avenue, Suite 400W Bethesda, MD 20814 Phone: (301) 657 3077 ext. 155 - 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] ** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the sender. This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. ** - 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]
manager reload vs tomcat restart
If I use the manager http command to reload my app, it looses the DB connection. If I use /bin/shutdown and startup scripts it is fine. I am on tomcat 1.1.24, linux rh 9, oracle 9.2 thick client. Thanks, Euan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Help. how to get ServletContext ?
Try calling getServletContext(). But I think you have to set CrossContext to 'true' in the Context element of Server.xml _ Atreya Basu Developer, Greenfield Research Inc. e-mail: atreya (at) greenfieldresearch (dot) ca -Original Message- From: Antony [mailto:[EMAIL PROTECTED] Sent: June 27, 2003 5:18 AM To: tomcat mail list Subject: Help. how to get ServletContext ? Hi, I have a class which implements HttpSessionBindingListener interface. The class is put in the session scope. I have to get the ServletContext from inside this class. How to get it ?. I don't know much about servlets and Java. Antony - 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: Log4j problem mixing 2 apps
Am Freitag, 27. Juni 2003 12:04 schrieb Deepak Nagpal: Hi New to servlets. could anybody tell me what is log4j and about its usage. log4j ist not servlet specific, it can be used for any java based project. It's a system helping you creating configurable logs. See http://jakarta.apache.org Mit freundlichem Gruß / With kind regards Holger Klawitter -- lists at klawitter dot de - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: hosting services offering tomcat
I've used jsp-servlet.net, based in the US, reasonable prices, have had no complaints. On Friday, Jun 27, 2003, at 03:19 Europe/London, Lajos wrote: Replying late to this post ... but, I can highly recommend http://www.smedia.info. Having done work for them in the past, I know they have a very responsive and attentive staff. If you call them, please tell them I referred you. Regards, Lajos Joe Block wrote: I'm sure this has probably come up before, but I wasn't able to find it in the archives. We've got some client sites that are using Tomcat and need to find a hosting facility that offers Tomcat services. I'd like to hear from anyone outsourcing Tomcat sites, who are you using, and how happy you are with their service. I will summarize to the list so the next person can find it with google. Thanks, jpb -- Lajos Moczar Open Source Support, Consulting and Training Cocoon Developer's Handbook (www.amazon.com/exec/obidos/tg/detail/-/0672322579) _ _ / \ / /___\ / / \ / http://www.galatea.com -- powered by AzSSL - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Jason Lane Developer Root10 developments - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: index.html
Odd. I'll download the binary and take a look. -Tim Oki DZ wrote: But, [EMAIL PROTECTED]:/usr/local/jakarta-tomcat-5.0.3/bin$ ./catalina.sh run Using CATALINA_BASE: /usr/local/jakarta-tomcat-5.0.3 Using CATALINA_HOME: /usr/local/jakarta-tomcat-5.0.3 Using CATALINA_TMPDIR: /usr/local/jakarta-tomcat-5.0.3/temp Using JAVA_HOME: /usr/local/j2sdk141 java.lang.NoSuchMethodException: org.apache.catalina.startup.Catalina.setAwait(boolean) at java.lang.Class.getMethod0(Class.java:1756) at java.lang.Class.getMethod(Class.java:963) at org.apache.catalina.startup.Bootstrap.setAwait(Bootstrap.java:337) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:392) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
jkmounts screwing up my namevirtualhost
Hello, My NameVirtualHost fails when I try to set the JkMount directives. I am using httpd-2.0.43 jakarta-tomcat-4.1.12 (I am also using jakarta-struts-1.0.2, but this might not be so relevant to my problem) Here is my setup (I describe the problem at the end using the specific names that appear in the config file snippets below): 1. in /etc/hosts: # Do not remove the following line, or various programs # that require network functionality will fail. 127.0.0.1 localhost.localdomain localhost 127.0.0.1 oecon-stprg 127.0.0.1 oecon-admprg 12.38.84.60 heather 2. In httpd.conf: NameVirtualHost 127.0.0.1 Here is my catch all localhost virtual host: VirtualHost 127.0.0.1 ServerAdmin [EMAIL PROTECTED] ServerAlias localhost.localdomain localhost DocumentRoot /usr/local/bin/server-1.0/apache2/htdocs ServerName localhost ErrorLog logs/localhost_error.log CustomLog logs/localhost_access.log common /VirtualHost 3. in mod_jk.conf-local Here is the virtual host that I am trying to work with: VirtualHost 127.0.0.1 DocumentRoot /usr/local/bin/server-1.0/jakarta-tomcat-4.1.12/webapps/oecon-stprg/ ServerName oecon-stprg ServerAlias oecon-stprg ServerAdmin [EMAIL PROTECTED] # Deny direct access to WEB-INF and META-INF Location WEB-INF/* AllowOverride None deny from all /Location Location META-INF/* AllowOverride None deny from all /Location Directory /usr/local/bin/server-1.0/jakarta-tomcat-4.1.12/webapps/oecon-stprg Options Indexes FollowSymLinks order allow,deny allow from all DirectoryIndex login.jsp /Directory JkMount /*.do ajp13 JkMount /servlet/*.jsp ajp13 JkMount /*.jsp ajp13 #ErrorLog logs/oecon-stprg_error.log #CustomLog logs/oecon-stprg_access.log common /VirtualHost -- The problem is - when I call up my virtual host url (http://oecon-stprg) and comment out the JkMount directives, apache gives me the proper document root (/usr/local/bin/server-1.0/jakarta-tomcat-4.1.12/webapps/oecon-stprg/) but of course then Tomcat can't handle jsp pages because there are no JkMount directives. When I uncomment the JkMounts and call up my virtual host, Apache does not send me to the DocumentRoot that I have defined in my oecon-stprg VirtualHost, but instead to the default tomcat webapp. In other words, the presence of this in my VirtualHost block: JkMount /*.do ajp13 JkMount /servlet/*.jsp ajp13 JkMount /*.jsp ajp13 causes Apache to deliver the files under here: /usr/local/bin/server-1.0/jakarta-tomcat-4.1.12/webapps/ROOT intead of the ones under here: /usr/local/bin/server-1.0/jakarta-tomcat-4.1.12/webapps/oecon-stprg I hope I have explained this well enough to get a reply. I have struggled for two days now. I read the document at http://www.galatea.com/flashguides/virtual-hosting.xml as I generally think the Galatea guides are very good. However, it describes setting up the JkMounts under a subdirectory, for example, JkMount /test ajp13 JkMount /test/* ajp13 and not at the root, as I would like to do. I want to be able to call up http://oecon-stprg/login.jsp not http://oecon-stprg/test/login.jsp but maybe I need that subdirectory? Thanks very much in advance, Heather Buch - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: PrintServiceLookup And Tomcat
Hi Jason, Yes, it's a Windows service and they are network printers. Your point about changing the user under which Tomcat is running is interesting, but I'm not sure I understand what I should do. Can you give more details or point me to a reference? The logs are all clean - no exceptions, no problems, just no print services found. I did add a check to the code using SecurityManager checkPrintJobAccess(). This throws a SecurityException if the servlet is not authorized to queue print jobs. No exception, but no print services, either. Any advice would be most welcome. I'll keep digging with Google. Thanks - MOD --- Jason Bainbridge [EMAIL PROTECTED] wrote: On Fri, 27 Jun 2003 04:45, Michael Duffy wrote: I've got a Web app running on Tomcat 4.1.24 and JDK 1.4.1 on a Windows 2000 desktop. I'm generating a PDF that I'd like to be able to send to a printer attached to the machine on which Tomcat is running. How are you running Tomcat? As a windows service? If you are you will need to change the user the service is running under as I am assuming they are network printers? Other than that I'm not too sure, have you tried looking in the Tomcat logs? Regards, -- Jason Bainbridge http://jblinux.org - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Client Certificates Authentication in Tomcat v4.1.24
ERROR: There is no such list CERTIFICATES here. SOLUTION: Send a message to [EMAIL PROTECTED] with a subject of 'info' (no quotes) for a list of available mailing lists. -- Sincerely, the Minimalist - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Possible workaround for invalid direct reference to login page
Java Authentication with tomcat relies on realms. If you access a page protected by that realm you get directed to the login page. However, it is possible to go directly to the login page ( this can happen when users bookmark the login page inadvertantly ). This happens in two scenarios: 1) The user is already logged in. 2) The user is not logged in. If you authenticate yourself once you have gone directly to the login page, you get a invalid direct reference error. Fair enough, the login page is trying to redirect to itself. Now, I tried to workaround this by checking if the session is null, and if it is, redirecting to some protected page, eg. protected/index.jsp. No luck. It seems that a session is implicitly created, and a new session id gets created. So I've tried a cookie strategy: % if ( request.getCookies()==null ) { response.sendRedirect(//jsp/protected/index.jsp); } if ( request.getRemoteUser()!=null ) { response.sendRedirect(/x/jsp/protected/index.jsp); } % i.e, we wont have a cookie if we've gone directly to the login page. But we will have if we've tried to access a protected page and then we've been forwarded to a login page, tomcat will give us a cookie. Now if we're already logged in ( which we check with getRemoteUser() , then we just forward to user to an index page. This seems o.k. However my index page actually includes my login page! I'm planning to get around this with some logic that only includes the login page excerpt if we are not logged in.. Ben
Re: REALM question - please help
Thanks for your help . I'm new to TOMCAT , so I may have some confusion. I thought it's the way that TOMCAT does. We have to use REALM to authenticate as we define this in web.xml : login-config auth-methodBASIC/auth-method realm-nameMyRealm/realm-name /login-config It will pop up a log in box, and Realm's authentication method will does the authentication. After the Login , it 'll call the Servlet's service(). In the Realm class, which extends org.apache.catalina.realm.RealmBase, there is no access to HttpRequest, Response, or Session at this point . How do I store a data member of the Realm class some where (?) so that my servlet can access to it ? Or is it something that should never be done ? What'd be an alternative solution ? I don't think Filter serves the goal that I describe above, am I correct ? Thank you very much. - Chinh Bill Barker [EMAIL PROTECTED] wrote: I agree with Jean-Francois that the design is less than perfect ;-). You should probably re-think it. However, I'm willing to give you more than enough rope to hang yourself ;-). 1) If your custom Realm is configured under a , then simply have if save an instance of itself into the Session. 2) If not, or otherwise, have it set a request-attribute with itself as the value. Dinh, Chinh wrote in message news:[EMAIL PROTECTED] Thanks for the response. My situation is like this: - I created my own Realm for webDAV access. When I launch http://localhost:8080/webdav, it will first call myREalm's authentication(). Within authentication(), I calls some existing authentication class, which returns a USER object (basically, has some application specific user properties). - After the authentication is successful (from a Log-in Dialog box, for example), it will get to my servlet (in this case, a webDAVservlet). In this webDavServlet, I would like to get the USER object that I stored as a data member in my Realm class. - That is the reason I want to be able to get the realm object from the servlet. Any advise ? Thanks . - Chinh Jean-Francois Arcand wrote: Dinh, Chinh wrote: I have a tomcat question for you . In Tomcat's server.xml, we define a realm (only ONE) When tomcat starts, I think it will instantiate a realm object of this type . I am trying to find a way to access this realm object in my servlet (the servlet that starts after the realm's authentication succeeds). There's a method getRealm() from org.apache.catalina.core.ContainerBase , but how would we get this ContainerBase ? No. For security reason, a servlet should not have access to any Tomcat classes. If your app is able to have access to those methods, any malicious app can also have access and snif the information. Why do you want to have access to the realm? Does Tomcat have some kind of global object of this type ? No...and in Tomcat 5,we have enforced the security protection mechanism so it is mostly impossible to invoke Tomcat internal classes (when the security manager is turned on) Thank you . Chinh -- Jeanfrancois - Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month!
download of csv file
Hi We have a servlet which will download csv file from server.It works fine in some browser. The file type CSV is standard Excel format file. When i click on the link 'file open/save as' dialog appears, i see only html as supported filetype. Why? I expected CSV file as filetype here. This behvaiour is not true for all machines. Only on few PCs i see this problem? Is there any browser setting? I verified the application association with filöetype extension (CSV), it is MS-Excel. Thanks Shanta.B - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Help. how to get ServletContext ?
Howdy, I have a class which implements HttpSessionBindingListener interface. The class is put in the session scope. I have to get the ServletContext from inside this class. How to get it ?. I don't know much about servlets and Java. You might want to get a book or go through some tutorials. In this case, the answer is fairly clear from the JavaDocs: Every method in HttpSessionBindingListener gets an HttpSessionBindingEvent as its argument. Call getSession() on that event to get the HttpSession, and call getServletContext() on the session to get the context. Ignore what the other person said about setting crossContext=true in server.xml. It's not required. Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How to use HTTP1.0 by default
Howdy, If an HTTP/1.1 server receives an HTTP/1.0 request, it should respond with HTTP/1.0. The response will say HTTP/1.1 because that indicates the version that the server is capable of providing, not the version that it is using for the response. RFC 2145 says An HTTP server MAY send a lower response version, if it is known or suspected that the client incorrectly implements the HTTP specification, but this should not be the default, and this SHOULD NOT be done if the request version is HTTP/1.1 or greater. You can probably draw your own conclusions as to what Tomcat probably does. Therefore, if you want Tomcat to respond using HTTP/1.0, send it an HTTP/1.0 request. It's nice to see a researched response. However, I disagree with it. RFC 2145 is less relevant here than RFC 2616. RFC 2616 requires that HTTP servers always begin their responses with the highest HTTP version that they claim to support. Therefore, this Connector will always return HTTP/1.1 at the beginning of its responses. Either way, the original poster is down a path that will require him/her to: - Use old/deprecated connectors - Customize a connector - Use an older HTTP/1.0 server. Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Log4j problem mixing 2 apps
Howdy, Apparently new to mailing list etiquette as well? Please don't hijack other threads, start your own with your question, or better yet, RTFM at http://jakarta.apache.org/log4j Yoav Shapira Millennium ChemInformatics -Original Message- From: Deepak Nagpal [mailto:[EMAIL PROTECTED] Sent: Friday, June 27, 2003 6:04 AM To: Tomcat Users List Subject: RE: Log4j problem mixing 2 apps Hi New to servlets. could anybody tell me what is log4j and about its usage. Thanks and Regards Deepak -Original Message- From: Donie Kelly [mailto:[EMAIL PROTECTED] Sent: Friday, June 27, 2003 3:17 PM To: 'Tomcat Users List' Subject: RE: Log4j problem mixing 2 apps OK, I think I see the problem but I'm not sure how to fix. I'm using eclipse to debug and run tomcat and as it uses log4j to log in the webapps I have to put log4j in the classpath for eclipse so that the code will compile. However, I think this is causing a problem when the application runs as the log4j jar is loaded by eclipse and therefore it seems to use that version instead of the version in WEB-INF/lib. If I run the application from the command line it works fine. Anybody got any idea on how I can work in Eclipse (or any IDE) and get around this loading problem? Thanks Donie -Original Message- From: Jim Lynch [mailto:[EMAIL PROTECTED] Sent: 26 June 2003 16:56 To: Tomcat Users List Subject: Re: Log4j problem mixing 2 apps OK, I removed the jar file from common/lib and put copies in each WEB-INF/lib and it works as expected. Thanks again, Donie, be sure you don't still have a copy somewhere in your tomcat lib path, too. Jim. Donie Kelly wrote: I have this problem as well but my log4j.jar is in WEB-INF/lib in both contexts. The problem happens exactly the same way. The last app to load sets the logging for each webapp and all the logs go to the same location. Donie -Original Message- From: Vladimer Shioshvili [mailto:[EMAIL PROTECTED] Sent: 26 June 2003 14:48 To: Tomcat Users List Subject: Re: Log4j problem mixing 2 apps easiest solution is to use log4j in the context scope, instead of application scope. meaning that you put your log4j.jar file in web- inf/lib of every context, instead of some central location. each application will have to configure the logger separately after that, and you will have no interference. cheers, Vlad At 09:40 AM 6/26/2003, you wrote: I've two different applications running, using log4j to log. For some reason output destined for one app gets in the others log. It looks like only one application can have a log at a time. What might I have done to cause this problem? It looks like the application that has been deployed last gets all the log messages. Thanks, Jim. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Vladimer Shioshvili QRC Division of Macro International Inc. 7315 Wisconsin Avenue, Suite 400W Bethesda, MD 20814 Phone: (301) 657 3077 ext. 155 - 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] ** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the sender. This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. ** - 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] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL
RE: Memory Activity
Howdy, How can I mesure the memory used for a web app (A struts one) that is You can't just for one webapp. You can measure the memory usage of the whole JVM. If all you have one the server is the one webapp, than the JVM memory = tomcat memory + webapp memory. used by any client. What must I do to prevent any waste of memory in this case. Code your application to not create any objects it doesn't need, don't hold references to anything it doesn't need, don't create extra threads, etc. Same as any (command-line, desktop, etc.) application. In the same way, I must limit the memory consumtion of Tomcat on my system : It must be very small consumer as far as there is no client activity. Eliminate all unused webapps, e.g. examples/admin/manager/ROOT/tomcat-docs/websav. Eliminate all unneeded connectors and services from server.xml. Eliminate all unneeded Loggers if you want. You'll find the tomcat footprint to be very small (by normal server-side scale) when you do this. I don't know if it'll fit on a 64KB card, but small nonetheless ;) Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: PrintServiceLookup And Tomcat
Howdy, Can you try running tomcat from the command-line, without a security manager, not as a service, and see what happens? Yoav Shapira Millennium ChemInformatics -Original Message- From: Michael Duffy [mailto:[EMAIL PROTECTED] Sent: Friday, June 27, 2003 7:24 AM To: Tomcat Users List Subject: Re: PrintServiceLookup And Tomcat Hi Jason, Yes, it's a Windows service and they are network printers. Your point about changing the user under which Tomcat is running is interesting, but I'm not sure I understand what I should do. Can you give more details or point me to a reference? The logs are all clean - no exceptions, no problems, just no print services found. I did add a check to the code using SecurityManager checkPrintJobAccess(). This throws a SecurityException if the servlet is not authorized to queue print jobs. No exception, but no print services, either. Any advice would be most welcome. I'll keep digging with Google. Thanks - MOD --- Jason Bainbridge [EMAIL PROTECTED] wrote: On Fri, 27 Jun 2003 04:45, Michael Duffy wrote: I've got a Web app running on Tomcat 4.1.24 and JDK 1.4.1 on a Windows 2000 desktop. I'm generating a PDF that I'd like to be able to send to a printer attached to the machine on which Tomcat is running. How are you running Tomcat? As a windows service? If you are you will need to change the user the service is running under as I am assuming they are network printers? Other than that I'm not too sure, have you tried looking in the Tomcat logs? Regards, -- Jason Bainbridge http://jblinux.org - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: PrintServiceLookup And Tomcat
Hi Yoav, Brilliant advice, as usual. When I shut down the Tomcat service and run it using startup.bat, it finds both printers beautifully and puts the names in the drop down. Now - what do I have to change so my service will behave as nicely? If you know, I'd appreciate hearing it. If not, I'll see if I can dig up a local Windows maven. Thanks again for watching this list. Sincerely, MOD --- Shapira, Yoav [EMAIL PROTECTED] wrote: Howdy, Can you try running tomcat from the command-line, without a security manager, not as a service, and see what happens? Yoav Shapira Millennium ChemInformatics -Original Message- From: Michael Duffy [mailto:[EMAIL PROTECTED] Sent: Friday, June 27, 2003 7:24 AM To: Tomcat Users List Subject: Re: PrintServiceLookup And Tomcat Hi Jason, Yes, it's a Windows service and they are network printers. Your point about changing the user under which Tomcat is running is interesting, but I'm not sure I understand what I should do. Can you give more details or point me to a reference? The logs are all clean - no exceptions, no problems, just no print services found. I did add a check to the code using SecurityManager checkPrintJobAccess(). This throws a SecurityException if the servlet is not authorized to queue print jobs. No exception, but no print services, either. Any advice would be most welcome. I'll keep digging with Google. Thanks - MOD --- Jason Bainbridge [EMAIL PROTECTED] wrote: On Fri, 27 Jun 2003 04:45, Michael Duffy wrote: I've got a Web app running on Tomcat 4.1.24 and JDK 1.4.1 on a Windows 2000 desktop. I'm generating a PDF that I'd like to be able to send to a printer attached to the machine on which Tomcat is running. How are you running Tomcat? As a windows service? If you are you will need to change the user the service is running under as I am assuming they are network printers? Other than that I'm not too sure, have you tried looking in the Tomcat logs? Regards, -- Jason Bainbridge http://jblinux.org - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat + Apache Problem
What Tomcat version? For version 4.1.x, See my Win2K/XP HOWTO: http://www.johnturner.com/howto John On Thu, 26 Jun 2003 21:13:32 +0200, David Herranz [EMAIL PROTECTED] wrote: Hello, I trying to integrate Tomcat into the Apache server, but i need the file tomcat-Apache.conf, I read in some documents that this file is created automatic when the tomcat start, but when I start the tomcat server the file no create. I explain you my environment: W2000 workstation, Oracle server, Apache server, and Tomcat. Could you help me?? Sorry for my English -- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Howto compile mod_jk2 under windows?
Best place for this is the tomcat-dev list, not tomcat-user. John On Fri, 27 Jun 2003 14:21:23 +0800, Ares Liu [EMAIL PROTECTED] wrote: After I hit build button, the MSVC debug windows displayed as follow: Configuration: mod_jk2 - Win32 Debug-- -- Creating resources from ..\..\common\jk_logger_win32_message.mc MC: may only specify one message file to compile. MC: may only specify one message file to compile. MC: may only specify one message file to compile. MC: may only specify one message file to compile. Microsoft (R) Message Compiler Version 1.00.5239 Copyright (c) Microsoft Corp 1992-1995. All rights reserved. usage: MC [-?vcdwso] [-m maxmsglen] [-h dirspec] [-e extension] [-r dirspec] [-x dbgFileSpec] [-u] [-U] filename.mc -? - displays this message -v - gives verbose output. -c - sets the Customer bit in all the message Ids. -d - FACILTY and SEVERITY values in header file in decimal. Sets message values in header to decimal initially. -w - warns if message text contains non-OS/2 compatible inserts. -s - insert symbolic name as first line of each message. -o - generate OLE2 header file (use HRESULT definition instead of status code definition) -m maxmsglen - generate a warning if the size of any message exceeds maxmsglen characters. -h pathspec - gives the path of where to create the C include file Default is .\ -e extension - Specify the extension for the header file. From 1 - 3 chars. -r pathspec - gives the path of where to create the RC include file and the binary message resource files it includes. Default is .\ -x pathspec - gives the path of where to create the .dbg C include file that maps message Ids to their symbolic name. -u - input file is Unicode. -U - messages in .BIN file should be Unicode. filename.mc - gives the names of a message text file to compile. Generated files have the Archive bit cleared. Error executing c:\windows\system32\cmd.exe. mod_jk2.dll - 1 error(s), 1 warning(s) -- Nuclear Science Technology Virtual Research Center http://nst.pku.edu.cn -- Original Message --- From: Bill Barker [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thu, 26 Jun 2003 22:07:20 -0700 Subject: Re: Howto compile mod_jk2 under windows? I'm neither a Windows user nor a Jk2 user, but just by looking, there are '.dsp' files under all of server/apache13, server/apache2, and server/isapi. Assuming that you have MSVC installed, it should be enough to click on the file and hit the 'build' button. Ares Liu [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I need newest mod_jk2 under windows. But I don't know how to compile it. Who can give me a tutorial? Thanks! -Ares -- Nuclear Science Technology Virtual Research Center http://nst.pku.edu.cn - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --- End of Original Message --- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [TRICK] mod_jk build on Redhat 8.0 / 9.0
Good tip...thanks! John On Fri, 27 Jun 2003 11:43:43 +0200, Henri Gomez [EMAIL PROTECTED] wrote: Under Redhat 8.0/9.0, the Apache 2.0 installed is 2.0.40 with security fixes. But the apxs is still the one from 2.0.40 so the apxs -q LIBTOOL, used in configure didn't works. A solution for RH users to build jk 1.2.4 is : ./buildconf.sh ./configure --with-apxs=/usr/sbin/apxs make LIBTOOL=/etc/httpd/build/libtool cp apache-2.0/mod_jk.so /usr/lib/httpd/modules For your information, the jpackage project (www.jpackage.org), is working on releasing binary rpms for jk and jk2 for many Linux distribtuions (i386, ppc, RH/MDK...) Regards - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
tomcat stop does not kill all processes
Hi, I'm using tomcat 4.1.24rpm but I have the same pb with binary installation under linux ( 2.4.21 ) jdk 1.4.1_03. When I shutdown tomcat, it log that the standalone tomcat is down but all processes stay in memory and if I restart tomcat there are more processes I must kill then all if I want tomcat completely shutdown... I is not really clean for a production machine ! Somebody's got an idea to stop tomcat properly ? Thanks a lot Mourad - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: tomcat stop does not kill all processes
Howdy, Do your applications start any non-daemon threads? Yoav Shapira Millennium ChemInformatics -Original Message- From: mourad jaber [mailto:[EMAIL PROTECTED] Sent: Friday, June 27, 2003 9:03 AM To: Tomcat Users List Subject: tomcat stop does not kill all processes Hi, I'm using tomcat 4.1.24rpm but I have the same pb with binary installation under linux ( 2.4.21 ) jdk 1.4.1_03. When I shutdown tomcat, it log that the standalone tomcat is down but all processes stay in memory and if I restart tomcat there are more processes I must kill then all if I want tomcat completely shutdown... I is not really clean for a production machine ! Somebody's got an idea to stop tomcat properly ? Thanks a lot Mourad - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: PrintServiceLookup And Tomcat
Howdy, One has to think it has something to do with the service security model in windows. I used to know a lot about this, but not for current windows platforms. Maybe someone on the list does, maybe someone who wrote the javax.print.spi at Sun does. Yoav Shapira Millennium ChemInformatics -Original Message- From: Michael Duffy [mailto:[EMAIL PROTECTED] Sent: Friday, June 27, 2003 8:45 AM To: Tomcat Users List Subject: RE: PrintServiceLookup And Tomcat Hi Yoav, Brilliant advice, as usual. When I shut down the Tomcat service and run it using startup.bat, it finds both printers beautifully and puts the names in the drop down. Now - what do I have to change so my service will behave as nicely? If you know, I'd appreciate hearing it. If not, I'll see if I can dig up a local Windows maven. Thanks again for watching this list. Sincerely, MOD --- Shapira, Yoav [EMAIL PROTECTED] wrote: Howdy, Can you try running tomcat from the command-line, without a security manager, not as a service, and see what happens? Yoav Shapira Millennium ChemInformatics -Original Message- From: Michael Duffy [mailto:[EMAIL PROTECTED] Sent: Friday, June 27, 2003 7:24 AM To: Tomcat Users List Subject: Re: PrintServiceLookup And Tomcat Hi Jason, Yes, it's a Windows service and they are network printers. Your point about changing the user under which Tomcat is running is interesting, but I'm not sure I understand what I should do. Can you give more details or point me to a reference? The logs are all clean - no exceptions, no problems, just no print services found. I did add a check to the code using SecurityManager checkPrintJobAccess(). This throws a SecurityException if the servlet is not authorized to queue print jobs. No exception, but no print services, either. Any advice would be most welcome. I'll keep digging with Google. Thanks - MOD --- Jason Bainbridge [EMAIL PROTECTED] wrote: On Fri, 27 Jun 2003 04:45, Michael Duffy wrote: I've got a Web app running on Tomcat 4.1.24 and JDK 1.4.1 on a Windows 2000 desktop. I'm generating a PDF that I'd like to be able to send to a printer attached to the machine on which Tomcat is running. How are you running Tomcat? As a windows service? If you are you will need to change the user the service is running under as I am assuming they are network printers? Other than that I'm not too sure, have you tried looking in the Tomcat logs? Regards, -- Jason Bainbridge http://jblinux.org - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tomcat stop does not kill all processes
I'm using Rmi with an encapsulated rmiregistery but I don't know how to stop it. Shapira, Yoav wrote: Howdy, Do your applications start any non-daemon threads? Yoav Shapira Millennium ChemInformatics -Original Message- From: mourad jaber [mailto:[EMAIL PROTECTED] Sent: Friday, June 27, 2003 9:03 AM To: Tomcat Users List Subject: tomcat stop does not kill all processes Hi, I'm using tomcat 4.1.24rpm but I have the same pb with binary installation under linux ( 2.4.21 ) jdk 1.4.1_03. When I shutdown tomcat, it log that the standalone tomcat is down but all processes stay in memory and if I restart tomcat there are more processes I must kill then all if I want tomcat completely shutdown... I is not really clean for a production machine ! Somebody's got an idea to stop tomcat properly ? Thanks a lot Mourad - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. 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]
Win2003 IIS6 ISAPI filter problem
I have a Tomcat 3 application and have been running this successfully on several NT and 2000 machines under IIS using the isapi_redirect.dll filter (from Tomcat 3.3). I'm now trying to make it work under IIS 6 on Windows server 2003. Debug to the logfile shows it processing the HttpFilterProc OK but not proceeding to the HttpExtensionProc - I get a 404 error returned instead - it never gets as far as Tomcat. Does anyone know if this configuration works and what magic is needed to get past this problem? Thanks, Nick -- Nick Tatham Peramon Technology Limited +44 118 984 0506 www.peramon.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
fileupload beta+tomcat release or filupload current+tomcat cvs?
Hello, thanks for the link to the tomcat sources. It took a while but we are willing to look at the code. We downloaded all tomcat sources (at least I hope so) and Ant to compile tomcat once, to see if it compiles before we begin to modify it. build-catalina: [javac] Compiling 335 source files to D:\tomcatunpacked\jakarta-tomcat-4.1.24-src\ catalina\build\server\classes [javac] This version of java does not support the classic compiler; upgrading to modern [javac] D:\tomcatunpacked\jakarta-tomcat-4.1.24-src\ catalina\src\share\org\apache\catalina\servlets\ HTMLManagerServlet.java:205: cannot resolve symbol [javac] symbol : method setRepositoryPath (java.lang.String) [javac] location: class org.apache.commons.fileupload.FileUpload [javac] upload.setRepositoryPath(tempdir.getCanonicalPath()); [javac] ^ [javac] D:\tomcatunpacked\jakarta-tomcat-4.1.24-src\ catalina\src\share\org\apache\catalina\servlets\ HTMLManagerServlet.java:262: write(java.io.File) in org.apache.commons.fileupload.FileItem cannot be applied to (java.lang.String) [javac] warUpload.write(file.getCanonicalPath()); [javac] ^ [javac] Note: Some input files use or override a deprecated API. [javac] Note: Recompile with -deprecation for details. [javac] 2 errors BUILD FAILED The fileupload package is commons-fileupload-current from http://www.apache.org/dist/jakarta/commons/fileupload/ from 25-Jun-2003 23:32, which seems to me being the newest available. When I use the commons-fileupload-1.0-beta-1 instead, these two errors disappear. My question is: is it safe to use the fileupload-beta with the tomcat 4.1.24 release or is it more safe to upgrade to a CVS version of tomcat and therefore using fileupload-current? Thanks for your opinion Thomas Weller -Ursprungliche Nachricht- Von: Shapira, Yoav [mailto:[EMAIL PROTECTED] Betreff: RE: Problems starting Tomcat from CD [snip] Look at the relevant code: http://cvs.apache.org/viewcvs/jakarta-tomcat-4.0/catalina/src/share/org/ apache/catalina/startup/ContextConfig.java?rev=1.67content-type=text/vn d.viewcvs-markup [snap] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problem with new 4.1.24 install
I'm integrating Tomcat 4.1.24 with IIS in a Windows 2000 Server environment. 1. I downloaded and installed the distribution. 2. Downloaded the isapi_redirector.dll and placed it in /conf/ 3. I created the workers.properties and uriworkermap.properties file. 4. Uncommented the APJ13 section of the server.xml file 5. Created the required Windows Registry keys 6. Created a tomcat Virtual Directory in IIS with read, write execute permissions and pointed it to /conf/. 6. Added the ISAPI to IIS and it loaded fine. 7. Shutdown World Wide Web Publishing Service, started Tomcat and restarted WWWPS Service. Now if I open the url: http://127.0.0.1/examples I get the proper screen from Tomcat. If I select the JSP section and then an example (let's say numberguess) I get a Error 500 from Jasper saying it cannot compile. I get the same problem if I try to load using the 127.0.0.1:8080/examples url. Any help would be appreciated. The integration seemed to go fine, I just don't understand why it won't compile JSPs. Could it be a permissions thing? Tom E. Cole, Jr. General Manager, Lamatek, Inc. [EMAIL PROTECTED] http://www.lamatek.com
RE: Win2003 IIS6 ISAPI filter problem
I have been experiencing a similar problem with the ISAPI from 4.1.18. The application works fine when I hit Tomcat's HTTP listener, but going through IIS I receive the error with ACCESS DENIED. I have tried everything imaginable with the permissions. Is there a new ISAPI filter for 2003? Has anyone tried the ISAPI from Tomcat 5.0? - Kjell Eriksen -Original Message- From: Nick Tatham [mailto:[EMAIL PROTECTED] Sent: Friday, June 27, 2003 9:14 AM To: Tomcat Users List Subject: Win2003 IIS6 ISAPI filter problem I have a Tomcat 3 application and have been running this successfully on several NT and 2000 machines under IIS using the isapi_redirect.dll filter (from Tomcat 3.3). I'm now trying to make it work under IIS 6 on Windows server 2003. Debug to the logfile shows it processing the HttpFilterProc OK but not proceeding to the HttpExtensionProc - I get a 404 error returned instead - it never gets as far as Tomcat. Does anyone know if this configuration works and what magic is needed to get past this problem? Thanks, Nick -- Nick Tatham Peramon Technology Limited +44 118 984 0506 www.peramon.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]
Re: jkmounts screwing up my namevirtualhost
If you want multiple name-based virtual hosts with JK, I have found that you need to do the following: - make sure NameVirtualHost is enabled and set to * - make sure all VirtualHost containers look like this: VirtualHost * ServerName your.host.name ... JkMount /*.jsp ajp13 /VirtualHost - make sure that every possible value of ServerName is also defined in server.xml either as a Host or an Alias to a Host. You're getting the default web-app because Tomcat doesn't have a virtual host defined for 127.0.0.1, nor should it (technically) as virtual hosts are typically name-based. Most likely you have virtual hosts for localhost and ocean-stprg, but as far as Tomcat is concerned, neither of those is equal to 127.0.0.1, which is probably the host header it is getting from Apache. I have this configuration currently setup for 6 hosts, it is working perfectly. If you take the 127.0.0.1 out of your VirtualHost containers and instead use the * and follow the other things above, you should be fine. You'll also want to make sure that you designate a separate appBase for each Host in server.xml. John On Fri, 27 Jun 2003 12:14:54 +0100, Heather Buch [EMAIL PROTECTED] wrote: Hello, My NameVirtualHost fails when I try to set the JkMount directives. I am using httpd-2.0.43 jakarta-tomcat-4.1.12 (I am also using jakarta-struts-1.0.2, but this might not be so relevant to my problem) Here is my setup (I describe the problem at the end using the specific names that appear in the config file snippets below): 1. in /etc/hosts: # Do not remove the following line, or various programs # that require network functionality will fail. 127.0.0.1 localhost.localdomain localhost 127.0.0.1 oecon-stprg 127.0.0.1 oecon-admprg 12.38.84.60 heather 2. In httpd.conf: NameVirtualHost 127.0.0.1 Here is my catch all localhost virtual host: VirtualHost 127.0.0.1 ServerAdmin [EMAIL PROTECTED] ServerAlias localhost.localdomain localhost DocumentRoot /usr/local/bin/server-1.0/apache2/htdocs ServerName localhost ErrorLog logs/localhost_error.log CustomLog logs/localhost_access.log common /VirtualHost 3. in mod_jk.conf-local Here is the virtual host that I am trying to work with: VirtualHost 127.0.0.1 DocumentRoot /usr/local/bin/server-1.0/jakarta-tomcat-4.1.12/webapps/oecon-stprg/ ServerName oecon-stprg ServerAlias oecon-stprg ServerAdmin [EMAIL PROTECTED] # Deny direct access to WEB-INF and META-INF Location WEB-INF/* AllowOverride None deny from all /Location Location META-INF/* AllowOverride None deny from all /Location Directory /usr/local/bin/server-1.0/jakarta-tomcat- 4.1.12/webapps/oecon-stprg Options Indexes FollowSymLinks order allow,deny allow from all DirectoryIndex login.jsp /Directory JkMount /*.do ajp13 JkMount /servlet/*.jsp ajp13 JkMount /*.jsp ajp13 #ErrorLog logs/oecon-stprg_error.log #CustomLog logs/oecon-stprg_access.log common /VirtualHost -- The problem is - when I call up my virtual host url (http://oecon-stprg) and comment out the JkMount directives, apache gives me the proper document root (/usr/local/bin/server-1.0/jakarta-tomcat-4.1.12/webapps/oecon-stprg/) but of course then Tomcat can't handle jsp pages because there are no JkMount directives. When I uncomment the JkMounts and call up my virtual host, Apache does not send me to the DocumentRoot that I have defined in my oecon- stprg VirtualHost, but instead to the default tomcat webapp. In other words, the presence of this in my VirtualHost block: JkMount /*.do ajp13 JkMount /servlet/*.jsp ajp13 JkMount /*.jsp ajp13 causes Apache to deliver the files under here: /usr/local/bin/server-1.0/jakarta-tomcat-4.1.12/webapps/ROOT intead of the ones under here: /usr/local/bin/server-1.0/jakarta-tomcat-4.1.12/webapps/oecon-stprg I hope I have explained this well enough to get a reply. I have struggled for two days now. I read the document at http://www.galatea.com/flashguides/virtual-hosting.xml as I generally think the Galatea guides are very good. However, it describes setting up the JkMounts under a subdirectory, for example, JkMount /test ajp13 JkMount /test/* ajp13 and not at the root, as I would like to do. I want to be able to call up http://oecon-stprg/login.jsp not http://oecon-stprg/test/login.jsp but maybe I need that subdirectory? Thanks very much in advance, Heather Buch - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Win2003 IIS6 ISAPI filter problem
I'm using the latest isapi_redirector.dll (notice the 'or' at the end) with no problems. But I'm running 4.1.24. - Original Message - From: Eriksen, Kjell [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Friday, June 27, 2003 9:20 AM Subject: RE: Win2003 IIS6 ISAPI filter problem I have been experiencing a similar problem with the ISAPI from 4.1.18. The application works fine when I hit Tomcat's HTTP listener, but going through IIS I receive the error with ACCESS DENIED. I have tried everything imaginable with the permissions. Is there a new ISAPI filter for 2003? Has anyone tried the ISAPI from Tomcat 5.0? - Kjell Eriksen -Original Message- From: Nick Tatham [mailto:[EMAIL PROTECTED] Sent: Friday, June 27, 2003 9:14 AM To: Tomcat Users List Subject: Win2003 IIS6 ISAPI filter problem I have a Tomcat 3 application and have been running this successfully on several NT and 2000 machines under IIS using the isapi_redirect.dll filter (from Tomcat 3.3). I'm now trying to make it work under IIS 6 on Windows server 2003. Debug to the logfile shows it processing the HttpFilterProc OK but not proceeding to the HttpExtensionProc - I get a 404 error returned instead - it never gets as far as Tomcat. Does anyone know if this configuration works and what magic is needed to get past this problem? Thanks, Nick -- Nick Tatham Peramon Technology Limited +44 118 984 0506 www.peramon.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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Encoding - UTF-16 vs ISO-8859-1
I am using tomcat 4.1.24 and have several webapps running. When I added anoter webapp and I kept getting SEVERE: Parse Fatal Error at line 1 column 44: Content is not allowed in prolog org.xml.sax.SAXParseException: Content is not allowed in prolog. After a little trial and error and a couple of emails I saw on this list I tried changing my web.xml from ?xml version=1.0 encoding=ISO-8859-1? to ?xml version=1.0 encoding=UTF-16? and everything was fine. All of my other webapps are using ISO-8859-1. I guess what I am asking is there a way to know when I need to one or the other? Mike - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: tomcat stop does not kill all processes
Howdy, Well, how are you starting the registry? I'm using Rmi with an encapsulated rmiregistery but I don't know how to stop it. Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Encoding - UTF-16 vs ISO-8859-1
Howdy, What content was before ?xml ... ? Is there a specific (e.g. int'l) reason you're not using the conventional UTF-8 encoding in the first place? Yoav Shapira Millennium ChemInformatics -Original Message- From: Mike Hulse [mailto:[EMAIL PROTECTED] Sent: Friday, June 27, 2003 9:25 AM To: Tomcat Users List Subject: Encoding - UTF-16 vs ISO-8859-1 I am using tomcat 4.1.24 and have several webapps running. When I added anoter webapp and I kept getting SEVERE: Parse Fatal Error at line 1 column 44: Content is not allowed in prolog org.xml.sax.SAXParseException: Content is not allowed in prolog. After a little trial and error and a couple of emails I saw on this list I tried changing my web.xml from ?xml version=1.0 encoding=ISO-8859-1? to ?xml version=1.0 encoding=UTF-16? and everything was fine. All of my other webapps are using ISO-8859-1. I guess what I am asking is there a way to know when I need to one or the other? Mike - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem with new 4.1.24 install
Here might be some reasons why ... http://jakarta.apache.org/tomcat/faq/misc.html#compile -Tim Tom Cole wrote: I'm integrating Tomcat 4.1.24 with IIS in a Windows 2000 Server environment. 1. I downloaded and installed the distribution. 2. Downloaded the isapi_redirector.dll and placed it in /conf/ 3. I created the workers.properties and uriworkermap.properties file. 4. Uncommented the APJ13 section of the server.xml file 5. Created the required Windows Registry keys 6. Created a tomcat Virtual Directory in IIS with read, write execute permissions and pointed it to /conf/. 6. Added the ISAPI to IIS and it loaded fine. 7. Shutdown World Wide Web Publishing Service, started Tomcat and restarted WWWPS Service. Now if I open the url: http://127.0.0.1/examples I get the proper screen from Tomcat. If I select the JSP section and then an example (let's say numberguess) I get a Error 500 from Jasper saying it cannot compile. I get the same problem if I try to load using the 127.0.0.1:8080/examples url. Any help would be appreciated. The integration seemed to go fine, I just don't understand why it won't compile JSPs. Could it be a permissions thing? Tom E. Cole, Jr. General Manager, Lamatek, Inc. [EMAIL PROTECTED] http://www.lamatek.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Problem with new 4.1.24 install
Howdy, Does it (JSP compilation) work in tomcat stand-alone? Always try that first in order to help distinguish between connector/configuration problems and tomcat internal/configuration problems. Yoav Shapira Millennium ChemInformatics -Original Message- From: Tom Cole [mailto:[EMAIL PROTECTED] Sent: Friday, June 27, 2003 9:19 AM To: [EMAIL PROTECTED] Subject: Problem with new 4.1.24 install I'm integrating Tomcat 4.1.24 with IIS in a Windows 2000 Server environment. 1. I downloaded and installed the distribution. 2. Downloaded the isapi_redirector.dll and placed it in /conf/ 3. I created the workers.properties and uriworkermap.properties file. 4. Uncommented the APJ13 section of the server.xml file 5. Created the required Windows Registry keys 6. Created a tomcat Virtual Directory in IIS with read, write execute permissions and pointed it to /conf/. 6. Added the ISAPI to IIS and it loaded fine. 7. Shutdown World Wide Web Publishing Service, started Tomcat and restarted WWWPS Service. Now if I open the url: http://127.0.0.1/examples I get the proper screen from Tomcat. If I select the JSP section and then an example (let's say numberguess) I get a Error 500 from Jasper saying it cannot compile. I get the same problem if I try to load using the 127.0.0.1:8080/examples url. Any help would be appreciated. The integration seemed to go fine, I just don't understand why it won't compile JSPs. Could it be a permissions thing? Tom E. Cole, Jr. General Manager, Lamatek, Inc. [EMAIL PROTECTED] http://www.lamatek.com This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: multiuser setup: please help
I don't use this feature, but a couple of things come to mind: - does the user account that Tomcat uses have read permissions to those directories? - NOTHING under WEB-INF is ever directly accessible, both WEB-INF and META- INF are protected resources as far as tomcat is concerned. I'm not sure what you're expecting with the URLs you posted. The test to see if it is working is to put index.html in ~johndoe/public_html and then try to access it by http://localhost:8080/~johndoe or http://localhost:8080/~johndoe/index.html (or even index.jsp). After that, anything else you have to do would have to follow the standard app deployment rules, such as having servlets defined in web.xml or using the invoker, defining welcome pages in web.xml, etc. HTH John On Fri, 27 Jun 2003 00:24:40 -0230 (NDT), Neil Zanella [EMAIL PROTECTED] wrote: Thank you for your suggestion. I am using Tomcat 4.0.1 and I realize that the same applies to Tomcat 4.0: http://jakarta.apache.org/tomcat/tomcat-4.0- doc/config/defaultcontext.html I have read the User Web Applications section and done as described: I added the XML entity and attributes given by: Listener className=org.apache.catalina.startup.UserConfig directoryName=public_html userClass=org.apache.catalina.startup.PasswdUserDatabase/ inside the Host entity in the server.xml file. I added these at the very end of the entity. I also created user readable files: ~johndoe/public_html/contextroot/WEB-INF/web.xml ~johndoe/public_html/contextroot/WEB-INF/classes ~johndoe/public_html/contextroot/WEB-INF/classes/JohnDoe.class and also tried ~johndoe/public_html/webapps/contextroot/WEB-INF/web.xml ~johndoe/public_html/webapps/contextroot/WEB-INF/classes ~johndoe/public_html/webapps/contextroot/WEB-INF/classes/JohnDoe.class as well as: ~johndoe/public_html/WEB-INF/web.xml ~johndoe/public_html/WEB-INF/classes ~johndoe/public_html/WEB-INF/classes/JohnDoe.class but I get a 404 HTTP response (file not found) each time I point my browser to: http://localhost:8080/~johndoe/contextroot/webappjohndoe http://localhost:8080/~johndoe/webappjohndoe Furthermore, each time I have a directory called ~johndoe/public_html/WEB-INF and restart the server, I get a 404 when I access: http://localhost:8080/~johndoe whereas in the other cases I get a directory listing. The documentation states: Each user web application will be deployed with characteristics established by any DefaultContext element you have configured for this Host. Does this have anything to do with it? I am puzzled by why my servlet is not displaying. Once again, thank you for your help!!! Neil On Thu, 26 Jun 2003, John Turner wrote: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/host.html The section marked User Web Applications should be what you want. John On Thu, 26 Jun 2003 09:17:33 -0230 (NDT), Neil Zanella [EMAIL PROTECTED] wrote: Hello, I have successfully setup Tomcat but now I want the following: Suppose some Linux based system has a dynamic and constantly changing number of users ranging in the thousands. I would like to set up tomcat so that: Each user gets a context root in a directory such as: http://localhost:8080/~johndoe/contextroot/ This happens in such a way that when a request to a subdirectory that looks like the one above is issued, Tomcat automatically knows how to handle it. Is this possible? This would be ideal. I don't see why it shouldn't be possible. If this is impossible, then consider it to be a missing feature from tomcat. I almost feel it should be documented somewhere if available, otherwise, if not available, it should be implemented. I guess I could define a path mapping of the form: http://localhost:8080/~+/contextroot/ I actually tried this but it did not work: I used the path mapping inside the webapps/ROOT/WEB-INF/web.xml file: ?xml version=1.0 encoding=ISO-8859-1? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd; web-app display-namewelcome/display-name descriptionThese examples are from the created contextroot subdirectory of webapps./description servlet servlet-namewelcome/servlet-name descriptionThis web application welcomes you./description servlet-classWelcomeServlet/servlet-class /servlet servlet-mapping servlet-namewelcome/servlet-name url-patternhttp://localhost:8080/~*/contextroot/*/url-pattern /servlet-mapping /web-app I thought I could have the URL execute a servlet, that would execute then execute a servlet from the users' directory. Sound complicated? Perhaps there is an easier way??? Suggestions very welcome!!! Neil - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional
RE: Win2003 IIS6 ISAPI filter problem
Tom, Where did you get that redirectOR from - I can't find it on the download site? Thanks, Nick -- Nick Tatham Peramon Technology Limited +44 118 984 0506 www.peramon.com -Original Message- From: Tom Cole [mailto:[EMAIL PROTECTED] Sent: 27 June 2003 14:23 To: Tomcat Users List Subject: Re: Win2003 IIS6 ISAPI filter problem I'm using the latest isapi_redirector.dll (notice the 'or' at the end) with no problems. But I'm running 4.1.24. - Original Message - From: Eriksen, Kjell [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Friday, June 27, 2003 9:20 AM Subject: RE: Win2003 IIS6 ISAPI filter problem I have been experiencing a similar problem with the ISAPI from 4.1.18. The application works fine when I hit Tomcat's HTTP listener, but going through IIS I receive the error with ACCESS DENIED. I have tried everything imaginable with the permissions. Is there a new ISAPI filter for 2003? Has anyone tried the ISAPI from Tomcat 5.0? - Kjell Eriksen -Original Message- From: Nick Tatham [mailto:[EMAIL PROTECTED] Sent: Friday, June 27, 2003 9:14 AM To: Tomcat Users List Subject: Win2003 IIS6 ISAPI filter problem I have a Tomcat 3 application and have been running this successfully on several NT and 2000 machines under IIS using the isapi_redirect.dll filter (from Tomcat 3.3). I'm now trying to make it work under IIS 6 on Windows server 2003. Debug to the logfile shows it processing the HttpFilterProc OK but not proceeding to the HttpExtensionProc - I get a 404 error returned instead - it never gets as far as Tomcat. Does anyone know if this configuration works and what magic is needed to get past this problem? Thanks, Nick -- Nick Tatham Peramon Technology Limited +44 118 984 0506 www.peramon.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] - 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: Win2003 IIS6 ISAPI filter problem
On win2003 ? -Original Message- From: Tom Cole [mailto:[EMAIL PROTECTED] Sent: 27. júní 2003 13:23 To: Tomcat Users List Subject: Re: Win2003 IIS6 ISAPI filter problem I'm using the latest isapi_redirector.dll (notice the 'or' at the end) with no problems. But I'm running 4.1.24. - Original Message - From: Eriksen, Kjell [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Friday, June 27, 2003 9:20 AM Subject: RE: Win2003 IIS6 ISAPI filter problem I have been experiencing a similar problem with the ISAPI from 4.1.18. The application works fine when I hit Tomcat's HTTP listener, but going through IIS I receive the error with ACCESS DENIED. I have tried everything imaginable with the permissions. Is there a new ISAPI filter for 2003? Has anyone tried the ISAPI from Tomcat 5.0? - Kjell Eriksen -Original Message- From: Nick Tatham [mailto:[EMAIL PROTECTED] Sent: Friday, June 27, 2003 9:14 AM To: Tomcat Users List Subject: Win2003 IIS6 ISAPI filter problem I have a Tomcat 3 application and have been running this successfully on several NT and 2000 machines under IIS using the isapi_redirect.dll filter (from Tomcat 3.3). I'm now trying to make it work under IIS 6 on Windows server 2003. Debug to the logfile shows it processing the HttpFilterProc OK but not proceeding to the HttpExtensionProc - I get a 404 error returned instead - it never gets as far as Tomcat. Does anyone know if this configuration works and what magic is needed to get past this problem? Thanks, Nick -- Nick Tatham Peramon Technology Limited +44 118 984 0506 www.peramon.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] - 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: PrintServiceLookup And Tomcat
Hi Yoav, You gave me the answer. When I looked at my service's log on properties, it was running under the local system account. There's a radio button that allows you to run under the local system account or another one of your own choosing. When I switched to another account and gave it my network account, everything worked perfectly. The answer when I deploy will be to ask my sys admin to define a user account just for this application, with a username and password that won't expire. S/he'll have to assign the printers I'm interested in to that user account, but once that's done I think I'm golden. Thank you again for your advice. Your suggestion was the key. Sometimes I just need somebody to talk these things through with. Most appreciated. Sincerely, MOD --- Shapira, Yoav [EMAIL PROTECTED] wrote: Howdy, One has to think it has something to do with the service security model in windows. I used to know a lot about this, but not for current windows platforms. Maybe someone on the list does, maybe someone who wrote the javax.print.spi at Sun does. Yoav Shapira Millennium ChemInformatics -Original Message- From: Michael Duffy [mailto:[EMAIL PROTECTED] Sent: Friday, June 27, 2003 8:45 AM To: Tomcat Users List Subject: RE: PrintServiceLookup And Tomcat Hi Yoav, Brilliant advice, as usual. When I shut down the Tomcat service and run it using startup.bat, it finds both printers beautifully and puts the names in the drop down. Now - what do I have to change so my service will behave as nicely? If you know, I'd appreciate hearing it. If not, I'll see if I can dig up a local Windows maven. Thanks again for watching this list. Sincerely, MOD --- Shapira, Yoav [EMAIL PROTECTED] wrote: Howdy, Can you try running tomcat from the command-line, without a security manager, not as a service, and see what happens? Yoav Shapira Millennium ChemInformatics -Original Message- From: Michael Duffy [mailto:[EMAIL PROTECTED] Sent: Friday, June 27, 2003 7:24 AM To: Tomcat Users List Subject: Re: PrintServiceLookup And Tomcat Hi Jason, Yes, it's a Windows service and they are network printers. Your point about changing the user under which Tomcat is running is interesting, but I'm not sure I understand what I should do. Can you give more details or point me to a reference? The logs are all clean - no exceptions, no problems, just no print services found. I did add a check to the code using SecurityManager checkPrintJobAccess(). This throws a SecurityException if the servlet is not authorized to queue print jobs. No exception, but no print services, either. Any advice would be most welcome. I'll keep digging with Google. Thanks - MOD --- Jason Bainbridge [EMAIL PROTECTED] wrote: On Fri, 27 Jun 2003 04:45, Michael Duffy wrote: I've got a Web app running on Tomcat 4.1.24 and JDK 1.4.1 on a Windows 2000 desktop. I'm generating a PDF that I'd like to be able to send to a printer attached to the machine on which Tomcat is running. How are you running Tomcat? As a windows service? If you are you will need to change the user the service is running under as I am assuming they are network printers? Other than that I'm not too sure, have you tried looking in the Tomcat logs? Regards, -- Jason Bainbridge http://jblinux.org - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Encoding - UTF-16 vs ISO-8859-1
There is nothing before ?xml.? it starts on the first line in the first column and that's all that is on that line. I was using ISO-8859-1 because that's what was in all of the tomcat examples. Mike - Original Message - From: Shapira, Yoav [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Friday, June 27, 2003 9:27 AM Subject: RE: Encoding - UTF-16 vs ISO-8859-1 Howdy, What content was before ?xml ... ? Is there a specific (e.g. int'l) reason you're not using the conventional UTF-8 encoding in the first place? Yoav Shapira Millennium ChemInformatics -Original Message- From: Mike Hulse [mailto:[EMAIL PROTECTED] Sent: Friday, June 27, 2003 9:25 AM To: Tomcat Users List Subject: Encoding - UTF-16 vs ISO-8859-1 I am using tomcat 4.1.24 and have several webapps running. When I added anoter webapp and I kept getting SEVERE: Parse Fatal Error at line 1 column 44: Content is not allowed in prolog org.xml.sax.SAXParseException: Content is not allowed in prolog. After a little trial and error and a couple of emails I saw on this list I tried changing my web.xml from ?xml version=1.0 encoding=ISO-8859-1? to ?xml version=1.0 encoding=UTF-16? and everything was fine. All of my other webapps are using ISO-8859-1. I guess what I am asking is there a way to know when I need to one or the other? Mike - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. 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]
RE: Win2003 IIS6 ISAPI filter problem
To answer my own question, I have now found the -or version: isapi_redirector.dll in /builds/jakarta-tomcat-connectors/jk/release/v1.2.0/bin/win32 I have upgraded to this version and still get the same problem on Win2003. I did earlier have access problems but fixed those in IIS6 by going to Properties on DefaultAppPool and changing the pre-defined security account to LocalSystem on the Identity tab - this gives the redirector more privs and probably makes IIS less secure but I got further with this setting than without. So I'm still stuck on 2003. Regards, Nick -- Nick Tatham Peramon Technology Limited +44 118 984 0506 www.peramon.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Win2003 IIS6 ISAPI filter problem
On IIS 6? Is there light in this darkness? Is it possible get Tomcat to work with IIS 6 (win 2003)? -- Original Message -- Reply-To: Tomcat Users List [EMAIL PROTECTED] Subject: RE: Win2003 IIS6 ISAPI filter problem Date: Fri, 27 Jun 2003 13:39:55 - From: Reynir Hübner [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] On win2003 ? -Original Message- From: Tom Cole [mailto:[EMAIL PROTECTED] Sent: 27. júní 2003 13:23 To: Tomcat Users List Subject: Re: Win2003 IIS6 ISAPI filter problem I'm using the latest isapi_redirector.dll (notice the 'or' at the end) with no problems. But I'm running 4.1.24. - Original Message - From: Eriksen, Kjell [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Friday, June 27, 2003 9:20 AM Subject: RE: Win2003 IIS6 ISAPI filter problem I have been experiencing a similar problem with the ISAPI from 4.1.18. The application works fine when I hit Tomcat's HTTP listener, but going through IIS I receive the error with ACCESS DENIED. I have tried everything imaginable with the permissions. Is there a new ISAPI filter for 2003? Has anyone tried the ISAPI from Tomcat 5.0? - Kjell Eriksen -Original Message- From: Nick Tatham [mailto:[EMAIL PROTECTED] Sent: Friday, June 27, 2003 9:14 AM To: Tomcat Users List Subject: Win2003 IIS6 ISAPI filter problem I have a Tomcat 3 application and have been running this successfully on several NT and 2000 machines under IIS using the isapi_redirect.dll filter (from Tomcat 3.3). I'm now trying to make it work under IIS 6 on Windows server 2003. Debug to the logfile shows it processing the HttpFilterProc OK but not proceeding to the HttpExtensionProc - I get a 404 error returned instead - it never gets as far as Tomcat. Does anyone know if this configuration works and what magic is needed to get past this problem? Thanks, Nick -- Nick Tatham Peramon Technology Limited +44 118 984 0506 www.peramon.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] - 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: Win2003 IIS6 ISAPI filter problem
Possible? Sure. Probable soon? Maybe. Please understand that the pool of people who are capable of understanding and developing a connector and have access to Win 2003 Server is decidedly small. When you consider that the number of overall Win 2003 Server installations is very tiny as well, it can't be surprising that there isn't a connector ready to go right away. If you need a connector for IIS 6 that fast, and it requires more than just tweaking settings, my advice is to get on the tomcat-dev list and make your case there, and convince someone who can do the work to make it a priority. John On Fri, 27 Jun 2003 16:04:40 +0200, [EMAIL PROTECTED] wrote: On IIS 6? Is there light in this darkness? Is it possible get Tomcat to work with IIS 6 (win 2003)? -- Original Message -- Reply-To: Tomcat Users List [EMAIL PROTECTED] Subject: RE: Win2003 IIS6 ISAPI filter problem Date: Fri, 27 Jun 2003 13:39:55 - From: Reynir Hübner [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] On win2003 ? -Original Message- From: Tom Cole [mailto:[EMAIL PROTECTED] Sent: 27. júní 2003 13:23 To: Tomcat Users List Subject: Re: Win2003 IIS6 ISAPI filter problem I'm using the latest isapi_redirector.dll (notice the 'or' at the end) with no problems. But I'm running 4.1.24. - Original Message - From: Eriksen, Kjell [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Friday, June 27, 2003 9:20 AM Subject: RE: Win2003 IIS6 ISAPI filter problem I have been experiencing a similar problem with the ISAPI from 4.1.18. The application works fine when I hit Tomcat's HTTP listener, but going through IIS I receive the error with ACCESS DENIED. I have tried everything imaginable with the permissions. Is there a new ISAPI filter for 2003? Has anyone tried the ISAPI from Tomcat 5.0? - Kjell Eriksen -Original Message- From: Nick Tatham [mailto:[EMAIL PROTECTED] Sent: Friday, June 27, 2003 9:14 AM To: Tomcat Users List Subject: Win2003 IIS6 ISAPI filter problem I have a Tomcat 3 application and have been running this successfully on several NT and 2000 machines under IIS using the isapi_redirect.dll filter (from Tomcat 3.3). I'm now trying to make it work under IIS 6 on Windows server 2003. Debug to the logfile shows it processing the HttpFilterProc OK but not proceeding to the HttpExtensionProc - I get a 404 error returned instead - it never gets as far as Tomcat. Does anyone know if this configuration works and what magic is needed to get past this problem? Thanks, Nick -- Nick Tatham Peramon Technology Limited +44 118 984 0506 www.peramon.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] - 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] -- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: PrintServiceLookup And Tomcat
Howdy, Glad to help. That was a refreshing departure from the usual my servlet doesn't work (and I didn't read the release notes or search the archives or the FAQ or anything before posting yet another invoker-servlet-related question) issue. ;) Yoav Shapira Millennium ChemInformatics -Original Message- From: Michael Duffy [mailto:[EMAIL PROTECTED] Sent: Friday, June 27, 2003 9:48 AM To: Tomcat Users List Subject: RE: PrintServiceLookup And Tomcat Hi Yoav, You gave me the answer. When I looked at my service's log on properties, it was running under the local system account. There's a radio button that allows you to run under the local system account or another one of your own choosing. When I switched to another account and gave it my network account, everything worked perfectly. The answer when I deploy will be to ask my sys admin to define a user account just for this application, with a username and password that won't expire. S/he'll have to assign the printers I'm interested in to that user account, but once that's done I think I'm golden. Thank you again for your advice. Your suggestion was the key. Sometimes I just need somebody to talk these things through with. Most appreciated. Sincerely, MOD --- Shapira, Yoav [EMAIL PROTECTED] wrote: Howdy, One has to think it has something to do with the service security model in windows. I used to know a lot about this, but not for current windows platforms. Maybe someone on the list does, maybe someone who wrote the javax.print.spi at Sun does. Yoav Shapira Millennium ChemInformatics -Original Message- From: Michael Duffy [mailto:[EMAIL PROTECTED] Sent: Friday, June 27, 2003 8:45 AM To: Tomcat Users List Subject: RE: PrintServiceLookup And Tomcat Hi Yoav, Brilliant advice, as usual. When I shut down the Tomcat service and run it using startup.bat, it finds both printers beautifully and puts the names in the drop down. Now - what do I have to change so my service will behave as nicely? If you know, I'd appreciate hearing it. If not, I'll see if I can dig up a local Windows maven. Thanks again for watching this list. Sincerely, MOD --- Shapira, Yoav [EMAIL PROTECTED] wrote: Howdy, Can you try running tomcat from the command-line, without a security manager, not as a service, and see what happens? Yoav Shapira Millennium ChemInformatics -Original Message- From: Michael Duffy [mailto:[EMAIL PROTECTED] Sent: Friday, June 27, 2003 7:24 AM To: Tomcat Users List Subject: Re: PrintServiceLookup And Tomcat Hi Jason, Yes, it's a Windows service and they are network printers. Your point about changing the user under which Tomcat is running is interesting, but I'm not sure I understand what I should do. Can you give more details or point me to a reference? The logs are all clean - no exceptions, no problems, just no print services found. I did add a check to the code using SecurityManager checkPrintJobAccess(). This throws a SecurityException if the servlet is not authorized to queue print jobs. No exception, but no print services, either. Any advice would be most welcome. I'll keep digging with Google. Thanks - MOD --- Jason Bainbridge [EMAIL PROTECTED] wrote: On Fri, 27 Jun 2003 04:45, Michael Duffy wrote: I've got a Web app running on Tomcat 4.1.24 and JDK 1.4.1 on a Windows 2000 desktop. I'm generating a PDF that I'd like to be able to send to a printer attached to the machine on which Tomcat is running. How are you running Tomcat? As a windows service? If you are you will need to change the user the service is running under as I am assuming they are network printers? Other than that I'm not too sure, have you tried looking in the Tomcat logs? Regards, -- Jason Bainbridge http://jblinux.org - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you.
Unscubscribe while on holidays
Hi all Can anybody remind me how to unsubscribe while Im away on holidays to avoid you getting me Out of Office Tanks Donie ** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the sender. This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. ** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Unscubscribe while on holidays
Howdy, As the footer of each list message says: - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] That's nice, courteous of you. Enjoy your holidays ;) Yoav Shapira Millennium ChemInformatics -Original Message- From: Donie Kelly [mailto:[EMAIL PROTECTED] Sent: Friday, June 27, 2003 10:01 AM To: Tomcat Users List (E-mail) Subject: Unscubscribe while on holidays Hi all Can anybody remind me how to unsubscribe while I'm away on holidays to avoid you getting me Out of Office Tanks Donie ** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the sender. This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. ** This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Unscubscribe while on holidays
Ok, I'll admit it. I'm blind :) Thanks -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: 27 June 2003 15:14 To: Tomcat Users List Subject: RE: Unscubscribe while on holidays Howdy, As the footer of each list message says: - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] That's nice, courteous of you. Enjoy your holidays ;) Yoav Shapira Millennium ChemInformatics -Original Message- From: Donie Kelly [mailto:[EMAIL PROTECTED] Sent: Friday, June 27, 2003 10:01 AM To: Tomcat Users List (E-mail) Subject: Unscubscribe while on holidays Hi all Can anybody remind me how to unsubscribe while I'm away on holidays to avoid you getting me Out of Office Tanks Donie ** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the sender. This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. ** This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the sender. This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. ** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Maintenance of users and user_roles
Being greatful for help received on how to use an oracle dbms for authentication. The next obvious thing to do is to make a simple servlet to maintain such a simple database. But before I do so, maybe someone has something like it laying around? -- Jon Haugsand, [EMAIL PROTECTED] http://www.norges-bank.no - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Unscubscribe while on holidays
Enjoy your holiday! John On Fri, 27 Jun 2003 15:01:15 +0100, Donie Kelly [EMAIL PROTECTED] wrote: Hi all Can anybody remind me how to unsubscribe while I'm away on holidays to avoid you getting me Out of Office Tanks Donie ** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the sender. This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. ** -- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tomcat stop does not kill all processes
I start it with LocateRegistery.createRegistery(1099) and Registery interface and LocateRegistery haven't got any close or destroy and any method to stop the RmiRegistery ! Have you got an idea about it ? Thanks a lot Mourad Shapira, Yoav wrote: Howdy, Well, how are you starting the registry? I'm using Rmi with an encapsulated rmiregistery but I don't know how to stop it. Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. 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]
Tomcat Classloaders and loading properties files
Hello, So I'm writing a few library classes that I hope I'll be able to use over and over again. Because goodness knows, someone needs to invent the wheel again. ;) Anyways.. I want my classes to use properties files for configuration, and what I really want is something like: 1. Place the library.jar file in WEB-INF/lib 2. The classes will load the default properties file (included with the jar) but if you want to override the values, you can provide your own properties file in WEB-INF/classes I'm expecting that when I go to load the properties, it will look in WEB-INF/classes *first*, from this snip from the CLASSLOADER doc Therefore, from the perspective of a web application, class or resource loading looks in the following repositories, in this order: /WEB-INF/classes of your web application /WEB-INF/lib/*.jar of your web application Ok so far? So now.. the *code* to make that work? getClass().getClassLoader().getResourceAsStream(property.filename.starti ng.with.slash) I've been using just getClass().getResourceAsStream(), but I think to get the Tomcat-guaranteed behaviour, I need to use the classloader. And I'm thinking this will still work for non web-app uses of library.jar Does all that seem accurate? I'm just thinking out loud. ;) --- Mike Curwen Intermediate Programmer www.gb-im.com --- ___ __ __ / ___| | __ ) |_ _| | \/ | | | _ | _ \ _ | | | |\/| | | |_| | | |_) | |_| | | | | | | \| |/ |___| |_| |_| - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Hot deploy does not work?
Running tomcat 4.1 installed from RPM things look fine, but for some reason or another I cannot get hot (re)deployment to work. Copying a war file into /var/tomcat4/webapps makes it jus lay there. I mean this worked yesterday :-( but I cannot imagine what I have done differently today except changing server.xml to use jdbc for authentication. I see that there is the following code in server.xml: Host name=localhost debug=0 appBase=webapps unpackWARs=true autoDeploy=true Is this what it should look like? Other points to look into? -- Jon Haugsand, [EMAIL PROTECTED] http://www.norges-bank.no - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat Classloaders and loading properties files
Howdy, I'm expecting that when I go to load the properties, it will look in WEB-INF/classes *first*, from this snip from the CLASSLOADER doc Therefore, from the perspective of a web application, class or resource loading looks in the following repositories, in this order: /WEB-INF/classes of your web application /WEB-INF/lib/*.jar of your web application Ok so far? Yup. getClass().getClassLoader().getResourceAsStream(property.filename.start i ng.with.slash) I've been using just getClass().getResourceAsStream(), but I think to get the Tomcat-guaranteed behaviour, I need to use the classloader. And I'm thinking this will still work for non web-app uses of library.jar Does all that seem accurate? I'm just thinking out loud. ;) getClass().getResource() just delegated to the classloader. So you're fine with just getClass().getResource() (or getResourceAsStream). Looks good so far... Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Redirector problem? Apache 2.0.43 - Tomcat 4.1
Hi, I'm facing the following problem, I'm trying to get Tomcat and Apache working together, everything's fine since I've just set up the server.xml and httpd.conf and included the mod_jk.conf automcatic file in my httpd.conf. But when I try to access http://server/examples I get the 404 error and in the apache log it says it can't access /usr/local/apache2/htdocs/examples. I realize it isn't redirecting the context to tomcat, can anybody help me? thanks... - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Hot deploy does not work?
add reloadable=true in with the Context parameters Jon Haugsand [EMAIL PROTECTED] 27/06/2003 15:43 Please respond to Tomcat Users List To: [EMAIL PROTECTED] cc: Subject:Hot deploy does not work? Running tomcat 4.1 installed from RPM things look fine, but for some reason or another I cannot get hot (re)deployment to work. Copying a war file into /var/tomcat4/webapps makes it jus lay there. I mean this worked yesterday :-( but I cannot imagine what I have done differently today except changing server.xml to use jdbc for authentication. I see that there is the following code in server.xml: Host name=localhost debug=0 appBase=webapps unpackWARs=true autoDeploy=true Is this what it should look like? Other points to look into? -- Jon Haugsand, [EMAIL PROTECTED] http://www.norges-bank.no - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: tomcat stop does not kill all processes
Howdy, I start it with LocateRegistery.createRegistery(1099) and Registery interface and LocateRegistery haven't got any close or destroy and any method to stop the RmiRegistery ! Have you got an idea about it ? Yeah, that's what I figured. They should've included a shutdown() method in that Registry interface. One thing that might work, though it's ugly, is to look for the implementing class, which is probably sun.rmi.registry.RegistryImpl, and see if it has a shutdown() or similar method. Are you sure it's RMI that's causing this? You are not starting non-daemon threads elsewhere? I have too much faith in the Sun folks writing this code to believe that's start non-daemon threads and not give a shutdown mechanism. Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Redirector problem? Apache 2.0.43 - Tomcat 4.1
What is the VirtualHost container for server and what is the Host entity in server.xml for server? John On Fri, 27 Jun 2003 11:53:59 -0300, Martín Mauri [EMAIL PROTECTED] wrote: Hi, I'm facing the following problem, I'm trying to get Tomcat and Apache working together, everything's fine since I've just set up the server.xml and httpd.conf and included the mod_jk.conf automcatic file in my httpd.conf. But when I try to access http://server/examples I get the 404 error and in the apache log it says it can't access /usr/local/apache2/htdocs/examples. I realize it isn't redirecting the context to tomcat, can anybody help me? thanks... - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Redirector problem? Apache 2.0.43 - Tomcat 4.1
ok, in both of them is images I've setup the following in mod_jk.conf: VirtualHost images ServerName images ... and the following in server.xml: Host name=images debug=0 appBase=webapps unpackWARs=true autoDeploy=true Listener className=org.apache.ajp.tomcat4.config.ApacheConfig append=true forwardAll=false modJK=/usr/local/apache2/modules/mod_jk.so / ... any idea? thanks.. - Original Message - From: John Turner [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Friday, June 27, 2003 11:57 AM Subject: Re: Redirector problem? Apache 2.0.43 - Tomcat 4.1 What is the VirtualHost container for server and what is the Host entity in server.xml for server? John On Fri, 27 Jun 2003 11:53:59 -0300, Martín Mauri [EMAIL PROTECTED] wrote: Hi, I'm facing the following problem, I'm trying to get Tomcat and Apache working together, everything's fine since I've just set up the server.xml and httpd.conf and included the mod_jk.conf automcatic file in my httpd.conf. But when I try to access http://server/examples I get the 404 error and in the apache log it says it can't access /usr/local/apache2/htdocs/examples. I realize it isn't redirecting the context to tomcat, can anybody help me? thanks... - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/ - 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: Redirector problem? Apache 2.0.43 - Tomcat 4.1
Is there more than one name-based virtual host? If so, do the following: - enable NameVirtualHost in httpd.conf, and set it to * - change your VirtualHost images to VirtualHost * I'm assuming you have JkMount directives inside your VirtualHost container? Note that if you have more than one virtual host, you'll want to edit mod_jk.conf manually, and also remember not toleave your changes in CATALINA_HOME/conf/auto, as your changes will be overwritten every time Tomcat starts if you use that mod_jk.conf file. I typically let Tomcat generate mod_jk.conf for me, then I copy it to APACHE_HOME/conf, and modify to suit my needs. The auto-config option for Tomcat isn't very robust, for all but the simplest configurations you will want to create mod_jk.conf from scratch or modify the one that Tomcat generates. It does make things a little easier, though, because it automatically creates the directory protection directives for things like WEB-INF and other housekeeping stuff. John On Fri, 27 Jun 2003 12:10:28 -0300, Martín Mauri [EMAIL PROTECTED] wrote: ok, in both of them is images I've setup the following in mod_jk.conf: VirtualHost images ServerName images ... and the following in server.xml: Host name=images debug=0 appBase=webapps unpackWARs=true autoDeploy=true Listener className=org.apache.ajp.tomcat4.config.ApacheConfig append=true forwardAll=false modJK=/usr/local/apache2/modules/mod_jk.so / ... any idea? thanks.. - Original Message - From: John Turner [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Friday, June 27, 2003 11:57 AM Subject: Re: Redirector problem? Apache 2.0.43 - Tomcat 4.1 What is the VirtualHost container for server and what is the Host entity in server.xml for server? John On Fri, 27 Jun 2003 11:53:59 -0300, Martín Mauri [EMAIL PROTECTED] wrote: Hi, I'm facing the following problem, I'm trying to get Tomcat and Apache working together, everything's fine since I've just set up the server.xml and httpd.conf and included the mod_jk.conf automcatic file in my httpd.conf. But when I try to access http://server/examples I get the 404 error and in the apache log it says it can't access /usr/local/apache2/htdocs/examples. I realize it isn't redirecting the context to tomcat, can anybody help me? thanks... - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/ - 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] -- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Hot deploy does not work?
* ben jessel add reloadable=true in with the Context parameters Did so: Context path=/tilgang docBase=tilgang debug=99 reloadable=true / /bin/ls -l /var/tomcat4/tilgang/ total 741 -rw-r--r--1 nbulo1 tomcat4754228 Jun 27 17:23 tilgang.war But no deployment :-( -- Jon Haugsand, [EMAIL PROTECTED] http://www.norges-bank.no - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Redirector problem? Apache 2.0.43 - Tomcat 4.1
no, the thing's that I've just got only one virtual host called images that's auto-generated in mod_jk.conf and as that file is included in httpd.conf I assume I don't have to modify it, or is it better than I replace it with a * anyway?? and yes, I have all the jkMount directives inside the VirtualHost container... any suggestion? thanks ! - Original Message - From: John Turner [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Friday, June 27, 2003 12:15 PM Subject: Re: Redirector problem? Apache 2.0.43 - Tomcat 4.1 Is there more than one name-based virtual host? If so, do the following: - enable NameVirtualHost in httpd.conf, and set it to * - change your VirtualHost images to VirtualHost * I'm assuming you have JkMount directives inside your VirtualHost container? Note that if you have more than one virtual host, you'll want to edit mod_jk.conf manually, and also remember not toleave your changes in CATALINA_HOME/conf/auto, as your changes will be overwritten every time Tomcat starts if you use that mod_jk.conf file. I typically let Tomcat generate mod_jk.conf for me, then I copy it to APACHE_HOME/conf, and modify to suit my needs. The auto-config option for Tomcat isn't very robust, for all but the simplest configurations you will want to create mod_jk.conf from scratch or modify the one that Tomcat generates. It does make things a little easier, though, because it automatically creates the directory protection directives for things like WEB-INF and other housekeeping stuff. John On Fri, 27 Jun 2003 12:10:28 -0300, Martín Mauri [EMAIL PROTECTED] wrote: ok, in both of them is images I've setup the following in mod_jk.conf: VirtualHost images ServerName images ... and the following in server.xml: Host name=images debug=0 appBase=webapps unpackWARs=true autoDeploy=true Listener className=org.apache.ajp.tomcat4.config.ApacheConfig append=true forwardAll=false modJK=/usr/local/apache2/modules/mod_jk.so / ... any idea? thanks.. - Original Message - From: John Turner [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Friday, June 27, 2003 11:57 AM Subject: Re: Redirector problem? Apache 2.0.43 - Tomcat 4.1 What is the VirtualHost container for server and what is the Host entity in server.xml for server? John On Fri, 27 Jun 2003 11:53:59 -0300, Martín Mauri [EMAIL PROTECTED] wrote: Hi, I'm facing the following problem, I'm trying to get Tomcat and Apache working together, everything's fine since I've just set up the server.xml and httpd.conf and included the mod_jk.conf automcatic file in my httpd.conf. But when I try to access http://server/examples I get the 404 error and in the apache log it says it can't access /usr/local/apache2/htdocs/examples. I realize it isn't redirecting the context to tomcat, can anybody help me? thanks... - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/ - 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] -- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/ - 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: Encoding - UTF-16 vs ISO-8859-1
In Java 1.3, the default encoding is set to ISO-8859-1 which includes all the German special characters In Java 1.4, the default encoding is set to ASCII which converts all German special characters to '?' -Original Message- From: Mike Hulse [mailto:[EMAIL PROTECTED] Sent: Friday, June 27, 2003 3:25 PM To: Tomcat Users List Subject: Encoding - UTF-16 vs ISO-8859-1 I am using tomcat 4.1.24 and have several webapps running. When I added anoter webapp and I kept getting SEVERE: Parse Fatal Error at line 1 column 44: Content is not allowed in prolog org.xml.sax.SAXParseException: Content is not allowed in prolog. After a little trial and error and a couple of emails I saw on this list I tried changing my web.xml from ?xml version=1.0 encoding=ISO-8859-1? to ?xml version=1.0 encoding=UTF-16? and everything was fine. All of my other webapps are using ISO-8859-1. I guess what I am asking is there a way to know when I need to one or the other? Mike - 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: Redirector problem? Apache 2.0.43 - Tomcat 4.1
So what did you do then: change localhost in server.xml to images, and restart Tomcat, then restart Apache? Or did you add images to the already existing localhost in server.xml? If the latter, you will need to do what I described in my previous message. If you have localhost and images you have TWO virtual hosts, not one. Localhost counts as one. John On Fri, 27 Jun 2003 12:33:41 -0300, Martín Mauri [EMAIL PROTECTED] wrote: no, the thing's that I've just got only one virtual host called images that's auto-generated in mod_jk.conf and as that file is included in httpd.conf I assume I don't have to modify it, or is it better than I replace it with a * anyway?? and yes, I have all the jkMount directives inside the VirtualHost container... any suggestion? thanks ! - Original Message - From: John Turner [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Friday, June 27, 2003 12:15 PM Subject: Re: Redirector problem? Apache 2.0.43 - Tomcat 4.1 Is there more than one name-based virtual host? If so, do the following: - enable NameVirtualHost in httpd.conf, and set it to * - change your VirtualHost images to VirtualHost * I'm assuming you have JkMount directives inside your VirtualHost container? Note that if you have more than one virtual host, you'll want to edit mod_jk.conf manually, and also remember not toleave your changes in CATALINA_HOME/conf/auto, as your changes will be overwritten every time Tomcat starts if you use that mod_jk.conf file. I typically let Tomcat generate mod_jk.conf for me, then I copy it to APACHE_HOME/conf, and modify to suit my needs. The auto-config option for Tomcat isn't very robust, for all but the simplest configurations you will want to create mod_jk.conf from scratch or modify the one that Tomcat generates. It does make things a little easier, though, because it automatically creates the directory protection directives for things like WEB-INF and other housekeeping stuff. John On Fri, 27 Jun 2003 12:10:28 -0300, Martín Mauri [EMAIL PROTECTED] wrote: ok, in both of them is images I've setup the following in mod_jk.conf: VirtualHost images ServerName images ... and the following in server.xml: Host name=images debug=0 appBase=webapps unpackWARs=true autoDeploy=true Listener className=org.apache.ajp.tomcat4.config.ApacheConfig append=true forwardAll=false modJK=/usr/local/apache2/modules/mod_jk.so / ... any idea? thanks.. - Original Message - From: John Turner [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Friday, June 27, 2003 11:57 AM Subject: Re: Redirector problem? Apache 2.0.43 - Tomcat 4.1 What is the VirtualHost container for server and what is the Host entity in server.xml for server? John On Fri, 27 Jun 2003 11:53:59 -0300, Martín Mauri [EMAIL PROTECTED] wrote: Hi, I'm facing the following problem, I'm trying to get Tomcat and Apache working together, everything's fine since I've just set up the server.xml and httpd.conf and included the mod_jk.conf automcatic file in my httpd.conf. But when I try to access http://server/examples I get the 404 error and in the apache log it says it can't access /usr/local/apache2/htdocs/examples. I realize it isn't redirecting the context to tomcat, can anybody help me? thanks... - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: tomcat-user- [EMAIL PROTECTED] -- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/ - 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] -- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/ - 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] -- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Redirector problem? Apache 2.0.43 - Tomcat 4.1
I did like the first, I changed localhost to images so I have just one virtual host...but it's still not working :(( - Original Message - From: John Turner [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Friday, June 27, 2003 12:39 PM Subject: Re: Redirector problem? Apache 2.0.43 - Tomcat 4.1 So what did you do then: change localhost in server.xml to images, and restart Tomcat, then restart Apache? Or did you add images to the already existing localhost in server.xml? If the latter, you will need to do what I described in my previous message. If you have localhost and images you have TWO virtual hosts, not one. Localhost counts as one. John On Fri, 27 Jun 2003 12:33:41 -0300, Martín Mauri [EMAIL PROTECTED] wrote: no, the thing's that I've just got only one virtual host called images that's auto-generated in mod_jk.conf and as that file is included in httpd.conf I assume I don't have to modify it, or is it better than I replace it with a * anyway?? and yes, I have all the jkMount directives inside the VirtualHost container... any suggestion? thanks ! - Original Message - From: John Turner [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Friday, June 27, 2003 12:15 PM Subject: Re: Redirector problem? Apache 2.0.43 - Tomcat 4.1 Is there more than one name-based virtual host? If so, do the following: - enable NameVirtualHost in httpd.conf, and set it to * - change your VirtualHost images to VirtualHost * I'm assuming you have JkMount directives inside your VirtualHost container? Note that if you have more than one virtual host, you'll want to edit mod_jk.conf manually, and also remember not toleave your changes in CATALINA_HOME/conf/auto, as your changes will be overwritten every time Tomcat starts if you use that mod_jk.conf file. I typically let Tomcat generate mod_jk.conf for me, then I copy it to APACHE_HOME/conf, and modify to suit my needs. The auto-config option for Tomcat isn't very robust, for all but the simplest configurations you will want to create mod_jk.conf from scratch or modify the one that Tomcat generates. It does make things a little easier, though, because it automatically creates the directory protection directives for things like WEB-INF and other housekeeping stuff. John On Fri, 27 Jun 2003 12:10:28 -0300, Martín Mauri [EMAIL PROTECTED] wrote: ok, in both of them is images I've setup the following in mod_jk.conf: VirtualHost images ServerName images ... and the following in server.xml: Host name=images debug=0 appBase=webapps unpackWARs=true autoDeploy=true Listener className=org.apache.ajp.tomcat4.config.ApacheConfig append=true forwardAll=false modJK=/usr/local/apache2/modules/mod_jk.so / ... any idea? thanks.. - Original Message - From: John Turner [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Friday, June 27, 2003 11:57 AM Subject: Re: Redirector problem? Apache 2.0.43 - Tomcat 4.1 What is the VirtualHost container for server and what is the Host entity in server.xml for server? John On Fri, 27 Jun 2003 11:53:59 -0300, Martín Mauri [EMAIL PROTECTED] wrote: Hi, I'm facing the following problem, I'm trying to get Tomcat and Apache working together, everything's fine since I've just set up the server.xml and httpd.conf and included the mod_jk.conf automcatic file in my httpd.conf. But when I try to access http://server/examples I get the 404 error and in the apache log it says it can't access /usr/local/apache2/htdocs/examples. I realize it isn't redirecting the context to tomcat, can anybody help me? thanks... - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: tomcat-user- [EMAIL PROTECTED] -- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/ - 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] -- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/ - 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] -- Using M2,
Re: Hot deploy does not work?
* Jon Haugsand * ben jessel add reloadable=true in with the Context parameters Did so: Context path=/tilgang docBase=tilgang debug=99 reloadable=true / No, I mean this: Context path=/tilgang docBase=../tilgang debug=99 reloadable=true / It does not help though. -- Jon Haugsand, [EMAIL PROTECTED] http://www.norges-bank.no - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Hot deploy does not work?
Howdy, Are there any errors in the logs when you redeploy? Does a simple reload (not redeploy) work? Yoav Shapira Millennium ChemInformatics -Original Message- From: Jon Haugsand [mailto:[EMAIL PROTECTED] Sent: Friday, June 27, 2003 11:46 AM To: Tomcat Users List Subject: Re: Hot deploy does not work? * Jon Haugsand * ben jessel add reloadable=true in with the Context parameters Did so: Context path=/tilgang docBase=tilgang debug=99 reloadable=true / No, I mean this: Context path=/tilgang docBase=../tilgang debug=99 reloadable=true / It does not help though. -- Jon Haugsand, [EMAIL PROTECTED] http://www.norges-bank.no - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: download of csv file
Shanta B wrote: Hi We have a servlet which will download csv file from server.It works fine in some browser. The file type CSV is standard Excel format file. When i click on the link 'file open/save as' dialog appears, i see only html as supported filetype. Why? I expected CSV file as filetype here. This behvaiour is not true for all machines. Only on few PCs i see this problem? Is there any browser setting? I verified the application association with filöetype extension (CSV), it is MS-Excel. Thanks Shanta.B Use response.setContentType(text/csv); smime.p7s Description: S/MIME Cryptographic Signature
Custom 500 error page
Hi all, I'm using tomcat 4.1.18 and am having a problem with custom error pages. I have included the following in my global web.xml file error-page error-code500/error-code location/server_err.jsp/location /error-page however, when a 500 error is returned, it still shows the stack trace instead of my custom page. Has anybody seen this before? I've tried to search the archives, but they are currently unavailable. While I'm at it, where can I track down a changelog form 4.1.18 to 4.1.24? Thanks.. Nathan McMinn - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Custom 500 error page
What if you try to access /server_err.jsp directly? Is the error page also throwing an error? -Tim Nate wrote: Hi all, I'm using tomcat 4.1.18 and am having a problem with custom error pages. I have included the following in my global web.xml file error-page error-code500/error-code location/server_err.jsp/location /error-page however, when a 500 error is returned, it still shows the stack trace instead of my custom page. Has anybody seen this before? I've tried to search the archives, but they are currently unavailable. While I'm at it, where can I track down a changelog form 4.1.18 to 4.1.24? Thanks.. Nathan McMinn - 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: Custom 500 error page
The change notes are in the distribution under release-notes.txt. This works for me: error-page error-code500/error-code location/jsp/errorPage.jsp/location /error-page -Original Message- From: Nate [mailto:[EMAIL PROTECTED] Sent: Friday, June 27, 2003 5:15 PM To: Tomcat Users List Subject: Custom 500 error page Hi all, I'm using tomcat 4.1.18 and am having a problem with custom error pages. I have included the following in my global web.xml file error-page error-code500/error-code location/server_err.jsp/location /error-page however, when a 500 error is returned, it still shows the stack trace instead of my custom page. Has anybody seen this before? I've tried to search the archives, but they are currently unavailable. While I'm at it, where can I track down a changelog form 4.1.18 to 4.1.24? Thanks.. Nathan McMinn - 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: Custom 500 error page
I can access the page directly with no problems. - Original Message - From: Tim Funk [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Friday, June 27, 2003 11:29 AM Subject: Re: Custom 500 error page What if you try to access /server_err.jsp directly? Is the error page also throwing an error? -Tim Nate wrote: Hi all, I'm using tomcat 4.1.18 and am having a problem with custom error pages. I have included the following in my global web.xml file error-page error-code500/error-code location/server_err.jsp/location /error-page however, when a 500 error is returned, it still shows the stack trace instead of my custom page. Has anybody seen this before? I've tried to search the archives, but they are currently unavailable. While I'm at it, where can I track down a changelog form 4.1.18 to 4.1.24? Thanks.. Nathan McMinn - 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: Custom 500 error page
What version of Tomcat are you running? Perhaps I need to upgrade. - Original Message - From: Tim Davidson [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Friday, June 27, 2003 11:34 AM Subject: RE: Custom 500 error page The change notes are in the distribution under release-notes.txt. This works for me: error-page error-code500/error-code location/jsp/errorPage.jsp/location /error-page -Original Message- From: Nate [mailto:[EMAIL PROTECTED] Sent: Friday, June 27, 2003 5:15 PM To: Tomcat Users List Subject: Custom 500 error page Hi all, I'm using tomcat 4.1.18 and am having a problem with custom error pages. I have included the following in my global web.xml file error-page error-code500/error-code location/server_err.jsp/location /error-page however, when a 500 error is returned, it still shows the stack trace instead of my custom page. Has anybody seen this before? I've tried to search the archives, but they are currently unavailable. While I'm at it, where can I track down a changelog form 4.1.18 to 4.1.24? Thanks.. Nathan McMinn - 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: Redirector problem? Apache 2.0.43 - Tomcat 4.1
Change images back to localhost, then try adding Aliasimages/Alias in the Host container in server.xml. Are you sure that images resolves to an IP address? John On Fri, 27 Jun 2003 12:45:00 -0300, Martín Mauri [EMAIL PROTECTED] wrote: I did like the first, I changed localhost to images so I have just one virtual host...but it's still not working :(( - Original Message - From: John Turner [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Friday, June 27, 2003 12:39 PM Subject: Re: Redirector problem? Apache 2.0.43 - Tomcat 4.1 So what did you do then: change localhost in server.xml to images, and restart Tomcat, then restart Apache? Or did you add images to the already existing localhost in server.xml? If the latter, you will need to do what I described in my previous message. If you have localhost and images you have TWO virtual hosts, not one. Localhost counts as one. John On Fri, 27 Jun 2003 12:33:41 -0300, Martín Mauri [EMAIL PROTECTED] wrote: no, the thing's that I've just got only one virtual host called images that's auto-generated in mod_jk.conf and as that file is included in httpd.conf I assume I don't have to modify it, or is it better than I replace it with a * anyway?? and yes, I have all the jkMount directives inside the VirtualHost container... any suggestion? thanks ! - Original Message - From: John Turner [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Friday, June 27, 2003 12:15 PM Subject: Re: Redirector problem? Apache 2.0.43 - Tomcat 4.1 Is there more than one name-based virtual host? If so, do the following: - enable NameVirtualHost in httpd.conf, and set it to * - change your VirtualHost images to VirtualHost * I'm assuming you have JkMount directives inside your VirtualHost container? Note that if you have more than one virtual host, you'll want to edit mod_jk.conf manually, and also remember not toleave your changes in CATALINA_HOME/conf/auto, as your changes will be overwritten every time Tomcat starts if you use that mod_jk.conf file. I typically let Tomcat generate mod_jk.conf for me, then I copy it to APACHE_HOME/conf, and modify to suit my needs. The auto-config option for Tomcat isn't very robust, for all but the simplest configurations you will want to create mod_jk.conf from scratch or modify the one that Tomcat generates. It does make things a little easier, though, because it automatically creates the directory protection directives for things like WEB-INF and other housekeeping stuff. John On Fri, 27 Jun 2003 12:10:28 -0300, Martín Mauri [EMAIL PROTECTED] wrote: ok, in both of them is images I've setup the following in mod_jk.conf: VirtualHost images ServerName images ... and the following in server.xml: Host name=images debug=0 appBase=webapps unpackWARs=true autoDeploy=true Listener className=org.apache.ajp.tomcat4.config.ApacheConfig append=true forwardAll=false modJK=/usr/local/apache2/modules/mod_jk.so / ... any idea? thanks.. - Original Message - From: John Turner [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Friday, June 27, 2003 11:57 AM Subject: Re: Redirector problem? Apache 2.0.43 - Tomcat 4.1 What is the VirtualHost container for server and what is the Host entity in server.xml for server? John On Fri, 27 Jun 2003 11:53:59 -0300, Martín Mauri [EMAIL PROTECTED] wrote: Hi, I'm facing the following problem, I'm trying to get Tomcat and Apache working together, everything's fine since I've just set up the server.xml and httpd.conf and included the mod_jk.conf automcatic file in my httpd.conf. But when I try to access http://server/examples I get the 404 error and in the apache log it says it can't access /usr/local/apache2/htdocs/examples. I realize it isn't redirecting the context to tomcat, can anybody help me? thanks... - To unsubscribe, e-mail: tomcat-user- [EMAIL PROTECTED] For additional commands, e-mail: tomcat-user- [EMAIL PROTECTED] -- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: tomcat-user- [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: tomcat-user- [EMAIL PROTECTED] -- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Servlet mapping error
I'm trying to map a Servlet URL and then invoke that Servlet in my web app. When I attempt this, I'm getting the following error in my browser: [start error] HTTP Status 404 - /servlets/LoginServlet type Status report message /servlets/LoginServlet description The requested resource (/servlets/LoginServlet) is not available. Apache Tomcat/4.1.24 [end error] Under tomcat home/webapps/bugtracker/WEB-INF/web.xml, I have the following snippet of lines: servlet servlet-nameLoginServlet/servlet-name servlet-classcom.bugtracker.servlets.LoginServlet/servlet-class /servlet servlet-mapping servlet-nameLoginServlet/servlet-name url-pattern/servlets/LoginServlet/url-pattern /servlet-mapping Under tomcat home/webapps/bugtracker/WEB-INF/classes, I have: /com/bugtracker/servlets/LoginServlet.class In my login.jsp, I have this line: form method=post action=/servlets/LoginServlet Can anyone give me suggestions on what I might be doing wrong? Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Custom 500 error page
For future reference, I just upgraded from 4.1.18 to 4.1.24, and that fixed the issue. - Original Message - From: Nate [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Friday, June 27, 2003 11:38 AM Subject: Re: Custom 500 error page What version of Tomcat are you running? Perhaps I need to upgrade. - Original Message - From: Tim Davidson [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Friday, June 27, 2003 11:34 AM Subject: RE: Custom 500 error page The change notes are in the distribution under release-notes.txt. This works for me: error-page error-code500/error-code location/jsp/errorPage.jsp/location /error-page -Original Message- From: Nate [mailto:[EMAIL PROTECTED] Sent: Friday, June 27, 2003 5:15 PM To: Tomcat Users List Subject: Custom 500 error page Hi all, I'm using tomcat 4.1.18 and am having a problem with custom error pages. I have included the following in my global web.xml file error-page error-code500/error-code location/server_err.jsp/location /error-page however, when a 500 error is returned, it still shows the stack trace instead of my custom page. Has anybody seen this before? I've tried to search the archives, but they are currently unavailable. While I'm at it, where can I track down a changelog form 4.1.18 to 4.1.24? Thanks.. Nathan McMinn - 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: REALM question - please help
Dinh, Chinh wrote: Thanks for your help . I'm new to TOMCAT , so I may have some confusion. I thought it's the way that TOMCAT does. We have to use REALM to authenticate as we define this in web.xml : login-config auth-methodBASIC/auth-method realm-nameMyRealm/realm-name /login-config It will pop up a log in box, and Realm's authentication method will does the authentication. After the Login , it 'll call the Servlet's service(). In the Realm class, which extends org.apache.catalina.realm.RealmBase, there is no access to HttpRequest, Response, or Session at this point . How do I store a data member of the Realm class some where (?) so that my servlet can access to it ? Bill is right except that I don't know how to do that with Tomcat 4.1.x (without writting you own Authenticator class). With Tomcat 5, the Realm class contains 3 more methods you can use to achieve your goal: - hasResourcePermission(HttpServletRequest,HttpServletResponse, SecurityConstraint, constraint) - hasUserDataPermission(HttpServletRequest,HttpServletResponse, SecurityConstraint) - findSecurityConstraint(HttpServletRequest,Context) The Authentication mechanism will: - (1) call the realm.findSecurityConstraint - (2) call the realm.hasUserData - (3) call realm.authenticate - (4) call realm.hasResourcePermission So you may add the realm instance to the session when (1) is invoked. If you want to do it with Tomcat 4.1.x, you may overide Authenticator.findSecurityConstraint(). For Tomcat 5.0.4, I would like to first do (3) then (1) (2)but I'm still thinking the way I would propose the change :-) -- Jeanfrancois Or is it something that should never be done ? What'd be an alternative solution ? I don't think Filter serves the goal that I describe above, am I correct ? Thank you very much. - Chinh Bill Barker [EMAIL PROTECTED] wrote: I agree with Jean-Francois that the design is less than perfect ;-). You should probably re-think it. However, I'm willing to give you more than enough rope to hang yourself ;-). 1) If your custom Realm is configured under a , then simply have if save an instance of itself into the Session. 2) If not, or otherwise, have it set a request-attribute with itself as the value. Dinh, Chinh wrote in message news:[EMAIL PROTECTED] Thanks for the response. My situation is like this: - I created my own Realm for webDAV access. When I launch http://localhost:8080/webdav, it will first call myREalm's authentication(). Within authentication(), I calls some existing authentication class, which returns a USER object (basically, has some application specific user properties). - After the authentication is successful (from a Log-in Dialog box, for example), it will get to my servlet (in this case, a webDAVservlet). In this webDavServlet, I would like to get the USER object that I stored as a data member in my Realm class. - That is the reason I want to be able to get the realm object from the servlet. Any advise ? Thanks . - Chinh Jean-Francois Arcand wrote: Dinh, Chinh wrote: I have a tomcat question for you . In Tomcat's server.xml, we define a realm (only ONE) When tomcat starts, I think it will instantiate a realm object of this type . I am trying to find a way to access this realm object in my servlet (the servlet that starts after the realm's authentication succeeds). There's a method getRealm() from org.apache.catalina.core.ContainerBase , but how would we get this ContainerBase ? No. For security reason, a servlet should not have access to any Tomcat classes. If your app is able to have access to those methods, any malicious app can also have access and snif the information. Why do you want to have access to the realm? Does Tomcat have some kind of global object of this type ? No...and in Tomcat 5,we have enforced the security protection mechanism so it is mostly impossible to invoke Tomcat internal classes (when the security manager is turned on) Thank you . Chinh -- Jeanfrancois - Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Servlet mapping error
Try the following URL: http://host:port/bugtracker/servlets/LoginServlet Hope this helps, Andy -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 27 June 2003 18:17 To: [EMAIL PROTECTED] Subject: Servlet mapping error I'm trying to map a Servlet URL and then invoke that Servlet in my web app. When I attempt this, I'm getting the following error in my browser: [start error] HTTP Status 404 - /servlets/LoginServlet type Status report message /servlets/LoginServlet description The requested resource (/servlets/LoginServlet) is not available. Apache Tomcat/4.1.24 [end error] Under tomcat home/webapps/bugtracker/WEB-INF/web.xml, I have the following snippet of lines: servlet servlet-nameLoginServlet/servlet-name servlet-classcom.bugtracker.servlets.LoginServlet/servlet-class /servlet servlet-mapping servlet-nameLoginServlet/servlet-name url-pattern/servlets/LoginServlet/url-pattern /servlet-mapping Under tomcat home/webapps/bugtracker/WEB-INF/classes, I have: /com/bugtracker/servlets/LoginServlet.class In my login.jsp, I have this line: form method=post action=/servlets/LoginServlet Can anyone give me suggestions on what I might be doing wrong? 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: JDBC Session Manager.
that is for the membership detection of the cluster, session propagates upon each request is finished Filip -Original Message- From: Angus Mezick [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 25, 2003 5:09 AM To: Tomcat Users List Subject: RE: JDBC Session Manager. I REALLY need something that propagates on session change an not on some type of timed mechanism. It looks like if I can get the session to respond to an instance event I will be all set. (this close to hard coding this bugger though) Or have I completely messed up how this config works? It looks to me like there is some sort of polling going on to save a session that has nothing to do with when a session is changed and the request is completed. checkInterval=10 mcastFrequency=500 --Angus -Original Message- From: Filip Hanik [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 24, 2003 6:15 PM To: Tomcat Users List Subject: RE: JDBC Session Manager. just use session replication, it will take care of the problem of non sticky load balancing http://cvs.apache.org/~fhanik/ Filip -Original Message- From: Angus Mezick [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 24, 2003 2:01 PM To: [EMAIL PROTECTED] Subject: JDBC Session Manager. This is NOT about the JDBC Session Store. Ok, now that is out of the way. I am working in an environment with a cisco load balancer that is broken (or the sales rep lied). I can NOT do sticky sessions reliably to save its life. So I implemented a session manage in the iplanet server we were using to use a DB as a session store. The only sessions in memory were the ones in use. All sessions not associated with a currently processing request were stored in the DB. This allowed us to have some VERY nice clustering functionality without having to deal with ANY stickyness. On a request as session was either inserted or selected from the db. Iplanet only called the update method once at the end of the processing of a servlet's service method in the NSServletRunner class. (when the request input stream is closed) At this point the manager's update() class is called. This is usually an empty class. I am wondering what the best way to implement the same functionality in tomcat would be. My current though is to change core.ApplicationDispatcher.invoke() to have the session from the request call the manager's update method. (I see a whole lot more changes in there) I would much rather have this event code be trapped by the manager and then call the update. Anyone know how to go about this? Should I have sent this to the developer's list? support.fireInstanceEvent(InstanceEvent.AFTER_DISPATCH_EVENT, servlet, request, response); Angus Mezick GuideStar - Philanthropic Research Inc. 427 Scotland St. Williamsburg, Virginia 23185 PHONE: (757)299-4631 x35 FAX:(757)229-8912 [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] www.guidestar.org http://www.guidestar.org - 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: Servlet mapping error
Howdy, Under tomcat home/webapps/bugtracker/WEB-INF/web.xml, I have the following snippet of lines: servlet servlet-nameLoginServlet/servlet-name servlet-classcom.bugtracker.servlets.LoginServlet/servlet-class /servlet servlet-mapping servlet-nameLoginServlet/servlet-name url-pattern/servlets/LoginServlet/url-pattern /servlet-mapping Under tomcat home/webapps/bugtracker/WEB-INF/classes, I have: /com/bugtracker/servlets/LoginServlet.class In my login.jsp, I have this line: form method=post action=/servlets/LoginServlet The action URL is wrong, should be /bugtracker/servlets/LoginServlet Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Servlet mapping error
Thanks, I knew it was somthing simple/stupid. Works now. Shapira, Yoav [EMAIL PROTECTED]To: Tomcat Users List [EMAIL PROTECTED] .comcc: Subject: RE: Servlet mapping error 06/27/2003 12:35 PM Please respond to Tomcat Users List Howdy, Under tomcat home/webapps/bugtracker/WEB-INF/web.xml, I have the following snippet of lines: servlet servlet-nameLoginServlet/servlet-name servlet-classcom.bugtracker.servlets.LoginServlet/servlet-class /servlet servlet-mapping servlet-nameLoginServlet/servlet-name url-pattern/servlets/LoginServlet/url-pattern /servlet-mapping Under tomcat home/webapps/bugtracker/WEB-INF/classes, I have: /com/bugtracker/servlets/LoginServlet.class In my login.jsp, I have this line: form method=post action=/servlets/LoginServlet The action URL is wrong, should be /bugtracker/servlets/LoginServlet Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. 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]
RE: Custom 500 error page
I'm having the same problem on Tomcat 5.0.2. Tried restarting the app. Then tried restarting Tomcat. Then rebooted the machine. Still getting the stack trace. I assumed for a while that I had a compilation error in my error.jsp so I made error.jsp a very simple page with no code. It still isn't working. Open to suggestions. Thanks, Joe -Original Message- From: Nate [mailto:[EMAIL PROTECTED] Sent: Friday, June 27, 2003 1:22 PM To: Tomcat Users List For future reference, I just upgraded from 4.1.18 to 4.1.24, and that fixed the issue. - Original Message - From: Nate [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Friday, June 27, 2003 11:38 AM Subject: Re: Custom 500 error page What version of Tomcat are you running? Perhaps I need to upgrade. - Original Message - From: Tim Davidson [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Friday, June 27, 2003 11:34 AM Subject: RE: Custom 500 error page The change notes are in the distribution under release-notes.txt. This works for me: error-page error-code500/error-code location/jsp/errorPage.jsp/location /error-page -Original Message- From: Nate [mailto:[EMAIL PROTECTED] Sent: Friday, June 27, 2003 5:15 PM To: Tomcat Users List Subject: Custom 500 error page Hi all, I'm using tomcat 4.1.18 and am having a problem with custom error pages. I have included the following in my global web.xml file error-page error-code500/error-code location/server_err.jsp/location /error-page however, when a 500 error is returned, it still shows the stack trace instead of my custom page. Has anybody seen this before? I've tried to search the archives, but they are currently unavailable. While I'm at it, where can I track down a changelog form 4.1.18 to 4.1.24? Thanks.. Nathan McMinn - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Custom 500 error page
Joe Reger, Jr. wrote: I'm having the same problem on Tomcat 5.0.2. Tried restarting the app. Then tried restarting Tomcat. Then rebooted the machine. Still getting the stack trace. I assumed for a while that I had a compilation error in my error.jsp so I made error.jsp a very simple page with no code. It still isn't working. Open to suggestions. Thanks, Joe Yes, that was a bug in 5.0.xI've fixed the problem this week so you may want to use the HEAD branch of Tomcat 5 (http://cvs.apache.org/builds/jakarta-tomcat-5/nightly/). I will look at the Tomcat 4.1.x and see if I've found something. -- Jeanfrancois -Original Message- From: Nate [mailto:[EMAIL PROTECTED] Sent: Friday, June 27, 2003 1:22 PM To: Tomcat Users List For future reference, I just upgraded from 4.1.18 to 4.1.24, and that fixed the issue. - Original Message - From: Nate [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Friday, June 27, 2003 11:38 AM Subject: Re: Custom 500 error page What version of Tomcat are you running? Perhaps I need to upgrade. - Original Message - From: Tim Davidson [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Friday, June 27, 2003 11:34 AM Subject: RE: Custom 500 error page The change notes are in the distribution under release-notes.txt. This works for me: error-page error-code500/error-code location/jsp/errorPage.jsp/location /error-page -Original Message- From: Nate [mailto:[EMAIL PROTECTED] Sent: Friday, June 27, 2003 5:15 PM To: Tomcat Users List Subject: Custom 500 error page Hi all, I'm using tomcat 4.1.18 and am having a problem with custom error pages. I have included the following in my global web.xml file error-page error-code500/error-code location/server_err.jsp/location /error-page however, when a 500 error is returned, it still shows the stack trace instead of my custom page. Has anybody seen this before? I've tried to search the archives, but they are currently unavailable. While I'm at it, where can I track down a changelog form 4.1.18 to 4.1.24? Thanks.. Nathan McMinn - 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] - 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]
ServletContextListener problem
Hello people. I am trying to use a ServletContextListener but Tomcat 4.1.24 does not like my web.xml :-) The file follows below. I have no idea what's wrong! The error messages are: 27/06/2003 15:16:25 org.apache.commons.digester.Digester error SEVERE: Parse Error at line 9 column 14: Element type listener must be declared. org.xml.sax.SAXParseException: Element type listener must be declared. 27/06/2003 15:16:25 org.apache.commons.digester.Digester error SEVERE: Parse Error at line 10 column 23: Element type listener-class must be declared. org.xml.sax.SAXParseException: Element type listener-class must be declared. Please, help! :-) = ?xml version=1.0 encoding=ISO-8859-1? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.2//EN http://java.sun.com/dtd/web-app_2_3.dtd; web-app listener listener-class br.com.info.fomezero.bootstrap.BootStrapInvoker /listener-class /listener !-- Action Servlet Configuration -- servlet servlet-nameaction/servlet-name servlet-classorg.apache.struts.action.ActionServlet/servlet-class init-param param-nameapplication/param-name param-valueApplicationResources/param-value /init-param init-param param-nameconfig/param-name param-value/WEB-INF/struts-config.xml/param-value /init-param init-param param-namedebug/param-name param-value2/param-value /init-param init-param param-namedetail/param-name param-value2/param-value /init-param init-param param-namevalidate/param-name param-valuetrue/param-value /init-param load-on-startup2/load-on-startup /servlet !-- Action Servlet Mapping -- servlet-mapping servlet-nameaction/servlet-name url-pattern*.do/url-pattern /servlet-mapping !-- The Welcome File List -- welcome-file-list welcome-filesearch.jsp/welcome-file /welcome-file-list !-- Struts Tag Library Descriptors -- taglib taglib-uri/WEB-INF/struts-bean.tld/taglib-uri taglib-location/WEB-INF/struts-bean.tld/taglib-location /taglib taglib taglib-uri/WEB-INF/struts-html.tld/taglib-uri taglib-location/WEB-INF/struts-html.tld/taglib-location /taglib taglib taglib-uri/WEB-INF/struts-logic.tld/taglib-uri taglib-location/WEB-INF/struts-logic.tld/taglib-location /taglib taglib taglib-uri/WEB-INF/struts-template.tld/taglib-uri taglib-location/WEB-INF/struts-template.tld/taglib-location /taglib /web-app == === Augusto Cesar Guagliano [EMAIL PROTECTED] Project Manager +55 19 9106.9024 Infosoftware Consulting http://www.infosoftware.com.br === Esta mensagem pode conter informação confidencial e/ou privilegiada. Se você não for o destinatário ou a pessoa autorizada a receber esta mensagem, não pode usar, copiar ou divulgar as informações nela contidas ou tomar qualquer ação baseada nessas informações. Se você recebeu esta mensagem por engano, por favor avise imediatamente o remetente, respondendo o e-mail e em seguida apague-o. Agradecemos sua cooperação. This message may contain confidential and/or privileged information. If you are not the addressee or authorized to receive this for the addressee, you must not use, copy, disclose or take any action based on this message or any information herein. If you have received this message in error, please advise the sender immediately by reply e-mail and delete this message. Thank you for your cooperation.
Redirect HTTP to HTTPS?
How do you redirect HTTP to HTTPS in a Tomcat Standalone configuration (no Apache WS)? This configuration serves static web content on port 80 and JSP/Java Servlets on port 8080. I would like requests coming in on port 80 to be routed to HTTPS automatically. Although the HTTP connectors are configured to redirect to port 8443, it's not working. I tried adding a security-constraint parameter to $CATALINA_HOME/conf/web.xml and set the transport to CONFIDENTIAL, but that didn't work. Any ideas? (P.S.) Could the directory structure for the web app be the cause of the problem (i.e. there is no /WEB-INF folder)? Latesha Williams Applications Support, Information Technology American Museum of Natural History [EMAIL PROTECTED] (W) 212.769.5947 (C) 917.837.2460 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: ServletContextListener problem
Howdy, You have a DTD DOCTYPE mismatch. Your web.xml is fine for a 2.3 container, just change the 2.2 to 2.3 in the DOCTYPE. Yoav Shapira Millennium ChemInformatics -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, June 27, 2003 2:17 PM To: Tomcat Users List Subject: ServletContextListener problem Hello people. I am trying to use a ServletContextListener but Tomcat 4.1.24 does not like my web.xml :-) The file follows below. I have no idea what's wrong! The error messages are: 27/06/2003 15:16:25 org.apache.commons.digester.Digester error SEVERE: Parse Error at line 9 column 14: Element type listener must be declared. org.xml.sax.SAXParseException: Element type listener must be declared. 27/06/2003 15:16:25 org.apache.commons.digester.Digester error SEVERE: Parse Error at line 10 column 23: Element type listener-class must be declared. org.xml.sax.SAXParseException: Element type listener-class must be declared. Please, help! :-) === == ?xml version=1.0 encoding=ISO-8859-1? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.2//EN http://java.sun.com/dtd/web-app_2_3.dtd; web-app listener listener-class br.com.info.fomezero.bootstrap.BootStrapInvoker /listener-class /listener !-- Action Servlet Configuration -- servlet servlet-nameaction/servlet-name servlet-classorg.apache.struts.action.ActionServlet/servlet-class init-param param-nameapplication/param-name param-valueApplicationResources/param-value /init-param init-param param-nameconfig/param-name param-value/WEB-INF/struts-config.xml/param-value /init-param init-param param-namedebug/param-name param-value2/param-value /init-param init-param param-namedetail/param-name param-value2/param-value /init-param init-param param-namevalidate/param-name param-valuetrue/param-value /init-param load-on-startup2/load-on-startup /servlet !-- Action Servlet Mapping -- servlet-mapping servlet-nameaction/servlet-name url-pattern*.do/url-pattern /servlet-mapping !-- The Welcome File List -- welcome-file-list welcome-filesearch.jsp/welcome-file /welcome-file-list !-- Struts Tag Library Descriptors -- taglib taglib-uri/WEB-INF/struts-bean.tld/taglib-uri taglib-location/WEB-INF/struts-bean.tld/taglib-location /taglib taglib taglib-uri/WEB-INF/struts-html.tld/taglib-uri taglib-location/WEB-INF/struts-html.tld/taglib-location /taglib taglib taglib-uri/WEB-INF/struts-logic.tld/taglib-uri taglib-location/WEB-INF/struts-logic.tld/taglib-location /taglib taglib taglib-uri/WEB-INF/struts-template.tld/taglib-uri taglib-location/WEB-INF/struts-template.tld/taglib-location /taglib /web-app === === === Augusto Cesar Guagliano [EMAIL PROTECTED] Project Manager +55 19 9106.9024 Infosoftware Consulting http://www.infosoftware.com.br === Esta mensagem pode conter informação confidencial e/ou privilegiada. Se você não for o destinatário ou a pessoa autorizada a receber esta mensagem, não pode usar, copiar ou divulgar as informações nela contidas ou tomar qualquer ação baseada nessas informações. Se você recebeu esta mensagem por engano, por favor avise imediatamente o remetente, respondendo o e-mail e em seguida apague-o. Agradecemos sua cooperação. This message may contain confidential and/or privileged information. If you are not the addressee or authorized to receive this for the addressee, you must not use, copy, disclose or take any action based on this message or any information herein. If you have received this message in error, please advise the sender immediately by reply e-mail and delete this message. Thank you for your cooperation. This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: ServletContextListener problem
You have 2.2 in the first part of your DTD: !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.2//EN http://java.sun.com/dtd/web-app_2_3.dtd; Change it to: !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd; HTH, Matt -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, June 27, 2003 12:17 PM To: Tomcat Users List Subject: ServletContextListener problem Hello people. I am trying to use a ServletContextListener but Tomcat 4.1.24 does not like my web.xml :-) The file follows below. I have no idea what's wrong! The error messages are: 27/06/2003 15:16:25 org.apache.commons.digester.Digester error SEVERE: Parse Error at line 9 column 14: Element type listener must be declared. org.xml.sax.SAXParseException: Element type listener must be declared. 27/06/2003 15:16:25 org.apache.commons.digester.Digester error SEVERE: Parse Error at line 10 column 23: Element type listener-class must be declared. org.xml.sax.SAXParseException: Element type listener-class must be declared. Please, help! :-) = ?xml version=1.0 encoding=ISO-8859-1? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.2//EN http://java.sun.com/dtd/web-app_2_3.dtd; web-app listener listener-class br.com.info.fomezero.bootstrap.BootStrapInvoker /listener-class /listener !-- Action Servlet Configuration -- servlet servlet-nameaction/servlet-name servlet-classorg.apache.struts.action.ActionServlet/servlet-class init-param param-nameapplication/param-name param-valueApplicationResources/param-value /init-param init-param param-nameconfig/param-name param-value/WEB-INF/struts-config.xml/param-value /init-param init-param param-namedebug/param-name param-value2/param-value /init-param init-param param-namedetail/param-name param-value2/param-value /init-param init-param param-namevalidate/param-name param-valuetrue/param-value /init-param load-on-startup2/load-on-startup /servlet !-- Action Servlet Mapping -- servlet-mapping servlet-nameaction/servlet-name url-pattern*.do/url-pattern /servlet-mapping !-- The Welcome File List -- welcome-file-list welcome-filesearch.jsp/welcome-file /welcome-file-list !-- Struts Tag Library Descriptors -- taglib taglib-uri/WEB-INF/struts-bean.tld/taglib-uri taglib-location/WEB-INF/struts-bean.tld/taglib-location /taglib taglib taglib-uri/WEB-INF/struts-html.tld/taglib-uri taglib-location/WEB-INF/struts-html.tld/taglib-location /taglib taglib taglib-uri/WEB-INF/struts-logic.tld/taglib-uri taglib-location/WEB-INF/struts-logic.tld/taglib-location /taglib taglib taglib-uri/WEB-INF/struts-template.tld/taglib-uri taglib-location/WEB-INF/struts-template.tld/taglib-location /taglib /web-app == === Augusto Cesar Guagliano [EMAIL PROTECTED] Project Manager +55 19 9106.9024 Infosoftware Consulting http://www.infosoftware.com.br === Esta mensagem pode conter informação confidencial e/ou privilegiada. Se você não for o destinatário ou a pessoa autorizada a receber esta mensagem, não pode usar, copiar ou divulgar as informações nela contidas ou tomar qualquer ação baseada nessas informações. Se você recebeu esta mensagem por engano, por favor avise imediatamente o remetente, respondendo o e-mail e em seguida apague-o. Agradecemos sua cooperação. This message may contain confidential and/or privileged information. If you are not the addressee or authorized to receive this for the addressee, you must not use, copy, disclose or take any action based on this message or any information herein. If you have received this message in error, please advise the sender immediately by reply e-mail and delete this message. Thank you for your cooperation. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: ServletContextListener problem
Thank you and Yoav! Right after sending the mail I found the mistake. Feel so stupid now :-) Thanks! === Augusto Cesar Guagliano [EMAIL PROTECTED] Project Manager +55 19 9106.9024 Infosoftware Consulting http://www.infosoftware.com.br === Esta mensagem pode conter informação confidencial e/ou privilegiada. Se você não for o destinatário ou a pessoa autorizada a receber esta mensagem, não pode usar, copiar ou divulgar as informações nela contidas ou tomar qualquer ação baseada nessas informações. Se você recebeu esta mensagem por engano, por favor avise imediatamente o remetente, respondendo o e-mail e em seguida apague-o. Agradecemos sua cooperação. This message may contain confidential and/or privileged information. If you are not the addressee or authorized to receive this for the addressee, you must not use, copy, disclose or take any action based on this message or any information herein. If you have received this message in error, please advise the sender immediately by reply e-mail and delete this message. Thank you for your cooperation. Raible, Matt [EMAIL PROTECTED] 27/06/2003 15:21 Please respond to Tomcat Users List To: 'Tomcat Users List' [EMAIL PROTECTED] cc: Subject:RE: ServletContextListener problem You have 2.2 in the first part of your DTD: !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.2//EN http://java.sun.com/dtd/web-app_2_3.dtd; Change it to: !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd; HTH, Matt -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, June 27, 2003 12:17 PM To: Tomcat Users List Subject: ServletContextListener problem Hello people. I am trying to use a ServletContextListener but Tomcat 4.1.24 does not like my web.xml :-) The file follows below. I have no idea what's wrong! The error messages are: 27/06/2003 15:16:25 org.apache.commons.digester.Digester error SEVERE: Parse Error at line 9 column 14: Element type listener must be declared. org.xml.sax.SAXParseException: Element type listener must be declared. 27/06/2003 15:16:25 org.apache.commons.digester.Digester error SEVERE: Parse Error at line 10 column 23: Element type listener-class must be declared. org.xml.sax.SAXParseException: Element type listener-class must be declared. Please, help! :-) = ?xml version=1.0 encoding=ISO-8859-1? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.2//EN http://java.sun.com/dtd/web-app_2_3.dtd; web-app listener listener-class br.com.info.fomezero.bootstrap.BootStrapInvoker /listener-class /listener !-- Action Servlet Configuration -- servlet servlet-nameaction/servlet-name servlet-classorg.apache.struts.action.ActionServlet/servlet-class init-param param-nameapplication/param-name param-valueApplicationResources/param-value /init-param init-param param-nameconfig/param-name param-value/WEB-INF/struts-config.xml/param-value /init-param init-param param-namedebug/param-name param-value2/param-value /init-param init-param param-namedetail/param-name param-value2/param-value /init-param init-param param-namevalidate/param-name param-valuetrue/param-value /init-param load-on-startup2/load-on-startup /servlet !-- Action Servlet Mapping -- servlet-mapping servlet-nameaction/servlet-name url-pattern*.do/url-pattern /servlet-mapping !-- The Welcome File List -- welcome-file-list welcome-filesearch.jsp/welcome-file /welcome-file-list !-- Struts Tag Library Descriptors -- taglib taglib-uri/WEB-INF/struts-bean.tld/taglib-uri taglib-location/WEB-INF/struts-bean.tld/taglib-location /taglib taglib taglib-uri/WEB-INF/struts-html.tld/taglib-uri taglib-location/WEB-INF/struts-html.tld/taglib-location /taglib taglib taglib-uri/WEB-INF/struts-logic.tld/taglib-uri taglib-location/WEB-INF/struts-logic.tld/taglib-location /taglib taglib taglib-uri/WEB-INF/struts-template.tld/taglib-uri taglib-location/WEB-INF/struts-template.tld/taglib-location /taglib /web-app == === Augusto Cesar Guagliano [EMAIL PROTECTED] Project Manager +55 19 9106.9024 Infosoftware Consulting http://www.infosoftware.com.br === Esta mensagem pode conter informação confidencial e/ou privilegiada. Se você não for o destinatário ou a pessoa autorizada a receber esta mensagem, não pode usar, copiar ou divulgar as informações nela contidas ou tomar
RE: Redirect HTTP to HTTPS?
Howdy, A webapp must have a WEB-INF folder. It's a good idea to put a web.xml file there, even if it only has the webapp / element in it. You'd like all port 80 requests (both HTTP and HTTPS) routed to port 8443? Yoav Shapira Millennium ChemInformatics -Original Message- From: Latesha Williams [mailto:[EMAIL PROTECTED] Sent: Friday, June 27, 2003 11:26 AM To: Tomcat Users List Subject: Redirect HTTP to HTTPS? Importance: High How do you redirect HTTP to HTTPS in a Tomcat Standalone configuration (no Apache WS)? This configuration serves static web content on port 80 and JSP/Java Servlets on port 8080. I would like requests coming in on port 80 to be routed to HTTPS automatically. Although the HTTP connectors are configured to redirect to port 8443, it's not working. I tried adding a security-constraint parameter to $CATALINA_HOME/conf/web.xml and set the transport to CONFIDENTIAL, but that didn't work. Any ideas? (P.S.) Could the directory structure for the web app be the cause of the problem (i.e. there is no /WEB-INF folder)? Latesha Williams Applications Support, Information Technology American Museum of Natural History [EMAIL PROTECTED] (W) 212.769.5947 (C) 917.837.2460 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Persistent attributes
Hello list. I have tried posting this question to comp.lang.java but I didn't get the answer that I needed: I am writing a web application that stores its data in an XML-file. I am deploying it via Apache Tomcat. I would like to make it easy to deploy. For it to work the user deploying my application has to set the file name of the data storage. I can think of two approaches: 1. The application provides the user interface: My application has a setup page and if it is the first time it is run it will ask the user the file name of the data storage. To implement this I need to make a string persistent. Does Apache Tomcat provide a way to make data persistent accross stop/starts? I have tried setAttribute in ServletContext but the attributes disappear when the application is reloaded. 2. The servlet container provides the user interface: I find the Tomcat web interface slightly clumsy but there is something called environment entries in the administration tool. How do I read these environment entries in my application? Alternatively: Is there a way to set the init parameters (that are read via ServletConfig) from within Apache Tomcat's web interface? Any help appreciated. -- Christian PS: If you are interested - I am making a Wiki and it is available including source here: http://vredungmand.dk/programming/orange/index.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Custom 500 error page
I don't know how to fix it on the 5.0.2 release. It works fine on 4.1.24 tho'. From what I could find it was a problem with some request valve. You can also check the url below for another way to handle this http://www.experts-exchange.com/Developer/Web/Web_Languages/JSP/Q_20634798.h tml - Original Message - From: Joe Reger, Jr. [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Friday, June 27, 2003 12:43 PM Subject: RE: Custom 500 error page I'm having the same problem on Tomcat 5.0.2. Tried restarting the app. Then tried restarting Tomcat. Then rebooted the machine. Still getting the stack trace. I assumed for a while that I had a compilation error in my error.jsp so I made error.jsp a very simple page with no code. It still isn't working. Open to suggestions. Thanks, Joe -Original Message- From: Nate [mailto:[EMAIL PROTECTED] Sent: Friday, June 27, 2003 1:22 PM To: Tomcat Users List For future reference, I just upgraded from 4.1.18 to 4.1.24, and that fixed the issue. - Original Message - From: Nate [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Friday, June 27, 2003 11:38 AM Subject: Re: Custom 500 error page What version of Tomcat are you running? Perhaps I need to upgrade. - Original Message - From: Tim Davidson [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Friday, June 27, 2003 11:34 AM Subject: RE: Custom 500 error page The change notes are in the distribution under release-notes.txt. This works for me: error-page error-code500/error-code location/jsp/errorPage.jsp/location /error-page -Original Message- From: Nate [mailto:[EMAIL PROTECTED] Sent: Friday, June 27, 2003 5:15 PM To: Tomcat Users List Subject: Custom 500 error page Hi all, I'm using tomcat 4.1.18 and am having a problem with custom error pages. I have included the following in my global web.xml file error-page error-code500/error-code location/server_err.jsp/location /error-page however, when a 500 error is returned, it still shows the stack trace instead of my custom page. Has anybody seen this before? I've tried to search the archives, but they are currently unavailable. While I'm at it, where can I track down a changelog form 4.1.18 to 4.1.24? Thanks.. Nathan McMinn - 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] - 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]
performance on Tomcat 4.0.6
Hi, I'm doing some tests on performance with TC 4.0.6. My system (W2k IIS5.0 - JSDK 1.4.0). I'm expecting my site will have a heavy load (about 20,000 concurrent connections between several servers) My pages wont have database connections. I've read some documents about it, and I wonder if someone could tell me what's the limit of the parameters minProcessors, maxProcessors and acceptCount, when I configure minProcessors above 1000, Tomcat stops after about 30 seconds. ¿? Does it really improves performance? Another question: How can I increase the the memory configuration of JVM. I've read that is donde with the Xms, xms,ms and mx options, but how can I tell Tomcat to use that configuration. (i'm using Tomcat as a service) I've tried using it with no luck. Would that work if I edit cataliba.bat and add those options in %JAVA_OPTS%. Does anyone have some good tips about performance? (besides the documents found in the FAQ section) Regards. Jose Oyervides. Up to now this is my server.xml file : Server port=8005 shutdown=SHUTDOWN debug=0 Service name=Tomcat-Standalone Connector className=org.apache.catalina.connector.http.HttpConnector port=8080 minProcessors=750 maxProcessors=1000 enableLookups=false acceptCount=400 debug=0 connectionTimeout=6/ Connector className=org.apache.ajp.tomcat4.Ajp13Connector port=8009 minProcessors=1000 maxProcessors=2000 acceptCount=400 debug=0/ Engine name=Standalone defaultHost=localhost debug=0 Logger className=org.apache.catalina.logger.FileLogger prefix=catalina_log. suffix=.log timestamp=true/ Realm className=org.apache.catalina.realm.MemoryRealm / Host name=localhost debug=0 appBase=\\OtherMachine\foo\ unpackWARs=true Valve className=org.apache.catalina.valves.AccessLogValve directory=logs prefix=localhost_access_log. suffix=.log pattern=combined/ Context path=/testing docBase=testing debug=0 privileged=true/ Context path=/examples docBase=examples debug=0 reloadable=false crossContext=true Context path=/manager docBase=manager debug=0 privileged=true/ Parameter name=context.param.name value=context.param.value override=false/ Manager className=org.apache.catalina.session.PersistentManager debug=0 saveOnRestart=false maxActiveSessions=-1 minIdleSwap=-1 maxIdleSwap=-1 maxIdleBackup=-1 Store className=org.apache.catalina.session.FileStore/ /Manager /Context /Host /Engine /Service Service name=Tomcat-Apache Connector className=org.apache.catalina.connector.warp.WarpConnector port=8008 minProcessors=5 maxProcessors=75 enableLookups=true appBase=webapps acceptCount=10 debug=0/ Engine className=org.apache.catalina.connector.warp.WarpEngine name=Apache debug=0 Logger className=org.apache.catalina.logger.FileLogger prefix=apache_log. suffix=.log timestamp=true/ Realm className=org.apache.catalina.realm.MemoryRealm / /Engine /Service /Server - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Persistent attributes
Howdy, I am writing a web application that stores its data in an XML-file. I am deploying it via Apache Tomcat. I would like to make it easy to deploy. For it to work the user deploying my application has to set the file name of the data storage. Just to clarify, let's call the person deploying your application the server administrator (this person has access to server.xml / the tomcat admin/manager webapps), and the people using your application the users. To implement this I need to make a string persistent. Does Apache Tomcat provide a way to make data persistent accross stop/starts? I have tried setAttribute in ServletContext but the attributes disappear when the application is reloaded. No. Webapps don't supply persistence. You have to do it yourself, e.g. using a database or configuring a file resource. 2. The servlet container provides the user interface: I find the Tomcat web interface slightly clumsy but there is something called environment entries in the administration tool. How do I read these environment entries in my application? See: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-resources-howto.htm l This is probably the way you want to go. The servlet administrator will define the appropriate resources in server.xml. You just use the env-entry in your web.xml. That way you distribute the same webapp war to everyone. What this JNDI entry point to is up to you: provide instructions to the server administrator on whether the app will want a file (I suggest this to start with) or something else (e.g. a DB into which the app can write). Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]