RE: how to initialize database connection pool in struts 2?

2009-04-07 Thread Sidharth Bhatia
You can also use struts 2 spring capability and have the connection given to
you through dependency injection.

Sid Bhatia
"Try not. Do...  or do not. There is no try" -- Yoda
_
_ mailto:sidharth.bhat...@gmail.com 


-Original Message-
From: Wes Wannemacher [mailto:w...@wantii.com] 
Sent: Tuesday, April 07, 2009 11:29 PM
To: Struts Users Mailing List
Subject: Re: how to initialize database connection pool in struts 2?

On Tuesday 07 April 2009 21:38:44 john lee wrote:
> in structs 1, in APPLICATION/WEB-INF/web.xml, i have the following line
>  
>   
> DBInit
> neuco.db.DBInitServlet
> 1
> 
>  
> to initialize/launch default databse connection pool, how can i do this in
> struts 2 ? 
>  
> tks in advance
>  
> john

Same way would work...

-Wes

-- 

Wes Wannemacher
Author - Struts 2 In Practice 
Includes coverage of Struts 2.1, Spring, JPA, JQuery, Sitemesh and more
http://www.manning.com/wannemacher


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



RE: Web Services

2009-03-17 Thread Sidharth Bhatia
Hey Rafael,

I think Spring webservices are a great point to start at. If you already
know spring. The learning curve is not quite so steep.

thanks,

Sid Bhatia
"Try not. Do...  or do not. There is no try" -- Yoda
_
_ mailto:sidharth.bhat...@gmail.com 

-Original Message-
From: Rafael Taboada [mailto:kaliman.fore...@gmail.com] 
Sent: Tuesday, March 17, 2009 8:39 AM
To: user@struts.apache.org
Subject: Web Services

Hi list!

I have a Struts2+Dojo+JPA+Spring project working fine in a production
environment, but suddenly I have the requirement of exposing web services
from my project. I mean, I need to implement web services about my project
funcionality which other systems can consume.

I'm completely new at web services. Please can you guide me how I can
implement web services? Would Spring Web Services be a good point to start?

Thanks in advance for your help!

-- 
Rafael Taboada


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



RE: Errors repopulating the list after validation.

2009-02-19 Thread Sidharth Bhatia
Hi Jim,

The following is my getter. 

/**
 * Gets the countryCodes
 * @return the countryCodes
 */
public Collection getCountries()
{
return i_countries;
}

This loads perfectly the first time I enter the page. It is only after it is
submitted and fails validation does it not work.

My structure is the following: 

The first class that is loaded is PreRegisterAction.java which on success
uses the page Register.jsp. This part works fine.

Once Register.jsp is submitted, if it passes validation, it uses
RegisterAction.java, which goes to RegisterSuccess.jsp. This also works fine


The piece that does not work is when it fails validation and comes back to
the input page, which is register.jsp

thanks,

Sid Bhatia
"Try not. Do...  or do not. There is no try" -- Yoda
_
_ mailto:sidharth.bhat...@gmail.com 


-Original Message-
From: Jim Kiley [mailto:jhki...@summa-tech.com] 
Sent: Thursday, February 19, 2009 12:26 PM
To: Struts Users Mailing List
Subject: Re: Errors repopulating the list after validation.

Is your getter named "getCountries()"?

On Thu, Feb 19, 2009 at 12:23 PM, Sidharth Bhatia <
sidharth.bhat...@gmail.com> wrote:

