RE: Progamatically setting values of FORM elements
The STRUTS framework would be good for what you are trying to do. http://www.apache.org -tp -Original Message- From: Luc Foisy [mailto:[EMAIL PROTECTED] Sent: Friday, July 30, 2004 12:10 PM To: Tomcat User List (E-mail) Subject: Progamatically setting values of FORM elements Is there any way I can have my java set the values of FORM elements. Rather than storing the values in the java code and generating the complete form element containing that value. Something like adding something to the response that will give that item a value. For my particular need, I want to set a number of checkbox elements on or off. I do have the ability to predict the element names... - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Win2kSP4, Apache-2.0.49 + Tomcat-5.0.27 + mod_jk2-2.0.43 - Memory Reference Error
Regardless if you are starting it as a service or at the command prompt, Tomcat will still use invoke Catalina.bat as part of its startup process. So if you did what I suggest last week then you have already increased your jvm memory heap. What did you actually increase your memory heap to. Maybe you need to increase it more. Also if you are doing JDBC or Threading and/or connection pooling, you may need to make sure that you are closing your resources before return the connection to the connection pool. Again the command below will increase your jvm memory heap regardless if you have tomcat running as an instance or not. So if this didn't work for I would suggest increasing it some more or check your resource you are using. i.e(threads, jdbc resources, connections, etc). open catalina.bat or the equivalent file. set JAVA_OPTS to the desired value. set JAVA_OPTS=-Xms128 -Xmx256 tp -Original Message- From: Noah [mailto:[EMAIL PROTECTED] Sent: Monday, July 26, 2004 8:59 AM To: [EMAIL PROTECTED] Subject: RE: Win2kSP4, Apache-2.0.49 + Tomcat-5.0.27 + mod_jk2-2.0.43 - Memory Reference Error Thank you, I tried increasing the memory before but was using the wrong method (trying to increase it as if I were using command line, but it is a service). I can't restart the server until after 5, so I will post a followup late today or tomorrow. Thanks, Noah Previous Message: Hi, I faced the same issue when concurent user are more. In this case we need to Increase the JDK heap size. On windows we can install the Tomcat in 2 ways 1. As a NT service 2. Command prompt In 1 Case u need to add 2 additional parameters in registry. JVM Option Count=5 JVM Option Number 3=-xms512m JVM Option Number 4=-xmx512m The Minimum and Maximum size of HDK heap size should be 1/3rd of Total RAM, as these OS need big memory for their own purpose. In 2nd Case Increase the JDk size with editing JAVA_OPTS variable in Catilina file. I hope your problem will get solved. With regards, Pradeep Chauhan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Need help with Log4j and Tomcat5
Thanks I will try this... I had my log4j.properties in web-inf/config/ instead of web-inf/classes Thanks again. -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Friday, July 23, 2004 7:50 AM To: Tomcat Users List Subject: RE: Need help with Log4j and Tomcat5 Hi, Just what's mentioned in the log4j manual: - Place log4j.jar in WEB-INF/lib - Place log4j code in your JSPs as you wish - Place log4j.properties in WEB-INF/classes or configure log4j programmatically. Yoav Shapira Millennium Research Informatics -Original Message- From: Tonte Pouncil [mailto:[EMAIL PROTECTED] Sent: Thursday, July 22, 2004 5:27 PM To: [EMAIL PROTECTED] Subject: Need help with Log4j and Tomcat5 Hello, What do I have to do to use Log4j in my jsp application which running on Tomcat5? Thanks! tp http://www.imc2.com/imc2Logo.gif tonte pouncil software developer 214.224.1105 mailto:[EMAIL PROTECTED] [EMAIL PROTECTED] www.imc2.com http://www.imc2.com/ ?xml:namespace prefix = o ns = urn:schemas-microsoft-com:office:office / 7505 john carpenter frwy dallas, texas 75247 214.224.1000 fax/214.224.1100 This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Need help with Log4j and Tomcat5
Thanks a lot. I was successful at logging my debug statements. Thanks a bunch! tp -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Friday, July 23, 2004 7:50 AM To: Tomcat Users List Subject: RE: Need help with Log4j and Tomcat5 Hi, Just what's mentioned in the log4j manual: - Place log4j.jar in WEB-INF/lib - Place log4j code in your JSPs as you wish - Place log4j.properties in WEB-INF/classes or configure log4j programmatically. Yoav Shapira Millennium Research Informatics -Original Message- From: Tonte Pouncil [mailto:[EMAIL PROTECTED] Sent: Thursday, July 22, 2004 5:27 PM To: [EMAIL PROTECTED] Subject: Need help with Log4j and Tomcat5 Hello, What do I have to do to use Log4j in my jsp application which running on Tomcat5? Thanks! tp http://www.imc2.com/imc2Logo.gif tonte pouncil software developer 214.224.1105 mailto:[EMAIL PROTECTED] [EMAIL PROTECTED] www.imc2.com http://www.imc2.com/ ?xml:namespace prefix = o ns = urn:schemas-microsoft-com:office:office / 7505 john carpenter frwy dallas, texas 75247 214.224.1000 fax/214.224.1100 This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Need help with Log4j and Tomcat5
So you have different log4j jar files? If so why, why not just use one? -Original Message- From: Bill Harrelson [mailto:[EMAIL PROTECTED] Sent: Friday, July 23, 2004 9:37 AM To: Tomcat Users List Subject: RE: Need help with Log4j and Tomcat5 This works fine for me under Tomcat, and works well for multiple applications (jars in each WEB-INF/lib, props files in each /class). However, when I try to do the same under Eclipse, I get classNotFound for log4j.jar unless I put the jars (in each WEB- INF/lib) explicitly into the Eclipse run/debug classpath, in which case it only picks up the first jar and I only get one logger. Has anybody else run into this? Anybody have any idea what to do next? TIA, Bill Send reply to: Tomcat Users List [EMAIL PROTECTED] Subject:RE: Need help with Log4j and Tomcat5 Date sent: Fri, 23 Jul 2004 09:14:59 -0500 From: Tonte Pouncil [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Thanks a lot. I was successful at logging my debug statements. Thanks a bunch! tp -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Friday, July 23, 2004 7:50 AM To: Tomcat Users List Subject: RE: Need help with Log4j and Tomcat5 Hi, Just what's mentioned in the log4j manual: - Place log4j.jar in WEB-INF/lib - Place log4j code in your JSPs as you wish - Place log4j.properties in WEB-INF/classes or configure log4j programmatically. Yoav Shapira Millennium Research Informatics -Original Message- From: Tonte Pouncil [mailto:[EMAIL PROTECTED] Sent: Thursday, July 22, 2004 5:27 PM To: [EMAIL PROTECTED] Subject: Need help with Log4j and Tomcat5 Hello, What do I have to do to use Log4j in my jsp application which running on Tomcat5? Thanks! tp http://www.imc2.com/imc2Logo.gif tonte pouncil software developer 214.224.1105 mailto:[EMAIL PROTECTED] [EMAIL PROTECTED] www.imc2.com http://www.imc2.com/ ?xml:namespace prefix = o ns = urn:schemas-microsoft-com:office:office / 7505 john carpenter frwy dallas, texas 75247 214.224.1000 fax/214.224.1100 This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - 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: Win2kSP4, Apache-2.0.49 + Tomcat-5.0.27 + mod_jk2-2.0.43 - Memory Reference Error
You may want to try increasing the jvm memory heap for Apache and/or Tomcat. I have experienced out of memory error with Tomcat before. I fixed the issue by increasing the jvm memory heap. I forget the command that I used and I am no longer working at the company I configured Tomcat to use more memory, but if you do a search on google you should be able to find some kind of documentation. I have the same set up you have, but I have been unable to get Apache to forward jsp request to Tomcat. Can you provide me with a step by step instructions as to what you did? Thanks! tp -Original Message- From: Noah [mailto:[EMAIL PROTECTED] Sent: Friday, July 23, 2004 9:24 AM To: [EMAIL PROTECTED] Subject: Win2kSP4, Apache-2.0.49 + Tomcat-5.0.27 + mod_jk2-2.0.43 - Memory Reference Error OS: Windows 2000, Service Pack 4 Apache ver: 2.0.49 Tomcat ver: 5.0.27 mod_jk2 ver: 2.0.43 We have a server set up to forward requests through Apache to Tomcat using mod_jk2. The setup works, except that periodically it will throw an error as follows on the server: Application popup: Apache.exe - Application Error : The instruction at 0x6eec7826 referenced memory at 0x. The memory could not be read. On the user end, the web app is not interrupted when this happens. In the mod_jk2 error log, the following lines appear when this error does: [Wed Jul 21 10:07:21 2004] (error ) [jk_worker_ajp13.c (546)] ajp13.service() ajpGetReply recoverable error 3 [Wed Jul 21 10:07:21 2004] (error ) [jk_worker_ajp13.c (546)] ajp13.service() ajpGetReply recoverable error 3 [Wed Jul 21 10:07:21 2004] (error ) [jk_worker_ajp13.c (648)] ajp13.service() Error forwarding ajp13:localhost:8009 1 0 [Wed Jul 21 10:07:21 2004] (error ) [mod_jk2.c (752)] mod_jk2.handler() Error connecting to tomcat 3, status 200 We have looked extensively at the access log and a tomcat's logs but have not been able to to find any related activity. Oddly, in the SSL.log the following line appears seemingly randomly (not obviously related to the error pop-ups): mod_jk: Error flushing We don't know if this is related or not. It appears just like that, no timestamp or anything. We are not using mod_jk, it is not included. We've serached in Google, Google groups, and the bug database extensively but have found similar but not identical complaints, none of which are (publicly) resolved anyway. On a test server we reduced the occurence of the error by fiddling with configuration files. It seems to have eliminated the error, but does not get much traffic so it may just have been reduced. We have duplicated the settings on the production server, and we did manage to seemingly reduce the occurence of the error but did not eliminate it. It still pops up hundreds of times a day. I'm assuming that we have some kind of misconfiguration, but after weeks of searching the web and reading the (rather spare) documentation, we haven't been able to determine what the problem is. Our relevant config files are attached below. Does anyone have any pointers for us? Let me if I've left out some important config info. Thanks, Noah Config Files: httpd.conf: The only relevant part as far as I know. It listens on port 443. We needed Win32DisableAcceptEx to get rid of a different error. Win32DisableAcceptEx IfDefine SSL VirtualHost 192.168.1.1:443 ServerName example.server.com Directory / Options FollowSymLinks AllowOverride none /Directory SSLEngine on SSLCertificateFile conf/ssl.crt/entrustexampleserver.crt SSLCertificateChainFile conf/ssl.crt/entrustchaincert.crt SSLCertificateKeyFile conf/ssl.key/example_server_com.key IfModule mod_jk2.c Location /jkstatus JkUriSet group status: Order Deny,Allow Deny from all Allow from 192.168.1.1 /Location Location /app/* Redirect permanent /app/login.jsp https://example.server.com/index.html JkUriSet worker ajp13:localhost:8009 /Location /IfModule /VirtualHost /IfDefine server.xml: These are the only connectors: Connector port=7001 maxThreads=150 minSpareThreads=25 maxSpareThreads=75 enableLookups=false redirectPort=8443 acceptCount=100 debug=0 connectionTimeout=2 disableUploadTimeout=true / Connector port=8009 secure=true scheme=https enableLookups=false debug=0 protocol=AJP/1.3 /
RE: Win2kSP4, Apache-2.0.49 + Tomcat-5.0.27 + mod_jk2-2.0.43 - Memory Reference Error
I did a search on google and this is what I found... open catalina.bat or the equivalent file. set JAVA_OPTS to the desired value. ex: set JAVA_OPTS=-Xms128 -Xmx128 htp (Hope This Helps) tp -Original Message- From: Tonte Pouncil Sent: Friday, July 23, 2004 9:59 AM To: Tomcat Users List Subject: RE: Win2kSP4, Apache-2.0.49 + Tomcat-5.0.27 + mod_jk2-2.0.43 - Memory Reference Error You may want to try increasing the jvm memory heap for Apache and/or Tomcat. I have experienced out of memory error with Tomcat before. I fixed the issue by increasing the jvm memory heap. I forget the command that I used and I am no longer working at the company I configured Tomcat to use more memory, but if you do a search on google you should be able to find some kind of documentation. I have the same set up you have, but I have been unable to get Apache to forward jsp request to Tomcat. Can you provide me with a step by step instructions as to what you did? Thanks! tp -Original Message- From: Noah [mailto:[EMAIL PROTECTED] Sent: Friday, July 23, 2004 9:24 AM To: [EMAIL PROTECTED] Subject: Win2kSP4, Apache-2.0.49 + Tomcat-5.0.27 + mod_jk2-2.0.43 - Memory Reference Error OS: Windows 2000, Service Pack 4 Apache ver: 2.0.49 Tomcat ver: 5.0.27 mod_jk2 ver: 2.0.43 We have a server set up to forward requests through Apache to Tomcat using mod_jk2. The setup works, except that periodically it will throw an error as follows on the server: Application popup: Apache.exe - Application Error : The instruction at 0x6eec7826 referenced memory at 0x. The memory could not be read. On the user end, the web app is not interrupted when this happens. In the mod_jk2 error log, the following lines appear when this error does: [Wed Jul 21 10:07:21 2004] (error ) [jk_worker_ajp13.c (546)] ajp13.service() ajpGetReply recoverable error 3 [Wed Jul 21 10:07:21 2004] (error ) [jk_worker_ajp13.c (546)] ajp13.service() ajpGetReply recoverable error 3 [Wed Jul 21 10:07:21 2004] (error ) [jk_worker_ajp13.c (648)] ajp13.service() Error forwarding ajp13:localhost:8009 1 0 [Wed Jul 21 10:07:21 2004] (error ) [mod_jk2.c (752)] mod_jk2.handler() Error connecting to tomcat 3, status 200 We have looked extensively at the access log and a tomcat's logs but have not been able to to find any related activity. Oddly, in the SSL.log the following line appears seemingly randomly (not obviously related to the error pop-ups): mod_jk: Error flushing We don't know if this is related or not. It appears just like that, no timestamp or anything. We are not using mod_jk, it is not included. We've serached in Google, Google groups, and the bug database extensively but have found similar but not identical complaints, none of which are (publicly) resolved anyway. On a test server we reduced the occurence of the error by fiddling with configuration files. It seems to have eliminated the error, but does not get much traffic so it may just have been reduced. We have duplicated the settings on the production server, and we did manage to seemingly reduce the occurence of the error but did not eliminate it. It still pops up hundreds of times a day. I'm assuming that we have some kind of misconfiguration, but after weeks of searching the web and reading the (rather spare) documentation, we haven't been able to determine what the problem is. Our relevant config files are attached below. Does anyone have any pointers for us? Let me if I've left out some important config info. Thanks, Noah Config Files: httpd.conf: The only relevant part as far as I know. It listens on port 443. We needed Win32DisableAcceptEx to get rid of a different error. Win32DisableAcceptEx IfDefine SSL VirtualHost 192.168.1.1:443 ServerName example.server.com Directory / Options FollowSymLinks AllowOverride none /Directory SSLEngine on SSLCertificateFile conf/ssl.crt/entrustexampleserver.crt SSLCertificateChainFile conf/ssl.crt/entrustchaincert.crt SSLCertificateKeyFile conf/ssl.key/example_server_com.key IfModule mod_jk2.c Location /jkstatus JkUriSet group status: Order Deny,Allow Deny from all Allow from 192.168.1.1 /Location Location /app/* Redirect permanent /app/login.jsp https://example.server.com/index.html JkUriSet worker ajp13:localhost:8009 /Location /IfModule /VirtualHost /IfDefine server.xml
Need help with Log4j and Tomcat5
Hello, What do I have to do to use Log4j in my jsp application which running on Tomcat5? Thanks! tp http://www.imc2.com/imc2Logo.gif tonte pouncil software developer 214.224.1105 mailto:[EMAIL PROTECTED] [EMAIL PROTECTED] www.imc2.com http://www.imc2.com/ ?xml:namespace prefix = o ns = urn:schemas-microsoft-com:office:office / 7505 john carpenter frwy dallas, texas 75247 214.224.1000 fax/214.224.1100
RE: mod_jk2, apache and index.jsp
Sergei, Ian, and Anybody else: Hello, I am trying to do the same thing, which is to have Apcache 2.0.49 forward all jsp and servlet request to Tomcat 5.0.25 on a windows box. Have you or anyone else been able to get this to work successfully? What is debian/testing? And what is Debian Woody system? Regards, Tonté -Original Message- From: Sergei Genchev [mailto:[EMAIL PROTECTED] Sent: Monday, July 12, 2004 4:49 PM To: [EMAIL PROTECTED] Subject: mod_jk2, apache and index.jsp Hi, I have Apache 2.0.49/Tomcat 5.0.25/mod_jk 2.04 on debian/testing My setup Works Mostly(TM), i.e if I go to http://myserver.mydomain.tld/index.jsp, Apache calls Tomcat and everything works fine. If I just go to http://myserver.mydomain.tld AND there is an index.html file in the webroot directory, index.html gets served instead. Relevant entries in httpd.conf: DirectoryIndex index.jsp index.html ... LocationMatch /*.jsp JkUriSet worker ajp13:localhost:8009 /LocationMatch If I remove index.html from DirectoryIndex and leave just index.jsp there - works fine If I remove LocationMatch /*.jsp entry - index.jsp gets served even if there is index.html present - it does not get passed to tomcat, so it is just served as a text file - but still served. I did strace on apache and I can see that, if *.jsp is mapped to ajp13, apache looks for index.html first even though index.jsp is the first file in DirectoryIndex directive. If I add more index files, i.e DirectoryIndex index.jsp index.html yyy.zzz xxx.yyy apache would look for all of these files before giving up and serving index.jsp - provided it did not find any of the other index files. If there is xxx.yyy, it will get served instead. If *.jsp is not mapped to ajp13, apache looks for index.jsp first, like it supposed to and if there is one does not look further for other index files. If I do not load mod_jk at all, apache would also look for index.jsp first and serve it if found - obviously as a text file. Unfortunately, I have to have both index.jsp and index.html as index files and I need index.jsp to have precedence - our web developers jump back and forth between those tho. The same setup worked fine with apache 1.3.27/mod_jk/tomcat2.something The questions I have are: - Who's at fault here - Apache or mod_jk? - And, more importantly - how do I make index.jsp work as default index file even if index.html is present? Thanks a lot! - 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: mod_jk2, apache and index.jsp
Okay thanks for bring me up to speed on the Linux lingo. I will try to do the same thing you have done in a windows environment. Granted I have already tried this several times with a slightly different configuration. I doubt it will work though but I will give it a shot when I get home. I am at work now. Be looking to hear from me tomorrow unless I can steel away some time to try this at work. Thanks! tp -Original Message- From: Ian Stevens [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 13, 2004 9:20 AM To: 'Tomcat Users List' Subject: RE: mod_jk2, apache and index.jsp Debian is a Linux distribution. Debian Woody is the stable version, and Debian/testing is, well, in a testing state. As you can see from my email, I haven't been able to successfully forward all requests. I was hoping it would be as simple as outlined in the HOWTO, but, as with everything, that was not the case. ian. -Original Message- From: Tonte Pouncil [mailto:[EMAIL PROTECTED] Sent: July 13, 2004 9:55 AM To: Tomcat Users List Subject: RE: mod_jk2, apache and index.jsp Sergei, Ian, and Anybody else: Hello, I am trying to do the same thing, which is to have Apcache 2.0.49 forward all jsp and servlet request to Tomcat 5.0.25 on a windows box. Have you or anyone else been able to get this to work successfully? What is debian/testing? And what is Debian Woody system? Regards, Tonté -Original Message- From: Sergei Genchev [mailto:[EMAIL PROTECTED] Sent: Monday, July 12, 2004 4:49 PM To: [EMAIL PROTECTED] Subject: mod_jk2, apache and index.jsp Hi, I have Apache 2.0.49/Tomcat 5.0.25/mod_jk 2.04 on debian/testing My setup Works Mostly(TM), i.e if I go to http://myserver.mydomain.tld/index.jsp, Apache calls Tomcat and everything works fine. If I just go to http://myserver.mydomain.tld AND there is an index.html file in the webroot directory, index.html gets served instead. Relevant entries in httpd.conf: DirectoryIndex index.jsp index.html ... LocationMatch /*.jsp JkUriSet worker ajp13:localhost:8009 /LocationMatch If I remove index.html from DirectoryIndex and leave just index.jsp there - works fine If I remove LocationMatch /*.jsp entry - index.jsp gets served even if there is index.html present - it does not get passed to tomcat, so it is just served as a text file - but still served. I did strace on apache and I can see that, if *.jsp is mapped to ajp13, apache looks for index.html first even though index.jsp is the first file in DirectoryIndex directive. If I add more index files, i.e DirectoryIndex index.jsp index.html yyy.zzz xxx.yyy apache would look for all of these files before giving up and serving index.jsp - provided it did not find any of the other index files. If there is xxx.yyy, it will get served instead. If *.jsp is not mapped to ajp13, apache looks for index.jsp first, like it supposed to and if there is one does not look further for other index files. If I do not load mod_jk at all, apache would also look for index.jsp first and serve it if found - obviously as a text file. Unfortunately, I have to have both index.jsp and index.html as index files and I need index.jsp to have precedence - our web developers jump back and forth between those tho. The same setup worked fine with apache 1.3.27/mod_jk/tomcat2.something The questions I have are: - Who's at fault here - Apache or mod_jk? - And, more importantly - how do I make index.jsp work as default index file even if index.html is present? Thanks a lot! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Newbie question: Error 503 Service Temp. Unavailable
I am trying to do the same thing as you guys. I have a windows 2000 box. How did you configure the two so far? And what goes in the jk2.socket file? Tonté -Original Message- From: Dale, Matt [mailto:[EMAIL PROTECTED] Sent: Thursday, July 08, 2004 10:16 AM To: Tomcat Users List Subject: RE: Newbie question: Error 503 Service Temp. Unavailable I think you might have to create the file yourself. touch /opt/tomcat/work/jk2.socket Ta Matt -Original Message- From: Birt, Jeffrey [mailto:[EMAIL PROTECTED] Sent: 08 July 2004 16:11 To: [EMAIL PROTECTED] Subject: Newbie question: Error 503 Service Temp. Unavailable Hello all, I've been working on getting Apache 2.0.49 and Tomcat 5.0.25 to play nice together via mod_jk2 connector. Both work fine separately and I get the dreaded 503 Service Temp. Unavailable error. (which seems to have come up a lot on various list but I've yet to find a solution). I've been following along with this guide. http://www.opq.se/sxs/internet_serving/c875.html I'm running Fedora Core 1 with Apache 2.0.49 and Tomcat 5.0.25, both Apache and Tomcat were installed form RPM's, and as mentioned both seem to work fine separately. The only relevant thing I've found in the logs is in the Apache error_log and is as follows: [error] chanelUn.connect() connect failed 2 No such file or directory [error] ajp13.connect() failed ajp13:/opt/tomcat/work/jk2.socket Etc. My jk2.properties is as follows: # jk2.properties # Configured for channel UNIX # Set the desired handler list handler.list=apr,request,channelUnix # UNIX Domain socket location channelUnix.file=/opt/tomcat/work/jk2.socket # Dynamic Library serverRoot=/etc/httpd apr.NativeSo=/usr/lib/httpd/modules/libjkjni.so and workers2.properties: # workers2.properties # Shared memory handling. Needs to be set. [shm] info=Scoreboard. Required for reconfiguration and status with multiprocess serve rs file=/opt/tomcat/logs/jk2.shm size=1048576 debug=0 disabled=0 # UNIX domain socket [channel.un:/opt/tomcat/work/jk2.socket] tomcatId=localhost:8009 debug=0 # define the worker [ajp13:/opt/tomcat/work/jk2.socket] channel=channel.un:/opt/tomcat/work/jk2.socket # Announce a status worker [status:status] info=Status worker. Displays runtime information. [uri:/jkstatus/*] group=status:status # Uri mapping [uri:/examples/*] # Uri mapping for MyFirst [uri:/MyFirst/*] I've added the LoadModule jk2_module etc. in httpd.conf When Tomcat starts a jk2.shm file is created but no jk2.socket file. I'm running everything as root (to make it simpler at this point) and have checked that everything is owned by root (I think). I'm guessing this is caused by incorrect configuration but I don't have a clue as to where to look. Can you guys help a newbie out? Jeff Birt Electronics Engineer Integrated Systems Facility University of Missouri - Rolla 573.341.6058 - 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: Newbie question: Error 503 Service Temp. Unavailable
Do you know how to do this on a windows box? -Original Message- From: Dale, Matt [mailto:[EMAIL PROTECTED] Sent: Thursday, July 08, 2004 10:28 AM To: Tomcat Users List Subject: RE: Newbie question: Error 503 Service Temp. Unavailable The file must exist and be readable and writable by both the tomcat user and the apache user. You won't be able to get UNIX sockets working on a windows 2000 box, obviously. Ta Matt -Original Message- From: Tonte Pouncil [mailto:[EMAIL PROTECTED] Sent: 08 July 2004 16:24 To: Tomcat Users List Subject: RE: Newbie question: Error 503 Service Temp. Unavailable I am trying to do the same thing as you guys. I have a windows 2000 box. How did you configure the two so far? And what goes in the jk2.socket file? Tonté -Original Message- From: Dale, Matt [mailto:[EMAIL PROTECTED] Sent: Thursday, July 08, 2004 10:16 AM To: Tomcat Users List Subject: RE: Newbie question: Error 503 Service Temp. Unavailable I think you might have to create the file yourself. touch /opt/tomcat/work/jk2.socket Ta Matt -Original Message- From: Birt, Jeffrey [mailto:[EMAIL PROTECTED] Sent: 08 July 2004 16:11 To: [EMAIL PROTECTED] Subject: Newbie question: Error 503 Service Temp. Unavailable Hello all, I've been working on getting Apache 2.0.49 and Tomcat 5.0.25 to play nice together via mod_jk2 connector. Both work fine separately and I get the dreaded 503 Service Temp. Unavailable error. (which seems to have come up a lot on various list but I've yet to find a solution). I've been following along with this guide. http://www.opq.se/sxs/internet_serving/c875.html I'm running Fedora Core 1 with Apache 2.0.49 and Tomcat 5.0.25, both Apache and Tomcat were installed form RPM's, and as mentioned both seem to work fine separately. The only relevant thing I've found in the logs is in the Apache error_log and is as follows: [error] chanelUn.connect() connect failed 2 No such file or directory [error] ajp13.connect() failed ajp13:/opt/tomcat/work/jk2.socket Etc. My jk2.properties is as follows: # jk2.properties # Configured for channel UNIX # Set the desired handler list handler.list=apr,request,channelUnix # UNIX Domain socket location channelUnix.file=/opt/tomcat/work/jk2.socket # Dynamic Library serverRoot=/etc/httpd apr.NativeSo=/usr/lib/httpd/modules/libjkjni.so and workers2.properties: # workers2.properties # Shared memory handling. Needs to be set. [shm] info=Scoreboard. Required for reconfiguration and status with multiprocess serve rs file=/opt/tomcat/logs/jk2.shm size=1048576 debug=0 disabled=0 # UNIX domain socket [channel.un:/opt/tomcat/work/jk2.socket] tomcatId=localhost:8009 debug=0 # define the worker [ajp13:/opt/tomcat/work/jk2.socket] channel=channel.un:/opt/tomcat/work/jk2.socket # Announce a status worker [status:status] info=Status worker. Displays runtime information. [uri:/jkstatus/*] group=status:status # Uri mapping [uri:/examples/*] # Uri mapping for MyFirst [uri:/MyFirst/*] I've added the LoadModule jk2_module etc. in httpd.conf When Tomcat starts a jk2.shm file is created but no jk2.socket file. I'm running everything as root (to make it simpler at this point) and have checked that everything is owned by root (I think). I'm guessing this is caused by incorrect configuration but I don't have a clue as to where to look. Can you guys help a newbie out? Jeff Birt Electronics Engineer Integrated Systems Facility University of Missouri - Rolla 573.341.6058 - 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: Newbie question: Error 503 Service Temp. Unavailable
Okay, will do. -Original Message- From: Dale, Matt [mailto:[EMAIL PROTECTED] Sent: Thursday, July 08, 2004 10:35 AM To: Tomcat Users List Subject: RE: Newbie question: Error 503 Service Temp. Unavailable Have a read through this, http://jakarta.apache.org/tomcat/connectors-doc/jk2/index.html and then let me know if you have any more specific questions. But basically you should have a JK2 connector defined in your server.xml, its on port 8009 by default. And you need to define a worker in your workers2.properties in your apache/conf directory that points to this port. Ta Matt -Original Message- From: Tonte Pouncil [mailto:[EMAIL PROTECTED] Sent: 08 July 2004 16:30 To: Tomcat Users List Subject: RE: Newbie question: Error 503 Service Temp. Unavailable Do you know how to do this on a windows box? -Original Message- From: Dale, Matt [mailto:[EMAIL PROTECTED] Sent: Thursday, July 08, 2004 10:28 AM To: Tomcat Users List Subject: RE: Newbie question: Error 503 Service Temp. Unavailable The file must exist and be readable and writable by both the tomcat user and the apache user. You won't be able to get UNIX sockets working on a windows 2000 box, obviously. Ta Matt -Original Message- From: Tonte Pouncil [mailto:[EMAIL PROTECTED] Sent: 08 July 2004 16:24 To: Tomcat Users List Subject: RE: Newbie question: Error 503 Service Temp. Unavailable I am trying to do the same thing as you guys. I have a windows 2000 box. How did you configure the two so far? And what goes in the jk2.socket file? Tonté -Original Message- From: Dale, Matt [mailto:[EMAIL PROTECTED] Sent: Thursday, July 08, 2004 10:16 AM To: Tomcat Users List Subject: RE: Newbie question: Error 503 Service Temp. Unavailable I think you might have to create the file yourself. touch /opt/tomcat/work/jk2.socket Ta Matt -Original Message- From: Birt, Jeffrey [mailto:[EMAIL PROTECTED] Sent: 08 July 2004 16:11 To: [EMAIL PROTECTED] Subject: Newbie question: Error 503 Service Temp. Unavailable Hello all, I've been working on getting Apache 2.0.49 and Tomcat 5.0.25 to play nice together via mod_jk2 connector. Both work fine separately and I get the dreaded 503 Service Temp. Unavailable error. (which seems to have come up a lot on various list but I've yet to find a solution). I've been following along with this guide. http://www.opq.se/sxs/internet_serving/c875.html I'm running Fedora Core 1 with Apache 2.0.49 and Tomcat 5.0.25, both Apache and Tomcat were installed form RPM's, and as mentioned both seem to work fine separately. The only relevant thing I've found in the logs is in the Apache error_log and is as follows: [error] chanelUn.connect() connect failed 2 No such file or directory [error] ajp13.connect() failed ajp13:/opt/tomcat/work/jk2.socket Etc. My jk2.properties is as follows: # jk2.properties # Configured for channel UNIX # Set the desired handler list handler.list=apr,request,channelUnix # UNIX Domain socket location channelUnix.file=/opt/tomcat/work/jk2.socket # Dynamic Library serverRoot=/etc/httpd apr.NativeSo=/usr/lib/httpd/modules/libjkjni.so and workers2.properties: # workers2.properties # Shared memory handling. Needs to be set. [shm] info=Scoreboard. Required for reconfiguration and status with multiprocess serve rs file=/opt/tomcat/logs/jk2.shm size=1048576 debug=0 disabled=0 # UNIX domain socket [channel.un:/opt/tomcat/work/jk2.socket] tomcatId=localhost:8009 debug=0 # define the worker [ajp13:/opt/tomcat/work/jk2.socket] channel=channel.un:/opt/tomcat/work/jk2.socket # Announce a status worker [status:status] info=Status worker. Displays runtime information. [uri:/jkstatus/*] group=status:status # Uri mapping [uri:/examples/*] # Uri mapping for MyFirst [uri:/MyFirst/*] I've added the LoadModule jk2_module etc. in httpd.conf When Tomcat starts a jk2.shm file is created but no jk2.socket file. I'm running everything as root (to make it simpler at this point) and have checked that everything is owned by root (I think). I'm guessing this is caused by incorrect configuration but I don't have a clue as to where to look. Can you guys help a newbie out? Jeff Birt Electronics Engineer Integrated Systems Facility University of Missouri - Rolla 573.341.6058 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Apache2 and Tomcat 5.0.25 Configuration Using Mod_jk2
Hello: I am using window 2000, Apache2, and Tomcat5.0.25. I have downloaded the mod_jk2.so from the tomcat-connectors site. http://jakarta.apache.org/site/binindex.cgi How do I get Apache2 and Tomcat5 to talk to each other using the mod_jk2? If any one know of another solution, please do tell. I have already tried just about every suggestion on different forms, but still no luck. Thanks! Tonté - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: AGAIN: How can you deploy an application onto a specific host?
I normally just use ant to deploy my stuff by dropping a .war file into the webapps dir. -Original Message- From: Ivan Jouikov [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 07, 2004 4:30 PM To: 'Tomcat Users List' Subject: AGAIN: How can you deploy an application onto a specific host? Ive asked this question before but nobody seemed to know the answer. So, Ill ask again So, Tomcat has a maanger application, which allows you to dynamically deploy sutff. Nice. But how can you deploy your stuff onto a SPECIFIC host? Thx. _ Best Regards, Ivan V. Jouikov (206) 228-6670 http://www.ablogic.net/ --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.716 / Virus Database: 472 - Release Date: 05.07.2004