Apache Tiles, похоже, не может включить другие jsp, когда я смотрю фактическое действие Struts, используя такие инструменты, как Curl или Jmeter.Однако он прекрасно работает, когда тот же URL используется в браузере.Любая идея, в чем может быть проблема?
Завиток
curl -v -L "http://local.com/Welcome.action"
Trying 192.168.56.101...
TCP_NODELAY set
Connected to local.com (192.168.56.101) port 80 (#0)
GET /Welcome.action HTTP/1.1
Host: local.com
User-Agent: curl/7.50.3
Accept: */*
HTTP/1.1 500
Set-Cookie: JSESSIONID=E0C1DC0DAA6CB548417470DEBA116B05; Path=/; HttpOnly
Set-Cookie: CUSTOMER_UUID=b74152d4-2f97-4d64-9724-3e435b62df1d; Max-Age=31536000; Expires=Wed, 18-Sep-2019 09:22:53 GMT; Path=/; HttpOnly
Content-Type: text/html;charset=utf-8
Content-Language: en
Transfer-Encoding: chunked
Date: Tue, 18 Sep 2018 09:22:53 GMT
Connection: close
Журнал
org.apache.tiles.TilesException: ServletException including path '/WEB-INF/jsp/custom/MainLayout.jsp'.
org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:614)
org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:246)
org.apache.tiles.util.TilesIOException: ServletException including path '/WEB-INF/jsp/custom/MainLayout.jsp'.
org.apache.tiles.servlet.context.ServletTilesRequestContext.wrapServletException(ServletTilesRequestContext.java:298)
org.apache.tiles.servlet.context.ServletTilesRequestContext.include(ServletTilesRequestContext.java:219)
Root Cause java.lang.NullPointerException
org.apache.jsp.WEB_002dINF.jsp.custom.Top_jsp._jspService(Top_jsp.java:404)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
tile.xml
<definition name="catalog.main.page" template="/WEB-INF/jsp/custom/MainLayout.jsp">
<put-attribute name="header1" value="/WEB-INF/jsp/custom/Top.jsp"/>
web.xml
<filter>
<filter-name>struts2</filter-name>
<filter-class>org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>struts2</filter-name>
<url-pattern>*.action</url-pattern>
</filter-mapping>
<listener>
<listener-class>org.apache.struts2.tiles.StrutsTilesListener</listener-class>
</listener>
<context-param>
<param-name>org.apache.tiles.impl.BasicTilesContainer.DEFINITIONS_CONFIG</param-name>
<param-value>/WEB-INF/tiles.xml</param-value>
</context-param>
Tiles 2.0.6 Struts 2.3.8 Tomcat 8.5.20