> Hi,
>
> Thanks for the suggestion, but this seems to have not solved the problem.
> What I have is below:
>
> private Collection i_countries = new
ArrayList();
>
> thanks,
>
> Sid Bhatia
> "Try not. Do...  or do not. There is no try" -- Yoda
> _
> _ mailto:sidharth.bhat...@gmail.com
>
>
> -Original Message-
> From: sheva j [mailto:shee...@gmail.com]
> Sent: Wednesday, February 18, 2009 11:42 PM
> To: Struts Users Mailing List
> Subject: Re: Errors repopulating the list after validation.
>
> Hi,
> Declare like this in your action class,
>
> List country = new ArrayList();
>
> Hope this will solve your problem
>
> -
> Sheeva
>
> On Thu, Feb 19, 2009 at 5:47 AM, Sidharth Bhatia <
> sidharth.bhat...@gmail.com
> > wrote:
>
> > Hi,
> >
> >
> >
> > I have form, and a list that is being populated with it. When I first
> enter
> > the action the list populates properly. But the second time, I get the
> > following error:
> >
> >
> >
> > tag 'select', field 'list', name 'country': The requested list key
> > 'countries' could not be resolved as a
> > collection/array/map/enumeration/iterator type. Example: people or
> > people.{name} - [unknown location]
> >
> >
> > org.apache.struts2.components.Component.fieldError(Component.java:230)
> >
> >
> > org.apache.struts2.components.Component.findValue(Component.java:351)
> >
> >
> >
> >
>
>
org.apache.struts2.components.ListUIBean.evaluateExtraParams(ListUIBean.java
> > :80)
> >
> >
> >
org.apache.struts2.components.Select.evaluateExtraParams(Select.java:105)
> >
> >
> org.apache.struts2.components.UIBean.evaluateParams(UIBean.java:856)
> >
> >org.apache.struts2.components.UIBean.end(UIBean.java:510)
> >
> >
> >
> >
>
>
org.apache.struts2.views.jsp.ComponentTagSupport.doEndTag(ComponentTagSuppor
> > t.java:42)
> >
> >
> >
> >
>
>
org.apache.jsp.register_jsp._jspx_meth_s_005fselect_005f0(register_jsp.java:
> > 537)
> >
> >
> >
> >
>
>
org.apache.jsp.register_jsp._jspx_meth_s_005fform_005f0(register_jsp.java:18
> > 0)
> >
> >org.apache.jsp.register_jsp._jspService(register_jsp.java:81)
> >
> >
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
> >
> >javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
> >
> >
> >
> >
>
>
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:3
> > 74)
> >
> >
> > org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
> >
> >org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
> >
> >javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
> >
> >
> >
> >
>
>
org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:9
> > 68)
> >
> >
> >
> >
>
>
org.apache.jasper.runtime.PageContextImpl.doInclude(PageContextImpl.java:640
> > )
> >
> >
> >
>
org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.java:634)
> >
> >
> >
> >
>
>
org.apache.tiles.jsp.context.JspTilesRequestContext.include(JspTilesRequestC
> > ontext.java:80)
> >

RE: Errors repopulating the list after validation.

2009-02-19 Thread Sidharth Bhatia
Hi,

Thanks for the suggestion, but this seems to have not solved the problem.
What I have is below:

private Collection i_countries = new ArrayList();

thanks,

Sid Bhatia
"Try not. Do...  or do not. There is no try" -- Yoda
_
_ mailto:sidharth.bhat...@gmail.com 


-Original Message-
From: sheva j [mailto:shee...@gmail.com] 
Sent: Wednesday, February 18, 2009 11:42 PM
To: Struts Users Mailing List
Subject: Re: Errors repopulating the list after validation.

Hi,
Declare like this in your action class,

List country = new ArrayList();

Hope this will solve your problem

-
Sheeva

On Thu, Feb 19, 2009 at 5:47 AM, Sidharth Bhatia  wrote:

> Hi,
>
>
>
> I have form, and a list that is being populated with it. When I first
enter
> the action the list populates properly. But the second time, I get the
> following error:
>
>
>
> tag 'select', field 'list', name 'country': The requested list key
> 'countries' could not be resolved as a
> collection/array/map/enumeration/iterator type. Example: people or
> people.{name} - [unknown location]
>
>
> org.apache.struts2.components.Component.fieldError(Component.java:230)
>
>
> org.apache.struts2.components.Component.findValue(Component.java:351)
>
>
>
>
org.apache.struts2.components.ListUIBean.evaluateExtraParams(ListUIBean.java
> :80)
>
>
> org.apache.struts2.components.Select.evaluateExtraParams(Select.java:105)
>
>
org.apache.struts2.components.UIBean.evaluateParams(UIBean.java:856)
>
>org.apache.struts2.components.UIBean.end(UIBean.java:510)
>
>
>
>
org.apache.struts2.views.jsp.ComponentTagSupport.doEndTag(ComponentTagSuppor
> t.java:42)
>
>
>
>
org.apache.jsp.register_jsp._jspx_meth_s_005fselect_005f0(register_jsp.java:
> 537)
>
>
>
>
org.apache.jsp.register_jsp._jspx_meth_s_005fform_005f0(register_jsp.java:18
> 0)
>
>org.apache.jsp.register_jsp._jspService(register_jsp.java:81)
>
>org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
>
>javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
>
>
>
>
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:3
> 74)
>
>
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
>
>org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
>
>javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
>
>
>
>
org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:9
> 68)
>
>
>
>
org.apache.jasper.runtime.PageContextImpl.doInclude(PageContextImpl.java:640
> )
>
>
>
org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.java:634)
>
>
>
>
org.apache.tiles.jsp.context.JspTilesRequestContext.include(JspTilesRequestC
> ontext.java:80)
>
>
>
>
org.apache.tiles.jsp.context.JspTilesRequestContext.dispatch(JspTilesRequest
> Context.java:73)
>
>
>
>
org.apache.tiles.context.TilesRequestContextWrapper.dispatch(TilesRequestCon
> textWrapper.java:72)
>
>
>
>
org.apache.struts2.tiles.StrutsTilesRequestContext.dispatch(StrutsTilesReque
> stContext.java:88)
>
>
>
>
org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:28
> 3)
>
>
>
>
org.apache.tiles.jsp.taglib.InsertAttributeTag.render(InsertAttributeTag.jav
> a:140)
>
>
>
>
org.apache.tiles.jsp.taglib.InsertAttributeTag.render(InsertAttributeTag.jav
> a:117)
>
>
>
>
org.apache.tiles.jsp.taglib.RenderTagSupport.execute(RenderTagSupport.java:1
> 54)
>
>
>
>
org.apache.tiles.jsp.taglib.RoleSecurityTagSupport.doEndTag(RoleSecurityTagS
> upport.java:75)
>
>
>
>
org.apache.tiles.jsp.taglib.ContainerTagSupport.doEndTag(ContainerTagSupport
> .java:80)
>
>
>
>
org.apache.jsp.layouts.base_jsp._jspx_meth_tiles_005finsertAttribute_005f2(b
> ase_jsp.java:157)
>
>org.apache.jsp.layouts.base_jsp._jspService(base_jsp.java:79)
>
>org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
>
>javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
>
>
>
>
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:3
> 74)
>
>
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
>
>org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
>
>javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
>
>
>
>
org.apache.tiles.servlet.context.ServletTilesRequestContext.forward(ServletT
> ilesRequestContext.java:198)
>
>
>
>
org.apache.tiles.servlet.context.ServletTilesRequest

Errors repopulating the list after validation.

2009-02-18 Thread Sidharth Bhatia
Hi,

 

I have form, and a list that is being populated with it. When I first enter
the action the list populates properly. But the second time, I get the
following error:

 

tag 'select', field 'list', name 'country': The requested list key
'countries' could not be resolved as a
collection/array/map/enumeration/iterator type. Example: people or
people.{name} - [unknown location]

 
org.apache.struts2.components.Component.fieldError(Component.java:230)

 
org.apache.struts2.components.Component.findValue(Component.java:351)

 
org.apache.struts2.components.ListUIBean.evaluateExtraParams(ListUIBean.java
:80)

 
org.apache.struts2.components.Select.evaluateExtraParams(Select.java:105)

org.apache.struts2.components.UIBean.evaluateParams(UIBean.java:856)

org.apache.struts2.components.UIBean.end(UIBean.java:510)

 
org.apache.struts2.views.jsp.ComponentTagSupport.doEndTag(ComponentTagSuppor
t.java:42)

 
org.apache.jsp.register_jsp._jspx_meth_s_005fselect_005f0(register_jsp.java:
537)

 
org.apache.jsp.register_jsp._jspx_meth_s_005fform_005f0(register_jsp.java:18
0)

org.apache.jsp.register_jsp._jspService(register_jsp.java:81)

org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)

javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:3
74)

 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)

org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)

javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

 
org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:9
68)

 
org.apache.jasper.runtime.PageContextImpl.doInclude(PageContextImpl.java:640
)

 
org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.java:634)

 
org.apache.tiles.jsp.context.JspTilesRequestContext.include(JspTilesRequestC
ontext.java:80)

 
org.apache.tiles.jsp.context.JspTilesRequestContext.dispatch(JspTilesRequest
Context.java:73)

 
org.apache.tiles.context.TilesRequestContextWrapper.dispatch(TilesRequestCon
textWrapper.java:72)

 
org.apache.struts2.tiles.StrutsTilesRequestContext.dispatch(StrutsTilesReque
stContext.java:88)

 
org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:28
3)

 
org.apache.tiles.jsp.taglib.InsertAttributeTag.render(InsertAttributeTag.jav
a:140)

 
org.apache.tiles.jsp.taglib.InsertAttributeTag.render(InsertAttributeTag.jav
a:117)

 
org.apache.tiles.jsp.taglib.RenderTagSupport.execute(RenderTagSupport.java:1
54)

 
org.apache.tiles.jsp.taglib.RoleSecurityTagSupport.doEndTag(RoleSecurityTagS
upport.java:75)

 
org.apache.tiles.jsp.taglib.ContainerTagSupport.doEndTag(ContainerTagSupport
.java:80)

 
org.apache.jsp.layouts.base_jsp._jspx_meth_tiles_005finsertAttribute_005f2(b
ase_jsp.java:157)

org.apache.jsp.layouts.base_jsp._jspService(base_jsp.java:79)

org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)

javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:3
74)

 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)

org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)

javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

 
org.apache.tiles.servlet.context.ServletTilesRequestContext.forward(ServletT
ilesRequestContext.java:198)

 
org.apache.tiles.servlet.context.ServletTilesRequestContext.dispatch(Servlet
TilesRequestContext.java:179)

 
org.apache.tiles.context.TilesRequestContextWrapper.dispatch(TilesRequestCon
textWrapper.java:72)

 
org.apache.struts2.tiles.StrutsTilesRequestContext.dispatch(StrutsTilesReque
stContext.java:88)

 
org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:60
6)

 
org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:24
6)

 
org.apache.struts2.views.tiles.TilesResult.doExecute(TilesResult.java:105)

 
org.apache.struts2.dispatcher.StrutsResultSupport.execute(StrutsResultSuppor
t.java:186)

 
com.opensymphony.xwork2.DefaultActionInvocation.executeResult(DefaultActionI
nvocation.java:361)

 
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocati
on.java:265)

 
com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(Validati
onInterceptor.java:249)

 
org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.do
Intercept(AnnotationValidationInterceptor.java:68)

 
com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(Method
FilterInterceptor.java:87)

 
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocati
on.java:236)

 
com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.intercept(Con
versionErrorInterceptor.java:122)

 
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocati
on.java:236)

 
co

Using a list in the select tag

2009-02-16 Thread Sidharth Bhatia
Hi,

 

I have the following problem. I have a list that on one side comes out of an
object called CountryCode wich has a name and code field that is linked into
the list as follows:

 



 

  

The action that is called by the form implements ModelDriven, and the
user has a countryCode object as one of its fields under country. But when
the value comes back from the list it comes as a string, and the auto
population of the User object fails because of this. Is there anything I can
do to the jsp tags to change this? 

 

thanks,

Sid Bhatia
"Try not. Do...  or do not. There is no try" -- Yoda
_
*   mailto:sidharth.bhat...@gmail.com 

 



Integrating struts with Flex

2009-02-02 Thread Sidharth Bhatia
Hi guys,

 

I was interested in using struts with Flex technology on the front end. Does
anyone have any experience doing this? and if so, could you enumerate any
difficulties or obstacles you may have faced?

 

thanks,

Sid Bhatia
"Try not. Do...  or do not. There is no try" -- Yoda
_
*   mailto:sidharth.bhat...@gmail.com 

 



RE: Getting a spring error and need help.

2009-01-26 Thread Sidharth Bhatia
I am using the following:
http://repo1.maven.org/maven2/org/apache/struts/struts2-plugins/ to get the
plugin from.

Sid Bhatia
"Try not. Do...  or do not. There is no try" -- Yoda
_
_ mailto:sidharth.bhat...@gmail.com 


-Original Message-----
From: Sidharth Bhatia [mailto:sidharth.bhat...@gmail.com] 
Sent: Monday, January 26, 2009 7:10 PM
To: 'Struts Users Mailing List'
Subject: RE: Getting a spring error and need help.

This file:


struts2-plugins
org.apache.struts
2.1.2


