RE: changing the name of tomcat homedir - impact?
You can name it anything you want. I have never once installed tomcat under its default directory name and have never had any problems arise from the practice. -Original Message- From: Christoph P. Kukulies [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 18, 2007 5:38 AM To: [EMAIL PROTECTED] Subject: changing the name of tomcat homedir - impact? I have TOMCAT_HOME=C:\Programme\Apache_Group\Tomcat 6.0 You see the crux? Blank in Tomcat 6.0. Some applications, like mvnForum (www.mvnForum.com) claim in the README or INSTALL instructions that a blank character in the PATH should be avoided (Windows) because of possible unexpected or erroneous behaviour resulting from that. Now, after I had in stalled OpenCMS, Tomcat, MySQL and such and everything is working, I'm asking myself if it would just be sufficient to rename that directory node, change the evironment variable, and done with it. Or would I have to expect surprises from elsewhere? -- Chris Christoph P. U. Kukulies kuku_at_kukulies.org - 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: Very basic web server hosting question
The point is, whether you were using Apache, IIS, or Tomcat, the problem you are trying to resolve is generic and not related to tomcat itself. Thus, this probably isn't the proper forum to direct your question. -Original Message- From: CANADAFAST INC. [mailto:[EMAIL PROTECTED] Sent: Monday, October 30, 2006 1:11 PM To: Tomcat Users List; [EMAIL PROTECTED] Subject: Re: Very basic web server hosting question I don't care if anyone finds this question interesting or not. I just want a solution, if it were in the linksys manual then I would not have posted the question, I tried solving the problem by calling the linksys tech support, also had a chat session with them, but they don't understand the problem itself. Pid [EMAIL PROTECTED] wrote: The reason no-one is finding this an interesting question is that it's not really anything to do with Tomcat. Your LinkSys router probably has a manual, or at least some basic instructions for how to map external ports to the internal server. CANADAFAST INC. wrote: Hello! I am a new tomcat 5.5 user. I have created some JSPs and they run perfectly in my PC using tomcat. I want to make my PC a webserver, so that ppl from outside can access my JSPs through tomcat 5.5 running on my system. My PC is connected to a router and my router is connected to a cable modem which has a static ip address from my cable ISP. But after that I don't know what to do further. How should I configure my tomcat, so that ppl from outside can access my JSP website. hOW SHOULD i access my pc from outside through my linksys router from port 8080 in which tomcat is running on my pc. Thank you - Cheap Talk? Check out Yahoo! Messenger's low PC-to-Phone call rates. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - We have the perfect Group for you. Check out the handy changes to Yahoo! Groups. - 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 5.5 Regular Expression as servlet-mapping url-pattern
Have you tried using getServletContext()? (http://java.sun.com/products/servlet/2.3/javadoc/javax/servlet/ServletC ontext.html) We use this as a means to find and match our properties (stored in a common property container directory by context) since we deploy multiple instances of the same app for different customers. This allows us to deploy for a new customer merely by adding a properties directory for the customer and re-naming the war file to match this. At startup, we ask for our context, look up our properties and then assume that all url mapping will direct to /CONTEXT/ Is this even relevant to your question? :-) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of ben short Sent: Friday, October 27, 2006 8:35 AM To: Tomcat Users List Subject: Tomcat 5.5 Regular Expression as servlet-mapping url-pattern Hi is it possible to use a regular expression as a servlet-mappings url-pattern? Ben - 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 not serving pages
Tomcat doesn't run on port 80 by default, Mike. Try http://localhost:8080/ -Original Message- From: mike dorian [mailto:[EMAIL PROTECTED] Sent: Saturday, October 07, 2006 11:19 AM To: users@tomcat.apache.org Subject: Tomcat not serving pages Hi, Having a bit of a problem on running Tomcat on my Windows XP Home. If I startup Apache server, and type http://localhost it will display the webpage in /htdocs. However, if I startup Tomcat server, and type http://localhost it doesn't display /webapps/Hello.html Would someone be kind enough to explain what I may have missed? Thanks _ Learn English via Shopping Game, FREE! http://www.linguaphonenet.com/BannerTrack.asp?EMSCode=MSN06-03ETFJ-0211E - 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 logging problem
I tried your script both ways and it worked flawlessly on a CentOS 3.6 box. I would take a look under which user the jvm is running after you start your script. (ps -ef | grep java) If it is running as root then that might indicate that something about the su command isn't working as expected. It also might be that you once ran the jvm as root and it isn't your startup script at all but the fact that the log files were once created with root ownership. Thus, subsequent tomcat invocations fail to write to existing logs due to invalid permissions. Have you tried removing the logs and running your startup script again? Also, in my experience it would be better to add more checking to see that the java vm has truly stopped in the restart logic. Java has to unload everything at stop time and 10 seconds is not always enough. The default shutdown.sh script will exit with a normal return code even if the jvm is still running. So, a good number of times, the listening ports will still be in use when the start command is executed throwing lots of nasty exceptions. You could modify startup.sh so that it doesn't exit until the jvm is stopped, or modify your 'sleep' statement such that it has process checking logic that waits for some period of time for the jvm to exit and if it fails kill it. The latter is more desirable since you will probably upgrade tomcat at some point and do not want to risk losing your changes or having to adapt them as the startup and shutdown scripts change over time. -Original Message- From: Tejas Dhedia [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 03, 2006 6:00 PM To: users@tomcat.apache.org Subject: Tomcat logging problem Hi, I am running tomcat 5.5.17 under opensuse 10.1 and my JVM version is 1.5.0_06. I am running my tomcat as a seperate tomcat user and starting it at boot time using the following script in /etc/init.d. #!/bin/sh # # Startup script for Tomcat JAVA_HOME=/usr/lib/jvm/java export JAVA_HOME start_tomcat=/home/tomcat/apache-tomcat-5.5.17/bin/startup.sh stop_tomcat=/home/tomcat/apache-tomcat-5.5.17/bin/shutdown.sh start() { echo -n Starting tomcat: su -c ${start_tomcat} - tomcat echo done. } stop() { echo -n Shutting down tomcat: ${stop_tomcat} echo done. } # See how we were called case $1 in start) start ;; stop) stop ;; restart) stop sleep 10 start ;; *) echo Usage: $0 {start|stop|restart} esac I get following error output in my catalina.out file java.util.logging.ErrorManager: 4 java.io.FileNotFoundException: /home/tomcat/apache-tomcat-5.5.17 /logs/localhost.2006-10-02.log (Permission denied) at java.io.FileOutputStream.openAppend(Native Method) at java.io.FileOutputStream.init(FileOutputStream.java:177) at java.io.FileOutputStream.init(FileOutputStream.java:102) at java.io.FileWriter.init(FileWriter.java:61) at org.apache.juli.FileHandler.open(FileHandler.java:256) at org.apache.juli.FileHandler.init(FileHandler.java:50) java.util.logging.ErrorManager: 4 java.io.FileNotFoundException: /home/tomcat/apache-tomcat-5.5.17 /logs/admin.2006-10-02.log (Permission denied) at java.io.FileOutputStream.openAppend(Native Method) . java.util.logging.ErrorManager: 4 java.io.FileNotFoundException: /home/tomcat/apache-tomcat-5.5.17/logs/host- manager.2006-10-02.log (Permission denied) at java.io.FileOutputStream.openAppend(Native Method) As a result nothing is being logged. On checking I found that the log files were being created with owner as root instead of tomcat. Can someone please help me find where am i going wrong. Thanks Tejas - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[Solution] mod_jk: Could not find a worker for worker name=worker1
I was having a bit of trouble with mod_jk1.2.19 and virtual host configuration in apache 2. I hope I can shed some light on what I discovered and put this question to rest. The error message in the subject can be found all over the net with no helpful responses.I know, I was having this problem and every post about this problem led to a dead end. In re-stating the problem and attempting to provide more clues, I found a solution but have no insight into why this fixes the problem. The goal is to hook up apache with tomcat via mod_jk such that I can have separate domains pointing at distinct deployments in the webapps directory. Thus pounding on http://it7.blah.com http://it7.blah.com/ would connect via mod_jk to the tomcat app in ${tomcat.home}/webapps/it7 and http://it8.blah.com http://it8.blah.com/ to ${tomcat.home}/webapps/it8 I had successfully configured Tomcat (5.5.16) and mod_jk as evidenced by my working apps and the mod_jk.conf file that is generated under ${tomcat.home}/conf/auto/ The problem arose when configuring apache. My worker.properties file is located in /etc/httpd/conf/worker.properties and tomcat references it and apparently understands it well enough to create a mod_jk.conf file which has a (visually) correct virtual host for every container app in tomcat. This isn't exactly what I want however, so I am not using it other than as evidence that parts of this configuration are working properly. With my configuration( See below), after restarting apache, the following appears in the mod_jk.log file. [Wed Sep 27 16:01:18 2006] [2867:63648] [debug] jk_map_resolve_references::jk_map.c (638): Checking for references with prefix worker. with wildcard (recursion1) [Wed Sep 27 16:01:18 2006] [2867:63648] [debug] build_worker_map::jk_worker.c (236): creating worker worker1 [Wed Sep 27 16:01:18 2006] [2867:63648] [debug] wc_create_worker::jk_worker.c (141): about to create instance worker1 of ajp13 [..] [Wed Sep 27 16:01:18 2006] [2867:63648] [debug] build_worker_map::jk_worker.c (236): creating worker inprocess [Wed Sep 27 16:01:18 2006] [2867:63648] [error] wc_create_worker::jk_worker.c (134): Unknown worker type jni for worker inprocess --- Huh? [Wed Sep 27 16:01:18 2006] [2867:63648] [error] build_worker_map::jk_worker.c (256): failed to create worker inprocess [Wed Sep 27 16:01:18 2006] [2867:63648] [debug] close_workers::jk_worker.c (212): close_workers will destroy worker worker1 --- my worker is getting destroyed [Wed Sep 27 16:01:18 2006] [2867:63648] [debug] ajp_destroy::jk_ajp_common.c (2131): up to 10 endpoints to close [Wed Sep 27 16:01:19 2006] [3052:63648] [debug] do_shm_open::jk_shm.c (252): Shared memory is already open [] [Wed Sep 27 16:01:19 2006] [3052:63648] [debug] jk_handler::mod_jk.c (1920): Into handler jakarta-servlet worker=worker1 r-proxyreq=0 [Wed Sep 27 16:01:19 2006] [3052:63648] [debug] wc_get_worker_for_name::jk_worker.c (111): did not find a worker worker1 [Wed Sep 27 16:01:19 2006] [3052:63648] [info] jk_handler::mod_jk.c (2071): Could not find a worker for worker name=worker1 This message was originally to be a plea for help and in reviewing the data and configuration, I discovered that the inprocess worker is in the worker.properties sample file by default. worker.list=worker1,inprocess worker1 is ajp13 in the sample. The problem appears to be that inprocess shouldn't be in the worker.list. When I remove the inprocess worker from the list, I get the results I was after. It all appears to work properly now. Specific (broken) configuration is below. From httpd.conf: JkWorkersFile /etc/httpd/conf/workers.properties # Where to put the JK logs JkLogFile /var/log/httpd/mod_jk.log # jk log level JkLogLevel debug # select the log format JkLogStampFormat [%a %b %d %H:%M:%S %Y] # JkOptions indicate to send SSL KEY SIZE, JkOptions +ForwardKeySize +ForwardURICompat +ForwardDirectories # JkRequestLogFormat set the request format JkRequestLogFormat %w %V %T In the Virtualhost container: VirtualHost it7.blah.com alias / /usr/local/tomcat/webapps/it7/ Directory /usr/local/tomcat/webapps/it7/ Options Indexes FollowSymLinks DirectoryIndex index.jsp /Directory Location /WEB-INF/* AllowOverride None deny from all /Location Location /META-INF/* AllowOverride None deny from all /Location JkMount /*.jsp worker1 JkMount /*.action worker1 JkMount /*.vm worker1 JkMount /service/* worker1 /VirtualHost worker.list=worker1,inprocess worker.worker1.port=8009 worker.worker1.host=qe-app1.itn.hire.com worker.worker1.type=ajp13 worker.worker1.lbfactor=1