taglib : unable to find setter method for attribute
Hello Team, I am facing a problem in taglib Initally I was using JSDK 1.4.2_05 for compiling and running my application everythign was running very fine , now the JRE JDK change to 1.4.2_07 and suddenly it starts giving me error saying unable to find setter method for attribute I am using tomcat 4.1.29 Please let em know if anyone already have any idea about this -Sanjay Methode defined in the Java file are private int seconds = -1; public void setPoll(int seconds) { this.seconds= seconds; } public int getPoll(int seconds) { return this.seconds; } and whiel defining the taglib !-- InitAutoRefreshTag -- !-- Tag to initialize the auto-refresh related components -- tag nameInitAutoRefresh/name tag-classcalss name /tag-class body-contentempty/body-content description Writes out the JavaScript logic to initialize auto-refresh when the page loads. /description attribute namepoll/name !-- The polling interval in seconds. This is how often the web-server is polled to update the status and values. Default is 3 seconds. -- requiredfalse/required rtexprvaluetrue/rtexprvalue /attribute /tag And the error given is as follows Jasper exception : unable to find setter method for attribute poll __ Do you Yahoo!? Yahoo! Sports - Sign up for Fantasy Baseball. http://baseball.fantasysports.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
error-page directive
Hello all, I have a web.xml (attached) that works fine if I remove the error-page directive, but gives a Exception initializing TldLocationsCache: XML parsing error on file /WEB-INF/web.xml: (line 72, col 11): The content of element type web-app must match (icon?,display-name?,description?,distributable?,context-param*,servlet*,servlet-mapping*,session-config?,mime-mapping*,welcome-file-list?,error-page*,taglib*,resource-ref*,security-constraint*,login-config?,security-role*,env-entry*,ejb-ref*). message when the indicated (java.lang.ClassNotFoundException) is encountered. I checked docs and books, but I can't find anything wrong with the web.xml. The template web.xml I used is the one from the struts 1.2.4 package. Could anyone please tell me what is wrong with this deployment descriptor? Thank you very much in advance for any input, Ian. ?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/j2ee/dtds/web-app_2_2.dtd; web-app display-nameKNMI Operational DataCenter/display-name !-- Standard Action Servlet Configuration (with debugging) -- servlet servlet-nameaction/servlet-name servlet-classorg.apache.struts.action.ActionServlet/servlet-class init-param param-nameconfig/param-name param-value/WEB-INF/struts-config.xml/param-value /init-param init-param param-namedebug/param-name param-value3/param-value /init-param init-param param-namedetail/param-name param-value3/param-value /init-param load-on-startup3/load-on-startup /servlet !-- Standard Action Servlet Mapping -- servlet-mapping servlet-nameaction/servlet-name url-pattern*.do/url-pattern /servlet-mapping !-- The Usual Welcome File List -- welcome-file-list welcome-fileindex.jsp/welcome-file /welcome-file-list !-- Struts Tag Library Descriptors -- taglib taglib-uri/tags/struts-bean/taglib-uri taglib-location/WEB-INF/struts-bean.tld/taglib-location /taglib taglib taglib-uri/tags/struts-html/taglib-uri taglib-location/WEB-INF/struts-html.tld/taglib-location /taglib taglib taglib-uri/tags/struts-logic/taglib-uri taglib-location/WEB-INF/struts-logic.tld/taglib-location /taglib taglib taglib-uri/tags/struts-nested/taglib-uri taglib-location/WEB-INF/struts-nested.tld/taglib-location /taglib taglib taglib-uri/tags/struts-tiles/taglib-uri taglib-location/WEB-INF/struts-tiles.tld/taglib-location /taglib error-page exception-typejava.lang.ClassNotFoundException/exception-type location/pages/apperror.jsp/location /error-page /web-app - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
OutOfMemory
Hello, I have some OUtOfMemory exception with my tomcat and I was wondering how could I increase the amount of memory allocate to Tomcat. Right now it is running the default amount of memory which is 64 MB and it is not enought. Thanx by advance Edouard - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: OutOfMemory
CATALINA_OPT=-Xmx256M -Xms256M Viorel Dragomir . .. --- - Original Message - From: Edouard Dalla-Costa To: Tomcat Users List Sent: Tuesday, March 01, 2005 11:11 Subject: OutOfMemory Hello, I have some OUtOfMemory exception with my tomcat and I was wondering how could I increase the amount of memory allocate to Tomcat. Right now it is running the default amount of memory which is 64 MB and it is not enought. Thanx by advance Edouard - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: error-page directive
Hi, Have you tried to move your the error-page directive to between the welcome-file-list and taglib directives. Seem to remember this happening to me some time ago as well. Trond !-- The Usual Welcome File List -- welcome-file-list welcome-fileindex.jsp/welcome-file /welcome-file-list error-page exception-typejava.lang.ClassNotFoundException/exception-type location/pages/apperror.jsp/location /error-page !-- Struts Tag Library Descriptors -- taglib taglib-uri/tags/struts-bean/taglib-uri taglib-location/WEB-INF/struts-bean.tld/taglib-location /taglib /web-app - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat multiple instancies
Hello everybody, I need to run 2 different instacies of Tomcat 4.1. The instacies are different in both used common and shared jars and the webapplications. Is this managable? How? Thank you in advance, Andrea Anastasescu ___ Gesendet von Yahoo! Mail - Jetzt mit 250MB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat multiple instancies
From: Andrea Anastasescu [mailto:[EMAIL PROTECTED] I need to run 2 different instacies of Tomcat 4.1. The instacies are different in both used common and shared jars and the webapplications. Is this managable? How? Yes, and you can do it the obvious way: copy your Tomcat installation directory, set each installation up the way you want it, and use the catalina script files to start each installation. There are probably tidier ways of doing the job, but this does work. - Peter - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat multiple instancies
You just have to change the ports that are used in the server.xml. Ta Matt -Original Message- From: Andrea Anastasescu [mailto:[EMAIL PROTECTED] Sent: 01 March 2005 09:35 To: Tomcat Users List Subject: Tomcat multiple instancies Hello everybody, I need to run 2 different instacies of Tomcat 4.1. The instacies are different in both used common and shared jars and the webapplications. Is this managable? How? Thank you in advance, Andrea Anastasescu ___ Gesendet von Yahoo! Mail - Jetzt mit 250MB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de - 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: error-page directive
On Tue, 01 Mar 2005 10:32:42 +0100, Trond G. Ziarkowski [EMAIL PROTECTED] wrote: Hi, Have you tried to move your the error-page directive to between the welcome-file-list and taglib directives. Seem to remember this happening to me some time ago as well. That seems to get rid of the message, but it doesn't seem to honour the directive, because I still get tomcats default exception stacktrace page. Thank you so far, it's much appreciated, Ian. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
session load-balancing and clustering of tomcat
Hi, I am using tomcat 5.0.28. My question is how to setup sticky-session load-balancing and clustering of tomcat? Do I need to upgrade to tomcat 5.5.X? Note the requirement is on sticky-session. - Jim The information in this email is confidential and is intended solely for the addressee(s). Access to this email by anyone else is unauthorized. If you are not an intended recipient, please notify the sender of this email immediately. You should not copy, use or disseminate the information contained in the email. Any views expressed in this message are those of the individual sender, except where the sender specifically states them to be the views of Capco. http://www.capco.com/
Re: Problems loading external stylesheet in Tomcat
haim said: I had something similar and it was because I placed the link element outside of the head element in my a JSP file that was included as an header. Check it out , haim . Thanks for the suggestion, but no, I don't have any errors of that type. One of my sites use this linking technique: style type=text/css media=screen !-- @import style/style.css; -- /style But, neither that nor the other way:link rel=stylesheet type=text/ css href=style.css title=Stilmallar rev=stylesheet (with or without an ending /) work the very first load of the day (or something like that). After that firslt load it will work on in any browser on any machine. The only thing that got me wanting to solve it was that if one site didn't display the stylesheets, then no other site did the same. I have a feeling this is some kind of cache problem, but I have tried to delete the cache. I'll report back if I find out what is causing the trouble, but it's hard to determine as it appears randomly. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Change in JSP error handling in Tomcat5.0??
Hi. While testing a JSP error page that was working fine 9 months ago, I found that the page is not now performing its function. Instead of displaying an appropriate error message when the associated JSP receives alphabetic data instead of the integer data that it is expecting, an HTTP 500 message saying that the data manipulation JSP cannot be displayed is generated by the browser. The simple application behaves fine when valid data is entered, and the JSP error page itself can be rendered directly (if a suitable check is made for the implicit object 'exception' being equal to null). Here is the (very ordinary) error page declaration line in the data manipulation JSP: %@ page errorPage=AdderError.jsp % Here is the (equally ordinary) associated line in the JSP error page: %@ page isErrorPage=true % The only changes that have taken place since I last tested these pages are the replacement of Java SDK1.4.2 with SDK1.5.0/5.0 and the replacement of Tomcat 4.1 with Tomcat 5.0. It seems highly unlikely that the change of SDK could have led to this problem, but I suppose that there may be some change to Tomcat (or, more likely, version 2.4 of the servlet API) that has passed me by. Can anybody shed light on the cause of this change in behaviour? Any assistance would be greatly appreciated. Cheers. Jan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: error-page directive
Perhaps, try to put error-page BEFORE taglib... On Tue, 1 Mar 2005 10:07:49 +0100 Ian van der Neut [EMAIL PROTECTED] wrote: Hello all, I have a web.xml (attached) that works fine if I remove the error-page directive, but gives a Exception initializing TldLocationsCache: XML parsing error on file /WEB-INF/web.xml: (line 72, col 11): The content of element type web-app must match (icon?,display-name?,description?,distributable?,context-param*,servlet*,servlet-mapping*,session-config?,mime-mapping*,welcome-file-list?,error-page*,taglib*,resource-ref*,security-constraint*,login-config?,security-role*,env-entry*,ejb-ref*). message when the indicated (java.lang.ClassNotFoundException) is encountered. I checked docs and books, but I can't find anything wrong with the web.xml. The template web.xml I used is the one from the struts 1.2.4 package. Could anyone please tell me what is wrong with this deployment descriptor? Thank you very much in advance for any input, Ian. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: error-page directive
On Tue, 1 Mar 2005 10:41:36 +0100, Ian van der Neut [EMAIL PROTECTED] wrote: On Tue, 01 Mar 2005 10:32:42 +0100, Trond G. Ziarkowski [EMAIL PROTECTED] wrote: Hi, Have you tried to move your the error-page directive to between the welcome-file-list and taglib directives. Seem to remember this happening to me some time ago as well. That seems to get rid of the message, but it doesn't seem to honour the directive, because I still get tomcats default exception stacktrace page. The fact that it is not honoured seems to be because of a problem in the apperror.jsp file. Moving the error-page directive before the taglib directive solves the problem indeed. Just curious, does order matter in web.xml? If so, where is this documented? Or is this just a bug? Thank you very much, Ian. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: error-page directive
Hi, the order does matter, and the order is specified in the dtd that you are using for your webapp. Trond Ian van der Neut wrote: On Tue, 1 Mar 2005 10:41:36 +0100, Ian van der Neut [EMAIL PROTECTED] wrote: On Tue, 01 Mar 2005 10:32:42 +0100, Trond G. Ziarkowski [EMAIL PROTECTED] wrote: Hi, Have you tried to move your the error-page directive to between the welcome-file-list and taglib directives. Seem to remember this happening to me some time ago as well. That seems to get rid of the message, but it doesn't seem to honour the directive, because I still get tomcats default exception stacktrace page. The fact that it is not honoured seems to be because of a problem in the apperror.jsp file. Moving the error-page directive before the taglib directive solves the problem indeed. Just curious, does order matter in web.xml? If so, where is this documented? Or is this just a bug? Thank you very much, Ian. - 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: session load-balancing and clustering of tomcat
1) In server.xml : - uncomment the AJP 1.3 Connector (on port 8009), - set the jvmRoute in each Engine example : Engine name=Standalone defaultHost=host1 debug=0 jvmRoute=t1_ajp13 2) then add the module mod_jk in apache with jk workers defined like this : worker.list=t1_ajp13,t2_ajp13,loadbalancer worker.t1_ajp13.type=ajp13 worker.t1_ajp13.host=host1 worker.t1_ajp13.port=8009 worker.t1_ajp13.lbfactor=1 worker.t1_ajp13.socket_timeout=5 worker.t1_ajp13.recycle_timeout=10 worker.t2_ajp13.type=ajp13 worker.t2_ajp13.host=host2 worker.t2_ajp13.port=8009 worker.t2_ajp13.lbfactor=1 worker.t2_ajp13.socket_timeout=5 worker.t2_ajp13.recycle_timeout=10 worker.loadbalancer.type=lb worker.loadbalancer.balanced_workers= t1_ajp13,t2_ajp13 then, you can load-balance your virtual host like this : JkMount /*.jsp loadbalancer 3) Conclusion : Thanks to mod_jk, you'll have load-balancing (with sticky sessions with JSESSION_ID like this : x.t1_ajp13 or y.t2_ajp13), and failover. This feature work with all tomcats (TC3.3-TC5) On Tue, 1 Mar 2005 18:08:59 +0800 Sng Wee Jim [EMAIL PROTECTED] wrote: Hi, I am using tomcat 5.0.28. My question is how to setup sticky-session load-balancing and clustering of tomcat? Do I need to upgrade to tomcat 5.5.X? Note the requirement is on sticky-session. - Jim The information in this email is confidential and is intended solely for the addressee(s). Access to this email by anyone else is unauthorized. If you are not an intended recipient, please notify the sender of this email immediately. You should not copy, use or disseminate the information contained in the email. Any views expressed in this message are those of the individual sender, except where the sender specifically states them to be the views of Capco. http://www.capco.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Need access to classes outside Tomcat for JSPs
Why do you want your classes outside of Tomcat? Copy the classes to your project when you build and eliminate the dependency. Or better yet, use a build environment like Ant to do the copying for you. As a bonus, it'll catch errors before you get to production and the webapp will be more portable. --David Dan wrote: Classpath problem. Really frustrating. I'm trying to duplicate a setup on system A to system B and can't get it working. My problem is when I access the JSP page, Tomcat complains of a ClassNotFound exception. This happens with all of my custom classes. If I create a simple JSP page with no custom classes the JSP compiles fine. When I manually execute the class via java com.xxx.MyClass it responds appropriately (my environment's CLASSPATH includes the custom library paths). My custom classes live outside of the Tomcat directory (see below) because I use these classes in other non-web based applications, so they need to be available system wide. I have melted my brain today trying to figure out why system A works with this configuration but system B gives me the ClassNotFound exception. I have even copied my entire Tomcat directory from system A to system B with no change. I thought perhaps I was starting the service with additional parameters but I don't see any in the registry settings. Does anyone have an educated guess as to why I can't get this thing to work the way it's working on the other system and/or how I can get this working with my custom classes OUTSIDE of Tomcat. Win2K SP4 Tomcat v5.0.27 as NT Service e:\java\tomcat e:\java\sdk (JDK 1.4.2) e:\java\library\custom\ (custom libraries) e:\java\library\basic (libraries from other sources) - 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: error-page directive
The order matters. It's a requirement that comes from validating the web.xml against a DTD -- not anything that Tomcat itself requires. In the servlet 2.4 spec, they moved to valdating against a schema so order no longer matters. --David Ian van der Neut wrote: On Tue, 1 Mar 2005 10:41:36 +0100, Ian van der Neut [EMAIL PROTECTED] wrote: On Tue, 01 Mar 2005 10:32:42 +0100, Trond G. Ziarkowski [EMAIL PROTECTED] wrote: Hi, Have you tried to move your the error-page directive to between the welcome-file-list and taglib directives. Seem to remember this happening to me some time ago as well. That seems to get rid of the message, but it doesn't seem to honour the directive, because I still get tomcats default exception stacktrace page. The fact that it is not honoured seems to be because of a problem in the apperror.jsp file. Moving the error-page directive before the taglib directive solves the problem indeed. Just curious, does order matter in web.xml? If so, where is this documented? Or is this just a bug? Thank you very much, Ian. - 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: session load-balancing and clustering of tomcat
My gotcha was setting the jvmRoute in EACH/EVERY Engine! -Original Message- From: Lionel Farbos [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 01, 2005 8:20 AM To: Tomcat Users List Cc: [EMAIL PROTECTED] Subject: Re: session load-balancing and clustering of tomcat 1) In server.xml : - uncomment the AJP 1.3 Connector (on port 8009), - set the jvmRoute in each Engine example : Engine name=Standalone defaultHost=host1 debug=0 jvmRoute=t1_ajp13 2) then add the module mod_jk in apache with jk workers defined like this : worker.list=t1_ajp13,t2_ajp13,loadbalancer worker.t1_ajp13.type=ajp13 worker.t1_ajp13.host=host1 worker.t1_ajp13.port=8009 worker.t1_ajp13.lbfactor=1 worker.t1_ajp13.socket_timeout=5 worker.t1_ajp13.recycle_timeout=10 worker.t2_ajp13.type=ajp13 worker.t2_ajp13.host=host2 worker.t2_ajp13.port=8009 worker.t2_ajp13.lbfactor=1 worker.t2_ajp13.socket_timeout=5 worker.t2_ajp13.recycle_timeout=10 worker.loadbalancer.type=lb worker.loadbalancer.balanced_workers= t1_ajp13,t2_ajp13 then, you can load-balance your virtual host like this : JkMount /*.jsp loadbalancer 3) Conclusion : Thanks to mod_jk, you'll have load-balancing (with sticky sessions with JSESSION_ID like this : x.t1_ajp13 or y.t2_ajp13), and failover. This feature work with all tomcats (TC3.3-TC5) On Tue, 1 Mar 2005 18:08:59 +0800 Sng Wee Jim [EMAIL PROTECTED] wrote: Hi, I am using tomcat 5.0.28. My question is how to setup sticky-session load-balancing and clustering of tomcat? Do I need to upgrade to tomcat 5.5.X? Note the requirement is on sticky-session. - Jim - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Need access to classes outside Tomcat for JSPs
Do people read anymore? As previously stated in the original post, these classes need to be available to other non-web, non TomCat applications. I do not want to have to maintain two different repositories. Also as previously stated I have the desired configuration running on another box but I cannot duplicate the setup on this box. If your only advice is to move them into TomCat, then please don't even bother replying. At 08:21 AM 3/1/2005, David wrote: Why do you want your classes outside of Tomcat? Copy the classes to your project when you build and eliminate the dependency. Or better yet, use a build environment like Ant to do the copying for you. As a bonus, it'll catch errors before you get to production and the webapp will be more portable. --David Dan wrote: Classpath problem. Really frustrating. I'm trying to duplicate a setup on system A to system B and can't get it working. My problem is when I access the JSP page, Tomcat complains of a ClassNotFound exception. This happens with all of my custom classes. If I create a simple JSP page with no custom classes the JSP compiles fine. When I manually execute the class via java com.xxx.MyClass it responds appropriately (my environment's CLASSPATH includes the custom library paths). My custom classes live outside of the Tomcat directory (see below) because I use these classes in other non-web based applications, so they need to be available system wide. I have melted my brain today trying to figure out why system A works with this configuration but system B gives me the ClassNotFound exception. I have even copied my entire Tomcat directory from system A to system B with no change. I thought perhaps I was starting the service with additional parameters but I don't see any in the registry settings. Does anyone have an educated guess as to why I can't get this thing to work the way it's working on the other system and/or how I can get this working with my custom classes OUTSIDE of Tomcat. Win2K SP4 Tomcat v5.0.27 as NT Service e:\java\tomcat e:\java\sdk (JDK 1.4.2) e:\java\library\custom\ (custom libraries) e:\java\library\basic (libraries from other sources) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Need access to classes outside Tomcat for JSPs
1. Yes people do read, and offer advice based on whether a) they can and b) how rude the poster is. You fall into (b) right now, so good luck. 2. Tomcat, not TomCat. 3. This is a voluntary user list and you should not expect to receive help as you seem to. -Original Message- From: Dan [mailto:[EMAIL PROTECTED] Sent: 01 March 2005 13:55 To: Tomcat Users List Subject: Re: Need access to classes outside Tomcat for JSPs Do people read anymore? As previously stated in the original post, these classes need to be available to other non-web, non TomCat applications. I do not want to have to maintain two different repositories. Also as previously stated I have the desired configuration running on another box but I cannot duplicate the setup on this box. If your only advice is to move them into TomCat, then please don't even bother replying. At 08:21 AM 3/1/2005, David wrote: Why do you want your classes outside of Tomcat? Copy the classes to your project when you build and eliminate the dependency. Or better yet, use a build environment like Ant to do the copying for you. As a bonus, it'll catch errors before you get to production and the webapp will be more portable. --David Dan wrote: Classpath problem. Really frustrating. I'm trying to duplicate a setup on system A to system B and can't get it working. My problem is when I access the JSP page, Tomcat complains of a ClassNotFound exception. This happens with all of my custom classes. If I create a simple JSP page with no custom classes the JSP compiles fine. When I manually execute the class via java com.xxx.MyClass it responds appropriately (my environment's CLASSPATH includes the custom library paths). My custom classes live outside of the Tomcat directory (see below) because I use these classes in other non-web based applications, so they need to be available system wide. I have melted my brain today trying to figure out why system A works with this configuration but system B gives me the ClassNotFound exception. I have even copied my entire Tomcat directory from system A to system B with no change. I thought perhaps I was starting the service with additional parameters but I don't see any in the registry settings. Does anyone have an educated guess as to why I can't get this thing to work the way it's working on the other system and/or how I can get this working with my custom classes OUTSIDE of Tomcat. Win2K SP4 Tomcat v5.0.27 as NT Service e:\java\tomcat e:\java\sdk (JDK 1.4.2) e:\java\library\custom\ (custom libraries) e:\java\library\basic (libraries from other sources) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE --- QAS Ltd. Developers of QuickAddress Software a href=http://www.qas.com;www.qas.com/a Registered in England: No 2582055 Registered in Australia: No 082 851 474 --- /FONT - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Need access to classes outside Tomcat for JSPs
You can redirect the tomcat's work directory to your classes. That should work for you ! Viorel Dragomir . .. --- - Original Message - From: Allistair Crossley To: Tomcat Users List Sent: Tuesday, March 01, 2005 15:56 Subject: RE: Need access to classes outside Tomcat for JSPs 1. Yes people do read, and offer advice based on whether a) they can and b) how rude the poster is. You fall into (b) right now, so good luck. 2. Tomcat, not TomCat. 3. This is a voluntary user list and you should not expect to receive help as you seem to. -Original Message- From: Dan [mailto:[EMAIL PROTECTED] Sent: 01 March 2005 13:55 To: Tomcat Users List Subject: Re: Need access to classes outside Tomcat for JSPs Do people read anymore? As previously stated in the original post, these classes need to be available to other non-web, non TomCat applications. I do not want to have to maintain two different repositories. Also as previously stated I have the desired configuration running on another box but I cannot duplicate the setup on this box. If your only advice is to move them into TomCat, then please don't even bother replying. At 08:21 AM 3/1/2005, David wrote: Why do you want your classes outside of Tomcat? Copy the classes to your project when you build and eliminate the dependency. Or better yet, use a build environment like Ant to do the copying for you. As a bonus, it'll catch errors before you get to production and the webapp will be more portable. --David Dan wrote: Classpath problem. Really frustrating. I'm trying to duplicate a setup on system A to system B and can't get it working. My problem is when I access the JSP page, Tomcat complains of a ClassNotFound exception. This happens with all of my custom classes. If I create a simple JSP page with no custom classes the JSP compiles fine. When I manually execute the class via java com.xxx.MyClass it responds appropriately (my environment's CLASSPATH includes the custom library paths). My custom classes live outside of the Tomcat directory (see below) because I use these classes in other non-web based applications, so they need to be available system wide. I have melted my brain today trying to figure out why system A works with this configuration but system B gives me the ClassNotFound exception. I have even copied my entire Tomcat directory from system A to system B with no change. I thought perhaps I was starting the service with additional parameters but I don't see any in the registry settings. Does anyone have an educated guess as to why I can't get this thing to work the way it's working on the other system and/or how I can get this working with my custom classes OUTSIDE of Tomcat. Win2K SP4 Tomcat v5.0.27 as NT Service e:\java\tomcat e:\java\sdk (JDK 1.4.2) e:\java\library\custom\ (custom libraries) e:\java\library\basic (libraries from other sources) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE --- QAS Ltd. Developers of QuickAddress Software a href=http://www.qas.com;www.qas.com/a Registered in England: No 2582055 Registered in Australia: No 082 851 474 --- /FONT - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Questions About jakarta-tomcat-5.0.28
Hello, I am running Tomcat 4.1.31 at work (dev) and I have a 5.0.28 at home. I have been working with Tomcat for quite some time, and ran into a problem trying to set up a webapp. At work on my 4.1.31, when create a new web-app, I edit the server.xml file and add my Context (see context below) Anyway when I edit the server.xml on my 5.0.28 I noticed there is no example Context in which to copy, edit and duplicate. That is how I have always done it. Upon reading the docs, it looks like a lot is controlled by web front end. Am I correct on this? And if so, where and how do I edit to add Loggers, and Resources, etc to it? Or can I just add a new Context somewhere in the server.xml like I used to, and if so where in that file (I couldn't find a DTD for server.xml). I get a feeling from the list that I should stay current, but I am having trouble understanding the current setups, etc. Thanks for any input. Sincerely Scott Context path=/builder docBase=builder debug=5 reloadable=true crossContext=true Logger className=org.apache.catalina.logger.FileLogger prefix=localhost_builder_log. suffix=.txt timestamp=true/ Resource name=jdbc/JNDITestTwo auth=Container type=javax.sql.DataSource/ ResourceParams name=jdbc/JNDITestTwo parameter nameremoveAbandoned/name valuetrue/value /parameter parameter nameremoveAbandonedTimeout/name value60/value /parameter parameter namelogAbandoned/name valuetrue/value /parameter parameter namefactory/name valueorg.apache.commons.dbcp.BasicDataSourceFactory/value /parameter !-- Maximum number of dB connections in pool. Make sure you configure your mysqld max_connections large enough to handle all of your db connections. Set to 0 for no limit. -- parameter namemaxActive/name value100/value /parameter !-- Maximum number of idle dB connections to retain in pool. Set to 0 for no limit. -- parameter namemaxIdle/name value30/value /parameter !-- Maximum time to wait for a dB connection to become available in ms, in this example 10 seconds. An Exception is thrown if this timeout is exceeded. Set to -1 to wait indefinitely. -- parameter namemaxWait/name value1/value /parameter !-- MySQL dB username and password for dB connections -- parameter nameusername/name valuespurcell/value /parameter parameter namepassword/name valuespurcell/value /parameter !-- Class name for mm.mysql JDBC driver -- parameter namedriverClassName/name valueorg.gjt.mm.mysql.Driver/value /parameter !-- The JDBC connection url for connecting to your MySQL dB. The autoReconnect=true argument to the url makes sure that the mm.mysql JDBC Driver will automatically reconnect if mysqld closed the connection. mysqld by default closes idle connections after 8 hours. -- parameter nameurl/name valuejdbc:mysql://localhost:3306/builder?autoReconnect=true/value /parameter /ResourceParams /Context
RE: Questions About jakarta-tomcat-5.0.28
Hi, Check out the Context element documentation for 5.0. You create a new file now that configures your context, and don't add them to server.xml. You can do this in a number of ways,. e.g /yourwebapp/META-INF/context.xml /conf/Catalina/localhost/yourwebapp.xml But it's all there in the docs in the configuration section. Come back if you need more help after reading those. Cheers, Allistair. -Original Message- From: Scott Purcell [mailto:[EMAIL PROTECTED] Sent: 01 March 2005 14:09 To: tomcat-user@jakarta.apache.org Subject: Questions About jakarta-tomcat-5.0.28 Hello, I am running Tomcat 4.1.31 at work (dev) and I have a 5.0.28 at home. I have been working with Tomcat for quite some time, and ran into a problem trying to set up a webapp. At work on my 4.1.31, when create a new web-app, I edit the server.xml file and add my Context (see context below) Anyway when I edit the server.xml on my 5.0.28 I noticed there is no example Context in which to copy, edit and duplicate. That is how I have always done it. Upon reading the docs, it looks like a lot is controlled by web front end. Am I correct on this? And if so, where and how do I edit to add Loggers, and Resources, etc to it? Or can I just add a new Context somewhere in the server.xml like I used to, and if so where in that file (I couldn't find a DTD for server.xml). I get a feeling from the list that I should stay current, but I am having trouble understanding the current setups, etc. Thanks for any input. Sincerely Scott Context path=/builder docBase=builder debug=5 reloadable=true crossContext=true Logger className=org.apache.catalina.logger.FileLogger prefix=localhost_builder_log. suffix=.txt timestamp=true/ Resource name=jdbc/JNDITestTwo auth=Container type=javax.sql.DataSource/ ResourceParams name=jdbc/JNDITestTwo parameter nameremoveAbandoned/name valuetrue/value /parameter parameter nameremoveAbandonedTimeout/name value60/value /parameter parameter namelogAbandoned/name valuetrue/value /parameter parameter namefactory/name valueorg.apache.commons.dbcp.BasicDataSourceFactory/value /parameter !-- Maximum number of dB connections in pool. Make sure you configure your mysqld max_connections large enough to handle all of your db connections. Set to 0 for no limit. -- parameter namemaxActive/name value100/value /parameter !-- Maximum number of idle dB connections to retain in pool. Set to 0 for no limit. -- parameter namemaxIdle/name value30/value /parameter !-- Maximum time to wait for a dB connection to become available in ms, in this example 10 seconds. An Exception is thrown if this timeout is exceeded. Set to -1 to wait indefinitely. -- parameter namemaxWait/name value1/value /parameter !-- MySQL dB username and password for dB connections -- parameter nameusername/name valuespurcell/value /parameter parameter namepassword/name valuespurcell/value /parameter !-- Class name for mm.mysql JDBC driver -- parameter namedriverClassName/name valueorg.gjt.mm.mysql.Driver/value /parameter !-- The JDBC connection url for connecting to your MySQL dB. The autoReconnect=true argument to the url makes sure that the mm.mysql JDBC Driver will automatically reconnect if mysqld closed the connection. mysqld by default closes idle connections after 8 hours. -- parameter nameurl/name valuejdbc:mysql://localhost:3306/builder?autoReconnect=true/value /parameter /ResourceParams /Context FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE --- QAS Ltd. Developers of QuickAddress Software a href=http://www.qas.com;www.qas.com/a Registered in England: No 2582055 Registered in Australia: No 082 851 474 ---
RE: Need access to classes outside Tomcat for JSPs
Everybody take it easy. We've all at least thought what Dan posted, at one time or another, especially when dealing with Tomcat documentation (official or otherwise) and the pro-this or pro-that solution folks. There's no need to escalate this into a flame war. I only wish I was far enough along to help, but I've only gotten Tomcat to recognize webapps (well, really just JSP files, but that's b/c of my inexperience and lack of time right now) outside of $CATALINA_HOME. I DO HOWEVER, suspect that a solution is to be had somewhere in your web.xml file (as opposed to server.xml, which is not as fine-tuned for your needs), but these are guesses. So, assuming you're under other pressures, as most of us are, and not just being rude for rudeness' sake, does anyone have a clue how to do this without throwing the baby out with the bath water as the first reply suggested? Think community, -Matt On Tue, 1 Mar 2005, Allistair Crossley wrote: 1. Yes people do read, and offer advice based on whether a) they can and b) how rude the poster is. You fall into (b) right now, so good luck. 2. Tomcat, not TomCat. 3. This is a voluntary user list and you should not expect to receive help as you seem to. -Original Message- From: Dan [mailto:[EMAIL PROTECTED] Sent: 01 March 2005 13:55 To: Tomcat Users List Subject: Re: Need access to classes outside Tomcat for JSPs Do people read anymore? As previously stated in the original post, these classes need to be available to other non-web, non TomCat applications. I do not want to have to maintain two different repositories. Also as previously stated I have the desired configuration running on another box but I cannot duplicate the setup on this box. If your only advice is to move them into TomCat, then please don't even bother replying. At 08:21 AM 3/1/2005, David wrote: Why do you want your classes outside of Tomcat? Copy the classes to your project when you build and eliminate the dependency. Or better yet, use a build environment like Ant to do the copying for you. As a bonus, it'll catch errors before you get to production and the webapp will be more portable. --David Dan wrote: Classpath problem. Really frustrating. I'm trying to duplicate a setup on system A to system B and can't get it working. My problem is when I access the JSP page, Tomcat complains of a ClassNotFound exception. This happens with all of my custom classes. If I create a simple JSP page with no custom classes the JSP compiles fine. When I manually execute the class via java com.xxx.MyClass it responds appropriately (my environment's CLASSPATH includes the custom library paths). My custom classes live outside of the Tomcat directory (see below) because I use these classes in other non-web based applications, so they need to be available system wide. I have melted my brain today trying to figure out why system A works with this configuration but system B gives me the ClassNotFound exception. I have even copied my entire Tomcat directory from system A to system B with no change. I thought perhaps I was starting the service with additional parameters but I don't see any in the registry settings. Does anyone have an educated guess as to why I can't get this thing to work the way it's working on the other system and/or how I can get this working with my custom classes OUTSIDE of Tomcat. Win2K SP4 Tomcat v5.0.27 as NT Service e:\java\tomcat e:\java\sdk (JDK 1.4.2) e:\java\library\custom\ (custom libraries) e:\java\library\basic (libraries from other sources) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE --- QAS Ltd. Developers of QuickAddress Software a href=http://www.qas.com;www.qas.com/a Registered in England: No 2582055 Registered in Australia: No 082 851 474 --- /FONT - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Matthew Kozak Rutgers University-Camden [EMAIL PROTECTED] ** They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety. -Ben Franklin ** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Need access to classes outside Tomcat for JSPs
I sent one through, but it has not come in yet (copied below) ... Right, a well formed web application is packaged with its dependent classes. Tomcat loads classes from either WEB-INF/classes folder or the lib folder in the form of a JAR for your webapp, or other places like common/lib and shared/lib. It does not use your system classpath. The previous poster was absolutely right with his advice. You need to sort out your build environment. You can still have 1 source respository, but when you build (via Ant let's say since it's the most ubiquitous) you direct compiled classes into your 2 locations. You could perhaps wrap them in a JAR for Tomcat's purposes, it's up to you. Having the same classes twice is no bad thing - having source twice is. -Original Message- From: Matt [mailto:[EMAIL PROTECTED] Sent: 01 March 2005 14:15 To: Tomcat Users List Subject: RE: Need access to classes outside Tomcat for JSPs Everybody take it easy. We've all at least thought what Dan posted, at one time or another, especially when dealing with Tomcat documentation (official or otherwise) and the pro-this or pro-that solution folks. There's no need to escalate this into a flame war. I only wish I was far enough along to help, but I've only gotten Tomcat to recognize webapps (well, really just JSP files, but that's b/c of my inexperience and lack of time right now) outside of $CATALINA_HOME. I DO HOWEVER, suspect that a solution is to be had somewhere in your web.xml file (as opposed to server.xml, which is not as fine-tuned for your needs), but these are guesses. So, assuming you're under other pressures, as most of us are, and not just being rude for rudeness' sake, does anyone have a clue how to do this without throwing the baby out with the bath water as the first reply suggested? Think community, -Matt On Tue, 1 Mar 2005, Allistair Crossley wrote: 1. Yes people do read, and offer advice based on whether a) they can and b) how rude the poster is. You fall into (b) right now, so good luck. 2. Tomcat, not TomCat. 3. This is a voluntary user list and you should not expect to receive help as you seem to. -Original Message- From: Dan [mailto:[EMAIL PROTECTED] Sent: 01 March 2005 13:55 To: Tomcat Users List Subject: Re: Need access to classes outside Tomcat for JSPs Do people read anymore? As previously stated in the original post, these classes need to be available to other non-web, non TomCat applications. I do not want to have to maintain two different repositories. Also as previously stated I have the desired configuration running on another box but I cannot duplicate the setup on this box. If your only advice is to move them into TomCat, then please don't even bother replying. At 08:21 AM 3/1/2005, David wrote: Why do you want your classes outside of Tomcat? Copy the classes to your project when you build and eliminate the dependency. Or better yet, use a build environment like Ant to do the copying for you. As a bonus, it'll catch errors before you get to production and the webapp will be more portable. --David Dan wrote: Classpath problem. Really frustrating. I'm trying to duplicate a setup on system A to system B and can't get it working. My problem is when I access the JSP page, Tomcat complains of a ClassNotFound exception. This happens with all of my custom classes. If I create a simple JSP page with no custom classes the JSP compiles fine. When I manually execute the class via java com.xxx.MyClass it responds appropriately (my environment's CLASSPATH includes the custom library paths). My custom classes live outside of the Tomcat directory (see below) because I use these classes in other non-web based applications, so they need to be available system wide. I have melted my brain today trying to figure out why system A works with this configuration but system B gives me the ClassNotFound exception. I have even copied my entire Tomcat directory from system A to system B with no change. I thought perhaps I was starting the service with additional parameters but I don't see any in the registry settings. Does anyone have an educated guess as to why I can't get this thing to work the way it's working on the other system and/or how I can get this working with my custom classes OUTSIDE of Tomcat. Win2K SP4 Tomcat v5.0.27 as NT Service e:\java\tomcat e:\java\sdk (JDK 1.4.2) e:\java\library\custom\ (custom libraries) e:\java\library\basic (libraries from other sources) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,
RE: Questions About jakarta-tomcat-5.0.28
Yes, the documentation is not as clear as it could be; however, Allistair: How does this differ from my Context.../ in server.xml to get Tomcat to recognize webapps outside of $CATALINA_HOME? Certainly Context.../'s are still relevant in server.xml, so perhaps I misunderstand this exchange, and there needs to be clarification on the TYPES of Context.../'s we're talking about in each case? Thanks, -Matt On Tue, 1 Mar 2005, Allistair Crossley wrote: Hi, Check out the Context element documentation for 5.0. You create a new file now that configures your context, and don't add them to server.xml. You can do this in a number of ways,. e.g /yourwebapp/META-INF/context.xml /conf/Catalina/localhost/yourwebapp.xml But it's all there in the docs in the configuration section. Come back if you need more help after reading those. Cheers, Allistair. -Original Message- From: Scott Purcell [mailto:[EMAIL PROTECTED] Sent: 01 March 2005 14:09 To: tomcat-user@jakarta.apache.org Subject: Questions About jakarta-tomcat-5.0.28 Hello, I am running Tomcat 4.1.31 at work (dev) and I have a 5.0.28 at home. I have been working with Tomcat for quite some time, and ran into a problem trying to set up a webapp. At work on my 4.1.31, when create a new web-app, I edit the server.xml file and add my Context (see context below) Anyway when I edit the server.xml on my 5.0.28 I noticed there is no example Context in which to copy, edit and duplicate. That is how I have always done it. Upon reading the docs, it looks like a lot is controlled by web front end. Am I correct on this? And if so, where and how do I edit to add Loggers, and Resources, etc to it? Or can I just add a new Context somewhere in the server.xml like I used to, and if so where in that file (I couldn't find a DTD for server.xml). I get a feeling from the list that I should stay current, but I am having trouble understanding the current setups, etc. Thanks for any input. Sincerely Scott Context path=/builder docBase=builder debug=5 reloadable=true crossContext=true Logger className=org.apache.catalina.logger.FileLogger prefix=localhost_builder_log. suffix=.txt timestamp=true/ Resource name=jdbc/JNDITestTwo auth=Container type=javax.sql.DataSource/ ResourceParams name=jdbc/JNDITestTwo parameter nameremoveAbandoned/name valuetrue/value /parameter parameter nameremoveAbandonedTimeout/name value60/value /parameter parameter namelogAbandoned/name valuetrue/value /parameter parameter namefactory/name valueorg.apache.commons.dbcp.BasicDataSourceFactory/value /parameter !-- Maximum number of dB connections in pool. Make sure you configure your mysqld max_connections large enough to handle all of your db connections. Set to 0 for no limit. -- parameter namemaxActive/name value100/value /parameter !-- Maximum number of idle dB connections to retain in pool. Set to 0 for no limit. -- parameter namemaxIdle/name value30/value /parameter !-- Maximum time to wait for a dB connection to become available in ms, in this example 10 seconds. An Exception is thrown if this timeout is exceeded. Set to -1 to wait indefinitely. -- parameter namemaxWait/name value1/value /parameter !-- MySQL dB username and password for dB connections -- parameter nameusername/name valuespurcell/value /parameter parameter namepassword/name valuespurcell/value /parameter !-- Class name for mm.mysql JDBC driver -- parameter namedriverClassName/name valueorg.gjt.mm.mysql.Driver/value /parameter !-- The JDBC connection url for connecting to your MySQL dB. The autoReconnect=true argument to the url makes sure that the mm.mysql JDBC Driver will automatically reconnect if mysqld closed the connection. mysqld by default closes idle connections after 8 hours. -- parameter
RE: Need access to classes outside Tomcat for JSPs
Right, a well formed web application is packaged with its dependent classes. Tomcat loads classes from either WEB-INF/classes folder or the lib folder in the form of a JAR for your webapp, or other places like common/lib and shared/lib. It does not use your system classpath. The previous poster was absolutely right with his advice. You need to sort out your build environment. You can still have 1 source respository, but when you build (via Ant let's say since it's the most ubiquitous) you direct compiled classes into your 2 locations. You could perhaps wrap them in a JAR for Tomcat's purposes, it's up to you. Having the same classes twice is no bad thing - having source twice is. Allistair. -Original Message- From: Dan [mailto:[EMAIL PROTECTED] Sent: 01 March 2005 13:55 To: Tomcat Users List Subject: Re: Need access to classes outside Tomcat for JSPs Do people read anymore? As previously stated in the original post, these classes need to be available to other non-web, non TomCat applications. I do not want to have to maintain two different repositories. Also as previously stated I have the desired configuration running on another box but I cannot duplicate the setup on this box. If your only advice is to move them into TomCat, then please don't even bother replying. At 08:21 AM 3/1/2005, David wrote: Why do you want your classes outside of Tomcat? Copy the classes to your project when you build and eliminate the dependency. Or better yet, use a build environment like Ant to do the copying for you. As a bonus, it'll catch errors before you get to production and the webapp will be more portable. --David Dan wrote: Classpath problem. Really frustrating. I'm trying to duplicate a setup on system A to system B and can't get it working. My problem is when I access the JSP page, Tomcat complains of a ClassNotFound exception. This happens with all of my custom classes. If I create a simple JSP page with no custom classes the JSP compiles fine. When I manually execute the class via java com.xxx.MyClass it responds appropriately (my environment's CLASSPATH includes the custom library paths). My custom classes live outside of the Tomcat directory (see below) because I use these classes in other non-web based applications, so they need to be available system wide. I have melted my brain today trying to figure out why system A works with this configuration but system B gives me the ClassNotFound exception. I have even copied my entire Tomcat directory from system A to system B with no change. I thought perhaps I was starting the service with additional parameters but I don't see any in the registry settings. Does anyone have an educated guess as to why I can't get this thing to work the way it's working on the other system and/or how I can get this working with my custom classes OUTSIDE of Tomcat. Win2K SP4 Tomcat v5.0.27 as NT Service e:\java\tomcat e:\java\sdk (JDK 1.4.2) e:\java\library\custom\ (custom libraries) e:\java\library\basic (libraries from other sources) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE --- QAS Ltd. Developers of QuickAddress Software a href=http://www.qas.com;www.qas.com/a Registered in England: No 2582055 Registered in Australia: No 082 851 474 --- /FONT - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: error-page directive
Hi, again. I don't really think it makes any difference to this application, but I'm using J2SE, not J2EE. Though I am, of course, using a web.xml file for my web application, nothing in this file need reference the error page. At least, that was the case with version 2.3 of the servlet API under Tomcat 4.1, since the error page worked faultlessly under that. Is 2.4 more restrictive? Is an error-page tag now mandatory? Is this change documented? Since I currently have only servlet and servlet-mapping tags in my web.xml, can I simply place the tag where I wish? Sorry for the proliferation of fairly trivial questions. Thanks in anticipation. Cheers. Jan -Original Message- From: David Smith [mailto:[EMAIL PROTECTED] Sent: 01 March 2005 13:27 To: Tomcat Users List Subject: Re: error-page directive The order matters. It's a requirement that comes from validating the web.xml against a DTD -- not anything that Tomcat itself requires. In the servlet 2.4 spec, they moved to valdating against a schema so order no longer matters. --David Ian van der Neut wrote: On Tue, 1 Mar 2005 10:41:36 +0100, Ian van der Neut [EMAIL PROTECTED] wrote: On Tue, 01 Mar 2005 10:32:42 +0100, Trond G. Ziarkowski [EMAIL PROTECTED] wrote: Hi, Have you tried to move your the error-page directive to between the welcome-file-list and taglib directives. Seem to remember this happening to me some time ago as well. That seems to get rid of the message, but it doesn't seem to honour the directive, because I still get tomcats default exception stacktrace page. The fact that it is not honoured seems to be because of a problem in the apperror.jsp file. Moving the error-page directive before the taglib directive solves the problem indeed. Just curious, does order matter in web.xml? If so, where is this documented? Or is this just a bug? Thank you very much, Ian. - 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: Need access to classes outside Tomcat for JSPs
Well, not to be rude, but your design choice is IMHO, poor. Build tools are available and designed to handle version control -- which is what I read as the reason for your reluctance to include the classes directly in the webapp. Every few months, I see someone come on the list asking what you are asking and the advice is always the same: Don't do it that way. Good luck in your efforts. Just don't expect a lot of help on this. --David Dan wrote: Do people read anymore? As previously stated in the original post, these classes need to be available to other non-web, non TomCat applications. I do not want to have to maintain two different repositories. Also as previously stated I have the desired configuration running on another box but I cannot duplicate the setup on this box. If your only advice is to move them into TomCat, then please don't even bother replying. At 08:21 AM 3/1/2005, David wrote: Why do you want your classes outside of Tomcat? Copy the classes to your project when you build and eliminate the dependency. Or better yet, use a build environment like Ant to do the copying for you. As a bonus, it'll catch errors before you get to production and the webapp will be more portable. --David Dan wrote: Classpath problem. Really frustrating. I'm trying to duplicate a setup on system A to system B and can't get it working. My problem is when I access the JSP page, Tomcat complains of a ClassNotFound exception. This happens with all of my custom classes. If I create a simple JSP page with no custom classes the JSP compiles fine. When I manually execute the class via java com.xxx.MyClass it responds appropriately (my environment's CLASSPATH includes the custom library paths). My custom classes live outside of the Tomcat directory (see below) because I use these classes in other non-web based applications, so they need to be available system wide. I have melted my brain today trying to figure out why system A works with this configuration but system B gives me the ClassNotFound exception. I have even copied my entire Tomcat directory from system A to system B with no change. I thought perhaps I was starting the service with additional parameters but I don't see any in the registry settings. Does anyone have an educated guess as to why I can't get this thing to work the way it's working on the other system and/or how I can get this working with my custom classes OUTSIDE of Tomcat. Win2K SP4 Tomcat v5.0.27 as NT Service e:\java\tomcat e:\java\sdk (JDK 1.4.2) e:\java\library\custom\ (custom libraries) e:\java\library\basic (libraries from other sources) - 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: Questions About jakarta-tomcat-5.0.28
According to the question, the poster wanted to know how to configure a context in TC5.0. Taking the context element copied in at the foot of this email, this should be copied out into a file at $CATALINA_HOME/conf/[enginename]/[hostname] which is usually $CATALINA_HOME/conf/Catalina/localhost/ and given the name of the webapp e.g $CATALINA_HOME/conf/Catalina/localhost/mywebapp.xml Nothing needs to change with respect to what he has in the file. In terms of getting it looking at a whole webapp structure outside of Tomcat, you change the path attribute to point to it Context path=/builder docBase=c:\mywebapps\builder debug=5 reloadable=true crossContext=true ... I am not entirely sure, but the reason for all this I believe ties into the deployer management tool if you like to use that. The configuration of web apps is no longer bundled into the server configuration which is a good thing. Note the above will not work per se in Tomcat 5.5, there are further changes to that A. -Original Message- From: Matt [mailto:[EMAIL PROTECTED] Sent: 01 March 2005 14:20 To: Tomcat Users List Subject: RE: Questions About jakarta-tomcat-5.0.28 Yes, the documentation is not as clear as it could be; however, Allistair: How does this differ from my Context.../ in server.xml to get Tomcat to recognize webapps outside of $CATALINA_HOME? Certainly Context.../'s are still relevant in server.xml, so perhaps I misunderstand this exchange, and there needs to be clarification on the TYPES of Context.../'s we're talking about in each case? Thanks, -Matt On Tue, 1 Mar 2005, Allistair Crossley wrote: Hi, Check out the Context element documentation for 5.0. You create a new file now that configures your context, and don't add them to server.xml. You can do this in a number of ways,. e.g /yourwebapp/META-INF/context.xml /conf/Catalina/localhost/yourwebapp.xml But it's all there in the docs in the configuration section. Come back if you need more help after reading those. Cheers, Allistair. -Original Message- From: Scott Purcell [mailto:[EMAIL PROTECTED] Sent: 01 March 2005 14:09 To: tomcat-user@jakarta.apache.org Subject: Questions About jakarta-tomcat-5.0.28 Hello, I am running Tomcat 4.1.31 at work (dev) and I have a 5.0.28 at home. I have been working with Tomcat for quite some time, and ran into a problem trying to set up a webapp. At work on my 4.1.31, when create a new web-app, I edit the server.xml file and add my Context (see context below) Anyway when I edit the server.xml on my 5.0.28 I noticed there is no example Context in which to copy, edit and duplicate. That is how I have always done it. Upon reading the docs, it looks like a lot is controlled by web front end. Am I correct on this? And if so, where and how do I edit to add Loggers, and Resources, etc to it? Or can I just add a new Context somewhere in the server.xml like I used to, and if so where in that file (I couldn't find a DTD for server.xml). I get a feeling from the list that I should stay current, but I am having trouble understanding the current setups, etc. Thanks for any input. Sincerely Scott Context path=/builder docBase=builder debug=5 reloadable=true crossContext=true Logger className=org.apache.catalina.logger.FileLogger prefix=localhost_builder_log. suffix=.txt timestamp=true/ Resource name=jdbc/JNDITestTwo auth=Container type=javax.sql.DataSource/ ResourceParams name=jdbc/JNDITestTwo parameter nameremoveAbandoned/name valuetrue/value /parameter parameter nameremoveAbandonedTimeout/name value60/value /parameter parameter namelogAbandoned/name valuetrue/value /parameter parameter namefactory/name valueorg.apache.commons.dbcp.BasicDataSourceFactory/value /parameter !-- Maximum number of dB connections in pool. Make sure you configure your mysqld max_connections large enough to handle all of your db connections. Set to 0 for no limit. -- parameter namemaxActive/name value100/value /parameter !-- Maximum number of idle dB connections to retain in pool. Set to 0 for no limit. -- parameter namemaxIdle/name value30/value
Running Tomcat from a CD-Rom
Hi, I want to run Tomcat from a CD-Rom complete with a web application. My application needs to be able to run on any PC without networkor an install program so everything would have to be installed on the CD-Rom. To get Tomcat to run directly from CD-Rom I am thinking I will have to change all configuration files that point to the Tomcat home directory and point them instead to a temporary folder under windows. Can anyone think of any other issues I am going to run into or if there is something I have overlooked. Env. is Tomcat 5.0, Windows Thanks in advance, Regards, Julian http://www.seregon.com/
RE: Running Tomcat from a CD-Rom
First thing that comes to mind are the startup scripts .. you'll need to comment out the parts that search for CATALINA_HOME in the system environment, so that it defaults to the current directory on the CD. Next thing I can think of is the fact that Tomcat creates files in the work directory (compiled JSPs). You could perhaps pre-compile your web application sources, but I still think it may end up trying to write to the CD. I personally don't know how, but that's for me the biggest issue I can see - writes to the file system .. other than that, the system will need Java (I think a JDK too unless 5.5 which may be able to run with a JRE) and the JAVA_HOME env. setting too, so how you do that is another question for you to answer ;) A. -Original Message- From: Julian White [mailto:[EMAIL PROTECTED] Sent: 01 March 2005 14:32 To: tomcat-user@jakarta.apache.org Subject: Running Tomcat from a CD-Rom Hi, I want to run Tomcat from a CD-Rom complete with a web application. My application needs to be able to run on any PC without networkor an install program so everything would have to be installed on the CD-Rom. To get Tomcat to run directly from CD-Rom I am thinking I will have to change all configuration files that point to the Tomcat home directory and point them instead to a temporary folder under windows. Can anyone think of any other issues I am going to run into or if there is something I have overlooked. Env. is Tomcat 5.0, Windows Thanks in advance, Regards, Julian http://www.seregon.com/ FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE --- QAS Ltd. Developers of QuickAddress Software a href=http://www.qas.com;www.qas.com/a Registered in England: No 2582055 Registered in Australia: No 082 851 474 --- /FONT - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: error-page directive
For good docs, I've found the servlet spec an excellent place to start. As a foot note though, Tomcat seems switches between servlet spec 2.3 and 2.4 depending on how the web-app node is defined in web.xml. If you declare it against the 2.3 DTD, the 2.3 spec is used. If you use the 2.4 schema, 2.4 spec is adhered to. See the spec for how each is declared in web.xml. Servlet spec 2.3: http://www.jcp.org/en/jsr/detail?id=53 Servlet spec 2.4: http://www.jcp.org/en/jsr/detail?id=154 --David Graba, Jan wrote: Hi, again. I don't really think it makes any difference to this application, but I'm using J2SE, not J2EE. Though I am, of course, using a web.xml file for my web application, nothing in this file need reference the error page. At least, that was the case with version 2.3 of the servlet API under Tomcat 4.1, since the error page worked faultlessly under that. Is 2.4 more restrictive? Is an error-page tag now mandatory? Is this change documented? Since I currently have only servlet and servlet-mapping tags in my web.xml, can I simply place the tag where I wish? Sorry for the proliferation of fairly trivial questions. Thanks in anticipation. Cheers. Jan -Original Message- From: David Smith [mailto:[EMAIL PROTECTED] Sent: 01 March 2005 13:27 To: Tomcat Users List Subject: Re: error-page directive The order matters. It's a requirement that comes from validating the web.xml against a DTD -- not anything that Tomcat itself requires. In the servlet 2.4 spec, they moved to valdating against a schema so order no longer matters. --David Ian van der Neut wrote: On Tue, 1 Mar 2005 10:41:36 +0100, Ian van der Neut [EMAIL PROTECTED] wrote: On Tue, 01 Mar 2005 10:32:42 +0100, Trond G. Ziarkowski [EMAIL PROTECTED] wrote: Hi, Have you tried to move your the error-page directive to between the welcome-file-list and taglib directives. Seem to remember this happening to me some time ago as well. That seems to get rid of the message, but it doesn't seem to honour the directive, because I still get tomcats default exception stacktrace page. The fact that it is not honoured seems to be because of a problem in the apperror.jsp file. Moving the error-page directive before the taglib directive solves the problem indeed. Just curious, does order matter in web.xml? If so, where is this documented? Or is this just a bug? Thank you very much, Ian. - 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: Installation problems on Windows
You're right about jvm.dll... one typo and a bunch of cut-and-paste. None of the options you mentioned worked. Starting with using the ZIP file directly, I apparently have some JAVA_HOME or CLASSPATH problems that prevent the service.bat (is that the one I want to install the Windows XP service?) from completing. I've never had to pay a lot of attention to CLASSPATH at the Windows level, since I use WSAD/Eclipse. JAVA_HOME is new to me, and I was counting on the installer to take care of this mundane detail. That said, I *did* set JAVA_HOME to both the public J2RE1.4.2_07, and the full J2SDK1.4.2_07 on separate installer attempts, along with adding the respective /bin directories to the Path. No go either. Installing to a directory without spaces (C:\www\tomcat5.0) didn't help. In any case, Windows hasn't had a problem with spaces in directory names since Win2K, so I'd be surprised if that were truly the problem. There are a zillion programs that use Windows installers successfully, and if I read the mail archives correctly, Tomcat didn't used to have this problem in versions prior to 5.0.19. Does the installation process actually transfer control to the JVM partway through (which is what Using jvm jvm.dll implies)? If so, what would prevent that transfer of control to the JVM? I've successfully compiled and run Java applications in WSAD/Eclipse on this machine, so there is nothing inherent in my Windows setup that is JVM-unfriendly. Perhaps there's a fix around the corner? Steve -Jason Bainbridge [EMAIL PROTECTED] wrote: - To: Tomcat Users List tomcat-user@jakarta.apache.org From: Jason Bainbridge [EMAIL PROTECTED] Date: 2005-02-28 08:37PM Subject: Re: Installation problems on Windows On Mon, 28 Feb 2005 17:26:31 -0800, [EMAIL PROTECTED] wrote: I hope this message makes it to the list (my Welcome email didn't include the examples of the proper email command syntax, only the headings...?) The Tomcat 5.x binary installer for Windows hangs at the point where it says it's using the dvm.dll. This is true under all the following circumstances: -Windows XP Pro, SP2 -JRE 1.4.2_06 (picks client/dvm.dll) -JDK 1.4.2_07 (picks client/dvm.dll or server/dvm.dll, seemingly at random) -JRE 1.4.2_07 (picks client/dvm.dll) -fresh install (with reboot) of each of the JDKs/JREs above -Tomcat 5.0.28 (should be okay with 1.4.x, right?) -Tomcat 5.5.4 -Tomcat 5.5.7 -leave the partially installed Tomcat directories and registry entries intact on subsequent attempts -remove the Tomcat directories and registry entries prior to subsequent attempts -allow Tomcat to use default installation directory (C:\Program Files\Apache Software Foundation\...) -TinyFirewall enabled, and disabled 1. dvm.dll do you mean jvm.dll? Thought it was just a typo at first but it's consistent through your email. 2. Try installing to a directory path without spaces, Windows is really tempermental about such things. 3. Ditch the binary installer and just download the .zip, if need be a Windows service can be easily installed using the batch file that comes with the .zip 4. Try explicitly setting your JAVA_HOME environment variable to point where you want it. One of those should set you right. Cheers. -- Jason Bainbridge http://kde.org- [EMAIL PROTECTED] Personal Site - http://jasonbainbridge.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: Tomcat clustering and NotSerializableException
CoyoteRequestFacade is the first element in the stack trace - it is not the session stored object that is causing the NotSerializableException. As I said in my prior posting, to resolve this issue you need to: 1) Identify each object that you are explicitly storing in the session and make sure it directly or indirectly (through inheritance) specified that it implements Serializable. 2) Follow the chain from each session object to other objects that it references and make sure they are ALL marked as serializable (again - either directly or indirectly) That will fix your problem. These issues often do not come up until either you: 1. Try and use session replication. 2. Try to persist sessions to a datastore and access from a cluster. 3. Try to persist sessions across a restart of Tomcat. Also, please just reply to the list - not to the list and to the poster. HTH - Richard Sng Wee Jim wrote: But the stacktrace says java.io.NotSerializableException: org.apache.coyote.tomcat5.CoyoteRequestFacade at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1054) at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:13 32) at Since CoyoteRequestFacade is a tomcat class, I assume it has to be fixed by the tomcat team. Unless the actual object that is not Serializable not CoyoteRequestFacade is available somewhere else... - Jim -Original Message- From: Richard Mixon (qwest) [mailto:[EMAIL PROTECTED] Sent: Monday, February 28, 2005 11:13 PM To: Tomcat Users List Subject: RE: Tomcat clustering and NotSerializableException As Matt said its probably your applications objects. When we switched to clustering I was surprised at how many of my session objects I needed to add serializable to. But it was easy work and quickl done. HTH - Richard Dale, Matt wrote: I would guess that this means you have an object in your session that does not implement the serializable interface. Ta Matt -Original Message- From: Sng Wee Jim [mailto:[EMAIL PROTECTED] Sent: 28 February 2005 09:21 To: tomcat-user@jakarta.apache.org Subject: Tomcat clustering and NotSerializableException Hi, I am using Tomcat 5.0.28 on MS Win2k server. After I have uncommented the Cluster element in server.xml, I get the following exceptions on the tomcat console for some actions that are using displaytag. Is it a tomcat bug, since org.apache.coyote.tomcat5.CoyoteRequestFacade is involved? (DeltaManager.java:813)- Unable to serialize delta request java.io.NotSerializableException: org.apache.coyote.tomcat5.CoyoteRequestFacade at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1054) at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java 1332) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:13 04) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.jav a:1247) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1052) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:278) at org.apache.catalina.cluster.session.DeltaRequest$AttributeInfo.writeE xternal(DeltaRequest.java:300) at org.apache.catalina.cluster.session.DeltaRequest.writeExternal(DeltaR equest.java:217) at org.apache.catalina.cluster.session.DeltaManager.unloadDeltaRequest(D eltaManager.java:393) at org.apache.catalina.cluster.session.DeltaManager.requestCompleted(Del taManager.java:782) at org.apache.catalina.cluster.tcp.ReplicationValve.invoke(ReplicationVa lve.java:203) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValv eContext.java:102) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j ava:118) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValv eContext.java:102) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav a:520) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal ve.java:109) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValv eContext.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav a:520) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929) at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:16 0) at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:300) at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:374) at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:743) at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.ja va:675) at
problem installation Tomcat
I have this error: Using CATALINA_BASE: C:\jakarta-tomcat-5.5.4\ Using CATALINA_HOME: C:\jakarta-tomcat-5.5.4\ Using CATALINA_TMPDIR: C:\jakarta-tomcat-5.5.4\\temp Using JAVA_HOME: C:\j2sdk1.4.2_06 log4j:WARN No appenders could be found forloggerorg.apache.catalina.startup.ClassLoaderFactory. log4j:WARN Please initialize the log4j system properly. created MBeanServer with ID: ... java.lang.reflect.InvocationTargetExeption at sun.reflect.NativeMethodAccessorImpl.invoke0native Method at sun.reflect.NativeMethodAccessorImpl.invokenativeMethodAccessorImpl.java:39 at sun.reflect.DelegatingMethodAccessorImpl.invokeDelegatingMethodAccessorImpl.java:25 at java.lang.reflect.Method.invokeMethode.java:324 at org.apache.catalina.startup.Bootstrap.startBootstrap.java:271 at org.apache.catalina.startup.Bootstrap.mainBootstrap.java:409 Caused by: java.lang.NullPointerException at org.apache.catalina.startup.Catalina.awaitCatalina.java:600 at org.apache.catalina.startup.Catalina.startCatalina.java:560 ..6 more Can you help me? I need Tomcat to work with Cayenne! thank you very much!!! chicca
RE: problem installation Tomcat
Hi, First question - I notice you are using 1.4.2 with TC 5.5 .. are you using the compatibility package? Else you need Java 5.0. Allistair. -Original Message- From: Francesca [mailto:[EMAIL PROTECTED] Sent: 01 March 2005 14:49 To: tomcat-user@jakarta.apache.org Subject: problem installation Tomcat I have this error: Using CATALINA_BASE: C:\jakarta-tomcat-5.5.4\ Using CATALINA_HOME: C:\jakarta-tomcat-5.5.4\ Using CATALINA_TMPDIR: C:\jakarta-tomcat-5.5.4\\temp Using JAVA_HOME: C:\j2sdk1.4.2_06 log4j:WARN No appenders could be found forloggerorg.apache.catalina.startup.ClassLoaderFactory. log4j:WARN Please initialize the log4j system properly. created MBeanServer with ID: ... java.lang.reflect.InvocationTargetExeption at sun.reflect.NativeMethodAccessorImpl.invoke0native Method at sun.reflect.NativeMethodAccessorImpl.invokenativeMethodAccess orImpl.java:39 at sun.reflect.DelegatingMethodAccessorImpl.invokeDelegatingMeth odAccessorImpl.java:25 at java.lang.reflect.Method.invokeMethode.java:324 at org.apache.catalina.startup.Bootstrap.startBootstrap.java:271 at org.apache.catalina.startup.Bootstrap.mainBootstrap.java:409 Caused by: java.lang.NullPointerException at org.apache.catalina.startup.Catalina.awaitCatalina.java:600 at org.apache.catalina.startup.Catalina.startCatalina.java:560 ..6 more Can you help me? I need Tomcat to work with Cayenne! thank you very much!!! chicca FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE --- QAS Ltd. Developers of QuickAddress Software a href=http://www.qas.com;www.qas.com/a Registered in England: No 2582055 Registered in Australia: No 082 851 474 --- /FONT - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat clustering and NotSerializableException
From: Richard Mixon (qwest) [mailto:[EMAIL PROTECTED] Subject: RE: Tomcat clustering and NotSerializableException CoyoteRequestFacade is the first element in the stack trace - it is not the session stored object that is causing the NotSerializableException. Actually, the CoyoteRequestFacade _is_ the object being serialized. That class name is the explanatory text added to the exception being thrown by ObjectOutputStream at line 1054 (look at the JRE source), not the origin of the exception. Nonetheless, your points are still valid. Whatever code is sneaking a direct or indirect reference to the request into the session object needs to be changed. As you indicated, it must be an indirect reference from an attribute added to the session, since a direct one wouldn't pass the serializability check. (DeltaManager.java:813)- Unable to serialize delta request java.io.NotSerializableException: org.apache.coyote.tomcat5.CoyoteRequestFacade at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1054) at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1332) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1304) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1247) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1052) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:278) at org.apache.catalina.cluster.session.DeltaRequest$AttributeInfo.writeExternal(DeltaRequest.java:300) at org.apache.catalina.cluster.session.DeltaRequest.writeExternal(DeltaRequest.java:217) at org.apache.catalina.cluster.session.DeltaManager.unloadDeltaRequest(DeltaManager.java:393) at org.apache.catalina.cluster.session.DeltaManager.requestCompleted(DeltaManager.java:782) at org.apache.catalina.cluster.tcp.ReplicationValve.invoke(ReplicationValve.java:203) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929) at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160) at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:300) at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:374) at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:743) at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:675) at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:866) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683) at java.lang.Thread.run(Thread.java:534) - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Need access to classes outside Tomcat for JSPs
My apologies for being over the edge, but after pulling my hair out for the last few days and reading all kinds of web and USENET postings, along with searching the list archives, I came across all kinds of writings that did not address the issue of if (and how) this could be done, most just say to put them in the WEB-INF or the shared directories of TomCat. I know it can be done because that's the way I have my other box setup now. My shared classes are in E:\java\library. My WEB-INF\classes directory is empty, and TomCat compiles the JSPs fine. But for the life of me I cannot duplicate this setup on the new box. That's what really makes this frustrating. I've done a system search for files containing library\custom and nothing relevant shows up. Searching the registry turns up nothing as well. The only tidbit that I've come across is that parameter java.class.path is ignored when running as a service, instead Imagepath can specify a classpath. But I don't remember doing this on my other machine, and my registry entries for the service don't show any additional startup parameters. I wonder if procrun stores these values someplace else, but if so it's not stored anyplace within the Tomcat directory since I've copied the entire Tomcat directory from the working box to this box. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Need access to classes outside Tomcat for JSPs
Just as soon as I hit send Registry entry. HKLM | Software | Apache Software Foundation | Procrun 2.0 | Tomcat5 | Parameters | Java Classpath = .;e:\java\library\basic;e:\java\library\custom;E:\java\Tomcat\bin\bootstrap.jar - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Need access to classes outside Tomcat for JSPs
If you happen to change the bootstrap classpath - please do not email the list with ClassNotFound issues. ;) If you really need to access jar's or classes outside of your webapp you can either: 1) Write your own WebAppClassloader - icky but doable 2) Change $CATALINA_HOME/conf/catalina.properties and change either the common or shared loader. This is more managable but all webapps will share these classes. Adding your own classes to the system classpath will cause major headaches. Adding common libraries to the common or shared classloader typically is the least of all evils when you can't place classes inside WEB-INF. -Tim Dan wrote: Just as soon as I hit send Registry entry. HKLM | Software | Apache Software Foundation | Procrun 2.0 | Tomcat5 | Parameters | Java Classpath = .;e:\java\library\basic;e:\java\library\custom;E:\java\Tomcat\bin\bootstrap.jar - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
SSL Question
I have a quick question about SSL. If I am already running SSL on a server with a certificate imported into a .keystore file and I create a new certificate will it automatically overwrite the .keystore file by creating a new one or does it just add the info into the existing .keystore file. Thanks.
Re: Tomcat clustering and NotSerializableException
As Richard says, don't store your request in the session, not a good idea. Richard Mixon (qwest) wrote: CoyoteRequestFacade is the first element in the stack trace - it is not the session stored object that is causing the NotSerializableException. As I said in my prior posting, to resolve this issue you need to: 1) Identify each object that you are explicitly storing in the session and make sure it directly or indirectly (through inheritance) specified that it implements Serializable. 2) Follow the chain from each session object to other objects that it references and make sure they are ALL marked as serializable (again - either directly or indirectly) That will fix your problem. These issues often do not come up until either you: 1. Try and use session replication. 2. Try to persist sessions to a datastore and access from a cluster. 3. Try to persist sessions across a restart of Tomcat. Also, please just reply to the list - not to the list and to the poster. HTH - Richard Sng Wee Jim wrote: But the stacktrace says java.io.NotSerializableException: org.apache.coyote.tomcat5.CoyoteRequestFacade at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1054) at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:13 32) at Since CoyoteRequestFacade is a tomcat class, I assume it has to be fixed by the tomcat team. Unless the actual object that is not Serializable not CoyoteRequestFacade is available somewhere else... - Jim -Original Message- From: Richard Mixon (qwest) [mailto:[EMAIL PROTECTED] Sent: Monday, February 28, 2005 11:13 PM To: Tomcat Users List Subject: RE: Tomcat clustering and NotSerializableException As Matt said its probably your applications objects. When we switched to clustering I was surprised at how many of my session objects I needed to add serializable to. But it was easy work and quickl done. HTH - Richard Dale, Matt wrote: I would guess that this means you have an object in your session that does not implement the serializable interface. Ta Matt -Original Message- From: Sng Wee Jim [mailto:[EMAIL PROTECTED] Sent: 28 February 2005 09:21 To: tomcat-user@jakarta.apache.org Subject: Tomcat clustering and NotSerializableException Hi, I am using Tomcat 5.0.28 on MS Win2k server. After I have uncommented the Cluster element in server.xml, I get the following exceptions on the tomcat console for some actions that are using displaytag. Is it a tomcat bug, since org.apache.coyote.tomcat5.CoyoteRequestFacade is involved? (DeltaManager.java:813)- Unable to serialize delta request java.io.NotSerializableException: org.apache.coyote.tomcat5.CoyoteRequestFacade at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1054) at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java 1332) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:13 04) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.jav a:1247) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1052) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:278) at org.apache.catalina.cluster.session.DeltaRequest$AttributeInfo.writeE xternal(DeltaRequest.java:300) at org.apache.catalina.cluster.session.DeltaRequest.writeExternal(DeltaR equest.java:217) at org.apache.catalina.cluster.session.DeltaManager.unloadDeltaRequest(D eltaManager.java:393) at org.apache.catalina.cluster.session.DeltaManager.requestCompleted(Del taManager.java:782) at org.apache.catalina.cluster.tcp.ReplicationValve.invoke(ReplicationVa lve.java:203) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValv eContext.java:102) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j ava:118) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValv eContext.java:102) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav a:520) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal ve.java:109) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValv eContext.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav a:520) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929) at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:16 0) at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:300) at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:374) at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:743) at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.ja va:675) at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:866) at
RE: Tomcat Cluster
Apparently this was too verbose for anyone to read. I simply just don't understand why each tomcat instance is failing to recognize any other instance in the cluster. Multicast messages are being broadcasted. Is there any configuration parameter I can turn on that will verify that each tomcat instance can see the other instances??? Thanks, Randall -Original Message- From: Randall Svancara [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 23, 2005 9:44 AM To: Tomcat Users List Subject: Tomcat Cluster I have attempted to configure a tomcat cluster using version 5.5.7 of tomcat. I have configured a simple tcp cluster in the server.xml. I have two tomcat instances installed on two different Linux servers (Fedora core 3, IPTAPLES is turned off, there is not firewall). I have apache and mod_jk set up on a third server. Multicast is enabled!!! When I start up each tomcat instance I receive the following message in the catalina.out file. -- Feb 23, 2005 9:21:49 AM org.apache.catalina.cluster.tcp.SimpleTcpCluster start INFO: Cluster is about to start Feb 23, 2005 9:21:49 AM org.apache.catalina.cluster.mcast.McastServiceImpl setupSocket INFO: Setting multihome multicast interface to:/10.111.22.163 Feb 23, 2005 9:21:49 AM org.apache.catalina.cluster.mcast.McastService start INFO: Sleeping for 2000 secs to establish cluster membership Feb 23, 2005 9:21:51 AM org.apache.catalina.cluster.deploy.FarmWarDeployer start INFO: Cluster FarmWarDeployer started. Feb 23, 2005 9:21:51 AM org.apache.catalina.cluster.session.DeltaManager start INFO: Starting clustering manager...:/testapp Feb 23, 2005 9:21:51 AM org.apache.catalina.cluster.session.DeltaManager start INFO: Manager[/testapp], skipping state transfer. No members active in cluster group. - The important thing to note here is that in the last line, I see INFO: Manager[/testapp], skipping state transfer. No members active in cluster group. At first I was thinking that multicast was not working properly. However, I was researching the Tomcat mailing list and found another thread discussing the same issue. I tried to use the tool, tomcat-replication.jar located on the CVS for tomcat. I can see the multicast sessions being generated between both servers using this tool. I also started up ethereal, the packet sniffer. I noticed that both servers are generating multicast packets. However after careful analysis of the packet information, I noticed that my servers were looking for 127.0.0.1/4001 for the receiver port. So I set the tcpListenAddress from auto to 10.111.22.163 This seemed to fix the problem with the multicast packets sending out the incorrect listener addresses. However, I am still getting the same error... INFO: Manager[/testapp], skipping state transfer. No members active in cluster group. So here are my questions: 1. Is this really an error, or is session replication working and I am not testing it properly? 2.What is the proper way to test that session replication is working properly? Can anyone provide me with code that works. I am currently using a bean that I declare with jsp:usebean scope=session.Is this wrong, should I use request.getAttribute(), request.setAttribute()instead. 3.Can session replication replicate things like a class that I implement as java.io.serializable? Thanks in advance, Randall Cluster configuration from server.xml: Cluster className=org.apache.catalina.cluster.tcp.SimpleTcpCluster managerClassName=org.apache.catalina.cluster.session.DeltaManager expireSessionsOnShutdown=false useDirtyFlag=true notifyListenersOnReplication=true Membership className=org.apache.catalina.cluster.mcast.McastService mcastAddr=224.0.0.5 mcastPort=45564 mcastFrequency=500 mcastDropTime=3000 mcastBindAddress=10.111.22.163/ Receiver className=org.apache.catalina.cluster.tcp.ReplicationListener tcpListenAddress=10.111.22.163 tcpListenPort=4001 tcpSelectorTimeout=100 tcpThreadCount=6/ Sender className=org.apache.catalina.cluster.tcp.ReplicationTransmitter replicationMode=pooled ackTimeout=15000/ Valve className=org.apache.catalina.cluster.tcp.ReplicationValve filter=.*\.gif;.*\.js;.*\.jpg;.*\.png;.*\.htm;.*\.html;.*\.css;.*\.txt; / Deployer className=org.apache.catalina.cluster.deploy.FarmWarDeployer tempDir=/tmp/war-temp/ deployDir=/tmp/war-deploy/ watchDir=/tmp/war-listen/ watchEnabled=false/ /Cluster - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: JDBCStore JTDS
Apparently no has had any luck with this. All I can tell is that the jdbc connection url is not compatible with tomcat and storing sessions in a database. So for anyone else searching this list for answers, you have come to the wrong place. Perhaps try the JTDS mailing list. Thanks, Randall -Original Message- From: Randall Svancara [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 23, 2005 1:00 PM To: Tomcat Users List Subject: JDBCStore JTDS Anyone have any luck using the JTDS driver for Micro(Caugh..Caugh) SQL Server and persistent session management using JDCBStore. I am currently experiencing a problem connecting with jtds. Here is my configuration for my JDBCStore... Manager className=org.apache.catalina.session.PersistentManager Store className=org.apache.catalina.session.JDBCStore connectionURL=jdbc:jtds:sqlserver://10.113.2.60/propsys;user=webuser;pa ssword=password driverName=net.sourceforge.jtds.jdbc.Driver sessionIdCol=session_id sessionValidCol=valid_session sessionMaxInactiveCol=max_inactive sessionLastAccessedCol=last_access sessionTable=tomcat_sessions sessionAppCol=app_context sessionDataCol=session_data / /Manager I recieve this error when trying to use the driver/ConnectionURL to connect to the database. Feb 23, 2005 7:52:35 AM org.apache.catalina.session.JDBCStore getConnection SEVERE: A SQL exception occurred java.sql.SQLException: Single-Sign-On is only supported on Windows. Please specify a user name. Any help/advice/hints would be appreciated. Of course, my platform is Linux and single sign on is not what I want anyway. Randall - 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: skipping state transfer. No members active in cluster group
Apparently no one has had any luck with getting tomcat 5.5.7 to work on fedora core 3 in a clustered configuration. I am wondering if the problem is with Linux or with tomcat or a combination of both. Randall -Original Message- From: Randall Svancara [mailto:[EMAIL PROTECTED] Sent: Monday, February 28, 2005 10:27 AM To: Tomcat Users List Subject: skipping state transfer. No members active in cluster group I have a problem in my tomcat logs. I am using tomcat 5.5.7 and whenever I start up tomcat for the first time, I receive this error message. INFO: Manager[/testapp], skipping state transfer. No members active in cluster group. After the delta manager starts, I receive this error. Should I be concerned about this I have set distributable/ in my web.xml. My server.xml has all the clustering stuff enable. I have provided it below!! I have started up ethereal and I can see the multicast packets broadcasting. The data portion contains the ip address of the server. Everything looks like it should work. Randall Cluster className=org.apache.catalina.cluster.tcp.SimpleTcpCluster managerClassName=org.apache.catalina.cluster.session.DeltaManager expireSessionsOnShutdown=false useDirtyFlag=false notifyListenersOnReplication=true Membership className=org.apache.catalina.cluster.mcast.McastService mcastAddr=224.0.0.3 mcastPort=45564 mcastFrequency=500 mcastDropTime=3000 mcastBindAddress=10.111.22.163/ Receiver className=org.apache.catalina.cluster.tcp.ReplicationListener tcpListenAddress=10.111.22.163 tcpListenPort=4002 tcpSelectorTimeout=200 tcpThreadCount=6/ Sender className=org.apache.catalina.cluster.tcp.ReplicationTransmitter replicationMode=pooled ackTimeout=15000/ Valve className=org.apache.catalina.cluster.tcp.ReplicationValve filter=.*\.gif;.*\.js;.*\.jpg;.*\.png;.*\.htm;.*\.html;.*\.css;.*\.txt; / Deployer className=org.apache.catalina.cluster.deploy.FarmWarDeployer tempDir=/tmp/war-temp/ deployDir=/tmp/war-deploy/ watchDir=/tmp/war-listen/ watchEnabled=false/ /Cluster - 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: Need access to classes outside Tomcat for JSPs
Just a curious question to this, I know Dan has his setup already but is there any reason that this could not be set up the other way around? I mean that the classes/jars are in the normal spot in Tomcat and the outside app accesses them there. The outside app shouldn't care where the files reside as long as the path to them is known and this way Tomcat is a untouched normal install. Or am I missing something here? I am just trying to learn. Thanks Doug - Original Message - From: Tim Funk [EMAIL PROTECTED] To: Tomcat Users List tomcat-user@jakarta.apache.org Sent: Tuesday, March 01, 2005 10:37 AM Subject: Re: Need access to classes outside Tomcat for JSPs If you happen to change the bootstrap classpath - please do not email the list with ClassNotFound issues. ;) If you really need to access jar's or classes outside of your webapp you can either: 1) Write your own WebAppClassloader - icky but doable 2) Change $CATALINA_HOME/conf/catalina.properties and change either the common or shared loader. This is more managable but all webapps will share these classes. Adding your own classes to the system classpath will cause major headaches. Adding common libraries to the common or shared classloader typically is the least of all evils when you can't place classes inside WEB-INF. -Tim Dan wrote: Just as soon as I hit send Registry entry. HKLM | Software | Apache Software Foundation | Procrun 2.0 | Tomcat5 | Parameters | Java Classpath = .;e:\java\library\basic;e:\java\library\custom;E:\java\Tomcat\bin\bootstrap.jar - 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: Tomcat Cluster
Randall, Below is the clustering section of my server.xml running under SuSE Linux (SLES9). Things to check I can think of: 1. Is your server multi-homed (more than one network adapter)? If so you must (at least from my experience) specify both mcastBindAddr and tcpListendAddress as shown below. In my case I'm using a dedicated adapter to connect the cluster over the private address space 192.168.11.x. Obviously the values are different for the Tomcat instance on each server. 2. If after reviewing this it still does not work you can test that multicasting is really working by using the utilities included in the JGroups jars. See: http://www.jgroups.org/javagroupsnew/docs/newuser/node15.html#ItDoesnt Work HTH - Richard SNIP Cluster className=org.apache.catalina.cluster.tcp.SimpleTcpCluster managerClassName=org.apache.catalina.cluster.session.DeltaMa nager expireSessionsOnShutdown=false useDirtyFlag=true notifyListenersOnReplication=true Membership className=org.apache.catalina.cluster.mcast.McastService mcastAddr=228.0.0.4 mcastPort=45564 mcastBindAddr=192.168.11.3 mcastFrequency=500 mcastDropTime=3000/ Receiver className=org.apache.catalina.cluster.tcp.ReplicationListener tcpListenAddress=192.168.11.3 tcpListenPort=4001 tcpSelectorTimeout=100 tcpThreadCount=6/ Sender className=org.apache.catalina.cluster.tcp.ReplicationTransmit ter replicationMode=pooled ackTimeout=15000/ Valve className=org.apache.catalina.cluster.tcp.ReplicationValve filter=.*\.gif;.*\.js;.*\.jpg;.*\.png;.*\.htm;.*\.html;.*\ .css;.*\.txt;/ Deployer className=org.apache.catalina.cluster.deploy.FarmWarDeployer tempDir=/tmp/war-temp/ deployDir=/home/tomcat1/jakarta-tomcat-5.5.7/webapps watchDir=/home/tomcat1/jakarta-tomcat-5.5.7-deployer/bu ild/webapp watchEnabled=false/ /Cluster SNIP -Original Message- From: Randall Svancara [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 01, 2005 8:47 AM To: Tomcat Users List Subject: RE: Tomcat Cluster Apparently this was too verbose for anyone to read. I simply just don't understand why each tomcat instance is failing to recognize any other instance in the cluster. Multicast messages are being broadcasted. Is there any configuration parameter I can turn on that will verify that each tomcat instance can see the other instances??? Thanks, Randall -Original Message- From: Randall Svancara [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 23, 2005 9:44 AM To: Tomcat Users List Subject: Tomcat Cluster I have attempted to configure a tomcat cluster using version 5.5.7 of tomcat. I have configured a simple tcp cluster in the server.xml. I have two tomcat instances installed on two different Linux servers (Fedora core 3, IPTAPLES is turned off, there is not firewall). I have apache and mod_jk set up on a third server. Multicast is enabled!!! When I start up each tomcat instance I receive the following message in the catalina.out file. -- Feb 23, 2005 9:21:49 AM org.apache.catalina.cluster.tcp.SimpleTcpCluster start INFO: Cluster is about to start Feb 23, 2005 9:21:49 AM org.apache.catalina.cluster.mcast.McastServiceImpl setupSocket INFO: Setting multihome multicast interface to:/10.111.22.163 Feb 23, 2005 9:21:49 AM org.apache.catalina.cluster.mcast.McastService start INFO: Sleeping for 2000 secs to establish cluster membership Feb 23, 2005 9:21:51 AM org.apache.catalina.cluster.deploy.FarmWarDeployer start INFO: Cluster FarmWarDeployer started. Feb 23, 2005 9:21:51 AM org.apache.catalina.cluster.session.DeltaManager start INFO: Starting clustering manager...:/testapp Feb 23, 2005 9:21:51 AM org.apache.catalina.cluster.session.DeltaManager start INFO: Manager[/testapp], skipping state transfer. No members active in cluster group. - The important thing to note here is that in the last line, I see INFO: Manager[/testapp], skipping state transfer. No members active in cluster group. At first I was thinking that multicast was not working properly. However, I was researching the Tomcat mailing list and found another thread discussing the same issue. I tried to use the tool, tomcat-replication.jar located on the CVS for tomcat. I can see the multicast sessions being generated between both servers using this tool. I also started up ethereal, the packet sniffer. I noticed that both servers are generating multicast packets. However after careful analysis of the packet information, I noticed that my servers were looking for 127.0.0.1/4001 for the receiver port. So I set the tcpListenAddress from auto to 10.111.22.163 This seemed to fix the problem with the multicast packets sending out the incorrect listener addresses. However, I am still getting the same error...
RE: skipping state transfer. No members active in cluster group
Randall, See my answer to your posting on the subject Tomcat Cluster. Both Tomcat 5.0.28 and Tomcat 5.5.7 should work on Linux - at least on SuSE Pro 9.2 and SLES9. However failover restart under session replication works much better on the Tomcat 5.5.8 that is available as alpha. You might do better with a single post - this seems to be a duplicate. - Richard -Original Message- From: Randall Svancara [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 01, 2005 8:50 AM To: Tomcat Users List Subject: RE: skipping state transfer. No members active in cluster group Apparently no one has had any luck with getting tomcat 5.5.7 to work on fedora core 3 in a clustered configuration. I am wondering if the problem is with Linux or with tomcat or a combination of both. Randall -Original Message- From: Randall Svancara [mailto:[EMAIL PROTECTED] Sent: Monday, February 28, 2005 10:27 AM To: Tomcat Users List Subject: skipping state transfer. No members active in cluster group I have a problem in my tomcat logs. I am using tomcat 5.5.7 and whenever I start up tomcat for the first time, I receive this error message. INFO: Manager[/testapp], skipping state transfer. No members active in cluster group. After the delta manager starts, I receive this error. Should I be concerned about this I have set distributable/ in my web.xml. My server.xml has all the clustering stuff enable. I have provided it below!! I have started up ethereal and I can see the multicast packets broadcasting. The data portion contains the ip address of the server. Everything looks like it should work. Randall Cluster className=org.apache.catalina.cluster.tcp.SimpleTcpCluster managerClassName=org.apache.catalina.cluster.session.DeltaManager expireSessionsOnShutdown=false useDirtyFlag=false notifyListenersOnReplication=true Membership className=org.apache.catalina.cluster.mcast.McastService mcastAddr=224.0.0.3 mcastPort=45564 mcastFrequency=500 mcastDropTime=3000 mcastBindAddress=10.111.22.163/ Receiver className=org.apache.catalina.cluster.tcp.ReplicationListener tcpListenAddress=10.111.22.163 tcpListenPort=4002 tcpSelectorTimeout=200 tcpThreadCount=6/ Sender className=org.apache.catalina.cluster.tcp.ReplicationTransmitter replicationMode=pooled ackTimeout=15000/ Valve className=org.apache.catalina.cluster.tcp.ReplicationValve filter=.*\.gif;.*\.js;.*\.jpg;.*\.png;.*\.htm;.*\.html;.*\.css;.*\.txt; / Deployer className=org.apache.catalina.cluster.deploy.FarmWarDeployer tempDir=/tmp/war-temp/ deployDir=/tmp/war-deploy/ watchDir=/tmp/war-listen/ watchEnabled=false/ /Cluster - 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]
custom login form
Hello tomcat users. Please can anyone suggest a way to meet the following requirements for a Java web app (Servlet 2.4 spec version) using tomcat 5.5. Extend the html login form for an existing web application, which uses FORM based authentication, to contain extra fields. Apply custom processing to the form. This code may either accept/reject the login (in addition to any checks done by the Realm) and optionally alter the user's http Session. Two sample scenarios may help illustrate what I'm getting at: 1) The login form needs to ask an additional security question, as well as requiring the username and password. This is typical in online banking applications. 2) The form contains a 'remember me on this machine' checkbox which, if selected, results in a long lived cookie being sent to allow automated login in subsequent sessions. (Yes, mixing FORM and cookie based login is another problem in its own right, but not one to worry about right now.) And no, I don't plan on using both the above in the same application! My first thought was to use a custom Realm, but it would not have access to the HttpServletRequest and hence can't see the additional form fields. There does not appear to be a way to register a custom handler for the magic j_security_check URL, so I can't subclass or otherwise override the container at that point either. Working back further, how about intercepting the login form submission before it reaches the built-in handler? Turns out that filters defined in the web.xml won't fire on that magic URL, so I can't do that either. Note: IMO this is a feature rather than a bug, but I'm open to correction. I'm out of ideas for the time being, short of patching the tomcat source. Since that would complicate our deployment and management immensely it's very much a last resort. Dumping the authentication support provided by the spec/container in favour of our own filters is another unpleasant alternative. Can anyone suggest a better approach? Thanks Jonathan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Need access to classes outside Tomcat for JSPs
You could do it that way but I don't feel that placing common resources in a specific application directory is the proper approach. For example, if I had shared dlls that are used for Microsoft Office, I wouldn't place them into the Word application's directory. At 10:50 AM 3/1/2005, Doug wrote: Just a curious question to this, I know Dan has his setup already but is there any reason that this could not be set up the other way around? I mean that the classes/jars are in the normal spot in Tomcat and the outside app accesses them there. The outside app shouldn't care where the files reside as long as the path to them is known and this way Tomcat is a untouched normal install. Or am I missing something here? I am just trying to learn. Dan wrote: Just as soon as I hit send Registry entry. HKLM | Software | Apache Software Foundation | Procrun 2.0 | Tomcat5 | Parameters | Java Classpath = .;e:\java\library\basic;e:\java\library\custom;E:\java\Tomcat\bin\bootstrap.jar - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: skipping state transfer. No members active in cluster group
your multicast isn't working. Filip Randall Svancara wrote: I have a problem in my tomcat logs. I am using tomcat 5.5.7 and whenever I start up tomcat for the first time, I receive this error message. INFO: Manager[/testapp], skipping state transfer. No members active in cluster group. After the delta manager starts, I receive this error. Should I be concerned about this I have set distributable/ in my web.xml. My server.xml has all the clustering stuff enable. I have provided it below!! I have started up ethereal and I can see the multicast packets broadcasting. The data portion contains the ip address of the server. Everything looks like it should work. Randall Cluster className=org.apache.catalina.cluster.tcp.SimpleTcpCluster managerClassName=org.apache.catalina.cluster.session.DeltaManager expireSessionsOnShutdown=false useDirtyFlag=false notifyListenersOnReplication=true Membership className=org.apache.catalina.cluster.mcast.McastService mcastAddr=224.0.0.3 mcastPort=45564 mcastFrequency=500 mcastDropTime=3000 mcastBindAddress=10.111.22.163/ Receiver className=org.apache.catalina.cluster.tcp.ReplicationListener tcpListenAddress=10.111.22.163 tcpListenPort=4002 tcpSelectorTimeout=200 tcpThreadCount=6/ Sender className=org.apache.catalina.cluster.tcp.ReplicationTransmitter replicationMode=pooled ackTimeout=15000/ Valve className=org.apache.catalina.cluster.tcp.ReplicationValve filter=.*\.gif;.*\.js;.*\.jpg;.*\.png;.*\.htm;.*\.html;.*\.css;.*\.txt; / Deployer className=org.apache.catalina.cluster.deploy.FarmWarDeployer tempDir=/tmp/war-temp/ deployDir=/tmp/war-deploy/ watchDir=/tmp/war-listen/ watchEnabled=false/ /Cluster - 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]
Single Sign On
Hi, I'm using Tomcat 5.5.3 running as part of an Apache webserver on Fedora Core 1. I need to protect all the webapps running on Tomcat under a username and password and have found in the docs that I should be using the Single Sign On functionality. I've put the following inside the Host ... tag in server.xml: Valve className=org.apache.catalina.authenticator.SingleSignOn debug=0/ I believe I now need to put a Realm or realm-name tag somewhere inside the same Host ... tag, but all the documentation I can find for the placement and form of a Realm tag seems to assume that the realm will be connected to a database of users, roles and passwords. I only want one realm, one username and one password for all the webapps. Thanks in advance for any help, I'm sure I'm just missing the appropriate page in the documentation (there seemed to be a lot of links labelled FIXME in that area). Nat. -- Nat Titman Developer MitchellConnerSearson 3-5 High Pavement The Lace Market Nottingham NG1 1HF Tel +44 (0)115 959 6455 Fax +44 (0)115 959 6456 Direct +44 (0)115 959 6462 www.choosemcs.co.uk Confidentiality: This e-mail and its attachments are intended for the above named only and may be confidential. If they have come to you in error you must take no action based on them, nor must you copy or show them to anyone; please reply to this e-mail and highlight the error. Security Warning: Please note that this e-mail has been created in the knowledge that Internet e-mail is not a 100% secure communications medium. We advise that you understand and observe this lack of security when e-mailing us. Viruses: Although we have taken steps to ensure that this e-mail and attachments are free from any virus, we advise that in keeping with good computing practice the recipient should ensure they are actually virus free. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: session load-balancing and clustering of tomcat
Lionel Farbos wrote: 1) In server.xml : - uncomment the AJP 1.3 Connector (on port 8009), - set the jvmRoute in each Engine example : Engine name=Standalone defaultHost=host1 debug=0 jvmRoute=t1_ajp13 Session route *must* consists only of alphanumeric characters. See the: http://jakarta.apache.org/tomcat/connectors-doc/config/workers.html Later mod_jk releases will have that as prerequisite so that we don't need to url encode session routes. 2) then add the module mod_jk in apache with jk workers defined like this : worker.list=t1_ajp13,t2_ajp13,loadbalancer This is not quite correct, although it will work. You should set worker.list only for workers that have JkMount directive registered. Also workers that are member of load balancer *should* not be listed within worker.list Regards, Mladen. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Installation problems on Windows
Some more updates... Tried the .EXE installer with JDK 1.5. Still no go, I get the same installer hang right after Using jvm. Tried the .ZIP installation again, and verified an accurate JAVA_HOME pointing to the 1.4 JDK in this case. Running service install resulted in a Failed to install service error. Does anyone know what the .EXE installer is supposed to do after the Using jvm message? I can't tell if this is a Windows XP/SP2 security problem or some other JDK problem without knowing what the installer is trying to do when it hangs. Also, in case I never get to try Tomcat, is there a recommendation for other J2EE web/ejb app servers I should try? Thx, Steve -Steve Henty/TechFlow wrote: - To: Tomcat Users List tomcat-user@jakarta.apache.org From: Steve Henty/TechFlow Date: 2005-03-01 09:43AM Subject: Re: Installation problems on Windows You're right about jvm.dll... one typo and a bunch of cut-and-paste. None of the options you mentioned worked. Starting with using the ZIP file directly, I apparently have some JAVA_HOME or CLASSPATH problems that prevent the service.bat (is that the one I want to install the Windows XP service?) from completing. I've never had to pay a lot of attention to CLASSPATH at the Windows level, since I use WSAD/Eclipse. JAVA_HOME is new to me, and I was counting on the installer to take care of this mundane detail. That said, I *did* set JAVA_HOME to both the public J2RE1.4.2_07, and the full J2SDK1.4.2_07 on separate installer attempts, along with adding the respective /bin directories to the Path. No go either. Installing to a directory without spaces (C:\www\tomcat5.0) didn't help. In any case, Windows hasn't had a problem with spaces in directory names since Win2K, so I'd be surprised if that were truly the problem. There are a zillion programs that use Windows installers successfully, and if I read the mail archives correctly, Tomcat didn't used to have this problem in versions prior to 5.0.19. Does the installation process actually transfer control to the JVM partway through (which is what Using jvm jvm.dll implies)? If so, what would prevent that transfer of control to the JVM? I've successfully compiled and run Java applications in WSAD/Eclipse on this machine, so there is nothing inherent in my Windows setup that is JVM-unfriendly. Perhaps there's a fix around the corner? Steve -Jason Bainbridge [EMAIL PROTECTED] wrote: - To: Tomcat Users List tomcat-user@jakarta.apache.org From: Jason Bainbridge [EMAIL PROTECTED] Date: 2005-02-28 08:37PM Subject: Re: Installation problems on Windows On Mon, 28 Feb 2005 17:26:31 -0800, [EMAIL PROTECTED] wrote: I hope this message makes it to the list (my Welcome email didn't include the examples of the proper email command syntax, only the headings...?) The Tomcat 5.x binary installer for Windows hangs at the point where it says it's using the dvm.dll. This is true under all the following circumstances: -Windows XP Pro, SP2 -JRE 1.4.2_06 (picks client/dvm.dll) -JDK 1.4.2_07 (picks client/dvm.dll or server/dvm.dll, seemingly at random) -JRE 1.4.2_07 (picks client/dvm.dll) -fresh install (with reboot) of each of the JDKs/JREs above -Tomcat 5.0.28 (should be okay with 1.4.x, right?) -Tomcat 5.5.4 -Tomcat 5.5.7 -leave the partially installed Tomcat directories and registry entries intact on subsequent attempts -remove the Tomcat directories and registry entries prior to subsequent attempts -allow Tomcat to use default installation directory (C:\Program Files\Apache Software Foundation\...) -TinyFirewall enabled, and disabled 1. dvm.dll do you mean jvm.dll? Thought it was just a typo at first but it's consistent through your email. 2. Try installing to a directory path without spaces, Windows is really tempermental about such things. 3. Ditch the binary installer and just download the .zip, if need be a Windows service can be easily installed using the batch file that comes with the .zip 4. Try explicitly setting your JAVA_HOME environment variable to point where you want it. One of those should set you right. Cheers. -- Jason Bainbridge http://kde.org- [EMAIL PROTECTED] Personal Site - http://jasonbainbridge.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: Installation problems on Windows
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Subject: Re: Installation problems on Windows Tried the .ZIP installation again, and verified an accurate JAVA_HOME pointing to the 1.4 JDK in this case. Running service install resulted in a Failed to install service error. Sorry if you've already said this, but can you get Tomcat to run from a command prompt rather than as a service? If so, have you set the account for the service to one that has at least read access to the JDK as well as read/write access to the Tomcat installation? - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JK1.2.9 and dynamic change of properties
Hi Mladen, Just to clarify - will this allow us to configure the load-balancing on the fly according to the load of the tomcat's involved? cheers, David |-+ | | Mladen Turk | | | [EMAIL PROTECTED]| | | s.com | | || | | 02/24/2005 12:55 | | | PM | | | Please respond to| | | Tomcat Users| | | List| | || |-+ ---| | | | To: Tomcat Users List tomcat-user@jakarta.apache.org | | cc: | | Subject: Re: JK1.2.9 and dynamic change of properties | ---| Lionel Farbos wrote: A question for JK workers : I see in the JK 1.2.9 roadmap that a dynamic change of workers'properties will be possible at runtime. But, actually, when I do apache reload, the change is possible at runtime without loosing requests. No ? Yes and no. You will lose all the connections to tomcats on gracefull restart. Not to mention that if you make an syntax error in the config the apache will exit, so you will need to check that before. It can take up to session time for child to exit 30 seconds or more. So, what is the innovation of this feature ? Changes are visible immediately thanks to shared memory, and you are not loosing existing connections. Also the loadbalancer stats are visible for all child processes. And you don't need access to filesystem (except for JkMountFile). It works on all platforms. Regards, Mladen. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Installation problems on Windows
Just to double check. Your 'path' env var includes an entry like: c:\j2sdk1.4.2_07\bin - (some people forget the \bin) and your java_home env var is like: c:\j2sdk1.4.2_07 -Original Message- From: [EMAIL PROTECTED] Sent: Mar 1, 2005 11:59 AM To: Tomcat Users List tomcat-user@jakarta.apache.org Subject: Re: Installation problems on Windows Some more updates... Tried the .EXE installer with JDK 1.5. Still no go, I get the same installer hang right after Using jvm. Tried the .ZIP installation again, and verified an accurate JAVA_HOME pointing to the 1.4 JDK in this case. Running service install resulted in a Failed to install service error. Does anyone know what the .EXE installer is supposed to do after the Using jvm message? I can't tell if this is a Windows XP/SP2 security problem or some other JDK problem without knowing what the installer is trying to do when it hangs. Also, in case I never get to try Tomcat, is there a recommendation for other J2EE web/ejb app servers I should try? Thx, Steve -Steve Henty/TechFlow wrote: - To: Tomcat Users List tomcat-user@jakarta.apache.org From: Steve Henty/TechFlow Date: 2005-03-01 09:43AM Subject: Re: Installation problems on Windows You're right about jvm.dll... one typo and a bunch of cut-and-paste. None of the options you mentioned worked. Starting with using the ZIP file directly, I apparently have some JAVA_HOME or CLASSPATH problems that prevent the service.bat (is that the one I want to install the Windows XP service?) from completing. I've never had to pay a lot of attention to CLASSPATH at the Windows level, since I use WSAD/Eclipse. JAVA_HOME is new to me, and I was counting on the installer to take care of this mundane detail. That said, I *did* set JAVA_HOME to both the public J2RE1.4.2_07, and the full J2SDK1.4.2_07 on separate installer attempts, along with adding the respective /bin directories to the Path. No go either. Installing to a directory without spaces (C:\www\tomcat5.0) didn't help. In any case, Windows hasn't had a problem with spaces in directory names since Win2K, so I'd be surprised if that were truly the problem. There are a zillion programs that use Windows installers successfully, and if I read the mail archives correctly, Tomcat didn't used to have this problem in versions prior to 5.0.19. Does the installation process actually transfer control to the JVM partway through (which is what Using jvm jvm.dll implies)? If so, what would prevent that transfer of control to the JVM? I've successfully compiled and run Java applications in WSAD/Eclipse on this machine, so there is nothing inherent in my Windows setup that is JVM-unfriendly. Perhaps there's a fix around the corner? Steve -Jason Bainbridge [EMAIL PROTECTED] wrote: - To: Tomcat Users List tomcat-user@jakarta.apache.org From: Jason Bainbridge [EMAIL PROTECTED] Date: 2005-02-28 08:37PM Subject: Re: Installation problems on Windows On Mon, 28 Feb 2005 17:26:31 -0800, [EMAIL PROTECTED] wrote: I hope this message makes it to the list (my Welcome email didn't include the examples of the proper email command syntax, only the headings...?) The Tomcat 5.x binary installer for Windows hangs at the point where it says it's using the dvm.dll. This is true under all the following circumstances: -Windows XP Pro, SP2 -JRE 1.4.2_06 (picks client/dvm.dll) -JDK 1.4.2_07 (picks client/dvm.dll or server/dvm.dll, seemingly at random) -JRE 1.4.2_07 (picks client/dvm.dll) -fresh install (with reboot) of each of the JDKs/JREs above -Tomcat 5.0.28 (should be okay with 1.4.x, right?) -Tomcat 5.5.4 -Tomcat 5.5.7 -leave the partially installed Tomcat directories and registry entries intact on subsequent attempts -remove the Tomcat directories and registry entries prior to subsequent attempts -allow Tomcat to use default installation directory (C:\Program Files\Apache Software Foundation\...) -TinyFirewall enabled, and disabled 1. dvm.dll do you mean jvm.dll? Thought it was just a typo at first but it's consistent through your email. 2. Try installing to a directory path without spaces, Windows is really tempermental about such things. 3. Ditch the binary installer and just download the .zip, if need be a Windows service can be easily installed using the batch file that comes with the .zip 4. Try explicitly setting your JAVA_HOME environment variable to point where you want it. One of those should set you right. Cheers. -- Jason Bainbridge http://kde.org- [EMAIL PROTECTED] Personal Site - http://jasonbainbridge.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] -
Tomcat and IIS Authorization
Hello All, I am creating a web app that has users and admins and I need to limit certain configuration pages only to admins. I must use NTLM to authenticate users into the web site and somehow get the credential to determine if the user has sufficient access or not. How can I do this? Can I do this through IIS? So far I got authentication part working using jcfis but I can't seem to get the role of the user. I tried tagish JAAS but keep getting missing LoginModule error. Any help would be great. Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat and IIS Authorization
Check out the NTLM part in my Tomcat 5.5 blog www.adcworks.com/blog Cheers, Allistair. -Original Message- From: Denny Lee [mailto:[EMAIL PROTECTED] Sent: 01 March 2005 17:26 To: tomcat-user@jakarta.apache.org Subject: Tomcat and IIS Authorization Hello All, I am creating a web app that has users and admins and I need to limit certain configuration pages only to admins. I must use NTLM to authenticate users into the web site and somehow get the credential to determine if the user has sufficient access or not. How can I do this? Can I do this through IIS? So far I got authentication part working using jcfis but I can't seem to get the role of the user. I tried tagish JAAS but keep getting missing LoginModule error. Any help would be great. Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE --- QAS Ltd. Developers of QuickAddress Software a href=http://www.qas.com;www.qas.com/a Registered in England: No 2582055 Registered in Australia: No 082 851 474 --- /FONT - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JK1.2.9 and dynamic change of properties
[EMAIL PROTECTED] wrote: Hi Mladen, Just to clarify - will this allow us to configure the load-balancing on the fly according to the load of the tomcat's involved? If you mean to balance according to CPU utilization, it won't do that. For that we would need some native component that would measure the CPU usage on Tomcat side. The closest you can get is to use the 'transfer' load balancer method, and instead balancing on number of requests, balance on actual data read/transferred to Tomcat. You can then adjust balance factors depending on application and backend specmarks. For example if you query a database the result set might return one or many rows, so the actual data transferred will reflect the CPU usage for that request (in a way of course). Regards, Mladen - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Compatibility Package
Hello Everyone, I'm trying to work with the latest stable(5.5.7) tomcat on OSX. Running the shutdown script gives me this message: This release of Apache Tomcat was packaged to run on J2SE 5.0 or later. It can be run on earlier JVMs by downloading and installing a compatibility package from the Apache Tomcat binary download page. From RUNNING.txt, I get this: Download the compat package from the binary download site: http://jakarta.apache.org/site/binindex.cgi Going there, I can not find this package anywhere. Googling will yield the API docs for the package, but as for the package itself, there is no sign. As Java is not past 1.4.2 on OSX, upgrading the java install is not a possibility. Would very much appreciate if someone could pass along a link. Thanks in advance, Aron - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Installation problems on Windows
On Tue, 1 Mar 2005 06:43:06 -0800, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: You're right about jvm.dll... one typo and a bunch of cut-and-paste. None of the options you mentioned worked. Starting with using the ZIP file directly, I apparently have some JAVA_HOME or CLASSPATH problems that prevent the service.bat (is that the one I want to install the Windows XP service?) from completing. I've never had to pay a lot of attention to CLASSPATH at the Windows level, since I use WSAD/Eclipse. JAVA_HOME is new to me, and I was counting on the installer to take care of this mundane detail. Yes service.bat will install the Windows service for you, but have you tried just running the startup.bat that is distributed with the .zip version of Tomcat? JAVA_HOME is the only environment variable you should need to set in a simple Windows installation like this and remember setting Environment Variables in Windows is quite a fickle thing, like if you change one and then try to run something from a Windows Explorer window you had open beforehand then it will use the old settings still and some bizarre times you need to reboot the box. That said, I *did* set JAVA_HOME to both the public J2RE1.4.2_07, and the full J2SDK1.4.2_07 on separate installer attempts, along with adding the respective /bin directories to the Path. No go either. Installing to a directory without spaces (C:\www\tomcat5.0) didn't help. In any case, Windows hasn't had a problem with spaces in directory names since Win2K, so I'd be surprised if that were truly the problem. Says who? I've had plenty of problems in Win2k and XP, none of my sites use Windows 2003 so I can't comment there but I am sure there would be problems there also. There are a zillion programs that use Windows installers successfully, and if I read the mail archives correctly, Tomcat didn't used to have this problem in versions prior to 5.0.19. Remember Tomcat is an Open Source application and hence perfection can't be expected, the installer is provided as a convenience and works in the majority of cases, it sounds like you have some sort of security problem somewhere. Does the installation process actually transfer control to the JVM partway through (which is what Using jvm jvm.dll implies)? If so, what would prevent that transfer of control to the JVM? I've successfully compiled and run Java applications in WSAD/Eclipse on this machine, so there is nothing inherent in my Windows setup that is JVM-unfriendly. Perhaps there's a fix around the corner? It is most likely doing whatever service.bat does to install the service, the installer is just a wrapper to copy things and what not, it doesn't have too many smarts in it as far as I know. Try looking in your Windows event logs especially the Security one, it sounds like something out of the ordinary in your windows setup causing the problems, usually getting Tomcat up and running is a matter of minutes. Regards, -- Jason Bainbridge http://kde.org - [EMAIL PROTECTED] Personal Site - http://jasonbainbridge.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Compatibility Package
From: Aron Beal [mailto:[EMAIL PROTECTED] Subject: Compatibility Package Download the compat package from the binary download site: http://jakarta.apache.org/site/binindex.cgi Going there, I can not find this package anywhere. Follow the Tomcat - Tomcat 5 links. You'll end up here: http://jakarta.apache.org/site/downloads/downloads_tomcat-5.cgi The Compat.zip package is shown for each 5.5.x level. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: session load-balancing and clustering of tomcat
On Tue, 01 Mar 2005 17:55:15 +0100 Mladen Turk [EMAIL PROTECTED] wrote: Lionel Farbos wrote: 2) then add the module mod_jk in apache with jk workers defined like this : worker.list=t1_ajp13,t2_ajp13,loadbalancer This is not quite correct, although it will work. You should set worker.list only for workers that have JkMount directive registered. Also workers that are member of load balancer *should* not be listed within worker.list I put this example because it can be useful for maintenance (the JkMount directive at the instant t is possibly not the same as at the instant t+x) Example : My webapp testAppli is now loadbalanced on hosts h1 and h2. If want to upgrade my webapp testAppli. So, 1) I mono-balance testAppli on h2 (with JkMount /*.jsp h2 + apache reload) 2) I restart testAppli on the Tomcat_h1 instance 3) I mono-balance testAppli on h1 4) I restart testAppli on the Tomcat_h2 instance 5) I re-loadbalance testAppli With this principle + mod_jk 1.2.9 (with dynamic change of properties) + a graceful restart of Context I hope upgrading my webapp transparently (without interruptions)... - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JK1.2.9 and dynamic change of properties
Hi Mladen, We'd have our own mechanism to calculate the load on a particular server - I was actually asking if, and more importantly how (!), we'd adjust the balance factors on the fly from our app? cheers. David |-+ | | Mladen Turk | | | [EMAIL PROTECTED]| | | s.com | | || | | 03/01/2005 12:36 | | | PM | | | Please respond to| | | Tomcat Users| | | List| | || |-+ ---| | | | To: Tomcat Users List tomcat-user@jakarta.apache.org | | cc: | | Subject: Re: JK1.2.9 and dynamic change of properties | ---| [EMAIL PROTECTED] wrote: Hi Mladen, Just to clarify - will this allow us to configure the load-balancing on the fly according to the load of the tomcat's involved? If you mean to balance according to CPU utilization, it won't do that. For that we would need some native component that would measure the CPU usage on Tomcat side. The closest you can get is to use the 'transfer' load balancer method, and instead balancing on number of requests, balance on actual data read/transferred to Tomcat. You can then adjust balance factors depending on application and backend specmarks. For example if you query a database the result set might return one or many rows, so the actual data transferred will reflect the CPU usage for that request (in a way of course). Regards, Mladen - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Custom Mbeans in tomcat admin console
Greetings, If this has been asked/answered several times already let me apologize in advance. I am trying to register a custom Mbean so that it will be visible through the included tomcat admin webapp. The strategies I have employed thusfar (to no avail): I added a resource element to the web.xml file: resource mbean-name=dsi.jsf.jmx:name=EDocJMX type=dsi.jsf.jmx.EDocJMX /resource I added a mbean-descriptor file: mbeans-descriptors mbean name=EDocJMX description=Test JMX Bean domain=Catalina group=Realm type=dsi.jsf.jmx.EDocJMX attribute name=debugLevel description=The debugging detail level for this component type=int/ /mbean /mbeans-descriptors I added a reference in the server.xml file to point to the descriptor file: Listener className=org.apache.catalina.mbeans.ServerLifecycleListener debug=0 descriptors=dsi/jsf/jmx/mbean-descriptor.xml/ Am I completely barking up the wrong tree with this? Are custom mbeans even possible to add to the built in admin webapp? Thanks, Joe -- Joseph Foster - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Compatibility Package
Aaah, there it is. I need to enlarge the font on my browser. :) Appreciate the help, Aron Caldarale, Charles R wrote: From: Aron Beal [mailto:[EMAIL PROTECTED] Subject: Compatibility Package Download the compat package from the binary download site: http://jakarta.apache.org/site/binindex.cgi Going there, I can not find this package anywhere. Follow the Tomcat - Tomcat 5 links. You'll end up here: http://jakarta.apache.org/site/downloads/downloads_tomcat-5.cgi The Compat.zip package is shown for each 5.5.x level. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Installation problems on Windows
Yes, those are the path(s) I've used... including \bin in the path, and using the immediate parent directory of the \bin for JAVA_HOME. The following JREs and JDKs have been tried. Also, I've tried pointing the path and JAVA_HOME at the JRE, and the JDK for each version. J2RE1.4.2_06 J2SDK1.4.2_06 J2RE1.4.2_07 J2SDK1.4.2_07 JRE1.5.0_01 JDK1.5.0_01 Sun\AppServer\JDK\JRE (this is J2EE 1.4) Steve -John Najarian [EMAIL PROTECTED] wrote: - To: Tomcat Users List tomcat-user@jakarta.apache.org From: John Najarian [EMAIL PROTECTED] Date: 2005-03-01 12:22PM Subject: Re: Installation problems on Windows Just to double check. Your 'path' env var includes an entry like: c:\j2sdk1.4.2_07\bin - (some people forget the \bin) and your java_home env var is like: c:\j2sdk1.4.2_07 -Original Message- From: [EMAIL PROTECTED] Sent: Mar 1, 2005 11:59 AM To: Tomcat Users List Subject: Re: Installation problems on Windows Some more updates... Tried the .EXE installer with JDK 1.5. Still no go, I get the same installer hang right after Using jvm. Tried the .ZIP installation again, and verified an accurate JAVA_HOME pointing to the 1.4 JDK in this case. Running service install resulted in a Failed to install service error. Does anyone know what the .EXE installer is supposed to do after the Using jvm message? I can't tell if this is a Windows XP/SP2 security problem or some other JDK problem without knowing what the installer is trying to do when it hangs. Also, in case I never get to try Tomcat, is there a recommendation for other J2EE web/ejb app servers I should try? Thx, Steve -Steve Henty/TechFlow wrote: - To: Tomcat Users List From: Steve Henty/TechFlow Date: 2005-03-01 09:43AM Subject: Re: Installation problems on Windows You're right about jvm.dll... one typo and a bunch of cut-and-paste. None of the options you mentioned worked. Starting with using the ZIP file directly, I apparently have some JAVA_HOME or CLASSPATH problems that prevent the service.bat (is that the one I want to install the Windows XP service?) from completing. I've never had to pay a lot of attention to CLASSPATH at the Windows level, since I use WSAD/Eclipse. JAVA_HOME is new to me, and I was counting on the installer to take care of this mundane detail. That said, I *did* set JAVA_HOME to both the public J2RE1.4.2_07, and the full J2SDK1.4.2_07 on separate installer attempts, along with adding the respective /bin directories to the Path. No go either. Installing to a directory without spaces (C:\www\tomcat5.0) didn't help. In any case, Windows hasn't had a problem with spaces in directory names since Win2K, so I'd be surprised if that were truly the problem. There are a zillion programs that use Windows installers successfully, and if I read the mail archives correctly, Tomcat didn't used to have this problem in versions prior to 5.0.19. Does the installation process actually transfer control to the JVM partway through (which is what Using jvm jvm.dll implies)? If so, what would prevent that transfer of control to the JVM? I've successfully compiled and run Java applications in WSAD/Eclipse on this machine, so there is nothing inherent in my Windows setup that is JVM-unfriendly. Perhaps there's a fix around the corner? Steve -Jason Bainbridge wrote: - To: Tomcat Users List From: Jason Bainbridge Date: 2005-02-28 08:37PM Subject: Re: Installation problems on Windows On Mon, 28 Feb 2005 17:26:31 -0800, [EMAIL PROTECTED] wrote: I hope this message makes it to the list (my Welcome email didn't include the examples of the proper email command syntax, only the headings...?) The Tomcat 5.x binary installer for Windows hangs at the point where it says it's using the dvm.dll. This is true under all the following circumstances: -Windows XP Pro, SP2 -JRE 1.4.2_06 (picks client/dvm.dll) -JDK 1.4.2_07 (picks client/dvm.dll or server/dvm.dll, seemingly at random) -JRE 1.4.2_07 (picks client/dvm.dll) -fresh install (with reboot) of each of the JDKs/JREs above -Tomcat 5.0.28 (should be okay with 1.4.x, right?) -Tomcat 5.5.4 -Tomcat 5.5.7 -leave the partially installed Tomcat directories and registry entries intact on subsequent attempts -remove the Tomcat directories and registry entries prior to subsequent attempts -allow Tomcat to use default installation directory (C:\Program Files\Apache Software Foundation\...) -TinyFirewall enabled, and disabled 1. dvm.dll do you mean jvm.dll? Thought it was just a typo at first but it's consistent through your email. 2. Try installing to a directory path without spaces, Windows is really tempermental about such things. 3. Ditch the binary installer and just download the .zip, if need be a Windows service can be easily installed using the batch file that comes with the .zip 4. Try explicitly setting your JAVA_HOME environment variable to point where you want it. One of those should set you right. Cheers. -- Jason
Re: Installation problems on Windows
I'll check the Windows event log as you suggest... I haven't checked it yet. The Tomcat 5.x docs on the Jakarta site appear to assume the Windows installer will be used in every case... I'm not able to find different installation instructions for using the .ZIP distribution. Would the instructions for an older version (if available) still apply? Steve -Jason Bainbridge [EMAIL PROTECTED] wrote: - To: Tomcat Users List tomcat-user@jakarta.apache.org From: Jason Bainbridge [EMAIL PROTECTED] Date: 2005-03-01 12:41PM Subject: Re: Installation problems on Windows On Tue, 1 Mar 2005 06:43:06 -0800, [EMAIL PROTECTED] wrote: You're right about jvm.dll... one typo and a bunch of cut-and-paste. None of the options you mentioned worked. Starting with using the ZIP file directly, I apparently have some JAVA_HOME or CLASSPATH problems that prevent the service.bat (is that the one I want to install the Windows XP service?) from completing. I've never had to pay a lot of attention to CLASSPATH at the Windows level, since I use WSAD/Eclipse. JAVA_HOME is new to me, and I was counting on the installer to take care of this mundane detail. Yes service.bat will install the Windows service for you, but have you tried just running the startup.bat that is distributed with the .zip version of Tomcat? JAVA_HOME is the only environment variable you should need to set in a simple Windows installation like this and remember setting Environment Variables in Windows is quite a fickle thing, like if you change one and then try to run something from a Windows Explorer window you had open beforehand then it will use the old settings still and some bizarre times you need to reboot the box. That said, I *did* set JAVA_HOME to both the public J2RE1.4.2_07, and the full J2SDK1.4.2_07 on separate installer attempts, along with adding the respective /bin directories to the Path. No go either. Installing to a directory without spaces (C:\www\tomcat5.0) didn't help. In any case, Windows hasn't had a problem with spaces in directory names since Win2K, so I'd be surprised if that were truly the problem. Says who? I've had plenty of problems in Win2k and XP, none of my sites use Windows 2003 so I can't comment there but I am sure there would be problems there also. There are a zillion programs that use Windows installers successfully, and if I read the mail archives correctly, Tomcat didn't used to have this problem in versions prior to 5.0.19. Remember Tomcat is an Open Source application and hence perfection can't be expected, the installer is provided as a convenience and works in the majority of cases, it sounds like you have some sort of security problem somewhere. Does the installation process actually transfer control to the JVM partway through (which is what Using jvm jvm.dll implies)? If so, what would prevent that transfer of control to the JVM? I've successfully compiled and run Java applications in WSAD/Eclipse on this machine, so there is nothing inherent in my Windows setup that is JVM-unfriendly. Perhaps there's a fix around the corner? It is most likely doing whatever service.bat does to install the service, the installer is just a wrapper to copy things and what not, it doesn't have too many smarts in it as far as I know. Try looking in your Windows event logs especially the Security one, it sounds like something out of the ordinary in your windows setup causing the problems, usually getting Tomcat up and running is a matter of minutes. Regards, -- Jason Bainbridge http://kde.org- [EMAIL PROTECTED] Personal Site - http://jasonbainbridge.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: Custom Mbeans in tomcat admin console
Either make your modifications in the admin.xml or add a resource link there for the resource as you have it in the server.xml I am no expert on this one. As far as the bean goes, but am basing it on the resource entries. So there may be something still wrong. Doug - Original Message - From: Joseph Foster [EMAIL PROTECTED] To: tomcat-user@jakarta.apache.org Sent: Tuesday, March 01, 2005 1:07 PM Subject: Custom Mbeans in tomcat admin console Greetings, If this has been asked/answered several times already let me apologize in advance. I am trying to register a custom Mbean so that it will be visible through the included tomcat admin webapp. The strategies I have employed thusfar (to no avail): I added a resource element to the web.xml file: resource mbean-name=dsi.jsf.jmx:name=EDocJMX type=dsi.jsf.jmx.EDocJMX /resource I added a mbean-descriptor file: mbeans-descriptors mbean name=EDocJMX description=Test JMX Bean domain=Catalina group=Realm type=dsi.jsf.jmx.EDocJMX attribute name=debugLevel description=The debugging detail level for this component type=int/ /mbean /mbeans-descriptors I added a reference in the server.xml file to point to the descriptor file: Listener className=org.apache.catalina.mbeans.ServerLifecycleListener debug=0 descriptors=dsi/jsf/jmx/mbean-descriptor.xml/ Am I completely barking up the wrong tree with this? Are custom mbeans even possible to add to the built in admin webapp? Thanks, Joe -- Joseph Foster - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
mod_jk
Hello All, an ugly effect let me post this message in the list in hope of help. I run tomcat 5.0.28 connected per mod_jk (ajp13) in Apache 2. In Apache the mapping from webapp-URL to the servlet seems to work. My servlet get called. But the result differs by Webbrowsers. In InternetExplorer the Application works fine, but Netscape or Konqueror display the HTML-source produced by my servlet instead of interpreting the HTML??? Neigther in mod_jk.log nor in apache2/log/error_log I get error messages? Now, I wonder why Netscape and Konqueror don't interprete the HTML-Page from servlet? Regards, Jörg Lindner Saxony - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Installation problems on Windows
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Subject: Re: Installation problems on Windows The Tomcat 5.x docs on the Jakarta site appear to assume the Windows installer will be used in every case... I'm not able to find different installation instructions for using the .ZIP distribution. Would the instructions for an older version (if available) still apply? Use the .zip download, and look in the RUNNING.txt file. Do other Java programs work? (A simple java -version will suffice for a test.) Have you tried running Tomcat with the .bat scripts rather than as a service? (You probably should remove the J2EE installation; in the past, it has caused conflicts with classes supplied in the Tomcat distribution.) - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: mod_jk
You need to set a content type. -Tim Jörg Lindner wrote: Hello All, an ugly effect let me post this message in the list in hope of help. I run tomcat 5.0.28 connected per mod_jk (ajp13) in Apache 2. In Apache the mapping from webapp-URL to the servlet seems to work. My servlet get called. But the result differs by Webbrowsers. In InternetExplorer the Application works fine, but Netscape or Konqueror display the HTML-source produced by my servlet instead of interpreting the HTML??? Neigther in mod_jk.log nor in apache2/log/error_log I get error messages? Now, I wonder why Netscape and Konqueror don't interprete the HTML-Page from servlet? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Installation problems on Windows
Why are the 'J2RE...' included? I've never needed these in version 4.1, 5.19 or 5.28. -Original Message- From: [EMAIL PROTECTED] Sent: Mar 1, 2005 1:16 PM To: Tomcat Users List tomcat-user@jakarta.apache.org Subject: Re: Installation problems on Windows Yes, those are the path(s) I've used... including \bin in the path, and using the immediate parent directory of the \bin for JAVA_HOME. The following JREs and JDKs have been tried. Also, I've tried pointing the path and JAVA_HOME at the JRE, and the JDK for each version. J2RE1.4.2_06 J2SDK1.4.2_06 J2RE1.4.2_07 J2SDK1.4.2_07 JRE1.5.0_01 JDK1.5.0_01 Sun\AppServer\JDK\JRE (this is J2EE 1.4) Steve -John Najarian [EMAIL PROTECTED] wrote: - To: Tomcat Users List tomcat-user@jakarta.apache.org From: John Najarian [EMAIL PROTECTED] Date: 2005-03-01 12:22PM Subject: Re: Installation problems on Windows Just to double check. Your 'path' env var includes an entry like: c:\j2sdk1.4.2_07\bin - (some people forget the \bin) and your java_home env var is like: c:\j2sdk1.4.2_07 -Original Message- From: [EMAIL PROTECTED] Sent: Mar 1, 2005 11:59 AM To: Tomcat Users List Subject: Re: Installation problems on Windows Some more updates... Tried the .EXE installer with JDK 1.5. Still no go, I get the same installer hang right after Using jvm. Tried the .ZIP installation again, and verified an accurate JAVA_HOME pointing to the 1.4 JDK in this case. Running service install resulted in a Failed to install service error. Does anyone know what the .EXE installer is supposed to do after the Using jvm message? I can't tell if this is a Windows XP/SP2 security problem or some other JDK problem without knowing what the installer is trying to do when it hangs. Also, in case I never get to try Tomcat, is there a recommendation for other J2EE web/ejb app servers I should try? Thx, Steve -Steve Henty/TechFlow wrote: - To: Tomcat Users List From: Steve Henty/TechFlow Date: 2005-03-01 09:43AM Subject: Re: Installation problems on Windows You're right about jvm.dll... one typo and a bunch of cut-and-paste. None of the options you mentioned worked. Starting with using the ZIP file directly, I apparently have some JAVA_HOME or CLASSPATH problems that prevent the service.bat (is that the one I want to install the Windows XP service?) from completing. I've never had to pay a lot of attention to CLASSPATH at the Windows level, since I use WSAD/Eclipse. JAVA_HOME is new to me, and I was counting on the installer to take care of this mundane detail. That said, I *did* set JAVA_HOME to both the public J2RE1.4.2_07, and the full J2SDK1.4.2_07 on separate installer attempts, along with adding the respective /bin directories to the Path. No go either. Installing to a directory without spaces (C:\www\tomcat5.0) didn't help. In any case, Windows hasn't had a problem with spaces in directory names since Win2K, so I'd be surprised if that were truly the problem. There are a zillion programs that use Windows installers successfully, and if I read the mail archives correctly, Tomcat didn't used to have this problem in versions prior to 5.0.19. Does the installation process actually transfer control to the JVM partway through (which is what Using jvm jvm.dll implies)? If so, what would prevent that transfer of control to the JVM? I've successfully compiled and run Java applications in WSAD/Eclipse on this machine, so there is nothing inherent in my Windows setup that is JVM-unfriendly. Perhaps there's a fix around the corner? Steve -Jason Bainbridge wrote: - To: Tomcat Users List From: Jason Bainbridge Date: 2005-02-28 08:37PM Subject: Re: Installation problems on Windows On Mon, 28 Feb 2005 17:26:31 -0800, [EMAIL PROTECTED] wrote: I hope this message makes it to the list (my Welcome email didn't include the examples of the proper email command syntax, only the headings...?) The Tomcat 5.x binary installer for Windows hangs at the point where it says it's using the dvm.dll. This is true under all the following circumstances: -Windows XP Pro, SP2 -JRE 1.4.2_06 (picks client/dvm.dll) -JDK 1.4.2_07 (picks client/dvm.dll or server/dvm.dll, seemingly at random) -JRE 1.4.2_07 (picks client/dvm.dll) -fresh install (with reboot) of each of the JDKs/JREs above -Tomcat 5.0.28 (should be okay with 1.4.x, right?) -Tomcat 5.5.4 -Tomcat 5.5.7 -leave the partially installed Tomcat directories and registry entries intact on subsequent attempts -remove the Tomcat directories and registry entries prior to subsequent attempts -allow Tomcat to use default installation directory (C:\Program Files\Apache Software Foundation\...) -TinyFirewall enabled, and disabled 1. dvm.dll do you mean jvm.dll? Thought it was just a typo at first but it's consistent through your email. 2. Try installing to a directory path without spaces, Windows is really tempermental about such things. 3. Ditch the binary installer and
RE: mod_jk
I think you need to set the content type for your response. Try something like: res.setContentType(text/html); where res is the HttpServletResponse. Jay -Original Message- From: Jörg Lindner [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 01, 2005 12:26 PM To: tomcat-user@jakarta.apache.org Subject: mod_jk Hello All, an ugly effect let me post this message in the list in hope of help. I run tomcat 5.0.28 connected per mod_jk (ajp13) in Apache 2. In Apache the mapping from webapp-URL to the servlet seems to work. My servlet get called. But the result differs by Webbrowsers. In InternetExplorer the Application works fine, but Netscape or Konqueror display the HTML-source produced by my servlet instead of interpreting the HTML??? Neigther in mod_jk.log nor in apache2/log/error_log I get error messages? Now, I wonder why Netscape and Konqueror don't interprete the HTML-Page from servlet? Regards, Jörg Lindner Saxony - 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: Tomcat and IIS Authorization
Hello Allistair, I looked at your blog but I am still lost as to how to setup IIS and Tomcat. I saw that you mentioned you have it setup but did not specify how to do so. -Original Message- Check out the NTLM part in my Tomcat 5.5 blog www.adcworks.com/blog Cheers, Allistair. -Original Message- From: Denny Lee [mailto:[EMAIL PROTECTED] Sent: 01 March 2005 17:26 To: tomcat-user@jakarta.apache.org Subject: Tomcat and IIS Authorization Hello All, I am creating a web app that has users and admins and I need to limit certain configuration pages only to admins. I must use NTLM to authenticate users into the web site and somehow get the credential to determine if the user has sufficient access or not. How can I do this? Can I do this through IIS? So far I got authentication part working using jcfis but I can't seem to get the role of the user. I tried tagish JAAS but keep getting missing LoginModule error. Any help would be great. Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat and IIS Authorization
Laba diena. Dkojame, kad mums parate. Js atsista inut isaugota ms duomen bazje. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Installation problems on Windows
Regarding running Tomcat from the startup.bat and shutdown.bat... This *does* work, but only if JAVA_HOME is pointing to the parent directory of a JDK, not the parent to a JRE (this seems to contradict both the binary installer, and the Tomcat 5.x docs which state Tomcat no longer needs a JDK, just a JRE?) However, even with this correction to JAVA_HOME, the service.bat still fails in the same way -- Failed installing 'Tomcat5' service Steve -Caldarale, Charles R [EMAIL PROTECTED] wrote: - To: Tomcat Users List tomcat-user@jakarta.apache.org From: Caldarale, Charles R [EMAIL PROTECTED] Date: 2005-03-01 12:05PM Subject: RE: Installation problems on Windows From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Subject: Re: Installation problems on Windows Tried the .ZIP installation again, and verified an accurate JAVA_HOME pointing to the 1.4 JDK in this case. Running service install resulted in a Failed to install service error. Sorry if you've already said this, but can you get Tomcat to run from a command prompt rather than as a service? If so, have you set the account for the service to one that has at least read access to the JDK as well as read/write access to the Tomcat installation? - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
JavaMail API ?
Hi all. I'm running Tomcat 5.5.7 on Windows XP and Sun JDK 1.5.0_01 I notice that JavaMail API is missing from BOTH Tomcat and JRE. There is no javax.mail.* hierarchy in ${JAVA_HOME}/lib/rt.jar As a consequence, I cannot use Mail API (javax.mail.*) without adding javamail-1.3.2.jar to ${CATALINA_HOME}/common/lib. What is the story on this? Is JRE 1.5.0 supposed to have or not to have javax.mail.*? Nix. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Migration from Tomcat 4.1 to Tomcat 5.0
I have a application runing on Tomcat 4.1. I want to change to Tomcat 5.0. I already installed Tomcat 5.0.28 and configured server.xml and web.xml according to the document. But when I click startup.bat, I get the error windows can not find '-Djava.endorsed.dirs=' . I get the same error with starting startup.bat from Tomcat 4.1, but the start tomcat from Tomcat 4.1 is working fine. I am running my web apps from Tomcat 4.1 without any problem. What am I doing wrong? Please help me. I need to change to newer version due to performance issue. I will appreciate any help. Kiran Patel Software Engineer Solutions Inc.
Re: Installation problems on Windows
Including the JREs were motiviated by two factors -- one, the Tomcat 5 docs indicate it needs a JRE, not a full-blown JDK, and two, for complete troubleshooting. As it turns out (see related message in this thread), JAVA_HOME in fact must be set to the parent directory of a JDK, *not* the private or public JRE installation. At least this is the case with JDK 1.5. Steve -John Najarian [EMAIL PROTECTED] wrote: - To: Tomcat Users List tomcat-user@jakarta.apache.org From: John Najarian [EMAIL PROTECTED] Date: 2005-03-01 01:30PM Subject: Re: Installation problems on Windows Why are the 'J2RE...' included? I've never needed these in version 4.1, 5.19 or 5.28. -Original Message- From: [EMAIL PROTECTED] Sent: Mar 1, 2005 1:16 PM To: Tomcat Users List Subject: Re: Installation problems on Windows Yes, those are the path(s) I've used... including \bin in the path, and using the immediate parent directory of the \bin for JAVA_HOME. The following JREs and JDKs have been tried. Also, I've tried pointing the path and JAVA_HOME at the JRE, and the JDK for each version. J2RE1.4.2_06 J2SDK1.4.2_06 J2RE1.4.2_07 J2SDK1.4.2_07 JRE1.5.0_01 JDK1.5.0_01 Sun\AppServer\JDK\JRE (this is J2EE 1.4) Steve -John Najarian wrote: - To: Tomcat Users List From: John Najarian Date: 2005-03-01 12:22PM Subject: Re: Installation problems on Windows Just to double check. Your 'path' env var includes an entry like: c:\j2sdk1.4.2_07\bin - (some people forget the \bin) and your java_home env var is like: c:\j2sdk1.4.2_07 -Original Message- From: [EMAIL PROTECTED] Sent: Mar 1, 2005 11:59 AM To: Tomcat Users List Subject: Re: Installation problems on Windows Some more updates... Tried the .EXE installer with JDK 1.5. Still no go, I get the same installer hang right after Using jvm. Tried the .ZIP installation again, and verified an accurate JAVA_HOME pointing to the 1.4 JDK in this case. Running service install resulted in a Failed to install service error. Does anyone know what the .EXE installer is supposed to do after the Using jvm message? I can't tell if this is a Windows XP/SP2 security problem or some other JDK problem without knowing what the installer is trying to do when it hangs. Also, in case I never get to try Tomcat, is there a recommendation for other J2EE web/ejb app servers I should try? Thx, Steve -Steve Henty/TechFlow wrote: - To: Tomcat Users List From: Steve Henty/TechFlow Date: 2005-03-01 09:43AM Subject: Re: Installation problems on Windows You're right about jvm.dll... one typo and a bunch of cut-and-paste. None of the options you mentioned worked. Starting with using the ZIP file directly, I apparently have some JAVA_HOME or CLASSPATH problems that prevent the service.bat (is that the one I want to install the Windows XP service?) from completing. I've never had to pay a lot of attention to CLASSPATH at the Windows level, since I use WSAD/Eclipse. JAVA_HOME is new to me, and I was counting on the installer to take care of this mundane detail. That said, I *did* set JAVA_HOME to both the public J2RE1.4.2_07, and the full J2SDK1.4.2_07 on separate installer attempts, along with adding the respective /bin directories to the Path. No go either. Installing to a directory without spaces (C:\www\tomcat5.0) didn't help. In any case, Windows hasn't had a problem with spaces in directory names since Win2K, so I'd be surprised if that were truly the problem. There are a zillion programs that use Windows installers successfully, and if I read the mail archives correctly, Tomcat didn't used to have this problem in versions prior to 5.0.19. Does the installation process actually transfer control to the JVM partway through (which is what Using jvm jvm.dll implies)? If so, what would prevent that transfer of control to the JVM? I've successfully compiled and run Java applications in WSAD/Eclipse on this machine, so there is nothing inherent in my Windows setup that is JVM-unfriendly. Perhaps there's a fix around the corner? Steve -Jason Bainbridge wrote: - To: Tomcat Users List From: Jason Bainbridge Date: 2005-02-28 08:37PM Subject: Re: Installation problems on Windows On Mon, 28 Feb 2005 17:26:31 -0800, [EMAIL PROTECTED] wrote: I hope this message makes it to the list (my Welcome email didn't include the examples of the proper email command syntax, only the headings...?) The Tomcat 5.x binary installer for Windows hangs at the point where it says it's using the dvm.dll. This is true under all the following circumstances: -Windows XP Pro, SP2 -JRE 1.4.2_06 (picks client/dvm.dll) -JDK 1.4.2_07 (picks client/dvm.dll or server/dvm.dll, seemingly at random) -JRE 1.4.2_07 (picks client/dvm.dll) -fresh install (with reboot) of each of the JDKs/JREs above -Tomcat 5.0.28 (should be okay with 1.4.x, right?) -Tomcat 5.5.4 -Tomcat 5.5.7 -leave the partially installed Tomcat directories and registry entries intact on
Re: Installation problems on Windows
On Tue, 1 Mar 2005 10:16:14 -0800, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Yes, those are the path(s) I've used... including \bin in the path, and using the immediate parent directory of the \bin for JAVA_HOME. The following JREs and JDKs have been tried. Also, I've tried pointing the path and JAVA_HOME at the JRE, and the JDK for each version. Okay lets go back to basics. 1. Install JDK 1.5 2. set JAVA_HOME to the base directoty of the above install something like C:\JDK1.5.0_01 3. You do not need CLASSPATH set nor does java need to be in the PATH, JAVA_HOME is the only variable that is expressly needed, in a default setup the setting of CATALINA_HOME can safely be done by Tomcat as it starts based on the current directory. In fact having these set especially the CLASSPATH could cause problems. 4. Download 5.5.7.zip and from http://jakarta.apache.org/site/downloads/downloads_tomcat-5.cgi 5. Extract jakarta-tomcat-5.5.7.zip to C:\ 6. Open a new command prompt (must be a new one to ensure the latest environment variables are used. 7. navigate to C:\jakarta-tomcat-5.5.7\bin then run startup.bat 8. what happens? Regards, -- Jason Bainbridge http://kde.org - [EMAIL PROTECTED] Personal Site - http://jasonbainbridge.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: SSL Question
Is this for a new web site or one that has been up and running for some time ? Christopher W. Hosler Network Administrator Ingham County MIS Department Email [EMAIL PROTECTED] As water reflects the face So a mans heart reflects the man [EMAIL PROTECTED] 3/1/2005 10:44:36 AM I have a quick question about SSL. If I am already running SSL on a server with a certificate imported into a .keystore file and I create a new certificate will it automatically overwrite the .keystore file by creating a new one or does it just add the info into the existing .keystore file. Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat Cluster
I used the tools that I downloaded from javagroups as described and I can send messages back and forth over multicast on 224.0.0.4 on port 45564 just fine. I am using the private address space of 10.111.22.x. My servers both contain one network card and each server defined as device eth0. Networking is working fine on each machine as I can ping to anywhere in the world. The only thing I can deduce is that I have a configuration issue that I need to figure out. Just a quick check list 1. Uncomment cluster elements in server.xml 2. Uncomment the replication valve in server.xml.I am assuming this is the valve that is listed in the cluster element in the server.xml. 3. Set all of you session attributes to implement java.io.seriazable 4. Tomcat instances are not on the same machine, so the tcpListenPort can be the same? 5. My web xml is set to distributable for my testapp web application. Possible problems that I have come up with include: Explicitly defining mcastBindAddress=10.111.22.167 when it is not necessary. Explicitly defining tcpListenAddress=10.111.22.167 when it is not necessary. I did not uncomment the correct valve?? Any thoughts/opinions on the matter would be appreciated. Randall -Original Message- From: Richard Mixon (qwest) [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 01, 2005 9:16 AM To: Tomcat Users List Subject: RE: Tomcat Cluster Randall, Below is the clustering section of my server.xml running under SuSE Linux (SLES9). Things to check I can think of: 1. Is your server multi-homed (more than one network adapter)? If so you must (at least from my experience) specify both mcastBindAddr and tcpListendAddress as shown below. In my case I'm using a dedicated adapter to connect the cluster over the private address space 192.168.11.x. Obviously the values are different for the Tomcat instance on each server. 2. If after reviewing this it still does not work you can test that multicasting is really working by using the utilities included in the JGroups jars. See: http://www.jgroups.org/javagroupsnew/docs/newuser/node15.html#ItDoesnt Work HTH - Richard SNIP Cluster className=org.apache.catalina.cluster.tcp.SimpleTcpCluster managerClassName=org.apache.catalina.cluster.session.DeltaMa nager expireSessionsOnShutdown=false useDirtyFlag=true notifyListenersOnReplication=true Membership className=org.apache.catalina.cluster.mcast.McastService mcastAddr=228.0.0.4 mcastPort=45564 mcastBindAddr=192.168.11.3 mcastFrequency=500 mcastDropTime=3000/ Receiver className=org.apache.catalina.cluster.tcp.ReplicationListener tcpListenAddress=192.168.11.3 tcpListenPort=4001 tcpSelectorTimeout=100 tcpThreadCount=6/ Sender className=org.apache.catalina.cluster.tcp.ReplicationTransmit ter replicationMode=pooled ackTimeout=15000/ Valve className=org.apache.catalina.cluster.tcp.ReplicationValve filter=.*\.gif;.*\.js;.*\.jpg;.*\.png;.*\.htm;.*\.html;.*\ .css;.*\.txt;/ Deployer className=org.apache.catalina.cluster.deploy.FarmWarDeployer tempDir=/tmp/war-temp/ deployDir=/home/tomcat1/jakarta-tomcat-5.5.7/webapps watchDir=/home/tomcat1/jakarta-tomcat-5.5.7-deployer/bu ild/webapp watchEnabled=false/ /Cluster SNIP -Original Message- From: Randall Svancara [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 01, 2005 8:47 AM To: Tomcat Users List Subject: RE: Tomcat Cluster Apparently this was too verbose for anyone to read. I simply just don't understand why each tomcat instance is failing to recognize any other instance in the cluster. Multicast messages are being broadcasted. Is there any configuration parameter I can turn on that will verify that each tomcat instance can see the other instances??? Thanks, Randall -Original Message- From: Randall Svancara [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 23, 2005 9:44 AM To: Tomcat Users List Subject: Tomcat Cluster I have attempted to configure a tomcat cluster using version 5.5.7 of tomcat. I have configured a simple tcp cluster in the server.xml. I have two tomcat instances installed on two different Linux servers (Fedora core 3, IPTAPLES is turned off, there is not firewall). I have apache and mod_jk set up on a third server. Multicast is enabled!!! When I start up each tomcat instance I receive the following message in the catalina.out file. -- Feb 23, 2005 9:21:49 AM org.apache.catalina.cluster.tcp.SimpleTcpCluster start INFO: Cluster is about to start Feb 23, 2005 9:21:49 AM org.apache.catalina.cluster.mcast.McastServiceImpl setupSocket INFO: Setting multihome multicast interface to:/10.111.22.163 Feb 23, 2005 9:21:49 AM org.apache.catalina.cluster.mcast.McastService start INFO:
RE: Installation problems on Windows
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Subject: RE: Installation problems on Windows However, even with this correction to JAVA_HOME, the service.bat still fails in the same way -- Failed installing 'Tomcat5' service Is it possible that you might not have admin privileges on your Windows box? - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: SSL Question
On Tue, 1 Mar 2005 09:44:36 -0600, Reis, Tom [EMAIL PROTECTED] wrote: I have a quick question about SSL. If I am already running SSL on a server with a certificate imported into a .keystore file and I create a new certificate will it automatically overwrite the .keystore file by creating a new one or does it just add the info into the existing .keystore file. Thanks. It should just add to it, it is the alias for the certificate that is unique in the keystore and you can have many aliases in the one .keystore like for example when you have to establish a chain of trust by importing each certificate in the chain up to the root. Regards, -- Jason Bainbridge http://kde.org - [EMAIL PROTECTED] Personal Site - http://jasonbainbridge.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JavaMail API ?
Nikola Milutinovic wrote: Hi all. I'm running Tomcat 5.5.7 on Windows XP and Sun JDK 1.5.0_01 I notice that JavaMail API is missing from BOTH Tomcat and JRE. There is no javax.mail.* hierarchy in ${JAVA_HOME}/lib/rt.jar It is also missing JAF (Java Activation Framework). I mean, no problem, I CAN get a hold of those JARs, but really, what's the story? A simple mistake on Sun's or TC team's part? Nix. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Installation problems on Windows
Jason, Thanks for the detail on the installation. I mentioned in a separate response within this thread that once JAVA_HOME was corrected (referencing the parent of the 1.5 JDK and not the public or private JRE) then the startup.bat method worked fine in the default installation directory the binary installer started (C:\Program Files\Apache Software Foundation\Tomcat 5.5...). So it appears Tomcat will start up with the correct JAVA_HOME (JDK, not JRE.) However, I still cannot run the Installer successfully, nor will the service.bat install tomcat as a service. Some lingering Windows execution and/or security issues is probably the best guess at this point. I know SP2 for Windows XP made extensive changes, along with the stream of security patches since then. If anyone uncovers such a security issue or the fix, please post, and I'll do the same if I discover it. I'd like to get the service portion ironed out, but in the meantime I can at least get Tomcat started for some development and evaluation. Thx, Steve -Jason Bainbridge [EMAIL PROTECTED] wrote: - To: Tomcat Users List tomcat-user@jakarta.apache.org From: Jason Bainbridge [EMAIL PROTECTED] Date: 2005-03-01 02:10PM Subject: Re: Installation problems on Windows On Tue, 1 Mar 2005 10:16:14 -0800, [EMAIL PROTECTED] wrote: Yes, those are the path(s) I've used... including \bin in the path, and using the immediate parent directory of the \bin for JAVA_HOME. The following JREs and JDKs have been tried. Also, I've tried pointing the path and JAVA_HOME at the JRE, and the JDK for each version. Okay lets go back to basics. 1. Install JDK 1.5 2. set JAVA_HOME to the base directoty of the above install something like C:\JDK1.5.0_01 3. You do not need CLASSPATH set nor does java need to be in the PATH, JAVA_HOME is the only variable that is expressly needed, in a default setup the setting of CATALINA_HOME can safely be done by Tomcat as it starts based on the current directory. In fact having these set especially the CLASSPATH could cause problems. 4. Download 5.5.7.zip and from http://jakarta.apache.org/site/downloads/downloads_tomcat-5.cgi 5. Extract jakarta-tomcat-5.5.7.zip to C:\ 6. Open a new command prompt (must be a new one to ensure the latest environment variables are used. 7. navigate to C:\jakarta-tomcat-5.5.7\bin then run startup.bat 8. what happens? Regards, -- Jason Bainbridge http://kde.org- [EMAIL PROTECTED] Personal Site - http://jasonbainbridge.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: Installation problems on Windows
Nope... I've had the God-bit set since day one. :-) Steve -Caldarale, Charles R [EMAIL PROTECTED] wrote: - To: Tomcat Users List tomcat-user@jakarta.apache.org From: Caldarale, Charles R [EMAIL PROTECTED] Date: 2005-03-01 02:18PM Subject: RE: Installation problems on Windows From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Subject: RE: Installation problems on Windows However, even with this correction to JAVA_HOME, the service.bat still fails in the same way -- Failed installing 'Tomcat5' service Is it possible that you might not have admin privileges on your Windows box? - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: JavaMail API ?
From: Nikola Milutinovic [mailto:[EMAIL PROTECTED] Subject: Re: JavaMail API ? I notice that JavaMail API is missing from BOTH Tomcat and JRE. There is no javax.mail.* hierarchy in ${JAVA_HOME}/lib/rt.jar It is also missing JAF (Java Activation Framework). These are part of J2EE, not J2SE, so they won't be in rt.jar or any other JRE jar. Since Tomcat provides direct support only for a subset of J2EE (Servlet/JSP, primarily), you have to get the additional pieces from Sun. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat Cluster
Ok, I figured this out. Just so everyone knows in tomcat 5.5.7, the cluster multicast functionality is a little flaky (no offense to the developers who spent long hours figuring this stuff out). IF YOU DO NOT HAVE A MULTIHOMED NETWORK, YOU DO NOT NEED TO SPECIFY THE PARAMETER mcastBindAddress=10.111.22.167. I have found that this only confuses the instances joining the cluster and as a result, multicast does not work properly. So long story short, do not specify mcastBindAddress=10.111.22.167 if you do not absolutely have to Randall -Original Message- From: Randall Svancara [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 01, 2005 12:12 PM To: Tomcat Users List Subject: RE: Tomcat Cluster I used the tools that I downloaded from javagroups as described and I can send messages back and forth over multicast on 224.0.0.4 on port 45564 just fine. I am using the private address space of 10.111.22.x. My servers both contain one network card and each server defined as device eth0. Networking is working fine on each machine as I can ping to anywhere in the world. The only thing I can deduce is that I have a configuration issue that I need to figure out. Just a quick check list 1. Uncomment cluster elements in server.xml 2. Uncomment the replication valve in server.xml.I am assuming this is the valve that is listed in the cluster element in the server.xml. 3. Set all of you session attributes to implement java.io.seriazable 4. Tomcat instances are not on the same machine, so the tcpListenPort can be the same? 5. My web xml is set to distributable for my testapp web application. Possible problems that I have come up with include: Explicitly defining mcastBindAddress=10.111.22.167 when it is not necessary. Explicitly defining tcpListenAddress=10.111.22.167 when it is not necessary. I did not uncomment the correct valve?? Any thoughts/opinions on the matter would be appreciated. Randall -Original Message- From: Richard Mixon (qwest) [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 01, 2005 9:16 AM To: Tomcat Users List Subject: RE: Tomcat Cluster Randall, Below is the clustering section of my server.xml running under SuSE Linux (SLES9). Things to check I can think of: 1. Is your server multi-homed (more than one network adapter)? If so you must (at least from my experience) specify both mcastBindAddr and tcpListendAddress as shown below. In my case I'm using a dedicated adapter to connect the cluster over the private address space 192.168.11.x. Obviously the values are different for the Tomcat instance on each server. 2. If after reviewing this it still does not work you can test that multicasting is really working by using the utilities included in the JGroups jars. See: http://www.jgroups.org/javagroupsnew/docs/newuser/node15.html#ItDoesnt Work HTH - Richard SNIP Cluster className=org.apache.catalina.cluster.tcp.SimpleTcpCluster managerClassName=org.apache.catalina.cluster.session.DeltaMa nager expireSessionsOnShutdown=false useDirtyFlag=true notifyListenersOnReplication=true Membership className=org.apache.catalina.cluster.mcast.McastService mcastAddr=228.0.0.4 mcastPort=45564 mcastBindAddr=192.168.11.3 mcastFrequency=500 mcastDropTime=3000/ Receiver className=org.apache.catalina.cluster.tcp.ReplicationListener tcpListenAddress=192.168.11.3 tcpListenPort=4001 tcpSelectorTimeout=100 tcpThreadCount=6/ Sender className=org.apache.catalina.cluster.tcp.ReplicationTransmit ter replicationMode=pooled ackTimeout=15000/ Valve className=org.apache.catalina.cluster.tcp.ReplicationValve filter=.*\.gif;.*\.js;.*\.jpg;.*\.png;.*\.htm;.*\.html;.*\ .css;.*\.txt;/ Deployer className=org.apache.catalina.cluster.deploy.FarmWarDeployer tempDir=/tmp/war-temp/ deployDir=/home/tomcat1/jakarta-tomcat-5.5.7/webapps watchDir=/home/tomcat1/jakarta-tomcat-5.5.7-deployer/bu ild/webapp watchEnabled=false/ /Cluster SNIP -Original Message- From: Randall Svancara [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 01, 2005 8:47 AM To: Tomcat Users List Subject: RE: Tomcat Cluster Apparently this was too verbose for anyone to read. I simply just don't understand why each tomcat instance is failing to recognize any other instance in the cluster. Multicast messages are being broadcasted. Is there any configuration parameter I can turn on that will verify that each tomcat instance can see the other instances??? Thanks, Randall -Original Message- From: Randall Svancara [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 23, 2005 9:44 AM To: Tomcat Users List Subject: Tomcat Cluster I have attempted to configure a tomcat cluster using version 5.5.7 of tomcat. I
Re: Installation problems on Windows
On Tue, 1 Mar 2005 11:05:08 -0800, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Regarding running Tomcat from the startup.bat and shutdown.bat... This *does* work, but only if JAVA_HOME is pointing to the parent directory of a JDK, not the parent to a JRE (this seems to contradict both the binary installer, and the Tomcat 5.x docs which state Tomcat no longer needs a JDK, just a JRE?) Where does it say that exactly? It certainly isn't recommended to do so even though I'm forced to in my company's supported environment, it's always best to use the server JVM available in the JDK, which isn't available in the JRE unless they changed it in 1.5. However as you found out by default it won't run without some modifications as the .bat files are written expecting a JDK so if the documentation says it will run fine just with a JRE then unfortunately the docs are wrong. However, even with this correction to JAVA_HOME, the service.bat still fails in the same way -- Failed installing 'Tomcat5' service As another poster asked, do you have permission to install services on your XP machine? It doesn't sound like Tomcat is at fault here but mor something related to your permissions or something else preventing an install, is it the error inserting those quotes around the service name? If not then you shouldn't be using the quotes and that could well be causing the problem but I don't think that's it. Regards, -- Jason Bainbridge http://kde.org - [EMAIL PROTECTED] Personal Site - http://jasonbainbridge.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JavaMail API ?
No mistake that I know about. JAF and JavaMail are both separate downloads from Sun's site and have been all along. Licensing issues probably prevent them from being included in the Tomcat dist. --David Nikola Milutinovic wrote: Nikola Milutinovic wrote: Hi all. I'm running Tomcat 5.5.7 on Windows XP and Sun JDK 1.5.0_01 I notice that JavaMail API is missing from BOTH Tomcat and JRE. There is no javax.mail.* hierarchy in ${JAVA_HOME}/lib/rt.jar It is also missing JAF (Java Activation Framework). I mean, no problem, I CAN get a hold of those JARs, but really, what's the story? A simple mistake on Sun's or TC team's part? Nix. - 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: JavaMail API ?
I wouldn't have expected to see them in Tomcat frankly... Although sending eMails from a webapp is relatively common, it's not common enough to be included with an app server (well, except for Websphere, which generally includes everything under the sun!) I am kind of surprised it hasn't been incorporated into JDK1.5 though, that would have been a reasonable expectation. Is it perhaps rolled into J2EE instead? I don't know. Same for JAF. -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com David Smith wrote: No mistake that I know about. JAF and JavaMail are both separate downloads from Sun's site and have been all along. Licensing issues probably prevent them from being included in the Tomcat dist. --David Nikola Milutinovic wrote: Nikola Milutinovic wrote: Hi all. I'm running Tomcat 5.5.7 on Windows XP and Sun JDK 1.5.0_01 I notice that JavaMail API is missing from BOTH Tomcat and JRE. There is no javax.mail.* hierarchy in ${JAVA_HOME}/lib/rt.jar It is also missing JAF (Java Activation Framework). I mean, no problem, I CAN get a hold of those JARs, but really, what's the story? A simple mistake on Sun's or TC team's part? Nix. - 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: Installation problems on Windows
On Tue, 1 Mar 2005 11:34:29 -0800, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Nope... I've had the God-bit set since day one. :-) Stupid question time Is there already a service named Tomcat5 already installed? -- Jason Bainbridge http://kde.org - [EMAIL PROTECTED] Personal Site - http://jasonbainbridge.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[OT] LogWatch filter for Tomcat
Has anyone written a Tomcat filter for the LogWatch log analysys tool? http://www2.logwatch.org:81/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Installation problems on Windows
This is my own remote-office laptop, so I have the God-bit set (Administrators group), and have installed 50 or 60 programs / services over the last 12 months, including 20 or so after the SP2 upgrade. So it would seem Tomcat is trying to do something during installation that most other programs -- Open Source or not -- don't typically try or need to do. Do we know who put the installer together? Perhaps they would have some additional insight into what step the installer is trying to do when it hangs, and by extension what the tomcat5 executable tries to do in service.bat when it fails. Steve -Jason Bainbridge [EMAIL PROTECTED] wrote: - To: Tomcat Users List tomcat-user@jakarta.apache.org From: Jason Bainbridge [EMAIL PROTECTED] Date: 2005-03-01 02:40PM Subject: Re: Installation problems on Windows On Tue, 1 Mar 2005 11:05:08 -0800, [EMAIL PROTECTED] wrote: Regarding running Tomcat from the startup.bat and shutdown.bat... This *does* work, but only if JAVA_HOME is pointing to the parent directory of a JDK, not the parent to a JRE (this seems to contradict both the binary installer, and the Tomcat 5.x docs which state Tomcat no longer needs a JDK, just a JRE?) Where does it say that exactly? It certainly isn't recommended to do so even though I'm forced to in my company's supported environment, it's always best to use the server JVM available in the JDK, which isn't available in the JRE unless they changed it in 1.5. However as you found out by default it won't run without some modifications as the .bat files are written expecting a JDK so if the documentation says it will run fine just with a JRE then unfortunately the docs are wrong. However, even with this correction to JAVA_HOME, the service.bat still fails in the same way -- Failed installing 'Tomcat5' service As another poster asked, do you have permission to install services on your XP machine? It doesn't sound like Tomcat is at fault here but mor something related to your permissions or something else preventing an install, is it the error inserting those quotes around the service name? If not then you shouldn't be using the quotes and that could well be causing the problem but I don't think that's it. Regards, -- Jason Bainbridge http://kde.org- [EMAIL PROTECTED] Personal Site - http://jasonbainbridge.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: Installation problems on Windows
Jason, Definitely *not* a stupid question, as the answer is yes. Don't know how it got there, and it doesn't work (can't look at properties, can't start it, probably can't remove it...?) Undoubtedly an artifact from one of the dozen or so installation attempts. I've been clearing the aborted installation directories and registry entries between each attempt... but never looked in the services window. Running service remove does *not* remove the entry, so I'm checking in the registry again. How else to get this phantom Tomcat service out of there? Steve -Jason Bainbridge [EMAIL PROTECTED] wrote: - To: Tomcat Users List tomcat-user@jakarta.apache.org From: Jason Bainbridge [EMAIL PROTECTED] Date: 2005-03-01 02:46PM Subject: Re: Installation problems on Windows On Tue, 1 Mar 2005 11:34:29 -0800, [EMAIL PROTECTED] wrote: Nope... I've had the God-bit set since day one. :-) Stupid question time Is there already a service named Tomcat5 already installed? -- Jason Bainbridge http://kde.org- [EMAIL PROTECTED] Personal Site - http://jasonbainbridge.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]