Sid Bhatia
"Try not. Do...  or do not. There is no try" -- Yoda
_
_ mailto:sidharth.bhat...@gmail.com 


-Original Message-
From: Dave Newton [mailto:newton.d...@yahoo.com] 
Sent: Monday, January 26, 2009 7:08 PM
To: Struts Users Mailing List
Subject: Re: Getting a spring error and need help.

Sidharth Bhatia wrote:
> The file does not seem to exist in the maven repository.

Which file? Are you even using Maven?

In any case, I'd first try using the matching Spring library version 
(2.0.5) although I thought I remembered dropping in Spring 2.5 into a 
Struts 2.0 project and having it worked--but that was some time ago.

 > I am using the file named struts2-struts1-plugins-2.1.6.jar. Does
 > anyone know if this is the same file. It is from struts 2.1.6

Er, no, it's not the same file--it has a different name. That's the 
Struts 1 plugin...

You'll probably have to provide a little bit more information, as well 
as clean our your work directory etc. I'm using the Spring plugin in a 
Struts 2.0.14 project w/ Spring 2.0.5 with no difficulties. You should 
also turn up logging and see if any more information is provided. I'm 
quite sure it's something simple.

Dave


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org




-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



RE: Getting a spring error and need help.

2009-01-26 Thread Sidharth Bhatia
This file:


struts2-plugins
org.apache.struts
2.1.2


Sid Bhatia
"Try not. Do...  or do not. There is no try" -- Yoda
_
_ mailto:sidharth.bhat...@gmail.com 


-Original Message-
From: Dave Newton [mailto:newton.d...@yahoo.com] 
Sent: Monday, January 26, 2009 7:08 PM
To: Struts Users Mailing List
Subject: Re: Getting a spring error and need help.

Sidharth Bhatia wrote:
> The file does not seem to exist in the maven repository.

Which file? Are you even using Maven?

In any case, I'd first try using the matching Spring library version 
(2.0.5) although I thought I remembered dropping in Spring 2.5 into a 
Struts 2.0 project and having it worked--but that was some time ago.

 > I am using the file named struts2-struts1-plugins-2.1.6.jar. Does
 > anyone know if this is the same file. It is from struts 2.1.6

Er, no, it's not the same file--it has a different name. That's the 
Struts 1 plugin...

You'll probably have to provide a little bit more information, as well 
as clean our your work directory etc. I'm using the Spring plugin in a 
Struts 2.0.14 project w/ Spring 2.0.5 with no difficulties. You should 
also turn up logging and see if any more information is provided. I'm 
quite sure it's something simple.

Dave


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



RE: Getting a spring error and need help.

2009-01-26 Thread Sidharth Bhatia
Hi,

The file does not seem to exist in the maven repository. So I looked for it
in the struts package. I am using the file named
struts2-struts1-plugins-2.1.6.jar. Does anyone know if this is the same
file. It is from struts 2.1.6

But this file does not seem to solve the problem. I also had a suggestion to
change to spring 2.0.5 which did not matter either. Any other ideas? 


Sid Bhatia
"Try not. Do...  or do not. There is no try" -- Yoda
_
_ mailto:sidharth.bhat...@gmail.com 


-Original Message-
From: Martin Gainty [mailto:mgai...@hotmail.com] 
Sent: Monday, January 26, 2009 6:06 PM
To: Struts Users Mailing List
Subject: RE: Getting a spring error and need help.


Make sure struts2-plugin is configured in the pom.xml used to build the war

http://maven.apache.org/POM/4.0.0";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd";>

struts2-plugins
org.apache.struts
2.1.2


/*where /src/main/resources/struts-plugin.xml contains */
http://struts.apache.org/dtds/struts-2.0.dtd";>















HTH/
Martin 
__ 
Disclaimer and confidentiality note 
Everything in this e-mail and any attachments relates to the official
business of Sender. This transmission is of a confidential nature and Sender
does not endorse distribution to any party other than intended recipient.
Sender does not necessarily endorse content contained within this
transmission. 




