Re: struts 2 validation if use with spring

2013-03-11 Thread Lukasz Lenart
2013/3/9 john lee :
> i just checked your demo, looks like the first tricky is to define proxy 
> action name signin in struts.xml

It isn't any trick, it's the normal why how to define many actions
base on one action class.

> struts.xml
>
> 
>   /example/Login.jsp
>   Welcome
> 
>
> 
>
> and second tricky to define signin method in the file LoginAction.java
>
>
> LoinAction.java
> ...
>
> public String signin() {
> return SUCCESS;
> }
> ...
>
> 
>
> my question next is:
>
> why can not use  Login-validation.xml directly ? but have to use your "proxy 
> method" to work around?

You can but then the validation will be fired also when you just enter
the login page which isn't what user expect - to be more specific,
validation will be fired for each action defined base on Login class.

> is this the only way to lett struts2/spring validation works?

As I said no, but thus presents the clear way what is validated when.


Regards
-- 
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/

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



Re: struts 2 start problem struts2-gxp-plugin-2.3.7.jar

2013-03-11 Thread Lukasz Lenart
2013/3/11 john lee :
> alpha:/var/apache-tomcat-7.0.34/webapps/ecommerce/WEB-INF/lib # ls
> antlr-2.7.2.jar   google-gxp-0.2.4-beta.jar
> spring-core-3.0.5.RELEASE.jarstruts2-oval-plugin-2.3.7.jar
> aopalliance-1.0.jar   jackson-core-asl-1.9.2.jar   
> spring-expression-3.0.5.RELEASE.jar  
> struts2-pell-multipart-plugin-2.3.7.jar
> asm-3.3.jar   jackson-mapper-asl-1.9.2.jar 
> spring-test-3.0.5.RELEASE.jarstruts2-plexus-plugin-2.3.7.jar
> asm-commons-3.3.jar   javassist-3.11.0.GA.jar  
> spring-web-3.0.5.RELEASE.jar struts2-portlet-plugin-2.3.7.jar
> asm-tree-3.3.jar  json-lib-2.3-jdk15.jar   
> struts-core-1.3.10.jar   struts2-rest-plugin-2.3.7.jar
> c3p0-0.9.2-pre8.jar   juli-6.0.18.jar  
> struts2-codebehind-plugin-2.3.7.jar  struts2-sitegraph-plugin-2.3.7.jar
> classworlds-1.1.jar   junk 
> struts2-config-browser-plugin-2.3.7.jar  struts2-sitemesh-plugin-2.3.7.jar
> commons-beanutils-1.8.0.jar   ognl-3.0.5.jar   
> struts2-convention-plugin-2.3.7.jar  struts2-spring-plugin-2.3.7.jar
> commons-chain-1.2.jar org.apache.felix.bundlerepository-1.2.1.jar  
> struts2-core-2.3.7.jar   struts2-struts1-plugin-2.3.7.jar
> commons-collections-3.1.jar   org.apache.felix.framework-1.4.1.jar 
> struts2-dojo-plugin-2.3.7.jarstruts2-testng-plugin-2.3.7.jar
> commons-digester-2.0.jar  org.apache.felix.main-1.4.1.jar  
> struts2-dwr-plugin-2.3.7.jar struts2-tiles-plugin-2.3.7.jar
> commons-fileupload-1.2.2.jar  org.apache.felix.shell-1.0.2.jar 
> struts2-embeddedjsp-plugin-2.3.7.jar testng-5.1-jdk15.jar
> commons-io-2.0.1.jar  org.apache.felix.shell.tui-1.0.2.jar 
> struts2-gxp-plugin-2.3.7.jar tiles-api-2.0.6.jar
> commons-lang-2.4.jar  oro-2.0.8.jar
> struts2-jasperreports-plugin-2.3.7.jar   tiles-core-2.0.6.jar
> commons-lang3-3.1.jar oval-1.31.jar
> struts2-javatemplates-plugin-2.3.7.jar   tiles-jsp-2.0.6.jar
> commons-logging-1.1.1.jar plexus-container-default-1.0-alpha-10.jar
> struts2-jfreechart-plugin-2.3.7.jar  velocity-1.6.3.jar
> commons-logging-api-1.1.jar   plexus-utils-1.2.jar 
> struts2-jsf-plugin-2.3.7.jar xmlpull-1.1.3.1.jar
> commons-validator-1.3.1.jar   sitemesh-2.4.2.jar   
> struts2-json-plugin-2.3.7.jarxpp3_min-1.1.4c.jar
> dwr-1.1.1.jar spring-aop-3.0.5.RELEASE.jar 
> struts2-junit-plugin-2.3.7.jar   xstream-1.4.2.jar
> ezmorph-1.0.6.jar spring-asm-3.0.5.RELEASE.jar 
> struts2-osgi-admin-bundle-2.3.7.jar  xwork-core-2.3.7.jar
> freemarker-2.3.19.jar spring-beans-3.0.5.RELEASE.jar   
> struts2-osgi-demo-bundle-2.3.7.jar
> google-collections-1.0.jarspring-context-3.0.5.RELEASE.jar 
> struts2-osgi-plugin-2.3.7.jar

