problems starting/stopping tomcat
Hi , I use tomcat 4.1.24, jdk 1.4.0 and Apache 1.3 on Solaris 8. After having developed and successfully run many servlets I now receive a port 8080 already in use problem after I try to start tomcat. Sep 13, 2003 10:20:54 AM org.apache.commons.modeler.Registry loadRegistry INFO: Loading registry information Sep 13, 2003 10:20:54 AM org.apache.commons.modeler.Registry getRegistry INFO: Creating new Registry instance Sep 13, 2003 10:20:57 AM org.apache.commons.modeler.Registry getServer INFO: Creating MBeanServer Sep 13, 2003 10:21:00 AM org.apache.coyote.http11.Http11Protocol init SEVERE: Error initializing endpoint java.net.BindException: Address already in use:8080 at org.apache.tomcat.util.net.PoolTcpEndpoint.initEndpoint(PoolTcpEndpoint.java:280 ) at org.apache.coyote.http11.Http11Protocol.init(Http11Protocol.java:150) I did not change any configuration and I do not think that the ports are in use by any other processes (Apache uses a different port). Could it be that while doing shutdown-startup sequences a process has been left hanging (?). When I replaced port 8080 by 8081 I was able to start tomcat but when I called a servlet it said 8005 (port for shutdown) in use ?! When I replaced also 8005 for test purposes the servlet hangs and I could not see any error being logged (catalina.out, web appl log files, Apache log ...). My question: how do I get more info about what ports tomcat still uses for what ? Any hint would be appreciated. Thanks. Astrid
new Aspen Group Email
Due to problems with SPAM, [EMAIL PROTECTED] has been discontinued. Please note my new email address. To prevent automated systems from obtaining my new email address, I will spell out the @ symbol. Please send all future email to: gordon[at]aspengroup.net - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: new Aspen Group Email
Proposal to remove [EMAIL PROTECTED] from the list. - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, September 13, 2003 9:33 AM Subject: new Aspen Group Email Due to problems with SPAM, [EMAIL PROTECTED] has been discontinued. Please note my new email address. To prevent automated systems from obtaining my new email address, I will spell out the @ symbol. Please send all future email to: gordon[at]aspengroup.net - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Using encodeURL - do we have to pass the jsessionID around?
No, it's done for you. - Original Message - From: Anson Zeall [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Saturday, September 13, 2003 4:43 AM Subject: Using encodeURL - do we have to pass the jsessionID around? Hi guys. I still don't quite get how to really use encodeURL and encodeRedirectURL. Yes I know the syntax and how to put in the link but like.hmm.do we have to pass the ID around to get page? Regards Anson - 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: Java Mail Question
Java will only contact the SMTP server when you call Transport.send(). - Original Message - From: Peter Vertes [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Friday, September 12, 2003 10:46 PM Subject: Java Mail Question Hello All, Quick question about Tomcat and Java Mail. When I create a JNDI mail resource will it act like a Connection Pool ? Meaning, will there always be a session logged into the specified SMTP server or will Tomcat only log into the SMTP server once I explicitly ask for a session ? Thanks in advance... -Pete -- perl -e 'print pack(H*, 70766572746573406E79632E72722E636F6D0A)' - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Memory Leak with static content
Hello Seth! SN All, SN OS: Sparc-Solaris 9 SN JDK: 1.4.0_02 SN Tomcat: 4.1.27 SN Problem: SN I start tomcat and it takes up about 45MB of RAM. I wrote a script to email me every ten minutes the amount of memory it's taking up. The results are showing me that it gains about 1MB every 10 SN minutes or so (on average). If I let it go, it will grow until it runs out of memory. You really get an OutOfMemoryException? I would expect that memory consumption would grow and grow untill it reaches something near the allowed maximum and then garbage collection would break in and free some of already allocated memory. (Of couse it won't give it back to the OS, but it will be free for processing further requests by Tomcat itself) In other words I would expect that memory consumption would stabilize somewhere near the allowed maximum. Does this happen? Or do Tomcat threads really die with an OutOfMemoryException? Anton - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: reload and ROOT problem
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=22096 -Tim Rishikesh Tembe wrote: Hi all, I am facing two problems with v4.1.27. 1. After I reload the servlet by copying it into its directory in WEB-INF/classes, I get the foll. error when I try to access the reladed servlet. HTTP Status 503 - This application is not currently available 2. Any apps placed in the ROOT context are not accessible. I am running all my apps in the examples context right now. Any tips on what's missing? thanks, Rishikesh. = Yahoo! India Matrimony: Find your partner online. Go to http://yahoo.shaadi.com - 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]
How deploy EJB on Tomcat?
Does the Tomcat-IIS support deploing Enterprise Java Beans? Can you send me information or links about it, please? __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
jsp:usebean how to?
Hi, I'm using tomcat 4.1.27. I'm trying to get a jsp page to call a bean. Is there something I need to enter in web.xml or server.xml? I have tried the examples that come with tomcat, namely the date.jsp example. When I move the JspCalendar.class file that it calls to a different directory and modify the date.jsp file to call it from that directory, it doesn't work. Why is that? I have a jsp file: /TC/webapps/tutorialbeans/loginPage.jsp it calls a bean: /TC/webapps/tutorialbeans/WEB-INF/classes/LoginBean I have stripped it down to the minimum. When I load my jsp file into the browser I get the following error: ## org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: -1 in the jsp file: null Generated servlet error: Project base dir set to: /usr/local/tomcat/jakarta-tomcat-4.1.27 Detected Java version: 1.4 in: /usr/local/j2sdk1.4.2/jre Detected OS: Linux [javac] studentMenuPage_jsp.java added as studentMenuPage_jsp.class doesn't exist. [javac] Compiling 1 source file [javac] Using modern compiler [javac] Compilation arguments: [javac] '-classpath' [javac] '/usr/local/j2sdk1.4.2/lib/tools.jar:/usr/local/tomcat/jakarta-tomcat-4.1.27/bin/bootstrap.jar:/usr/local/tomcat/jakarta-tomcat-4.1.27/webapps/tutorialbeans/WEB-INF/classes:/usr/local/tomcat/jakarta-tomcat-4.1.27/shared/classes:/usr/local/tomcat/jakarta-tomcat-4.1.27/common/classes:/usr/local/tomcat/jakarta-tomcat-4.1.27/common/endorsed/xercesImpl.jar:/usr/local/tomcat/jakarta-tomcat-4.1.27/common/endorsed/xmlParserAPIs.jar:/usr/local/tomcat/jakarta-tomcat-4.1.27/common/lib/servlet.jar:/usr/local/tomcat/jakarta-tomcat-4.1.27/common/lib/mail.jar:/usr/local/tomcat/jakarta-tomcat-4.1.27/common/lib/commons-logging-api.jar:/usr/local/tomcat/jakarta-tomcat-4.1.27/common/lib/commons-collections.jar:/usr/local/tomcat/jakarta-tomcat-4.1.27/common/lib/jdbc2_0-stdext.jar:/usr/local/tomcat/jakarta-tomcat-4.1.27/common/lib/commons-pool.jar:/usr/local/tomcat/jakarta-tomcat-4.1.27/common/lib/jasper-compiler.jar:/usr/local/tomcat/jakarta-tomcat-4.1.27/common/lib/naming-factory.jar:/usr/local/tomcat/jakarta-tomcat-4.1.27/common/lib/jndi.jar:/usr/local/tomcat/jakarta-tomcat-4.1.27/common/lib/activation.jar:/usr/local/tomcat/jakarta-tomcat-4.1.27/common/lib/jasper-runtime.jar:/usr/local/tomcat/jakarta-tomcat-4.1.27/common/lib/naming-resources.jar:/usr/local/tomcat/jakarta-tomcat-4.1.27/common/lib/naming-common.jar:/usr/local/tomcat/jakarta-tomcat-4.1.27/common/lib/commons-dbcp.jar:/usr/local/tomcat/jakarta-tomcat-4.1.27/common/lib/ant.jar:/usr/local/tomcat/jakarta-tomcat-4.1.27/common/lib/jta.jar' [javac] '-sourcepath' [javac] '/usr/local/tomcat/jakarta-tomcat-4.1.27/work/Standalone/localhost/tutorialbeans' [javac] '-encoding' [javac] 'UTF8' [javac] '-g' [javac] [javac] The ' characters around the executable and arguments are [javac] not part of the command. [javac] File to be compiled: [javac] /usr/local/tomcat/jakarta-tomcat-4.1.27/work/Standalone/localhost/tutorialbeans/studentMenuPage_jsp.java /usr/local/tomcat/jakarta-tomcat-4.1.27/work/Standalone/localhost/tutorialbeans/studentMenuPage_jsp.java:7: '.' expected import LoginBean; ^ 1 error # Can someone help out? thanks, kind regards, Luke -- when my computer smiles, I'm happy ===.~ ~, Luke Vanderfluit |'/'] Mobile: 0421 276 282\~/` - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Question on Follow Sym Link
Dear all: I have seen this question floating around, but just can't dig the answer out. Does anyone know how to let Tomcat follow symbolic links? Just like the FollowSymLink option in Apache configuration. I need to redirect the ROOT directory. I remember the older version of Tomcat does this, but I just upgraded to 1.4.2, and it seems not working. Many thanks. John
new Aspen Group Email
Due to problems with SPAM, [EMAIL PROTECTED] has been discontinued. Please note my new email address. To prevent automated systems from obtaining my new email address, I will spell out the @ symbol. Please send all future email to: gordon[at]aspengroup.net - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Error Report
Hi, Is there a way to send a customized error report when our servlet or Tomcat run into something wrong? Instead of sending all the detailed stack dump, a more friendly message to our customers might be better. I would appreciate it very much if someone can give me some pointers on how to customized the error report page. Many thanks. John
Re: jsp:usebean how to?
Your trying to use a packageless class. More info ... http://jakarta.apache.org/tomcat/faq/classnotfound.html -Tim Luke Vanderfluit wrote: Hi, I'm using tomcat 4.1.27. I'm trying to get a jsp page to call a bean. Is there something I need to enter in web.xml or server.xml? I have tried the examples that come with tomcat, namely the date.jsp example. When I move the JspCalendar.class file that it calls to a different directory and modify the date.jsp file to call it from that directory, it doesn't work. Why is that? I have a jsp file: /TC/webapps/tutorialbeans/loginPage.jsp it calls a bean: /TC/webapps/tutorialbeans/WEB-INF/classes/LoginBean I have stripped it down to the minimum. When I load my jsp file into the browser I get the following error: ## org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: -1 in the jsp file: null Generated servlet error: Project base dir set to: /usr/local/tomcat/jakarta-tomcat-4.1.27 Detected Java version: 1.4 in: /usr/local/j2sdk1.4.2/jre Detected OS: Linux [javac] studentMenuPage_jsp.java added as studentMenuPage_jsp.class doesn't exist. [javac] Compiling 1 source file [javac] Using modern compiler [javac] Compilation arguments: [javac] '-classpath' [javac] '/usr/local/j2sdk1.4.2/lib/tools.jar:/usr/local/tomcat/jakarta-tomcat-4.1.27/bin/bootstrap.jar:/usr/local/tomcat/jakarta-tomcat-4.1.27/webapps/tutorialbeans/WEB-INF/classes:/usr/local/tomcat/jakarta-tomcat-4.1.27/shared/classes:/usr/local/tomcat/jakarta-tomcat-4.1.27/common/classes:/usr/local/tomcat/jakarta-tomcat-4.1.27/common/endorsed/xercesImpl.jar:/usr/local/tomcat/jakarta-tomcat-4.1.27/common/endorsed/xmlParserAPIs.jar:/usr/local/tomcat/jakarta-tomcat-4.1.27/common/lib/servlet.jar:/usr/local/tomcat/jakarta-tomcat-4.1.27/common/lib/mail.jar:/usr/local/tomcat/jakarta-tomcat-4.1.27/common/lib/commons-logging-api.jar:/usr/local/tomcat/jakarta-tomcat-4.1.27/common/lib/commons-collections.jar:/usr/local/tomcat/jakarta-tomcat-4.1.27/common/lib/jdbc2_0-stdext.jar:/usr/local/tomcat/jakarta-tomcat-4.1.27/common/lib/commons-pool.jar:/usr/local/tomcat/jakarta-tomcat-4.1.27/common/lib/jasper-compiler.jar:/usr/local/tomcat/jakarta-tomcat-4.1.27/common/lib/naming-factory .jar:/usr/local/tomcat/jakarta-tomcat-4.1.27/common/lib/jndi.jar:/usr/local/tomcat/jakarta-tomcat-4.1.27/common/lib/activation.jar:/usr/local/tomcat/jakarta-tomcat-4.1.27/common/lib/jasper-runtime.jar:/usr/local/tomcat/jakarta-tomcat-4.1.27/common/lib/naming-resources.jar:/usr/local/tomcat/jakarta-tomcat-4.1.27/common/lib/naming-common.jar:/usr/local/tomcat/jakarta-tomcat-4.1.27/common/lib/commons-dbcp.jar:/usr/local/tomcat/jakarta-tomcat-4.1.27/common/lib/ant.jar:/usr/local/tomcat/jakarta-tomcat-4.1.27/common/lib/jta.jar' [javac] '-sourcepath' [javac] '/usr/local/tomcat/jakarta-tomcat-4.1.27/work/Standalone/localhost/tutorialbeans' [javac] '-encoding' [javac] 'UTF8' [javac] '-g' [javac] [javac] The ' characters around the executable and arguments are [javac] not part of the command. [javac] File to be compiled: [javac] /usr/local/tomcat/jakarta-tomcat-4.1.27/work/Standalone/localhost/tutorialbeans/studentMenuPage_jsp.java /usr/local/tomcat/jakarta-tomcat-4.1.27/work/Standalone/localhost/tutorialbeans/studentMenuPage_jsp.java:7: '.' expected import LoginBean; ^ 1 error # Can someone help out? thanks, kind regards, Luke - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Question on Follow Sym Link
http://jakarta.apache.org/tomcat/faq/misc.html#symlink -Tim John Z Yang wrote: Dear all: I have seen this question floating around, but just can't dig the answer out. Does anyone know how to let Tomcat follow symbolic links? Just like the FollowSymLink option in Apache configuration. I need to redirect the ROOT directory. I remember the older version of Tomcat does this, but I just upgraded to 1.4.2, and it seems not working. Many thanks. John - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Error Report
http://jakarta.apache.org/tomcat/faq/misc.html#error -Tim John Z Yang wrote: Hi, Is there a way to send a customized error report when our servlet or Tomcat run into something wrong? Instead of sending all the detailed stack dump, a more friendly message to our customers might be better. I would appreciate it very much if someone can give me some pointers on how to customized the error report page. Many thanks. John - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: reload and ROOT problem
Go to the download dir in tomcat website, thereis a patch... - Original Message - From: Rishikesh Tembe [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Friday, September 12, 2003 8:10 PM Subject: reload and ROOT problem Hi all, I am facing two problems with v4.1.27. 1. After I reload the servlet by copying it into its directory in WEB-INF/classes, I get the foll. error when I try to access the reladed servlet. HTTP Status 503 - This application is not currently available 2. Any apps placed in the ROOT context are not accessible. I am running all my apps in the examples context right now. Any tips on what's missing? thanks, Rishikesh. = Yahoo! India Matrimony: Find your partner online. Go to http://yahoo.shaadi.com - 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]