> From: sidharth.bhat...@gmail.com
> To: user@struts.apache.org
> Subject: Getting a spring error and need help.
> Date: Mon, 26 Jan 2009 17:03:25 -0500
> 
> Hey guys,
> 
>  
> 
> I am getting the following spring error:
> 
>  
> 
> Cannot locate the chosen ObjectFactory implementation: spring - [unknown
> location]
> 
> at
>
org.apache.struts2.config.BeanSelectionProvider.alias(BeanSelectionProvider.
> java:224)
> 
> at
>
org.apache.struts2.config.BeanSelectionProvider.alias(BeanSelectionProvider.
> java:195)
> 
> at
>
org.apache.struts2.config.BeanSelectionProvider.register(BeanSelectionProvid
> er.java:153)
> 
> at
>
com.opensymphony.xwork2.config.impl.DefaultConfiguration.reload(DefaultConfi
> guration.java:131)
> 
> at
>
com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(Configu
> rationManager.java:52)
> 
> at
>
org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatche
> r.java:395)
> 
> at
> org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:452)
> 
> at
>
org.apache.struts2.dispatcher.FilterDispatcher.init(FilterDispatcher.java:20
> 1)
> 
> at
>
org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilter
> Config.java:275)
> 
> at
>
org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFil
> terConfig.java:397)
> 
> at
>
org.apache.catalina.core.ApplicationFilterConfig.(ApplicationFilterCon
> fig.java:108)
> 
> at
>
org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:37
> 09)
> 
> at
> org.apache.catalina.core.StandardContext.start(StandardContext.java:4363)
> 
> at
>
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:7
> 91)
> 
> at
> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
> 
> at
> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
> 
> at
> org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:830)
> 
> at
> org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:719)
> 
> at
> org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:490)
> 
> at
> org.apache.catalina.startup.HostConfig.check(HostConfig.java:1217)
> 
> at
> org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:293)
> 
> at
>
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor
> t.java:117)
> 
> at
>
org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:
> 1337)
> 
> at
>
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processC
> hildren(ContainerBase.java:1601)
> 
> at
>
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processC
> hildren(ContainerBase.java:1610)
> 
> at
>
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(Cont
> ainerBase.java:1590)
> 
> at java.lang.Thread.run(Unknown Source)
> 
> I am using Spring 2.5.6, struts2=core-2.0.11.2 and
> strut2-spr

RE: Getting a spring error and need help.

2009-01-26 Thread Sidharth Bhatia
Hi Martin,


struts2-plugins
org.apache.struts
2.1.2

Does this have to be a parent or can it be a dependency?


Sid Bhatia
"Try not. Do...  or do not. There is no try" -- Yoda
_
_ mailto:sidharth.bhat...@gmail.com 

-Original Message-
From: Martin Gainty [mailto:mgai...@hotmail.com] 
Sent: Monday, January 26, 2009 6:06 PM
To: Struts Users Mailing List
Subject: RE: Getting a spring error and need help.


Make sure struts2-plugin is configured in the pom.xml used to build the war

http://maven.apache.org/POM/4.0.0";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd";>

struts2-plugins
org.apache.struts
2.1.2


/*where /src/main/resources/struts-plugin.xml contains */
http://struts.apache.org/dtds/struts-2.0.dtd";>















HTH/
Martin 
__ 
Disclaimer and confidentiality note 
Everything in this e-mail and any attachments relates to the official
business of Sender. This transmission is of a confidential nature and Sender
does not endorse distribution to any party other than intended recipient.
Sender does not necessarily endorse content contained within this
transmission. 