For sure I must reduce the number of jars - you are using all the
available plugins and its dependencies which isn't good ;-)


Regards
-- 
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/

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



Re: Struts 1.1 and Tiles 2 compatability

2013-03-11 Thread Ken McWilliams
The link would be useful:
http://stackoverflow.com/questions/13337938/how-to-integrate-struts-2-with-tiles-3


On Mon, Mar 11, 2013 at 3:29 PM, Ken McWilliams wrote:

> I don't know struts1 at all, but if you are afforded that ability to
> create a custom result type then you should be able to manually invoke
> tiles (at any version including version 3, which if you're going to put in
> the effort should be your target). Here is how something similar was done
> with Struts2, clearly not the same thing but the web.xml set up for tiles
> and the dependencies for tiles would have the same starting point.
>
>
> On Mon, Mar 11, 2013 at 2:34 PM, Sekar, Sowmya  wrote:
>
>> Is any version of Struts 1 (example : Struts 1.4) compatible with Tiles
>> 2.2.2.?
>>
>> Thanks, Sowmya
>>
>> -Original Message-
>> From: paulus.benedic...@gmail.com [mailto:paulus.benedic...@gmail.com]
>> On Behalf Of Paul Benedict
>> Sent: Monday, March 11, 2013 1:15 PM
>> To: Struts Users Mailing List
>> Subject: Re: Struts 1.1 and Tiles 2 compatability
>>
>> Tiles 2 is not compatible with Struts 1. You must use Tiles 1.
>>
>> Paul
>>
>> On Mon, Mar 11, 2013 at 3:01 PM, Sekar, Sowmya  wrote:
>>
>> > Hi,
>> >
>> > I am in the process of upgrading from Tiles 1 to Tiles 2.2.2 combined
>> > with Struts 1.1.
>> >
>> > I have the following configuration in struts-config.xml
>> >
>> > > > processorClass="org.apache.struts.tiles.TilesRequestProcessor"/>
>> >
>> >   
>> > > > value="/WEB-INF/tiles.xml"/>
>> > 
>> > 
>> >   
>> >
>> > Below is the dtd configured in tiles.xml
>> >
>> > > >"-//Apache Software Foundation//DTD Tiles Configuration 2.0//EN"
>> >"http://tiles.apache.org/dtds/tiles-config_2_0.dtd";>
>> >
>> > I have the tiles2.2.2 related jars(tiles-jsp, tiles-servlet,
>> > tiles-template, tiles-api, tiles-core) in my classpath and I use maven
>> > to import jars in my project
>> >
>> > When I start tomcat and display my page, I get the following error,
>> >
>> > Mar 11, 2013 12:54:52 PM
>> > org.apache.catalina.core.ApplicationDispatcher
>> > invoke
>> > SEVERE: Servlet.service() for servlet jsp threw exception
>> > org.apache.tiles.template.NoSuchAttributeException: Attribute 'topmenu'
>> > not found.
>> >at
>> >
>> org.apache.tiles.template.DefaultAttributeResolver.computeAttribute(DefaultAttributeResolver.java:49)
>> >at
>> >
>> org.apache.tiles.template.InsertAttributeModel.resolveAttribute(InsertAttributeModel.java:187)
>> >at
>> > org.apache.tiles.template.InsertAttributeModel.start(InsertAttributeMo
>> > del.java:107)
>> >
>> > It is not able to find any of the attributes in tiles.xml
>> >
>> > Any thoughts?
>> >
>> > Thanks,
>> > Sowmya
>> > sse...@ucsd.edu
>> >
>> >
>>
>> -
>> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
>> For additional commands, e-mail: user-h...@struts.apache.org
>>
>>
>


Re: Struts 1.1 and Tiles 2 compatability

