RE: [OT]Attn developers of Tomcat and JK
-Original Message- From: Didier McGillis Really this is way out of line. As everyone has said this is a free product with no formalized support structure, and no claims of any support. Just doodling. My guess, tomcat in various guises, is being used commercially pretty widely. The guy doing the download research may be able to put some figure to that. Rather than out of line, is this an opportunity for the inquisitive to see if there is a business opportunity here? I'd guess that there are sufficient commercial users who would be willing to pay for support. I'll quote MySQL as prior art. I'm convinced there is sufficient expertise lurking on this list to start such an enterprise, even if part time at first. Just a thought. regards DaveP. -- DISCLAIMER: NOTICE: The information contained in this email and any attachments is confidential and may be privileged. If you are not the intended recipient you should not use, disclose, distribute or copy any of the content of it or of any attachment; you are requested to notify the sender immediately of your receipt of the email and then to delete it and any attachments from your system. RNIB endeavours to ensure that emails and any attachments generated by its staff are free from viruses or other contaminants. However, it cannot accept any responsibility for any such which are transmitted. We therefore recommend you scan all attachments. Please note that the statements and views expressed in this email and any attachments are those of the author and do not necessarily represent those of RNIB. RNIB Registered Charity Number: 226227 Website: http://www.rnib.org.uk - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Client-Servlet LDAP authentication
Im writing a client-servlet program. If i use a client (not webbrowser) is it then possible to use Tomcat Realm(JNDI) to authenticate to LDAP using SOAP(Axis) protocol? Or do i have to make the authentication myself in my java servlet using JNDI (is this safe by the way)? Client---SOAP--- Tomcat(Realm) -- Servlet //Johan _ Hitta rätt på nätet med MSN Sök http://search.msn.se/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
mod_jk2
how/where does mod_jk2 know where to find java you have to have tomcat running to make it work? where do error messages show up? Richard - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Support Information Regarding - Missing Characters
Thank you for emailing Blizzard Entertainments Technical Support Department. In order to provide you with greater assistance, we have developed an automated reply system which evaluates your message and generates a detailed response towards it. Please read through this message as our automated reply system has helped many of our customers. If the response given below does not assist you or it is not relevant towards your message, please reply back to this email and a live technician will respond to you as soon as possible. == Support Information Regarding - Missing Characters: == For Diablo II characters: If your Diablo II classic single player characters have disappeared after installing Diablo II: Lord of Destruction then please download and install the latest patch for the Expansion at (http://www.blizzard.com/patches/). If your character is missing from your character list on Battle.net, your character may need to be relinked to the account. To request that we relink a character, please submit your character information at (http://www.blizzard.com/support/?id=eD2status000). For World of Warcraft characters: If your World of Warcraft character(s) is missing from your character list, please check to ensure that you have selected the correct game server by clicking on the Change Realm button in the character selection screen. Occasionally, crashes or server load issues will cause individual characters or even your entire character list to not appear when you log into the game. Be sure to scroll through the list of servers if you do not see yours on top. You may need to log out and try again later, after the servers have had time to reset. Feel free to check our realm status forum for any news/updates regarding your server at (http://forums.worldofwarcraft.com/board.aspx?fn=wow-realm-status). If your character(s) is not appearing properly for more than a few hours, please email your full information to [EMAIL PROTECTED] Please be sure to include the following information: 1. Account name 2. Character name 3. Server name that the character was created on Also include a detailed description of the problem, including dates and times the problem started. Our team will look into the problem and contact you with more information as soon as possible. We appreciate your patience as we look into this for you. Again, if the response given above has not assisted you or it was not relevant towards your message, please reply back to this email and a live technician will respond to you as soon as possible. Best Regards, Blizzard Support Team http://www.blizzard.com/support Blizzard Entertainment If you respond to this email, please attach all previous messages and files relating to this issue. -Original Message- From: tomcat-user@jakarta.apache.org Sent: 2/9/2005 12:54:29 AM To: tomcat-user@jakarta.apache.org Subject: mod_jk2 how/where does mod_jk2 know where to find java you have to have tomcat running to make it work? where do error messages show up? Richard - 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: JNDI without edit server.xml
Any idea? No idea I'm afraid :-/ All I can tell you for sure is that this stuff *does* work, pretty much out-of-the-box, as described in the Tomcat docs - but everything has to be spot on. So don't lose faith, even if that means starting from scratch again - which might be worth considering, if there's any chance your configuration files have got messed up. Good luck! Harry Mantheakis I try it and now the error is changed: java.lang.NoSuchMethodError: org.apache.naming.resources.ProxyDirContext.lookupCache(Ljava/lang/String;)Lor g/apache/nami ng/resources/CacheEntry; at org.apache.catalina.servlets.DefaultServlet.serveResource(DefaultServlet.java: 663) Any idea? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: using shared objects from tomcat
Benson Margulies wrote: -- Tomcat can't 'ignore' LD_ environment variables. They control how ld.so loads the JVM into the process address space and links it. You put env settings in bin/setenv.sh. You will need such a setting for LD_LIBRARY_PATH, at least. Thanks! The LD_DEBUG environment variable told me tomcat was looking for the wrong .so-file. Apperently it's looking for the file including the package structure Java_com_mycompany_myClass_myLib instead of myLib. The test applications has no package (except the default package) and tomcat on windows seams to ignore them. So, I'm off to relink the .so with a packagestructure (thats my next problem :). Thanks for the help! -- Andreas Andersson IT Dept. Travelstart Nordic [EMAIL PROTECTED] http://www.travelstart.se - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: timestamp protocol (RFC 3161)
Anyone? (B (B This is kind of a long shot, but I was wondering if anyone here has any (B experience with bouncy castle's timestamp protocol stuff that they'd (B care to share. (B (B I need to implement a tsa server and client, and I'd just feel more (B comfortable if I weren't depending solely on my own poor interpretations. (B (B (B-- (BJoel Rees [EMAIL PROTECTED] (Bdigitcom, inc. $B3t<02q
Re: HTTPconnector problem
hi charles, thanx again. I updated to 4.1.31 and it works now. -reynir Caldarale, Charles R wrote: From: reynir [mailto:[EMAIL PROTECTED] Subject: Re: HTTPconnector problem What is the secure=true then for ? My guess is that it's intended more for the proprietary connectors like AJP13, but since I have zero experience with those, it's only speculation. should it not be enough to set scheme =https ? Yes, I would think it should, but being able to test a boolean is much faster than doing a string comparison. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Running 5.5.4 from netbeans
Hi, I asked this question on the netbeans list, and got no reply, so I'm trying my luck here: I'm using Netbeans 4.1 EA2. I've got a web app which works fine with the built-in tomcat 5.0. But I'd like to use an external 5.5.4 (same machine though). When I try to run the app, I get the following error below. Has anyone seen this before? In-place deployment at /home/mike/tbrc/cvs/src/TbrcCatalog/build/web deploy?config=file:/home/mike/tbrc/cvs/src/TbrcCatalog/build/web/META-INF/context.xmlwar=file:/home/mike/tbrc/cvs/src/TbrcCatalog/build/web/ FAIL - Invalid context path null was specified /home/mike/tbrc/cvs/src/TbrcCatalog/nbproject/build-impl.xml:340: org.netbeans.modules.j2ee.deployment.devmodules.api.Deployment$DeploymentException: Deployment failed. BUILD FAILED (total time: 12 seconds) - The contents of context.xml are: ?xml version=1.0 encoding=UTF-8? Context docBase=/home/mike/tbrc/cvs/src/TbrcCatalog/build/web path=/TbrcCatalog Logger className=org.apache.catalina.logger.FileLogger prefix=TbrcCatalog. suffix=.log timestamp=true/ /Context I thought that when you used the tomcat manager deploy command, as long as you passed in a war file you didn't have to specify a context? As an aside, when I copy the war file to my hosting server, I have to delete context.xml because the docBase of course is invalid on a different machine. Can I get netbeans to stop using that docbase? Thanks very much, Michael Davis - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] Re: Compression in the server.xml
No. They are written in 2 different languages and have 2 different purposes. -Tim Graham Reeds wrote: Tim Funk wrote: Compression is useless if you use apache in front of tomcat. Do you think that there will be a merging of Tomcat and Apache in the future? Random speculation appreciated. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: IllegalStateException: getOutputStream() has already been called for this response
Thanks for the advice Roberto. I agree that the approach is wrong, but in my real application I definitely use the MVC pattern as much as possible. The problem I'm running into is that my servlet calls other classes to do the business logic. One of these classes does XSLT. What I end up doing is getting the OutputStream from the servlet and passing it down to the class that does the transformation, which sends the results of the transformation to this OutputStream. Exceptions could possible occur during the transformation, and this is where I run into this problem of the jsp error page not getting called. The use of OutputStream or Writer for the XSLT results is what keeps me from doing exactly what you suggested. I have this one hook, so to speak. I welcome any suggestions/work-arounds other than what I'm doing now with the use of the OutputStream in the XSLT transformation. Thanks. Roberto Cosenza [EMAIL PROTECTED] 02/08/2005 04:46 PM Please respond to Tomcat Users List tomcat-user@jakarta.apache.org To Tomcat Users List tomcat-user@jakarta.apache.org cc Subject Re: IllegalStateException: getOutputStream() has already been called for this response Your approach is bad but don't worry. If you have time, read something about MVC. You will need it eventually. To make your servlet work, try something like: public void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException { StringBuffer myOutput = new StringBuffer(); try { myOutput.append(Here I'm not doing anything illegal); if(true) throw new BookNotFoundException(Book doesn't exist); } catch (Exception e) { System.out.println(Caught exception: + e.getMessage()); throw new ServletException(Dummy Exception, e); } // you reach this only if no errors have been caught so no error page to display OutputStream out = res.getOutputStream(); res.setContentType(text/plain); out.println(myOutput.toString()); } /roberto - Original Message - From: DAVID TURNER To: tomcat-user@jakarta.apache.org Sent: Tuesday, February 08, 2005 9:56 PM Subject: IllegalStateException: getOutputStream() has already been called for this response I'm trying to write a servlet that handles business logic exceptions by specifying in the web.xml the jsp error page that I want to use for a specific Exception (see web.xml snippet below). I have this working when I use response.getWriter() in the servlet instead of response.getOutputStream() -- see sample servlet code below. But, when I try to use the response.getOutputStream() approach the jsp error page doesn't work and an IllegalStateException: getOutputStream() has already been called for this response gets thrown because the jsp is probably trying to get the OutputStream also. Why does the response.getWriter() method work even after headers/data have been written to the writer? Is there any way to get the jsp error page to work with the getOutputStream()? I would like to eventually compress the response stream, but from all the examples I've come across on compression they all use getOutputStream. web.xml contents: error-page exception-typeBookNotFoundException/exception-type location/jsp/ErrorPage.jsp/location /error-page servlet contents: public void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException { PrintWriter out = res.getWriter(); //OutputStream out = res.getOutputStream(); res.setContentType(text/plain); try { out.println(Line 1 of servlet); //out.write(Line 1 of servlet.getBytes()); throw new BookNotFoundException(Book doesn't exist); } catch (Exception e) { res.reset(); System.out.println(Caught exception: + e.getMessage()); throw new ServletException(Dummy Exception, e); } } -- - 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: Running heavily loaded tomcat sites.
I'm interested in reading your paper, but the link you provided requires a userid and password Wojciech Sobczuk [EMAIL PROTECTED] 02/08/2005 06:18 PM Please respond to Tomcat Users List tomcat-user@jakarta.apache.org To tomcat-user@jakarta.apache.org cc Subject Running heavily loaded tomcat sites. Hello, I have collected my experiences with running a heavily loaded (and soon to be high availability) tomcat setup in a paper available here: http://brandlay.com/wojtek/publ/tomcat.jsp Have a look if you're interested and please email any comments directly to my email. Thanks! -- Wojciech Sobczuk [EMAIL PROTECTED] +48 605 607 170 - 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: [OT] Re: Compression in the server.xml
On Wed, 09 Feb 2005 06:31:07 -0500, Tim Funk [EMAIL PROTECTED] wrote: No. They are written in 2 different languages and have 2 different purposes. Indeed. Integration will improve, though (the Apache/Tomcat connector will be bundled in Apache and will be compatible with all the other module combination (such as cache + ssl + gzip). -- x Rémy Maucherat Developer Consultant JBoss Group (Europe) SàRL x - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: IllegalStateException: getOutputStream() has already been called for this response
Just don't pass the ouput stream that you get from the servlet but create a new one. When you are done with your business, you'll copy the one on the other. On Wed, 9 Feb 2005 08:24:05 -0500, DAVID TURNER [EMAIL PROTECTED] wrote: Thanks for the advice Roberto. I agree that the approach is wrong, but in my real application I definitely use the MVC pattern as much as possible. The problem I'm running into is that my servlet calls other classes to do the business logic. One of these classes does XSLT. What I end up doing is getting the OutputStream from the servlet and passing it down to the class that does the transformation, which sends the results of the transformation to this OutputStream. Exceptions could possible occur during the transformation, and this is where I run into this problem of the jsp error page not getting called. The use of OutputStream or Writer for the XSLT results is what keeps me from doing exactly what you suggested. I have this one hook, so to speak. -- Roberto Cosenza http://robcos.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Regarding JNDI-Realm
i wonder can i use JNDIRealm for accessing ldap server if i have a client - servlet solution or is it only for webbrowser-servlet solutions ? If i can use it does anyone know a good tutorial i dont get the one in jakartas page to work.. //Johan _ Lättare att hitta drömresan med MSN Resor http://www.msn.se/resor/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: JTDS help
Well I have the clock on my Win XP Pro box set to sync with time-a.nist.gov. It looks right to me. If it is wrong it is only of by a minute or so. Charles -Original Message- From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 08, 2005 5:12 PM To: Tomcat Users List Subject: RE: JTDS help From: Charles P. Killmer [mailto:[EMAIL PROTECTED] Subject: RE: JTDS help Well there aren't any file access errors but it looks like for every request it is racing through all of the directories and compiling whatever it finds. Is there a setting that tells tomcat to recompile on every request? Recompilation is usually triggered by the timestamp on the jsp file being newer than the timestamp of the generated servlet. Is it possible that the clock on your system is set wrong? - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Trouble getting CGI script to execute
Luckily this server is dedicated to this one application. And I have everything backed up. Though security is ALWAYS an issue, it's at least less of an issue on this server. If today's attempts do not get this woprking, I am most likely just going to turn off Tomcat's CGI abilities and then install Apache and just limit the heck out of it. Here is the CGI bits from the web.xml config file: servlet servlet-namecgi/servlet-name servlet-classorg.apache.catalina.servlets.CGIServlet/servlet-class init-param param-nameclientInputTimeout/param-name param-value100/param-value /init-param init-param param-namedebug/param-name param-value6/param-value /init-param init-param param-namecgiPathPrefix/param-name param-valueWEB-INF/cgi/param-value /init-param load-on-startup5/load-on-startup /servlet . servlet-mapping servlet-namecgi/servlet-name url-pattern/cgi-bin/*/url-pattern /servlet-mapping Thanks. --Alex Alex Brelsfoard Web Applications Developer Web Development Office Worcester Polytechnic Institute 508-831-6147 [EMAIL PROTECTED] -Original Message- From: Mark Thomas [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 08, 2005 6:41 PM To: Tomcat Users List Subject: Re: Trouble getting CGI script to execute Brelsfoard, Alex wrote: OK. I should have spotted this from your last post. Your context path should be path=/myapp NOT path=myapp Yeah, you're right. Oops. Thanks. 1 problem down. n to go... Script should be: /station/endeca/4.5.4/i86pc-linux/webapps/myapp/WEB-INF/cgi/script.cgi Good, this is where I put it originally. OK tried it Still asking me if I want to download the script Poop. This really bothers me. Since the cgi script is in the WEB-INF directory you should not be able to access it. I hope this is a config error but if I were you I would have some security concerns right now. Can you post the cgi parts of your web.xml as well please. I assume that has been modified too. Can you also check that ${CATALINA_HOME}/webapps/ROOT does not contain a directory called myapp. If it does - delete it. Mark - 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]
simple question about mod_jk2
I see from the (old) docs that a channel has a timeout setting. http://jakarta.apache.org/tomcat/connectors-doc-archive/jk2/jk2/printer/configwebcom.html#sub_channel.socket Is this in seconds or milliseconds? The docs about an ajp.worker it is specified that the timeouts is in millisecs, but not so for the mod_jk2. Anyone? -- \ Olve S. Hansen \ mailto:[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
configuring SSL on tomcat 5
I have a brand new tomcat 5 server that is up and running. I am also brand new when it comes to Tomcat. I need to configure SSL on it . I pulled the how to documents off the local server and I also pulled a document off verisign website ID# VS26254 Which is for configuring a tomcat ver4 server. I installed the SSL following the tomcat 5 how to docs off the local server found under the documentation section. When I try to verify that its running using the https://localhost:8443 I get page cannot be displayed. I have followed all the steps in the documentation but I think I see a couple of problems. When I ran the Keytool -genkey -alias tomcat -keyalg RSA -keystore my_keystore_filename it put the keystore file in the directory that I was running the keytool.exe from which is the c:\j2sdk1.4.2_06\bin directory. Also when I went to verisign to get the chain certificate the default location that it wanted to save to was under the tomcat\config directory but when I tried to run the keytool -import -alias root -keystore my_keystore_filename -trustcacerts -file filename_of chain_cert it could not find the chain cert but when I copied it to the same directory c:\j2sdk1.4.2_06\bin as the keytool.exe it worked. Now The document from versign talked of the importance of getting everything into the directory that tomcat expects it to be in . I believe that is the root problem. I have tried to just copy the files to the tomcat\config and catalina and localhost dirs but no luck . Also the third and last problem that I could see is when I edited the server.mxl file there was no classname section (Connector className=org.apache.coyote.tomcat5.CoyoteConnector) Just the port =8443 and all the rest . -- Define a SSL Coyote HTTP/1.1 Connector on port 8443 -- Connector className=org.apache.coyote.tomcat5.CoyoteConnector port=8443 minProcessors=5 maxProcessors=75 enableLookups=true disableUploadTimeout=true acceptCount=100 debug=0 scheme=https secure=true; clientAuth=false sslProtocol=TLS/ I removed the rem statement and tried it as was and also tried it by adding the the classname statement Connector className=org.apache.coyote.tomcat5.CoyoteConnector which also failed .So as you can see I have a lot of questions . Any help would be great. Right now I get no errors at all. I have turned off the friendly errors in internet explorer but most of the time get the page can not be displayed some of the time it looks like its trying to work I see the yellow padlock in the lower right of the browser but it just sits there trying to pull up something and it just sit there on a empty page, trying to pull up something but nothing ever comes of it. Thanks again for any help Christopher W. Hosler Network Administrator Ingham County MIS Department Email [EMAIL PROTECTED] As water reflects the face - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Support Information Regarding - CD-Key Issues
Thank you for emailing Blizzard Entertainments Technical Support Department. In order to provide you with greater assistance, we have developed an automated reply system which evaluates your message and generates a detailed response towards it. Please read through this message as our automated reply system has helped many of our customers. If the response given below does not assist you or it is not relevant towards your message, please reply back to this email and a live technician will respond to you as soon as possible. == Support Information Regarding - CD-Key Issues: == For information regarding your CD-Key, please check out our web site on CD-Key issues: Diablo II - (http://www.blizzard.com/support/?id=mdt000p) Warcraft II Battle.net Edition - (http://www.blizzard.com/support/?id=mwb000p) StarCraft - (http://www.blizzard.com/support/?id=msc000p) Warcraft III - (http://www.blizzard.com/support/?id=mwr000p) Blizzard employees will not ask for your CD-Key unless you are contacting us about problems specific to your CD-Key (Blizzard employees on Battle.net have a Blizzard logo or a blue cape and plate mail, depending on the game title). If you are inquiring about your World of Warcraft Authentication Key, please go to our Billing Support site at (http://www.blizzard.com/support/wowBilling/?id=mbl000p#43). Again, if the response given above has not assisted you or it was not relevant towards your message, please reply back to this email and a live technician will respond to you as soon as possible. Best Regards, Blizzard Support Team http://www.blizzard.com/support Blizzard Entertainment If you respond to this email, please attach all previous messages and files relating to this issue. -Original Message- From: tomcat-user@jakarta.apache.org Sent: 2/9/2005 7:15:30 AM To: tomcat-user@jakarta.apache.org Subject: configuring SSL on tomcat 5 I have a brand new tomcat 5 server that is up and running. I am also brand new when it comes to Tomcat. I need to configure SSL on it . I pulled the how to documents off the local server and I also pulled a document off verisign website ID# VS26254 Which is for configuring a tomcat ver4 server. I installed the SSL following the tomcat 5 how to docs off the local server found under the documentation section. When I try to verify that its running using the https://localhost:8443 I get page cannot be displayed. I have followed all the steps in the documentation but I think I see a couple of problems. When I ran the Keytool -genkey -alias tomcat -keyalg RSA -keystore my_keystore_filename it put the keystore file in the directory that I was running the keytool.exe from which is the c:\j2sdk1.4.2_06\bin directory. Also when I went to verisign to get the chain certificate the default location that it wanted to save to was under the tomcat\config directory but when I tried to run the keytool -import -alias root -keystore my_keystore_filename -trustcacerts -file filename_of chain_cert it could not find the chain cert but when I copied it to the same directory c:\j2sdk1.4.2_06\bin as the keytool.exe it worked. Now The document from versign talked of the importance of getting everything into the directory that tomcat expects it to be in . I believe that is the root problem. I have tried to just copy the files to the tomcat\config and catalina and localhost dirs but no luck . Also the third and last problem that I could see is when I edited the server.mxl file there was no classname section (Connector className=org.apache.coyote.tomcat5.CoyoteConnector) Just the port =8443 and all the rest . -- Define a SSL Coyote HTTP/1.1 Connector on port 8443 -- Connector className=org.apache.coyote.tomcat5.CoyoteConnector port=8443 minProcessors=5 maxProcessors=75 enableLookups=true disableUploadTimeout=true acceptCount=100 debug=0 scheme=https secure=true; clientAuth=false sslProtocol=TLS/ I removed the rem statement and tried it as was and also tried it by adding the the classname statement Connector className=org.apache.coyote.tomcat5.CoyoteConnector which also failed .So as you can see I have a lot of questions . Any help would be great. Right now I get no errors at all. I have turned off the friendly errors in internet explorer but most of the time get the page can not be displayed some of the time it looks like its trying to work I see the yellow padlock in the lower right of the browser but it just sits there trying to pull up something and it just sit there on a empty page, trying to pull up something but nothing ever comes of it. Thanks again for any help Christopher W. Hosler Network Administrator Ingham County MIS Department Email [EMAIL PROTECTED] As water reflects the face - To
RE: mod_jk2
-Original Message- From: Richard Walters [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 09, 2005 2:54 AM To: tomcat-user@jakarta.apache.org Subject: mod_jk2 how/where does mod_jk2 know where to find java mod_jk2 doesn't need to find java. you have to have tomcat running to make it work? That's like asking if you need a lamp turned on to make an extension cord work. where do error messages show up? We use JK (not jk2) and its log file is in $APACHE_HOME/logs/mod_jk.log. There's bound to be something similar for jk2. Note also: http://jakarta.apache.org/tomcat/connectors-doc/news/20041100.html#20041115. 1 Richard - 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: virtualhost and deployment applications
Carlos Gabriel Arce wrote: Thanks for your answer. I'll show you my server.xml conf: Define a separate workDir for each vhost. More info in ${CATALINA_HOME}/webapps/tomcat-docs/config/host.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
launching Tomcat 5.0.3 from Eclipse 3.0.1
Hello I've managed to install lomboz plugin on eclipse , and tomcat 5.0.3 under Fedora core 3 now I need to start tomcat from eclipse ( logged as a user ) Thanks for your help - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
source for JDBCRealm?
I've been looking around the Apache/Jakarta site, and I can't find the Realm-related stuff (I understand it's separate from Tomcat). We're running Tomcat 4, and I'd like to hack the query JDBCRealm sends to Oracle so username checks are not case insensitive. Btw, which JAR in my Tomcat directories is related to JDBCRealm? Thanks... - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Limit infinite loop damage
Sorry I posted this earlier but it joined the wrong thread. I'm using Tomcat 5.0.27 with Sun SDK 1.4.2. A user managed to bring the whole server to a grinding halt for 6 hours after he created a Servlet which had an infinite loop. The piece of code that contained the infinite loop had a MySQL connect statement which added to the problem greatly. I've searched extensively for various answers in how to limit the damage of infinite loops in Java but have found nothing. The memory allocated to the JVM is set to a maximum of 24MB. This had little effect in keeping the damage down. Any pointers would be greatly appreciated. I've toyed with the idea of using ulimit on CPU time but then Tomcat would die depending on what time limit I set and not the Servlet thread. You can't specify a child process ulimit unfortunately. I'm hoping there's some admin settings perhaps I can use with Tomcat itself or in the JVM to automatically kill a rogue Servlet. Garthfield - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Support Information Regarding - C0000005
Thank you for emailing Blizzard Entertainments Technical Support Department. In order to provide you with greater assistance, we have developed an automated reply system which evaluates your message and generates a detailed response towards it. Please read through this message as our automated reply system has helped many of our customers. If the response given below does not assist you or it is not relevant towards your message, please reply back to this email and a live technician will respond to you as soon as possible. == Support Information Regarding - C005: == If you are getting the error Unhandled Exception: Access Violation C005: Uninstall and reinstall the game and download and install the latest patch from: (http://www.blizzard.com/patches) If this doesn't work, please try some of our other solutions: For Warcraft III Reign of Chaos: We recommend running in a selective startup to improve performance and stability. Firewall software, such as Zone Alarm, can cause lockups or prevent the game from starting. For instructions on how to run your computer in a selective startup, please visit our site at: (http://www.blizzard.com/support/?id=agn0558p). If the solution above does not help, please try the steps below. Download and install the latest DirectX from (http://www.microsoft.com/windows/directx/default.aspx?url=/windows/directx/downloads/default.htm) Make sure you have the latest drivers for your Video and Sound cards, next. A list of manufacturers with contact information can be found at (http://www.blizzard.com/support/?id=msi0369p). Download and install the latest chipset drivers for your motherboard. Check the motherboard manufacturer's website for updated chipset drivers, first. If you can't find updated drivers at the manufacturer's website, the next two most common locations for chipset drivers are (http://www.viaarena.com/?PageID=2) and (http://www.intel.com/support/chipsets/) If Warcraft III still has errors after updating drivers, download war3.reg from (http://ftp.blizzard.com/pub/war3/other/) and save it to your Windows Desktop. Once the file has been downloaded, double-click on it to import the registry info. This file will set Warcraft III to mute sound, run with the basic settings for video and set the refresh rate for the monitor to 60Hz. Once the game has started, you may select the options menu and adjust the video and sound settings as desired. For StarCraft users: Click on Start. Click on Run. Type regedit and click Ok. Click on the + icon beside the HKey_Local_Machine branch. Click on the + icon beside the Software branch. Select the Battle.net branch and press the delete key. Click on the + icon beside the HKey_Current_User branch. Click on the + icon beside the Software branch. Select the Battle.net branch and press the delete key. For Diablo II and Diablo II: Lord of Destruction: The first step in fixing this problem is to make sure you have the latest patch for the game. You can download the latest patch by going to (http://www.blizzard.com/patches). Next, download and install the latest chipset drivers for your motherboard. Check the motherboard manufacturer's website for updated chipset drivers, first. The two most common locations for chipset drivers are (http://www.viaarena.com/?PageID=2) and (http://www.intel.com/support/chipsets/). The next step if the patch does not work is to play the game in 2D mode if you are currently running in 3D. You can change this setting by re-running the Video Test. To run this test, click on Start, then Programs, then Diablo II and then Video Test. Also, try turning off the Automap as a troubleshooting step. Check your CD-ROM settings using the information provided at the following link: (http://www.blizzard.com/support/?id=mdb0404p) If this error persists, please send us any new D2#.txt and/or D2debug.txt files from the Diablo II folder on your hard drive. This will allow us to better troubleshoot your problem. Finally, you may have noticed that Diablo II causes the computer to work really hard. This is largely due to the many textures that are being used by the game at any given time, especially in 3D modes. Because of this, sometimes users who have this problem do not have trouble with any other programs. Sometimes this error will occur if your computer gets too hot, so anything you can do to lower the operating temperature of your computer might be useful. Lowering the clock speed will lower the operating temperature. You should also make sure that your processor is adequately cooled with a cooling fan and heatsink. Your processor manufacturer has specific recommendations for cooling fans for some of their chips. Please visit us on our Blizzard Entertainment Support site at (http://www.blizzard.com/support/?id=mdt0274p) for our latest solutions to
Tomcat 5.0.28 build from source
Hi, first of all I would like to tell you that I'm now the maintainer for Tomcat inside of Gentoo Linux (www.gentoo.org). We already have Tomcat integrated into the portage tree (i.e. we already have a Gentoo Linux specific Tomcat package) but the old one is pretty unmaintained. Nobody has integrated new features and nobody has bumped the version for quite a long time. Therefor, I'm now going to restructure the Tomcat package for Gentoo Linux. Gentoo is a source based distribution and we'er trying to build as much from source as possible, even Java based programs. Why we do that?: http://gentoo-wiki.com/Why_Build_Java_Code_From_Source Since we're a Linux distribution , or generally speaking an operating system, we have to avoid that a user has to keep multiple copies of an archive or an library on his system. If there are problems with a specific library (in the Java case with an jar archive) which can also be security related it can take a long time until all copies would get updated. As you now may see, in the case of Tomcat we really have to avoid that a user has to checkout and download the dependend libraries out of the internet before he builds and installs tomcat itself. We've got all dependencies in our portage tree which are required and yes, I know it's possible to specify the path to all required jars via an build.properties file for example. I've done that and everything works fine but I've it comes to the ant target build-webapps-precompile the build process bails out: build-webapps-precompile: [mkdir] Created dir: /var/tmp/portage/tomcat-5.0.28/work/jakarta-tomcat-5.0.28-src/jakarta-tomcat-5/build/server/webapps/admin/WEB-INF/src/admin [mkdir] Created dir: /var/tmp/portage/tomcat-5.0.28/work/jakarta-tomcat-5.0.28-src/jakarta-tomcat-5/build/webapps/ROOT/WEB-INF/src [mkdir] Created dir: /var/tmp/portage/tomcat-5.0.28/work/jakarta-tomcat-5.0.28-src/jakarta-tomcat-5/build/webapps/ROOT/WEB-INF/classes [mkdir] Created dir: /var/tmp/portage/tomcat-5.0.28/work/jakarta-tomcat-5.0.28-src/jakarta-tomcat-5/build/webapps/jsp-examples/WEB-INF/src [jasper2] log4j:WARN No appenders could be found for logger (org.apache.jasper.compiler.JspRuntimeContext). [jasper2] log4j:WARN Please initialize the log4j system properly. BUILD FAILED /var/tmp/portage/tomcat-5.0.28/work/jakarta-tomcat-5.0.28-src/build.xml:50: The following error occurred while executing this line: /var/tmp/portage/tomcat-5.0.28/work/jakarta-tomcat-5.0.28-src/jakarta-tomcat-5/build.xml:566: The following error occurred while executing this line: /var/tmp/portage/tomcat-5.0.28/work/jakarta-tomcat-5.0.28-src/jakarta-tomcat-5/build.xml:317: org.apache.jasper.JasperException: Unable to compile class for JSP Generated servlet error: /var/tmp/portage/tomcat-5.0.28/work/jakarta-tomcat-5.0.28-src/jakarta-tomcat-5/build/webapps/jsp-examples/WEB-INF/src/org/apache/jsp/tag/web/displayProducts_tag.java:28: incompatible types found : org.apache.jasper.runtime.JspContextWrapper required: javax.servlet.jsp.JspContext this.jspContext = new org.apache.jasper.runtime.JspContextWrapper(ctx, _jspx_nested, _jspx_at_begin, _jspx_at_end, null); ^ Generated servlet error: /var/tmp/portage/tomcat-5.0.28/work/jakarta-tomcat-5.0.28-src/jakarta-tomcat-5/build/webapps/jsp-examples/WEB-INF/src/org/apache/jsp/tag/web/displayProducts_tag.java:66: inconvertible types found : javax.servlet.jsp.JspContext required: javax.servlet.jsp.PageContext PageContext _jspx_page_context = (PageContext)jspContext; ^ An error occurred at line: 29 in the jsp file: /WEB-INF/tags/displayProducts.tag Generated servlet error: /var/tmp/portage/tomcat-5.0.28/work/jakarta-tomcat-5.0.28-src/jakarta-tomcat-5/build/webapps/jsp-examples/WEB-INF/src/org/apache/jsp/tag/web/displayProducts_tag.java:87: inconvertible types found : javax.servlet.jsp.JspContext required: org.apache.jasper.runtime.JspContextWrapper ((org.apache.jasper.runtime.JspContextWrapper) this.jspContext).syncBeforeInvoke(); ^ An error occurred at line: 35 in the jsp file: /WEB-INF/tags/displayProducts.tag Generated servlet error: /var/tmp/portage/tomcat-5.0.28/work/jakarta-tomcat-5.0.28-src/jakarta-tomcat-5/build/webapps/jsp-examples/WEB-INF/src/org/apache/jsp/tag/web/displayProducts_tag.java:102: inconvertible types found : javax.servlet.jsp.JspContext required: org.apache.jasper.runtime.JspContextWrapper ((org.apache.jasper.runtime.JspContextWrapper) this.jspContext).syncBeforeInvoke(); An error occurred at line: 40 in the jsp file: /WEB-INF/tags/displayProducts.tag Generated servlet error: /var/tmp/portage/tomcat-5.0.28/work/jakarta-tomcat-5.0.28-src/jakarta-tomcat-5/build/webapps/jsp-examples/WEB-INF/src/org/apache/jsp/tag/web/displayProducts_tag.java:114: inconvertible types found : javax.servlet.jsp.JspContext required:
Re: Limit infinite loop damage
Garthfield Carter wrote: Sorry I posted this earlier but it joined the wrong thread. I'm using Tomcat 5.0.27 with Sun SDK 1.4.2. A user managed to bring the whole server to a grinding halt for 6 hours after he created a Servlet which had an infinite loop. The piece of code that contained the infinite loop had a MySQL connect statement which added to the problem greatly. I've searched extensively for various answers in how to limit the damage of infinite loops in Java but have found nothing. The memory allocated to the JVM is set to a maximum of 24MB. This had little effect in keeping the damage down. Any pointers would be greatly appreciated. I've toyed with the idea of using ulimit on CPU time but then Tomcat would die depending on what time limit I set and not the Servlet thread. From getrlimit(2): RLIMIT_CPU CPU time limit in seconds. When the process reaches the soft limit, it is sent a SIGXCPU signal. The default action for this signal is to terminate the process. How- ever, the signal can be caught, and the handler can return control to the main program. If the process continues to consume CPU time, it will be sent SIGXCPU once per second until the hard limit is reached, at which time it is sent SIGKILL. (This latter point describes Linux 2.2 through 2.6 behaviour. Implementations vary in how they treat pro- cesses which continue to consume CPU time after reaching the soft limit. Portable applications that need to catch this signal should perform an orderly temination upon I think the parent should receive SIGCHLD only. Additionally it might depend on the type of threading You're using. I'm not sure. However You could easily test this out. If You plan to use this in production You should probably consider using s.t. like supervise from daemontools. Random thoughts: Actually there's nothing illegal in the endless loops. One thing You might consider is changing task schedulers. E.g a scheduler which performs s.t. like: Give penalty to threads/processes which have taken more than X time in the last Y minutes I'm sorry I couldn't recommend a scheduler, but the available for your platform should be well documented. I'm hoping there's some admin settings perhaps I can use with Tomcat itself or in the JVM to automatically kill a rogue Servlet. AFAIK there isn't. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Support Information Regarding - CD-Key Issues
Thank you for emailing Blizzard Entertainments Technical Support Department. In order to provide you with greater assistance, we have developed an automated reply system which evaluates your message and generates a detailed response towards it. Please read through this message as our automated reply system has helped many of our customers. If the response given below does not assist you or it is not relevant towards your message, please reply back to this email and a live technician will respond to you as soon as possible. == Support Information Regarding - CD-Key Issues: == For information regarding your CD-Key, please check out our web site on CD-Key issues: Diablo II - (http://www.blizzard.com/support/?id=mdt000p) Warcraft II Battle.net Edition - (http://www.blizzard.com/support/?id=mwb000p) StarCraft - (http://www.blizzard.com/support/?id=msc000p) Warcraft III - (http://www.blizzard.com/support/?id=mwr000p) Blizzard employees will not ask for your CD-Key unless you are contacting us about problems specific to your CD-Key (Blizzard employees on Battle.net have a Blizzard logo or a blue cape and plate mail, depending on the game title). If you are inquiring about your World of Warcraft Authentication Key, please go to our Billing Support site at (http://www.blizzard.com/support/wowBilling/?id=mbl000p#43). Again, if the response given above has not assisted you or it was not relevant towards your message, please reply back to this email and a live technician will respond to you as soon as possible. Best Regards, Blizzard Support Team http://www.blizzard.com/support Blizzard Entertainment If you respond to this email, please attach all previous messages and files relating to this issue. -Original Message- From: tomcat-user@jakarta.apache.org Sent: 2/9/2005 9:50:39 AM To: tomcat-user@jakarta.apache.org Subject: Tomcat 5.0.28 build from source Hi, first of all I would like to tell you that I'm now the maintainer for Tomcat inside of Gentoo Linux (www.gentoo.org). We already have Tomcat integrated into the portage tree (i.e. we already have a Gentoo Linux specific Tomcat package) but the old one is pretty unmaintained. Nobody has integrated new features and nobody has bumped the version for quite a long time. Therefor, I'm now going to restructure the Tomcat package for Gentoo Linux. Gentoo is a source based distribution and we'er trying to build as much from source as possible, even Java based programs. Why we do that?: http://gentoo-wiki.com/Why_Build_Java_Code_From_Source Since we're a Linux distribution , or generally speaking an operating system, we have to avoid that a user has to keep multiple copies of an archive or an library on his system. If there are problems with a specific library (in the Java case with an jar archive) which can also be security related it can take a long time until all copies would get updated. As you now may see, in the case of Tomcat we really have to avoid that a user has to checkout and download the dependend libraries out of the internet before he builds and installs tomcat itself. We've got all dependencies in our portage tree which are required and yes, I know it's possible to specify the path to all required jars via an build.properties file for example. I've done that and everything works fine but I've it comes to the ant target build-webapps-precompile the build process bails out: build-webapps-precompile: [mkdir] Created dir: /var/tmp/portage/tomcat-5.0.28/work/jakarta-tomcat-5.0.28-src/jakarta-tomcat-5/build/server/webapps/admin/WEB-INF/src/admin [mkdir] Created dir: /var/tmp/portage/tomcat-5.0.28/work/jakarta-tomcat-5.0.28-src/jakarta-tomcat-5/build/webapps/ROOT/WEB-INF/src [mkdir] Created dir: /var/tmp/portage/tomcat-5.0.28/work/jakarta-tomcat-5.0.28-src/jakarta-tomcat-5/build/webapps/ROOT/WEB-INF/classes [mkdir] Created dir: /var/tmp/portage/tomcat-5.0.28/work/jakarta-tomcat-5.0.28-src/jakarta-tomcat-5/build/webapps/jsp-examples/WEB-INF/src [jasper2] log4j:WARN No appenders could be found for logger (org.apache.jasper.compiler.JspRuntimeContext). [jasper2] log4j:WARN Please initialize the log4j system properly. BUILD FAILED /var/tmp/portage/tomcat-5.0.28/work/jakarta-tomcat-5.0.28-src/build.xml:50: The following error occurred while executing this line: /var/tmp/portage/tomcat-5.0.28/work/jakarta-tomcat-5.0.28-src/jakarta-tomcat-5/build.xml:566: The following error occurred while executing this line: /var/tmp/portage/tomcat-5.0.28/work/jakarta-tomcat-5.0.28-src/jakarta-tomcat-5/build.xml:317: org.apache.jasper.JasperException: Unable to compile class for JSP Generated servlet error: /var/tmp/portage/tomcat-5.0.28/work/jakarta-tomcat-5.0.28-src/jakarta-tomcat-5/build/webapps/jsp-examples/WEB-INF/src/org/apache/jsp/tag/web/displayProducts_tag.java:28: incompatible types found :
RE: launching Tomcat 5.0.3 from Eclipse 3.0.1
From: hicham [mailto:[EMAIL PROTECTED] Subject: launching Tomcat 5.0.3 from Eclipse 3.0.1 I've managed to install lomboz plugin on eclipse , and tomcat 5.0.3 under Fedora core 3 Just for curiosity's sake, why are you using such an ancient level of Tomcat? Or do you mean 5.0.30? - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Support Information Regarding - CD-Key Issues
who? what? and where? From: [EMAIL PROTECTED] Reply-To: Tomcat Users List tomcat-user@jakarta.apache.org To: tomcat-user@jakarta.apache.org Subject: Support Information Regarding - CD-Key Issues Date: Wed, 9 Feb 2005 09:56:00 -0800 Thank you for emailing Blizzard Entertainments Technical Support Department. In order to provide you with greater assistance, we have developed an automated reply system which evaluates your message and generates a detailed response towards it. Please read through this message as our automated reply system has helped many of our customers. If the response given below does not assist you or it is not relevant towards your message, please reply back to this email and a live technician will respond to you as soon as possible. == Support Information Regarding - CD-Key Issues: == For information regarding your CD-Key, please check out our web site on CD-Key issues: Diablo II - (http://www.blizzard.com/support/?id=mdt000p) Warcraft II Battle.net Edition - (http://www.blizzard.com/support/?id=mwb000p) StarCraft - (http://www.blizzard.com/support/?id=msc000p) Warcraft III - (http://www.blizzard.com/support/?id=mwr000p) Blizzard employees will not ask for your CD-Key unless you are contacting us about problems specific to your CD-Key (Blizzard employees on Battle.net have a Blizzard logo or a blue cape and plate mail, depending on the game title). If you are inquiring about your World of Warcraft Authentication Key, please go to our Billing Support site at (http://www.blizzard.com/support/wowBilling/?id=mbl000p#43). Again, if the response given above has not assisted you or it was not relevant towards your message, please reply back to this email and a live technician will respond to you as soon as possible. Best Regards, Blizzard Support Team http://www.blizzard.com/support Blizzard Entertainment If you respond to this email, please attach all previous messages and files relating to this issue. -Original Message- From: tomcat-user@jakarta.apache.org Sent: 2/9/2005 9:50:39 AM To: tomcat-user@jakarta.apache.org Subject: Tomcat 5.0.28 build from source Hi, first of all I would like to tell you that I'm now the maintainer for Tomcat inside of Gentoo Linux (www.gentoo.org). We already have Tomcat integrated into the portage tree (i.e. we already have a Gentoo Linux specific Tomcat package) but the old one is pretty unmaintained. Nobody has integrated new features and nobody has bumped the version for quite a long time. Therefor, I'm now going to restructure the Tomcat package for Gentoo Linux. Gentoo is a source based distribution and we'er trying to build as much from source as possible, even Java based programs. Why we do that?: http://gentoo-wiki.com/Why_Build_Java_Code_From_Source Since we're a Linux distribution , or generally speaking an operating system, we have to avoid that a user has to keep multiple copies of an archive or an library on his system. If there are problems with a specific library (in the Java case with an jar archive) which can also be security related it can take a long time until all copies would get updated. As you now may see, in the case of Tomcat we really have to avoid that a user has to checkout and download the dependend libraries out of the internet before he builds and installs tomcat itself. We've got all dependencies in our portage tree which are required and yes, I know it's possible to specify the path to all required jars via an build.properties file for example. I've done that and everything works fine but I've it comes to the ant target build-webapps-precompile the build process bails out: build-webapps-precompile: [mkdir] Created dir: /var/tmp/portage/tomcat-5.0.28/work/jakarta-tomcat-5.0.28-src/jakarta-tomcat-5/build/server/webapps/admin/WEB-INF/src/admin [mkdir] Created dir: /var/tmp/portage/tomcat-5.0.28/work/jakarta-tomcat-5.0.28-src/jakarta-tomcat-5/build/webapps/ROOT/WEB-INF/src [mkdir] Created dir: /var/tmp/portage/tomcat-5.0.28/work/jakarta-tomcat-5.0.28-src/jakarta-tomcat-5/build/webapps/ROOT/WEB-INF/classes [mkdir] Created dir: /var/tmp/portage/tomcat-5.0.28/work/jakarta-tomcat-5.0.28-src/jakarta-tomcat-5/build/webapps/jsp-examples/WEB-INF/src [jasper2] log4j:WARN No appenders could be found for logger (org.apache.jasper.compiler.JspRuntimeContext). [jasper2] log4j:WARN Please initialize the log4j system properly. BUILD FAILED /var/tmp/portage/tomcat-5.0.28/work/jakarta-tomcat-5.0.28-src/build.xml:50: The following error occurred while executing this line: /var/tmp/portage/tomcat-5.0.28/work/jakarta-tomcat-5.0.28-src/jakarta-tomcat-5/build.xml:566: The following error occurred while executing this line: /var/tmp/portage/tomcat-5.0.28/work/jakarta-tomcat-5.0.28-src/jakarta-tomcat-5/build.xml:317: org.apache.jasper.JasperException: Unable to compile class for JSP
RE: JTDS help
I have noticed that if I let FileMon just sit, every ten seconds, java.exe runs through a bunch of directories. Is this normal? It doesn't seem to contribute to the slow down as I have positioned my web requests in between the ten second intervals and it still is slow. There must be something wrong with my tomcat/JTDS setup. I have also taken IE out of the picture and make the request through telnet. Still the same slowness. What makes me think it is JTDS related is that when I remove any database references, the page is nice and fast. This makes me think it is related to the database, but other methods of connecting to the database are extremely fast. Then other tomcat installations report that my code is fast in their environment. It is only the combination of my tomcat setup, when connecting to the database. I have tried both JTDS and datadirect drivers for SQL Server. And both are slow. This leads me to think it is something specific within Tomcat but still only when connecting to a database. ! Anybody have any other thoughts? At my wits end... Charles -Original Message- From: Charles P. Killmer Sent: Tuesday, February 08, 2005 3:30 PM To: Tomcat Users List Subject: RE: JTDS help Well there aren't any file access errors but it looks like for every request it is racing through all of the directories and compiling whatever it finds. Is there a setting that tells tomcat to recompile on every request? Charles -Original Message- From: Allistair Crossley [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 08, 2005 9:36 AM To: Tomcat Users List Subject: RE: JTDS help Hey Charles, I'm sure it's quite frustrating, but I've already shown that your precise code runs way faster than your original statistics, and that was only on a modest box. It serves no purpose therefore to believe it could be the language of choice, because I cannot replicate your speed issue. See what your monitoring brings back. What kind of setup are you running? Allistair. -Original Message- From: Charles P. Killmer [mailto:[EMAIL PROTECTED] Sent: 08 February 2005 15:33 To: Tomcat Users List Subject: RE: JTDS help I don't mean to be contrary, I am just trying to pin this down. The database and tomcat server are only separated by a 10/100 switch. I am going to run filemon and watch for access denied messages, then regmon and watch for similar things. The network is very fast, the db server is not being used by anyone else. It seems to me that if it were environmental, it would affect these other programming languages the same. I checked and the jtds.jar file is in tomcat\common\lib. Any other thoughts while you wait for the results from filemon and regmon? Thank you Charles -Original Message- From: Allistair Crossley [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 08, 2005 8:44 AM To: Tomcat Users List Subject: RE: JTDS help Hi, No it was a totally raw test of your code which by virtue of using DriverManager does not use connection pooling even if I do have it enabled in my web app. jTDS installation is simply adding the JAR to tomcat/common/lib Are you running Tomcat on the same server as the database? Config file won't have anything to do with this. I am certain it is environmental. Ali. -Original Message- From: Charles P. Killmer [mailto:[EMAIL PROTECTED] Sent: 08 February 2005 14:41 To: Tomcat Users List Subject: RE: JTDS help Well I must have missed something because it isn't working correctly. ;) Were you using connection pooling in your test? Perhaps I have something messed up in a config file? Or installed jTDS incorrectly? Thanks for all your help. Charles -Original Message- From: Allistair Crossley [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 08, 2005 3:17 AM To: Tomcat Users List Subject: RE: JTDS help Hi Charles, I've just taken your code and run it through our Tomcat 5.5, jTDS, SQL Server 2000 web application and it took approx. 0.5s to compile and subsequent requests were instantaneous 0.5s. I would look again at the issues I first noted, perhaps there is something you have missed. Cheers, Allistair. -Original Message- From: Charles P. Killmer [mailto:[EMAIL PROTECTED] Sent: 07 February 2005 22:42 To: Tomcat Users List Subject: RE: JTDS help When I strip the code to simply this, %@ page language=java import=java.sql.*% % Connection conn = DriverManager.getConnection(jdbc:jtds:sqlserver://*.*.*.*:143 3/dbname;u ser=*;password=**); conn.close(); % It still runs slowly. And yes it is multiple refreshes. I have tried to use connection pooling but have not been able to get it working yet. Also the thing that I run into with connection pooling the inability to use the SQL Statement of select
stop context properly
Hi all, I work with Tomcat 4.1.31, with the Manager, and I search how to stop a context without interrupting its running threads ? When I test a stop on my Context (/testServlet), I see a log like this : 2005-02-08 17:37:16 HTMLManager: stop: Stopping web application at '/testServlet' 2005-02-08 17:37:16 StandardHost[localhost]: standardHost.stop /testServlet 2005-02-08 17:37:16 StandardWrapper[/testServlet:Fille4Servlet]: Waiting for 1 instance(s) to be deallocated 2005-02-08 17:37:17 Fille4Servlet: destroy deFille4Servlet==0 And all the servlets in my Context are deleted. So, - If my servlet had already send datas on the response outputstream, I have a 200 HTTP response with a truncated response, - If my servlet had not send datas before, I can have a 500 HTTP response with NullPointerException, XML11Configuration not found, ... - If I try something like that : public void doGet(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException { PrintWriter out = res.getWriter(); try { ... } catch (Exception e) { out.println( exception +e+ in this servlet, so bad result!!! ); } } I have an Exception on the out.println line :-( So, - is there a configuration parameter, in Tomcat, that let the running threads of a Context to finish before stopping them ? - if not, how to return a correctly response to the HTTP request client ? Thanks in advance for your ideas. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Load-balancing tomcats according to load?
Hi, I am using Apache to load balance a set of Tomcat servers. However, a round-robin or simple load-factor algorithm is not sufficient, as some of the requests we receive trigger very intensive operations on a tomcat server. I've been discussing this on the dev list, and there doesn't seem to be an easy way to modify things to do this. I wanted to ask, here, therefore, what other people do? Does anyone know of third-party tools that can do this etc.? Many thanks, David - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: launching Tomcat 5.0.3 from Eclipse 3.0.1
Caldarale, Charles R wrote: From: hicham [mailto:[EMAIL PROTECTED] Subject: launching Tomcat 5.0.3 from Eclipse 3.0.1 I've managed to install lomboz plugin on eclipse , and tomcat 5.0.3 under Fedora core 3 Just for curiosity's sake, why are you using such an ancient level of Tomcat? Or do you mean 5.0.30? I mean 5.0.30 :) hicham. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: JTDS help
I have also tried these methods since. %@ page language=java import=java.sql.*% %@ page language=java import=java.util.Properties% % Properties p = new Properties(); p.put(user, *); p.put(password, **); Driver d = (Driver)Class.forName(net.sourceforge.jtds.jdbc.Driver).newInstance(); Connection conn = d.connect(jdbc:jtds:sqlserver://*.*.*.*:1433;DatabaseName=DBName, p); //Connection conn = DriverManager.getConnection(jdbc:jtds:sqlserver://*.*.*.*:1433;Database Name=DBName, p); conn.close(); % Either one of these connection methods results in the same latency. Charles -Original Message- From: Charles P. Killmer Sent: Wednesday, February 09, 2005 12:25 PM To: Tomcat Users List Subject: RE: JTDS help I have noticed that if I let FileMon just sit, every ten seconds, java.exe runs through a bunch of directories. Is this normal? It doesn't seem to contribute to the slow down as I have positioned my web requests in between the ten second intervals and it still is slow. There must be something wrong with my tomcat/JTDS setup. I have also taken IE out of the picture and make the request through telnet. Still the same slowness. What makes me think it is JTDS related is that when I remove any database references, the page is nice and fast. This makes me think it is related to the database, but other methods of connecting to the database are extremely fast. Then other tomcat installations report that my code is fast in their environment. It is only the combination of my tomcat setup, when connecting to the database. I have tried both JTDS and datadirect drivers for SQL Server. And both are slow. This leads me to think it is something specific within Tomcat but still only when connecting to a database. ! Anybody have any other thoughts? At my wits end... Charles -Original Message- From: Charles P. Killmer Sent: Tuesday, February 08, 2005 3:30 PM To: Tomcat Users List Subject: RE: JTDS help Well there aren't any file access errors but it looks like for every request it is racing through all of the directories and compiling whatever it finds. Is there a setting that tells tomcat to recompile on every request? Charles -Original Message- From: Allistair Crossley [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 08, 2005 9:36 AM To: Tomcat Users List Subject: RE: JTDS help Hey Charles, I'm sure it's quite frustrating, but I've already shown that your precise code runs way faster than your original statistics, and that was only on a modest box. It serves no purpose therefore to believe it could be the language of choice, because I cannot replicate your speed issue. See what your monitoring brings back. What kind of setup are you running? Allistair. -Original Message- From: Charles P. Killmer [mailto:[EMAIL PROTECTED] Sent: 08 February 2005 15:33 To: Tomcat Users List Subject: RE: JTDS help I don't mean to be contrary, I am just trying to pin this down. The database and tomcat server are only separated by a 10/100 switch. I am going to run filemon and watch for access denied messages, then regmon and watch for similar things. The network is very fast, the db server is not being used by anyone else. It seems to me that if it were environmental, it would affect these other programming languages the same. I checked and the jtds.jar file is in tomcat\common\lib. Any other thoughts while you wait for the results from filemon and regmon? Thank you Charles -Original Message- From: Allistair Crossley [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 08, 2005 8:44 AM To: Tomcat Users List Subject: RE: JTDS help Hi, No it was a totally raw test of your code which by virtue of using DriverManager does not use connection pooling even if I do have it enabled in my web app. jTDS installation is simply adding the JAR to tomcat/common/lib Are you running Tomcat on the same server as the database? Config file won't have anything to do with this. I am certain it is environmental. Ali. -Original Message- From: Charles P. Killmer [mailto:[EMAIL PROTECTED] Sent: 08 February 2005 14:41 To: Tomcat Users List Subject: RE: JTDS help Well I must have missed something because it isn't working correctly. ;) Were you using connection pooling in your test? Perhaps I have something messed up in a config file? Or installed jTDS incorrectly? Thanks for all your help. Charles -Original Message- From: Allistair Crossley [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 08, 2005 3:17 AM To: Tomcat Users List Subject: RE: JTDS help Hi Charles, I've just taken your code and run it through our Tomcat 5.5, jTDS, SQL Server 2000 web application and it took approx. 0.5s to compile and subsequent requests were instantaneous 0.5s. I would look again at the issues I first noted, perhaps there is something you have
help: connecting Tomcat 5.5 to Apache 2.0 with mod_jk 1.2.8 on ISP's server
Hello all: I've been working on installing Tomcat 5.5 with Apache 2.0 for about two weeks now, and I've been stuck with an error for a week. A lot of my difficulty is that I'm working on a leased ISP's server, and am dealing with a complex pre-existing Apache installation. If you can help or tell me about a good source for integrating Apache with Tomcat via mod_jk (other than apache.org google, which I've been using), that would be great. I'm trying to get to the standard Tomcat examples pages. Any help is appreciated. Problem: Apache 2.0.50 running on a (virtual) server, musegraphics.musegraphics.com, leased from an ISP (olm.net). Apache works fine. Installed Tomcat 5.5.4, connecting it to Apache via mod_jk version 1.2.8. When I have this line JkMount /* musegraphicsworker in httpd.conf (actually a file included by httpd.conf) I get the Apache Internal Server Error page. I also get the following in mod_jk.log map_uri_to_worker::jk_uri_worker_map.c (700): Attempting to map URI '/' from 1 maps map_uri_to_worker::jk_uri_worker_map.c (718): Attempting to map context URI '/*' map_uri_to_worker::jk_uri_worker_map.c (755): Found a context match musegraphicsworker - / jk_handler::mod_jk.c (1715): Into handler jakarta-servlet worker=musegraphicsworker r-proxyreq=0 wc_get_worker_for_name::jk_worker.c (92): did not find a worker musegraphicsworker jk_handler::mod_jk.c (1883): Could not find a worker for worker name=musegraphicsworker When I comment it out, Apache works fine, but of course no Tomcat access. Any ideas would be appreciated Jason More info on Stuff I've done: I added these to httpd.conf: LoadModule jk_module modules/mod_jk.so #at the end of the LoadModule's list And I commented out these(put there by my ISP), b/c they seemed to be interfering with mod_jk.so #IfModule mod_jk.c # JkWorkersFile /etc/httpd/conf/workers.properties # IfDefine PROD_SERVER # JkLogFile/var/log/httpd/mod_jk.log # /IfDefine #IfDefine TEST_SERVER # JkLogFile/var/log/httpd-test/mod_jk.log # /IfDefine # JkLogLevel error #/IfModule Here are the lines I added to workers.properties worker.musegraphicsworker.type=ajp13 worker.musegraphicsworker.host=www.musegraphics.com worker.musegraphicsworker.port=8011 worker.musegraphicsworker.cachesize=10 worker.musegraphicsworker.cache_timeout=600 worker.musegraphicsworker.socket_timeout=300 worker.musegraphicsworker.socket_keepalive=1 What I've done to solve it: I've googled a lot, I've also searched this list's archive, found one person with the same problem but no answer. Again, any help would be greatly appreciated. I'm fairly new - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: help: connecting Tomcat 5.5 to Apache 2.0 with mod_jk 1.2.8 on ISP's server
Try something like this in your httpd.conf: IfDefine HAVE_JK LoadModule jk_module modules/mod_jk.so IfModule mod_jk.c JkWorkerPropertyworker.musegraphicsworker.type=ajp13 JkWorkerPropertyworker.musegraphicsworker.host=127.0.0.1 JkWorkerPropertyworker.musegraphicsworker.port=8011 JkWorkerPropertyworker.list=musegraphicsworker JkMount /*.jsp musegraphicsworker JkLogFile logs/mod_jk.log JkLogLevel debug JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories /IfModule # mod_jk.c /IfDefine # HAVE_JK Make sure to bind the ajp connector to 127.0.0.1 in your server.xml. You don't want to serve requests from anywhere else for obvious reasons. Here's an example: Connector port=8011 address=127.0.0.1 enableLookups=false redirectPort=8443 protocol=AJP/1.3 / Jason Nichols wrote: Hello all: I've been working on installing Tomcat 5.5 with Apache 2.0 for about two weeks now, and I've been stuck with an error for a week. A lot of my difficulty is that I'm working on a leased ISP's server, and am dealing with a complex pre-existing Apache installation. If you can help or tell me about a good source for integrating Apache with Tomcat via mod_jk (other than apache.org google, which I've been using), that would be great. I'm trying to get to the standard Tomcat examples pages. Any help is appreciated. Problem: Apache 2.0.50 running on a (virtual) server, musegraphics.musegraphics.com, leased from an ISP (olm.net). Apache works fine. Installed Tomcat 5.5.4, connecting it to Apache via mod_jk version 1.2.8. When I have this line JkMount /* musegraphicsworker in httpd.conf (actually a file included by httpd.conf) I get the Apache Internal Server Error page. I also get the following in mod_jk.log map_uri_to_worker::jk_uri_worker_map.c (700): Attempting to map URI '/' from 1 maps map_uri_to_worker::jk_uri_worker_map.c (718): Attempting to map context URI '/*' map_uri_to_worker::jk_uri_worker_map.c (755): Found a context match musegraphicsworker - / jk_handler::mod_jk.c (1715): Into handler jakarta-servlet worker=musegraphicsworker r-proxyreq=0 wc_get_worker_for_name::jk_worker.c (92): did not find a worker musegraphicsworker jk_handler::mod_jk.c (1883): Could not find a worker for worker name=musegraphicsworker When I comment it out, Apache works fine, but of course no Tomcat access. Any ideas would be appreciated Jason More info on Stuff I've done: I added these to httpd.conf: LoadModule jk_module modules/mod_jk.so #at the end of the LoadModule's list And I commented out these(put there by my ISP), b/c they seemed to be interfering with mod_jk.so #IfModule mod_jk.c # JkWorkersFile /etc/httpd/conf/workers.properties # IfDefine PROD_SERVER # JkLogFile/var/log/httpd/mod_jk.log # /IfDefine #IfDefine TEST_SERVER # JkLogFile/var/log/httpd-test/mod_jk.log # /IfDefine # JkLogLevel error #/IfModule Here are the lines I added to workers.properties worker.musegraphicsworker.type=ajp13 worker.musegraphicsworker.host=www.musegraphics.com worker.musegraphicsworker.port=8011 worker.musegraphicsworker.cachesize=10 worker.musegraphicsworker.cache_timeout=600 worker.musegraphicsworker.socket_timeout=300 worker.musegraphicsworker.socket_keepalive=1 What I've done to solve it: I've googled a lot, I've also searched this list's archive, found one person with the same problem but no answer. Again, any help would be greatly appreciated. I'm fairly new - 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: JTDS help
Charles P. Killmer wrote: I have also tried these methods since. %@ page language=java import=java.sql.*% %@ page language=java import=java.util.Properties% % Properties p = new Properties(); p.put(user, *); p.put(password, **); Driver d = (Driver)Class.forName(net.sourceforge.jtds.jdbc.Driver).newInstance(); Connection conn = d.connect(jdbc:jtds:sqlserver://*.*.*.*:1433;DatabaseName=DBName, p); //Connection conn = DriverManager.getConnection(jdbc:jtds:sqlserver://*.*.*.*:1433;Database Name=DBName, p); conn.close(); % That way of doing things is always going to be desparately slow. Connecting to the database is very heavy weight and very slow. You need to use some connection pooling. You'll see an enormous improvement in performance. Tomcat has DBCP built in. Look at setting this up. It will make an enormous difference. Look at: http://jakarta.apache.org/tomcat/tomcat-5.0-doc/jndi-datasource-examples-howto.html for details on how to configure this. -- Gary Evesson Decentrix Inc - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: JTDS help
From: Charles P. Killmer [mailto:[EMAIL PROTECTED] There must be something wrong with my tomcat/JTDS setup. Charles, To be clear: You have run osql.exe, on the same machine as the Tomcat process, as the same user as your Tomcat process, and it connects quickly and runs queries quickly? I suspect your answer will be 'yes, many times', but I can't find it in my archives of this thread. - Peter - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Attn developers of Tomcat and JK
Well, this clearly seems to be a configuratino issue. I used to see the kind of error messages in your email when I first started using Tomcat5.x and JK2, but they are all gone now. I forgot how I fixed the problem but my server has been running for about 6 months without any problem. Eric Sandusky [EMAIL PROTECTED] wrote:To the developers of Tomcat and JK: As I can sense that not one single person is willing to respond to this issue, I can only assume that this tomcat-user community is worthless. Not only have I submitted this issue back 6 months ago, but a similar post was made by the user A jie twice within the last week. If you are too ashamed that your software is not reliable enough to be installed in a production environment, at least have the decency of telling us that. When I have to deal with user session data being sent back to the wrong client, sessions getting lost, and numerous log errors stating that the request/response cannot be fulfilled, I can only come to one conclusion.. Tomcat and the JK/JK2 connector are not reliable. See below and tell me that those messages would not cause problems for the client. [Mon Feb 07 13:30:20 2005] [info] jk_open_socket::jk_connect.c (183): connect() failed errno = 61 [Mon Feb 07 13:30:20 2005] [info] ajp_connect_to_endpoint::jk_ajp_common.c (862): Failed connecting to tomcat. Tomcat is probably not started or is listening on the wrong host/port (127.0.0.1:8009). Failed errno = 61 [Mon Feb 07 13:30:20 2005] [info] ajp_send_request::jk_ajp_common.c (1186): Error connecting to the Tomcat process. [Mon Feb 07 13:30:20 2005] [info] ajp_service::jk_ajp_common.c (1665): Sending request to tomcat failed, recoverable operation attempt=2 [Mon Feb 07 13:30:20 2005] [error] ajp_service::jk_ajp_common.c (1673): Error connecting to tomcat. Tomcat is probably not started or is listening on the wrong port. worker=ajp13w failed errno = 61 [Mon Feb 07 13:30:20 2005] [error] HttpExtensionProc::jk_isapi_plugin.c (937): service() failed If Tomcat + JK cannot process every request/response on a Windows server that is dual-xeon 3.0 Ghz processors with 4 GB of memory, then what machine would? And doesn't it seem strange how the JK2 project has been mysteriously abandoned? Thanks for going off in a seemingly better direction only to jump ship and leave everyone SOL. It makes me think that this whole Tomcat development effort is more of just a hobby and not something to be taken seriously. If anyone is willing to contact me on this issue, I would be more than happy to talk one-on-one. If you want to tell me that this is not the forum for ranting about Tomcat or JK, it should be. If you want to blackball me from this community, go ahead, I'm not getting any help from it as it is. I can only hope that this message reaches the people who supposedly support this software and lights a fire underneath them to improve it or tell us that it just doesn't work. Eric -Original Message- From: Eric Sandusky [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 02, 2005 11:40 AM To: Tomcat Users List Subject: ISAPI redirector warnings While running Tomcat 5 with IIS and JK2.. The Windows Application Logs often log several Warnings at the same point in time, see below for example. The problem is, these Warnings pile up in the Windows Event logs and force the Administrator to manually clear out the logs daily or weekly. I am not looking to simply suppress these messages, but find a solution to the actual problem. This issue seems to occur at random and things such as session confusion (user A sees user B's data) and other noticeable issues happen at or around the same time as these warnings. What is the reason for these log entries? How can I eliminate these log entries? Error: [jk_worker_ajp13.c (648)]: ajp13.service() Error forwarding ajp13:localhost:8009 1 0 Error: [jk_worker_ajp13.c (546)]: ajp13.service() ajpGetReply recoverable error 3 Error: [jk_handler_response.c (140)]: handler.response() Error sending response Error: [jk_service_iis.c (126)]: jk_ws_service_t::head, ServerSupportFunction failed Error: [jk_worker_ajp13.c (546)]: ajp13.service() ajpGetReply recoverable error 3 Error: [jk_handler_response.c (140)]: handler.response() Error sending response Error: [jk_service_iis.c (126)]: jk_ws_service_t::head, ServerSupportFunction failed Configuration: Windows 2000 or Windows 2003 Server Apache Tomcat 5.0.25 or 5.0.28 Microsoft IIS 5 or 6 JK2 2.0.4 connector Workers2.properties [shm:] info=Shared memory file. Required for multiprocess servers file=d:\tomcat5.0.28\work\jk20.shm size=100 # Define the communication channel [channel.socket:localhost:8009] tomcatId=localhost:8009 [ajp13:localhost:8009] channel=channel.socket:localhost:8009 [uri:/Concept60/*] worker=ajp13:localhost:8009 Server.xml maxSpareThreads=75 enableLookups=false redirectPort=8443 acceptCount=100 debug=0 connectionTimeout=2
Apache Tomcat modjk - loss of communication - possibly tuning issue?
Under heavy loads the following errors appear in the mod_jk.log: [jk_ajp_common.c (681)]: ERROR: can't receive the response message from tomcat, network problems or tomcat is down. [jk_ajp_common.c (1050)]: Error reading reply from tomcat. Tomcat is down or network problems. [jk_ajp_common.c (1187)]: ERROR: Receiving from tomcat failed, recoverable operation. err=0 [jk_ajp_common.c (681)]: ERROR: can't receive the response message from tomcat, network problems or tomcat is down. [jk_ajp_common.c (1050)]: Error reading reply from tomcat. Tomcat is down or network problems. [jk_ajp_common.c (1187)]: ERROR: Receiving from tomcat failed, recoverable operation. err=1 [jk_ajp_common.c (681)]: ERROR: can't receive the response message from tomcat, network problems or tomcat is down. [jk_ajp_common.c (1050)]: Error reading reply from tomcat. Tomcat is down or network problems. [jk_ajp_common.c (1187)]: ERROR: Receiving from tomcat failed, recoverable operation. err=2 [jk_ajp_common.c (1198)]: Error connecting to tomcat. Tomcat is probably not started or is listenning on the wrong port. Failed errno = 104 Some requests are handled just fine during the time when these problems are occuring, others result in the end users recieving the Internal Server Error from apache. The problem corrects itself, with the only tell-tale sign being the messages in the logfile. Based on comments in other threads and on other sites, we changed the configuration of our Connector to include connectionTimeout=-1 (disable connection timeouts - on very fast machines apache can apparently timeout before tomcat has a chance to respond), increase maxProcessors to 100 (from default of 75 - by running a ps and grep-ing for the number of tomcat processes, we can see that we are consistently running the maximum number of processes), and increase acceptCount to 100 (because our requests tend to take a fairly long time to be turned around by tomcat (lots of backend processing), we have a high number of concurrent requests). Configuration: Apache 2.0.44 connected to Tomcat 4.1.24 with mod_jk, loadbalancing between 2 tomcat instances Environment: Red Hat (2.4.18-24.7.xsmp) Dell PowerEdge 1650 4G RAM From server.xml Connector className=org.apache.ajp.tomcat4.Ajp13Connector port=11009 minProcessors=5 maxProcessors=100 acceptCount=100 debug=0 connectionTimeout=-1 enableLookups=false/ I've configured each tomcat instance to use 1G of memory (-Xmx), although after running with gc logging on (-Xloggc), it appears that each instance is using only 65M - 120M. It appears to me that the problem is in the communication between apache and tomcat, and since we only see the problem during periods of heavy usage, I had been concentrating my efforts on tuning the parameters in the Connector. But my recent changes (maxProcessors from 75 to 100 and acceptCount from 10 to 100) don't seem to have alleviated the problem. Is it simply that they should be turned up further, or am I barking up the wrong tree? Any thoughts would be immensely appreciated. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Support Information Regarding - C0000005
Thank you for emailing Blizzard Entertainments Technical Support Department. In order to provide you with greater assistance, we have developed an automated reply system which evaluates your message and generates a detailed response towards it. Please read through this message as our automated reply system has helped many of our customers. If the response given below does not assist you or it is not relevant towards your message, please reply back to this email and a live technician will respond to you as soon as possible. == Support Information Regarding - C005: == If you are getting the error Unhandled Exception: Access Violation C005: Uninstall and reinstall the game and download and install the latest patch from: (http://www.blizzard.com/patches) If this doesn't work, please try some of our other solutions: For Warcraft III Reign of Chaos: We recommend running in a selective startup to improve performance and stability. Firewall software, such as Zone Alarm, can cause lockups or prevent the game from starting. For instructions on how to run your computer in a selective startup, please visit our site at: (http://www.blizzard.com/support/?id=agn0558p). If the solution above does not help, please try the steps below. Download and install the latest DirectX from (http://www.microsoft.com/windows/directx/default.aspx?url=/windows/directx/downloads/default.htm) Make sure you have the latest drivers for your Video and Sound cards, next. A list of manufacturers with contact information can be found at (http://www.blizzard.com/support/?id=msi0369p). Download and install the latest chipset drivers for your motherboard. Check the motherboard manufacturer's website for updated chipset drivers, first. If you can't find updated drivers at the manufacturer's website, the next two most common locations for chipset drivers are (http://www.viaarena.com/?PageID=2) and (http://www.intel.com/support/chipsets/) If Warcraft III still has errors after updating drivers, download war3.reg from (http://ftp.blizzard.com/pub/war3/other/) and save it to your Windows Desktop. Once the file has been downloaded, double-click on it to import the registry info. This file will set Warcraft III to mute sound, run with the basic settings for video and set the refresh rate for the monitor to 60Hz. Once the game has started, you may select the options menu and adjust the video and sound settings as desired. For StarCraft users: Click on Start. Click on Run. Type regedit and click Ok. Click on the + icon beside the HKey_Local_Machine branch. Click on the + icon beside the Software branch. Select the Battle.net branch and press the delete key. Click on the + icon beside the HKey_Current_User branch. Click on the + icon beside the Software branch. Select the Battle.net branch and press the delete key. For Diablo II and Diablo II: Lord of Destruction: The first step in fixing this problem is to make sure you have the latest patch for the game. You can download the latest patch by going to (http://www.blizzard.com/patches). Next, download and install the latest chipset drivers for your motherboard. Check the motherboard manufacturer's website for updated chipset drivers, first. The two most common locations for chipset drivers are (http://www.viaarena.com/?PageID=2) and (http://www.intel.com/support/chipsets/). The next step if the patch does not work is to play the game in 2D mode if you are currently running in 3D. You can change this setting by re-running the Video Test. To run this test, click on Start, then Programs, then Diablo II and then Video Test. Also, try turning off the Automap as a troubleshooting step. Check your CD-ROM settings using the information provided at the following link: (http://www.blizzard.com/support/?id=mdb0404p) If this error persists, please send us any new D2#.txt and/or D2debug.txt files from the Diablo II folder on your hard drive. This will allow us to better troubleshoot your problem. Finally, you may have noticed that Diablo II causes the computer to work really hard. This is largely due to the many textures that are being used by the game at any given time, especially in 3D modes. Because of this, sometimes users who have this problem do not have trouble with any other programs. Sometimes this error will occur if your computer gets too hot, so anything you can do to lower the operating temperature of your computer might be useful. Lowering the clock speed will lower the operating temperature. You should also make sure that your processor is adequately cooled with a cooling fan and heatsink. Your processor manufacturer has specific recommendations for cooling fans for some of their chips. Please visit us on our Blizzard Entertainment Support site at (http://www.blizzard.com/support/?id=mdt0274p) for our latest solutions to
Re: Apache Tomcat modjk - loss of communication - possibly tuning issue?
I think the best way is to increase the maxProcessors and acceptCount to be the same as the apache webserver. Check for the MaxClients entry in the httpd.conf. Sharon French [EMAIL PROTECTED] wrote:Under heavy loads the following errors appear in the mod_jk.log: [jk_ajp_common.c (681)]: ERROR: can't receive the response message from tomcat, network problems or tomcat is down. [jk_ajp_common.c (1050)]: Error reading reply from tomcat. Tomcat is down or network problems. [jk_ajp_common.c (1187)]: ERROR: Receiving from tomcat failed, recoverable operation. err=0 [jk_ajp_common.c (681)]: ERROR: can't receive the response message from tomcat, network problems or tomcat is down. [jk_ajp_common.c (1050)]: Error reading reply from tomcat. Tomcat is down or network problems. [jk_ajp_common.c (1187)]: ERROR: Receiving from tomcat failed, recoverable operation. err=1 [jk_ajp_common.c (681)]: ERROR: can't receive the response message from tomcat, network problems or tomcat is down. [jk_ajp_common.c (1050)]: Error reading reply from tomcat. Tomcat is down or network problems. [jk_ajp_common.c (1187)]: ERROR: Receiving from tomcat failed, recoverable operation. err=2 [jk_ajp_common.c (1198)]: Error connecting to tomcat. Tomcat is probably not started or is listenning on the wrong port. Failed errno = 104 Some requests are handled just fine during the time when these problems are occuring, others result in the end users recieving the Internal Server Error from apache. The problem corrects itself, with the only tell-tale sign being the messages in the logfile. Based on comments in other threads and on other sites, we changed the configuration of our Connector to include connectionTimeout=-1 (disable connection timeouts - on very fast machines apache can apparently timeout before tomcat has a chance to respond), increase maxProcessors to 100 (from default of 75 - by running a ps and grep-ing for the number of tomcat processes, we can see that we are consistently running the maximum number of processes), and increase acceptCount to 100 (because our requests tend to take a fairly long time to be turned around by tomcat (lots of backend processing), we have a high number of concurrent requests). Configuration: Apache 2.0.44 connected to Tomcat 4.1.24 with mod_jk, loadbalancing between 2 tomcat instances Environment: Red Hat (2.4.18-24.7.xsmp) Dell PowerEdge 1650 4G RAM From server.xml port=11009 minProcessors=5 maxProcessors=100 acceptCount=100 debug=0 connectionTimeout=-1 enableLookups=false/ I've configured each tomcat instance to use 1G of memory (-Xmx), although after running with gc logging on (-Xloggc), it appears that each instance is using only 65M - 120M. It appears to me that the problem is in the communication between apache and tomcat, and since we only see the problem during periods of heavy usage, I had been concentrating my efforts on tuning the parameters in the Connector. But my recent changes (maxProcessors from 75 to 100 and acceptCount from 10 to 100) don't seem to have alleviated the problem. Is it simply that they should be turned up further, or am I barking up the wrong tree? Any thoughts would be immensely appreciated. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
Re: Session Objects
Hi! Is it really necessary to hold all active session objects in a global variable? I can't imagine a situation that would require this! Tex Jagadeesha T wrote: Thanks for responding. To manage session between an apllication and web servers. Is there any way to get that worked in clustered enviornment? Thanks Jagga Dale, Matt [EMAIL PROTECTED] wrote: Yes it will, this won't work accross a cluster. You need to use the regular session manager. Is there any reason why you put the sessions in a singleton? Ta Matt -Original Message- From: Jagadeesha T [mailto:[EMAIL PROTECTED] Sent: 08 February 2005 17:25 To: tomcat-user@jakarta.apache.org Subject: Session Objects Hi all, I' am storing session objects in a SINGLEON class object to keep all active sessions. Does it give any problems in clustered enviornment since singleton is a static referrence. Regards, Jagga __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com 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 beCogent postmaster at [EMAIL PROTECTED] Unless expressly stated, opinions in this email are those of the individual sender and not beCogent Ltd. You must take full responsibility for virus checking this email and any attachments. Please note that the content of this email or any of its attachments may contain data that falls within the scope of the Data Protection Acts and that you must ensure that any handling or processing of such data by you is fully compliant with the terms and provisions of the Data Protection Act 1984 and 1998. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Do you Yahoo!? All your favorites on one personal page Try My Yahoo! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Session Objects
Have you considered storing your session objects to database? Mario Winterer [EMAIL PROTECTED] wrote:Hi! Is it really necessary to hold all active session objects in a global variable? I can't imagine a situation that would require this! Tex Jagadeesha T wrote: Thanks for responding. To manage session between an apllication and web servers. Is there any way to get that worked in clustered enviornment? Thanks Jagga Dale, Matt wrote: Yes it will, this won't work accross a cluster. You need to use the regular session manager. Is there any reason why you put the sessions in a singleton? Ta Matt -Original Message- From: Jagadeesha T [mailto:[EMAIL PROTECTED] Sent: 08 February 2005 17:25 To: tomcat-user@jakarta.apache.org Subject: Session Objects Hi all, I' am storing session objects in a SINGLEON class object to keep all active sessions. Does it give any problems in clustered enviornment since singleton is a static referrence. Regards, Jagga __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com 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 beCogent postmaster at [EMAIL PROTECTED] Unless expressly stated, opinions in this email are those of the individual sender and not beCogent Ltd. You must take full responsibility for virus checking this email and any attachments. Please note that the content of this email or any of its attachments may contain data that falls within the scope of the Data Protection Acts and that you must ensure that any handling or processing of such data by you is fully compliant with the terms and provisions of the Data Protection Act 1984 and 1998. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Do you Yahoo!? All your favorites on one personal page ? Try My Yahoo! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Do you Yahoo!? Yahoo! Search presents - Jib Jab's 'Second Term'
Re: source for JDBCRealm?
Hi, i´ve downloaded the sources (search for tomcat-4.1.xx-src.zip) and attached it in Eclipse. Though í've got full access to the classes. The interface is JDBCRealm ! Stephen Charles Huey schrieb: I've been looking around the Apache/Jakarta site, and I can't find the Realm-related stuff (I understand it's separate from Tomcat). We're running Tomcat 4, and I'd like to hack the query JDBCRealm sends to Oracle so username checks are not case insensitive. Btw, which JAR in my Tomcat directories is related to JDBCRealm? Thanks... - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Trouble getting CGI script to execute
Brelsfoard, Alex wrote: Luckily this server is dedicated to this one application. And I have everything backed up. Though security is ALWAYS an issue, it's at least less of an issue on this server. If today's attempts do not get this woprking, I am most likely just going to turn off Tomcat's CGI abilities and then install Apache and just limit the heck out of it. Here is the CGI bits from the web.xml config file: snip This looks fine. I am afraid I have run out of ideas. If this was my system I would run up tomcat under a debugger and start stepping through code. It must be a configuration problem but I just can't figure out what. Mark - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Trouble getting CGI script to execute
Thanks I really appreciate your help. --Alex Alex Brelsfoard Web Applications Developer Web Development Office Worcester Polytechnic Institute 508-831-6147 [EMAIL PROTECTED] -Original Message- From: Mark Thomas [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 09, 2005 4:42 PM To: Tomcat Users List Subject: Re: Trouble getting CGI script to execute Brelsfoard, Alex wrote: Luckily this server is dedicated to this one application. And I have everything backed up. Though security is ALWAYS an issue, it's at least less of an issue on this server. If today's attempts do not get this woprking, I am most likely just going to turn off Tomcat's CGI abilities and then install Apache and just limit the heck out of it. Here is the CGI bits from the web.xml config file: snip This looks fine. I am afraid I have run out of ideas. If this was my system I would run up tomcat under a debugger and start stepping through code. It must be a configuration problem but I just can't figure out what. Mark - 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: Trouble getting CGI script to execute
I know I'm coming into this very late. I was hoping Mark was going to nail this on the head for you -- especially since I don't actually use the cgi-servlets piece in my stuff. But I also hate to see a problem like this get stalled. Question 1: This is a basic one, but I've had my share of Homer Simpson moments. Did you restart the server after renaming $CATALINA_HOME/server/lib/servlets-cgi.renametojar to $CATALINA/server/lib/servlets-cgi.jar and uncommenting the relevant parts of $CATALINA_HOME/conf/web.xml? Question 2: What do you have in your web.xml file for servlet mappings? It seems to me some kind of mapping is overriding the mappings in $CATALINA_HOME/conf/web.xml and simply offering the file from WEB-INF/cgi-bin/ rather than executing it. --David Brelsfoard, Alex wrote: Thanks I really appreciate your help. --Alex Alex Brelsfoard Web Applications Developer Web Development Office Worcester Polytechnic Institute 508-831-6147 [EMAIL PROTECTED] -Original Message- From: Mark Thomas [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 09, 2005 4:42 PM To: Tomcat Users List Subject: Re: Trouble getting CGI script to execute Brelsfoard, Alex wrote: Luckily this server is dedicated to this one application. And I have everything backed up. Though security is ALWAYS an issue, it's at least less of an issue on this server. If today's attempts do not get this woprking, I am most likely just going to turn off Tomcat's CGI abilities and then install Apache and just limit the heck out of it. Here is the CGI bits from the web.xml config file: snip This looks fine. I am afraid I have run out of ideas. If this was my system I would run up tomcat under a debugger and start stepping through code. It must be a configuration problem but I just can't figure out what. Mark - 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]
Hardware Server failure with mod_jk
Hi, We are doing research with Apache+mod_jk+Tomcat testing the failover behavior when a hardware server failure occurs. For example, the web server loses power, a network cable becomes unplugged, etc. We have Apache running on a Web tier and Tomcat running on a separate App tier server. If we remove a network cable from the web to app tier, requests that mod_jk routes to the failed app server just hang. We tested the case where we simply kill the Tomcat process, and in this case mod_jk properly senses this and re-routes messages to other app servers in the cluster, so this problem doesn't seem to occur for software failure. I'm using the following versions of the software: Apache 1.3.28 mod_jk 1.2.8 Tomcat 4.1.30 Here a (modified) snippet from our workers.properties file: # worker to talk to tomcat on dmn1 worker.app_dmn1.type=ajp13 worker.app_dmn1.host=dmn1 worker.app_dmn1.port=4020 worker.app_dmn1.lbfactor=2.0 # worker to talk to tomcat on dmn2 worker.app_dmn2.type=ajp13 worker.app_dmn2.host=dmn2 worker.app_dmn2.port=4020 worker.app_dmn2.lbfactor=2.0 ... # worker to load balance between dmn1,dmn2 worker.app_lb.type=lb worker.app_lb.balanced_workers=app_dmn1,app_dmn2 We originally thought that adding the configuration setting worker.app_dmnX.socket_timeout=10 would at least stop the requests from hanging indefinitely, but that didn't seem to help. Does anyone have experience with this, and can recommend configuration settings to use to handle this type of server failure? Thanks. -- Chuck
RE: Trouble getting CGI script to execute
Sorry, hopefully I haven't misguided you. I don't know tomcat at all. I don't really know Jboss either, but eventually I will be learning it too. Warron French Sr. Network Engineer Xtria, LLC -Original Message- From: Brelsfoard, Alex [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 08, 2005 4:00 PM To: Tomcat Users List Subject: RE: Trouble getting CGI script to execute OK, now we're getting somewhere. There was no entry for mime-type for file extension cgi. I added: mime-mapping extensioncgi/extension mime-typeapplication/x-httpd-cgi/mime-type /mime-mapping Which was not there before. Do I have the correct mime-type info there? When I go to my script (via the web) now it asks me to download the file. This mean something to someone? Thanks. --Alex Alex Brelsfoard Web Applications Developer Web Development Office Worcester Polytechnic Institute 508-831-6147 [EMAIL PROTECTED] -Original Message- From: Warron French [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 08, 2005 3:42 PM To: Tomcat Users List Subject: RE: Trouble getting CGI script to execute I use apache to enable cgi scripts, and I had the same problem as you. So, since I don't know Tomcat so well, I can offer you this. Check in your config file to make sure that you have the line(s): AddType application/x-httpd-cgi .cgi .sh .pl AddHandler cgi-script .cgi .sh .pl (I am not actually using this line but maybe you need to) Also, in my httpd.conf file I am using some directives and options such as: Directory /home/nrccwdt/public_html/ Options +Includes +ExecCGI XbitHack On /Directory I am sure you know how the Directory directive works, but make sure that you do have the Options +ExecCGI, and XbitHack On lines also. Good luck, Warron French Sr. Network Engineer Xtria, LLC -Original Message- From: Brelsfoard, Alex [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 08, 2005 3:28 PM To: tomcat-user@jakarta.apache.org Subject: Trouble getting CGI script to execute I have been reading all the online documentation I can dig up and cannot find the solution to my problem. Quite simply, all I want to do is be able to run perl cgi script through my Tomcat server. I uncommented everything having to do with CGI in the Tomcat web.xml conf file, restarted the server and placed my scriptmin the right place. All that happens now is the script is printed up to the screenjust like a txt file. It is executable. I checked the logs and the log says that a 304 code is sent to the browser. ANY help would be much appreciated. Thanks very much. --Alex Alex Brelsfoard Web Applications Developer Web Development Office Worcester Polytechnic Institute 508-831-6147 [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Deploying webapps in embedded environment
hi All, I have a standalone application server that is using the tomcat embedded server as the web component. however, i would like to deploy multiple web applications to that embedded server without having to deploy WAR files. Is there a programatic way of doing this? There are shared jar libraries across the webapps. Does anybody have any code samples on how to do this? thanks -- Patrick - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Running heavily loaded tomcat sites.
I'm interested in reading your paper, but the link you provided requires a userid and password For me it refuses to open under IE6 but FF works perfectly fine - no passwords required. G. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
JNDI / web.xml question
I'm trying to clean up a few files that have JNDI data access. I want to move the datasource name to the web.xml for easier maintenance and to avoid having to hardcode it into the app. If I have a datasource in the context-param area of the web.xml file, how can it be called? context-param param-namejdbcDataSource/param-name param-valuejava:comp/env/jdbc/RestaurantDS/param-value /context-param pageContext. getServletContext().getInitParameter(insert-context-param-name-here); The above doesn't work here... does anyone know how this can be done? Thanks, Jack private void initialize() { try { Context ctx = null; DataSource ds = null; Connection conn = null; Result result = null; try { ctx = new InitialContext(); ds = (DataSource) ctx.lookup(java:comp/env/jdbc/RestaurantDS); } catch (Exception e) { System.out.println(DataSource context lookup failed: + e); } try { conn = ds.getConnection(); } catch (Exception e) { System.out.println(DataSource getConnection failed: + e); e.printStackTrace(); } - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 5.6 / Eclipse / no startup.bat
Sysdeo imposes a rather particular development methodology. Anything you can do with setenv.bat you can do with VM and application arguments in the application launch department of eclipse. -Original Message- From: Vamsee Kanakala [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 08, 2005 11:52 PM To: Tomcat Users List Subject: Re: Tomcat 5.6 / Eclipse / no startup.bat Geoff Wiggs wrote: Trying to integrate Tomcat 5.6 and Eclipse. Without the startup.bat and [...] Anyone have any ideas? Have you tried Sysdeo Tomcat Plugin for Eclipse? Vamsee. - 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: using shared objects from tomcat
Andreas, You need to apply the javap command to your third-party code. Perhaps first, you need to read the Sun JNI book. There are two levels of naming. First, when some Java code calls System.loadLibrary(foo), the JVM will look for libfoo.so in java.library.path. Then, unless the library manually registers native function, the JVM will dlsym for functions based on the fully-packaged-name of the classes containing the native functions. The test application's package doesn't matter. The classes with native methods matter. -Original Message- From: Andreas Andersson [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 09, 2005 3:49 AM To: Tomcat Users List Subject: Re: using shared objects from tomcat Benson Margulies wrote: -- Tomcat can't 'ignore' LD_ environment variables. They control how ld.so loads the JVM into the process address space and links it. You put env settings in bin/setenv.sh. You will need such a setting for LD_LIBRARY_PATH, at least. Thanks! The LD_DEBUG environment variable told me tomcat was looking for the wrong .so-file. Apperently it's looking for the file including the package structure Java_com_mycompany_myClass_myLib instead of myLib. The test applications has no package (except the default package) and tomcat on windows seams to ignore them. So, I'm off to relink the .so with a packagestructure (thats my next problem :). Thanks for the help! -- Andreas Andersson IT Dept. Travelstart Nordic [EMAIL PROTECTED] http://www.travelstart.se - 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: Support Information Regarding - CD-Key Issues
Some lunatic has added a blizzard support alias to the list. This happens constantly. I don't know if some IIS-head out there does it to annoy the tomcat community. I used to think that it was an email address harvesting trick, but I haven't been able to figure out how. The result is that every blessed posting solicits one of these replies. They are more amusing when the list in question replies in dutch. -Original Message- From: Didier McGillis [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 09, 2005 1:16 PM To: tomcat-user@jakarta.apache.org Subject: RE: Support Information Regarding - CD-Key Issues who? what? and where? From: [EMAIL PROTECTED] Reply-To: Tomcat Users List tomcat-user@jakarta.apache.org To: tomcat-user@jakarta.apache.org Subject: Support Information Regarding - CD-Key Issues Date: Wed, 9 Feb 2005 09:56:00 -0800 Thank you for emailing Blizzard Entertainments Technical Support Department. In order to provide you with greater assistance, we have developed an automated reply system which evaluates your message and generates a detailed response towards it. Please read through this message as our automated reply system has helped many of our customers. If the response given below does not assist you or it is not relevant towards your message, please reply back to this email and a live technician will respond to you as soon as possible. == Support Information Regarding - CD-Key Issues: == For information regarding your CD-Key, please check out our web site on CD-Key issues: Diablo II - (http://www.blizzard.com/support/?id=mdt000p) Warcraft II Battle.net Edition - (http://www.blizzard.com/support/?id=mwb000p) StarCraft - (http://www.blizzard.com/support/?id=msc000p) Warcraft III - (http://www.blizzard.com/support/?id=mwr000p) Blizzard employees will not ask for your CD-Key unless you are contacting us about problems specific to your CD-Key (Blizzard employees on Battle.net have a Blizzard logo or a blue cape and plate mail, depending on the game title). If you are inquiring about your World of Warcraft Authentication Key, please go to our Billing Support site at (http://www.blizzard.com/support/wowBilling/?id=mbl000p#43). Again, if the response given above has not assisted you or it was not relevant towards your message, please reply back to this email and a live technician will respond to you as soon as possible. Best Regards, Blizzard Support Team http://www.blizzard.com/support Blizzard Entertainment If you respond to this email, please attach all previous messages and files relating to this issue. -Original Message- From: tomcat-user@jakarta.apache.org Sent: 2/9/2005 9:50:39 AM To: tomcat-user@jakarta.apache.org Subject: Tomcat 5.0.28 build from source Hi, first of all I would like to tell you that I'm now the maintainer for Tomcat inside of Gentoo Linux (www.gentoo.org). We already have Tomcat integrated into the portage tree (i.e. we already have a Gentoo Linux specific Tomcat package) but the old one is pretty unmaintained. Nobody has integrated new features and nobody has bumped the version for quite a long time. Therefor, I'm now going to restructure the Tomcat package for Gentoo Linux. Gentoo is a source based distribution and we'er trying to build as much from source as possible, even Java based programs. Why we do that?: http://gentoo-wiki.com/Why_Build_Java_Code_From_Source Since we're a Linux distribution , or generally speaking an operating system, we have to avoid that a user has to keep multiple copies of an archive or an library on his system. If there are problems with a specific library (in the Java case with an jar archive) which can also be security related it can take a long time until all copies would get updated. As you now may see, in the case of Tomcat we really have to avoid that a user has to checkout and download the dependend libraries out of the internet before he builds and installs tomcat itself. We've got all dependencies in our portage tree which are required and yes, I know it's possible to specify the path to all required jars via an build.properties file for example. I've done that and everything works fine but I've it comes to the ant target build-webapps-precompile the build process bails out: build-webapps-precompile: [mkdir] Created dir: /var/tmp/portage/tomcat-5.0.28/work/jakarta-tomcat-5.0.28-src/jakarta-t omcat-5/build/server/webapps/admin/WEB-INF/src/admin [mkdir] Created dir: /var/tmp/portage/tomcat-5.0.28/work/jakarta-tomcat-5.0.28-src/jakarta-t omcat-5/build/webapps/ROOT/WEB-INF/src [mkdir] Created dir: /var/tmp/portage/tomcat-5.0.28/work/jakarta-tomcat-5.0.28-src/jakarta-t omcat-5/build/webapps/ROOT/WEB-INF/classes [mkdir] Created dir: /var/tmp/portage/tomcat-5.0.28/work/jakarta-tomcat-5.0.28-src/jakarta-t omcat-5/build/webapps/jsp-examples/WEB-INF/src
Re: WELCOME to tomcat-user@jakarta.apache.org
Fedora Core 3 using Gnome Installed Tomcat 5.5.4, created tomcatd script to start tomcat in /etc/rc.d/init.d, chmod +755 tomcatd chkconfig --add tomcatd 5 on On startup it says it's starting tomcatd, yet tomcat is not run. if I manually run script with start argument it starts fine. I've tried searching google, and everyone says put the script in init.d and chmod it, which I've already done. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Security Newbie - Need Help
Hi; I am trying to install a security realm for my application. I am expecting a browser login window. But instead I get: HTTP Status 403 - Configuration error: Cannot perform access control without an authenticated principal type Status report message Configuration error: Cannot perform access control without an authenticated principal description Access to the specified resource (Configuration error: Cannot perform access control without an authenticated principal) has been forbidden. Apache Tomcat/5.0.28 Why I am not getting the login window? Here is the web.xml in project root/WEB-INF security-constraint web-resource-collection web-resource-namefw/web-resource-name url-pattern*.do/url-pattern http-methodPOST/http-method /web-resource-collection auth-constraint role-nameadmin/role-name /auth-constraint login-config auth-methodBASIC/auth-method /login-config /security-constraint Realm className=org.apache.catalina.realm.JDBCRealm debug=99 driverName=org.gjt.mm.mysql.Driver connectionURL=jdbc:mysql://localhost/applicationusers?user=useramp;passwor d=password userTable=applicationusers userNameCol=user_name userCredCol=user_pass userRoleTable=user_roles roleNameCol=role_name / The table structure was created using the following sql: create table users ( user_name varchar(15) not null primary key, user_pass varchar(15) not null ); create table user_roles ( user_name varchar(15) not null, role_name varchar(15) not null, primary key (user_name, role_name) ); How can I trouble shoot this? The log doesn't show anything. Any tips would be great. Thanks, Luke - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: TC 5.5.4 wiil not start from script
Who are you running as when you manually start it? Are you on the default ports or did you change them? When you mail the list always start with a new message unless replying to a post on the list. Doug - Original Message - From: Charles Patterson [EMAIL PROTECTED] To: tomcat-user@jakarta.apache.org Sent: Wednesday, February 09, 2005 10:20 PM Subject: Re: WELCOME to tomcat-user@jakarta.apache.org Fedora Core 3 using Gnome Installed Tomcat 5.5.4, created tomcatd script to start tomcat in /etc/rc.d/init.d, chmod +755 tomcatd chkconfig --add tomcatd 5 on On startup it says it's starting tomcatd, yet tomcat is not run. if I manually run script with start argument it starts fine. I've tried searching google, and everyone says put the script in init.d and chmod it, which I've already done. - 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: launching Tomcat 5.0.3 from Eclipse 3.0.1
hicham wrote: now I need to start tomcat from eclipse ( logged as a user ) http://www.sysdeo.com/eclipse/tomcatPlugin.html Vamsee. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Content-Type removed from the Http Response when file is accessed through Tomcat Connector
Bedrijven.nl wrote: maybe security (settings) of ie?? The poster clearly indicated that the thing works on Tomcat direct port. Could be that JK is stripping that header. Maybe it expects web server to provide it's own? You could try to setup MIME type on the Apache itself and see if it fixes the problem. I do realise that this is highly impractical, in a general case scenario. JK shouldn't strip that header. The question is, is it being setup by Tomcat in the first place? I mean, is Coyote JK actually removing or not creating the header in question? Nix. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Shutdown not working under SLES8 and FC2
OK, guys, hate to bring this up again, but I found the cause for my tomcat not shutting down. After upgrading to 5.5.4 I did not move all virtual domains to the new container, while the server.xml still had all the entries for the virtual domains I had in the previous setup. Tomcat was not able to shut down because it was not able to find the virtual domain directories and respective web.xml files. Drew. On Wed, 2005-02-02 at 12:47, Drew Jorgenson wrote: Mine won't shutdown either, I have to killall -9 java. The server this is happening to is running RH 3AS with jdk1.5 and Tomcat 5.5.4 Drew. On Wed, 2005-02-02 at 12:05, Al Sutton wrote: Has anyone else had problems with the shutdown script not shutting down Tomcat on Fedora Core 2 and/or SuSE Linux Enterprise Server 8 using Suns JDK 1.4.2? I've tried reporting it to the dev list as a bug all, but I got was the bug closed when someone couldn't get the same thing under Cygwin?!?!?!?! Al. - 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: Hardware Server failure with mod_jk
Betts, Chuck wrote: Hi, We originally thought that adding the configuration setting worker.app_dmnX.socket_timeout=10 would at least stop the requests from hanging indefinitely, but that didn't seem to help. Does anyone have experience with this, and can recommend configuration settings to use to handle this type of server failure? Thanks. Well, the socket_timeout should work. You can use Advanced worker properties. See: http://jakarta.apache.org/tomcat/connectors-doc/config/workers.html for setting cping/cpong. Regards, Mladen. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
launching Tomcat 5.0.30 from Eclipse 3.0.1
Hello I've managed to install lomboz plugin on eclipse 3.0.1, and tomcat 5.0.30 under Fedora core 3 now I need to start tomcat from eclipse ( logged as a user ) I get the following exception when startin it: Bootstrap: Class loader creation threw exception java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory at org.apache.tomcat.util.compat.JdkCompat.clinit(JdkCompat.java:55) at org.apache.catalina.startup.ClassLoaderFactory.clinit(ClassLoaderFactory.java:63) at org.apache.catalina.startup.Bootstrap.initClassLoaders(Bootstrap.java:103) at org.apache.catalina.startup.Bootstrap.init(Bootstrap.java:196) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:402) thanks a lot for your help hicham. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]