RE: Tomcat and Apache by Proxy http connections slow but https fast
Thanks for the help - problem solved! Was running a box with LVS, and running DNS. I don't think all the zone files were there, but stopping named worked like a charm - all webapps fast! What a stupid error (on my part). -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED] Sent: 18 August 2004 01:13 To: Tomcat Users List Subject: Re: Tomcat and Apache by Proxy http connections slow but https fast AFAIK - mod_proxy does not cache DNS lookups. It is looked up on every request. So a slow lookup could be your problem. -Tim Duncan Houston wrote: Sorry folks, more info (hope somebody will has experienced these problems as well!). I can hit 2 JSPs in different webapps, both proxied behind Apache, both on HTTP. The one is fast, the other slow. What could be causing this? Apache config? DNS lookup issues? -Original Message- From: Duncan Houston [mailto:[EMAIL PROTECTED] Sent: 17 August 2004 23:28 To: Tomcat Users List Subject: RE: Tomcat and Apache by Proxy http connections slow but https fast OK, I made a mistake there (sorry). The issue does still seem to be that connecting to a webapp over SSL is faster than connecting to another webapp over non-SSL, both running in the same Tomcat (JBoss) instance and proxied behind Apache. Any ideas why the SSL version would be fast and the normal (HTTP) version not? -Original Message- From: Duncan Houston [mailto:[EMAIL PROTECTED] Sent: 17 August 2004 18:03 To: Tomcat Users List Subject: RE: Tomcat and Apache by Proxy http connections slow but https fast Some more info. The problem does not seem to be with HTTP vs HTTPS (was testing app A on HTTPS, app B on HTTP B - problem seems that A is faster than B whether on HTTP or HTTPS). I have a number of .war files deployed to JBoss's /deploy directory (automatic deployment). Let's call them A and B, and let's say each has an image folder. Accessing an image from inside A's folder is fast, but accessing an image from B's folder is slow. Proxy setup appears to be the same for both apps. -Original Message- From: Duncan Houston [mailto:[EMAIL PROTECTED] Sent: 17 August 2004 17:19 To: [EMAIL PROTECTED] Subject: Tomcat and Apache by Proxy http connections slow but https fast Hi Background: Firstly I should state that I am running Tomcat 4.0.1 with JBoss 2.4.4, Sun JVM 1.3. In front of that, Apache 2 is running. All of this is running on RedHat. Requests are passed through to Tomcat by proxy, using rewrite rules. I know, I should be running a newer version of JBoss Tomcat, and should be using mod_jk, but haven't had the time to upgrade quite yet. The problem: Connections to webapps run on Tomcat via http are slow over the internet. It appears that establishing a new connection (for page, images on page etc) takes time - once established (seconds later) the data gets transferred quickly. But, interestingly, connecting via https is fast. My test server, when hit on a test intranet, is very quick to respond. Any ideas? I have set enableLookups=false, for what that is worth. Help would be much appreciated. - 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: RE: Tomcat and Apache by Proxy http connections slow but https fast
ATTENTION: THIS IS AN AUTOMATED RESPONSE. DO NOT REPLY TO THIS MESSAGE. If you want to end your subscription, please use this link: http://www.nethugs.com/unsubscribe.shtml If you want to subscribe, please use this link: http://www.nethugs.com/whysubscribe.shtml If you need to contact a live person, use this link: http://www.nethugs.com/contactus.shtml Sincerely, NetHugs.com Admin http://www.nethugs.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Class loader looks in Tomcat work directory and not in webapp directory for resources
Hi QM, thanks a lot for the prompt answer! Unfortunately I have to provide some application resources in a JAR. I am using hibernate in my persistence layer. I generate my persistent classes and their O/R mappings directly from the database and deploy that stuff to my app. If you don't want to specify all hibernate mappings that hibernate should use one by one you have to provide these mappings in a JAR and read it into hibernate. In that way I don't have to touch any classes in my persistence layer. I just tell hibernate Use whatever mapping you find in this JAR.. The only thing I have to do when implementing the persistence layer of a new app is then call the middlegen hibernate plugin and generate the app specific bos and mappings. The rest is implemented in framework classes that don't have to be changed. I tried to rename the JAR to a ZIP but that does not get accepted and an exception is thrown. Do you have any ideas how to solve this problem? Desperately, Oliver QM qm300 @brandxdev.net To: Tomcat Users List [EMAIL PROTECTED] cc: 17.08.2004 22:28 Subject: Re: Class loader looks in Tomcat work directory and not in webapp directory for Please respond resources to Tomcat Users List On Tue, Aug 17, 2004 at 08:43:54PM +0200, Oliver Kuntze wrote: : For the second resource lookup (the JAR) the class loader searches in : Tomcat 5.0\work\Catalina\localhost\rad_webmodule\loader (Tomcat's work : directory) and not in the webapp classpath under Tomcat 5.0 : \webapps\rad_webmodule\WEB-INF\classes (or in the WEB-INF/lib) where the : JAR is located. Why? That just seems to be where Tomcat5 deploys JARs from WAR files... probably for easy access. Is there any reason you're trying to manipulate JARs directly within your app? If you need to get to a set of files, why not place them under a directory structure in the classpath? -QM -- software -- http://www.brandxdev.net tech news -- http://www.RoarNetworX.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]
AW: Tomcat Clusterin Multicast Multiinstances
Hi again, you are right with the 2Gb, sorry. It's leaving a netto of 1.6 GB ish for Tomcat here. My problem was referring to the clustersection of server.xml rather than the standard IP: mcastAddr = the multicast address, has to be the same for all the nodes mcastPort = the multicast port, has to be the same for all the nodes So even when everything else can be configured per Instance, these addr needs to be the same. So when I start up the second instance of Tomcat on the server, it says that the mcastAddr (=228.0.0.4 port 45564) is already in use and it can't bind to it ... -- INFO: Sleeping for 2000 secs to establish cluster membership 18.08.2004 09:47:19 org.apache.catalina.cluster.tcp.ReplicationListener run SCHWERWIEGEND: Unable to start cluster listener. java.net.BindException: Address already in use: bind at sun.nio.ch.Net.bind(Native Method) at sun.nio.ch.ServerSocketChannelImpl.bind(Unknown Source) at sun.nio.ch.ServerSocketAdaptor.bind(Unknown Source) at sun.nio.ch.ServerSocketAdaptor.bind(Unknown Source) at org.apache.catalina.cluster.tcp.ReplicationListener.listen(ReplicationListen er.java:104) at org.apache.catalina.cluster.tcp.ReplicationListener.run(ReplicationListener. java:85) at java.lang.Thread.run(Unknown Source) - -- Björn Andersen www.premiere.de -Ursprüngliche Nachricht- Von: Dale, Matt [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 17. August 2004 18:19 An: Tomcat Users List Betreff: RE: Tomcat Clusterin Multicast Multiinstances Memory limit should be 2 Gig for JVM's running in a 32 bit operating system. More for the 64 bit JVM's. I think you would have to have virtual IP addresses on that machine and run tomcats on specific IP addresses for you to use the multicasting. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 17 August 2004 13:42 To: [EMAIL PROTECTED] Subject: Tomcat Clusterin Multicast Multiinstances Hi, can anyone tell me how Tomcats can be configured as a cluster with session replication when there is more than one TC-Instance on one machine? We need multi-instance because of the 1 Gig mem-limit to the jvm's. Or has that changed meanwhile too? -- Björn Andersen Webservices www.premiere.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]
Logging problem SOAP based web service
Hi, I have a SOAP based web service running on tomcat 4.1.30. This service should write a log containing client's IP address and some attributes from SOAP-message body (inside SOAP envelope). Is this possible somehow? I suppose Tomcat's access logs cannot read attributes from SOAP envelope and web service's implementation responding to request does not know the IP address of the client (parameters to ws implementation contain Envelope env, SOAPContext reqCtx, SOAPContext resCtx). Any ideas? br, Timo - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How to submit new Tomcat documentation updates.
Hi Guys So far, I have been able to checkout from CVS the various modules for Tomcat to look at the source code. I cannot find a clear step-by-step for how one would get the latest documentation, e.g Jasper HowTo, and then submit changes to it. If anyone has the time to detail a few steps (you can assume I can use CVS) on what to do, as I would like to submit a documentation update Cheers, AC 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]
Container managed security in tomcat 5.x, need j_password in struts web app, ServletFilter or IntermediateServlet? [Auf Viren geprüft]
Subject: Container managed security in tomcat 5.x, need j_password in struts web app, ServletFilter or IntermediateServlet? Background: = I'm writing a web front-end to a back-end system which has 1000 user accounts and each user has different rights (ACIs, ACLs) in that back-end (think of LDAP Directory, RDBMS, Filessystem = any Data-Store with user-dependend access-rights) I use J2EE, Tomcat 5.0.27, Struts 1.1+Tiles as front-end, Sun One LDAP as back-end. Requirement(s): - I want to user container managed security to leverage Realms and JNDI/JAAS. - I want to connect to the same back-end with the same user used by container managed security - Therefore I need principal *and* credential of that user by whatever means - authorization is not managed by security-roles in J2EE sphere but by security rules of backend which automatically apply to the logged on user Problem: authorization in back-end: == I can use container-managed security (JNDI-Realm) to authenticate users, *but* can't connect to the back-end as the current user because my application doesn't know the password(credential) of the current user. I can get the Principal, which is not enough. So I can't leverage the ACIs, ACLs of my Back-End System because I have to logon as Superuser/root/DBA who is allowed everything. Solution(s): = 1. Intermediate Servlet -- - User request protected resource - Container forwards to my configured login.jsp - User enters j_username and j_password and submits - login.jsp does not POST to container servlet /j_security_check directly but to by servlet which copies j_username and j_password in the session context and *then* forwards or redirects /j_security_check - Problem: /j_security_check as a servlet mapping magically disappeares by that time in Tomcat 5.0.x, so it complains it can't find '/j_security_check' :-P Part of my LoginAction: ActionForward forward = new ActionForward(); forward.setName(securityCheck); forward.setPath(/j_security_check); // forward.setPath(/../j_security_check); // forward.setPath(http://localhost:8080/j_security_check;); forward.setContextRelative(false); forward.setRedirect(false); // forward.setRedirect(true); 2. ServletFilter -- - User request protected resource - Container forwards to my configured login.jsp - User enters j_username and j_password and submits - login.jsp POSTS to /j_security_check - Container is configured as to apply MyServletFilter to the URL pattern /j_security_check - MyServletFilter gets the POSTed j_username, j_password out of the request, copies them into the session.context and chains to the Servlet /j_security_check which authentificates the user as normal - Problem: MyServletFilter gets called for all URL patterns with the one exeption being '/j_security_check'. :-P Part of my FilterMapping in web.xml: filter-mapping filter-nameLoginFilter/filter-name url-pattern/j_security_check/url-pattern dispatcherREQUEST/dispatcher dispatcherFORWARD/dispatcher /filter-mapping Part of my LoginFilter: log.warn(*** Executing LoginFilter doFilter()); chain.doFilter(request, response); Being J2EE conform? === Both solutions are J2EE conform. Standards were a bit ambigous at that point but I don't consider both solutions valid. The ServletFilter-solution is described for IBM Webpshere in developerWorks and the Intermediate Servlet was proposed by people on the tomcat mailing and seemed to work on tomcat 4.x Struts and Tiles: I use struts and tiles for the front-end. form-based authentification via login.jsp does work, even with struts and tiles, if I call /j_security_servlet directly in a non Struts-action. The Intermediate Servlet is my Action servlet from struts. j_username and j_password are in an action form bean. I use an ActionForward to '/j_security_check'. Because Struts appends the name of the web-app I tried '/../j_security_check' and 'http://localhost:8080/j_security_check' with forward or redirect but to no success. All *.do URLs are secure and protect be container-managed security. All resources to build the login.jsp are not protected. Subquestion: How do I forward to URIs outside my current web-app? Now it gets appended so I end up with /web-app/j_security_check which cannot be found? I don't think I'm the only one with this problem. What did I wrong? Did I overlook anything? Are my solutions valid. Are there more solutions? I don't want to use ServletFiltering for my proprietary SecurityFilter like the sourceforge.net project but stay with container-managed security. All help is welcome, TIA, Frerk Meyer EDEKA Aktiengesellschaft GB Datenverarbeitung Frerk Meyer CC Web Technologien New-York-Ring 6 22297 Hamburg Tel: 040/6377 - 3272 Fax: 040/6377 - 41268
Re: explorer can't open protected files but mozilla can
This has come up several times recently. It's all to do with how IE handles content. It seems, whenever a plug-in is used (excel, word, acrobat etc) IE has to download the content to its cache before the plug-in can be passed the content. So, when content is served from a protected area Tomcat adds http headers so that the content is not cached at proxy or browser level. This causes IE problems ;) We've solved this by selectively changing the http headers that go with content served to IE. This solution is detailed in the thread titled 'Tomcat 4.1.30 adding no-cache to http headers' on this list from last week. You'll have to write and deploy a Filter to modify the headers but it's not hard. HTH, Jon Janko Harej wrote: Hi! I have a web application with a protected folder and some files in it. My webapp structure is: testapp login.jsp \ WEB-INF \ protected a.gif archive.zip text.txt word.doc When I try to access any file in protected directory, browser opens login.jsp and asks for username and password - everything ok. The problem is with internet explorer - when I try to open a.gif or text.txt explorer opens them, !!! but if I try to open archive.zip or word.doc, it fails and says that file does not exists or archive is corupted. !!! If I use Mozilla everything works perfectly. I've tried to user tomcat 5.19 and 5.27 on windows xp and linux. It always works on mozilla 1.4 but not in internet explorer 6.0 and 5.5. So is anything wrong with my app, or is this internet explorer fault (so this is wrong user list?). Thanks for any advice Janko - 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]
JMX Timer
Hello. I searched the archives at http://mikal.org/interests/java/tomcat/archive/search?search=JMX+Timer but found no results. I am porting a small Servlet application from WebLogic 8.x to Tomcat 5.x. The application has a Servlet context listener that instantiates and starts a JMX Timer instance during initialization. This Timer runs for the lifetime of the app, occasionally causing an object to invoke a web service and updatw a database with data collected from the web service response. I don't have much experience with Tomcat running stand alone, and could use some help with the JMX aspect. In WebLogic, you instantiate a weblogic.management.timer.Timer directly. This class is very similar to javax.management.timer.Timer (I think it's an extension). Then you add a NotificationListener and a Notification to the Timer, and then you start it. That's all there is to it. So to deploy this application in Tomcat, I assume I will somehow instantiate a javax.management.timer.Timer in place of the WebLogic-specific Timer, or else I will find an instance using some factory or lookup service. How is this done? Do I instantiate one directly, just like the WebLogic class, or do I have to obtain the instance from some factory or some other service? Do I have to configure the Tomcat server in any particular ways to use the Timer? I would appreciate your advice on this. I can paste some pseudocode of the unported app if I need to. Thanks, Erik - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Odd characters inserted in response after JSPC
Hi Guys I have compiled all my JSPs with JSPC. I have found that 3 odd characters occur at the very start of most of my my responses which use a certain template JSP ... I use 2 layouts, one for home and one for other pages. This problem is not happening on the home page although both that and the page layout use the same JSP code The home class code shows the following: _jspx_out = out; out.write(\r\n\r\n\r\n\r\n\r\n!DOCTYPE html PUBLIC \-//W3C//DTD XHTML 1.0 Transitional//EN\ \http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\;\r\n\r\nhtml xmlns=\http://www.w3.org/1999/xhtml\;\r\n\r\n\thead\r\n\t\ttitleiQ : The QAS Intranet/title\r\n\t\tlink rel=\stylesheet\ href=\/resources/skins/); Whilst the page class code has 3 output numbers \357\273\277 !?: _jspx_out = out; out.write(\357\273\277\r\n\r\n\r\n\r\n\r\n!DOCTYPE html PUBLIC \-//W3C//DTD XHTML 1.0 Transitional//EN\ \http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\;\r\n\r\nhtml xmlns=\http://www.w3.org/1999/xhtml\;\r\n\thead \r\n\t\ttitleiQ : ); The JSP top sections in both home and page JSPs are %@ page contentType=text/html; charset=UTF-8 % %@ page language=java errorPage=/views/error/error.jsp % %@ taglib uri=/WEB-INF/iq.tld prefix=iq % %@ taglib uri=/WEB-INF/struts-tiles.tld prefix=tiles % !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd; Any ideas why JSPC is adding these? Cheers, Allistair. 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]
Setting PHP for Apache Tomcat
Is it actually possible to configure Tomcat to work with PHP? If so, how? the PHP installation guide refers to httpd.conf or srm.conf neither of which exist in Tomcat. Thanks for your input, David. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Odd characters inserted in response after JSPC : more info
OK, I just totally wiped the whole page jsp file and then ran JSPC and it generated 12 errors on a blank file complaining about unclosed string literals. Looking at the JAVA file JSPC generated for the blank JSP you can see it is still trying to output 3 chars but don't know why. package org.apache.jsp.layout; import javax.servlet.*; import javax.servlet.http.*; import javax.servlet.jsp.*; public final class page_jsp extends org.apache.jasper.runtime.HttpJspBase implements org.apache.jasper.runtime.JspSourceDependent { private static java.util.Vector _jspx_dependants; public java.util.List getDependants() { return _jspx_dependants; } public void _jspService(HttpServletRequest request, HttpServletResponse response) throws java.io.IOException, ServletException { JspFactory _jspxFactory = null; PageContext pageContext = null; HttpSession session = null; ServletContext application = null; ServletConfig config = null; JspWriter out = null; Object page = this; JspWriter _jspx_out = null; PageContext _jspx_page_context = null; try { _jspxFactory = JspFactory.getDefaultFactory(); response.setContentType(text/html); pageContext = _jspxFactory.getPageContext(this, request, response, null, true, 8192, true); _jspx_page_context = pageContext; application = pageContext.getServletContext(); config = pageContext.getServletConfig(); session = pageContext.getSession(); out = pageContext.getOut(); _jspx_out = out; out.write('ï'); out.write('»'); out.write('¿'); } catch (Throwable t) { if (!(t instanceof SkipPageException)){ out = _jspx_out; if (out != null out.getBufferSize() != 0) out.clearBuffer(); if (_jspx_page_context != null) _jspx_page_context.handlePageException(t); } } finally { if (_jspxFactory != null) _jspxFactory.releasePageContext(_jspx_page_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 --- /FONT - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Setting PHP for Apache Tomcat
http://wiki.apache.org/jakarta-tomcat/UsingPhp -Tim [EMAIL PROTECTED] wrote: Is it actually possible to configure Tomcat to work with PHP? If so, how? the PHP installation guide refers to httpd.conf or srm.conf neither of which exist in Tomcat. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Logging problem SOAP based web service
You might need to use a Filter to stuff the things you need to log into the ServletRequest. Then you can use this: http://marc.theaimsgroup.com/?l=tomcat-userm=109273888725607w=2 -Tim [EMAIL PROTECTED] wrote: Hi, I have a SOAP based web service running on tomcat 4.1.30. This service should write a log containing client's IP address and some attributes from SOAP-message body (inside SOAP envelope). Is this possible somehow? I suppose Tomcat's access logs cannot read attributes from SOAP envelope and web service's implementation responding to request does not know the IP address of the client (parameters to ws implementation contain Envelope env, SOAPContext reqCtx, SOAPContext resCtx). Any ideas? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to submit new Tomcat documentation updates.
Look at the xdocs directories. All the docs are xml files. Then they get passed through an xslt stylesheet. -Tim Allistair Crossley wrote: Hi Guys So far, I have been able to checkout from CVS the various modules for Tomcat to look at the source code. I cannot find a clear step-by-step for how one would get the latest documentation, e.g Jasper HowTo, and then submit changes to it. If anyone has the time to detail a few steps (you can assume I can use CVS) on what to do, as I would like to submit a documentation update Cheers, AC - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Container managed security in tomcat 5.x, need j_password in struts web app, ServletFilter or IntermediateServlet? [Auf Viren geprüft]
It sounds like you'll need to create your own realm. You might be able to extend JNDIRealm. You cannot run filters on /j_security_check. The spec says so. Websphere might allow it - but tomcat doesn't. -Tim [EMAIL PROTECTED] wrote: http://marc.theaimsgroup.com/?l=tomcat-userm=109282146309790w=2 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Odd characters inserted in response after JSPC
I had the same problem working with a Unicode file. I don't know what my editor was doing - I just used vi and killed the character and all worked well. -Tim Allistair Crossley wrote: Hi Guys I have compiled all my JSPs with JSPC. I have found that 3 odd characters occur at the very start of most of my my responses which use a certain template JSP ... I use 2 layouts, one for home and one for other pages. This problem is not happening on the home page although both that and the page layout use the same JSP code The home class code shows the following: _jspx_out = out; out.write(\r\n\r\n\r\n\r\n\r\n!DOCTYPE html PUBLIC \-//W3C//DTD XHTML 1.0 Transitional//EN\ \http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\;\r\n\r\nhtml xmlns=\http://www.w3.org/1999/xhtml\;\r\n\r\n\thead\r\n\t\ttitleiQ : The QAS Intranet/title\r\n\t\tlink rel=\stylesheet\ href=\/resources/skins/); Whilst the page class code has 3 output numbers \357\273\277 !?: _jspx_out = out; out.write(\357\273\277\r\n\r\n\r\n\r\n\r\n!DOCTYPE html PUBLIC \-//W3C//DTD XHTML 1.0 Transitional//EN\ \http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\;\r\n\r\nhtml xmlns=\http://www.w3.org/1999/xhtml\;\r\n\thead \r\n\t\ttitleiQ : ); The JSP top sections in both home and page JSPs are %@ page contentType=text/html; charset=UTF-8 % %@ page language=java errorPage=/views/error/error.jsp % %@ taglib uri=/WEB-INF/iq.tld prefix=iq % %@ taglib uri=/WEB-INF/struts-tiles.tld prefix=tiles % !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd; Any ideas why JSPC is adding these? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat clustering
Srinivas Rao Ch wrote: I am getting problems in configuring my tomcat for clustering. Nodes are not recognizing each other. mcastAddr has the same IP for all the nodes. Can someone tell what this property is for. My tcpListenAddress is 127.0.0.1 for all the nodes but port is different. In my rules.xml in the Load Balancer, I am giving the machine names for tcpListenAddress. Still it is not working. Is there anything to be done. Why my nodes are not recognizing each other. I appreciate any help. I remember that on WindowsXP the integrated Firewall, if enabled, is a show stopper. Try to - temporarily - disable it on all network interfaces and start your Tomcats again. Michael - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Setting PHP for Apache Tomcat
I'm running Win2k. Should I have to use Cygwin to install PHP then? http://wiki.apache.org/jakarta-tomcat/UsingPhp -Tim [EMAIL PROTECTED] wrote: Is it actually possible to configure Tomcat to work with PHP? If so, how? the PHP installation guide refers to httpd.conf or srm.conf neither of which exist in Tomcat. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Request
Thank you for your request, your details are attached! +++ Attachment: No Virus found +++ MessageLabs AntiVirus - www.messagelabs.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Class loader looks in Tomcat work directory and not in webapp directory for resources
Found the reason for my problem. You cannot put app resources in a JAR and put it in the webapp class path (the class loaders will not find it there because the class loader in command looks in the tomcat work directory for JARs). The reason why the ZIP was not found is the ever present JVM problem with %20 in URLs (as in Tomcat%205 ;-). Will try URL decoding and if that does not work rename the tomcat base dir to Tomcat5.0. So, thanks for trying to help me out anyway! Cheers, Oliver - Forwarded by Oliver Kuntze/PLZ/CSC on 18.08.2004 13:21 - Oliver Kuntze /PLZ/CSC To: Tomcat Users List [EMAIL PROTECTED] cc: 18.08.2004 09:17 Subject: Re: Class loader looks in Tomcat work directory and not in webapp directory for resources(Document link: Oliver Kuntze) Hi QM, thanks a lot for the prompt answer! Unfortunately I have to provide some application resources in a JAR. I am using hibernate in my persistence layer. I generate my persistent classes and their O/R mappings directly from the database and deploy that stuff to my app. If you don't want to specify all hibernate mappings that hibernate should use one by one you have to provide these mappings in a JAR and read it into hibernate. In that way I don't have to touch any classes in my persistence layer. I just tell hibernate Use whatever mapping you find in this JAR.. The only thing I have to do when implementing the persistence layer of a new app is then call the middlegen hibernate plugin and generate the app specific bos and mappings. The rest is implemented in framework classes that don't have to be changed. I tried to rename the JAR to a ZIP but that does not get accepted and an exception is thrown. Do you have any ideas how to solve this problem? Desperately, Oliver QM qm300 @brandxdev.net To: Tomcat Users List [EMAIL PROTECTED] cc: 17.08.2004 22:28 Subject: Re: Class loader looks in Tomcat work directory and not in webapp directory for Please respond resources to Tomcat Users List On Tue, Aug 17, 2004 at 08:43:54PM +0200, Oliver Kuntze wrote: : For the second resource lookup (the JAR) the class loader searches in : Tomcat 5.0\work\Catalina\localhost\rad_webmodule\loader (Tomcat's work : directory) and not in the webapp classpath under Tomcat 5.0 : \webapps\rad_webmodule\WEB-INF\classes (or in the WEB-INF/lib) where the : JAR is located. Why? That just seems to be where Tomcat5 deploys JARs from WAR files... probably for easy access. Is there any reason you're trying to manipulate JARs directly within your app? If you need to get to a set of files, why not place them under a directory structure in the classpath? -QM -- software -- http://www.brandxdev.net tech news -- http://www.RoarNetworX.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]
How to get mod_jk2 to pass (environment?) variables
Hi, My apologies for continuing to post similar messages, but I'm still not able to get my JSPs to retrieve any of the information from client certificates in my Apache+Tomcat+mod_jk2 server. I've been testing like crazy for 2-3 days now, and going nowhere fast. At this point, I'm getting more convinced that something is wrong in the Apache-mod_jk2-Tomcat path. Specifically, I think that Apache is sending the SSL-related variables to Tomcat, but somewhere along the way, they're not making it to my JSPs. Part of this is that I've run the 'printenv.pl' in cgi-bin, and that displays a TON of SSL-related information. What I'm thinking is that Apache is passing the variables, but probably mod_jk2 is not passing them to Tomcat. During my testing, I thought that I'd run across some information about setting environment variables or something similar in one of the configuration files, maybe workers2.properties, but I can't find this reference. It was something like AjpEnvVars=. If this rings a bell for someone, can you point me to a reference on this? Thanks, Jim - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JMX Timer
Well I got the JMX Timer running in Tomcat, and I did what I suggested -- I just instantiated a javax.management.timer.Timer, configured it and started it. I did not register the Timer with any type of JMX server, or anything like that. I would appreciate any insight on whether that's something I need to do and what the drawbacks of instantiating a JMX Timer directly are, if any. But, at least it is working. Thanks, Erik Erik Weber wrote: Hello. I searched the archives at http://mikal.org/interests/java/tomcat/archive/search?search=JMX+Timer but found no results. I am porting a small Servlet application from WebLogic 8.x to Tomcat 5.x. The application has a Servlet context listener that instantiates and starts a JMX Timer instance during initialization. This Timer runs for the lifetime of the app, occasionally causing an object to invoke a web service and updatw a database with data collected from the web service response. I don't have much experience with Tomcat running stand alone, and could use some help with the JMX aspect. In WebLogic, you instantiate a weblogic.management.timer.Timer directly. This class is very similar to javax.management.timer.Timer (I think it's an extension). Then you add a NotificationListener and a Notification to the Timer, and then you start it. That's all there is to it. So to deploy this application in Tomcat, I assume I will somehow instantiate a javax.management.timer.Timer in place of the WebLogic-specific Timer, or else I will find an instance using some factory or lookup service. How is this done? Do I instantiate one directly, just like the WebLogic class, or do I have to obtain the instance from some factory or some other service? Do I have to configure the Tomcat server in any particular ways to use the Timer? I would appreciate your advice on this. I can paste some pseudocode of the unported app if I need to. Thanks, Erik - 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: Setting PHP for Apache Tomcat
I have no clue - I only know enough about this topic to copy/paste a URL ;) -Tim [EMAIL PROTECTED] wrote: I'm running Win2k. Should I have to use Cygwin to install PHP then? http://wiki.apache.org/jakarta-tomcat/UsingPhp -Tim [EMAIL PROTECTED] wrote: Is it actually possible to configure Tomcat to work with PHP? If so, how? the PHP installation guide refers to httpd.conf or srm.conf neither of which exist in Tomcat. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Container managed security in tomcat 5.x, need j_password in struts web app, ServletFilter or IntermediateServlet? [Auf Viren geprüft]
Thanks Tim Funk for the quick answer, In FormAuthenticator there is a line: principal = context.getRealm().authenticate(username, password); It returns an interface java.security.Principal The Principal stores the username (uid), not the password (Credential). I only can call getName(). Furthermore any Realm has no access to the users session. So I can't get the password from the realm. I could of course write the password as cleartext or obscured code in my own Realm to an external data store. But I don't want that. It's dirty and unsafe and against the security requirements of this web-app. I've searched the Java Servlet Specification v.2.4 http://jcp.org/aboutJava/communityprocess/final/jsr154/index.html but haven't found a place where applying ServletFilters to /j_security_check is forbidden. Could you please provide me with an pointer to the spec you have forbidding this kind of filtering? One of many same questions I have found on http://www.mail-archive.com/[EMAIL PROTECTED]/msg117539.html (Message 1117539 on this list) was answered by yourself with the suggestion of using a valve. Could you please me more detail on that solution? On the same answer there was mentioned that BEA WebLogic provides a hook named auth-filter which would solve my problem too (in a proprietary way). With Websphere this is the second App-Server which could solve my problem. I have a Sun ONE Web App Server 7 at hands, so will try eventually the ServletFilter-method too. Another thread on this list with the same requirement is number 111855: servlet sendRedirect() to j_security_check problem (remember me) http://www.mail-archive.com/[EMAIL PROTECTED]/msg111855.html It announces Matt Raibles solution, programmed into his example application AppFuse. It works y submitting a subrequest vie HttpClient lib which seems rather strange to me. It cites an earlier posting number 111700 http://www.mail-archive.com/tomcat-user%40jakarta.apache.org/msg111700.html One more question: In the Tomcat 5.0.27 source in FormAuthentificator.java it says // Save the authenticated Principal in our session session.setNote(Constants.FORM_PRINCIPAL_NOTE, principal); // If we are not caching, save the username and password as well if (!cache) { session.setNote(Constants.SESS_USERNAME_NOTE, username); session.setNote(Constants.SESS_PASSWORD_NOTE, password); } Am I able to session.getNote(Constants.SESS_PASSWORD_NOTE, password) in my web-app? It seems to be stored in the session, or am I wrong? Frerk Meyer EDEKA Aktiengesellschaft GB Datenverarbeitung Frerk Meyer CC Web Technologien New-York-Ring 6 22297 Hamburg Tel: 040/6377 - 3272 Fax: 040/6377 - 41268 mailto:[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Container managed security in tomcat 5.x, need j_password in struts web app, ServletFilter or IntermediateServlet? [Auf Viren geprüft]
http://issues.apache.org/bugzilla/show_bug.cgi?id=21795 You can always write your own Realm which creates your own custom Principal which can store the password in it. This does require some casting but not uncommon. -Tim [EMAIL PROTECTED] wrote: Thanks Tim Funk for the quick answer, In FormAuthenticator there is a line: principal = context.getRealm().authenticate(username, password); It returns an interface java.security.Principal The Principal stores the username (uid), not the password (Credential). I only can call getName(). Furthermore any Realm has no access to the users session. So I can't get the password from the realm. I could of course write the password as cleartext or obscured code in my own Realm to an external data store. But I don't want that. It's dirty and unsafe and against the security requirements of this web-app. I've searched the Java Servlet Specification v.2.4 http://jcp.org/aboutJava/communityprocess/final/jsr154/index.html but haven't found a place where applying ServletFilters to /j_security_check is forbidden. Could you please provide me with an pointer to the spec you have forbidding this kind of filtering? One of many same questions I have found on http://www.mail-archive.com/[EMAIL PROTECTED]/msg117539.html (Message 1117539 on this list) was answered by yourself with the suggestion of using a valve. Could you please me more detail on that solution? On the same answer there was mentioned that BEA WebLogic provides a hook named auth-filter which would solve my problem too (in a proprietary way). With Websphere this is the second App-Server which could solve my problem. I have a Sun ONE Web App Server 7 at hands, so will try eventually the ServletFilter-method too. Another thread on this list with the same requirement is number 111855: servlet sendRedirect() to j_security_check problem (remember me) http://www.mail-archive.com/[EMAIL PROTECTED]/msg111855.html It announces Matt Raibles solution, programmed into his example application AppFuse. It works y submitting a subrequest vie HttpClient lib which seems rather strange to me. It cites an earlier posting number 111700 http://www.mail-archive.com/tomcat-user%40jakarta.apache.org/msg111700.html One more question: In the Tomcat 5.0.27 source in FormAuthentificator.java it says // Save the authenticated Principal in our session session.setNote(Constants.FORM_PRINCIPAL_NOTE, principal); // If we are not caching, save the username and password as well if (!cache) { session.setNote(Constants.SESS_USERNAME_NOTE, username); session.setNote(Constants.SESS_PASSWORD_NOTE, password); } Am I able to session.getNote(Constants.SESS_PASSWORD_NOTE, password) in my web-app? It seems to be stored in the session, or am I wrong? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Subclassing DefaultServlet
Hi, I've added some functionality to DefaultServlet by subclassing it (i.e. we need to do some special processing to certain URLs, for others I will just call super.doGet(...)). I compiled the DefaultServlet subclass against Tomcat's servlets-default.jar in server/lib and deployed it in my web application (adding a relevant servlet mapping to my web.xml). When I first tried it I got a ClassNotFoundException for DefaultServlet, probably due to the fact that the Tomcat server and the web applications use seperate class loaders, so our web application's class loader does not have a copy of DefaultServlet loaded. I had to copy several JARs from server/lib to my web application's WEB-INF/lib directory, including servlets-default.jar, which contains DefaultServlet. I'd rather just refer to the JARs in server/lib, though. That way I know that when the web application is deployed to a newer version of Tomcat, the DefaultServlet I'm subclassing from and the one Tomcat uses will be the same. Besides symlinking, is there any way achieve this? Can I tell tomcat to also include server/lib in the classpath for my webapp? Thanks in advance, Frans -- Quinity : Your Partner In eBusiness Solution Delivery Biltstraat 449 3572 AW Utrecht P.O. Box 13097 3507 LB Utrecht The Netherlands Telephone: (+31) (0)30 2335999 Fax : (+31) (0)30 2335998 WWW : http://www.quinity.com The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer. Quinity is neither liable for the proper and complete transmission of the information contained in this communication nor for any delay in its receipt. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Logging problem SOAP based web service
On Wed, Aug 18, 2004 at 11:46:19AM +0300, [EMAIL PROTECTED] wrote: : I have a SOAP based web service running on tomcat 4.1.30. This service should : write a log containing client's IP address and some attributes from : SOAP-message body (inside SOAP envelope). Is this possible somehow? What's your SOAP engine? I recall Apache Axis supports handlers that wrap a request. Is the IP address available from the MessageContext or one of its member vars? -QM -- software -- http://www.brandxdev.net tech news -- http://www.RoarNetworX.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Class loader looks in Tomcat work directory and not in webapp directory for resources
On Wed, Aug 18, 2004 at 01:26:07PM +0200, Oliver Kuntze wrote: : The reason why the ZIP was not found is the ever present JVM problem with : %20 in URLs (as in Tomcat%205 ;-). Will try URL decoding and if that does : not work rename the tomcat base dir to Tomcat5.0. Thanks for posting your solution to the list. It will help people searching the archives and spare them lots of headaches. -QM -- software -- http://www.brandxdev.net tech news -- http://www.RoarNetworX.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Alternative causes of msg 404 resource not avaialble?
Yes to both no luck. I'm thinking that somehow WEB-INF/classes is not getting into the CLASSPATH. Is there a way to check this at run time? Dennis Dai wrote: Have you tried reloading the context or restarting tomcat on your department test server? On 8/17/2004 2:04 PM, Jeffrey Barnett wrote: PPS: The rest of the webapp runs normally. Jeffrey Barnett wrote: PS: Server is 4.1.12 Jeffrey Barnett wrote: I recently added a servlet to an existing webapp in WEB-INF/classes. and added the corresponding servlet and servlet-mapping tags to web.xml. When I try it out on my desktop server it works fine, but when I redeploy to the department test server I get 404 error. Is there some other configuration/deployment step I am missing? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Subclassing DefaultServlet
On Wed, Aug 18, 2004 at 02:42:06PM +0200, Frans Flippo wrote: : I've added some functionality to DefaultServlet by subclassing it : [snip] : When I first tried it I got a ClassNotFoundException for DefaultServlet, : probably due to the fact that the Tomcat server and the web applications : use seperate class loaders What's in the global web.xml? -and, if you don't mind sharing, what's the import list of the subclassed servlet? -QM -- software -- http://www.brandxdev.net tech news -- http://www.RoarNetworX.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Weight based load balancing
I want to implement weight based load balancing in my application. Usually what parameters are taken into consideration in weight based LB. I have cluster node's processor(s), RAM in my mind. And, network spped of the cluster node also. If you have any other in mind please share them with me. That would be a great help to me. Thanks in advance. Regards, Srinivas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Weight based load balancing
AFAIK - There isn't anythng like this yet. But there is work on mod_proxy in httpd-dev which looks promising for this functionality. (But that functionality won't be here in the near future) A quick alternative is to use to look at the balancer webapp in tomcat 5 and play with its algorithm for choosing an node. -Tim Srinivas Rao Ch wrote: I want to implement weight based load balancing in my application. Usually what parameters are taken into consideration in weight based LB. I have cluster node's processor(s), RAM in my mind. And, network spped of the cluster node also. If you have any other in mind please share them with me. That would be a great help to me. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Alternative causes of msg 404 resource not avaialble?
Hi, Well, make sure you make the same servlet and servlet-mapping entries in the web.xml on the department test server ;) Yoav Shapira Millennium Research Informatics -Original Message- From: Jeffrey Barnett [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 18, 2004 8:48 AM To: Tomcat Users List Subject: Re: Alternative causes of msg 404 resource not avaialble? Yes to both no luck. I'm thinking that somehow WEB-INF/classes is not getting into the CLASSPATH. Is there a way to check this at run time? Dennis Dai wrote: Have you tried reloading the context or restarting tomcat on your department test server? On 8/17/2004 2:04 PM, Jeffrey Barnett wrote: PPS: The rest of the webapp runs normally. Jeffrey Barnett wrote: PS: Server is 4.1.12 Jeffrey Barnett wrote: I recently added a servlet to an existing webapp in WEB-INF/classes. and added the corresponding servlet and servlet-mapping tags to web.xml. When I try it out on my desktop server it works fine, but when I redeploy to the department test server I get 404 error. Is there some other configuration/deployment step I am missing? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Class loader looks in Tomcat work directory and not in webapp directory for resources
Hi, That just seems to be where Tomcat5 deploys JARs from WAR files... probably for easy access. The reasons are more complex and with more history than that. There is a long-standing issue (of sorts -- it's not an issue to some people, like me, but others complain persistently ;)) with URLClassLoader locking JARs. One way to avoid locking is to copy the original JAR into a place that's owned by Tomcat, and then lock the copy so users can still modify the original and reload their webapp (at which time another copy operation will be done and so on). This will be modified and improved in Tomcat 5.1 (or 5.5, whatever we decide to call it). So the bottom line is the same as always: stick to the Servlet Specification as tightly as you can, and in this case the Java spec itself regarding resource-loading from JARS in a context-sensitive ClassLoader (admittedly an abstruse area of the JLS), and you will save yourself long-term pain. And thanks to the original poster for also posting his solution. As you said, this will make future archive searches better. Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Weight based load balancing
AFAIK - There isn't anythng like this yet. But there is work on mod_proxy in httpd-dev which looks promising for this functionality. (But that functionality won't be here in the near future) I am not using apache web server, using Tomcat alone. A quick alternative is to use to look at the balancer webapp in tomcat 5 and play with its algorithm for choosing an node. I have seen the balancer app algorithm implementations. That can be done. But before doing that I want to do some analysis on what parameters has to be taken into consideration to assign weights to individual nodes of the cluster, in the production environment. Regards, Srinivas -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 18, 2004 6:24 PM To: Tomcat Users List Subject: Re: Weight based load balancing AFAIK - There isn't anythng like this yet. But there is work on mod_proxy in httpd-dev which looks promising for this functionality. (But that functionality won't be here in the near future) A quick alternative is to use to look at the balancer webapp in tomcat 5 and play with its algorithm for choosing an node. -Tim Srinivas Rao Ch wrote: I want to implement weight based load balancing in my application. Usually what parameters are taken into consideration in weight based LB. I have cluster node's processor(s), RAM in my mind. And, network spped of the cluster node also. If you have any other in mind please share them with me. That would be a great help to me. - 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: Setting PHP for Apache Tomcat
Hola, Yeah, you need Cygwin at this point I think ;) Yoav Shapira Millennium Research Informatics -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 18, 2004 8:01 AM To: Tomcat Users List Subject: Re: Setting PHP for Apache Tomcat I have no clue - I only know enough about this topic to copy/paste a URL ;) -Tim [EMAIL PROTECTED] wrote: I'm running Win2k. Should I have to use Cygwin to install PHP then? http://wiki.apache.org/jakarta-tomcat/UsingPhp -Tim [EMAIL PROTECTED] wrote: Is it actually possible to configure Tomcat to work with PHP? If so, how? the PHP installation guide refers to httpd.conf or srm.conf neither of which exist in Tomcat. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Weight based load balancing
What kind of weight based load balancing are you thinking of? the type of load balancing I've used is based on one of several. 1. ping time 2. preset load factor - usually based on hardware 3. system load - the weight is calculated using a hash of memory and cpu usage in situations where all the servers use the same hardware, ping time actually ends up working quite well. In the case where the hardware is mixed and some servers are much bigger, system load is commonly used. I know Resonate supports all three approaches. currently a couple guys are working on better apache-tomcat load balancing, so I would suggest searching the tomcat-dev archives. peter On Wed, 18 Aug 2004 18:14:24 +0530, Srinivas Rao Ch [EMAIL PROTECTED] wrote: I want to implement weight based load balancing in my application. Usually what parameters are taken into consideration in weight based LB. I have cluster node's processor(s), RAM in my mind. And, network spped of the cluster node also. If you have any other in mind please share them with me. That would be a great help to me. Thanks in advance. Regards, Srinivas - 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: Weight based load balancing
sounds like you already have an idea of how to implement it and just want feedback on what parameters it should consider. from past experience, many people use a simple Hash when all the system have the same hardware. When it is not, I would think memory and network IO would be the biggest factors. CPU shouldn't really be a factor unless you're using a ton of XML. this topic is pretty rich, so you should be able to find sample algorithms for calculating the weight. peter On Wed, 18 Aug 2004 18:27:18 +0530, Srinivas Rao Ch [EMAIL PROTECTED] wrote: AFAIK - There isn't anythng like this yet. But there is work on mod_proxy in httpd-dev which looks promising for this functionality. (But that functionality won't be here in the near future) I am not using apache web server, using Tomcat alone. A quick alternative is to use to look at the balancer webapp in tomcat 5 and play with its algorithm for choosing an node. I have seen the balancer app algorithm implementations. That can be done. But before doing that I want to do some analysis on what parameters has to be taken into consideration to assign weights to individual nodes of the cluster, in the production environment. Regards, Srinivas -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 18, 2004 6:24 PM To: Tomcat Users List Subject: Re: Weight based load balancing AFAIK - There isn't anythng like this yet. But there is work on mod_proxy in httpd-dev which looks promising for this functionality. (But that functionality won't be here in the near future) A quick alternative is to use to look at the balancer webapp in tomcat 5 and play with its algorithm for choosing an node. -Tim Srinivas Rao Ch wrote: I want to implement weight based load balancing in my application. Usually what parameters are taken into consideration in weight based LB. I have cluster node's processor(s), RAM in my mind. And, network spped of the cluster node also. If you have any other in mind please share them with me. That would be a great help to me. - 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: Container managed security in tomcat 5.x, need j_password in struts web app, ServletFilter or IntermediateServlet? [Auf Viren geprüft]
Thanks again Tim Funk. Your answer is another solution I didn't think of and it sounds standard conform and secure and clean to me. I'll develop my own JNDIRealm / JAASRealm and my own Principal, so I get not only the name and roles of the user out of the directory but every other information that is store (UserBean) and the login password. Very well, Frerk Meyer EDEKA Aktiengesellschaft GB Datenverarbeitung Frerk Meyer CC Web Technologien New-York-Ring 6 22297 Hamburg Tel: 040/6377 - 3272 Fax: 040/6377 - 41268 mailto:[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How to submit new Tomcat documentation updates.
Hi, As Tim pointed out, docs are xdocs (.xml files), mostly in the webapps/docs directory of the jakarta-tomcat-catalina CVS module. You can check them out, and submit patches according to the normal Jakarta process (http://jakarta.apache.org/site/source.html#Patches). Many people have done so in the past, so you can search Bugzilla to see how they've done it as well. Yoav Shapira Millennium Research Informatics -Original Message- From: Allistair Crossley [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 18, 2004 5:26 AM To: [EMAIL PROTECTED] Subject: How to submit new Tomcat documentation updates. Hi Guys So far, I have been able to checkout from CVS the various modules for Tomcat to look at the source code. I cannot find a clear step-by-step for how one would get the latest documentation, e.g Jasper HowTo, and then submit changes to it. If anyone has the time to detail a few steps (you can assume I can use CVS) on what to do, as I would like to submit a documentation update Cheers, AC 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] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Subclassing DefaultServlet
Hi, Can you just use a Filter and save yourself a ton of trouble? Yoav Shapira Millennium Research Informatics -Original Message- From: Frans Flippo [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 18, 2004 8:42 AM To: Tomcat Users List Subject: Subclassing DefaultServlet Hi, I've added some functionality to DefaultServlet by subclassing it (i.e. we need to do some special processing to certain URLs, for others I will just call super.doGet(...)). I compiled the DefaultServlet subclass against Tomcat's servlets-default.jar in server/lib and deployed it in my web application (adding a relevant servlet mapping to my web.xml). When I first tried it I got a ClassNotFoundException for DefaultServlet, probably due to the fact that the Tomcat server and the web applications use seperate class loaders, so our web application's class loader does not have a copy of DefaultServlet loaded. I had to copy several JARs from server/lib to my web application's WEB-INF/lib directory, including servlets-default.jar, which contains DefaultServlet. I'd rather just refer to the JARs in server/lib, though. That way I know that when the web application is deployed to a newer version of Tomcat, the DefaultServlet I'm subclassing from and the one Tomcat uses will be the same. Besides symlinking, is there any way achieve this? Can I tell tomcat to also include server/lib in the classpath for my webapp? Thanks in advance, Frans -- Quinity : Your Partner In eBusiness Solution Delivery Biltstraat 449 3572 AW Utrecht P.O. Box 13097 3507 LB Utrecht The Netherlands Telephone: (+31) (0)30 2335999 Fax : (+31) (0)30 2335998 WWW : http://www.quinity.com The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer. Quinity is neither liable for the proper and complete transmission of the information contained in this communication nor for any delay in its receipt. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Fwd: Tomcat + ssl problems
Hello, I am re-submitting this mail as I have had absolutely no response as of yet - is there really no one that has come across this before? I have seen similar problems both here and via Google groups but no really helpful solutions. Once again, please could somebody point me in the right direction on how to solve this. I was maybe thinking that the Tomcat compilation (with the JSSE automatically included) was not done properly, but standalone without SSL everything runs perfectly. Suggestions please Lloyd Date: Thu, 12 Aug 2004 14:02:59 +0200 To: [EMAIL PROTECTED] From: Lloyd Hopper [EMAIL PROTECTED] Subject: Tomcat + ssl problems Hello, I am sure somebody has come across something similar before but I have been unable to find a resolution as yet. The problem is this; I am trying to enable SSL in Tomcat 4.1.29 and several things happen that are not correct, even though this should be a rather simple goal to achieve. Firstly, the keytool will not work properly when generating a new key. You get asked all the questions and when you have finished and you confirm the information entered with a 'yes' it just hangs. Importing with keytool and checking the keystore both work fine (the -list and -import flags) but generating doesn't (-genkey). I cannot seem to find any error messages either and in top the process appears intermittently. Secondly, after importing the certificate (made with openssl) I then change the server.xml config and ensure that the JSSE_HOME is correct in catalina.sh and restart Tomcat using catalina.sh. This is what I get: - begin excerpt catalina log -- Exception during startup processing java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203) Caused by: java.lang.NoClassDefFoundError: javax/net/ServerSocketFactory at java.lang.ClassLoader.findBootstrapClass(Native Method) at java.lang.ClassLoader.findBootstrapClass0(ClassLoader.java:709) at java.lang.ClassLoader.loadClass(ClassLoader.java:284) at java.lang.ClassLoader.loadClass(ClassLoader.java:282) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274) at java.lang.ClassLoader.loadClass(ClassLoader.java:235) at org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:941) at org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:857) at org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:941) at org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:857) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302) at org.apache.tomcat.util.net.jsse.JSSE14Factory.getSocketFactory(JSSE14Factory.java:80) at org.apache.tomcat.util.net.jsse.JSSEImplementation.getServerSocketFactory(JSSEImplementation.java:113) at org.apache.coyote.http11.Http11Protocol.checkSocketFactory(Http11Protocol.java:615) at org.apache.coyote.http11.Http11Protocol.init(Http11Protocol.java:166) at org.apache.coyote.tomcat4.CoyoteConnector.initialize(CoyoteConnector.java:1173) at org.apache.catalina.core.StandardService.initialize(StandardService.java:579) at org.apache.catalina.core.StandardServer.initialize(StandardServer.java:2246) at org.apache.catalina.startup.Catalina.start(Catalina.java:511) at org.apache.catalina.startup.Catalina.execute(Catalina.java:400) at org.apache.catalina.startup.Catalina.process(Catalina.java:180) ... 5 more end excerpt catalina log - Tomcat runs perfectly if I comment the SSL out. --- begin server.xml excerpt --- !-- Define a non-SSL Coyote HTTP/1.1 Connector -- Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=8180 minProcessors=5 maxProcessors=75 enableLookups=true redirectPort=8443 acceptCount=100 debug=0 connectionTimeout=2 useURIValidationHack=false disableUploadTimeout=true / !-- Note : To disable connection timeouts, set connectionTimeout value to -1 -- !-- Define a SSL Coyote HTTP/1.1 Connector on port 8443 -- Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=8443 minProcessors=5 maxProcessors=75 enableLookups=true acceptCount=100 debug=0 scheme=https secure=true useURIValidationHack=false disableUploadTimeout=true Factory className=org.apache.coyote.tomcat4.CoyoteServerSocketFactory
RE: Setting PHP for Apache Tomcat
Hi, Cygwin isn't necessarily required, I have previously used php 4.2.2 with Apache 2.0.39, but other combinations should be straight forward enough to get up and running. http://www.php.net/downloads.php -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: 18 August 2004 14:03 To: Tomcat Users List Subject: RE: Setting PHP for Apache Tomcat Hola, Yeah, you need Cygwin at this point I think ;) Yoav Shapira Millennium Research Informatics -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 18, 2004 8:01 AM To: Tomcat Users List Subject: Re: Setting PHP for Apache Tomcat I have no clue - I only know enough about this topic to copy/paste a URL ;) -Tim [EMAIL PROTECTED] wrote: I'm running Win2k. Should I have to use Cygwin to install PHP then? http://wiki.apache.org/jakarta-tomcat/UsingPhp -Tim [EMAIL PROTECTED] wrote: Is it actually possible to configure Tomcat to work with PHP? If so, how? the PHP installation guide refers to httpd.conf or srm.conf neither of which exist in Tomcat. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Setting PHP for Apache Tomcat
Sorry, my mistake, you weren't using Apache, just Tomcat :) -Original Message- From: Keates, Mark Sent: 18 August 2004 14:27 To: 'Tomcat Users List' Subject: RE: Setting PHP for Apache Tomcat Hi, Cygwin isn't necessarily required, I have previously used php 4.2.2 with Apache 2.0.39, but other combinations should be straight forward enough to get up and running. http://www.php.net/downloads.php - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat Clusterin Multicast Multiinstances
no, the address already in use is tcpListenPort, that has to change if you run two instances on the same machine Filip -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 18, 2004 2:51 AM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: AW: Tomcat Clusterin Multicast Multiinstances Hi again, you are right with the 2Gb, sorry. It's leaving a netto of 1.6 GB ish for Tomcat here. My problem was referring to the clustersection of server.xml rather than the standard IP: mcastAddr = the multicast address, has to be the same for all the nodes mcastPort = the multicast port, has to be the same for all the nodes So even when everything else can be configured per Instance, these addr needs to be the same. So when I start up the second instance of Tomcat on the server, it says that the mcastAddr (=228.0.0.4 port 45564) is already in use and it can't bind to it ... -- INFO: Sleeping for 2000 secs to establish cluster membership 18.08.2004 09:47:19 org.apache.catalina.cluster.tcp.ReplicationListener run SCHWERWIEGEND: Unable to start cluster listener. java.net.BindException: Address already in use: bind at sun.nio.ch.Net.bind(Native Method) at sun.nio.ch.ServerSocketChannelImpl.bind(Unknown Source) at sun.nio.ch.ServerSocketAdaptor.bind(Unknown Source) at sun.nio.ch.ServerSocketAdaptor.bind(Unknown Source) at org.apache.catalina.cluster.tcp.ReplicationListener.listen(ReplicationListen er.java:104) at org.apache.catalina.cluster.tcp.ReplicationListener.run(ReplicationListener. java:85) at java.lang.Thread.run(Unknown Source) - -- Björn Andersen www.premiere.de -Ursprüngliche Nachricht- Von: Dale, Matt [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 17. August 2004 18:19 An: Tomcat Users List Betreff: RE: Tomcat Clusterin Multicast Multiinstances Memory limit should be 2 Gig for JVM's running in a 32 bit operating system. More for the 64 bit JVM's. I think you would have to have virtual IP addresses on that machine and run tomcats on specific IP addresses for you to use the multicasting. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 17 August 2004 13:42 To: [EMAIL PROTECTED] Subject: Tomcat Clusterin Multicast Multiinstances Hi, can anyone tell me how Tomcats can be configured as a cluster with session replication when there is more than one TC-Instance on one machine? We need multi-instance because of the 1 Gig mem-limit to the jvm's. Or has that changed meanwhile too? -- Björn Andersen Webservices www.premiere.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] --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.735 / Virus Database: 489 - Release Date: 8/6/2004 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.735 / Virus Database: 489 - Release Date: 8/6/2004 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Subclassing DefaultServlet
What Yoav (Cicer0 on irc as a guess ;-) ) says is true if you need special processing based on the url, implementing a filter is the most straightforward, simple and elegant way. By no means you should need to modify the tomcat codebase for a special app, because that way you're ensuring non-portability, and that totally breaks the spirit of Servlets. Shapira, Yoav escribió: Hi, Can you just use a Filter and save yourself a ton of trouble? Yoav Shapira Millennium Research Informatics -Original Message- From: Frans Flippo [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 18, 2004 8:42 AM To: Tomcat Users List Subject: Subclassing DefaultServlet Hi, I've added some functionality to DefaultServlet by subclassing it (i.e. we need to do some special processing to certain URLs, for others I will just call super.doGet(...)). I compiled the DefaultServlet subclass against Tomcat's servlets-default.jar in server/lib and deployed it in my web application (adding a relevant servlet mapping to my web.xml). When I first tried it I got a ClassNotFoundException for DefaultServlet, probably due to the fact that the Tomcat server and the web applications use seperate class loaders, so our web application's class loader does not have a copy of DefaultServlet loaded. I had to copy several JARs from server/lib to my web application's WEB-INF/lib directory, including servlets-default.jar, which contains DefaultServlet. I'd rather just refer to the JARs in server/lib, though. That way I know that when the web application is deployed to a newer version of Tomcat, the DefaultServlet I'm subclassing from and the one Tomcat uses will be the same. Besides symlinking, is there any way achieve this? Can I tell tomcat to also include server/lib in the classpath for my webapp? Thanks in advance, Frans -- Quinity : Your Partner In eBusiness Solution Delivery Biltstraat 449 3572 AW Utrecht P.O. Box 13097 3507 LB Utrecht The Netherlands Telephone: (+31) (0)30 2335999 Fax : (+31) (0)30 2335998 WWW : http://www.quinity.com The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer. Quinity is neither liable for the proper and complete transmission of the information contained in this communication nor for any delay in its receipt. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat Clusterin Multicast Multiinstances
Can any one quickly tell the comparison of running tomcat as a service or without a windows service. I mean what are the benifits of running tomcat as a windows service. S H A K E E L A H M A D -Original Message- From: Filip Hanik (lists) [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 18, 2004 6:37 PM To: Tomcat Users List Subject: RE: Tomcat Clusterin Multicast Multiinstances no, the address already in use is tcpListenPort, that has to change if you run two instances on the same machine Filip -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 18, 2004 2:51 AM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: AW: Tomcat Clusterin Multicast Multiinstances Hi again, you are right with the 2Gb, sorry. It's leaving a netto of 1.6 GB ish for Tomcat here. My problem was referring to the clustersection of server.xml rather than the standard IP: mcastAddr = the multicast address, has to be the same for all the nodes mcastPort = the multicast port, has to be the same for all the nodes So even when everything else can be configured per Instance, these addr needs to be the same. So when I start up the second instance of Tomcat on the server, it says that the mcastAddr (=228.0.0.4 port 45564) is already in use and it can't bind to it ... -- INFO: Sleeping for 2000 secs to establish cluster membership 18.08.2004 09:47:19 org.apache.catalina.cluster.tcp.ReplicationListener run SCHWERWIEGEND: Unable to start cluster listener. java.net.BindException: Address already in use: bind at sun.nio.ch.Net.bind(Native Method) at sun.nio.ch.ServerSocketChannelImpl.bind(Unknown Source) at sun.nio.ch.ServerSocketAdaptor.bind(Unknown Source) at sun.nio.ch.ServerSocketAdaptor.bind(Unknown Source) at org.apache.catalina.cluster.tcp.ReplicationListener.listen(ReplicationListen er.java:104) at org.apache.catalina.cluster.tcp.ReplicationListener.run(ReplicationListener. java:85) at java.lang.Thread.run(Unknown Source) - -- Björn Andersen www.premiere.de -Ursprüngliche Nachricht- Von: Dale, Matt [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 17. August 2004 18:19 An: Tomcat Users List Betreff: RE: Tomcat Clusterin Multicast Multiinstances Memory limit should be 2 Gig for JVM's running in a 32 bit operating system. More for the 64 bit JVM's. I think you would have to have virtual IP addresses on that machine and run tomcats on specific IP addresses for you to use the multicasting. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 17 August 2004 13:42 To: [EMAIL PROTECTED] Subject: Tomcat Clusterin Multicast Multiinstances Hi, can anyone tell me how Tomcats can be configured as a cluster with session replication when there is more than one TC-Instance on one machine? We need multi-instance because of the 1 Gig mem-limit to the jvm's. Or has that changed meanwhile too? -- Björn Andersen Webservices www.premiere.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] --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.735 / Virus Database: 489 - Release Date: 8/6/2004 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.735 / Virus Database: 489 - Release Date: 8/6/2004 - 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 Clusterin Multicast Multiinstances
The benefits are that you can get it to start and stop with the machine and a non tomcat admin can start and stop it using the services. It can also be remotely started if you have the right tools. And it doesnt require a user to be logged in for the service to remain running. -Original Message- From: Shakeel [mailto:[EMAIL PROTECTED] Sent: 01 August 2004 15:03 To: Tomcat Users List Subject: RE: Tomcat Clusterin Multicast Multiinstances Can any one quickly tell the comparison of running tomcat as a service or without a windows service. I mean what are the benifits of running tomcat as a windows service. S H A K E E L A H M A D -Original Message- From: Filip Hanik (lists) [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 18, 2004 6:37 PM To: Tomcat Users List Subject: RE: Tomcat Clusterin Multicast Multiinstances no, the address already in use is tcpListenPort, that has to change if you run two instances on the same machine Filip -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 18, 2004 2:51 AM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: AW: Tomcat Clusterin Multicast Multiinstances Hi again, you are right with the 2Gb, sorry. It's leaving a netto of 1.6 GB ish for Tomcat here. My problem was referring to the clustersection of server.xml rather than the standard IP: mcastAddr = the multicast address, has to be the same for all the nodes mcastPort = the multicast port, has to be the same for all the nodes So even when everything else can be configured per Instance, these addr needs to be the same. So when I start up the second instance of Tomcat on the server, it says that the mcastAddr (=228.0.0.4 port 45564) is already in use and it can't bind to it ... -- INFO: Sleeping for 2000 secs to establish cluster membership 18.08.2004 09:47:19 org.apache.catalina.cluster.tcp.ReplicationListener run SCHWERWIEGEND: Unable to start cluster listener. java.net.BindException: Address already in use: bind at sun.nio.ch.Net.bind(Native Method) at sun.nio.ch.ServerSocketChannelImpl.bind(Unknown Source) at sun.nio.ch.ServerSocketAdaptor.bind(Unknown Source) at sun.nio.ch.ServerSocketAdaptor.bind(Unknown Source) at org.apache.catalina.cluster.tcp.ReplicationListener.listen(ReplicationListen er.java:104) at org.apache.catalina.cluster.tcp.ReplicationListener.run(ReplicationListener. java:85) at java.lang.Thread.run(Unknown Source) - -- Björn Andersen www.premiere.de -Ursprüngliche Nachricht- Von: Dale, Matt [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 17. August 2004 18:19 An: Tomcat Users List Betreff: RE: Tomcat Clusterin Multicast Multiinstances Memory limit should be 2 Gig for JVM's running in a 32 bit operating system. More for the 64 bit JVM's. I think you would have to have virtual IP addresses on that machine and run tomcats on specific IP addresses for you to use the multicasting. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 17 August 2004 13:42 To: [EMAIL PROTECTED] Subject: Tomcat Clusterin Multicast Multiinstances Hi, can anyone tell me how Tomcats can be configured as a cluster with session replication when there is more than one TC-Instance on one machine? We need multi-instance because of the 1 Gig mem-limit to the jvm's. Or has that changed meanwhile too? -- Björn Andersen Webservices www.premiere.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] --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.735 / Virus Database: 489 - Release Date: 8/6/2004 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.735 / Virus Database: 489 - Release Date: 8/6/2004 - 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] Any opinions expressed in this E-mail may be those of the individual and not necessarily the company. This E-mail and any files transmitted with it are confidential and solely for the use of the intended recipient. If you are not the intended recipient or the person responsible for delivering to the intended recipient, be advised that you have received this E-mail in error and that any use or copying is strictly prohibited. If you have received this E-mail in error please notify the
RE: Tomcat Clusterin Multicast Multiinstances
Thanks for a quick reply. Is it only the benifit , I mean I have pc anywhere or similar tools, or even I dont need the smart load/unload as a service. I want to know the comparison based on Memory usage, performance at runtime etc. S H A K E E L A H M A D -Original Message- From: Dale, Matt [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 18, 2004 7:01 PM To: Tomcat Users List Subject: RE: Tomcat Clusterin Multicast Multiinstances The benefits are that you can get it to start and stop with the machine and a non tomcat admin can start and stop it using the services. It can also be remotely started if you have the right tools. And it doesnt require a user to be logged in for the service to remain running. -Original Message- From: Shakeel [mailto:[EMAIL PROTECTED] Sent: 01 August 2004 15:03 To: Tomcat Users List Subject: RE: Tomcat Clusterin Multicast Multiinstances Can any one quickly tell the comparison of running tomcat as a service or without a windows service. I mean what are the benifits of running tomcat as a windows service. S H A K E E L A H M A D -Original Message- From: Filip Hanik (lists) [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 18, 2004 6:37 PM To: Tomcat Users List Subject: RE: Tomcat Clusterin Multicast Multiinstances no, the address already in use is tcpListenPort, that has to change if you run two instances on the same machine Filip -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 18, 2004 2:51 AM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: AW: Tomcat Clusterin Multicast Multiinstances Hi again, you are right with the 2Gb, sorry. It's leaving a netto of 1.6 GB ish for Tomcat here. My problem was referring to the clustersection of server.xml rather than the standard IP: mcastAddr = the multicast address, has to be the same for all the nodes mcastPort = the multicast port, has to be the same for all the nodes So even when everything else can be configured per Instance, these addr needs to be the same. So when I start up the second instance of Tomcat on the server, it says that the mcastAddr (=228.0.0.4 port 45564) is already in use and it can't bind to it ... -- INFO: Sleeping for 2000 secs to establish cluster membership 18.08.2004 09:47:19 org.apache.catalina.cluster.tcp.ReplicationListener run SCHWERWIEGEND: Unable to start cluster listener. java.net.BindException: Address already in use: bind at sun.nio.ch.Net.bind(Native Method) at sun.nio.ch.ServerSocketChannelImpl.bind(Unknown Source) at sun.nio.ch.ServerSocketAdaptor.bind(Unknown Source) at sun.nio.ch.ServerSocketAdaptor.bind(Unknown Source) at org.apache.catalina.cluster.tcp.ReplicationListener.listen(ReplicationListen er.java:104) at org.apache.catalina.cluster.tcp.ReplicationListener.run(ReplicationListener. java:85) at java.lang.Thread.run(Unknown Source) - -- Björn Andersen www.premiere.de -Ursprüngliche Nachricht- Von: Dale, Matt [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 17. August 2004 18:19 An: Tomcat Users List Betreff: RE: Tomcat Clusterin Multicast Multiinstances Memory limit should be 2 Gig for JVM's running in a 32 bit operating system. More for the 64 bit JVM's. I think you would have to have virtual IP addresses on that machine and run tomcats on specific IP addresses for you to use the multicasting. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 17 August 2004 13:42 To: [EMAIL PROTECTED] Subject: Tomcat Clusterin Multicast Multiinstances Hi, can anyone tell me how Tomcats can be configured as a cluster with session replication when there is more than one TC-Instance on one machine? We need multi-instance because of the 1 Gig mem-limit to the jvm's. Or has that changed meanwhile too? -- Björn Andersen Webservices www.premiere.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] --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.735 / Virus Database: 489 - Release Date: 8/6/2004 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.735 / Virus Database: 489 - Release Date: 8/6/2004 - 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 Clusterin Multicast Multiinstances
Its the same JRE and java classes so i'd imagine there is no difference. Ta Matt -Original Message- From: Shakeel [mailto:[EMAIL PROTECTED] Sent: 01 August 2004 15:12 To: Tomcat Users List Subject: RE: Tomcat Clusterin Multicast Multiinstances Thanks for a quick reply. Is it only the benifit , I mean I have pc anywhere or similar tools, or even I dont need the smart load/unload as a service. I want to know the comparison based on Memory usage, performance at runtime etc. S H A K E E L A H M A D -Original Message- From: Dale, Matt [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 18, 2004 7:01 PM To: Tomcat Users List Subject: RE: Tomcat Clusterin Multicast Multiinstances The benefits are that you can get it to start and stop with the machine and a non tomcat admin can start and stop it using the services. It can also be remotely started if you have the right tools. And it doesnt require a user to be logged in for the service to remain running. -Original Message- From: Shakeel [mailto:[EMAIL PROTECTED] Sent: 01 August 2004 15:03 To: Tomcat Users List Subject: RE: Tomcat Clusterin Multicast Multiinstances Can any one quickly tell the comparison of running tomcat as a service or without a windows service. I mean what are the benifits of running tomcat as a windows service. S H A K E E L A H M A D -Original Message- From: Filip Hanik (lists) [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 18, 2004 6:37 PM To: Tomcat Users List Subject: RE: Tomcat Clusterin Multicast Multiinstances no, the address already in use is tcpListenPort, that has to change if you run two instances on the same machine Filip -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 18, 2004 2:51 AM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: AW: Tomcat Clusterin Multicast Multiinstances Hi again, you are right with the 2Gb, sorry. It's leaving a netto of 1.6 GB ish for Tomcat here. My problem was referring to the clustersection of server.xml rather than the standard IP: mcastAddr = the multicast address, has to be the same for all the nodes mcastPort = the multicast port, has to be the same for all the nodes So even when everything else can be configured per Instance, these addr needs to be the same. So when I start up the second instance of Tomcat on the server, it says that the mcastAddr (=228.0.0.4 port 45564) is already in use and it can't bind to it ... -- INFO: Sleeping for 2000 secs to establish cluster membership 18.08.2004 09:47:19 org.apache.catalina.cluster.tcp.ReplicationListener run SCHWERWIEGEND: Unable to start cluster listener. java.net.BindException: Address already in use: bind at sun.nio.ch.Net.bind(Native Method) at sun.nio.ch.ServerSocketChannelImpl.bind(Unknown Source) at sun.nio.ch.ServerSocketAdaptor.bind(Unknown Source) at sun.nio.ch.ServerSocketAdaptor.bind(Unknown Source) at org.apache.catalina.cluster.tcp.ReplicationListener.listen(ReplicationListen er.java:104) at org.apache.catalina.cluster.tcp.ReplicationListener.run(ReplicationListener. java:85) at java.lang.Thread.run(Unknown Source) - -- Björn Andersen www.premiere.de -Ursprüngliche Nachricht- Von: Dale, Matt [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 17. August 2004 18:19 An: Tomcat Users List Betreff: RE: Tomcat Clusterin Multicast Multiinstances Memory limit should be 2 Gig for JVM's running in a 32 bit operating system. More for the 64 bit JVM's. I think you would have to have virtual IP addresses on that machine and run tomcats on specific IP addresses for you to use the multicasting. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 17 August 2004 13:42 To: [EMAIL PROTECTED] Subject: Tomcat Clusterin Multicast Multiinstances Hi, can anyone tell me how Tomcats can be configured as a cluster with session replication when there is more than one TC-Instance on one machine? We need multi-instance because of the 1 Gig mem-limit to the jvm's. Or has that changed meanwhile too? -- Björn Andersen Webservices www.premiere.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] --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.735 / Virus Database: 489 - Release Date: 8/6/2004 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.735 / Virus Database: 489 - Release Date: 8/6/2004 - To unsubscribe, e-mail: [EMAIL PROTECTED] For
RE: Tomcat Clusterin Multicast Multiinstances
Ok, can you tell how to set the JAVA_OPTS values, I mean JVM's max/min memory etc. S H A K E E L A H M A D -Original Message- From: Dale, Matt [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 18, 2004 7:10 PM To: Tomcat Users List Subject: RE: Tomcat Clusterin Multicast Multiinstances Its the same JRE and java classes so i'd imagine there is no difference. Ta Matt -Original Message- From: Shakeel [mailto:[EMAIL PROTECTED] Sent: 01 August 2004 15:12 To: Tomcat Users List Subject: RE: Tomcat Clusterin Multicast Multiinstances Thanks for a quick reply. Is it only the benifit , I mean I have pc anywhere or similar tools, or even I dont need the smart load/unload as a service. I want to know the comparison based on Memory usage, performance at runtime etc. S H A K E E L A H M A D -Original Message- From: Dale, Matt [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 18, 2004 7:01 PM To: Tomcat Users List Subject: RE: Tomcat Clusterin Multicast Multiinstances The benefits are that you can get it to start and stop with the machine and a non tomcat admin can start and stop it using the services. It can also be remotely started if you have the right tools. And it doesnt require a user to be logged in for the service to remain running. -Original Message- From: Shakeel [mailto:[EMAIL PROTECTED] Sent: 01 August 2004 15:03 To: Tomcat Users List Subject: RE: Tomcat Clusterin Multicast Multiinstances Can any one quickly tell the comparison of running tomcat as a service or without a windows service. I mean what are the benifits of running tomcat as a windows service. S H A K E E L A H M A D -Original Message- From: Filip Hanik (lists) [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 18, 2004 6:37 PM To: Tomcat Users List Subject: RE: Tomcat Clusterin Multicast Multiinstances no, the address already in use is tcpListenPort, that has to change if you run two instances on the same machine Filip -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 18, 2004 2:51 AM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: AW: Tomcat Clusterin Multicast Multiinstances Hi again, you are right with the 2Gb, sorry. It's leaving a netto of 1.6 GB ish for Tomcat here. My problem was referring to the clustersection of server.xml rather than the standard IP: mcastAddr = the multicast address, has to be the same for all the nodes mcastPort = the multicast port, has to be the same for all the nodes So even when everything else can be configured per Instance, these addr needs to be the same. So when I start up the second instance of Tomcat on the server, it says that the mcastAddr (=228.0.0.4 port 45564) is already in use and it can't bind to it ... -- INFO: Sleeping for 2000 secs to establish cluster membership 18.08.2004 09:47:19 org.apache.catalina.cluster.tcp.ReplicationListener run SCHWERWIEGEND: Unable to start cluster listener. java.net.BindException: Address already in use: bind at sun.nio.ch.Net.bind(Native Method) at sun.nio.ch.ServerSocketChannelImpl.bind(Unknown Source) at sun.nio.ch.ServerSocketAdaptor.bind(Unknown Source) at sun.nio.ch.ServerSocketAdaptor.bind(Unknown Source) at org.apache.catalina.cluster.tcp.ReplicationListener.listen(ReplicationListen er.java:104) at org.apache.catalina.cluster.tcp.ReplicationListener.run(ReplicationListener. java:85) at java.lang.Thread.run(Unknown Source) - -- Björn Andersen www.premiere.de -Ursprüngliche Nachricht- Von: Dale, Matt [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 17. August 2004 18:19 An: Tomcat Users List Betreff: RE: Tomcat Clusterin Multicast Multiinstances Memory limit should be 2 Gig for JVM's running in a 32 bit operating system. More for the 64 bit JVM's. I think you would have to have virtual IP addresses on that machine and run tomcats on specific IP addresses for you to use the multicasting. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 17 August 2004 13:42 To: [EMAIL PROTECTED] Subject: Tomcat Clusterin Multicast Multiinstances Hi, can anyone tell me how Tomcats can be configured as a cluster with session replication when there is more than one TC-Instance on one machine? We need multi-instance because of the 1 Gig mem-limit to the jvm's. Or has that changed meanwhile too? -- Björn Andersen Webservices www.premiere.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] --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.735 / Virus Database: 489 - Release
AW: Tomcat Clusterin Multicast Multiinstances
Here's a little batch I modified from the service-batch that comes with TC5. You can mod it to your needs.Find the mem part in the middle. Remember that there might be CR/LF added by the mailer. - @echo off rem set SERVICE_NAME=keine Leer|_|-|.; nur Alpahnum!! set MEM_MIN=64 set MEM_MAX=256 set SERVICE_NAME=ApacheTomcat5I%2 set DISPLAY_NAME=Apache Tomcat 5.0 I%2 set CATALINA_BASE=%CATALINA_HOME%\N%1_I%2 set EXECUTABLE=%CATALINA_HOME%\bin\tomcat5.exe set PR_DISPLAYNAME=%DISPLAY_NAME% set PR_DESCRIPTION=%DISPLAY_NAME% - Premiere - http://jakarta.apache.org/tomcat set PR_INSTALL=%EXECUTABLE% set PR_LOGPATH=%CATALINA_BASE%\logs set PR_CLASSPATH=%CATALINA_HOME%\bin\bootstrap.jar %EXECUTABLE% //IS//%SERVICE_NAME% --Jvm auto --StartClass org.apache.catalina.startup.Bootstrap --StopClass org.apache.catalina.startup.Bootstrap --StartParams start --StopParams stop rem Clear the environment variables. They are not needed any more. set PR_DISPLAYNAME= set PR_DESCRIPTION= set PR_INSTALL= set PR_LOGPATH= set PR_CLASSPATH= echo Installed Main Service %DISPLAY_NAME% ... rem Set Dirs Mem %EXECUTABLE% //US//%SERVICE_NAME% --JvmOptions -Xms%MEM_MIN%m;-Xmx%MEM_MAX%m;-Dcatalina.base=%CATALINA_BASE%;-Dcatalina.ho me=%CATALINA_HOME%;-Djava.endorsed.dirs=%CATALINA_HOME%\common\endorsed --StartMode jvm --StopMode jvm echo Updated Main Service %DISPLAY_NAME% Dir's and Mem settings ... rem Set Logging set PR_STDOUTPUT=%CATALINA_BASE%\logs\stdout.log set PR_STDERROR=%CATALINA_BASE%\logs\stderr.log %EXECUTABLE% //US//%SERVICE_NAME% ++JvmOptions -Djava.io.tmpdir=%CATALINA_BASE%\temp set PR_STDOUTPUT= set PR_STDERROR= set SERVICE_NAME= set DISPLAY_NAME= set CATALINA_BASE= set MEM_MIN= set MEM_MAX= set EXECUTABLE= echo Updated Main Service %DISPLAY_NAME% Logging settings ... - -- Björn Andersen www.premiere.de -Ursprüngliche Nachricht- Von: Shakeel [mailto:[EMAIL PROTECTED] Gesendet: Sonntag, 1. August 2004 16:23 An: Tomcat Users List Betreff: RE: Tomcat Clusterin Multicast Multiinstances Ok, can you tell how to set the JAVA_OPTS values, I mean JVM's max/min memory etc. S H A K E E L A H M A D -Original Message- From: Dale, Matt [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 18, 2004 7:10 PM To: Tomcat Users List Subject: RE: Tomcat Clusterin Multicast Multiinstances Its the same JRE and java classes so i'd imagine there is no difference. Ta Matt -Original Message- From: Shakeel [mailto:[EMAIL PROTECTED] Sent: 01 August 2004 15:12 To: Tomcat Users List Subject: RE: Tomcat Clusterin Multicast Multiinstances Thanks for a quick reply. Is it only the benifit , I mean I have pc anywhere or similar tools, or even I dont need the smart load/unload as a service. I want to know the comparison based on Memory usage, performance at runtime etc. S H A K E E L A H M A D -Original Message- From: Dale, Matt [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 18, 2004 7:01 PM To: Tomcat Users List Subject: RE: Tomcat Clusterin Multicast Multiinstances The benefits are that you can get it to start and stop with the machine and a non tomcat admin can start and stop it using the services. It can also be remotely started if you have the right tools. And it doesnt require a user to be logged in for the service to remain running. -Original Message- From: Shakeel [mailto:[EMAIL PROTECTED] Sent: 01 August 2004 15:03 To: Tomcat Users List Subject: RE: Tomcat Clusterin Multicast Multiinstances Can any one quickly tell the comparison of running tomcat as a service or without a windows service. I mean what are the benifits of running tomcat as a windows service. S H A K E E L A H M A D -Original Message- From: Filip Hanik (lists) [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 18, 2004 6:37 PM To: Tomcat Users List Subject: RE: Tomcat Clusterin Multicast Multiinstances no, the address already in use is tcpListenPort, that has to change if you run two instances on the same machine Filip -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 18, 2004 2:51 AM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: AW: Tomcat Clusterin Multicast Multiinstances Hi again, you are right with the 2Gb, sorry. It's leaving a netto of 1.6 GB ish for Tomcat here. My problem was referring to the clustersection of server.xml rather than the standard IP: mcastAddr = the multicast address, has to be the same for all the nodes mcastPort = the multicast port, has to be the same for all the nodes So even when everything else can be configured per Instance, these addr needs to be the same. So when I start up the second instance of Tomcat on the server, it says that the mcastAddr (=228.0.0.4 port 45564) is already in use and it can't bind to it ... -- INFO: Sleeping for 2000 secs to establish cluster membership 18.08.2004 09:47:19 org.apache.catalina.cluster.tcp.ReplicationListener run SCHWERWIEGEND:
AW: Tomcat Clusterin Multicast Multiinstances
Forgot to mention, that is for multiinstance-services (Which this thread was all about at the beginning...). For single instance, you don't need the CATALINA_BASE stuff... just compare it to the standard batch ... Take a closer look to the line... %EXECUTABLE% //US//%SERVICE_NAME% --JvmOptions ... And see afterwards what it did to the registry-entries, then you understand. -- Björn Andersen www.premiere.de -Ursprüngliche Nachricht- Von: Shakeel [mailto:[EMAIL PROTECTED] Gesendet: Sonntag, 1. August 2004 16:23 An: Tomcat Users List Betreff: RE: Tomcat Clusterin Multicast Multiinstances Ok, can you tell how to set the JAVA_OPTS values, I mean JVM's max/min memory etc. S H A K E E L A H M A D -Original Message- From: Dale, Matt [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 18, 2004 7:10 PM To: Tomcat Users List Subject: RE: Tomcat Clusterin Multicast Multiinstances Its the same JRE and java classes so i'd imagine there is no difference. Ta Matt -Original Message- From: Shakeel [mailto:[EMAIL PROTECTED] Sent: 01 August 2004 15:12 To: Tomcat Users List Subject: RE: Tomcat Clusterin Multicast Multiinstances Thanks for a quick reply. Is it only the benifit , I mean I have pc anywhere or similar tools, or even I dont need the smart load/unload as a service. I want to know the comparison based on Memory usage, performance at runtime etc. S H A K E E L A H M A D -Original Message- From: Dale, Matt [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 18, 2004 7:01 PM To: Tomcat Users List Subject: RE: Tomcat Clusterin Multicast Multiinstances The benefits are that you can get it to start and stop with the machine and a non tomcat admin can start and stop it using the services. It can also be remotely started if you have the right tools. And it doesnt require a user to be logged in for the service to remain running. -Original Message- From: Shakeel [mailto:[EMAIL PROTECTED] Sent: 01 August 2004 15:03 To: Tomcat Users List Subject: RE: Tomcat Clusterin Multicast Multiinstances Can any one quickly tell the comparison of running tomcat as a service or without a windows service. I mean what are the benifits of running tomcat as a windows service. S H A K E E L A H M A D -Original Message- From: Filip Hanik (lists) [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 18, 2004 6:37 PM To: Tomcat Users List Subject: RE: Tomcat Clusterin Multicast Multiinstances no, the address already in use is tcpListenPort, that has to change if you run two instances on the same machine Filip -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 18, 2004 2:51 AM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: AW: Tomcat Clusterin Multicast Multiinstances Hi again, you are right with the 2Gb, sorry. It's leaving a netto of 1.6 GB ish for Tomcat here. My problem was referring to the clustersection of server.xml rather than the standard IP: mcastAddr = the multicast address, has to be the same for all the nodes mcastPort = the multicast port, has to be the same for all the nodes So even when everything else can be configured per Instance, these addr needs to be the same. So when I start up the second instance of Tomcat on the server, it says that the mcastAddr (=228.0.0.4 port 45564) is already in use and it can't bind to it ... -- INFO: Sleeping for 2000 secs to establish cluster membership 18.08.2004 09:47:19 org.apache.catalina.cluster.tcp.ReplicationListener run SCHWERWIEGEND: Unable to start cluster listener. java.net.BindException: Address already in use: bind at sun.nio.ch.Net.bind(Native Method) at sun.nio.ch.ServerSocketChannelImpl.bind(Unknown Source) at sun.nio.ch.ServerSocketAdaptor.bind(Unknown Source) at sun.nio.ch.ServerSocketAdaptor.bind(Unknown Source) at org.apache.catalina.cluster.tcp.ReplicationListener.listen(ReplicationListen er.java:104) at org.apache.catalina.cluster.tcp.ReplicationListener.run(ReplicationListener. java:85) at java.lang.Thread.run(Unknown Source) - -- Björn Andersen www.premiere.de -Ursprüngliche Nachricht- Von: Dale, Matt [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 17. August 2004 18:19 An: Tomcat Users List Betreff: RE: Tomcat Clusterin Multicast Multiinstances Memory limit should be 2 Gig for JVM's running in a 32 bit operating system. More for the 64 bit JVM's. I think you would have to have virtual IP addresses on that machine and run tomcats on specific IP addresses for you to use the multicasting. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 17 August 2004 13:42 To: [EMAIL PROTECTED] Subject: Tomcat Clusterin Multicast Multiinstances Hi, can anyone tell me how Tomcats can be configured as a cluster with session replication when there is more than one TC-Instance on one machine? We need multi-instance
RE: Tomcat Clusterin Multicast Multiinstances
So nice of this , can I know hard and fast comparison between running tomcat as a service and without a service. For example if one has to decide to run tomcat as a service and for years she was running without a service then how can one justify to fellow developers. S H A K E E L A H M A D -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 18, 2004 7:27 PM To: [EMAIL PROTECTED] Subject: AW: Tomcat Clusterin Multicast Multiinstances Forgot to mention, that is for multiinstance-services (Which this thread was all about at the beginning...). For single instance, you don't need the CATALINA_BASE stuff... just compare it to the standard batch ... Take a closer look to the line... %EXECUTABLE% //US//%SERVICE_NAME% --JvmOptions ... And see afterwards what it did to the registry-entries, then you understand. -- Björn Andersen www.premiere.de -Ursprüngliche Nachricht- Von: Shakeel [mailto:[EMAIL PROTECTED] Gesendet: Sonntag, 1. August 2004 16:23 An: Tomcat Users List Betreff: RE: Tomcat Clusterin Multicast Multiinstances Ok, can you tell how to set the JAVA_OPTS values, I mean JVM's max/min memory etc. S H A K E E L A H M A D -Original Message- From: Dale, Matt [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 18, 2004 7:10 PM To: Tomcat Users List Subject: RE: Tomcat Clusterin Multicast Multiinstances Its the same JRE and java classes so i'd imagine there is no difference. Ta Matt -Original Message- From: Shakeel [mailto:[EMAIL PROTECTED] Sent: 01 August 2004 15:12 To: Tomcat Users List Subject: RE: Tomcat Clusterin Multicast Multiinstances Thanks for a quick reply. Is it only the benifit , I mean I have pc anywhere or similar tools, or even I dont need the smart load/unload as a service. I want to know the comparison based on Memory usage, performance at runtime etc. S H A K E E L A H M A D -Original Message- From: Dale, Matt [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 18, 2004 7:01 PM To: Tomcat Users List Subject: RE: Tomcat Clusterin Multicast Multiinstances The benefits are that you can get it to start and stop with the machine and a non tomcat admin can start and stop it using the services. It can also be remotely started if you have the right tools. And it doesnt require a user to be logged in for the service to remain running. -Original Message- From: Shakeel [mailto:[EMAIL PROTECTED] Sent: 01 August 2004 15:03 To: Tomcat Users List Subject: RE: Tomcat Clusterin Multicast Multiinstances Can any one quickly tell the comparison of running tomcat as a service or without a windows service. I mean what are the benifits of running tomcat as a windows service. S H A K E E L A H M A D -Original Message- From: Filip Hanik (lists) [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 18, 2004 6:37 PM To: Tomcat Users List Subject: RE: Tomcat Clusterin Multicast Multiinstances no, the address already in use is tcpListenPort, that has to change if you run two instances on the same machine Filip -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 18, 2004 2:51 AM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: AW: Tomcat Clusterin Multicast Multiinstances Hi again, you are right with the 2Gb, sorry. It's leaving a netto of 1.6 GB ish for Tomcat here. My problem was referring to the clustersection of server.xml rather than the standard IP: mcastAddr = the multicast address, has to be the same for all the nodes mcastPort = the multicast port, has to be the same for all the nodes So even when everything else can be configured per Instance, these addr needs to be the same. So when I start up the second instance of Tomcat on the server, it says that the mcastAddr (=228.0.0.4 port 45564) is already in use and it can't bind to it ... -- INFO: Sleeping for 2000 secs to establish cluster membership 18.08.2004 09:47:19 org.apache.catalina.cluster.tcp.ReplicationListener run SCHWERWIEGEND: Unable to start cluster listener. java.net.BindException: Address already in use: bind at sun.nio.ch.Net.bind(Native Method) at sun.nio.ch.ServerSocketChannelImpl.bind(Unknown Source) at sun.nio.ch.ServerSocketAdaptor.bind(Unknown Source) at sun.nio.ch.ServerSocketAdaptor.bind(Unknown Source) at org.apache.catalina.cluster.tcp.ReplicationListener.listen(ReplicationListen er.java:104) at org.apache.catalina.cluster.tcp.ReplicationListener.run(ReplicationListener. java:85) at java.lang.Thread.run(Unknown Source) - -- Björn Andersen www.premiere.de -Ursprüngliche Nachricht- Von: Dale, Matt [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 17. August 2004 18:19 An: Tomcat Users List Betreff: RE: Tomcat Clusterin Multicast Multiinstances Memory limit should be 2 Gig for JVM's running in a 32 bit operating system. More for the 64 bit JVM's. I
Error 1067
I installed Tomcat 3.2.4 on a Windows 2000 Prof SP2 box,, specifiedthe correct JAVA_HOME and TOMCAT_home in the wrapper.properies andworkers.properties, and created an service, all according toinstructions found in this mail archive. But I cannot start theJakarta NT service; I get an a System Error 1067, " The processterminated unexpectedly".I double-checked the specified paths and environment variables, and itall seems right. I also tried it with J2SDK 1.2.2 and 1.3.1. The NTservice won't start in both cases.What did I miss here? It there an incompatibility of the NT serviceprogram with Windows 2000? Amit Jana Software Engineer Contact : 56792000 -5142 -- ""Obstacles are things a person sees when he takes his eyes off his goal" " *Disclaimer: This message (including any attachments) contains confidential information intended for a specific individual and purpose, and is protected by law. If you are not the intended recipient, you should delete this message and are hereby notified that any disclosure, copying, or distribution of thismessage, or the taking of any action based on it, is strictly prohibited.*Visit us at http://www.mahindrabt.com
error 1067
I installed Tomcat 3.2.4 on a Windows 2000 Prof SP2 box,, specifiedthe correct JAVA_HOME and TOMCAT_home in the wrapper.properies andworkers.properties, and created an service, all according toinstructions found in this mail archive. But I cannot start theJakarta NT service; I get an a System Error 1067, " The processterminated unexpectedly".I double-checked the specified paths and environment variables, and itall seems right. I also tried it with J2SDK 1.2.2 and 1.3.1. The NTservice won't start in both cases.What did I miss here? It there an incompatibility of the NT serviceprogram with Windows 2000? Amit Jana Software Engineer Contact : 56792000 -5142 -- ""Obstacles are things a person sees when he takes his eyes off his goal" " *Disclaimer: This message (including any attachments) contains confidential information intended for a specific individual and purpose, and is protected by law. If you are not the intended recipient, you should delete this message and are hereby notified that any disclosure, copying, or distribution of thismessage, or the taking of any action based on it, is strictly prohibited.*Visit us at http://www.mahindrabt.com
Re: Class loader looks in Tomcat work directory and not in webapp directory for resources
It is isn't really meant to be part of the classpath, don't put it in WEB-INF/lib. Put it in some other location under WEB-INF. Should work fine. Tomcat extracts resources (in the classpath) to its work directory. I don't entirely know why, but it might be for performance reasons? Anyway, if you are going to overload the purpose of WEB-INF/lib, you are going to have to expect to run into clashes with container (and not just Tomcat, I imagine). Jake Quoting Oliver Kuntze [EMAIL PROTECTED]: Hi QM, thanks a lot for the prompt answer! Unfortunately I have to provide some application resources in a JAR. I am using hibernate in my persistence layer. I generate my persistent classes and their O/R mappings directly from the database and deploy that stuff to my app. If you don't want to specify all hibernate mappings that hibernate should use one by one you have to provide these mappings in a JAR and read it into hibernate. In that way I don't have to touch any classes in my persistence layer. I just tell hibernate Use whatever mapping you find in this JAR.. The only thing I have to do when implementing the persistence layer of a new app is then call the middlegen hibernate plugin and generate the app specific bos and mappings. The rest is implemented in framework classes that don't have to be changed. I tried to rename the JAR to a ZIP but that does not get accepted and an exception is thrown. Do you have any ideas how to solve this problem? Desperately, Oliver QM qm300 @brandxdev.net To: Tomcat Users List [EMAIL PROTECTED] cc: 17.08.2004 22:28 Subject: Re: Class loader looks in Tomcat work directory and not in webapp directory for Please respond resources to Tomcat Users List On Tue, Aug 17, 2004 at 08:43:54PM +0200, Oliver Kuntze wrote: : For the second resource lookup (the JAR) the class loader searches in : Tomcat 5.0\work\Catalina\localhost\rad_webmodule\loader (Tomcat's work : directory) and not in the webapp classpath under Tomcat 5.0 : \webapps\rad_webmodule\WEB-INF\classes (or in the WEB-INF/lib) where the : JAR is located. Why? That just seems to be where Tomcat5 deploys JARs from WAR files... probably for easy access. Is there any reason you're trying to manipulate JARs directly within your app? If you need to get to a set of files, why not place them under a directory structure in the classpath? -QM -- software -- http://www.brandxdev.net tech news -- http://www.RoarNetworX.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: Tomcat Clusterin Multicast Multiinstances
When the Tomcat really SERVES someone, as in real SERVERS, there are numerous reasons why you want to run it as a SERVICE. When you use Tomcat as a Developer in a test or integration state on your workstation, I think it doesn't matter if run as service or from command line. Main use of services is e.g. detect and take action when it goes down, run without a user logged on, start/stop/restart via basic network commands and similar things.. -- Björn Andersen www.premiere.de -Ursprüngliche Nachricht- Von: Shakeel [mailto:[EMAIL PROTECTED] Gesendet: Sonntag, 1. August 2004 17:02 An: Tomcat Users List Betreff: RE: Tomcat Clusterin Multicast Multiinstances So nice of this , can I know hard and fast comparison between running tomcat as a service and without a service. For example if one has to decide to run tomcat as a service and for years she was running without a service then how can one justify to fellow developers. S H A K E E L A H M A D -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 18, 2004 7:27 PM To: [EMAIL PROTECTED] Subject: AW: Tomcat Clusterin Multicast Multiinstances Forgot to mention, that is for multiinstance-services (Which this thread was all about at the beginning...). For single instance, you don't need the CATALINA_BASE stuff... just compare it to the standard batch ... Take a closer look to the line... %EXECUTABLE% //US//%SERVICE_NAME% --JvmOptions ... And see afterwards what it did to the registry-entries, then you understand. -- Björn Andersen www.premiere.de -Ursprüngliche Nachricht- Von: Shakeel [mailto:[EMAIL PROTECTED] Gesendet: Sonntag, 1. August 2004 16:23 An: Tomcat Users List Betreff: RE: Tomcat Clusterin Multicast Multiinstances Ok, can you tell how to set the JAVA_OPTS values, I mean JVM's max/min memory etc. S H A K E E L A H M A D -Original Message- From: Dale, Matt [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 18, 2004 7:10 PM To: Tomcat Users List Subject: RE: Tomcat Clusterin Multicast Multiinstances Its the same JRE and java classes so i'd imagine there is no difference. Ta Matt -Original Message- From: Shakeel [mailto:[EMAIL PROTECTED] Sent: 01 August 2004 15:12 To: Tomcat Users List Subject: RE: Tomcat Clusterin Multicast Multiinstances Thanks for a quick reply. Is it only the benifit , I mean I have pc anywhere or similar tools, or even I dont need the smart load/unload as a service. I want to know the comparison based on Memory usage, performance at runtime etc. S H A K E E L A H M A D -Original Message- From: Dale, Matt [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 18, 2004 7:01 PM To: Tomcat Users List Subject: RE: Tomcat Clusterin Multicast Multiinstances The benefits are that you can get it to start and stop with the machine and a non tomcat admin can start and stop it using the services. It can also be remotely started if you have the right tools. And it doesnt require a user to be logged in for the service to remain running. -Original Message- From: Shakeel [mailto:[EMAIL PROTECTED] Sent: 01 August 2004 15:03 To: Tomcat Users List Subject: RE: Tomcat Clusterin Multicast Multiinstances Can any one quickly tell the comparison of running tomcat as a service or without a windows service. I mean what are the benifits of running tomcat as a windows service. S H A K E E L A H M A D -Original Message- From: Filip Hanik (lists) [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 18, 2004 6:37 PM To: Tomcat Users List Subject: RE: Tomcat Clusterin Multicast Multiinstances no, the address already in use is tcpListenPort, that has to change if you run two instances on the same machine Filip -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 18, 2004 2:51 AM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: AW: Tomcat Clusterin Multicast Multiinstances Hi again, you are right with the 2Gb, sorry. It's leaving a netto of 1.6 GB ish for Tomcat here. My problem was referring to the clustersection of server.xml rather than the standard IP: mcastAddr = the multicast address, has to be the same for all the nodes mcastPort = the multicast port, has to be the same for all the nodes So even when everything else can be configured per Instance, these addr needs to be the same. So when I start up the second instance of Tomcat on the server, it says that the mcastAddr (=228.0.0.4 port 45564) is already in use and it can't bind to it ... -- INFO: Sleeping for 2000 secs to establish cluster membership 18.08.2004 09:47:19 org.apache.catalina.cluster.tcp.ReplicationListener run SCHWERWIEGEND: Unable to start cluster listener. java.net.BindException: Address already in use: bind at sun.nio.ch.Net.bind(Native Method) at sun.nio.ch.ServerSocketChannelImpl.bind(Unknown Source) at sun.nio.ch.ServerSocketAdaptor.bind(Unknown
Windows XP IIS 5.1 HTTP Post Problem with mod_jk
Has anyone else run into a problem where mod_jk does not work right with IIS 5.1 on Windows XP Professional? I am trying to connect Tomcat to the IIS that is part of XP Pro and it will work for HTTP GET requests but it does not work for HTTP POST requests. I can get this same configuration to work with multiple other flavors of Windows (Win2k Pro, Win2k Server, Win2003 Server), but I have had the same problem with XP on half a dozen machines. Any help would be appreciated. Thanks, Eric Jacobson Software Engineer FileMaker Inc. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
KYLIE WK WONG/PTJ/MS/PHILIPS is out of the office.
I will be out of the office starting 2004-07-27 and will not return until 2004-09-27. I will reply to your message upon my return. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: T5 ignoring mime mapping
As I stated, I used the jsp:directive syntax. You'd think the spec would be a little more clear about this. It's pretty easy to miss that brief sentence while scanning for answers... Thanks for the help. Andrew At 09:53 PM 8/17/2004, you wrote: JSPs don't use the mime-mappings from web.xml (per the JSP spec). You have to use the jsp:directive.page contentType=... / syntax. Andrew Shirk [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] This is pretty much a stock T5 install. No filters are configured for this app. So if it is indeed a servlet, it must be the faces servlet or the jsp servlet that is applying the text/xml mime type. However, as a work around, I am able to use a jsp directive to set the mime type from the document: jsp:directive.page contentType=text/html / This seems silly though since I'm already setting the mime type in web.xml. Andrew At 11:08 AM 8/17/2004, you wrote: It sounds like there is another servlet/filter/?? setting the content type to text/xml. -Tim Andrew Shirk wrote: Despite having set a mime mapping for the .faces extension in my web.xml, Tomcat 5 still insists on returning a JSP 2 documents with the .faces extension as text/xml. Am I doing something wrong? mime-mapping extensionfaces/extension mime-typetext/html/mime-type /mime-mapping - 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: Fwd: Tomcat + ssl problems
Lloyd Hopper wrote: I am re-submitting this mail as I have had absolutely no response as of yet - is there really no one that has come across this before? I haven't (and I'm running Tomcat/SSL), but... Firstly, the keytool will not work properly when generating a new key. right off the bat, that tells me it's not a Tomcat problem, it's a basic JVM install problem of some kind. Keytool should work; until you fix that, you're stuck. Are you on a current JVM? That's where I'd be looking, at least... FWIW, -- Hassan Schroeder - [EMAIL PROTECTED] Webtuitive Design === (+1) 408-938-0567 === http://webtuitive.com dream. code. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
jsp:include page and Dynamic Resource does not work
Hello, I want to include the response of a Dynamic Resource (implemented as a Servlet) in my JSP, but even the servlet isn't called. jsp-snipplet: jsp:include page=%= request.getContextPath() + /viewResource % flush=true jsp:param name=filename value=incl.txt/ /jsp:include snipplet from web.xml: ... servlet-nameViewResource/servlet-name url-pattern/viewResource/url-pattern ... If I call the servlet direct/manually with the url context/viewResource?filename=incl.txt it works fine, but the jsp doesn't call it. Why? My enviroment: - Tomcat 4.1.30 - Win 2000 - JDK 1.3.1_05 Any suggestions would be appreciated... thanx Stefan
Tomcat stops serving pages
Hi, I am testing a number of servlet links which work at first, but after some time, selecting any one of them throws the following exception: [JPivot] 11 ago 2004 23:30:42,926 ERROR [Session 34247B3CA927EBE9B1212D64A7B4BF00] com.tonbeller.wcf.controller.RequestFilter#doFilter: Error handling request org.apache.jasper.JasperException: Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable. atorg.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:254 ... ... No changes are made to the configuration of Tomcat before the problem arises. I have verified this with 'find', to rule out any voluntary or involuntary changes. The server is still not in use and the links are only ocassionally visited as a development demo. This is the only activity it has. When the error occurs, the rest of the system behaves normally, Tomcat is still running and does not reject connections, only they all end as explained. If I stop and restart it, the problem *goes away* and the loop repeats. My setup is: OS - Fedora Core 2 (2.6.5-1.358) Tomcat - jakarta-tomcat-4.1.30 JDK - j2sdk1.4.2_04 Any pointers on this will be greatly appreciated, Thanks, Gerardo Juarez - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Server JVM with service startup
You could use SRVANY.exe (typically found in the WinNT/2K/XP Resource Kit) as it provides the shell (and I use the term loosely) to run any .bat, .cmd or .exe as an NT/2K/XP service. You'd also like to use SRVINSTW.exe (also a ResKit item) to define the service via GUI. Unfortunately, then it takes a little manual work in the Registry to supply the parameters to SRVANY, but it's fairly easy to do. While using an .exe that's built specifically as a Windows service is cleaner, the advantage SRVANY gives you is the ability to define a drive/directory location where the service runs (like the Start in option for a shortcut). -- RH - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Alternative causes of msg 404 resource not avaialble?
Answering my own question for the benefit of anyone searching the archive. Here is what was caught in the log: 2004-08-18 13:29:56 Starting $Id: ExportSerials.java,v 1.2 2004/08/16 21:01:41 dir = /export/home/tomcat/jakarta-tomcat-4.1.12/webapps/SerialsAnalysis/ Init Error Name jdbc is not bound in this Context ... So the reason the servlet class was not found was that it was never initialized. Next question, what does it mean that jdbc is not bound? Jeffrey Barnett wrote: Yes to both no luck. I'm thinking that somehow WEB-INF/classes is not getting into the CLASSPATH. Is there a way to check this at run time? Dennis Dai wrote: Have you tried reloading the context or restarting tomcat on your department test server? On 8/17/2004 2:04 PM, Jeffrey Barnett wrote: PPS: The rest of the webapp runs normally. Jeffrey Barnett wrote: PS: Server is 4.1.12 Jeffrey Barnett wrote: I recently added a servlet to an existing webapp in WEB-INF/classes. and added the corresponding servlet and servlet-mapping tags to web.xml. When I try it out on my desktop server it works fine, but when I redeploy to the department test server I get 404 error. Is there some other configuration/deployment step I am missing? - 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: Alternative causes of msg 404 resource not avaialble?
Hi, dir = /export/home/tomcat/jakarta-tomcat-4.1.12/webapps/SerialsAnalysis/ Init Error Name jdbc is not bound in this Context ... So the reason the servlet class was not found was that it was never initialized. Next question, what does it mean that jdbc is not bound? It means a configuration error, most likely in your server.xml. If you follow the instructions in the JNDI DataSources How-To exactly, they should work. Searching the archives will reveal plenty of threads dealing with this error. Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat stops serving pages
I don't know if this will help, but got similar error messages when I used taglibs for resizing images (I don't remember which). I've solved problem with adding set CATALINA_OPTS=-Djava.awt.headless=true in catalina.sh by Janko [EMAIL PROTECTED] pravi: Hi, I am testing a number of servlet links which work at first, but after some time, selecting any one of them throws the following exception: [JPivot] 11 ago 2004 23:30:42,926 ERROR [Session 34247B3CA927EBE9B1212D64A7B4BF00] com.tonbeller.wcf.controller.RequestFilter#doFilter: Error handling request org.apache.jasper.JasperException: Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable. atorg.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:254 ... ... No changes are made to the configuration of Tomcat before the problem arises. I have verified this with 'find', to rule out any voluntary or involuntary changes. The server is still not in use and the links are only ocassionally visited as a development demo. This is the only activity it has. When the error occurs, the rest of the system behaves normally, Tomcat is still running and does not reject connections, only they all end as explained. If I stop and restart it, the problem *goes away* and the loop repeats. My setup is: OS - Fedora Core 2 (2.6.5-1.358) Tomcat - jakarta-tomcat-4.1.30 JDK - j2sdk1.4.2_04 Any pointers on this will be greatly appreciated, Thanks, Gerardo Juarez - 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: Subclassing DefaultServlet
Hi John, I did consider implementing a filter, even started writing the code, but then decided against it, although I can't remember why right now. I'm sure I'll remember in the morning :) Maybe it's something that can be solved, though. You do make a case for writing a filter instead of trying to do this with a servlet. Thanks, Frans On Wednesday 18 August 2004 15:51, John Villar wrote: What Yoav (Cicer0 on irc as a guess ;-) ) says is true if you need special processing based on the url, implementing a filter is the most straightforward, simple and elegant way. By no means you should need to modify the tomcat codebase for a special app, because that way you're ensuring non-portability, and that totally breaks the spirit of Servlets. Shapira, Yoav escribió: Hi, Can you just use a Filter and save yourself a ton of trouble? Yoav Shapira Millennium Research Informatics -Original Message- From: Frans Flippo [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 18, 2004 8:42 AM To: Tomcat Users List Subject: Subclassing DefaultServlet Hi, I've added some functionality to DefaultServlet by subclassing it (i.e. we need to do some special processing to certain URLs, for others I will just call super.doGet(...)). I compiled the DefaultServlet subclass against Tomcat's servlets-default.jar in server/lib and deployed it in my web application (adding a relevant servlet mapping to my web.xml). When I first tried it I got a ClassNotFoundException for DefaultServlet, probably due to the fact that the Tomcat server and the web applications use seperate class loaders, so our web application's class loader does not have a copy of DefaultServlet loaded. I had to copy several JARs from server/lib to my web application's WEB-INF/lib directory, including servlets-default.jar, which contains DefaultServlet. I'd rather just refer to the JARs in server/lib, though. That way I know that when the web application is deployed to a newer version of Tomcat, the DefaultServlet I'm subclassing from and the one Tomcat uses will be the same. Besides symlinking, is there any way achieve this? Can I tell tomcat to also include server/lib in the classpath for my webapp? Thanks in advance, Frans - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat 5.0.27 Win2k sp4, service.bat JVM Options
I made the following changes to customize service.bat for 5.0.27 running under Windows XP 1) To allow allow compilation of JSPs, changed PR_CLASSPATH to include J2SDK tools.jar: Before: set PR_CLASSPATH=%CATALINA_HOME%\bin\bootstrap.jar After: set PR_CLASSPATH=%JAVA_HOME%\lib\tools.jar;%CATALINA_HOME%\bin\bootstrap.jar 2a) To use a specific JVM location, changed jvm option from 'auto' 2b) To make service automatic instead of manual, added Startup option 2c) To use customized server.xml file and pass multiple parameters to StartClass, changed StartParams by separating additional values by semi-colons: Before: %EXECUTABLE% //IS//%SERVICE_NAME% --Jvm auto --StartClass org.apache.catalina.startup.Bootstrap --StopClass org.apache.catalina.startup.Bootstrap --StartParams start --StopParams stop After: %EXECUTABLE% //IS//%SERVICE_NAME% --Jvm %JAVA_HOME%\jre\bin\server\jvm.dll --StartClass org.apache.catalina.startup.Bootstrap --StopClass org.apache.catalina.startup.Bootstrap --StartParams -config;%CUSTOM_SERVERXML_FILE%;-nonaming;start --StopParams stop--Startup Automatic 3) To specify min and max memory limits, added extra jvm startup parameters Before: %EXECUTABLE% //US//%SERVICE_NAME% --JvmOptions -Dcatalina.base=%CATALINA_BASE%;-Dcatalina.home=%CATALINA_HOME%;-Djava.endo rsed.dirs=%CATALINA_HOME%\common\endorsed --StartMode jvm --StopMode jvm After: %EXECUTABLE% //US//%SERVICE_NAME% --JvmOptions -Xms128M;-Xmx256M;-Dcatalina.base=%CATALINA_BASE%;-Dcatalina.home=%CATALINA _HOME%;-Djava.endorsed.dirs=%CATALINA_HOME%\common\endorsed --StartMode jvm --StopMode jvm
wrong name bug
Hello all: I am getting an error with my jsp page that I can't figure out - saw a couple things on google about it, but no answers yet. My application is named CFCAdmin, and has a jsp in the folder named index.jsp. When I point my broswer to http://localhost:8080/CFCAdmin, I get the following error: type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception javax.servlet.ServletException: org/apache/jsp/index_jsp (wrong name: org/apache/jsp/Index_jsp) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:256) javax.servlet.http.HttpServlet.service(HttpServlet.java:856) This appliaction is set up identical to three other appliactions running on this same server, so I can't figure out what the issue is - any help is appreciated! Xeth Waxman Chandler, AZ, USA ___ Do you Yahoo!? Express yourself with Y! Messenger! Free. Download now. http://messenger.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: wrong name bug
As i can guess from your error report is called Index.jsp and not index.jsp. the name is case sensitive. Verify that it isn't written with a capital I Xeth Waxman escribió: Hello all: I am getting an error with my jsp page that I can't figure out - saw a couple things on google about it, but no answers yet. My application is named CFCAdmin, and has a jsp in the folder named index.jsp. When I point my broswer to http://localhost:8080/CFCAdmin, I get the following error: type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception javax.servlet.ServletException: org/apache/jsp/index_jsp (wrong name: org/apache/jsp/Index_jsp) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:256) javax.servlet.http.HttpServlet.service(HttpServlet.java:856) This appliaction is set up identical to three other appliactions running on this same server, so I can't figure out what the issue is - any help is appreciated! Xeth Waxman Chandler, AZ, USA ___ Do you Yahoo!? Express yourself with Y! Messenger! Free. Download now. http://messenger.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
recursive tld problem in tag files?
I am trying to use JSP Documents and have run into a snag. If I use a tld for tag files, which I want to do so that I can mix tag-file entries and tag entries in the same namespace, and I reference that tld from inside a tag file defined in that tld, tomcat ends up in a loop never to return. If I'm lucky, I may get java.lang.StackOverflowError. I want to do this so that I can use other tags in the same namespace inside a tag. I am not calling the tag from inside itself, it is simply the tld that is referenced. If I remove the reference to the tld, the tag will run. Has anyone else run into this problem? I'm hoping there is something simple I am missing. My setup: Tomcat 5.0.27 on Windows XP JDK1.4.2_05 Sample code below. I can provide the StackOverflowError trace if it would be useful. Thanks, Vincent Bumgarner Home.jspx rmcore:page xmlns=http://www.w3.org/1999/xhtml http://www.w3.org/1999/xhtml xmlns:rmcore=rmcore:1.0 [ home ] /rmcore:page tld: taglib xmlns=http://java.sun.com/xml/ns/j2ee; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-jsptaglibrary_2_0.xsd http://java.sun.com/xml/ns/j2ee/web-jsptaglibrary_2_0.xsd version=2.0 tlib-version1.0/tlib-version urirmcore:1.0/uri short-namermcore/short-name tag-file namepage/name path/WEB-INF/tags/core/page.tagx/path /tag-file tag nametabs/name pathcom.riskmetrics.web.tags.TabsTag/path /tag ... page.tagx html xmlns=http://www.w3.org/1999/xhtml; xmlns:rmcore=rmcore:1.0 ... rmcore:tabs / ...
Re: wrong name bug
From: Xeth Waxman [EMAIL PROTECTED] javax.servlet.ServletException: org/apache/jsp/index_jsp (wrong name: org/apache/jsp/Index_jsp) If you delete all the work files and re-visit the page, it should go away. Stick to lowercase names, probably what happened is someone edited the page and changed the name to uppercase when they saved it. Windows [I assume] isn't case sensitive, but Java is. -- Wendy Smoak - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: wrong name bug
I have an application war file which includes META-INF/context.xml. When I copy this war file into Tomcat webapps directory, Tomcat 5.0 tries to auto deploy the application. At this time, it should ideally create webapp-name.xml under Catalina\Engine\host directory. Instead it tries to create a directory with this name. Any suggestions? JP - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] Re: Have you implemented a Java server faces site?
Sorry for being late for replying. Parts of our project which use JSF use only its safa and proven features like value-binding and method-binding for components. We don't think we need customize renderers, components, and/or view technology for our simple and mundane app structure. JSF is quite convenient for not-so-advanced project like ours. V D wrote: Thank you for the reply. I happened to read that article too. I also have the book the guy wrote. I'll look into the rendering part using XML. It would be better if it's supported out of the box though. Hopefully the next version will address this. I did write a simple struts app before, and JSP seems to be better architecturally, and simpler to use though. The problem I have with it is that you can not programmatically display the view easily. What I mean is that in the JSP page, there is not much way to put your code there. For example, one of my requirement is that depending on a situation, 1 or more tables must be shown. You can see from the article that mixing tag lib and JSF is prohibited in a loop. Also, in a purist sense, data preparation for the display should also stay in the JSP file, not the back bean. This means it has to support programming in there. I can just create another class/bean to do this, but it becomes so many files just do something, and isn't JSP supposed to be the view part? I think it's perfectly ok to put any type of java programming in the view as long as that code only is used for the view, not application logic. Anyway, I will investigate if I can some how satisfy all my requirements with this technology. I was very commited to JSF, until I read the first link you sent me. The fact that it's very recent (august 10) causes me unease with this technology. Since it seems that you did implemented a full app successfully, if you don't mind, could you share your experience and how did your project go? Thanks. Hiroshi Iwatani wrote: Oh yes. But ... V D wrote: Thank you very much for the link. I also did some work on JSF too, and see its strength and weakness. Unfortunately, the guy doing the evaluation in the link below did not dig deep enough or use any GUI IDE See links linked from the theserverside page, that is, from the readers responses. Especially, Geary's blog page. The orgiginator guy is rather light and superficial one. such as the Java Creator or IBM's tool. Some of his points are valid though. I see other problems myself. One of them is the ability to create customized view, component, or renderer. They all involves java objects (which is not easily changable), and very elaborate. To have a render, you have to have a tag file, a tag class, a configuration, and the renderer class. Unbelievable! Tags are only for JSP presentation. You could use a better presentation technology if you want. See this article: http://www.onjava.com/pub/a/onjava/2004/06/09/jsf.html Personally, I feel JSF has saved my life in the Web development sea. It's simple, easy to use, and more effective than Struts et al. Hiroshi Iwatani wrote: Yes. See http://www.theserverside.com/news/thread.tss?thread_id=27962 V D wrote: If so, what is your experience? Is it mature enough for a serious web programming? Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Hiroshi Iwatani *stop cruelty* Annual number of institutionally euthanized cats and dogs including kittens and puppies: US 5 million, JP 500 thousand. How about your country? *for our better karma* - - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
re: tomcat deploys context.xml as a directory
On Wed, Aug 18, 2004 at 02:54:37PM -0700, Pugalia, Jai P (JP) wrote: For starters, I've changed the subject of your message to reflect its content. Please post *new* messages to the list unless you're replying to a specific topic. : When I copy this war file into Tomcat webapps directory, Tomcat 5.0 : tries to auto deploy the application. : At this time, it should ideally create webapp-name.xml under : Catalina\Engine\host directory. : : Instead it tries to create a directory with this name. Yes, this is a known bug and there's a fix. I posted your same question a few weeks ago -- search the archives under my name and the term context.xml. I don't have the bugzilla ID on-hand. -QM -- software -- http://www.brandxdev.net tech news -- http://www.RoarNetworX.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Building mod_jk2 and pointers to where to modify it...
Hi, I am not getting anywhere with a problem that I'm having with trying to access/retrieve SSL client certificate information with Apache+Tomcat+mod_jk2, so I'm thinking that my only avenue for resolving this problem may be to build mod_jk2 binary myself, possibly modifying the code to add some additional information (e.g., dumping out what it is getting from Apache). I built this system from Binaries for Apache, Tomcat, and mod_jk2, and I'm wondering how difficult is this going to be? I have Visual Studio/C++, and have some experience with C/C++ programming. It would be very helpful if someone could point me to what module to look at to add this additional debug info. What I would like to do is maybe have mod_jk2 dump the information that it receives from Apache into a file so that I can see whether or not the SSL-related attributes/headers are being sent by Apache. Thanks, Jim - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
SSL in tomcat standalone with virtual hosts
I've tried searching the archives, but haven't found a good answer to this. I've got standalone tomcat (5.0.27) with connectors for 80 and 443, and several virtual hosts (each with their own IP). I got my first SSL certificate installed fine. However, I can't figure out how to put additional ones in. I read one post in the archives that said to create a new connector for each IP, but that doesn't work (at least using the Administration tool -- it only allows one connector on 443). Thanks in advance! rj - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tomcat deploys context.xml as a directory
On 8/18/2004 3:16 PM, QM wrote: On Wed, Aug 18, 2004 at 02:54:37PM -0700, Pugalia, Jai P (JP) wrote: For starters, I've changed the subject of your message to reflect its content. Please post *new* messages to the list unless you're replying to a specific topic. : When I copy this war file into Tomcat webapps directory, Tomcat 5.0 : tries to auto deploy the application. : At this time, it should ideally create webapp-name.xml under : Catalina\Engine\host directory. : : Instead it tries to create a directory with this name. Yes, this is a known bug and there's a fix. I posted your same question a few weeks ago -- search the archives under my name and the term context.xml. I don't have the bugzilla ID on-hand. It's this one: http://nagoya.apache.org/bugzilla/show_bug.cgi?id=29688 Peter Rossbach even had a compiled HostConfig class posted there (near the bottom of the page). -- Dennis Dai [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: tomcat deploys context.xml as a directory
Thanks for providing the information about the bug and the patch. Do we know when this would get included in an official version of Tomcat. The version I am using is Tomcat 5.0.27. Also thanks for updating the subject. JP -Original Message- From: Dennis Dai [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 18, 2004 3:22 PM To: Tomcat Users List Subject: Re: tomcat deploys context.xml as a directory On 8/18/2004 3:16 PM, QM wrote: On Wed, Aug 18, 2004 at 02:54:37PM -0700, Pugalia, Jai P (JP) wrote: For starters, I've changed the subject of your message to reflect its content. Please post *new* messages to the list unless you're replying to a specific topic. : When I copy this war file into Tomcat webapps directory, Tomcat 5.0 : tries to auto deploy the application. : At this time, it should ideally create webapp-name.xml under : Catalina\Engine\host directory. : : Instead it tries to create a directory with this name. Yes, this is a known bug and there's a fix. I posted your same question a few weeks ago -- search the archives under my name and the term context.xml. I don't have the bugzilla ID on-hand. It's this one: http://nagoya.apache.org/bugzilla/show_bug.cgi?id=29688 Peter Rossbach even had a compiled HostConfig class posted there (near the bottom of the page). -- Dennis Dai [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]
Is there a way to set the size of ResultSet from MS SQL Server
I use JDBC in JSP/Java with MS SQL Server. Is there a way to set the Fetch Size (set to 10, 100,..) of ResultSet (as ADO CacheSize in ASP)? With Oracle, we can set it in program. Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tomcat deploys context.xml as a directory
It's not in 5.0.27 yet, but will be in the next release. At the meantime, just copy the HostConfig.class (from bugzilla page) to server/classes/org/apache/catalina/startup. On 8/18/2004 4:42 PM, Pugalia, Jai P (JP) wrote: Thanks for providing the information about the bug and the patch. Do we know when this would get included in an official version of Tomcat. The version I am using is Tomcat 5.0.27. Also thanks for updating the subject. JP -- Dennis Dai [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: tomcat deploys context.xml as a directory
I copied and re-deployed my application without any issues. Thanks, JP -Original Message- From: Dennis Dai [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 18, 2004 5:10 PM To: Tomcat Users List Subject: Re: tomcat deploys context.xml as a directory It's not in 5.0.27 yet, but will be in the next release. At the meantime, just copy the HostConfig.class (from bugzilla page) to server/classes/org/apache/catalina/startup. On 8/18/2004 4:42 PM, Pugalia, Jai P (JP) wrote: Thanks for providing the information about the bug and the patch. Do we know when this would get included in an official version of Tomcat. The version I am using is Tomcat 5.0.27. Also thanks for updating the subject. JP -- Dennis Dai [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]
AW: Tomcat Clusterin Multicast Multiinstances
Hello, This thread hijacked the original about Clustering. For courtesy to others trying to follow the original thread, it would be appreciated if you would start an original thread under your topic. Not only that, but trimming the unneeded context is nice as well. Please note: I am not any kind of moderator and my opinion carries no offical weight but am a open source developer who does a great deal of work through mailing lists and appreciates it when people follow common courtesy. hijacking Can any one quickly tell the comparison of running tomcat as a service or without a windows service. I mean what are the benifits of running tomcat as a windows service. S H A K E E L A H M A D hijacking -- Shawn Karma is immutable, so act accordingly! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat dies immediately
Hi, I'm trying to setup Tomcat 5.0.27 to talk to Apache using mod_proxy on Win2K server. When I add the following to server.xml to setup the proxy port: Connector className=org.apache.catalina.connector.http.HttpConnector port=8088 proxyport=9091 minProcessors=5 maxProcessors=75 enableLookups=true redirectPort=8443 acceptCount=10 debug=0 connectionTimeout=6/ and try to start Tomcat, a DOS window flashes up for a few seconds, then disappears, i.e., Tomcat doesn't seem to be able to startup. Can anyone tell me why the above is happening? Thanks, Jim - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Odd characters inserted in response after JSPC
On Wed, 18 Aug 2004 11:32:02 +0100 (B"Allistair Crossley" [EMAIL PROTECTED] wrote (B (B I have compiled all my JSPs with JSPC. I have found that 3 odd (B characters occur at the very start of most of my my responses which (B use a certain template JSP ... (B (B $B~=%=(B (B (BEvery time I open my mouth I embarass myself, but IIRC, those look like (Bwhat happens to the Byte Order Mark when you spit it out a UTF-8 stream (Band read the stream as if it were Microsoft's 8-bit something-or-other (Bcode-page (encoding). (B (BIf my memory is right, you need to read it as if it were Unicode UTF-8, (Band then the BOM is seen and handled appropriately. (B (B-- (BJoel [EMAIL PROTECTED] (B (B (B- (BTo unsubscribe, e-mail: [EMAIL PROTECTED] (BFor additional commands, e-mail: [EMAIL PROTECTED]
Re[2]: Setting PHP for Apache Tomcat
Hi! I have two different configurations with PHP 4.3.4 and 5 on two different Win 2003 servers, I've installed it without Cygwin. If you will install it from pre-compiled mod_perl 1.0 with Apache 2 distribution - then yes you need it, but its not necessary. Also you maybe need nmake if you want full package. Anyway all works without cygwin on my computers. Regards. Wednesday, August 18, 2004, 7:55:49 AM, you wrote: dbbc I'm running Win2k. Should I have to use Cygwin to install PHP then? http://wiki.apache.org/jakarta-tomcat/UsingPhp -Tim [EMAIL PROTECTED] wrote: Is it actually possible to configure Tomcat to work with PHP? If so, how? the PHP installation guide refers to httpd.conf or srm.conf neither of which exist in Tomcat. dbbc - dbbc To unsubscribe, e-mail: dbbc [EMAIL PROTECTED] dbbc For additional commands, e-mail: dbbc [EMAIL PROTECTED] -- Best regards, Eugenemailto:[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to enable mod_jk2 logging or trace problem
Hello ohaya, try this: LoadModule jk2_module path/to/your/modules/mod_jk2.so IfModule mod_jk2.c JkSet config.file path/to/your/workers2.properties /IfModule Regards Tuesday, August 17, 2004, 9:16:52 PM, you wrote: o Hi, o I had posted a msg earlier today about a problem I'm having where in my o JSP, I don't seem to be able to retrieve the client certificate o information for my Apache+Tomcat+mod_jk2 server. o I'm starting to wonder if maybe the problem may be that Apache is not o passing the information on to Tomcat. o Is there a way to enable logging of what mod_jk2 is seeing, or some o other ideas about how to debug/trace this problem. o Right now, in my Apache httpd.conf, I have: o IfModule !mod_jk2.c o LoadModule jk2_module modules/mod_jk2.so o #JkLogFile logs/mod_jk.log o #JkLogLevel debug o #JkRequestLogFormat %w %V %T %q o /IfModule o I added the lines above that are commented out, but that didn't seem to o do anything (it didn't create a mod_jk.log)... o Thanks, o Jim o - o To unsubscribe, e-mail: [EMAIL PROTECTED] o For additional commands, e-mail: o [EMAIL PROTECTED] -- Best regards, Eugenemailto:[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat dies immediately
On Wed, Aug 18, 2004 at 10:00:43PM -0400, ohaya wrote: : I'm trying to setup Tomcat 5.0.27 to talk to Apache using mod_proxy on : Win2K server. : When I add the following to server.xml to setup the proxy port: : [snip] : and try to start Tomcat, a DOS window flashes up for a few seconds, then : disappears, i.e., Tomcat doesn't seem to be able to startup. The tomcat fails to start question shows up frequently on the list. 1/ check the logs 2/ change startup.bat to pause at the very end, so you can see what's going on etc. -QM -- software -- http://www.brandxdev.net tech news -- http://www.RoarNetworX.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Is there a way to set the size of ResultSet from MS SQL Server
On Wed, Aug 18, 2004 at 04:50:32PM -0700, Daxin Zuo wrote: : I use JDBC in JSP/Java with MS SQL Server. : Is there a way to set the Fetch Size (set to 10, 100,..) of ResultSet (as : ADO CacheSize in ASP)? This sounds like a configuration specific to your database, either with a custom SQL statement (a la HSQLDB) or with a JDBC URL param... Unless you mean you want to limit the results using the clause LIMIT x in your SQL. -QM -- software -- http://www.brandxdev.net tech news -- http://www.RoarNetworX.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Mail Delivery (failure tomcat-user@jakarta.apache.org)
ATTENTION: THIS IS AN AUTOMATED RESPONSE. DO NOT REPLY TO THIS MESSAGE. If you want to end your subscription, please use this link: http://www.nethugs.com/unsubscribe.shtml If you want to subscribe, please use this link: http://www.nethugs.com/whysubscribe.shtml If you need to contact a live person, use this link: http://www.nethugs.com/contactus.shtml Sincerely, NetHugs.com Admin http://www.nethugs.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Is there a way to set the size of ResultSet from MS SQL Serve r
something like this should do the trick ... PreparedStatement pstmt = con.prepareStatement(sql,ResultSet.TYPE_FORWARD_ONLY,ResultSet.CONCUR_READ_O NLY); pstmt.setFetchSize(100); ResultSet rs = pstmt.executeQuery(); ... -Original Message- From: QM [mailto:[EMAIL PROTECTED] Sent: Thursday, 19 August 2004 2:04 PM To: Tomcat Users List Subject: Re: Is there a way to set the size of ResultSet from MS SQL Server On Wed, Aug 18, 2004 at 04:50:32PM -0700, Daxin Zuo wrote: : I use JDBC in JSP/Java with MS SQL Server. : Is there a way to set the Fetch Size (set to 10, 100,..) of ResultSet (as : ADO CacheSize in ASP)? This sounds like a configuration specific to your database, either with a custom SQL statement (a la HSQLDB) or with a JDBC URL param... Unless you mean you want to limit the results using the clause LIMIT x in your SQL. -QM -- software -- http://www.brandxdev.net tech news -- http://www.RoarNetworX.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 dies immediately
QM wrote: On Wed, Aug 18, 2004 at 10:00:43PM -0400, ohaya wrote: : I'm trying to setup Tomcat 5.0.27 to talk to Apache using mod_proxy on : Win2K server. : When I add the following to server.xml to setup the proxy port: : [snip] : and try to start Tomcat, a DOS window flashes up for a few seconds, then : disappears, i.e., Tomcat doesn't seem to be able to startup. The tomcat fails to start question shows up frequently on the list. 1/ check the logs 2/ change startup.bat to pause at the very end, so you can see what's going on etc. QM, This is on Win2K, and I found that if I did the startup using the Windows Services applet, Tomcat would put messages into the Event log... Re. the actual problem, I was able to get around it by commenting out the AddModule associated with mod_proxy, and then adding a Location.../Location in the httpd.conf. Jim - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
photos
This message was verified by the filtering system of our mail server. Original message was replaced by this one by the following reason : *** A suspicious file (executable code) was found in the message ! Original message had the following attached files : (X-FILE ??? ) : photos_arc.exe TYPE : application/octet-stream SUSPECT FILES : 1 Original message was sent by From : [EMAIL PROTECTED] If you think this is an error and the message should not be rejected by the filtering system, you may contact your system administrator for instructions. Sincerely, freenet-daemon.freenet.am j-chkmail - (c) Ecole des Mines de Paris 2002, 2003 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]