2013-03-11 Thread Ken McWilliams
I don't know struts1 at all, but if you are afforded that ability to create
a custom result type then you should be able to manually invoke tiles (at
any version including version 3, which if you're going to put in the effort
should be your target). Here is how something similar was done with
Struts2, clearly not the same thing but the web.xml set up for tiles and
the dependencies for tiles would have the same starting point.


On Mon, Mar 11, 2013 at 2:34 PM, Sekar, Sowmya  wrote:

> Is any version of Struts 1 (example : Struts 1.4) compatible with Tiles
> 2.2.2.?
>
> Thanks, Sowmya
>
> -Original Message-
> From: paulus.benedic...@gmail.com [mailto:paulus.benedic...@gmail.com] On
> Behalf Of Paul Benedict
> Sent: Monday, March 11, 2013 1:15 PM
> To: Struts Users Mailing List
> Subject: Re: Struts 1.1 and Tiles 2 compatability
>
> Tiles 2 is not compatible with Struts 1. You must use Tiles 1.
>
> Paul
>
> On Mon, Mar 11, 2013 at 3:01 PM, Sekar, Sowmya  wrote:
>
> > Hi,
> >
> > I am in the process of upgrading from Tiles 1 to Tiles 2.2.2 combined
> > with Struts 1.1.
> >
> > I have the following configuration in struts-config.xml
> >
> >  > processorClass="org.apache.struts.tiles.TilesRequestProcessor"/>
> >
> >   
> >  > value="/WEB-INF/tiles.xml"/>
> > 
> > 
> >   
> >
> > Below is the dtd configured in tiles.xml
> >
> >  >"-//Apache Software Foundation//DTD Tiles Configuration 2.0//EN"
> >"http://tiles.apache.org/dtds/tiles-config_2_0.dtd";>
> >
> > I have the tiles2.2.2 related jars(tiles-jsp, tiles-servlet,
> > tiles-template, tiles-api, tiles-core) in my classpath and I use maven
> > to import jars in my project
> >
> > When I start tomcat and display my page, I get the following error,
> >
> > Mar 11, 2013 12:54:52 PM
> > org.apache.catalina.core.ApplicationDispatcher
> > invoke
> > SEVERE: Servlet.service() for servlet jsp threw exception
> > org.apache.tiles.template.NoSuchAttributeException: Attribute 'topmenu'
> > not found.
> >at
> >
> org.apache.tiles.template.DefaultAttributeResolver.computeAttribute(DefaultAttributeResolver.java:49)
> >at
> >
> org.apache.tiles.template.InsertAttributeModel.resolveAttribute(InsertAttributeModel.java:187)
> >at
> > org.apache.tiles.template.InsertAttributeModel.start(InsertAttributeMo
> > del.java:107)
> >
> > It is not able to find any of the attributes in tiles.xml
> >
> > Any thoughts?
> >
> > Thanks,
> > Sowmya
> > sse...@ucsd.edu
> >
> >
>
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>


Re: Struts 1.1 and Tiles 2 compatability

2013-03-11 Thread Paul Benedict
No, Struts 1 is not compatible.

On Mon, Mar 11, 2013 at 3:34 PM, Sekar, Sowmya  wrote:

> Is any version of Struts 1 (example : Struts 1.4) compatible with Tiles
> 2.2.2.?
>
> Thanks, Sowmya
>
> -Original Message-
> From: paulus.benedic...@gmail.com [mailto:paulus.benedic...@gmail.com] On
> Behalf Of Paul Benedict
> Sent: Monday, March 11, 2013 1:15 PM
> To: Struts Users Mailing List
> Subject: Re: Struts 1.1 and Tiles 2 compatability
>
> Tiles 2 is not compatible with Struts 1. You must use Tiles 1.
>
> Paul
>
> On Mon, Mar 11, 2013 at 3:01 PM, Sekar, Sowmya  wrote:
>
> > Hi,
> >
> > I am in the process of upgrading from Tiles 1 to Tiles 2.2.2 combined
> > with Struts 1.1.
> >
> > I have the following configuration in struts-config.xml
> >
> >  > processorClass="org.apache.struts.tiles.TilesRequestProcessor"/>
> >
> >   
> >  > value="/WEB-INF/tiles.xml"/>
> > 
> > 
> >   
> >
> > Below is the dtd configured in tiles.xml
> >
> >  >"-//Apache Software Foundation//DTD Tiles Configuration 2.0//EN"
> >"http://tiles.apache.org/dtds/tiles-config_2_0.dtd";>
> >
> > I have the tiles2.2.2 related jars(tiles-jsp, tiles-servlet,
> > tiles-template, tiles-api, tiles-core) in my classpath and I use maven
> > to import jars in my project
> >
> > When I start tomcat and display my page, I get the following error,
> >
> > Mar 11, 2013 12:54:52 PM
> > org.apache.catalina.core.ApplicationDispatcher
> > invoke
> > SEVERE: Servlet.service() for servlet jsp threw exception
> > org.apache.tiles.template.NoSuchAttributeException: Attribute 'topmenu'
> > not found.
> >at
> >
> org.apache.tiles.template.DefaultAttributeResolver.computeAttribute(DefaultAttributeResolver.java:49)
> >at
> >
> org.apache.tiles.template.InsertAttributeModel.resolveAttribute(InsertAttributeModel.java:187)
> >at
> > org.apache.tiles.template.InsertAttributeModel.start(InsertAttributeMo
> > del.java:107)
> >
> > It is not able to find any of the attributes in tiles.xml
> >
> > Any thoughts?
> >
> > Thanks,
> > Sowmya
> > sse...@ucsd.edu
> >
> >
>
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>


