Return-Path: X-Original-To: apmail-struts-issues-archive@minotaur.apache.org Delivered-To: apmail-struts-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1733D10603 for ; Wed, 21 Jan 2015 09:37:36 +0000 (UTC) Received: (qmail 55994 invoked by uid 500); 21 Jan 2015 09:37:35 -0000 Delivered-To: apmail-struts-issues-archive@struts.apache.org Received: (qmail 55953 invoked by uid 500); 21 Jan 2015 09:37:35 -0000 Mailing-List: contact issues-help@struts.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@struts.apache.org Delivered-To: mailing list issues@struts.apache.org Received: (qmail 55942 invoked by uid 99); 21 Jan 2015 09:37:35 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 21 Jan 2015 09:37:35 +0000 Date: Wed, 21 Jan 2015 09:37:35 +0000 (UTC) From: "Lukasz Lenart (JIRA)" To: issues@struts.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (WW-4446) Struts2-Spring & JUnit plugin warn "java.io.FileNotFoundException: class path resource [org/apache/struts2/dispatcher/error.ftl]" MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/WW-4446?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14285404#comment-14285404 ] Lukasz Lenart commented on WW-4446: ----------------------------------- This warning has nothing to do with the mentioned deprecated method, it's do to new {{DispatcherErrorHandler}} interface and default implementation. Now I'm trying to figure out how to inject mock implementation of {{DispatcherErrorHandler}} into {{Dispatcher}} > Struts2-Spring & JUnit plugin warn "java.io.FileNotFoundException: class path resource [org/apache/struts2/dispatcher/error.ftl]" > --------------------------------------------------------------------------------------------------------------------------------- > > Key: WW-4446 > URL: https://issues.apache.org/jira/browse/WW-4446 > Project: Struts 2 > Issue Type: Improvement > Components: Dispatch Filter, Plugin - JUnit, Plugin - Spring > Affects Versions: 2.3.20, 2.3.21 > Environment: Windows7-64bit > Apache Tomcat 7.0.54 > Struts2.3.20 > Reporter: A-pZ > Priority: Minor > Labels: test > Fix For: 2.3.22 > > Attachments: RegisterActionTest.java, SpringJUnit_2.3.20.log > > > I wrote JUnit test , Struts2,Spring-plugin,JUnit-plugin version 2.3.16.3 is work fine. > And I replace Struts2 new version ( > Struts2.3.20 + Spring-plugin2.3.20 + JUnit-plugin2.3.20) cause internal exception and output stacktrace and wait few seconds all tests , but tests work successfully. > I guess since 2.3.17 , org.apache.struts2.dispatcher.Dispatcher#serviceAction(HttpServletRequest, HttpServletResponse, ServletContext, ActionMapping) was deprecated, test class extends StrutsJUnit4TestCase or StrutsSpringJUnit4TestCase not received Spring configuration or missing classpath at start up test methods. > regards. -- This message was sent by Atlassian JIRA (v6.3.4#6332)