Re: another apache/tomcat/mod_jk/virtual hosting question/issue
Good Morning- the applicable snippet from jk_ajp_common.c authored by Gal Shachor [EMAIL PROTECTED] jk_log(l, JK_LOG_ERROR, Can't receive the response message from tomcat, network problems or tomcat is down (%s), err=%d, jk_dump_hinfo(ae-worker-worker_inet_addr, buf), rc); Were you able to verify port 4540 is open and clear of firewalls and or natted proxies? netstat -a | grep 4540 //you should see TC is *listening* on 8080 The default port assignment for non-SSL HTTP/1.1 from %TOMCAT_HOME%/conf/server.xml is 8080 as illustrated in this example !-- Define a non-SSL HTTP/1.1 Connector on port 8080 -- Connector port=8080 These configurations can be difficult to diagnose..please feel free to ping the group for any questions HTH Martin- - Original Message - Wrom: HMKHJYFMYXOEAIJJPHSCRTNHGSWZIDREXCAXZOWCONEUQZA To: Tomcat Users List users@tomcat.apache.org Cc: Tomcat Users List users@tomcat.apache.org Sent: Wednesday, March 26, 2008 8:45 AM Subject: Re: another apache/tomcat/mod_jk/virtual hosting question/issue Thanks for your advice David. I will abandon this forum and try to figure it out myself. Tomcat Users List users@tomcat.apache.org on Wednesday, March 26, 2008 at 7:46 AM -0500 wrote: Bad Gateway wouldn't be generated by tomcat unless your tomcat code was somehow getting content from another site. Given your most recent log snippets have apparently been from an httpd error log file instead of tomcat's logs (like catalina.out), I'm going to guess your mod_jk setup in httpd isn't working. JSP compile errors don't show up in the httpd error log and mod_jk errors don't show up in catalina.out under any normal setup. As Chuck points out, there isn't just one problem here, there's several. Start by making sure your tomcat is working first. You can do that by making sure a standard http connector is setup to let's say port 8080 and then hitting http://ww3.nisonline.org:8080/test.jsp. When that works, fix your mod_jk setup. --David Tommy Peterson wrote: When the unable to compile class for JSP error showed up (it isn't anymore) it would mention the jsp file that I was calling. I intentionally called several different jsp files to see if it was the coding, althougth this application works now, and has for years, on a different server just fine (I need to move it)--so it isn't a code issue. The error points to a line in that file. I have looked to see if the class is there--it is. Anyway, this says to me that Java is somehow not being used or installed correclty--things can't compile. I verified that Java was installed correctly. Anyway, what happens now is that the page just sits there and then after a few seconds I get a Bad Gateway page. A 502 error. Try it: ww4.nislonline.org or use the other one that I am now pointing to the standard jsp examples to test whether Tomcat shows up: ww3.nislonline.org You'll see the HTML page but try to submit the post: same issue as it is posting to a jsp page. I don't understand why this has to be this difficult. I have followed the documentation. And it seems I just keep running into new brick walls. Thanks. Tomcat Users List users@tomcat.apache.org on Tuesday, March 25, 2008 at 3:55 PM -0500 wrote: In that case, there should have been some text after 'org.apache.jasper.JasperException: Unable to compile class for JSP: ' citing the line number and problem with the jsp. Is it really just blank where compile error message should be? Can you try to restart tomcat and see if that clears the issue? --David Tommy Peterson wrote: I went all the way to the top of the error log for the first error; there were two, one after the other: [error] jk_ajp_common.c (1004): (ajp13) can't receive the response message from tomcat, tomcat (127.0.0.1:8009) has forced a connection close for socket 4540 [Tue Mar 25 15:02:44.320 2008] [5796:5300] [error] jk_ajp_common.c (1766): (ajp13) Tomcat is down or refused connection. No response has been sent to the client (yet) Tomcat Users List users@tomcat.apache.org on Tuesday, March 25, 2008 at 2:26 PM -0500 wrote: From experience, this error is usually the result of an earlier error. Look further up your logs to the first error that occurs after you request this page. Fix that and this one should go away. --David Tommy Peterson wrote: this is the problem with every jsp page I try to hit. does this mean java can't compile the java beans? I don't get this. I did a search and lot of a ppl seem to have issue but no solutions. type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception org.apache.jasper.JasperException: Unable to compile class for JSP:
Re: Apache TomCat 6.x
Joseph- Good advice .. the version of msvcrt.dll in JAVA 5 located at %JAVA_HOME%\jre\bin\msvcrt.dll is 6.00.8337.0 Using any other dll in JAVA or in the %PATH% would in all probability cause incongruent behaviour for the java binaries Martin US Citizen-Contractor - Original Message - Wrom: VIBGDADRZFSQHYUCDDJBLVLMHAA To: Tomcat Users List users@tomcat.apache.org Sent: Friday, March 21, 2008 9:25 AM Subject: RE: Apache TomCat 6.x I will try this. Thank you. Hey at least I didn't title it TomKat. Thank You, Joseph Herold Voice: 202-267-3768 Fax: 202-267-5532 E-Mail: [EMAIL PROTECTED] NOTICE: This communication may contain privileged or other confidential information. If you are not the intended recipient or believe you may have received this communication in error, please reply to the sender indicating that fact and delete the copy you received. In addition, you should not print, copy, retransmit, disseminate, or otherwise use the information. Caldarale, Charles R Chuck.Caldarale@ To unisys.com Tomcat Users List users@tomcat.apache.org 03/21/2008 10:17 cc AM Subject RE: Apache TomCat 6.x Please respond to Tomcat Users List [EMAIL PROTECTED] che.org Wrom: LPTCXLYRWTQTIPWIGYOKSTTZRCLBDXRQBGJSNBOHMKHJYFMYXOEAIJJPHSCR Subject: Apache TomCat 6.x Because of a security issue with Apache TomCat 4.x, our office was required to upgrade to version 6.x. It's Tomcat, not TomCat. [2008-03-21 09:42:20] [174 javajni.c] [error] The specified module could not be found. A little Googling or search of the mailing list archives will get you here: http://issues.apache.org/bugzilla/show_bug.cgi?id=41538 The gist is that msvcr71.dll can't be found; to quote from Mark T: The short-term fix is to copy msvcr71.dll from %JAVA_HOME%\bin to %SYSTEM_ROOT%\system32 or any other location on the path. - 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 start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: STM
do you mean maxThreads=150 on the connector in server.xml? could you clarify maxInstances parameter Regards Martin- - Original Message - Wrom: GMEPYOQKEDOTWFAOBUZXUWLSZLKBRNVWWCUFPEGAUTFJMVRE To: users@tomcat.apache.org Sent: Wednesday, March 12, 2008 7:43 AM Subject: STM Is there anyway to increase the 'maxInstances' value in the StandardWrapper from the current limit of 20? I have a short term issue with a STM servlet and need more than 20 instances. Regards Dave Steinberg Hello Currency +44 (0)7810 752 708 www.hellocurrency.com - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Eclipse with tomcat and mysql
Kevin-- what version is your MySQL driver? ? Martin - Original Message - Wrom: UFPEGAUTFJMVRESKPNKMBIPBARHDMN To: Tomcat Users List users@tomcat.apache.org Sent: Monday, March 10, 2008 1:43 PM Subject: Re: Eclipse with tomcat and mysql Yes the driver is in my project libraries. Thanks, Kevin - Original Message - Do you have the driver for MySQL added to your project libraries? -Steve O. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Why is this java.lang.IllegalStateException occuring, and what can be done about it?
what happens when you start TC and pass in the disable clear references parameter-Dorg.apache.catalina.loader.WebappClassLoader.ENABLE_CLEAR_REFEREN CES=false?M-- Original Message - Wrom: IYZUNNYCGPKYLEJGDGVCJVTLBXFGGMEP To: Tomcat Users List users@tomcat.apache.org Sent: Friday, March 07, 2008 3:33 PM Subject: Re: Why is this java.lang.IllegalStateException occuring, and what can be done about it? TedByers wrote: I routinely find this exception occuring with Tomcat 6, with virtually every web app I develop. Since I tend to be paranoid about errors, I want to know more even though Tomcat's output says this exception has no functional impact. As far as I can see, none of the code I developed is involved in this. Does that mean Tomcat 6 is broken? What debugging purpose could this have? What can be done to prevent it? Might be a similar cause to https://issues.apache.org/bugzilla/show_bug.cgi?id=42950 If the cause is the same, then the same fix should work. If it doesn't create a new bug report and upload the smallest war (inc source) that demonstrates the issue. Mark - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: viewing servlets on Tomcat
Good Morning Richard dont blame the piano player on this as Windows uses the 8.3 folder names to verify cd \ dir /X /AD #note you will see PROGRA~1 assigned to C:\Program Files folder cd PROGRA~1 dir /X /AD #note you will see APACHE~1 assigned to Apache Software Foundation folder cd APACHE~1 dir /X /AD #note you will see TOMCAT~1.6 assigned to TOMCAT 6.0.16 folder so your environment variable should contain the shortened 8.3 folder names e.g. SET CATALINA_HOME=C:\PROGRA~1\APACHE~1\TOMCAT~1.6 HTH Martin - Original Message - Wrom: YZUNNYCGPKYLEJGDGVCJVTLBXFGGMEPYOQKEDOTWFAOB To: Tomcat Users List users@tomcat.apache.org Sent: Thursday, March 06, 2008 10:00 AM Subject: Re: viewing servlets on Tomcat I changed my Tomcat directory from c:\Program Files\Apache Software Foundation\Tomcat 6\ to c:\Tomcat\apache-tomcat-6.0.16 I noticed that when I set the CATALINA_HOME evironment variable, through the Control Panel, it was not taking affect. When I checked it in DOS with set CATALINA_HOME, it was not the same as the environment setting. Anyway, after setting it manually in DOS, startup.bat ran successfully. Thanks Chuck for your help. Richard. - Original Message Wrom: UZXUWLSZLKBRNVWWCUFPEGAUTFJMVRESKPNKMBIPBARHDMNNSKV To: Tomcat Users List users@tomcat.apache.org Sent: Thursday, March 6, 2008 2:32:27 PM Subject: RE: viewing servlets on Tomcat Wrom: FVWRKJVZCMHVIBGDADRZFSQHYUCDDJBLVLMHAALPTCXLYRWTQ Subject: Re: viewing servlets on Tomcat CATALINA_HOME is causing me grief again. CATALINA_HOME=c:\Program Files\Apache Software Foundation\Tomcat 6.0\apache-tomcat-6.0.16\bin Saying causing me grief or catalina.bat is moaning is not really providing useful information. If there's an error message being displayed, tell people what it is, don't try to be cute about it. You normally do not set CATALINA_HOME; the startup.bat script does that for you. Just make sure your current directory is Tomcat's bin directory when you kick off startup.bat. - 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 start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Session expiration and AJAX issues
Jason- the url patterns depends on the servlet mapping you've defined.. You're going to need some algorithm which defines infinity Your current mechanism binds the current Servlet to the ajax control (div?) Acquire the initial date/time ..store it somewhere..hopeully in session when the servlet finally reaches delta greater than *some predefined infinite value* send back result which will cause either the innerhtml to have the requisite logout.jsp or path to logout.jsp return some predefined ActionResult which will *map* to your logout.jsp M- - Original Message - Wrom: FVWRKJVZCMHVIBGDADRZFSQHYUCDDJBLV To: 'Tomcat Users List' users@tomcat.apache.org Sent: Monday, February 25, 2008 2:29 PM Subject: RE: Session expiration and AJAX issues -Original Message- Wrom: LMHAALPTCXLYRWTQTIPWIGYOKSTTZRCLBDXRQBGJSNBOHM Sent: Monday, February 25, 2008 13:11 To: Tomcat Users List Subject: Re: Session expiration and AJAX issues Martin- We are using Struts, however, version 1.2.9. But, after looking at the link, I'm not sure this will help as it doesn't really address the problem. Storing the date/time a user logs in on the session is probably useful, but our problem is that we want to forcefully log the user out if there's no human present at the computer and the AJAX tasks keep a user's session active indefinitely, whether or not they mean it to. Can url patterns be excluded from session prolonging magic? Additionally, assuming we didn't have the AJAX tasks, we'd have to check the logged in time from the session on every request and that's just not realistic when you have hundreds of Struts actions, even with a unique parent Action class. That said, I'm beginning to suspect that this may be the only way to go, i.e., have base Action for Struts actions and base action for AJAX actions. My only issue with this is that then the onus is on the developer to use the right Action and if they don't, a session could inadvertently be left open which is a security risk. Alternatively, we could simply force the logout on the user after 12 hours period...which would kind of suck for the user if they were in the middle of something and so I can almost guarantee that our product management team wouldn't go for it since it's not really creating a positive user experience. --adam Martin Gainty wrote: Hi Adam- You can try this with Struts.. http://struts.apache.org/2.x/docs/simplelogin-with-session.html insert the starting-date-time intio Session variable and then in the logoutAction.execute method do some quick math on the time-delta to determine if you want to quiesce the session HTH M- - Original Message - Wrom: KHJYFMYXOEAIJJPHSCRTNHGSWZIDREXCAXZOWCONE To: Tomcat Users List users@tomcat.apache.org Sent: Monday, February 25, 2008 11:04 AM Subject: Session expiration and AJAX issues A couple of issues: We've set our session expiration to 12 hours (I know it's long) and we're seeing behavior where certain browsers (namely IE) apparently can't count that high (we set the meta Refresh header but the page doesn't reload after the allotted time, session expiration time + 20 minutes). Since this issue was discovered, we've added background AJAX timers on some of our web pages that refresh (authenticated) content. While this happily works, unfortunately, if the user chooses to remain on one of these pages, and then goes on vacation, the session stays active because the AJAX calls keep the session alive. Our first attempt at a solution was to have a JavaScript counter that, after every 20 minutes, incremented a counter and if that counter ever got to 37, we knew that the user hadn't changed web pages and we could log them out (window.location = logout URL. The problem is that this doesn't appear to work either and additionally, it relies on JavaScript bypassing Tomcat's built-in features. User's cannot log in w/o having JavaScript enabled, so it's not a matter of a user potentially disabling it, rather it puts the onus on the browser to inform the server that the user's session needs to be expired. Does anyone have experience in this area and if so, how have you solved this problem? I know Google uses AJAX with their Gmail webapp, but they don't seem to care about not expiring the user's session. Any help would be appreciated. Thanks, --adam - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To
Re: Java -Tomcat- compatability on linux and windows
Hi Raghu Only with platform specific binaries..(most of which are located in $JRE_HOME/bin) Is there something specific you wanted to look at? M- - Original Message - Wrom: ONEUQZAAFXISHJEXXIMQZUIVOTQNQEMSFDULHPQ To: 'Tomcat Users List' users@tomcat.apache.org Sent: Thursday, February 21, 2008 10:06 AM Subject: Java -Tomcat- compatability on linux and windows Is there any difference in compatibility of Java-Tomcat Versions with Windows system and Linux? Tomcat 5.5.25 and j2sdk1.4.2_07 are working on windows. We get some problems with same versions on RedHat Enterprise Linux 4. RedHat Enterprise Linux 4 Apache - tomcat 5.5.25 Java version probably 1.4.2. Please advice? - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat ISAPI Redirector for IIS
agreed... if by *Strange* you mean *you dont understand* then I would advise you to take a look at Mladen Turks paper on fronting Tomcat with IIS http://people.apache.org/~mturk/docs/article/ftwai.html I would specifically note the built-in restrictions of Windows Workstation products to managing =10 connections without Windows Network LoadBalancer Also the complexity of the system goes up as you have 4 systems to configure to work together.. Windows Network Load Balancer 1..n IIS servers mod_jk connectors to TC 1..n*2 Tomcat nodes HTH/ M- - Original Message - Wrom: VWWCUFPEGAUTFJMVRESKPNKMBIPBARHDMNNSKVFVWRKJVZCMHVI To: 'Tomcat Users List' users@tomcat.apache.org Sent: Monday, February 18, 2008 3:28 PM Subject: RE: Tomcat ISAPI Redirector for IIS It looks like you've got more than one thing going on. The debug log refers to a worker named 'ajp13', which is the default name, and not the one you've got configured in your uriworkermap.properties/worker.properties - This usually points to your filter config and the ISAPI extension DLL (the one that's sitting in the virtual directory you created) not being the same file. - Sometimes this is just IIS being strange - a complete net stop iisadmin; net start w3svc sometimes sorts it The debug log also indicates it can't connect to the back end Tomcat instance, but there's not enough info to tell exactly what's going on. Change your log level to debug (in isapi_redirect.properties or the registry if you're using that), do a complete IIS restart and make a single request - post the resulting log and we can have a look at what's going on. cheers tim -Original Message- Wrom: BGDADRZFSQHYUCDDJBLVLMHAALPTCXLYRW Sent: Tuesday, 19 February 2008 9:14 a.m. To: users@tomcat.apache.org Subject: Tomcat ISAPI Redirector for IIS No matter what I try where I go I just keep hitting a wall with this ISAPI redirector for IIS/Tomcat. I have been trying to get this to work since 9:00 AM est, and I am losing steam. I tried supplying any useful information for trouble shooting below Error: HTTP Status 404 - /jakarta/isapi_redirect.dll type Status report message /jakarta/isapi_redirect.dll description The requested resource (/jakarta/isapi_redirect.dll) is not available. Apache Tomcat/5.0.16 uriworkermap.properties File: # uriworker.properties - # # This file provides sample mappings for example # ajp13w worker defined in workermap.properties.minimal /jsp-examples/*=ajp13w /servlet-examples/*=ajp13w # Now filter out all .jpeg files inside that context # For no mapping the url has to start with exclamation (!) #!/servlet-examples/*.jpeg=ajp13w Workers.Properties.Minimal: # workers.properties.minimal - # This file provides minimal jk configuration properties needed to # connect to Tomcat. # The workers that jk should create and work with # Defining a worker named ajp13w and of type ajp13 # Note that the name and the type do not have to match. #worker.list=ajp13w worker.ajp13w.type=ajp13 worker.ajp13w.host=localhost worker.ajp13w.port=8009 Jakarta Isapi Redirector Install path: C:\Program Files\Apache Software Foundation\Jakarta Isapi Redirector\conf Tomcat Install Path: C:\Program Files\Apache Software Foundation\Tomcat 5.0 IIS V6.0 Settings The jakarta Web Service Extension is Installed, and Allowed. The ISAPI Filter for jakarta in installed, and its Status is Online Priority High Host: Windows Server 2003 SP2 ISAPI-Redirector Log output: [Mon Feb 18 13:11:38 2008] [error] HttpExtensionProc::jk_isapi_plugin.c (944): could not get a worker for name ajp13 [Mon Feb 18 13:11:39 2008] [error] HttpExtensionProc::jk_isapi_plugin.c (944): could not get a worker for name ajp13 [Mon Feb 18 13:21:47 2008] [error] ajp_connection_tcp_send_message::jk_ajp_common.c (902): sendfull returned -3 with errno=54 [Mon Feb 18 13:21:47 2008] [error] ajp_send_request::jk_ajp_common.c (1158): Error sending request try another pooled connection [Mon Feb 18 13:21:48 2008] [info] jk_open_socket::jk_connect.c (183): connect() failed errno = 61 [Mon Feb 18 13:21:48 2008] [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 18 13:21:48 2008] [info] ajp_send_request::jk_ajp_common.c (1186): Error connecting to the Tomcat process. [Mon Feb 18 13:21:48 2008] [info] ajp_service::jk_ajp_common.c (1665): Sending request to tomcat failed, recoverable operation attempt=0 [Mon Feb 18 13:21:48 2008] [info] ajp_done::jk_ajp_common.c (1947): could not find empty cache slot from 1 for worker ajp13. Rise worker cachesize [Mon Feb 18 13:43:40 2008] [error] ajp_connection_tcp_send_message::jk_ajp_common.c (902): sendfull returned -3 with errno=54 [Mon Feb 18 13:43:40 2008] [error] ajp_send_request::jk_ajp_common.c (1158): Error sending request try another
Re: Status 404 in tomcat
is your manager's version of index.jsp located at $TOMCAT_HOME\server\webapps\manager ? M- - Original Message - Wrom: KPNKMBIPBARHDMNNSKVFVWRKJVZCMH To: users@tomcat.apache.org Sent: Saturday, February 02, 2008 12:54 AM Subject: Fwd: Status 404 in tomcat Hello, I have installed tomcat in my WHM (WHM - cPanel - Manage plugins - click on Addon Modules tomcat ). The tomcat work.. When I tried the nmap 209.62.89.18 command line, the output is: …… 80/tcp open http 8009/tcp open ajp13 8080/tcp open http-proxy …… And it can run jsp pages with http://uskongjian.gmakj.com:8080 However, I installed servlets to my virtualhost (WHM - Account Functions - Install Servlets). After that, the virtualhost configure in /etc/httpd/conf/httpd.conf is LoadModule jk_module libexec/mod_jk.so VirtualHost 209.62.89.18:80 ServerName gmakj.lw173.net ServerAlias www.gmakj.lw173.net ServerAdmin [EMAIL PROTECTED] DocumentRoot /home/gmakjlw/public_html IfModule mod_suphp.c suPHP_UserGroup gmakjlw gmakjlw /IfModule IfModule !mod_disable_suexec.c User gmakjlw Group gmakjlw /IfModule BytesLog /usr/local/apache/domlogs/gmakj.lw173.net-bytes_log CustomLog /usr/local/apache/domlogs/gmakj.lw173.net combined ScriptAlias /cgi-bin/ /home/gmakjlw/public_html/cgi-bin/ IfModule mod_jk.c JkMount /*.jsp ajp13 JkMount /servlet/* ajp13 JkMount /servlets/* ajp13 /IfModule /VirtualHost And then, I add the following lines in /usr/local/jakarta/tomcat/conf/server.xml Host name=gmakj.lw173.net appBase=/home/gmakjlw/public_html Context path= reloadable=true docBase=/home/gmakjlw/public_html debug=1/ Context path=/manager debug=0 privileged=true docBase=/usr/local/jakarta/tomcat/server/webapps/manager Valve className=org.apache.catalina.valves.RemoteAddrValve /Context /Host However, when I opened the URL http://gmakj.lw173.net, the browser is ending up with the following error: type Status report message /index.jsp description The requested resource (/index.jsp) is not available. I tried to uncomment the following lines in /usr/local/Jakarta/tomcat/conf/web.xml to turn on the invoker servlet: servlet servlet-nameinvoker/servlet-name servlet-class org.apache.catalina.servlets.InvokerServlet /servlet-class init-param param-namedebug/param-name param-value0/param-value /init-param load-on-startup2/load-on-startup /servlet servlet-mapping servlet-nameinvoker/servlet-name url-pattern/servlet/*/url-pattern servlet-mapping After that, I restarted the tomcat and retried to open the same URL . However, I got the same error. Can someone to tell me why this situation appear, please? Thanks and Regards Charles - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat Performance Question
Good Point suggest taking a look at implementing Tomcat Clustering to accomodate greater loads http://wiki.apache.org/tomcat/FAQ/Clustering M- - Original Message - Wrom: VRESKPNKMBIPBARHDMNNSKVFVWRKJVZCMHVIB To: Tomcat Users List users@tomcat.apache.org Sent: Saturday, January 26, 2008 2:18 PM Subject: Re: Tomcat Performance Question Ali Ok wrote: Thanks David, I mean, if I make 3 requests in a very short time (about 10 seconds); Tomcat does not respond. I read books, tutorials, faqs and threads at maling list about Tomcat tuning. But I couldnt find an example server.xml file used in production or real test results. So I cant understand if 3 requests in 10 seconds is normal or not. 3000 requests per second is something on the order of what microsoft gets on its entire set of websites (microsoft.com, hotmail, live, etc, all combined), and they have a big server farm running it. That's a lot of requests, and you need to provision your hardware and bandwidth accordingly. D - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat memory leak?
Good Morning Ofer I dont see attachement of /LoadTest/something.jsp Martin- - Original Message - Wrom: FPEGAUTFJMVRESK To: users@tomcat.apache.org Sent: Thursday, January 24, 2008 9:51 AM Subject: Tomcat memory leak? Hi, I know it's weird, but I'm doing the simplest thing and can't believe there such a leak that I'm the first one to notice. I bet it's my bad, please someone explain, what I'm doing wrong... I created the simplest JSP and when I load test it - tomcat (6.0.14, jre1.6.0_03) goes to 99.9% memory use in a few minutes (If I raise the max heap size it takes longer, but it happens several minutes afterwards), and when I stop bombarding it, it doesn't return to the usual percentage. When I try the same with an HTML instead of a JSP, that returns exactly the same - it stays on 12%-20%, cleans with the garbage collector, and returns to the usual percentage (about 12%). I tried profiling with several plugins and external programs, but I really can't understand what's going on. They tell me that most of the allocated bytes are char[], but I'm not sure who's the allocator and if there's anything I can do about it... Attached are: 1. a test in python that bombards the tomcat, 2. a war with both something.jsp and something.html (they are both the same, but when I bombard something.html everything is ok, and when I do the same for something.jsp - the problem occurs) Can anyone tell me what I'm doing wrong? does it happen to you too? Thanks, Ofer. -- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: web.xml problems outside tomcat webapp folder
yes..can you also display you configuration for default Virtual Host appBase attribute? In other words %TOMCAT_HOME%\conf\server.xml you should see appBase that looks like Host name=YourServerGoesHere appBase=webapps M-- - Original Message - Wrom: LMHAALPTCXLYRWTQTIPWIGYOKSTTZRCLBDXRQBGJSNBOHMK To: Tomcat Users List users@tomcat.apache.org Sent: Sunday, January 20, 2008 6:19 PM Subject: Re: web.xml problems outside tomcat webapp folder On Jan 20, 2008 1:41 PM, Frank Habermann [EMAIL PROTECTED] wrote: i am using tomcat 6.0.14 on windows and create projects with eclipse. For my own projects i do not use the webapps folder from the original package of tomcat. I use a different location. But with this solution i have some problems. Tomcat is not using all values from the web.xml. Do you have any initialization errors in your logs? If not, can you create a reproducible test case (war)? -- Hassan Schroeder [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JSF and SSI
You will get a faster and more accurate response if you display contents of your jsp(f)/jsf/faces page regards/ Martin - Original Message - Wrom: CAXZOWCONEUQZAAFXISHJEXXIMQZUIVOTQNQEMSF To: Tomcat Users List users@tomcat.apache.org Sent: Friday, December 28, 2007 7:41 AM Subject: Re: JSF and SSI Thank you for your response. I thought it was the jsf view tag that was generating the HTML/HEAD/SCRIPT tags, but after your note, I realized it was an ajax4jsf tag that was forcing the generation of the HTML/HEAD/SCRIPT tags. Thank you again. Take care. Shannon david delbecq wrote: Shannon Scott a écrit : Hello, We have been trying to use JSF as a Server Side Include (SSI - shtml ). What you mean by SSI (in the context of tomcat)? The problem is that the jsf adds an extra set of HTML tags to the page ( breaking the page ). We have successfully used jsp pages for SSI in the past. What extra set do you mean? JSF does render what it is asked to render (a form, various input and maybe some javascript, depending on implementation) Is there a way to stop tomcat from generating these extra tags when rendering the jsf? Tomcat does not generate extra tag, except if asked to do with jsf rules. I have been looking through the source code. Can anyone point me to where in the source this HTML tag gets inserted? Thank you for any advice or pointers. Take care. Shannon - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Merry Christmas Chuck
Merry Christmas to one and all (and especially the list maintainers and committers who sometimes take considerable abuse to keep the discussions lively, informative and accurate) in 82 a BAL programming course on a sperry-rand machine..whatever became of sperry-rand or burroughs??? Martin-- P.S. Happy Festivus to everyone from Brooklyn! - Original Message - Wrom: EUQZAAFXISHJEXXIMQZUIVOTQNQEMSFDULHPQQWOYIYZUNNYCG To: Tomcat Users List users@tomcat.apache.org Sent: Friday, December 21, 2007 10:11 AM Subject: Merry Christmas Chuck This mailing list is always so helpful and I REALLY appreciate it. Mainly I enjoy your responses Chuck because they include such helpful links, commentary, and almost always the right answer. But you're such a hard ass about it! Always makes me laugh like crazy. Thanks bud! Sorry for cluttering an otherwise productive mailing list, I promise it won't happen again. Just had to let Chuck know he has a fan. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: how to run a simple jsp file
Please Display jsp and accompanying web.xml Thanks M- - Original Message - Wrom: MQZUIVOTQNQEMSFDULHPQQWOYIYZUNNYCGPKYLEJGDGV To: Tomcat Users List users@tomcat.apache.org Sent: Friday, December 21, 2007 2:36 PM Subject: RE: how to run a simple jsp file maybe you're lacking a jar file required? Maybe servlet jar file or other? -Original Message- Wrom: CJVTLBXFGGMEPYOQKEDOTWFAOBUZXUWL Sent: Friday, December 21, 2007 1:30 PM To: Tomcat Users List Subject: Re: how to run a simple jsp file well, the thing is i'm just trying to run examples provided by Tomcat 6 and located in the example directory. normally those files already contain such things(% @ page import= java.util.*,%) i have added some and it doesn't change anything. actually all import routines are already contained in files that calls the JSP... cheers 2007/12/21, Propes, Barry L [EMAIL PROTECTED]: this sounds like you maybe haven't properly imported the necessary class packages into your JSP file with @page declarative statement, like so for example: % @ page import=java.util.*,% just a guess, but probably a sound one in this case. -Original Message- Wrom: SZLKBRNVWWCUFPEGAUTFJMVRESKPNKMB Sent: Friday, December 21, 2007 3:59 AM To: Tomcat Users List; [EMAIL PROTECTED] Subject: Re: how to run a simple jsp file the log says it can't load the class for JSP 2007/12/21, Pid [EMAIL PROTECTED]: Joly M wrote: Hello there, I'm struggling on running JSP files. I've got some JSP files containing Java codes. When I try to run those files, I get an error number 500. When I run JSP files not containing any Java code at all, Everything works. It seems like the problem comes from Java files. I know that I've got to configure some XML files (eg: web.xml) in order to run any Servlet. Is there any XML files I have to configure to run JSPs on Apache Tomcat 6 ? Cheers What do the logs say is causing the error? p - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: apache and tomcat
good point.. try to determine if tc is running before trying to start it again netstat -a | grep PortNumber M-- - Original Message - Wrom: TZRCLBDXRQBGJSNBOHMKHJYFMYXOEAIJ To: Tomcat Users List users@tomcat.apache.org Sent: Tuesday, December 18, 2007 8:44 AM Subject: Re: apache and tomcat Which is complaining of a port in use -- tomcat or a httpd? Can you post the message your are getting? These two don't typically use the same ports by default. It may be tomcat is installed as a service and already running when you try to start it. --David --David Richard Dunne wrote: I have installed Apache server on port 80 as per installation recommened. Problem is port seems to be in use. Tomcat 6 is on port 8080, does this affect the Apache server in any way? Richard. - Original Message Wrom: JPHSCRTNHGSWZIDREXCAXZOWCONEUQ To: Tomcat Users List users@tomcat.apache.org Sent: Tuesday, December 18, 2007 12:53:56 PM Subject: Re: apache and tomcat You're right -- Apache Tomcat doesn't handle PHP especially well. It's designed to handle and execute code in java web applications built to the servlet spec very well though. Think of Apache Httpd as a general web server -- it serves content very well and with the right modules can hand off some requests to interpreters like PHP and Perl. Apache Tomcat on the other hand specializes in providing a container and API for handling Java web applications -- which Apache Httpd doesn't do at all. As such, Tomcat Httpd can hand off requests for PHP and Perl to their interpreters but not nearly as well as Apache Httpd. They can coincide on the same system as long as they are on different ports. If you want Apache Httpd to server content generated in Tomcat, you can use either mod_jk or Apache Httpd's reverse proxy --David Richard Dunne wrote: Can someone please explain the fundamental difference between Httpd and Tomcat? I installed Tomcat 6, but it doesn't seem to be liking PHP a whole lot. Do I need to un-install Tomcat 6 and install Apache 2 on its own? Just a bit confused as I am trying to get Apache and PHP5 working together. Any words of wisdom? Thanks, Richard Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Looking for last minute shopping deals? Find them fast with Yahoo! Search. http://tools.search.yahoo.com/newsearch/category.php?category=shopping - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: error number 500
display contents of jsp contents of web.xml content of server.xml Regards/ M- - Original Message - Wrom: VWWCUFPEGAUTFJMVRESKPNKMBIP To: users@tomcat.apache.org Sent: Sunday, December 16, 2007 6:51 AM Subject: error number 500 I have installed tomcat 6. i have tried to run the cal1 jsp example, but i've got an apache error number 500. this error is never triggered when i run a simple html file... cheers - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: DataSource created but not initialized = Cannot create JDBC driver of class '' for connect URL 'null'
Hi Tom here is my jdbc.properties which is used for petstore access to MySQL tables #jdbc.driverClassName=org.hsqldb.jdbcDriver jdbc.driverClassName=com.mysql.jdbc.Driver #jdbc.url=jdbc:hsqldb:hsql://localhost:9001 jdbc.url=jdbc:mysql://localhost:3306/petclinic jdbc.username=fu jdbc.password=bar your URL is quite similar and constructed correctly url=jdbc:mysql://ss-1.research.att.com:3306/wmmdev?autoReconnect=true/ so I would check to see if there is a MySQL Listening on ss1-.research.att.com e.g. login to ss-1.research.att.com netstat -a | grep 3306 the newer versions of mySQL (specifically 4 and 5) dont support deprecated autoReconnect attribute http://forums.mysql.com/read.php?39,32231,32231 HTH Martin- - Original Message - Wrom: UZXUWLSZLKBRNVWWCUFPEGAUTFJMVRESKPN To: Tomcat Users List users@tomcat.apache.org Sent: Friday, December 07, 2007 12:14 PM Subject: DataSource created but not initialized = Cannot create JDBC driver of class '' for connect URL 'null' Hi all, I'm trying to set up a DataSource to manage connections to a MySQL database, but whenever I call getConnection(), I get this error: org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create JDBC driver of class '' for connect URL 'null' at org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDataSource java:1150) at org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection(BasicDataSource.ja va:880) ... Caused by: java.sql.SQLException: No suitable driver at java.sql.DriverManager.getDriver(DriverManager.java:243) at org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDataSource java:1143) ... The datasource is defined in a file called $TOMCAT_HOME/conf/Catalina/localhost/smm.xml (the web app's context path is /smm); it looks like this: Context path=/smm docBase=smm debug=5 reloadable=true crossContext=true Resource name=jdbc/SmmDB auth=Container type=javax.sql.DataSource maxActive=100 maxIdle=30 maxWait=1 username=wmmdev password=wmmdev driverClassName=com.mysql.jdbc.Driver url=jdbc:mysql://ss-1.research.att.com:3306/wmmdev?autoReconnect=true/ /Context The fact that the datasource gets created and bound in JNDI tells me that smm.xml is getting read, but apparently it is not getting initialized properly; getDriverClassName(), getUrl(), getUsername(), and getPassword() all return null, and it looks like that's what causes the exception in getConnection(). I've seen quite a few questions about this error, but in the archived threads on this mailing list, I haven't found any solution to this particular problem... One poster who had the same diagnosis mentioned that the problem went away when he got rid of the Context element in META-INF/context.xml, but in my case, that file does not exist; in fact, the only Context elements I have are the one shown above, and the standard one in $TOMCAT_HOME/conf/context.xml. The MySQL JDBC driver is in $TOMCAT_HOME/lib, and when I do Class.forName(com.mysql.jdbc.Driver) in a JSP, it succeeds, but I'm not sure that's relevant because, first of all, DriverManager will only use drivers that were loaded by the same class loader as itself, and second, the DataSource can't use the driver anyway as long as its driverClassName and url properties remain unset. I'm using Tomcat 6.0.14, JDK 1.5.0_11, MySQL 5.0.45, and mysql-connector-java-5.1.5-bin.jar. I'm stumped... Any thoughts would be much appreciated! - Thomas - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: PLS-00201: identifier 'package_name.procedure_name' must be declared
JNDI was designed for DB access with and without schema classification once you have a connection you can always alter your session to take a schema ALTER SESSION SET SCHEMA = schema_name M-- - Original Message - Wrom: NHGSWZIDREXCAXZOWCONEUQZAAFXISHJEXXI To: users@tomcat.apache.org Sent: Wednesday, December 05, 2007 9:55 AM Subject: PLS-00201: identifier 'package_name.procedure_name' must be declared Hi, I am trying to call a stored procedure defined within a package in Oracle database from my servlet using java.sql.CallableStatement The connection is established using JNDI. I get the error: PLS-00201: identifier 'package_name.procedure_name' must be declared However, the procedure gets executed when I try calling it with the schema name prefixed - 'schema_name.package_name.procedure_name'. The connection is established using the same schema credentials. I have given the necessary grants to the database user/schema. Could you please let me know the following: 1. Do I necessarily need to mention the schema name to call the procedure. 2. If it is required how do I get the schema/user id from the JNDI settings under Context. Thanks and Regards, Khalid Syed. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: java.lang.NoClassDefFoundError: org/apache/commons/collections/SequencedHashMap
I agree that you should place the classes in your webapp WEB-INF..Common/lib is for internal use and wouldnt be expected to demand load the classes you require as is the case for the webapp WEB-INF http://tomcat.apache.org/tomcat-5.5-doc/class-loader-howto.html Anyone? M-- - Original Message - Wrom: JEXXIMQZUIVOTQNQEMSFDULHPQQWOYIYZUNNYCG To: Tomcat Users List users@tomcat.apache.org Sent: Sunday, December 02, 2007 9:30 AM Subject: Re: java.lang.NoClassDefFoundError: org/apache/commons/collections/SequencedHashMap -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Tom Robinson wrote: Caldarale, Charles R wrote: Wrom: PKYLEJGDGVCJVTLBXFGGMEPYOQKEDOTWFAOBUZXUWLSZ Subject: java.lang.NoClassDefFoundError: org/apache/commons/collections/SequencedHashMap I think I've installed all the correct jars (mostly via jpackage and CentOS yum repos) And therein lies the problem, most likely. Throw away the 3rd-party repackaged garbled version of Tomcat, and download a proper one from tomcat.apache.org. There are numerous issues in trying to straighten out the repackaged junk. - Chuck Ok Chuck, but I'm bound by other restrictions here. i.e. packaged software. The manager webapp works a treat as does the admin webapp. As far as tomcat is concerned, it's up and running and ticking away nicely. The problem I have is deploying a webapp on an updated version of tomcat. I have found a solution: Copy the commons-collections-3.2.jar to the WEB-INF/lib but I'm still not sure why the ${CATALINA_HOME}/common/lib version isn't picked up via tomcat. Anyone? Thanks, Tom -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (GNU/Linux) Comment: Using GnuPG with CentOS - http://enigmail.mozdev.org iD8DBQFHUsGSTTfAzopMt6cRAm7KAJ9jTJU9tlWCyzkjui0Ax9GkA7xBsQCdFIic c6RrvR4BiV3ZNM4fTrAYq4k= =91yz -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: java.lang.NoClassDefFoundError: org/apache/commons/collections/SequencedHashMap
Directory of %CATALINA_HOME%\common\lib 06/15/2004 08:29p 26,202 commons-logging-api.jar Directory of %CATALINA_HOME%\webapps\EncryptView\WEB-INF\lib 06/15/2004 08:29p 38,015 commons-logging.jar.old (unusable) /*lets create a jsp page which will call into that jar..*/ %@ page contentType=text/html;charset=windows-1252 import=org.apache.commons.logging.* % later on in the index.jsp attempt to use the log line 42 onMouseUp=%log.debug(From index.jsp StringToEncrypt=); An error occurred at line: 42 in the jsp file: /index.jsp Generated servlet error: log cannot be resolved (but commons-logging.jar IS located in %CATALINA_HOME%\common\lib) so why did'nt the classloader find it? lets re-enable commons-logging %CATALINA_HOME%\webapps\EncryptView\WEB-INF\libren *.jar.old *.jar commons-logging.jar is now enables in %CATALINA_HOME%\webapps\EncryptView\WEB-INF\lib so commons-logging.jar in %CATALINA_HOME%\common\lib was completely missed by the classloader but demand-loaded when placed in webappName\WEB-INF\lib Is there a misconfig that I dont know about? Environment: TOMCAT 5.5.17 java version 1.5.0_02 Martin - Original Message - Wrom: WIGYOKSTTZRCLBDXRQBGJSNBOHMKHJYFMYXOEAIJJPHSCRTNHGS To: Tomcat Users List users@tomcat.apache.org Sent: Sunday, December 02, 2007 12:24 PM Subject: RE: java.lang.NoClassDefFoundError: org/apache/commons/collections/SequencedHashMap Wrom: WZIDREXCAXZOWCONEUQZAAFXISHJEXXIMQZUIVOTQNQEMSFD Subject: Re: java.lang.NoClassDefFoundError: org/apache/commons/collections/SequencedHashMap Common/lib is for internal use and wouldnt be expected to demand load the classes you require as is the case for the webapp WEB-INF http://tomcat.apache.org/tomcat-5.5-doc/class-loader-howto.html Although the reference given is quite appropriate, the statements preceding it are incorrect. The common/lib location is not for Tomcat internal use; it provides a location for classes that must be visible to *both* Tomcat and webapps, such as the servlet API interfaces and JDBC drivers for connection pooling. And, of course, all classes are demand loaded on first reference, regardless of location. Placing application-specific classes in WEB-INF/lib is certainly the right thing to do, since that contributes to webapp independence. - 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 start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: memory required to run webapp without outofmemory
first I would enable your PermGen memory collector http://my.opera.com/karmazilla/blog/2007/03/13/good-riddance-permgen-outofme moryerror M-- - Original Message - Wrom: BARHDMNNSKVFVWRKJVZCMHVIBGDADRZ To: users@tomcat.apache.org Sent: Sunday, December 02, 2007 7:51 PM Subject: memory required to run webapp without outofmemory Free memory: 13.17 MB Total memory: 123.54 MB Max memory: 127.06 MB is just by looking at tomcat manager, we can find out maximum memory required to run webapp without out of memory? - Be a better sports nut! Let your teams follow you with Yahoo Mobile. Try it now. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: apache fop remains active in servlet environment
FOP 0.94 has working servlet code which can be called specifying the xml and xsl http://servername/fop/servlet/FopServlet?xml=data.xmlxslt=format.xsl OR just using the fo param http://servername/fop/servlet/FopServlet?fo=readme.fo http://archive.apache.org/dist/xmlgraphics/fop/binaries/ M-- - Original Message - Wrom: YRWTQTIPWIGYOKSTTZRCLBDXRQBGJS To: users@tomcat.apache.org Sent: Thursday, November 29, 2007 6:25 AM Subject: apache fop remains active in servlet environment I use apache fop in a servlet to display some xml as pdf. When I have used that functionality in my webapp my (Tomcat 6.0) web container doesn't want to undeploy. It deletes everything in the webapps/*context* directory except WEB-INF/lib/batik.jar and WEB-INF/lib/fop.jar. When trying to delete the files manually windows tells me they are in use. I use this code to render the xml into pdf ByteArrayOutputStream out = new ByteArrayOutputStream(); FopFactory ff=FopFactory.newInstance(); TransformerFactory tf=TransformerFactory.newInstance(); StreamSource xslfo=new StreamSource(this.getServletContext().getRealPath(lid-pdf.xsl)); try { Transformer tt=tf.newTransformer(xslfo); Fop fp=ff.newFop(MimeConstants.MIME_PDF, out); SAXResult res=new SAXResult(fp.getDefaultHandler()); Source src= new DOMSource(doc); DOMResult dd=new DOMResult(); assert(src!=null); assert(res!=null); tt.transform(src, dd); Transformer t2=tf.newTransformer(); // System.out.println(res.getNode().getFirstChild()); t2.transform(new DOMSource(dd.getNode()), res ); //Prepare response response.setContentType(application/pdf); assert(out.size()0); response.setContentLength(out.size()); // System.out.println(Version.getVersion()); //Send content to Browser response.getOutputStream().write(out.toByteArray()); response.getOutputStream().flush(); out.close(); } catch (FOPException e) { // TODO Auto-generated catch block throw new ServletException(e); } catch (TransformerConfigurationException e1) { // TODO Auto-generated catch block throw new ServletException(e1); } catch (TransformerException e) { // TODO Auto-generated catch block throw new ServletException(e); } System.gc(); Anyone has any ideas? Roel -- View this message in context: http://www.nabble.com/apache-fop-remains-active-in-servlet-environment-tf489 6511.html#a14023743 Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: is there a limit to JAVA Heap size ?
Microsoft allows 3GB capability for User Process Address Space http://www.microsoft.com/technet/sysinternals/information/bootini.mspx Anyone else? M-- - Original Message - Wrom: UZXUWLSZLKBRNVWWCUFPEGAUTFJMVRESKPNKMBIPB To: Tomcat Users List users@tomcat.apache.org Sent: Monday, November 26, 2007 12:08 PM Subject: Re: is there a limit to JAVA Heap size ? Jean, I am not a Tomcat Expert, though I know you can set this value to a higher number. I have set once to 1GB. Perhaps the gurus on the forum would answer it clearly to you. HTH Bruno On Nov 26, 2007 3:06 PM, Jean-Pierre Astier [EMAIL PROTECTED] wrote: Hello, An other little question !!! Is there a limit to the java heap size var environment ? There is 3 GB off RAM on my server. I've set JAVA_OPTS to -Xms512m -Xmx512m in catalina.sh. Can I increase more than this value ? Thanks - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Application redeployment on Tomcat startup only
handled by autodeploy attribute of Host element http://tomcat.apache.org/tomcat-5.5-doc/config/host.html M-- - Original Message - Wrom: EXCAXZOWCONEUQZAAFXISHJEXXIMQZUIVOTQNQEMSFDULHPQ To: users@tomcat.apache.org Sent: Monday, November 19, 2007 12:12 PM Subject: Application redeployment on Tomcat startup only Hi, I am trying to configure Tomcat to only reploy my application war file when Tomcat is started up. I have set the autoDeploy attribute in server.xml to false - this prevents my application from deploying dynamically, which is the behavior that I want. But then when I restart Tomcat I would like my new war file to be deployed at that time, but that is not happening (unless I delete the associated directory first). Are there any configuration parameters that will ensure the war file gets deployed at startup, but NOT dynamically when the application is running? Thanks, Beth - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 6.0.x Classloader sequence
http://tomcat.apache.org/tomcat-6.0-doc/class-loader-howto.html The best options are $JAVA_HOME/jre/lib/ext then system classpath Common will process $CATALINA_HOME/lib M-- - Original Message - Wrom: QZAAFXISHJEXXIMQZUIV To: Tomcat Users List users@tomcat.apache.org Sent: Thursday, November 15, 2007 12:34 PM Subject: Tomcat 6.0.x Classloader sequence I understand that the webapp classloaders in Tomcat 6.0.x diverge from the delegation model in first loading from the webapp before yielding to the commons class loader. Is it possible for me to configure the webapp class loaders to load classes from a path common to multiple webapps before loading from the webapp itself? Our application suite is a collection of webapps and I need to locate the jar files shared by these webapps in a path common to all the webapps comprising the application. Tx, /U - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JasperException in Tomcat 5.0 and above but not in 4.1
Henkel- web.xml will need to map xsd to some known mime-type e.g. mime-mapping extensionxsd/extension mime-typetext/xml/mime-type /mime-mapping Also I would look at ValidateVisitor.visit(Validator.java:423) for any expressions which you are currently not handling (Velocity/Freemarker comes to mind) Martin-- - Original Message - Wrom: NHGSWZIDREXCAXZOWCONEUQZAAFXISHJEXXIMQZUIVO To: Tomcat Users List users@tomcat.apache.org Sent: Wednesday, November 14, 2007 8:26 AM Subject: JasperException in Tomcat 5.0 and above but not in 4.1 Hello everybody. We are still using Tomcat 4.1 and JDK 1.4.2 for a web application. I'm trying to modernize this now and switch to Tomcat 5.x or 6 and JRE/JDK 1.6 (Java 6). While I was successful with Tomcat 4.1 and JDK 1.6, whenever I try to use Tomcat 5.x or 6, I receive error messages like below, when pushing a button (which will call a new page) in most of our wizard dialogs. I changed web.xml to refer to web-app version 2.4 (.../web-app_2_4.xsd). The error messages look like this: org.apache.jasper.JasperException: /wizard/manualAssignment/assignOrder.jsp(76,0) The name attribute of the jsp:param standard action does not accept any expressions at org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler. java:39) at org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:409 ) at org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:238 ) at org.apache.jasper.compiler.Validator$ValidateVisitor.throwErrorIfExpression( Validator.java:1157) at org.apache.jasper.compiler.Validator$ValidateVisitor.visit(Validator.java:42 3) at org.apache.jasper.compiler.Node$ParamAction.accept(Node.java:927) at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163) at org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2213) at org.apache.jasper.compiler.Validator$ValidateVisitor.visit(Validator.java:44 6) at org.apache.jasper.compiler.Node$IncludeAction.accept(Node.java:1002) at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163) at org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2213) at org.apache.jasper.compiler.Validator$ValidateVisitor.visit(Validator.java:71 6) at org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1441) at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163) at org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2213) at org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2219) at org.apache.jasper.compiler.Node$Root.accept(Node.java:456) at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163) at org.apache.jasper.compiler.Validator.validate(Validator.java:1475) at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:214) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:495) . When I look into that file (assignOrder.jsp) there is - in line 77 - after an jsp:include ... in line 76 a jsp:param name=%= [some variable] % value=%= [some expression ] %/ Isn't this possible in Tomcat 5 and above? Why? I found some spec for jsp:param where it was explicity stated, that value can be an %= % expression, but name cannot ... for JSP 1.2 which was used by Tomcat 4.1. So is Tomcat 5.x and above just more strict in checking this? Is there a way to tell Tomcat 5.x/6 to be compatible to Tomcat 4.1 (be less strict)? Thanks for any help! With kind regards, Harald Henkel GS automation GmbH - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: speed up the server
+1 also..to monitor memory usage run %JAVA_HOME%/bin/JConsole (and watch the individual memory categories..) M-- - Original Message - Wrom: CXLYRWTQTIPWIGYOKSTTZRCLBDXRQBGJSNBO To: Tomcat Users List users@tomcat.apache.org Sent: Friday, November 09, 2007 12:45 PM Subject: Re: speed up the server Just I need more info about where it was deployed before it was deployed. You can not run a web app without the container so the question might be the differences in the previous environment and the the one you deployed into. Same questions as below but for both environments. The one where it was performing better and the one where the performance is poor or not meeting expectations. Regards, -Tony --- David kerber [EMAIL PROTECTED] wrote: The first place I'd look is the database... tbt wrote: Hi, The OS is windows XP tomcat version 6 java version 1.5 database mysql memory: 3GB processor: 2.3GHz it was working very fast before being deployed. About 30 people login simultaneously to this application. Once this happens the application is very slow. ben short-2 wrote: So your webapp ran pretty fast before it was deployed? Your going to need to provide much more information. Like OS and versions of tomcat, java, database etc and maybe some metrics on how long it takes to process the requests. Also you will want to use a profiler to figure out what part of the app is 'taking' so long. With out knowing such things all we can really say is... Buy a faster machine. Code you app so it works faster. ;) Ben On Nov 7, 2007 10:21 AM, tbt [EMAIL PROTECTED] wrote: Hi I'm a newbie to tomcat and i'm using it for a web application. But currently the application is running a bit slow once deployed. Are there any ways to speed up the request/response time in tomcat. Thanks -- View this message in context: http://www.nabble.com/speed-up-the-server-tf4763782.html#a13624531 Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org 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 - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: I want two application web like root in the same Tomcat
Hi Joan- with apache front end you can use mod_rewrite to rewrite the URL http://httpd.apache.org/docs/1.3/mod/mod_rewrite.html With Tomcat you will need to put on the architect's hat to determine why have 2 webapps when you only need one webapp(ROOT) If the 2 webapps accomplish the same functionality and have basically the same startup parameters and same access capabilities then merge otherwise keep the apps separate.. Anyone else? M-- - Original Message - Wrom: WLSZLKBRNVWWCUFPEGAUTFJMVRESKPNKMBIPBARHDMNNSKV To: users@tomcat.apache.org Sent: Thursday, November 08, 2007 6:26 AM Subject: I want two application web like root in the same Tomcat Hi, I want to install two application web like ROOT application, because I need: - Hidden context's name of url like: http://domain/ where domain is a virtual host and its source code is in application web into webapps, so now when I try to show this domain I have to write http://domain/name_context/index.jsp (for example) and I don't want it. If I move source code from my context to ROOT context, It runs. But I have a problem because I have other application and I want make the same, but I have only ROOT application. Resume: Into webapps I have app1 and app2, and both I want hidden their name_context in the url. How I do it? Thanks Joan Joan Monplet Ortega -SoloStocks- Departament Tècnic Tel. 902 024 312 - Fax. 93 504 56 05 [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] Este mensaje y los documentos que, en su caso, lleve anexos, pueden contener información confidencial. Por ello, se informa a quien lo reciba por error que la información contenida en el mismo es reservada y su uso no autorizado está prohibido legalmente, por lo que en tal caso le rogamos que nos lo comunique por la misma vía o por teléfono (+34 93 504 5639) , se abstenga de realizar copias del mensaje o remitirlo o entregarlo a terceras personas y proceda a borrarlo de inmediato. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Re:Out of Office
Does anyone know what the ASP team is? Can we filter these messages off active list? M-- - Original Message - Wrom: FMYXOEAIJJPHSCRTNHGSWZIDREXCAXZO To: users@tomcat.apache.org Sent: Sunday, November 04, 2007 11:57 AM Subject: Re:Out of Office I'll be out of office from 11/05/07, returning back on 11/14/07. Please contact ASP team if you need any assistance. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: I got the following error message when I try to start tomcat in Eclipse
display UserDatabase entry from $TOMCAT_HOME/conf/server.xml it should look something like Resource name=UserDatabase auth=Container type=org.apache.catalina.UserDatabase description=User database that can be updated and saved factory=org.apache.catalina.users.MemoryUserDatabaseFactory pathname=conf/tomcat-users.xml / M-- - Original Message - Wrom: LHPQQWOYIYZUNNYCGPKYLEJGDGVCJVTLB To: users@tomcat.apache.org Sent: Sunday, November 04, 2007 3:27 PM Subject: I got the following error message when I try to start tomcat in Eclipse Hi, I try to start tomcat version 4.1 in eclipse version 3.3.0. I use Windos Vista operating system. I installed launcher plug-in so i can start and stop tomcat for eclipse. I use JDK 1.4.16 by the way. When I try to start tomcat in eclipse I got the following error: (P.S. I used tomcat 4.1 in windows XP before and i didn't get this error) GlobalResourcesLifecycleListener: Exception processing Global JNDI Resources javax.naming.NamingException: Cannot rename original file to C:\Program Files\Apache Software Foundation\Tomcat 4.1\conf\tomcat-users.xml.old at org.apache.naming.NamingContext.lookup(NamingContext.java:799) at org.apache.naming.NamingContext.lookup(NamingContext.java:135) at org.apache.naming.NamingContextBindingsEnumeration.nextElementInternal(Namin gContextBindingsEnumeration.java:121) at org.apache.naming.NamingContextBindingsEnumeration.next(NamingContextBinding sEnumeration.java:80) at org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBeans(Glo balResourcesLifecycleListener.java:157) at org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBeans(Glo balResourcesLifecycleListener.java:128) at org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.lifecycleEvent(G lobalResourcesLifecycleListener.java:96) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor t.java:120) at org.apache.catalina.core.StandardServer.start(StandardServer.java:2206) at org.apache.catalina.startup.Catalina.start(Catalina.java:459) at org.apache.catalina.startup.Catalina.execute(Catalina.java:346) at org.apache.catalina.startup.Catalina.process(Catalina.java:130) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39 ) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:151) Starting service Tomcat-Standalone Apache Tomcat/4.1.36-LE-jdk14 javax.naming.NamingException: Cannot rename original file to C:\Program Files\Apache Software Foundation\Tomcat 4.1\conf\tomcat-users.xml.old at org.apache.naming.NamingContext.lookup(NamingContext.java:799) at org.apache.naming.NamingContext.lookup(NamingContext.java:148) at org.apache.catalina.realm.UserDatabaseRealm.start(UserDatabaseRealm.java:220 ) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1133) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:311) at org.apache.catalina.core.StandardService.start(StandardService.java:450) at org.apache.catalina.core.StandardServer.start(StandardServer.java:2213) at org.apache.catalina.startup.Catalina.start(Catalina.java:459) at org.apache.catalina.startup.Catalina.execute(Catalina.java:346) at org.apache.catalina.startup.Catalina.process(Catalina.java:130) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39 ) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:151) Catalina.start: LifecycleException: No UserDatabase component found under key UserDatabase LifecycleException: No UserDatabase component found under key UserDatabase at org.apache.catalina.realm.UserDatabaseRealm.start(UserDatabaseRealm.java:227 ) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1133) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:311) at org.apache.catalina.core.StandardService.start(StandardService.java:450) at org.apache.catalina.core.StandardServer.start(StandardServer.java:2213) at org.apache.catalina.startup.Catalina.start(Catalina.java:459) at org.apache.catalina.startup.Catalina.execute(Catalina.java:346) at org.apache.catalina.startup.Catalina.process(Catalina.java:130) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39 ) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl java:25) at java.lang.reflect.Method.invoke(Method.java:324) at
Re: mod_jk: Could not init service for worker
Good Morning http://localhost/ I mirrored your configuration: RewriteEngine On RewriteLogLevel 3 RewriteRule ^/confluence/ - [R,L] RewriteRule ^(.*)$ /confluence/$1 [R,L,NE] DocumentRoot /var/www/confluence/confluence Directory / Options FollowSymLinks AllowOverride None /Directory Directory /var/www/confluence/confluence/ Options Indexes FollowSymLinks MultiViews AllowOverride None Order allow,deny allow from all ##SSLRequireSSL /Directory Alias /confluence /var/www/confluence/confluence Location /confluence/WEB-INF/* deny from all /Location Location /confluence/META-INF/* deny from all /Location and see this entry in $APACHE2_HOME/logs/access.log 127.0.0.1 - - [17/Oct/2000:08:13:00 -0400] GET /confluence// HTTP/1.1 200 148 in \var\www\confluence\confluence I have one index.html which reads as follows html head titleThis is in var\www\confluence\confluence/title /head body This is in var\www\confluence\confluence /body /html and this is what I see when I reference localhost:80 This is in var\www\confluence\confluence So the configuration does work in Apache2 using this version of mod_rewrite mod_rewrite.so 7/27/2006 57,426 Martin-- - Original Message - Wrom: CMHVIBGDADRZFSQHYUCDDJBLVLMHAALPTCXLYRW To: Tomcat Users List users@tomcat.apache.org Sent: Tuesday, October 16, 2007 6:11 AM Subject: Re: mod_jk: Could not init service for worker Hans van Zijst wrote: Hi, Since I updated my system last week, mod_jk doesn't work anymore. Tomcat starts up just fine, no errors or warnings. I checked that the AJP1.3 connector runs, it listens on port 8009. Apache runs fine as well, but as soon as I connect to the URL I mapped to Tomcat, I get: [error] jk_handler::mod_jk.c (2223): Could not init service for worker=confluence I did a few traces and found out that no connection is attempted to port 8009, so I assume the problem is somewhere in my Apache config. I'm lost for answers as I couldn't find anything on the web or in my documentation. Can anyone please point me in the right direction? This is my configuration: Linux (Debian Lenny, i386) Tomcat 5.5 Apache 2.2.6 mod_jk 1.2.25 Fine. What's your platform (OS)? Here's my workers.properties: BEGIN workers.properties worker.list=confluence worker.confluence.host=localhost worker.confluence.port=8009 worker.confluence.type=ajp13 Very basic, but OK. END workers.properties I configured mod_jk to log as much as possible. This is what it logs (from startup to Internal server error): What do you mean by Internal server error: this string is not shown here. Is there anything in the Apache error log? BEGIN mod_jk log [Thu Oct 11 11:10:04.742 2007] [15501:3078624944] [debug] open_jklog::mod_jk.c (2652): log time stamp format is '[%a %b %d %H:%M:%S.%Q %Y] ' [Thu Oct 11 11:10:04.742 2007] [15501:3078624944] [debug] uri_worker_map_open::jk_uri_worker_map.c (423): rule map size is 2 [Thu Oct 11 11:10:04.742 2007] [15501:3078624944] [debug] uri_worker_map_add::jk_uri_worker_map.c (372): exact rule '/confluence=confluence' source 'JkMount' was added [Thu Oct 11 11:10:04.742 2007] [15501:3078624944] [debug] uri_worker_map_add::jk_uri_worker_map.c (364): wildchar rule '/confluence/*=confluence' source 'JkMount' was added [Thu Oct 11 11:10:04.742 2007] [15501:3078624944] [info] init_jk::mod_jk.c (2775): mod_jk/1.2.25 initialized [Thu Oct 11 11:10:04.890 2007] [15502:3078624944] [debug] open_jklog::mod_jk.c (2652): log time stamp format is '[%a %b %d %H:%M:%S.%Q %Y] ' [Thu Oct 11 11:10:04.890 2007] [15502:3078624944] [debug] uri_worker_map_open::jk_uri_worker_map.c (423): rule map size is 2 [Thu Oct 11 11:10:04.890 2007] [15502:3078624944] [debug] uri_worker_map_add::jk_uri_worker_map.c (372): exact rule '/confluence=confluence' source 'JkMount' was added [Thu Oct 11 11:10:04.890 2007] [15502:3078624944] [debug] uri_worker_map_add::jk_uri_worker_map.c (364): wildchar rule '/confluence/*=confluence' source 'JkMount' was added [Thu Oct 11 11:10:04.891 2007] [15502:3078624944] [info] init_jk::mod_jk.c (2775): mod_jk/1.2.25 initialized [Thu Oct 11 11:10:14.351 2007] [15508:3060181904] [debug] map_uri_to_worker::jk_uri_worker_map.c (597): Attempting to map URI '/confluence/' from 2 maps [Thu Oct 11 11:10:14.351 2007] [15508:3060181904] [debug] map_uri_to_worker::jk_uri_worker_map.c (609): Attempting to map context URI '/confluence/*=confluence' source 'JkMount' [Thu Oct 11 11:10:14.351 2007] [15508:3060181904] [debug] map_uri_to_worker::jk_uri_worker_map.c (624): Found a wildchar match '/confluence/*=confluence' [Thu Oct 11 11:10:14.351 2007] [15508:3060181904] [debug] jk_handler::mod_jk.c (2131): Into handler jakarta-servlet worker=confluence r-proxyreq=0 [Thu Oct 11 11:10:14.351 2007] [15508:3060181904] [debug] wc_get_worker_for_name::jk_worker.c (115): found a worker confluence [Thu Oct 11 11:10:14.351 2007] [15508:3060181904] [debug]
Re: AJP Flush Packet causing text/plain output
FYI mod_jk that works (Apache -t says Syntax ok) http://archive.apache.org/dist/jakarta/tomcat-connectors/jk/binaries/win32/j k-1.2.6/ filename:mod_jk_1.2.6_2.0.50.dll filesize: 86016 (bookmark this site) Still looking for the mod_jk that works with Apache 2.2 Have a good holiday M-- - Original Message - Wrom: NBOHMKHJYFMYXOEAIJJPHSCRTNHGSWZIDR To: Tomcat Users List users@tomcat.apache.org Cc: Oren Hurvitz [EMAIL PROTECTED] Sent: Tuesday, September 25, 2007 4:45 PM Subject: RE: AJP Flush Packet causing text/plain output I understand your hesitation. I agree that my method was poor in terms of encapsulation, but was elegant in terms of its size, that it did not change any of the function signatures, and that it was easy to understand. The holiday has begun here, and I am off for this week -- I will try to test the patch ASAP. Thanks so much for your help. Larry. -Original Message- Wrom: EXCAXZOWCONEUQZAAFXISHJEXXIMQZUIVOTQNQEMSFDU Sent: Tuesday, September 25, 2007 8:58 PM To: Tomcat Users List Subject: Re: AJP Flush Packet causing text/plain output Hi Lary, Larry Reisler wrote: Thanks for your reply. There is a holiday here right now, so I'm not sure if I will be able to get to file the Bugzilla issue before the holiday break. Maybe this time we are faster than our request ticketing ... We tried a few different versions of mod_jk (the early ones had other issues), but all the latest ones showed the problem. We are currently using mod_jk 1.2.25. In desperation, I was able to create a patch to mod_jk that seems to prevent the symptom from occurring. Here is the diff for the file jk_ajp_common.c: 1742,1751d1741 // Removing extra flush buffer if we do not need it. if (headeratclient == JK_FALSE) { int code = (int)jk_b_pget_byte(op-reply,0); unsigned int len = (unsigned int)jk_b_pget_int(op-reply,1); if ((code == JK_AJP13_SEND_BODY_CHUNK) (len == 0)) { jk_log(l, JK_LOG_DEBUG, Received flushbuffer -- ignoring); continue; } } I'm a little reluctant to use your approach. It should work, but the peeking for the message code and length does not belong into the get reply function. The best place for the patch would be in the callback handling, but there we don't know, if we already received the headers. So either we pass some additional info to the callback handling (status info about the request processing stage), or we prevent the flushing later. I decided to move an already existing flag response_started from the web server private data to the public service struct and use it inside the callback handler. This patch was committted (http://svn.apache.org/viewvc?view=revrevision=579349). You can find a simple download form of it under http://people.apache.org/~rjung/mod_jk-dev/patches/flush-before-header.patch The patch looks lengthy, but in fact did only small changes. It would be helpful, if you could try it with your reproduction scenario. Regards, Rainer - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tomcat can not connect to MySql
did you check the listener to make sure the MySQL listener is actually listening? netstat -a | grep 3306 if you run your mysql client with the same parameters that your webpp is using mysql [EMAIL PROTECTED] Username -p password DBName can you connect? M-- - Original Message - Wrom: XRQBGJSNBOHMKHJYFMYXOEAIJJPHSCRTNHGSWZID To: users@tomcat.apache.org Sent: Sunday, September 23, 2007 3:08 AM Subject: Re: tomcat can not connect to MySql Tomcat 5.5.9 OS Windows Server 2003 , Windows XP Mysql 5.0 tomcat and mysql on the same server javax.transaction.SystemException com.met.data.factory.user.UserFactory.getUser(UserFactory.java:694) com.met.action.LoginAction.execute(LoginAction.java:56) org.apache.struts.action.RequestProcessor.processActionPerform(RequestProces sor.java:419) org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:224) org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194) org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432) javax.servlet.http.HttpServlet.service(HttpServlet.java:709) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) com.met.filter.CharsetFilter.doFilter(CharsetFilter.java:31) any connection closed after open it -- Fatemeh David Smith-2 wrote: Can you provide some specifics of your environment? Tomcat version OS Mysql version (both driver and server) Both tomcat and mysql on the same machine? If not, any firewalls that might be timing out a connection? How long does it run before it doesn't work? Can you post the full stack trace of your exception including root cause? In your design, are you holding on to connections or closing them as soon as you are done talking to the db? Mysql server does timeout connections after 8 hours by default. If you are using tomcat's database pooling, this can be fixed with the simple addition of a validation query in the config. In any case, it's best practice for the code querying the db to close connections as soon as reasonably possible and not keep them open. --David - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/tomcat-can-not-connect-to-MySql-tf4500426.html#a128433 54 Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]