RE: Struts 1.1 and Tiles 2 compatability

2013-03-11 Thread Sekar, Sowmya
Is any version of Struts 1 (example : Struts 1.4) compatible with Tiles 2.2.2.? 

Thanks, Sowmya

-Original Message-
From: paulus.benedic...@gmail.com [mailto:paulus.benedic...@gmail.com] On 
Behalf Of Paul Benedict
Sent: Monday, March 11, 2013 1:15 PM
To: Struts Users Mailing List
Subject: Re: Struts 1.1 and Tiles 2 compatability

Tiles 2 is not compatible with Struts 1. You must use Tiles 1.

Paul

On Mon, Mar 11, 2013 at 3:01 PM, Sekar, Sowmya  wrote:

> Hi,
>
> I am in the process of upgrading from Tiles 1 to Tiles 2.2.2 combined 
> with Struts 1.1.
>
> I have the following configuration in struts-config.xml
>
>  processorClass="org.apache.struts.tiles.TilesRequestProcessor"/>
>
>   
>  value="/WEB-INF/tiles.xml"/>
> 
> 
>   
>
> Below is the dtd configured in tiles.xml
>
> "-//Apache Software Foundation//DTD Tiles Configuration 2.0//EN"
>"http://tiles.apache.org/dtds/tiles-config_2_0.dtd";>
>
> I have the tiles2.2.2 related jars(tiles-jsp, tiles-servlet, 
> tiles-template, tiles-api, tiles-core) in my classpath and I use maven 
> to import jars in my project
>
> When I start tomcat and display my page, I get the following error,
>
> Mar 11, 2013 12:54:52 PM 
> org.apache.catalina.core.ApplicationDispatcher
> invoke
> SEVERE: Servlet.service() for servlet jsp threw exception
> org.apache.tiles.template.NoSuchAttributeException: Attribute 'topmenu'
> not found.
>at
> org.apache.tiles.template.DefaultAttributeResolver.computeAttribute(DefaultAttributeResolver.java:49)
>at
> org.apache.tiles.template.InsertAttributeModel.resolveAttribute(InsertAttributeModel.java:187)
>at
> org.apache.tiles.template.InsertAttributeModel.start(InsertAttributeMo
> del.java:107)
>
> It is not able to find any of the attributes in tiles.xml
>
> Any thoughts?
>
> Thanks,
> Sowmya
> sse...@ucsd.edu
>
>

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



Re: Struts 1.1 and Tiles 2 compatability

2013-03-11 Thread Paul Benedict
Tiles 2 is not compatible with Struts 1. You must use Tiles 1.

Paul

On Mon, Mar 11, 2013 at 3:01 PM, Sekar, Sowmya  wrote:

