You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by sharath karnati <ka...@yahoo.com> on 2008/04/11 20:01:02 UTC
Ajax Fileupload in struts2.
Hi All,
I tried Ajax fileupload program from below link,
http://www.struts2.org/ajax-file-upload-in-struts2-using-ajax-file-upload-plugin/#comment-100
When I tried to access, I'm getting below error message
FreeMarker template error!
Error on line 27, column 20 in template/simple/head.ftl
Expecting a string, date or number here, Expression parameters.debug?default(false) is instead a freemarker.template.TemplateBooleanModel$1
The problematic instruction:
----------
==> ${parameters.debug?default(false)} [on line 27, column 18 in template/simple/head.ftl]
----------
Java backtrace for programmers:
----------
If anyone having code for doing AJAX fileupload with struts2 then please send to me.
Thanks in advance.
Regards,
Sharath.
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
Re: POJO Action Class
Posted by Lukasz Lenart <lu...@googlemail.com>.
> Look carefully at the first line of the output. You have misspelled User.
>
> (*Chris*)
Exactly,
<action name="LoginUser" class="com.prayog.apps.LoginUesr" >
You have better eye then my :D
Regards
--
Lukasz
http://www.linkedin.com/in/lukaszlenart
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: POJO Action Class
Posted by Lukasz Lenart <lu...@googlemail.com>.
> no only java file is there!!
Source file shouldn't be there, but in src folder. I don't know how
WTP works, but it looks it's a configuration problem. Sorry I can't
help you.
Regards
--
Lukasz
http://www.linkedin.com/in/lukaszlenart
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: POJO Action Class
Posted by Martin Gainty <mg...@hotmail.com>.
Which error are you getting?
M-
----- Original Message -----
From: "Prashant Saraf" <ps...@cctc.com>
To: "Struts Users Mailing List" <us...@struts.apache.org>; "Struts Users
Mailing List" <us...@struts.apache.org>
Sent: Saturday, April 12, 2008 3:45 PM
Subject: RE: POJO Action Class
hi,
i changed the build path in eclipse to
HelloWorld/WebContent/WEB-INF/classes
and checked in
C:/ide/eclipse/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0
/wtpwebapps/HelloWorld/WEB-INF/classes/
now there are class files. Still getting same error :(
________________________________
From: Lukasz Lenart [mailto:lukasz.lenart@googlemail.com]
Sent: Sun 4/13/2008 1:07 AM
To: Struts Users Mailing List
Subject: Re: POJO Action Class
Hi,
Try to look into
C:/ide/eclipse/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0
/wtpwebapps/HelloWorld/WEB-INF/classes/
and see if you have there compiled class in package
com.prayog.apps.LoginUser
Regards
--
Lukasz
http://www.linkedin.com/in/lukaszlenart
---------------------------------------------------------------------
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
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
RE: POJO Action Class
Posted by Prashant Saraf <ps...@cctc.com>.
hi,
i changed the build path in eclipse to
HelloWorld/WebContent/WEB-INF/classes
and checked in
C:/ide/eclipse/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/HelloWorld/WEB-INF/classes/
now there are class files. Still getting same error :(
________________________________
From: Lukasz Lenart [mailto:lukasz.lenart@googlemail.com]
Sent: Sun 4/13/2008 1:07 AM
To: Struts Users Mailing List
Subject: Re: POJO Action Class
Hi,
Try to look into
C:/ide/eclipse/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/HelloWorld/WEB-INF/classes/
and see if you have there compiled class in package com.prayog.apps.LoginUser
Regards
--
Lukasz
http://www.linkedin.com/in/lukaszlenart
---------------------------------------------------------------------
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
RE: POJO Action Class
Posted by Prashant Saraf <ps...@cctc.com>.
no only java file is there!!
________________________________
From: Lukasz Lenart [mailto:lukasz.lenart@googlemail.com]
Sent: Sun 4/13/2008 1:07 AM
To: Struts Users Mailing List
Subject: Re: POJO Action Class
Hi,
Try to look into
C:/ide/eclipse/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/HelloWorld/WEB-INF/classes/
and see if you have there compiled class in package com.prayog.apps.LoginUser
Regards
--
Lukasz
http://www.linkedin.com/in/lukaszlenart
---------------------------------------------------------------------
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
Re: POJO Action Class
Posted by Lukasz Lenart <lu...@googlemail.com>.
Hi,
Try to look into
C:/ide/eclipse/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/HelloWorld/WEB-INF/classes/
and see if you have there compiled class in package com.prayog.apps.LoginUser
Regards
--
Lukasz
http://www.linkedin.com/in/lukaszlenart
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
RE: POJO Action Class
Posted by Prashant Saraf <ps...@cctc.com>.
sorry all of you but still gating same error
Action class [com.prayog.apps.LoginUser] not found - action - file:/C:/ide/eclipse/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/HelloWorld/WEB-INF/classes/struts.xml:9:69
at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.verifyAction(XmlConfigurationProvider.java:333)
at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.addAction(XmlConfigurationProvider.java:288)
at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.addPackage(XmlConfigurationProvider.java:384)
at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadPackages(XmlConfigurationProvider.java:239)
at org.apache.struts2.config.StrutsXmlConfigurationProvider.loadPackages(StrutsXmlConfigurationProvider.java:111)
at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reload(DefaultConfiguration.java:152)
at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:52)
at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:398)
at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:455)
at org.apache.struts2.dispatcher.FilterDispatcher.init(FilterDispatcher.java:201)
at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:275)
at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:397)
at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:108)
at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3696)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4343)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at org.apache.catalina.core.StandardService.start(StandardService.java:516)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
at org.apache.catalina.startup.Catalina.start(Catalina.java:566)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Apr 13, 2008 12:57:12 AM org.apache.catalina.core.StandardContext start
SEVERE: Error filterStart
Apr 13, 2008 12:57:12 AM org.apache.catalina.core.StandardContext start
SEVERE: Context [/HelloWorld] startup failed due to previous errors
________________________________
From: Chris Pratt [mailto:thechrispratt@gmail.com]
Sent: Sun 4/13/2008 12:39 AM
To: Struts Users Mailing List
Subject: Re: POJO Action Class
Look carefully at the first line of the output. You have misspelled User.
(*Chris*)
On Sat, Apr 12, 2008 at 11:53 AM, Prashant Saraf <ps...@cctc.com> wrote:
> Thanks for the reply,
> It comes when container starts,
> i had created a caller jsp which put user name and password. in LoginUser.java i m checking. either the user-name password are correct. if correct forward to success page, else send to same login page.
>
>
> Here is strack trace.
>
> SEVERE: Exception starting filter struts2
>
> Action class [com.prayog.apps.LoginUesr] not found - action - file:/C:/ide/eclipse/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/HelloWorld/WEB-INF/classes/struts.xml:9:69
>
> at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.verifyAction(XmlConfigurationProvider.java:333)
>
> at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.addAction(XmlConfigurationProvider.java:288)
>
> at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.addPackage(XmlConfigurationProvider.java:384)
>
> at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadPackages(XmlConfigurationProvider.java:239)
>
> at org.apache.struts2.config.StrutsXmlConfigurationProvider.loadPackages(StrutsXmlConfigurationProvider.java:111)
>
> at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reload(DefaultConfiguration.java:152)
>
> at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:52)
>
> at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:398)
>
> at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:455)
>
> at org.apache.struts2.dispatcher.FilterDispatcher.init(FilterDispatcher.java:201)
>
> at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:275)
>
> at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:397)
>
> at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:108)
>
> at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3696)
>
> at org.apache.catalina.core.StandardContext.start(StandardContext.java:4343)
>
> at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
>
> at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
>
> at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
>
> at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
>
> at org.apache.catalina.core.StandardService.start(StandardService.java:516)
>
> at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
>
> at org.apache.catalina.startup.Catalina.start(Catalina.java:566)
>
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>
> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>
> at java.lang.reflect.Method.invoke(Unknown Source)
>
> at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
>
> at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
>
> Apr 12, 2008 10:53:38 PM org.apache.catalina.core.StandardContext start
>
> SEVERE: Error filterStart
>
> Apr 12, 2008 10:53:38 PM org.apache.catalina.core.StandardContext start
>
> SEVERE: Context [/HelloWorld] startup failed due to previous errors
>
> Apr 12, 2008 10:53:38 PM org.apache.coyote.http11.Http11Protocol start
>
> INFO: Starting Coyote HTTP/1.1 on http-8080
>
> Apr 12, 2008 10:53:38 PM org.apache.jk.common.ChannelSocket init
>
> INFO: JK: ajp13 listening on /0.0.0.0:8009
>
> Apr 12, 2008 10:53:38 PM org.apache.jk.server.JkMain start
>
> INFO: Jk running ID=0 time=0/16 config=null
>
> Apr 12, 2008 10:53:38 PM org.apache.catalina.startup.Catalina start
>
> INFO: Server startup in 744 ms
>
>
>
> ________________________________
>
> From: Lukasz Lenart [mailto:lukasz.lenart@googlemail.com]
> Sent: Sat 4/12/2008 11:58 PM
>
> To: Struts Users Mailing List
> Subject: Re: POJO Action Class
>
>
>
>
>
> Class and config looks ok, could paste the whole stack trace? When you
> get such error, when starting conatiner or when requesting the action?
> Could you also show how you call the action in web browser?
>
>
> Regards
> --
> Lukasz
>
> http://www.linkedin.com/in/lukaszlenart
>
> ---------------------------------------------------------------------
> 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
>
---------------------------------------------------------------------
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
RE: POJO Action Class
Posted by Prashant Saraf <ps...@cctc.com>.
oppss.... sorry to intrupt all of you.. stupid mistake :(
________________________________
From: Chris Pratt [mailto:thechrispratt@gmail.com]
Sent: Sun 4/13/2008 12:39 AM
To: Struts Users Mailing List
Subject: Re: POJO Action Class
Look carefully at the first line of the output. You have misspelled User.
(*Chris*)
On Sat, Apr 12, 2008 at 11:53 AM, Prashant Saraf <ps...@cctc.com> wrote:
> Thanks for the reply,
> It comes when container starts,
> i had created a caller jsp which put user name and password. in LoginUser.java i m checking. either the user-name password are correct. if correct forward to success page, else send to same login page.
>
>
> Here is strack trace.
>
> SEVERE: Exception starting filter struts2
>
> Action class [com.prayog.apps.LoginUesr] not found - action - file:/C:/ide/eclipse/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/HelloWorld/WEB-INF/classes/struts.xml:9:69
>
> at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.verifyAction(XmlConfigurationProvider.java:333)
>
> at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.addAction(XmlConfigurationProvider.java:288)
>
> at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.addPackage(XmlConfigurationProvider.java:384)
>
> at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadPackages(XmlConfigurationProvider.java:239)
>
> at org.apache.struts2.config.StrutsXmlConfigurationProvider.loadPackages(StrutsXmlConfigurationProvider.java:111)
>
> at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reload(DefaultConfiguration.java:152)
>
> at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:52)
>
> at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:398)
>
> at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:455)
>
> at org.apache.struts2.dispatcher.FilterDispatcher.init(FilterDispatcher.java:201)
>
> at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:275)
>
> at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:397)
>
> at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:108)
>
> at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3696)
>
> at org.apache.catalina.core.StandardContext.start(StandardContext.java:4343)
>
> at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
>
> at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
>
> at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
>
> at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
>
> at org.apache.catalina.core.StandardService.start(StandardService.java:516)
>
> at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
>
> at org.apache.catalina.startup.Catalina.start(Catalina.java:566)
>
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>
> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>
> at java.lang.reflect.Method.invoke(Unknown Source)
>
> at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
>
> at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
>
> Apr 12, 2008 10:53:38 PM org.apache.catalina.core.StandardContext start
>
> SEVERE: Error filterStart
>
> Apr 12, 2008 10:53:38 PM org.apache.catalina.core.StandardContext start
>
> SEVERE: Context [/HelloWorld] startup failed due to previous errors
>
> Apr 12, 2008 10:53:38 PM org.apache.coyote.http11.Http11Protocol start
>
> INFO: Starting Coyote HTTP/1.1 on http-8080
>
> Apr 12, 2008 10:53:38 PM org.apache.jk.common.ChannelSocket init
>
> INFO: JK: ajp13 listening on /0.0.0.0:8009
>
> Apr 12, 2008 10:53:38 PM org.apache.jk.server.JkMain start
>
> INFO: Jk running ID=0 time=0/16 config=null
>
> Apr 12, 2008 10:53:38 PM org.apache.catalina.startup.Catalina start
>
> INFO: Server startup in 744 ms
>
>
>
> ________________________________
>
> From: Lukasz Lenart [mailto:lukasz.lenart@googlemail.com]
> Sent: Sat 4/12/2008 11:58 PM
>
> To: Struts Users Mailing List
> Subject: Re: POJO Action Class
>
>
>
>
>
> Class and config looks ok, could paste the whole stack trace? When you
> get such error, when starting conatiner or when requesting the action?
> Could you also show how you call the action in web browser?
>
>
> Regards
> --
> Lukasz
>
> http://www.linkedin.com/in/lukaszlenart
>
> ---------------------------------------------------------------------
> 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
>
---------------------------------------------------------------------
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
Re: POJO Action Class
Posted by Chris Pratt <th...@gmail.com>.
Look carefully at the first line of the output. You have misspelled User.
(*Chris*)
On Sat, Apr 12, 2008 at 11:53 AM, Prashant Saraf <ps...@cctc.com> wrote:
> Thanks for the reply,
> It comes when container starts,
> i had created a caller jsp which put user name and password. in LoginUser.java i m checking. either the user-name password are correct. if correct forward to success page, else send to same login page.
>
>
> Here is strack trace.
>
> SEVERE: Exception starting filter struts2
>
> Action class [com.prayog.apps.LoginUesr] not found - action - file:/C:/ide/eclipse/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/HelloWorld/WEB-INF/classes/struts.xml:9:69
>
> at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.verifyAction(XmlConfigurationProvider.java:333)
>
> at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.addAction(XmlConfigurationProvider.java:288)
>
> at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.addPackage(XmlConfigurationProvider.java:384)
>
> at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadPackages(XmlConfigurationProvider.java:239)
>
> at org.apache.struts2.config.StrutsXmlConfigurationProvider.loadPackages(StrutsXmlConfigurationProvider.java:111)
>
> at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reload(DefaultConfiguration.java:152)
>
> at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:52)
>
> at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:398)
>
> at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:455)
>
> at org.apache.struts2.dispatcher.FilterDispatcher.init(FilterDispatcher.java:201)
>
> at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:275)
>
> at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:397)
>
> at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:108)
>
> at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3696)
>
> at org.apache.catalina.core.StandardContext.start(StandardContext.java:4343)
>
> at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
>
> at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
>
> at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
>
> at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
>
> at org.apache.catalina.core.StandardService.start(StandardService.java:516)
>
> at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
>
> at org.apache.catalina.startup.Catalina.start(Catalina.java:566)
>
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>
> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>
> at java.lang.reflect.Method.invoke(Unknown Source)
>
> at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
>
> at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
>
> Apr 12, 2008 10:53:38 PM org.apache.catalina.core.StandardContext start
>
> SEVERE: Error filterStart
>
> Apr 12, 2008 10:53:38 PM org.apache.catalina.core.StandardContext start
>
> SEVERE: Context [/HelloWorld] startup failed due to previous errors
>
> Apr 12, 2008 10:53:38 PM org.apache.coyote.http11.Http11Protocol start
>
> INFO: Starting Coyote HTTP/1.1 on http-8080
>
> Apr 12, 2008 10:53:38 PM org.apache.jk.common.ChannelSocket init
>
> INFO: JK: ajp13 listening on /0.0.0.0:8009
>
> Apr 12, 2008 10:53:38 PM org.apache.jk.server.JkMain start
>
> INFO: Jk running ID=0 time=0/16 config=null
>
> Apr 12, 2008 10:53:38 PM org.apache.catalina.startup.Catalina start
>
> INFO: Server startup in 744 ms
>
>
>
> ________________________________
>
> From: Lukasz Lenart [mailto:lukasz.lenart@googlemail.com]
> Sent: Sat 4/12/2008 11:58 PM
>
> To: Struts Users Mailing List
> Subject: Re: POJO Action Class
>
>
>
>
>
> Class and config looks ok, could paste the whole stack trace? When you
> get such error, when starting conatiner or when requesting the action?
> Could you also show how you call the action in web browser?
>
>
> Regards
> --
> Lukasz
>
> http://www.linkedin.com/in/lukaszlenart
>
> ---------------------------------------------------------------------
> 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
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
RE: POJO Action Class
Posted by Prashant Saraf <ps...@cctc.com>.
Thanks for the reply,
It comes when container starts,
i had created a caller jsp which put user name and password. in LoginUser.java i m checking. either the user-name password are correct. if correct forward to success page, else send to same login page.
Here is strack trace.
SEVERE: Exception starting filter struts2
Action class [com.prayog.apps.LoginUesr] not found - action - file:/C:/ide/eclipse/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/HelloWorld/WEB-INF/classes/struts.xml:9:69
at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.verifyAction(XmlConfigurationProvider.java:333)
at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.addAction(XmlConfigurationProvider.java:288)
at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.addPackage(XmlConfigurationProvider.java:384)
at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadPackages(XmlConfigurationProvider.java:239)
at org.apache.struts2.config.StrutsXmlConfigurationProvider.loadPackages(StrutsXmlConfigurationProvider.java:111)
at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reload(DefaultConfiguration.java:152)
at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:52)
at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:398)
at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:455)
at org.apache.struts2.dispatcher.FilterDispatcher.init(FilterDispatcher.java:201)
at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:275)
at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:397)
at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:108)
at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3696)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4343)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at org.apache.catalina.core.StandardService.start(StandardService.java:516)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
at org.apache.catalina.startup.Catalina.start(Catalina.java:566)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Apr 12, 2008 10:53:38 PM org.apache.catalina.core.StandardContext start
SEVERE: Error filterStart
Apr 12, 2008 10:53:38 PM org.apache.catalina.core.StandardContext start
SEVERE: Context [/HelloWorld] startup failed due to previous errors
Apr 12, 2008 10:53:38 PM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
Apr 12, 2008 10:53:38 PM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
Apr 12, 2008 10:53:38 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/16 config=null
Apr 12, 2008 10:53:38 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 744 ms
________________________________
From: Lukasz Lenart [mailto:lukasz.lenart@googlemail.com]
Sent: Sat 4/12/2008 11:58 PM
To: Struts Users Mailing List
Subject: Re: POJO Action Class
Class and config looks ok, could paste the whole stack trace? When you
get such error, when starting conatiner or when requesting the action?
Could you also show how you call the action in web browser?
Regards
--
Lukasz
http://www.linkedin.com/in/lukaszlenart
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: POJO Action Class
Posted by Lukasz Lenart <lu...@googlemail.com>.
Class and config looks ok, could paste the whole stack trace? When you
get such error, when starting conatiner or when requesting the action?
Could you also show how you call the action in web browser?
Regards
--
Lukasz
http://www.linkedin.com/in/lukaszlenart
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
RE: POJO Action Class
Posted by Prashant Saraf <ps...@cctc.com>.
sure here is my Struts.xml
<!DOCTYPE struts PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
"http://struts.apache.org/dtds/struts-2.0.dtd">
<struts>
<package name="default" extends="struts-default">
<action name="HelloWorld">
<result>helloWorld.jsp</result>
</action>
<action name="LoginUser" class="com.prayog.apps.LoginUesr" >
<result name="loginForm">login.jsp</result>
<result>success.jsp</result>
</action>
</package>
</struts>
________________________________
From: Lukasz Lenart [mailto:lukasz.lenart@googlemail.com]
Sent: Sat 4/12/2008 11:16 PM
To: Struts Users Mailing List
Subject: Re: POJO Action Class
> Error says : "Action class not found"
Could you show your struts.xml?
Regards
--
Lukasz
http://www.linkedin.com/in/lukaszlenart
---------------------------------------------------------------------
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
Re: POJO Action Class
Posted by Lukasz Lenart <lu...@googlemail.com>.
> Error says : "Action class not found"
Could you show your struts.xml?
Regards
--
Lukasz
http://www.linkedin.com/in/lukaszlenart
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
POJO Action Class
Posted by Prashant Saraf <ps...@cctc.com>.
Hi,
Hi I am new to Struts 2, I created a POJO Class, but freamwrok gives error on it. How to define Pojo Action Class?
Error says : "Action class not found"
here is my class :
/**
*
*/
package com.prayog.apps;
/**
* @author Administrator
*
*/
public class LoginUser {
private String userID;
private String userPassword;
/**
* @return the userID
*/
public String getUserID() {
return userID;
}
/**
* @param userID the userID to set
*/
public void setUserID(String userID) {
this.userID = userID;
}
/**
* @return the userPassword
*/
public String getUserPassword() {
return userPassword;
}
/**
* @param userPassword the userPassword to set
*/
public void setUserPassword(String userPassword) {
this.userPassword = userPassword;
}
public String execute() throws Exception {
if("psaraf".equals(userID) && "psaraf".equals(userPassword))
return "SUCCESS";
else
return "loginForm";
}
}
if i want to make this class as POJO Action Class do i need to make any special changes in struts.xml?
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: Ajax Fileupload in struts2.
Posted by Jeromy Evans <je...@blueskyminds.com.au>.
I'm not familiar with that plugin, however it uses YUI and ajax file
uploads via YUI are really simple. If you take a moment to read this
page you'll understand it a little better:
http://developer.yahoo.com/yui/connection/
My guess from the error below is that you're missing the afile:head tag
and instead used the s:head tag
Otherwise there's a template conflict (two tags using the simple theme
head template), or the tag's is simply broken.
sharath karnati wrote:
> Hi All,
>
> I tried Ajax fileupload program from below link,
>
> http://www.struts2.org/ajax-file-upload-in-struts2-using-ajax-file-upload-plugin/#comment-100
>
> When I tried to access, I'm getting below error message
>
> FreeMarker template error!
>
> Error on line 27, column 20 in template/simple/head.ftl
> Expecting a string, date or number here, Expression parameters.debug?default(false) is instead a freemarker.template.TemplateBooleanModel$1
> The problematic instruction:
> ----------
> ==> ${parameters.debug?default(false)} [on line 27, column 18 in template/simple/head.ftl]
> ----------
>
> Java backtrace for programmers:
> ----------
>
> If anyone having code for doing AJAX fileupload with struts2 then please send to me.
>
> Thanks in advance.
>
> Regards,
> Sharath.
>
>
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>
> ------------------------------------------------------------------------
>
> No virus found in this incoming message.
> Checked by AVG.
> Version: 7.5.519 / Virus Database: 269.22.12/1372 - Release Date: 10/04/2008 5:36 PM
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org