RE: Memory question
Thank you all! I set JAVA_OPTS in the tomcat startup and it works! Now to figure out the next problem, but that's an issue with the application I'm running and not Tomcat. On Wed, 2008-07-23 at 20:00 -0500, Caldarale, Charles R wrote: From: David Smith [mailto:[EMAIL PROTECTED] Subject: Re: Memory question I believe the startup script accepts extra parameters and just passes them on to the JVM for startup. You should be able to do: startup.sh -Xmx512m Unfortunately not, although it certainly would be convenient. The extra parameters are passed to Tomcat's Bootstrap class, not the JVM. You really do have to use CATALINA_OPTS or JAVA_OPTS. - 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] Matt Burkhardt, MSTM President Impari Systems, Inc. 401 Rosemont Avenue Frederick, MD 21701 [EMAIL PROTECTED] www.imparisystems.com (301) 644-3911
Down the rabbit hole with JDBC
Sorry - I've been slogging through this... Anyway, I'm trying to get an application working, but all of their documentation talks about is tomcat5.5 and I've got tomcat6 I have gotten the latest Connector/J binary from MySQL and installed in into tomcat/lib but I would like to test it. So, I went to http://tomcat.apache.org/tomcat-6.0-doc/jndi-datasource-examples-howto.html and followed the instructions to set up a DBTest - but I get this HTTP Status 500 - type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception org.apache.jasper.JasperException: The absolute uri: http://java.sun.com/jsp/jstl/sql cannot be resolved in either web.xml or the jar files deployed with this application org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:51) org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:409) org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:116) org.apache.jasper.compiler.TagLibraryInfoImpl.generateTLDLocation(TagLibraryInfoImpl.java:315) org.apache.jasper.compiler.TagLibraryInfoImpl.init(TagLibraryInfoImpl.java:148) org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:420) org.apache.jasper.compiler.Parser.parseDirective(Parser.java:483) org.apache.jasper.compiler.Parser.parseElements(Parser.java:1433) org.apache.jasper.compiler.Parser.parse(Parser.java:133) org.apache.jasper.compiler.ParserController.doParse(ParserController.java:216) org.apache.jasper.compiler.ParserController.parse(ParserController.java:103) org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:153) org.apache.jasper.compiler.Compiler.compile(Compiler.java:314) org.apache.jasper.compiler.Compiler.compile(Compiler.java:294) org.apache.jasper.compiler.Compiler.compile(Compiler.java:281) org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:566) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:317) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:337) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) Here's the code that I'm running - are the taglibs incorrect? %@ taglib uri=http://java.sun.com/jsp/jstl/sql; prefix=sql % %@ taglib uri=http://java.sun.com/jsp/jstl/core; prefix=c % sql:query var=rs dataSource=jdbc/TestDB select id, foo, bar from testdata /sql:query html head titleDB Test/title /head body h2Results/h2 c:forEach var=row items=${rs.rows} Foo ${row.foo}br/ Bar ${row.bar}br/ /c:forEach /body /html Matt Burkhardt, MSTM President Impari Systems, Inc. 401 Rosemont Avenue Frederick, MD 21701 [EMAIL PROTECTED] www.imparisystems.com (301) 644-3911
Re: Down the rabbit hole with JDBC
Thanks - it was the first - I just had the files in the WEB-INF directory - not in the lib Is there some method for finding errors / logs? Right now, I'm trying to get an application running, and I'm just guessing. For example, my catalina.log file says INFO: The listener org.alfresco.web.app.ContextListener is already configured for this context. The duplicate definition has been ignored. Jul 24, 2008 3:46:11 PM org.apache.catalina.core.StandardContext start SEVERE: Error listenerStart Jul 24, 2008 3:46:11 PM org.apache.catalina.core.StandardContext start SEVERE: Context [/alfresco] startup failed due to previous errors Where can I go to find out what's causing this? On Thu, 2008-07-24 at 17:41 -0400, David Smith wrote: This isn't a JDBC error as much as it's a taglib error. You are trying to use JSTL taglibs in your web application and tomcat can't find the libraries that contain the taglib. Things to check: 1. standard.jar and jstl.jar are in the webapp's WEB-INF/lib directory -- at least for jstl 1.1. I believe jstl 1.2 consolidated things into one jar file. 2. The webapp's docBase is not the same as the Host ... element's appBase attribute in server.xml. This has already bitten one person on the list today. --David Matt Burkhardt wrote: Sorry - I've been slogging through this... Anyway, I'm trying to get an application working, but all of their documentation talks about is tomcat5.5 and I've got tomcat6 I have gotten the latest Connector/J binary from MySQL and installed in into tomcat/lib but I would like to test it. So, I went to http://tomcat.apache.org/tomcat-6.0-doc/jndi-datasource-examples-howto.html and followed the instructions to set up a DBTest - but I get this HTTP Status 500 - type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception org.apache.jasper.JasperException: The absolute uri: http://java.sun.com/jsp/jstl/sql cannot be resolved in either web.xml or the jar files deployed with this application org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:51) org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:409) org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:116) org.apache.jasper.compiler.TagLibraryInfoImpl.generateTLDLocation(TagLibraryInfoImpl.java:315) org.apache.jasper.compiler.TagLibraryInfoImpl.init(TagLibraryInfoImpl.java:148) org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:420) org.apache.jasper.compiler.Parser.parseDirective(Parser.java:483) org.apache.jasper.compiler.Parser.parseElements(Parser.java:1433) org.apache.jasper.compiler.Parser.parse(Parser.java:133) org.apache.jasper.compiler.ParserController.doParse(ParserController.java:216) org.apache.jasper.compiler.ParserController.parse(ParserController.java:103) org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:153) org.apache.jasper.compiler.Compiler.compile(Compiler.java:314) org.apache.jasper.compiler.Compiler.compile(Compiler.java:294) org.apache.jasper.compiler.Compiler.compile(Compiler.java:281) org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:566) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:317) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:337) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) Here's the code that I'm running - are the taglibs incorrect? %@ taglib uri=http://java.sun.com/jsp/jstl/sql; prefix=sql % %@ taglib uri=http://java.sun.com/jsp/jstl/core; prefix=c % sql:query var=rs dataSource=jdbc/TestDB select id, foo, bar from testdata /sql:query html head titleDB Test/title /head body h2Results/h2 c:forEach var=row items=${rs.rows} Foo ${row.foo}br/ Bar ${row.bar}br/ /c:forEach /body /html Matt Burkhardt, MSTM President Impari Systems, Inc. 401 Rosemont Avenue Frederick, MD 21701 [EMAIL PROTECTED] www.imparisystems.com (301) 644-3911 - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Matt Burkhardt, MSTM President Impari Systems, Inc. 401 Rosemont Avenue Frederick, MD 21701 [EMAIL PROTECTED] www.imparisystems.com (301) 644-3911
RE: Uninstalling Applications
On Tue, 2008-07-22 at 21:25 -0500, Caldarale, Charles R wrote: From: Matt Burkhardt [mailto:[EMAIL PROTECTED] Subject: Uninstalling Applications You seem to be expecting us to guess the Tomcat version you're using. Sorry about that - I'm usually much better - it's version 5.5 First, I have several error messages in the catalina log that reference applications that I have removed from my web site. What are the messages? Have you cleaned out Tomcat's work directory? Do you have now-useless Context elements in conf/Catalina/[host]/[appName].xml files? The error messages - I've been installing and uninstalling several packages. This is just one of them - Jul 22, 2008 9:38:33 AM org.apache.catalina.core.StandardContext resourcesStart SEVERE: Error starting static Resources java.lang.IllegalArgumentException: Document base /opt/dspace/webapps/jspui does not exist or is not a readable directory Work directory? Wow, I finally found the symbolic link and was able to find the elements and delete them. Wow - this is one difficult system to understand! Also, I would love to be able to run the admin, but I have a headless server so I need to access /manager from a remote machine. I haven't been able to find the documentation for that. Any ideas? The links are on Tomcat's default home page; if you've replaced that, it's normally http://[siteName]/manager/html for the manager app, and can be reached from any device that can reach the server. I installed Tomcat to run on another port... Okay - I have http://[myserver]:8180/manager/html and all I getis a blank page - no error, no nothing - Chuck Thank you, Chuck. At least I'm able to get rid of the error messages from the missing apps so I can track down my other problem! 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] Matt Burkhardt, MSTM President Impari Systems, Inc. 401 Rosemont Avenue Frederick, MD 21701 [EMAIL PROTECTED] www.imparisystems.com (301) 644-3911
Memory question
Okay - I've gone ahead, uninstalled the distro from Ubuntu, installed Tomcat 6.0.16 and I'm having problems running out of memory. My catalina.out file contains the lines at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413) Caused by: java.lang.OutOfMemoryError: Java heap space and the application says it needs 512MB, I have 1GB on the server and it says that you can use up to 70% of the memory before it gets starved. So I edited the /etc/environment contents and ended up with this more /etc/environment PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games ANT_HOME=/usr/share/ant JAVA_HOME=/usr/lib/jvm/java-6-sun JAVA_OPTS=${JAVA_OPTS} -Djava.awt.headless=true -Xms512M -Xmx512M -XX:PermSize=256M -XX:MaxPermSize=256M and I rebooted the machine, but I'm still getting the error. I don't know how to check and see if it took the arguments correctly, but when I look at http://myserver:8080/manager/status I see JVM Free memory: 23.34 MB Total memory: 63.56 MB Max memory: 63.56 MB What am I doing wrong? Matt Burkhardt, MSTM President Impari Systems, Inc. 401 Rosemont Avenue Frederick, MD 21701 [EMAIL PROTECTED] www.imparisystems.com (301) 644-3911
Uninstalling Applications
Hi all, I'm having a few problems - so I'm trying to get rid of error messages during start up and shut down to try and track down the issue. First, I have several error messages in the catalina log that reference applications that I have removed from my web site. How do I prevent them being loaded up during start of tomcat5.5? Also, I would love to be able to run the admin, but I have a headless server so I need to access /manager from a remote machine. I haven't been able to find the documentation for that. Any ideas? Thanks, Matt Burkhardt, MSTM President Impari Systems, Inc. 401 Rosemont Avenue Frederick, MD 21701 [EMAIL PROTECTED] www.imparisystems.com (301) 644-3911