struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "nick (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (WW-4911) JSONResult exception in struts2-json-plugin-2.5.14.1.jar
Date Mon, 22 Jan 2018 20:17:00 GMT

    [ https://issues.apache.org/jira/browse/WW-4911?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16334829#comment-16334829
] 

nick commented on WW-4911:
--------------------------

web.xml
------
<?xml version="1.0" encoding="UTF-8"?>

<web-app id="WebApp_ID" version="3.0" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd">

 <display-name>Struts 2</display-name>

 

 <filter>

 <filter-name>struts2</filter-name>

	<filter-class>org.apache.struts2.dispatcher.filter.StrutsPrepareAndExecuteFilter</filter-class>

 <init-param>

 <param-name>config</param-name>

 <param-value>struts-default.xml,struts.xml</param-value>

 </init-param>

 </filter>


 <filter-mapping>

 <filter-name>struts2</filter-name>

 <url-pattern>/*</url-pattern>

 </filter-mapping>

 <listener>

 <listener-class>

 crt.com.freightdesk.fdfolio.setup.GlobalMessagesListener

 </listener-class>

 </listener>

 

 <servlet>

 <servlet-name>dwr-invoker</servlet-name>

 <servlet-class>org.directwebremoting.servlet.DwrServlet</servlet-class>

 <init-param>

 <param-name>debug</param-name>

 <param-value>false</param-value>

 </init-param>

 <init-param>

 <param-name>crossDomainSessionSecurity</param-name>

 <param-value>false</param-value>

 </init-param>

 </servlet>

 

	<servlet>

 <servlet-name>bootstrap</servlet-name>

 <servlet-class>com.freightdesk.fdfolioweb.servlets.BootStrapServlet</servlet-class>

 <load-on-startup>1</load-on-startup>

 </servlet>

	

	<!-- Image validation servlet for auto password reset -->

	<servlet>

 <servlet-name>jcaptchaText</servlet-name>

 <servlet-class>com.octo.captcha.module.servlet.image.SimpleImageCaptchaServlet</servlet-class>

 <load-on-startup>1</load-on-startup>

 </servlet>

 <servlet>

 <servlet-name>jcaptchaAudio</servlet-name>

 <servlet-class>com.octo.captcha.module.servlet.SimpleSoundCaptchaServlet</servlet-class>

 <load-on-startup>1</load-on-startup>

 </servlet>

	

 <!-- Add download servlet for files -->

 <servlet>

 <servlet-name>DownloadServlet</servlet-name>

 <servlet-class>crt.com.ntelx.servlets.DownloadServlet</servlet-class>

 </servlet>

 

 <!-- dwr servlet mapping -->

 <servlet-mapping>

 <servlet-name>dwr-invoker</servlet-name>

 <url-pattern>/dwr/*</url-pattern>

 </servlet-mapping>

 

 <!-- Add download servlet mapping -->

 <servlet-mapping>

 <servlet-name>DownloadServlet</servlet-name>

 <url-pattern>/servlet/DownloadServlet</url-pattern>

 </servlet-mapping>

 

 <servlet-mapping>

 <servlet-name>jcaptchaText</servlet-name>

 <url-pattern>/jcaptcha.jpg</url-pattern>

 </servlet-mapping>

	

 <servlet-mapping>

 <servlet-name>jcaptchaAudio</servlet-name>

 <url-pattern>/jcaptcha.wav</url-pattern>

 </servlet-mapping>

 

 <session-config>

 <session-timeout>22</session-timeout>

 <cookie-config>

 <http-only>true</http-only>

 <secure>true</secure>

 </cookie-config>

 <tracking-mode>COOKIE</tracking-mode>

 </session-config>

 

 <welcome-file-list>

 <welcome-file>/logon.jsp</welcome-file>

 </welcome-file-list>

 

 <error-page>

 <error-code>500</error-code>

 <location>/ErrorPage.jsp</location>

 </error-page>

 <error-page>

 <error-code>501</error-code>

 <location>/NotFound.jsp</location>

 </error-page>

 <error-page>

 <error-code>404</error-code>

 <location>/NotFound.jsp</location>

 </error-page>

 <error-page>

	<exception-type>java.io.FileNotFoundException</exception-type >

 <location>/NotFound.jsp</location>

 </error-page>

	

 <resource-ref>

 <description>db</description>

 <res-ref-name>oraclePool</res-ref-name>

 <res-type>javax.sql.DataSource</res-type>

 <res-auth>Container</res-auth>

 <res-sharing-scope>Shareable</res-sharing-scope>

 <lookup-name>java:/oraclePool</lookup-name>

 </resource-ref>

	

</web-app>

> JSONResult exception in struts2-json-plugin-2.5.14.1.jar 
> ---------------------------------------------------------
>
>                 Key: WW-4911
>                 URL: https://issues.apache.org/jira/browse/WW-4911
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Plugin - JSON
>    Affects Versions: 2.5.14.1
>         Environment: Java, JSON, Hibernate, Struts2
>            Reporter: nick
>            Priority: Critical
>              Labels: easyfix
>             Fix For: 2.5.15
>
>   Original Estimate: 24h
>  Remaining Estimate: 24h
>
> Error log:
> 12:09:16,381 ERROR [stderr] (http-/127.0.0.1:8080-4) ERROR DefaultActionInvocation There
was an exception while instantiating the result of type org.apache.struts2.json.JSONResult
> 12:09:16,397 ERROR [stderr] (http-/127.0.0.1:8080-4)  com.opensymphony.xwork2.inject.DependencyException:
com.opensymphony.xwork2.inject.ContainerImpl$MissingDependencyException: No mapping found
for dependency [type=org.apache.struts2.json.JSONUtil, name='default'] in public void org.apache.struts2.json.JSONResult.setJsonUtil(org.apache.struts2.json.JSONUtil).



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message