> From: sidharth.bhat...@gmail.com
> To: user@struts.apache.org
> Subject: Getting a spring error and need help.
> Date: Mon, 26 Jan 2009 17:03:25 -0500
> 
> Hey guys,
> 
>  
> 
> I am getting the following spring error:
> 
>  
> 
> Cannot locate the chosen ObjectFactory implementation: spring - [unknown
> location]
> 
> at
>
org.apache.struts2.config.BeanSelectionProvider.alias(BeanSelectionProvider.
> java:224)
> 
> at
>
org.apache.struts2.config.BeanSelectionProvider.alias(BeanSelectionProvider.
> java:195)
> 
> at
>
org.apache.struts2.config.BeanSelectionProvider.register(BeanSelectionProvid
> er.java:153)
> 
> at
>
com.opensymphony.xwork2.config.impl.DefaultConfiguration.reload(DefaultConfi
> guration.java:131)
> 
> at
>
com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(Configu
> rationManager.java:52)
> 
> at
>
org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatche
> r.java:395)
> 
> at
> org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:452)
> 
> at
>
org.apache.struts2.dispatcher.FilterDispatcher.init(FilterDispatcher.java:20
> 1)
> 
> at
>
org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilter
> Config.java:275)
> 
> at
>
org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFil
> terConfig.java:397)
> 
> at
>
org.apache.catalina.core.ApplicationFilterConfig.(ApplicationFilterCon
> fig.java:108)
> 
> at
>
org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:37
> 09)
> 
> at
> org.apache.catalina.core.StandardContext.start(StandardContext.java:4363)
> 
> at
>
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:7
> 91)
> 
> at
> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
> 
> at
> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
> 
> at
> org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:830)
> 
> at
> org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:719)
> 
> at
> org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:490)
> 
> at
> org.apache.catalina.startup.HostConfig.check(HostConfig.java:1217)
> 
> at
> org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:293)
> 
> at
>
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor
> t.java:117)
> 
> at
>
org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:
> 1337)
> 
> at
>
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processC
> hildren(ContainerBase.java:1601)
> 
> at
>
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processC
> hildren(ContainerBase.java:1610)
> 
> at
>
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(Cont
> ainerBase.java:1590)
> 
> at java.lang.Thread.run(Unknown Source)
> 
> I am using Spring 2.5.6, struts2=core-2.0.11.2 and
> strut2-spring=plugin-2.0.11.2
> 
> My Struts.xml file has:
> 
>  
> 
> 
> 
>  
> "-//Apache Software Foundation//DTD Struts Configuration
> 
> 2.0//EN"
> 
> "http://struts.apache.org/dtds/struts-2.0.dtd";>
> 
> 
> 
>  
> 
> 
> 
>   
> 
>   

Getting a spring error and need help.

2009-01-26 Thread Sidharth Bhatia
Hey guys,

 

I am getting the following spring error:

 

Cannot locate the chosen ObjectFactory implementation: spring - [unknown
location]

at
org.apache.struts2.config.BeanSelectionProvider.alias(BeanSelectionProvider.
java:224)

at
org.apache.struts2.config.BeanSelectionProvider.alias(BeanSelectionProvider.
java:195)

at
org.apache.struts2.config.BeanSelectionProvider.register(BeanSelectionProvid
er.java:153)

at
com.opensymphony.xwork2.config.impl.DefaultConfiguration.reload(DefaultConfi
guration.java:131)

at
com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(Configu
rationManager.java:52)

at
org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatche
r.java:395)

at
org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:452)

at
org.apache.struts2.dispatcher.FilterDispatcher.init(FilterDispatcher.java:20
1)

at
org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilter
Config.java:275)

at
org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFil
terConfig.java:397)

at
org.apache.catalina.core.ApplicationFilterConfig.(ApplicationFilterCon
fig.java:108)

at
org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:37
09)

at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4363)

at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:7
91)

at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)

at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)

at
org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:830)

at
org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:719)

at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:490)

at
org.apache.catalina.startup.HostConfig.check(HostConfig.java:1217)

at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:293)

at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor
t.java:117)

at
org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:
1337)

at
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processC
hildren(ContainerBase.java:1601)

at
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processC
hildren(ContainerBase.java:1610)

at
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(Cont
ainerBase.java:1590)

at java.lang.Thread.run(Unknown Source)

I am using Spring 2.5.6, struts2=core-2.0.11.2 and
strut2-spring=plugin-2.0.11.2

My Struts.xml file has:

 



http://struts.apache.org/dtds/struts-2.0.dtd";>



 



  

index.jsp

  





 

My web.xml file has:

 



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

  Me

  

contextConfigLocation

classpath*:applicationContext*.xml

  

  

  action2

  

org.apache.struts2.dispatcher.FilterDispatcher

  

  

config

/WEB-INF/struts.xml





actionPackages

war.actions



  

  

action2

/*

  

  

 
org.springframework.web.context.ContextLoaderListener



  

  jspSupportServlet

 
org.apache.struts2.views.JspSupportServlet

  5





  

index.action

  



 

Any help appreciated. 

 

thanks,

Sid Bhatia
"Try not. Do...  or do not. There is no try" -- Yoda
_
*   mailto:sidharth.bhat...@gmail.com