org.apache.jasper.JasperException struts-examples-master crud

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

org.apache.jasper.JasperException struts-examples-master crud

albert kao-2
I downloaded struts-examples-master.zip from
https://github.com/apache/struts-examples.
Unzip it and run mvn.

# mvn -version
Apache Maven 3.5.0 (ff8f5e7444045639af65f6095c62210b5713f426;
2017-04-03T15:39:06-04:00)
Maven home: /home/alkao/maven/apache-maven-3.5.0
Java version: 1.8.0_144, vendor: Oracle Corporation
Java home: /home/alkao/jdk/jdk1.8.0_144/jre
Default locale: en_CA, platform encoding: UTF-8
OS name: "linux", version: "4.4.0-21-generic", arch: "i386", family: "unix"


$ mvn -e clean package

Copy crud-1.0-SNAPSHOT.war to Apache TomEE:
# cp ~/Struts2/struts-examples-master/crud/target/crud-1.0-SNAPSHOT.war
$CATALINA_HOME/webapps/.


In a browser accessing URL:
http://localhost:8080/crud-1.0-SNAPSHOT/index.jsp


which display:
"Welcome To Struts 2!

List People"


Then clicking the 'List People' link displayed:

Struts Problem Report

Struts has detected an unhandled exception:

Messages:
/WEB-INF/jsp/persons.jsp (line: 13, column: 8) Attribute id invalid for tag
url according to TLD
File: org/apache/jasper/compiler/DefaultErrorHandler.java
Line number: 41
Stacktraces

org.apache.jasper.JasperException: /WEB-INF/jsp/persons.jsp (line: 13,
column: 8) Attribute id invalid for tag url according to TLD

org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:41)

org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:291)

org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:114)

org.apache.jasper.compiler.Validator$ValidateVisitor.checkXmlAttributes(Validator.java:1266)

org.apache.jasper.compiler.Validator$ValidateVisitor.visit(Validator.java:879)
    org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1545)
    org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2392)
    org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2444)
    org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2450)
    org.apache.jasper.compiler.Node$Root.accept(Node.java:471)
    org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2392)

org.apache.jasper.compiler.Validator.validateExDirectives(Validator.java:1853)
    org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:219)
    org.apache.jasper.compiler.Compiler.compile(Compiler.java:372)
    org.apache.jasper.compiler.Compiler.compile(Compiler.java:349)
    org.apache.jasper.compiler.Compiler.compile(Compiler.java:333)

org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:600)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:368)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:385)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:329)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:729)

org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:230)

org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)
    org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)

org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192)

org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)

org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:726)

org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:469)

org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:394)

org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:311)

org.apache.struts2.result.ServletDispatcherResult.doExecute(ServletDispatcherResult.java:173)

org.apache.struts2.result.StrutsResultSupport.execute(StrutsResultSupport.java:208)

com.opensymphony.xwork2.DefaultActionInvocation.executeResult(DefaultActionInvocation.java:373)

com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:277)

com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.doIntercept(ConversionErrorInterceptor.java:139)

com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)

com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:247)

com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:134)

com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)

com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:247)

com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:134)

com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)

com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:247)

org.apache.struts2.interceptor.MultiselectInterceptor.intercept(MultiselectInterceptor.java:69)

com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:247)

org.apache.struts2.interceptor.DateTextFieldInterceptor.intercept(DateTextFieldInterceptor.java:115)

com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:247)

org.apache.struts2.interceptor.CheckboxInterceptor.intercept(CheckboxInterceptor.java:88)

com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:247)

com.opensymphony.xwork2.interceptor.PrepareInterceptor.doIntercept(PrepareInterceptor.java:174)

com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)

com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:247)

org.apache.struts2.interceptor.ServletConfigInterceptor.intercept(ServletConfigInterceptor.java:171)

com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:247)

com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept(ExceptionMappingInterceptor.java:193)

com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:247)

org.apache.struts2.factory.StrutsActionProxy.execute(StrutsActionProxy.java:53)

org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:577)

org.apache.struts2.dispatcher.ExecuteOperations.executeAction(ExecuteOperations.java:81)

org.apache.struts2.dispatcher.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:143)

org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192)

org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)

org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:198)

org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
    org.apache.tomee.catalina.OpenEJBValve.invoke(OpenEJBValve.java:44)

org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:474)

org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140)

org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)

org.apache.tomee.catalina.OpenEJBSecurityListener$RequestCapturer.invoke(OpenEJBSecurityListener.java:97)

org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:624)

org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)

org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:349)

org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:783)

org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)

org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:798)

org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1434)

org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)

java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)

java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)

org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
    java.lang.Thread.run(Thread.java:748)

You are seeing this page because development mode is enabled. Development
mode, or devMode, enables extra debugging behaviors and reports to assist
developers. To disable this mode, set:

  struts.devMode=false
in your WEB-INF/classes/struts.properties file.
Reply | Threaded
Open this post in threaded view
|

Re: org.apache.jasper.JasperException struts-examples-master crud

Yasser Zamani


On 10/14/2017 5:43 AM, albert kao wrote:
> Messages:
> /WEB-INF/jsp/persons.jsp (line: 13, column: 8) Attribute id invalid for tag
> url according to TLD

Hello Albert,

Thanks for your report. It seems struts-examples need some fixes which
are under processing at [1].

Regards,
Yasser.

[1] https://github.com/apache/struts-examples/pull/16

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]