Link to home
Create AccountLog in
Avatar of Joseph Jean pierre
Joseph Jean pierreFlag for India

asked on

Exception initializing TldLocationsCache XML parsing error on file /WEB-INF/web.xml: line 2, col 9 Document is invalid: no grammar found

1. Java version 1.6
2. Tomcat 4.x
3. Xalan Parsers 2.7
4. Struts framework 2.x
on windows xp sp2.

have set the JAVA_HOME and CATALINA_HOME variables.
I have configured Apache Tomcat with JDK 1.6 and JSP pages work
fine with http://localhost:8080

I'm New to Struts and i have downloaded the Struts 2.0 framework.

1. Copied
struts2-blank-2.0.11.1.war
struts2-mailreader-2.0.11.1.war
struts2-portlet-2.0.11.1.war
struts2-showcase-2.0.11.1.war
to the tomcat\webapps folder

2. Copied xalan jars to the tomat\common\endorsed directory
serializer.jar
xalan.jar
xercesImpl.jar
xml-apis.jar
xsltc.jar

3. Started up tomcat with startup.bat

4. when i use this URL
http://localhost:8080/struts2-blank-2.0.11.1/example/HelloWorld.action

I get this error ..

javax.servlet.ServletException: File "/struts-tags" not found
      at org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:515)
      at org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:419)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:165)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:145)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210)
      at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
      at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:955)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:139)
      at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
      at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:955)
      at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2460)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:133)
      at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
      at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:119)
      at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
      at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594)
      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
      at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:955)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:127)
      at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
      at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:955)
      at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:157)
      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:874)
      at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
      at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
      at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
      at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
      at java.lang.Thread.run(Thread.java:619)

and it says abt web.xml in the tomcat run time server window ....
"
Exception initializing TldLocationsCache: XML parsing error on file /WEB-INF/web
.xml: (line 2, col 9): Document is invalid: no grammar found."

How do i make this struct application to work ?.
What is the relation of web.xml with this ?
have i missed out something here ?


ASKER CERTIFIED SOLUTION
Avatar of cmalakar
cmalakar
Flag of India image

Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
Avatar of Joseph Jean pierre

ASKER

sure will try it and let you know if it works ...