> Hi,
>
> I am in the process of upgrading from Tiles 1 to Tiles 2.2.2 combined with
> Struts 1.1.
>
> I have the following configuration in struts-config.xml
>
>  processorClass="org.apache.struts.tiles.TilesRequestProcessor"/>
>
>   
>  value="/WEB-INF/tiles.xml"/>
> 
> 
>   
>
> Below is the dtd configured in tiles.xml
>
> "-//Apache Software Foundation//DTD Tiles Configuration 2.0//EN"
>"http://tiles.apache.org/dtds/tiles-config_2_0.dtd";>
>
> I have the tiles2.2.2 related jars(tiles-jsp, tiles-servlet,
> tiles-template, tiles-api, tiles-core) in my classpath and I use maven to
> import jars in my project
>
> When I start tomcat and display my page, I get the following error,
>
> Mar 11, 2013 12:54:52 PM org.apache.catalina.core.ApplicationDispatcher
> invoke
> SEVERE: Servlet.service() for servlet jsp threw exception
> org.apache.tiles.template.NoSuchAttributeException: Attribute 'topmenu'
> not found.
>at
> org.apache.tiles.template.DefaultAttributeResolver.computeAttribute(DefaultAttributeResolver.java:49)
>at
> org.apache.tiles.template.InsertAttributeModel.resolveAttribute(InsertAttributeModel.java:187)
>at
> org.apache.tiles.template.InsertAttributeModel.start(InsertAttributeModel.java:107)
>
> It is not able to find any of the attributes in tiles.xml
>
> Any thoughts?
>
> Thanks,
> Sowmya
> sse...@ucsd.edu
>
>


Struts 1.1 and Tiles 2 compatability

2013-03-11 Thread Sekar, Sowmya
Hi,

I am in the process of upgrading from Tiles 1 to Tiles 2.2.2 combined with 
Struts 1.1.

I have the following configuration in struts-config.xml



  



  

Below is the dtd configured in tiles.xml

http://tiles.apache.org/dtds/tiles-config_2_0.dtd";>

I have the tiles2.2.2 related jars(tiles-jsp, tiles-servlet, tiles-template, 
tiles-api, tiles-core) in my classpath and I use maven to import jars in my 
project

When I start tomcat and display my page, I get the following error,

Mar 11, 2013 12:54:52 PM org.apache.catalina.core.ApplicationDispatcher invoke
SEVERE: Servlet.service() for servlet jsp threw exception
org.apache.tiles.template.NoSuchAttributeException: Attribute 'topmenu' not 
found.
   at 
org.apache.tiles.template.DefaultAttributeResolver.computeAttribute(DefaultAttributeResolver.java:49)
   at 
org.apache.tiles.template.InsertAttributeModel.resolveAttribute(InsertAttributeModel.java:187)
   at 
org.apache.tiles.template.InsertAttributeModel.start(InsertAttributeModel.java:107)

It is not able to find any of the attributes in tiles.xml

Any thoughts?

Thanks,
Sowmya
sse...@ucsd.edu



Re: struts 2 presentation layer

2013-03-11 Thread Łukasz Lenart
11 mar 2013 18:41, "john lee"  napisał(a):
> what is the presentation layer it support?

also Velocity, Google pages (gxp)

> thanks
>
> john
>
>
>
> 
>  From: Martin Gainty 
> To: Struts Users Mailing List 
> Sent: Monday, March 11, 2013 5:33 AM
> Subject: RE: struts 2 start problem struts2-gxp-plugin-2.3.7.jar
>
> rename struts2-gxp-plugin-2.3.7.jar e.g.
>
> mv
/var/apache-tomcat-7.0.34/webapps/ecommerce/WEB-INF/lib/struts2-gxp-plugin-2.3.7.jar
/var/apache-tomcat-7.0.34/webapps/ecommerce/WEB-INF/lib/struts2-gxp-plugin-2.3.7.jar.old
>
> or delete  struts2-gxp-plugin-2.3.7.jar
>
> stop your session and redeploy usually works BUT i would bounce the
server just ot make sure you start ecommerce webapp clean
>
> Martin
> __
> Verzicht und Vertraulichkeitanmerkung
>
> Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene
Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte
Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht
dient lediglich dem Austausch von Informationen und entfaltet keine
rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von
E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen.
>
>
>
> > Date: Sun, 10 Mar 2013 20:32:41 -0700
> > From: sh_thorn_b...@yahoo.com
> > Subject: struts 2 start problem struts2-gxp-plugin-2.3.7.jar
> > To: user@struts.apache.org
> >
> > i try to start tomcat, but giving the following error
> >
> > Unable to load configuration... struts2-gxp-plugin-2.3.7.jar...
> >
> > in the CLASSPTH, i even did not load struts2-gxp-plugin-2.3.7.jar at
all, why this happen?
> >
> > please advise
> >
> > thanks in advance
> >
> > john
> >
> >
> > SEVERE: Dispatcher initialization failed
> > Unable to load configuration. - bean -
jar:file:/var/apache-tomcat-7.0.34/webapps/ecommerce/WEB-INF/lib/struts2-gxp-plugin-2.3.7.jar!/struts-plugin.xml:8:162
> > at
com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:71)
> > at
org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:429)
> > at
org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:471)
> > at
org.apache.struts2.dispatcher.ng.InitOperations.initDispatcher(InitOperations.java:74)
> > at
org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.init(StrutsPrepareAndExecuteFilter.java:51)
> > at
org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:278)
> > at
org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:259)
> > at
org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:383)
> > at
org.apache.catalina.core.ApplicationFilterConfig.(ApplicationFilterConfig.java:104)
> > at
org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4650)
> > at
org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5306)
> > at
org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
> > at
org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)
> > at
org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)
> > at
java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
> > at java.util.concurrent.FutureTask.run(FutureTask.java:138)
> > at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
> > at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
> > at java.lang.Thread.run(Thread.java:662)
> > Caused by: Unable to load bean:
type:org.apache.struts2.views.gxp.inject.InjectedObjectContainer
class:org.apache.struts2.views.gxp.inject.InjectedObjectContainer - bean -
jar:file:/var/apache-tomcat-7.0.34/webapps/ecommerce/WEB-INF/lib/struts2-gxp-plugin-2.3.7.jar!/struts-plugin.xml:8:162
> > at
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(XmlConfigurationProvider.java:245)
> > at
org.apache.struts2.config.StrutsXmlConfigurationProvider.register(StrutsXmlConfigurationProvider.java:102)
> > at
com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:215)
> > at
com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:68)
> > ... 18 more
> > Caused by: java.lang.ClassNotFoundException:
org.apache.struts2.views.gxp.inject.InjectedObjectContainer
> > at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1714)
> > at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1559)
> > at
com.opensymphony.xwork2.util.ClassLoaderUtil.loadClass(ClassLoaderUtil.java:152)
> > a

