Tag Archives: tomcat

Tomcat – java.lang.OutOfMemoryError


find catalina.bat and add

# for out of memory
# Ensure that any user defined CLASSPATH variables are not used on startup,
# but allow them to be specified in setenv.sh, in rare case when it is needed.

if [ -r “$CATALINA_BASE/bin/setenv.sh” ]; then
. “$CATALINA_BASE/bin/setenv.sh”
elif [ -r “$CATALINA_HOME/bin/setenv.sh” ]; then
. “$CATALINA_HOME/bin/setenv.sh”

Read more of this post

Unable to read TLD “META-INF/html_basic.tld”

while starting my Tomcat it showed

javax.servlet.ServletException: org.apache.jasper.JasperException: /index.jsp(1,1)
Unable to read TLD "META-INF/html_basic.tld" from JAR file
org.apache.jasper.JasperException: Failed to load or instantiate TagLibraryValidator class: com.sun.faces.taglib.html_basic.HtmlBasicValidator

It turned out that I was including a copy of  jsf-tlds.jar in my WEB-INF/lib directory, but my tomcat already had one.

So, I deleted the jar file from my WEB-INF/lib. It works now 🙂