Okay, so I've got tomcat5 and struts installed and I'm trying something very simple...
Basically I am copying the struts-blank directory to a new directory location for my first struts web app. I use
cp -Rp struts-blank new-project and everything looks like it copies over cleanly links and all.
When I try to access this new site I get this error:
Code:
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
org.apache.jasper.JasperException: Unable to initialize TldLocationsCache: XML parsing error on file /WEB-INF/struts-logic.tld
org.apache.jasper.servlet.JspServletWrapper.handleJspException(jasper5-compiler-5.5.15.jar.so)
org.apache.jasper.servlet.JspServletWrapper.service(jasper5-compiler-5.5.15.jar.so)
org.apache.jasper.servlet.JspServlet.serviceJspFile(jasper5-compiler-5.5.15.jar.so)
org.apache.jasper.servlet.JspServlet.service(jasper5-compiler-5.5.15.jar.so)
javax.servlet.http.HttpServlet.service(tomcat5-servlet-2.4-api-5.5.15.jar.so)
root cause
org.apache.jasper.JasperException: Unable to initialize TldLocationsCache: XML parsing error on file /WEB-INF/struts-logic.tld
org.apache.jasper.compiler.TldLocationsCache.init(jasper5-compiler-5.5.15.jar.so)
org.apache.jasper.compiler.TldLocationsCache.getLocation(jasper5-compiler-5.5.15.jar.so)
org.apache.jasper.JspCompilationContext.getTldLocation(jasper5-compiler-5.5.15.jar.so)
org.apache.jasper.compiler.Parser.parseTaglibDirective(jasper5-compiler-5.5.15.jar.so)
org.apache.jasper.compiler.Parser.parseDirective(jasper5-compiler-5.5.15.jar.so)
org.apache.jasper.compiler.Parser.parseElements(jasper5-compiler-5.5.15.jar.so)
org.apache.jasper.compiler.Parser.parse(jasper5-compiler-5.5.15.jar.so)
org.apache.jasper.compiler.ParserController.doParse(jasper5-compiler-5.5.15.jar.so)
org.apache.jasper.compiler.ParserController.parse(jasper5-compiler-5.5.15.jar.so)
org.apache.jasper.compiler.Compiler.generateJava(jasper5-compiler-5.5.15.jar.so)
org.apache.jasper.compiler.Compiler.compile(jasper5-compiler-5.5.15.jar.so)
org.apache.jasper.compiler.Compiler.compile(jasper5-compiler-5.5.15.jar.so)
org.apache.jasper.compiler.Compiler.compile(jasper5-compiler-5.5.15.jar.so)
org.apache.jasper.JspCompilationContext.compile(jasper5-compiler-5.5.15.jar.so)
org.apache.jasper.servlet.JspServletWrapper.service(jasper5-compiler-5.5.15.jar.so)
org.apache.jasper.servlet.JspServlet.serviceJspFile(jasper5-compiler-5.5.15.jar.so)
org.apache.jasper.servlet.JspServlet.service(jasper5-compiler-5.5.15.jar.so)
javax.servlet.http.HttpServlet.service(tomcat5-servlet-2.4-api-5.5.15.jar.so)
I'm new to struts but not a new developer and this is confusing to me. It looks like it should work indeed some of the documentation I have seen recomends that you copy struts-blank to a new location to use as a skeleton for your app. So what am I doing wrong?
I just hope that this is not an omen for what's to come