Re: struts 2 presentation layer

2013-03-11 Thread Dave Newton
Uh... no.
 On Mar 11, 2013 1:41 PM, "john lee"  wrote:

> struts 2 presentation layer
>
>
> support JSP, freemaker
>
> as i know.
>
> does it support PHP?
>
> what is the presentation layer it support?
>
> thanks
>
> john
>
>
>
> 
>  From: Martin Gainty 
> To: Struts Users Mailing List 
> Sent: Monday, March 11, 2013 5:33 AM
> Subject: RE: struts 2 start problem struts2-gxp-plugin-2.3.7.jar
>
> rename struts2-gxp-plugin-2.3.7.jar e.g.
>
> mv
> /var/apache-tomcat-7.0.34/webapps/ecommerce/WEB-INF/lib/struts2-gxp-plugin-2.3.7.jar
> /var/apache-tomcat-7.0.34/webapps/ecommerce/WEB-INF/lib/struts2-gxp-plugin-2.3.7.jar.old
>
> or delete  struts2-gxp-plugin-2.3.7.jar
>
> stop your session and redeploy usually works BUT i would bounce the server
> just ot make sure you start ecommerce webapp clean
>
> Martin
> __
> Verzicht und Vertraulichkeitanmerkung
>
> Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene
> Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte
> Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht
> dient lediglich dem Austausch von Informationen und entfaltet keine
> rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von
> E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen.
>
>
>
> > Date: Sun, 10 Mar 2013 20:32:41 -0700
> > From: sh_thorn_b...@yahoo.com
> > Subject: struts 2 start problem struts2-gxp-plugin-2.3.7.jar
> > To: user@struts.apache.org
> >
> > i try to start tomcat, but giving the following error
> >
> > Unable to load configuration... struts2-gxp-plugin-2.3.7.jar...
> >
> > in the CLASSPTH, i even did not load struts2-gxp-plugin-2.3.7.jar at
> all, why this happen?
> >
> > please advise
> >
> > thanks in advance
> >
> > john
> >
> >
> > SEVERE: Dispatcher initialization failed
> > Unable to load configuration. - bean -
> jar:file:/var/apache-tomcat-7.0.34/webapps/ecommerce/WEB-INF/lib/struts2-gxp-plugin-2.3.7.jar!/struts-plugin.xml:8:162
> > at
> com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:71)
> > at
> org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:429)
> > at
> org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:471)
> > at
> org.apache.struts2.dispatcher.ng.InitOperations.initDispatcher(InitOperations.java:74)
> > at
> org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.init(StrutsPrepareAndExecuteFilter.java:51)
> > at
> org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:278)
> > at
> org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:259)
> > at
> org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:383)
> > at
> org.apache.catalina.core.ApplicationFilterConfig.(ApplicationFilterConfig.java:104)
> > at
> org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4650)
> > at
> org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5306)
> > at
> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
> > at
> org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)
> > at
> org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)
> > at
> java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
> > at java.util.concurrent.FutureTask.run(FutureTask.java:138)
> > at
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
> > at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
> > at java.lang.Thread.run(Thread.java:662)
> > Caused by: Unable to load bean:
> type:org.apache.struts2.views.gxp.inject.InjectedObjectContainer
> class:org.apache.struts2.views.gxp.inject.InjectedObjectContainer - bean -
> jar:file:/var/apache-tomcat-7.0.34/webapps/ecommerce/WEB-INF/lib/struts2-gxp-plugin-2.3.7.jar!/struts-plugin.xml:8:162
> > at
> com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(XmlConfigurationProvider.java:245)
> > at
> org.apache.struts2.config.StrutsXmlConfigurationProvider.register(StrutsXmlConfigurationProvider.java:102)
> > at
> com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:215)
> > at
> com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:68)
> > ... 18 more
> > Caused by: java.lang.ClassNotFoundException:
> org.apache.struts2.views.gxp.inject.InjectedObjectContainer
> > at
> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1714)
> > at
> org.apache.catalina.loader.WebappClassL

