A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
Win a copy of
The Mikado Method
this week in the
Agile and other Processes
forum!
JavaRanch
»
Java Forums
»
Frameworks
»
Struts
Author
Struts2 validation using annotation
sarada srinivas
Greenhorn
Joined: Oct 09, 2008
Posts: 20
posted
Jun 07, 2010 07:06:20
0
Hi All,
I developed struts2 application using the version 2.0.14 .
Now I want use annotaion in 2.0.14 but the required jar file i.e. struts2-convention-plugin-2.1.6.jar is provided in the version 2.1.
Annotation woks fine in 2.1.6 but i want to run in 2.0.14 .
It throws the below error while integrating annotation to struts2.0.14
SEVERE: Exception starting filter struts2
Unable to load bean: typerg.apache.struts2.convention.ActionConfigBuilder classrg.apache.struts2.convention.PackageBasedActionConfigBuilder - bean - jar:file:/D:/learn/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp2/wtpwebapps/quickstart/WEB-INF/lib/struts2-convention-plugin-2.1.6.jar!/struts-plugin.xml:32:137
at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(XmlConfigurationProvider.java:208)
Please let me know to how to achive annotation (mainly multiple results)
Thanks,
Sarada.
David Newton
Author
Rancher
Joined: Sep 29, 2008
Posts: 12617
I like...
posted
Jun 07, 2010 15:41:28
0
You can't just randomly mix Struts versions like that--I rather doubt you'll be able to use the Convention plugin with Struts 2.0; you'd need to use the older Zero Configuration stuff:
http://struts.apache.org/2.0.14/docs/zero-configuration.html
I agree. Here's the link:
http://zeroturnaround.com/jrebel
- it saves me about five hours per week
subject: Struts2 validation using annotation
Similar Threads
Struts2 Spring AOP required jars
Struts2 - linked autocompleter problem
not getting time in action class from dojo tag <sx:datetimepicker type="time"/> in jsp (Struts2)
Struts2 Annotations
Exception while running struts2 application.
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter