Re: Difficulty with the latest Tomcat 6.x on Windows XP
--- HARBOR: http://coolharbor.100free.com/index.htm The most powerful application server on earth. The only real POJO Application Server. Making the Java dream come true. --- Perry I think something is just using port 8080 You can change it in tomcat server.xml or type netstat -noa in a dos box and find the thing that is using it... dont think its a fire wall issue, more likely an application like Skype that is using that port - Original Message - From: perry anderson [EMAIL PROTECTED] To: users@tomcat.apache.org Sent: Tuesday, February 19, 2008 12:30 AM Subject: Difficulty with the latest Tomcat 6.x on Windows XP I have tried both Tomcat 4.1.x and the latest 6.x on my networked Windows XP desktop at work. It is a government office so there could be plenty of firewalls in effect. The Windows XP firewall however is not operational. The experience that I am having is that in one case, Tomcat seems to start but when I type localhost:8080 I am met with a blank white page and the url resets to local:8080 (no leading http:/ or anything). In another case, I try to start Tomcat as a service but it refuses to start. I would really really like to be running Tomcat at work as I need to be doing some JSP and Webservices. I have been able to get Tomcat running on my home computer just fine. At home I have both a Windows XP and a Linux installation where I have been able to use Tomcat with no problems. The computer at work is running firewalls of some nature and also has McAfee running on the desktop. Don't know if this has anything to do with it. At this point I don't even know where to check first to even begin to address the problem. Any and all help would be greatly appreciated. Thanks - Perry -- Perry Anderson [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: Mapping JSP's to outside of the war or expanded folder
We use windows on the dev workstatios and unix (SunOS 5.10 Generic_120011-14 sun4v sparc SUNW,Sun-Fire-T200) on dev/qa/production servers. We use Java 5 and we are migrating to tomcat 5.5 or 6. Ralph, why do you say it's dangerous? Even if it doesn't have java code, it would have tagslibs. Actually I don't really see any advantage using Velocity than JSP here. Anyway, we are quite a big company and I couldn't ask to change our tecnology just like this. We use this currently with resin, and it works just fine. We leave css, jsp and html in a separated root. If I use sym links it would be more difficult for developers to work with windows, although they could still copy everything to inside their webapps/[context], anyway it would be a more clumsy solution. I managed to get css/images and html as a separated context in tomcat. The only problem for me now is to have the JSP's separated. Would exist a plugin or some hack (argh) that would enable to map the JSP's from somewhere else in the file system? Thanks Emerson On 18/02/2008, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: We also do this with Velocity (we use Spring MVC rather than JSP) and point our Velocity ResourceLoader to somewhere else on the filesystem (away from any Apache document root so they aren't accessible). This brings benefits of being able to do hot-deploy of content/templates for urgent copy changes, should we need to, ability to work with things like AlFresco, and not having any logic other than minimal presentational logic in the view layer. -Original Message- From: Ralph Goers [mailto:[EMAIL PROTECTED] Sent: 18 February 2008 17:37 To: Tomcat Users List Subject: Re: Mapping JSP's to outside of the war or expanded folder We have a similar need. But doing this with JSPs is very dangerous since they can have java code within them. Instead, using a templating language like Velocity would seem to be a mucn better approach. emerson cargnin wrote: The policy of our company is to deploy the jsp's separated from the war file, to allow a finer grained control over deployment. I'm not very fan of it, but it's something I won't be able to change. So I need a way to point the following URL's to another place in the file system. http://server/[context]/jsp/* http://server/[context]/css/* http://server/[context]/html/* http://server/[context]/images/* Thanks emerson On 18/02/2008, David Brown [EMAIL PROTECTED] wrote: Once the .war is expanded why would you want to map to JSPs outside of the file system package? emerson cargnin wrote .. Hi there We use resin here in my work. Resin allows in its web.xml an element like: path-mapping url-pattern/jsp/*/url-pattern real-pathc:/resin/resin-2.1.4/apps/ucs//real-path /path-mapping path-mapping This can also be used in resin.conf, amking the war more portable. Now we are starting a migration to tomcat. But as far as I know TC doesnt not allow to have the JSP's out side of the war or the expanded war. I did a research a couple of years ago. Did it changed? Is there anyway now of mapping the jsp's of an app to an outside folder? Thanks Emerson Cargnin - 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] - 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: Tomcat6, Apache, and mod_jk configuration
Hard to tell, without any version, plattform, configuration and log file content information... Usually, if it's mod_jk 1.2.26: Don't forget to put your JkMount into the VirtualHost (or use JkMountCopy). Regards, Rainer Da Rock wrote: I'm trying to get all of the above working together peacefully with no success whatsoever. I've got Tomcat working, and Apache has always worked as per usual, but mod_jk will simply not work. I'm running all this on freebsd server, and when I navigate to /webapps on the server I get a 404 error- but from the Tomcat server! Yet navigating directly on the Tomcat server works fine. Am I missing something? - 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: Tomcat6, Apache, and mod_jk configuration
Yep, something is not right with the Apache config. You need to monitor some logs somewhere. Turn on more logging level before you start i.e. level=Debug or some such value. HTH. Da Rock wrote .. I'm trying to get all of the above working together peacefully with no success whatsoever. I've got Tomcat working, and Apache has always worked as per usual, but mod_jk will simply not work. I'm running all this on freebsd server, and when I navigate to /webapps on the server I get a 404 error- but from the Tomcat server! Yet navigating directly on the Tomcat server works fine. Am I missing something? - 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: Tomcat6, Apache, and mod_jk configuration
Is it the Apache? Or is it the Tomcat? All the logs say ok... so As I mentioned this is a FreeBSD server- 6.2, Apache2.2, Tomcat 6.0, mod_jk? (latest from FreeBSD ports 1.2.26?). My httpd.conf includes a mod_jk.conf file and the mod_jk.conf calls a workers.properties file. So do I need to put a reference in virtualhosts, or can I use it globally? mod_jk.conf: IfModule mod_jk.c JkWorkersFile /usr/local/etc/apache22/extra/workers.properties JkLogFile /var/log/jk.log JkShmFile /var/log/jk-runtime-status JkLogLevel error # Sample JkMounts. Replace these with the paths you would # like to mount from your JSP server. JkMount /*.jsp localhost JkMount /servlet/* localhost JkMount /examples/* localhost JkMount /login/j_security_check localhost /IfModule # Map encoded urls Location *;jsessionid= SetHandler jakarta-servlet /Location # Map subdirectory Location /webapps/ SetHandler jakarta-servlet /Location workers.properties: worker.worker1.port=8009 worker.worker1.host=127.0.0.1 worker.worker1.type=ajp13 worker.worker1.lbfactor=1 In the mod_jk.conf file I changed the JkMount entries to occur outside the IfModule directive, and ran apachectl -k graceful but still no change. I then navigated to /servlets (in httpd.conf there is a Directory directive for /webapps only, referencing the tomcat web directory) and a 404 error from Apache saying /servlets not found. On Tue, 2008-02-19 at 05:01 -0600, David Brown wrote: Yep, something is not right with the Apache config. You need to monitor some logs somewhere. Turn on more logging level before you start i.e. level=Debug or some such value. HTH. Da Rock wrote .. I'm trying to get all of the above working together peacefully with no success whatsoever. I've got Tomcat working, and Apache has always worked as per usual, but mod_jk will simply not work. I'm running all this on freebsd server, and when I navigate to /webapps on the server I get a 404 error- but from the Tomcat server! Yet navigating directly on the Tomcat server works fine. Am I missing something? - 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 Tomcat take about 15 minutes to start?
for me it looks like a dtd problem. I would check whether you got a remote dtd in your xml files and replace it with lokal. For example the web.xml contains one. regards Leon On Feb 19, 2008 3:26 PM, Mohamed Mohamedin [EMAIL PROTECTED] wrote: The log is like this in the lines that cause the problem: Feb 18, 2008 10:26:57 PM org.apache.catalina.core.StandardEngine start INFO: Starting Servlet Engine: Apache Tomcat/5.5.25 Feb 18, 2008 10:26:57 PM org.apache.catalina.core.StandardHost start INFO: XML validation disabled log4j:WARN No appenders could be found for logger (org.apache.commons.digester.Digester.sax). log4j:WARN Please initialize the log4j system properly. The delay are between the line INFO: XML validation disabled and the next one log4j:WARN No appenders could be found for logger And then the application starts correctly (Enhydra application) and in about 2 seconds 2008-02-18 22:39:32,036: (first log message from the application) . . . Feb 18, 2008 10:39:33 PM org.apache.catalina.startup.Catalina start INFO: Server startup in 756278 ms (last log message) Also I have no iptables. Thanks -Original Message- From: Christopher Schultz [mailto:[EMAIL PROTECTED] Sent: Monday, February 18, 2008 9:45 PM To: Tomcat Users List Subject: Re: Why Tomcat take about 15 minutes to start? -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mohamed, Mohamed Mohamedin wrote: | I am using Tomcat 5.5.25 on SUSE Linux 10.1 (X86-64) and Java 1.5.0_10 from | Sun. | When I run Tomcat using catalina.sh start and watching the log it stop at | INFO: XML validation disabled and take about 15 minutes before continuing | next lines and starting. Please help me to know why? After the 15 minute delay, what log messages are in the log file? I'm wondering if the delay is related to repeated failed DNS lookups or even a firewall issue when trying to grab a DTD or XML Schema. Do you have iptables blocking anything in particular? Are you getting anything in your kernel log related to dropped packets? Finally, does the application start up correctly (eventually)? - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.8 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAke54D8ACgkQ9CaO5/Lv0PDfUwCgjYJKTQz9n4goNxo4WfrlRcHv 3jMAnjdobEvsNNKEiTINW53G8tCXYqyK =gCg0 -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] __ NOD32 2883 (20080218) Information __ This message was checked by NOD32 antivirus system. http://www.eset.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: Why Tomcat take about 15 minutes to start?
The log is like this in the lines that cause the problem: Feb 18, 2008 10:26:57 PM org.apache.catalina.core.StandardEngine start INFO: Starting Servlet Engine: Apache Tomcat/5.5.25 Feb 18, 2008 10:26:57 PM org.apache.catalina.core.StandardHost start INFO: XML validation disabled log4j:WARN No appenders could be found for logger (org.apache.commons.digester.Digester.sax). log4j:WARN Please initialize the log4j system properly. The delay are between the line INFO: XML validation disabled and the next one log4j:WARN No appenders could be found for logger And then the application starts correctly (Enhydra application) and in about 2 seconds 2008-02-18 22:39:32,036: (first log message from the application) . . . Feb 18, 2008 10:39:33 PM org.apache.catalina.startup.Catalina start INFO: Server startup in 756278 ms (last log message) Also I have no iptables. Thanks -Original Message- From: Christopher Schultz [mailto:[EMAIL PROTECTED] Sent: Monday, February 18, 2008 9:45 PM To: Tomcat Users List Subject: Re: Why Tomcat take about 15 minutes to start? -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mohamed, Mohamed Mohamedin wrote: | I am using Tomcat 5.5.25 on SUSE Linux 10.1 (X86-64) and Java 1.5.0_10 from | Sun. | When I run Tomcat using catalina.sh start and watching the log it stop at | INFO: XML validation disabled and take about 15 minutes before continuing | next lines and starting. Please help me to know why? After the 15 minute delay, what log messages are in the log file? I'm wondering if the delay is related to repeated failed DNS lookups or even a firewall issue when trying to grab a DTD or XML Schema. Do you have iptables blocking anything in particular? Are you getting anything in your kernel log related to dropped packets? Finally, does the application start up correctly (eventually)? - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.8 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAke54D8ACgkQ9CaO5/Lv0PDfUwCgjYJKTQz9n4goNxo4WfrlRcHv 3jMAnjdobEvsNNKEiTINW53G8tCXYqyK =gCg0 -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] __ NOD32 2883 (20080218) Information __ This message was checked by NOD32 antivirus system. http://www.eset.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: Mapping JSP's to outside of the war or expanded folder
emerson cargnin wrote: We use windows on the dev workstatios and unix (SunOS 5.10 Generic_120011-14 sun4v sparc SUNW,Sun-Fire-T200) on dev/qa/production servers. We use Java 5 and we are migrating to tomcat 5.5 or 6. Ralph, why do you say it's dangerous? Even if it doesn't have java code, it would have tagslibs. Actually I don't really see any advantage using Velocity than JSP here. Since JSPs can contain any Java code, someone could put in code that does something completely unrelated to your application (send passwords or account information somewhere, etc). This is pretty hard to do without being detected when the JSPs are inside of a War file. When you put them outside of the war the controls are necessarily loosened because, presumably, you actually want people to be able to change these from time to time - so you may never know when one was changed inappropriately. With templates this can still happen, but since they can't add anything to a template that does more than change the view this isn't that dangerous. Ralph - 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 Tomcat take about 15 minutes to start?
Try (temporarily of course) 1) disabling DNS lookups 2) disabling outbound port 80 connections -Tim Mohamed Mohamedin wrote: The log is like this in the lines that cause the problem: Feb 18, 2008 10:26:57 PM org.apache.catalina.core.StandardEngine start INFO: Starting Servlet Engine: Apache Tomcat/5.5.25 Feb 18, 2008 10:26:57 PM org.apache.catalina.core.StandardHost start INFO: XML validation disabled log4j:WARN No appenders could be found for logger (org.apache.commons.digester.Digester.sax). log4j:WARN Please initialize the log4j system properly. The delay are between the line INFO: XML validation disabled and the next one log4j:WARN No appenders could be found for logger And then the application starts correctly (Enhydra application) and in about 2 seconds 2008-02-18 22:39:32,036: (first log message from the application) . . . - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
ActionScript Packages in Tomcat
Hello all. Does anyone know if there is a preferred/standard place to put custom ActionScript packages/classes in Tomcat 6? If so, which configuration files need to be modified? Any other clues? BTW, I plan to call the ActionScript(s) from a flex application which will live in the webapps/myroot directory. Thanks all! A Java Programmer who loves Linux - [EMAIL PROTECTED] - Never miss a thing. Make Yahoo your homepage.
Re: Mapping JSP's to outside of the war or expanded folder
This is not really an issue for me, as the access to the servers are totally strict and... any idea on how to map to the jsp's outside? Nobody ever need it? how do people migrate from resin then? On 19/02/2008, Ralph Goers [EMAIL PROTECTED] wrote: emerson cargnin wrote: We use windows on the dev workstatios and unix (SunOS 5.10 Generic_120011-14 sun4v sparc SUNW,Sun-Fire-T200) on dev/qa/production servers. We use Java 5 and we are migrating to tomcat 5.5 or 6. Ralph, why do you say it's dangerous? Even if it doesn't have java code, it would have tagslibs. Actually I don't really see any advantage using Velocity than JSP here. Since JSPs can contain any Java code, someone could put in code that does something completely unrelated to your application (send passwords or account information somewhere, etc). This is pretty hard to do without being detected when the JSPs are inside of a War file. When you put them outside of the war the controls are necessarily loosened because, presumably, you actually want people to be able to change these from time to time - so you may never know when one was changed inappropriately. With templates this can still happen, but since they can't add anything to a template that does more than change the view this isn't that dangerous. Ralph - 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: Manager undeploy task only stops webapp
Hi, I'm still investigating this issue. Same behaviour if I use manager directly through the interface instead of using ant task. There has been a message reciently explaining the causes of undeployement problem. It says that an application not shutting down properly because threads still running. Below you can see the thread dump of my webapp only stopped and not deployed. To me, it seems like everything is ok, and threads are not waiting for my webapp. Any hints on this issue? To me it seems like something has changed in tomcat 6.0.16 because undeployement works ok until this version. Many Thanks Full thread dump Java HotSpot(TM) Client VM (1.5.0_11-b03 mixed mode): http-8080-2 daemon prio=6 tid=0x0ae56dc8 nid=0x858 in Object.wait() [0x0b70f000..0x0b70f9e8] at java.lang.Object.wait(Native Method) - waiting on 0x0339e828 (a org.apache.tomcat.util.net.JIoEndpoint$Worker) at java.lang.Object.wait(Object.java:474) at org.apache.tomcat.util.net.JIoEndpoint$Worker.await(JIoEndpoint.java:416) - locked 0x0339e828 (a org.apache.tomcat.util.net.JIoEndpoint$Worker) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:442) at java.lang.Thread.run(Thread.java:595) http-8080-1 daemon prio=6 tid=0x0ae6bfb0 nid=0xb34 in Object.wait() [0x0b6cf000..0x0b6cfa68] at java.lang.Object.wait(Native Method) - waiting on 0x0335bd28 (a org.apache.tomcat.util.net.JIoEndpoint$Worker) at java.lang.Object.wait(Object.java:474) at org.apache.tomcat.util.net.JIoEndpoint$Worker.await(JIoEndpoint.java:416) - locked 0x0335bd28 (a org.apache.tomcat.util.net.JIoEndpoint$Worker) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:442) at java.lang.Thread.run(Thread.java:595) TP-Monitor daemon prio=6 tid=0x0ae6b1d8 nid=0xa44 in Object.wait() [0x0b68f000..0x0b68fae8] at java.lang.Object.wait(Native Method) - waiting on 0x0334cd30 (a org.apache.tomcat.util.threads.ThreadPool$MonitorRunnable) at org.apache.tomcat.util.threads.ThreadPool$MonitorRunnable.run(ThreadPool.java:565) - locked 0x0334cd30 (a org.apache.tomcat.util.threads.ThreadPool$MonitorRunnable) at java.lang.Thread.run(Thread.java:595) TP-Processor4 daemon prio=6 tid=0x0ad5bb88 nid=0x720 runnable [0x0b64f000..0x0b64fbe8] at java.net.PlainSocketImpl.socketAccept(Native Method) at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:384) - locked 0x0334cdd8 (a java.net.SocksSocketImpl) at java.net.ServerSocket.implAccept(ServerSocket.java:450) at java.net.ServerSocket.accept(ServerSocket.java:421) at org.apache.jk.common.ChannelSocket.accept(ChannelSocket.java:306) at org.apache.jk.common.ChannelSocket.acceptConnections(ChannelSocket.java:660) at org.apache.jk.common.ChannelSocket$SocketAcceptor.runIt(ChannelSocket.java:870) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:690) at java.lang.Thread.run(Thread.java:595) TP-Processor3 daemon prio=6 tid=0x0ad5ba00 nid=0x83c in Object.wait() [0x0b60f000..0x0b60fb68] at java.lang.Object.wait(Native Method) - waiting on 0x0334cfe8 (a org.apache.tomcat.util.threads.ThreadPool$ControlRunnable) at java.lang.Object.wait(Object.java:474) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:662) - locked 0x0334cfe8 (a org.apache.tomcat.util.threads.ThreadPool$ControlRunnable) at java.lang.Thread.run(Thread.java:595) TP-Processor2 daemon prio=6 tid=0x0ad5c478 nid=0x468 in Object.wait() [0x0b5cf000..0x0b5cfc68] at java.lang.Object.wait(Native Method) - waiting on 0x0334d080 (a org.apache.tomcat.util.threads.ThreadPool$ControlRunnable) at java.lang.Object.wait(Object.java:474) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:662) - locked 0x0334d080 (a org.apache.tomcat.util.threads.ThreadPool$ControlRunnable) at java.lang.Thread.run(Thread.java:595) TP-Processor1 daemon prio=6 tid=0x0ad5c260 nid=0x6a8 in Object.wait() [0x0b58f000..0x0b58fce8] at java.lang.Object.wait(Native Method) - waiting on 0x0334d118 (a org.apache.tomcat.util.threads.ThreadPool$ControlRunnable) at java.lang.Object.wait(Object.java:474) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:662) - locked 0x0334d118 (a org.apache.tomcat.util.threads.ThreadPool$ControlRunnable) at java.lang.Thread.run(Thread.java:595) http-8080-Acceptor-0 daemon prio=6 tid=0x0b055da8 nid=0xa40 runnable [0x0b54f000..0x0b54fd68] at java.net.PlainSocketImpl.socketAccept(Native Method) at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:384) - locked 0x02feb840 (a java.net.SocksSocketImpl) at
RE: Xmx and Xms where are these values set
From: Modha Khammammettu [mailto:[EMAIL PROTECTED] Subject: Xmx and Xms where are these values set I have a web app which runs on tomcat 5.5 Tomcat comes up as a service. Question: Where are these memory setting coming from Run the tomcat5w.exe program, and look under the Java tab. - 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]
Re: JASPER libraries incompatibilities
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hitesh, Hitesh Raghav wrote: | I've web-app developed to run with Tomcat 4.2. It used to work perfectly | fine with Tomcat 4.2. 4.2? I don't think there was ever a Tomcat 4.2. Do you mean 4.1? | When same web-app is deployed on Tomcat v5.5.x or v6.0.y, it fails by | throwing NullPointerException. Tomcat 4.1 had a lot of ... let's say wiggle-room when it comes to either violating the Servlet Specification. Later versions are much more strict when it comes to following the rules. You probably want to audit your tag library to see if it is compatible (if it is a 3rd-party library) or review your own code (if this was an in-house tag library) to see if you have done something potentially dangerous. | It works perfectly fine, when we replace JASPER libraries from Tomcat | v4.2 (from apache-tomcat\common\lib folder). Don't do that. It will cause you nothing but trouble. Jasper wasn't designed (I don't think) to be moved between versions of Tomcat. You are likely to have more problems down the road if you attempt to run the Jasper from TC 4.1 on TC 5.5 or 6.0. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.8 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAke6+JQACgkQ9CaO5/Lv0PDUAwCbBMuq+y23gW9Len+1LW8YhAtE o+IAn2R+gLdr5T+PgpwkHFTn+HUmDK7c =k0hH -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]
RE: Mapping JSP's to outside of the war or expanded folder
From: emerson cargnin [mailto:[EMAIL PROTECTED] Subject: Re: Mapping JSP's to outside of the war or expanded folder and... any idea on how to map to the jsp's outside? Nobody ever need it? how do people migrate from resin then? Nobody needs it because it's a clear violation of the servlet JSP specs. It's somewhat ironic that your company appears to have a policy that requires non-adherence to the technology specification they choose to employ. The fact that resin supports such a violation is just another example of how some vendors try to lock customers into their unique implementations by providing non-compliant capabilities. - 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]
RE: Xmx and Xms where are these values set
I did that but it has no effect. The problem is what ever I do I still see the same line as output MyMc 2008-02-15 05:05:02,925 INFO Memory usage: 249.923 MB used, 762.700 MB free, 1012.625 MB total, 1012.625 MB max Is tomcat using some default setting to come up with this 1012.625GB, where is this value comming from? Thanks -Original Message- From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 19, 2008 10:32 AM To: Tomcat Users List Subject: RE: Xmx and Xms where are these values set From: Modha Khammammettu [mailto:[EMAIL PROTECTED] Subject: Xmx and Xms where are these values set I have a web app which runs on tomcat 5.5 Tomcat comes up as a service. Question: Where are these memory setting coming from Run the tomcat5w.exe program, and look under the Java tab. - 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: Using mod_jk with other Java programs
Implementing AJP just to get proxying may be more than you want to do. However, to address your question, notice in jk-workers.properties that mod_jk doesn't point to programs; it points to host:port pairs. Whatever is listening to that port on that host will get the requests that mod_jk siphons off for that worker. (The URL/worker mapping is done with jkMount directives in the main config.) -- Mark H. Wood, Lead System Programmer [EMAIL PROTECTED] Typically when a software vendor says that a product is intuitive he means the exact opposite. pgpgPnqFeVfpe.pgp Description: PGP signature
Re: Tomcat6, Apache, and mod_jk configuration
Since you defined worker1 in you worker.properties, you should use worker1 in the JkMount section of your httpd.conf instead of using localhost below is an example of my configuration which works: LoadModule jk_module modules/mod_jk.so JkWorkersFile /etc/httpd/conf/workers.properties JkLogFile /etc/httpd/logs/mod_jk.log JkLogLevel info JkLogStampFormat [%a %b %d %H:%M:%S %Y] JkMount /*.jsp wrkr JkMount /servlet/* wrkr in workers.properties # workers.properties - ajp13 # # List workers worker.list=wrkr # # Define wrkr worker.wrkr.port=8009 worker.wrkr.host=localhost worker.wrkr.type=ajp13 worker.wrkr.cachesize=10 worker.wrkr.cache_timeout=600 worker.wrkr.socket_timeout=300 Jiansen On Feb 19, 2008 8:43 AM, Da Rock [EMAIL PROTECTED] wrote: Is it the Apache? Or is it the Tomcat? All the logs say ok... so As I mentioned this is a FreeBSD server- 6.2, Apache2.2, Tomcat 6.0, mod_jk? (latest from FreeBSD ports 1.2.26?). My httpd.conf includes a mod_jk.conf file and the mod_jk.conf calls a workers.properties file. So do I need to put a reference in virtualhosts, or can I use it globally? mod_jk.conf: IfModule mod_jk.c JkWorkersFile /usr/local/etc/apache22/extra/workers.properties JkLogFile /var/log/jk.log JkShmFile /var/log/jk-runtime-status JkLogLevel error # Sample JkMounts. Replace these with the paths you would # like to mount from your JSP server. JkMount /*.jsp localhost JkMount /servlet/* localhost JkMount /examples/* localhost JkMount /login/j_security_check localhost /IfModule # Map encoded urls Location *;jsessionid= SetHandler jakarta-servlet /Location # Map subdirectory Location /webapps/ SetHandler jakarta-servlet /Location workers.properties: worker.worker1.port=8009 worker.worker1.host=127.0.0.1 worker.worker1.type=ajp13 worker.worker1.lbfactor=1 In the mod_jk.conf file I changed the JkMount entries to occur outside the IfModule directive, and ran apachectl -k graceful but still no change. I then navigated to /servlets (in httpd.conf there is a Directory directive for /webapps only, referencing the tomcat web directory) and a 404 error from Apache saying /servlets not found. On Tue, 2008-02-19 at 05:01 -0600, David Brown wrote: Yep, something is not right with the Apache config. You need to monitor some logs somewhere. Turn on more logging level before you start i.e. level=Debug or some such value. HTH. Da Rock wrote .. I'm trying to get all of the above working together peacefully with no success whatsoever. I've got Tomcat working, and Apache has always worked as per usual, but mod_jk will simply not work. I'm running all this on freebsd server, and when I navigate to /webapps on the server I get a 404 error- but from the Tomcat server! Yet navigating directly on the Tomcat server works fine. Am I missing something? - 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 Tomcat take about 15 minutes to start?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Neha, Neha Agrawal wrote: | i recompiled my APR 1.2.7 with /dev/urandom Exactly how did you do this? Are you sure you did it correctly? If you were recompiling, why not upgrade to the most recent version (1.2.12)? | and hence recompiled Native libraries | (because Native library builds with --with-apr-) What other native library? | i did not recompile the jsvc part though You should not have to. | Is there any other way to look to threads dump? This is, IMO, the best way to look at a thread dump. What other way were you expecting? By the way, you didn't tell us /when/ you took the thread dump. Was this during the 12 minute delay? This is interesting: | Thread 26595: (state = IN_NATIVE) | - | org.apache.tomcat.jni.SSL.initialize(java.lang.String) | @bci=0 (Interpreted frame) | - org.apache.tomcat.util.net.AprEndpoint.init() | @bci=486, line=633 (Interpreted frame) | - org.apache.coyote.http11.Http11AprProtocol.init() | @bci=26, line=116 (Interpreted frame) Hey, look at that! SSL is initializing. Surprise, surprise. | PID USER PR NI VIRT RES SHR S %CPU %MEM | 26595 tomcat6 15 0 1713m 54m 12m S0 1.4 0% CPU? SSL init? That guy's waiting for entropy, man. During that long pause, try using either lsof or fuser to find out what files are being used. This is what fuser gives me on my system: $ fuser -uv /dev/urandom ~ USERPID ACCESS COMMAND /dev/urandom:chris 3047 f (chris)java ~ chris 14835 f (chris)java ~ chris 17679 f (chris)java ~ chris 7658 f (chris)java ~ chris 10825 f (chris)java ~ chris 4176 f (chris)java lsof gives me similar output: $ lsof | grep '/dev/urandom' java 3047 chris4r CHR1,91446631 /dev/urandom java 3047 chris5r CHR1,91446631 /dev/urandom java 4176 chris4r CHR1,91446631 /dev/urandom java 4176 chris5r CHR1,91446631 /dev/urandom java 7658 chris4r CHR1,91446631 /dev/urandom java 7658 chris5r CHR1,91446631 /dev/urandom java 10825 chris4r CHR1,91446631 /dev/urandom java 10825 chris5r CHR1,91446631 /dev/urandom java 14835 chris4r CHR1,91446631 /dev/urandom java 14835 chris7r CHR1,91446631 /dev/urandom java 14835 chris9r CHR1,91446631 /dev/urandom java 14835 chris 10r CHR1,91446631 /dev/urandom java 14835 chris 11r CHR1,91446631 /dev/urandom java 14835 chris 15r CHR1,91446631 /dev/urandom java 14835 chris 16r CHR1,91446631 /dev/urandom java 14835 chris 18r CHR1,91446631 /dev/urandom java 14835 chris 19r CHR1,91446631 /dev/urandom java 14835 chris 20r CHR1,91446631 /dev/urandom java 14835 chris 21r CHR1,91446631 /dev/urandom java 14835 chris 22r CHR1,91446631 /dev/urandom java 14835 chris 23r CHR1,91446631 /dev/urandom java 17679 chris4r CHR1,91446631 /dev/urandom java 17679 chris5r CHR1,91446631 /dev/urandom Interestingly enough, if I use lsof to look for uses of /dev/random, I get the same pids, but fewer uses: java 3047 chris3r CHR1,81444112 /dev/random java 4176 chris3r CHR1,81444112 /dev/random java 7658 chris3r CHR1,81444112 /dev/random java 10825 chris3r CHR1,81444112 /dev/random java 14835 chris3r CHR1,81444112 /dev/random java 17679 chris3r CHR1,81444112 /dev/random It looks like /dev/random is used some places when when /dev/urandom is also used. On the other hand, I'm not using APR at all. Lessee what's in my JVM's files (I have removed comment matches in java.security): $ grep /dev/urandom `find /opt/sun-jdk-1.5.0.13/` /opt/sun-jdk-1.5.0.13/jre/lib/security/java.security:securerandom.source=file:/dev/urandom Binary file /opt/sun-jdk-1.5.0.13/jre/lib/deploy.jar matches Binary file /opt/sun-jdk-1.5.0.13/jre/lib/rt.jar matches [EMAIL PROTECTED] ~/projects/diagnosis $ So, I've configured my system to use /dev/urandom (or maybe my distribution editors did). Let's see about /dev/random: $ grep /dev/random `find /opt/sun-jdk-1.5.0.13/` Binary file
Tomcat 6 and IPv6 config
Hi, I have a tomcat server running in a machine. When I enter the IPv4 url of the machine it brings me the tomcat server page, but when i enter de IPv6 it can't find the server. The machine that has the tomcat server has OpenSuse installed, and the network interface is correctly configured (I cant ping the IPv6 address). From the server when i entenr in the browser the loopback IPv6 address, it works, but when I put the IPv6 address of the network interface it doesn't work. Any help will be apreciated. - 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: using a class from jar file
The problem is that I cannot find classes in the WEB_INF\classes directory that I want to extend with my new class. I only have found some .properties file. I was trying to import a war file in eclipse and I coud not find an option that will make it possible. Can these properties files be of any help? Thank you David Smith-2 wrote: The required jar files will have to be made available to the java compiler. They can be made available either by pulling them from your war file or by downloading them from the sites that host them. Personally I would have an IDE (NetBean and Eclipse are both good, open source choices) or build tool (Maven and Ant are both excellent open source tools) handle the dirty work of compiling classes. --David polock wrote: I made a mistake I wanted instead of war file I wrote a jar file. So the web application has been already created. My question is if I have to compile a java class that extends one of the classes included in a jar file. Do I have to extract from war file necessary libraries need for the compilation of my file or there is a more elegant way to handle this? Christopher Schultz-2 wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 To whom it may concern, polock wrote: | I just put a jar file in my webapps folder That's not the place to put it. | now I would like to write | some java files with classes that are available within jar file that will be | also part of a web application. | Where should I place this new java files? You need to create a web application, then. Find an online tutorial or a book, and you'll see that a web application needs to have a directory structure like this: webapps/yourwebapp webapps/yourwebapp/WEB-INF webapps/yourwebapp/WEB-INF/lib webapps/yourwebapp/WEB-INF/classes Your JAR files go under the lib directory and your compiled Java classes go under the classes directory (of course, in package-appropriate subdirectories). You should really also have a web.xml file in WEB-INF. Note that the Java source files are irrelevant to a web application: they need not be included. | Should they be compiled? Yes, and they should be installed under the classes directory as indicated above. | Also I would appreciate a reffernce to some documents where this is | explained! GIYF (Google is your friend): try searching the web for this information, as it is plentiful. Ignore anything that references Apache JServ which is an outdated servlet container that has been out of use for quite a long time (yet the documentation seems to survive on the web for some reason). - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.8 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAke0eJ4ACgkQ9CaO5/Lv0PAV3gCeJDvpuaDehMXx/3mFreIOZWqb 5i8AoLgOeqI4AzX8l9Wvbgt9gCxy6ZBX =Gzpw -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] -- View this message in context: http://www.nabble.com/using-a-class-from-jar-file-tp15481864p15562362.html 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]
RE: Xmx and Xms where are these values set
From: Modha Khammammettu [mailto:[EMAIL PROTECTED] Subject: RE: Xmx and Xms where are these values set I did that but it has no effect. Did you actually click thr apply button, and then stop and restart the Tomcat service? Do you have multiple Tomcats installed? If so, are you sure you're accessing the right one with tomcat5w.exe? Note that changing the .bat files has no effect on any Tomcat service. Is tomcat using some default setting to come up with this 1012.625GB, where is this value comming from? Tomcat cannot set any heap size parameters, as these are established only at JVM startup and cannot be changed while the JVM instance is running. This short paper describes how the defaults are calculated in the absence of a -Xmx setting: http://java.sun.com/j2se/1.5.0/docs/guide/vm/gc-ergonomics.html - 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]
RE: Manager undeploy task only stops webapp
From: Diego Rodríguez Martín [mailto:[EMAIL PROTECTED] Subject: Re: Manager undeploy task only stops webapp I'm still investigating this issue. Same behaviour if I use manager directly through the interface instead of using ant task. Undeployment via the manager webapp in 6.0.16 works fine for me. Is the webapp you're trying to manipulate configured incorrectly, by any chance? Things that were errors but largely ignored in 4.1 may have different side effects in 5.5 and 6.0 (e.g., having an app with docBase == appBase, or invalidly specifying a path attribute in a Context element). - 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]
RE: Xmx and Xms where are these values set
I think the tomcat installation was corrupted. I tried with a fresh install and I can see the heap and other information just fine. Thanks -Original Message- From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 19, 2008 11:11 AM To: Tomcat Users List Subject: RE: Xmx and Xms where are these values set From: Modha Khammammettu [mailto:[EMAIL PROTECTED] Subject: RE: Xmx and Xms where are these values set I did that but it has no effect. Did you actually click thr apply button, and then stop and restart the Tomcat service? Do you have multiple Tomcats installed? If so, are you sure you're accessing the right one with tomcat5w.exe? Note that changing the .bat files has no effect on any Tomcat service. Is tomcat using some default setting to come up with this 1012.625GB, where is this value comming from? Tomcat cannot set any heap size parameters, as these are established only at JVM startup and cannot be changed while the JVM instance is running. This short paper describes how the defaults are calculated in the absence of a -Xmx setting: http://java.sun.com/j2se/1.5.0/docs/guide/vm/gc-ergonomics.html - 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: Mapping JSP's to outside of the war or expanded folder
If you are brave ... you can apply this patch: http://svn.apache.org/viewvc?view=revrevision=575332 -Tim emerson cargnin wrote: This is not really an issue for me, as the access to the servers are totally strict and... any idea on how to map to the jsp's outside? Nobody ever need it? how do people migrate from resin then? - 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: getting the start time of Tomcat server.
From: Alejandro [mailto:[EMAIL PROTECTED] Subject: getting the start time of Tomcat server. There is a java Class in tomcat api to get the start time of Tomcat? Not that I'm aware of. It's also not clear what the start time would be: startup of the JVM, load of the Tomcat Bootstrap class, first webapp deployment, last webapp deployment... You can always write a Listener class for any Tomcat component or a webapp that records the current time when it's invoked. - 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]
java.net.SocketException: Connection reset
I am load testing a local web app running Tomcat 5.5 and as the load test approaches 100 users I start to get java.net.SocketException: Connection reset At that time, I cannot call the tomcat server either through the load test or browser manually. However, if I remove cookies from the browser or restart the load test then it starts to work. I found this old email about connection reset here: http://marc.info/?l=tomcat-userm=120162616808662w=2 This talks about incorrect HTTP request that disconnects in the middle, but I am pretty sure the load test or the browser is not doing it. Is there a way to fix it, perhaps by increasing number of maximum connections Tomcat can accept. Thanks in advance. Shahzad Bhatti
Timezone in Tomcat is different from OS's(default)timezone
Hi all, I have an application which worked on windows for two years.The IIS-tomcat bridge was using too much cpu even when tomcat hadn't any work to do,so I decided to move this application on an existing Ubuntu machine.On the ubuntu machine,datetime related problems occured,day strings are printed as english(my locale is turkish),time is UTC(it must be GMT+2)...Whatever I tried to fix this had no successful outcome. I first added tr_TR to ubuntus supported locale's list,then re-create the link between /etc/localtime and /usr/share/zoneinfo/Europe/Istanbul,added TZ=Europe/Istanbul in shell and also /etc/environment,changed catalina.sh with -Duser.timezone=Europe/Istanbul option set,etc...None of them changed the result. I am posting on this forum,because I created a simple java test program which prints current date to the console,and it works correct.But the web application deployed on tomcat does not.Can anybody recommend anything? Thanks in advance... -- View this message in context: http://www.nabble.com/Timezone-in-Tomcat-is-different-from-OS%27s%28default%29timezone-tp15580721p15580721.html 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]
Accessing standalone Tomcat from an external IP address
Hello, I'm trying to configure Tomcat so that it can be accessed externally. The environment is Tomcat 6.0, Fluxbuntu 7.10, JavaSE6. The connection works locally , for example if I try http://localhost:7070/ or http://127.0.0.1:7070/ I can see the app, but if I try with the external ip address and the same port for example: http://xxx.xxx.xxx.xxx:7070 , I can't access the app, I get a The server at external ip is taking too long to respond. I read the HTTP Connector documentation : http://tomcat.apache.org/tomcat-6.0-doc/config/http.html It also appears that the router is forwarding the connection from the external ip address correctly because If I do a netstat -tupan , on the Linux command line it shows that the connection from the external ip address was received correctly, but Tomcat isn't reponding to it. I searched everywhere but couldn't find an answer. Should I configure the HTTP connector differently? Currently the HTTP connector configuration is the one that comes by default with Tomcat 6.x. I'm pasting it here for reference: Connector port=9090 protocol=HTTP/1.1 connectionTimeout=2 redirectPort=8443 / Any help is appreciated. -Rashmi - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
not reading my /etc/tomcat5/tomcat5.conf file
Hi, I'm running CentOS 5 with Tomcat5 (5.5.2.0) that came with the install. If I try to run dtomcat5 stop or version etc I get the following message below - I have also pasted the tomcat5.conf file below- it is obvious that dtomcat5 is not reading the /etc/tomcat5/tomcat5.conf file - what do I have wrong? Am I going about starting/stopping/getting versions for tomcat the wrong way? Any suggestions? Thanks [EMAIL PROTECTED] conf]# dtomcat5 stop Found JAVA_HOME: /usr/lib/java Please complete your /etc/tomcat5/tomcat5.conf so we won't have to look for it next time Using CATALINA_BASE: /usr Using CATALINA_HOME: /usr Using CATALINA_TMPDIR: /usr/temp Using JRE_HOME: /usr/bin/dtomcat5: line 347: /usr/lib/java/bin/java: No such file or directory [EMAIL PROTECTED] conf]# dtomcat5 version Found JAVA_HOME: /usr/lib/java Please complete your /etc/tomcat5/tomcat5.conf so we won't have to look for it next time Using CATALINA_BASE: /usr Using CATALINA_HOME: /usr Using CATALINA_TMPDIR: /usr/temp Using JRE_HOME: /usr/bin/dtomcat5: line 366: /usr/lib/java/bin/java: No such file or directory [EMAIL PROTECTED] conf]# I have updated the /etc/tomcat5/tomcat5.conf file to read as follows: # tomcat5 service configuration file # you could also override JAVA_HOME here # Where your java installation lives JAVA_HOME=/usr/bin/java # Where your tomcat installation lives # That change from previous RPM where TOMCAT_HOME # used to be /var/tomcat. # Now /var/tomcat will be the base for webapps only CATALINA_HOME=/usr/share/tomcat5 JASPER_HOME=/usr/share/tomcat5 CATALINA_TMPDIR=/usr/share/tomcat5/temp JAVA_ENDORSED_DIRS=/usr/share/tomcat5/common/endorsed # You can pass some parameters to java # here if you wish to #JAVA_OPTS=-Xminf0.1 -Xmaxf0.3 # Use JAVA_OPTS to set java.library.path for libtcnative.so #JAVA_OPTS=-Djava.library.path=/usr/lib # Bug 190: # https://www.jpackage.org/bugzilla/show_bug.cgi?id=190 # System property catalina.ext.dirs should be set to its default value # for ExtensionValidator to be functional. JAVA_OPTS=$JAVA_OPTS - Dcatalina.ext.dirs=$CATALINA_HOME/shared/lib:$CATALINA_HO ME/common/lib # What user should run tomcat TOMCAT_USER=tomcat # You can change your tomcat locale here #LANG=en_US # Time to wait in seconds, before killing process SHUTDOWN_WAIT=30 # Set the TOMCAT_PID location CATALINA_PID=/var/run/tomcat5.pid # Connector port is 8080 for this tomcat5 instance #CONNECTOR_PORT=8080 # If you wish to further customize your tomcat environment, # put your own definitions here --
Re: Mapping JSP's to outside of the war or expanded folder
Right. The only way access to your servers is totally strict is if they have no network connection and no human input devices connected. However, in the spirit in which you probably meant this, I will have to point out that if your web apps are running on the internet then what you are requesting violates any competent security audit. If they are running on your local intranet then yes, it might not be a big deal. But even then, if the server could be used to get at personnel records or payroll, etc. then this could be just as big an issue. Ralph emerson cargnin wrote: This is not really an issue for me, as the access to the servers are totally strict and... any idea on how to map to the jsp's outside? Nobody ever need it? how do people migrate from resin then? - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]