struts 2 presentation layer

2013-03-11 Thread john lee
struts 2 presentation layer


support JSP, freemaker 

as i know.

does it support PHP?

what is the presentation layer it support?

thanks

john




 From: Martin Gainty 
To: Struts Users Mailing List  
Sent: Monday, March 11, 2013 5:33 AM
Subject: RE: struts 2 start problem struts2-gxp-plugin-2.3.7.jar
 
rename struts2-gxp-plugin-2.3.7.jar e.g.

mv 
/var/apache-tomcat-7.0.34/webapps/ecommerce/WEB-INF/lib/struts2-gxp-plugin-2.3.7.jar
 
/var/apache-tomcat-7.0.34/webapps/ecommerce/WEB-INF/lib/struts2-gxp-plugin-2.3.7.jar.old

or delete  struts2-gxp-plugin-2.3.7.jar 

stop your session and redeploy usually works BUT i would bounce the server just 
ot make sure you start ecommerce webapp clean

Martin
__ 
Verzicht und Vertraulichkeitanmerkung

Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger 
sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung 
oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem 
Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. 
Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung 
fuer den Inhalt uebernehmen.
  


> Date: Sun, 10 Mar 2013 20:32:41 -0700
> From: sh_thorn_b...@yahoo.com
> Subject: struts 2 start problem struts2-gxp-plugin-2.3.7.jar
> To: user@struts.apache.org
> 
> i try to start tomcat, but giving the following error
> 
> Unable to load configuration... struts2-gxp-plugin-2.3.7.jar...
> 
> in the CLASSPTH, i even did not load struts2-gxp-plugin-2.3.7.jar at all, why 
> this happen?
> 
> please advise
> 
> thanks in advance
> 
> john
> 
> 
> SEVERE: Dispatcher initialization failed
> Unable to load configuration. - bean - 
> jar:file:/var/apache-tomcat-7.0.34/webapps/ecommerce/WEB-INF/lib/struts2-gxp-plugin-2.3.7.jar!/struts-plugin.xml:8:162
>         at 
>com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:71)
>         at 
>org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:429)
>         at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:471)
>         at 
>org.apache.struts2.dispatcher.ng.InitOperations.initDispatcher(InitOperations.java:74)
>         at 
>org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.init(StrutsPrepareAndExecuteFilter.java:51)
>         at 
>org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:278)
>         at 
>org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:259)
>         at 
>org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:383)
>         at 
>org.apache.catalina.core.ApplicationFilterConfig.(ApplicationFilterConfig.java:104)
>         at 
>org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4650)
>         at 
>org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5306)
>         at 
>org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
>         at 
>org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)
>         at 
>org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)
>         at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
>         at java.util.concurrent.FutureTask.run(FutureTask.java:138)
>         at 
>java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>         at 
>java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>         at java.lang.Thread.run(Thread.java:662)
> Caused by: Unable to load bean: 
> type:org.apache.struts2.views.gxp.inject.InjectedObjectContainer 
> class:org.apache.struts2.views.gxp.inject.InjectedObjectContainer - bean - 
> jar:file:/var/apache-tomcat-7.0.34/webapps/ecommerce/WEB-INF/lib/struts2-gxp-plugin-2.3.7.jar!/struts-plugin.xml:8:162
>         at 
>com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(XmlConfigurationProvider.java:245)
>         at 
>org.apache.struts2.config.StrutsXmlConfigurationProvider.register(StrutsXmlConfigurationProvider.java:102)
>         at 
>com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:215)
>         at 
>com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:68)
>         ... 18 more
> Caused by: java.lang.ClassNotFoundException: 
> org.apache.struts2.views.gxp.inject.InjectedObjectContainer
>         at 
>org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1714)
>         at 
>org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1559)
>         at 
>com.opensymphony.xwork2.util.ClassLoaderUtil.loadClass(ClassLoaderUtil.java:152)
>         at 
>com.opensymphony.xwork2.config.providers.XmlC

