Return-Path: Delivered-To: apmail-struts-user-archive@www.apache.org Received: (qmail 96418 invoked from network); 23 Dec 2006 07:46:44 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 23 Dec 2006 07:46:44 -0000 Received: (qmail 35303 invoked by uid 500); 23 Dec 2006 07:46:41 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 35265 invoked by uid 500); 23 Dec 2006 07:46:41 -0000 Mailing-List: contact user-help@struts.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Struts Users Mailing List" Reply-To: "Struts Users Mailing List" Delivered-To: mailing list user@struts.apache.org Received: (qmail 35254 invoked by uid 99); 23 Dec 2006 07:46:41 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 22 Dec 2006 23:46:41 -0800 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=DATE_IN_FUTURE_03_06,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of mymailnot@gmail.com designates 66.249.82.234 as permitted sender) Received: from [66.249.82.234] (HELO wx-out-0506.google.com) (66.249.82.234) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 22 Dec 2006 23:46:29 -0800 Received: by wx-out-0506.google.com with SMTP id t11so3508745wxc for ; Fri, 22 Dec 2006 23:46:09 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:from:to:references:subject:date:mime-version:content-type:content-transfer-encoding:x-priority:x-msmail-priority:x-mailer:x-mimeole; b=m1FO3qlv7WyH0lOi5RxUxdnjlsHwKz46sQXsS8XuTagkA9MSn23qRBRS9tfLoXDvPJq5/G9VCnWlNJaYfKquEiCPIlgHH9BDS0yH52RT3cmzCUORhJaZqJ9Q9fxigeDiyUkcD0UqUWzThPkgBR/DhM8GoodAiN9lGcJtuKy9iYY= Received: by 10.90.100.2 with SMTP id x2mr9740361agb.1166859968864; Fri, 22 Dec 2006 23:46:08 -0800 (PST) Received: from Nuwan ( [222.165.181.105]) by mx.google.com with ESMTP id 2sm14369511aga.2006.12.22.23.46.04; Fri, 22 Dec 2006 23:46:07 -0800 (PST) Message-ID: <00c801c72695$1fbf45c0$0201a8c0@Nuwan> From: "Nuwan Chandrasoma" To: "Struts Users Mailing List" References: <768eb29e0612221148g4ca5bb60s608b43d4be4ae26a@mail.gmail.com> <768eb29e0612221931i3754d471o4f9c78c29974093c@mail.gmail.com> Subject: Re: Struts2 and spring2 fails, adding RequestContextFilter/Listener doesnt work. Date: Sat, 23 Dec 2006 13:20:25 -0000 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.3028 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028 X-Virus-Checked: Checked by ClamAV on apache.org Hi Peder, This looks ok for me, try by adding "struts.objectFactory = spring" into struts.properties file and see Thanks, Nuwan. ----- Original Message ----- From: "Peder Larsen" To: "Struts Users Mailing List" Sent: Saturday, December 23, 2006 3:31 AM Subject: Re: Struts2 and spring2 fails, adding RequestContextFilter/Listener doesnt work. > Ok my config is: > applicationContext.xml, > > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xmlns:aop="http://www.springframework.org/schema/aop" > xsi:schemaLocation="http://www.springframework.org/schema/beans > http://www.springframework.org/schema/beans/spring-beans.xsd > http://www.springframework.org/schema/aop > http://www.springframework.org/schema/aop/spring-aop.xsd"> > > scope="session"> > > > > > struts.xml, > > "-//Apache Software Foundation//DTD Struts Configuration 2.0//EN" > "http://struts.apache.org/dtds/struts-2.0.dtd"> > > > > > > > > > > > > > > > /ftl/index.ftl > > > > web.xml, > > > xmlns="http://java.sun.com/xml/ns/j2ee" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee > http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"> > > Test webapp > > > contextConfigLocation > classpath*:applicationContext*.xml > > > > action2-cleanup > org.apache.struts2.dispatcher.ActionContextCleanUp > > > > action2 > org.apache.struts2.dispatcher.FilterDispatcher > > > > requestContextFilter > org.springframework.web.filter.RequestContextFilter > > > > requestContextFilter > /* > > > action2-cleanup > /* > > > action2 > /* > > > > > org.springframework.web.context.ContextLoaderListener > > > index.jsp > > > > Whew! That is a long listing, i've also tried with the > org.springframework.web.context.request.RequestContextListener listener > but > run in the same problem. > > Also tried what nuwan chandrasoma suggested in the thread above this but > i've already tried that. > > So anyone spots whats missing? > > Thanks for all help. > On 12/23/06, Wendy Smoak wrote: >> >> On 12/22/06, Peder Larsen wrote: >> >> > I've been trying for some time now to get my basic struts2 test up and >> > running. The problem i have is that i need to inject one UserInfo pr >> session >> > into my FooAction. I want to use spring2 for this since it has better >> > "scope" support than spring1. >> >> Are you using the 2.0.1 beta release? >> >> > Anyone know what i might do to fix it? >> >> Post the relevant parts of your configuration files and code, and see >> if someone can spot the problem. >> >> -- >> Wendy >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org >> For additional commands, e-mail: user-help@struts.apache.org >> >> > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@struts.apache.org For additional commands, e-mail: user-help@struts.apache.org