RE: struts 2 start problem struts2-gxp-plugin-2.3.7.jar

2013-03-11 Thread Martin Gainty
rename struts2-gxp-plugin-2.3.7.jar e.g.
 
mv 
/var/apache-tomcat-7.0.34/webapps/ecommerce/WEB-INF/lib/struts2-gxp-plugin-2.3.7.jar
 
/var/apache-tomcat-7.0.34/webapps/ecommerce/WEB-INF/lib/struts2-gxp-plugin-2.3.7.jar.old

or delete  struts2-gxp-plugin-2.3.7.jar 
 
stop your session and redeploy usually works BUT i would bounce the server just 
ot make sure you start ecommerce webapp clean

Martin
__ 
Verzicht und Vertraulichkeitanmerkung
 
Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger 
sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung 
oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem 
Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. 
Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung 
fuer den Inhalt uebernehmen.
  


> Date: Sun, 10 Mar 2013 20:32:41 -0700
> From: sh_thorn_b...@yahoo.com
> Subject: struts 2 start problem struts2-gxp-plugin-2.3.7.jar
> To: user@struts.apache.org
> 
> i try to start tomcat, but giving the following error
> 
> Unable to load configuration... struts2-gxp-plugin-2.3.7.jar...
> 
> in the CLASSPTH, i even did not load struts2-gxp-plugin-2.3.7.jar at all, why 
> this happen?
> 
> please advise
> 
> thanks in advance
> 
> john
> 
> 
> SEVERE: Dispatcher initialization failed
> Unable to load configuration. - bean - 
> jar:file:/var/apache-tomcat-7.0.34/webapps/ecommerce/WEB-INF/lib/struts2-gxp-plugin-2.3.7.jar!/struts-plugin.xml:8:162
> at 
> com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:71)
> at 
> org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:429)
> at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:471)
> at 
> org.apache.struts2.dispatcher.ng.InitOperations.initDispatcher(InitOperations.java:74)
> at 
> org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.init(StrutsPrepareAndExecuteFilter.java:51)
> at 
> org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:278)
> at 
> org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:259)
> at 
> org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:383)
> at 
> org.apache.catalina.core.ApplicationFilterConfig.(ApplicationFilterConfig.java:104)
> at 
> org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4650)
> at 
> org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5306)
> at 
> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
> at 
> org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)
> at 
> org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)
> at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
> at java.util.concurrent.FutureTask.run(FutureTask.java:138)
> at 
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
> at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
> at java.lang.Thread.run(Thread.java:662)
> Caused by: Unable to load bean: 
> type:org.apache.struts2.views.gxp.inject.InjectedObjectContainer 
> class:org.apache.struts2.views.gxp.inject.InjectedObjectContainer - bean - 
> jar:file:/var/apache-tomcat-7.0.34/webapps/ecommerce/WEB-INF/lib/struts2-gxp-plugin-2.3.7.jar!/struts-plugin.xml:8:162
> at 
> com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(XmlConfigurationProvider.java:245)
> at 
> org.apache.struts2.config.StrutsXmlConfigurationProvider.register(StrutsXmlConfigurationProvider.java:102)
> at 
> com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:215)
> at 
> com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:68)
> ... 18 more
> Caused by: java.lang.ClassNotFoundException: 
> org.apache.struts2.views.gxp.inject.InjectedObjectContainer
> at 
> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1714)
> at 
> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1559)
> at 
> com.opensymphony.xwork2.util.ClassLoaderUtil.loadClass(ClassLoaderUtil.java:152)
> at 
> com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(XmlConfigurationProvider.java:216)
> ... 21 more
> 
> 
> alpha:/var/apache-tomcat-7.0.34/logs # env  |grep CLASSPATH
> 
> CLASSPATH=/usr/java/jdk1.6.0/lib/dt.jar:/usr/java/jdk1.6.0/lib/tools.jar:/var/apache-tomcat-7.0.34/lib:/var/apache-tomcat-7.0.34/lib/jsp-api.jar:/var/apac