Is it related to ur FIle Upload. are you trying to upload a file???

There is some config you wil have to take care for upload
functionality of Strut2 and GAE .

Check this link, hope it might be of some help

http://whyjava.wordpress.com/2009/10/04/file-upload-on-google-app-engine-using-struts2/

Regards
Prateek

On Jun 27, 1:56 am, lisandrodc <lisandr...@gmail.com> wrote:
> I have a next exception in console, I use Struts 2 v2.1.8:
>
> 26/06/2010 20:48:56
> com.google.appengine.tools.development.AbstractContainerService
> loadPropertiesFile
> ADVERTENCIA: Unable to load properties file, D:\eclipse2\PruebaProde
> \PruabProd\war
> java.io.FileNotFoundException: D:\eclipse2\PruebaProde\PruabProd\war
> (Acceso denegado)
>         at java.io.FileInputStream.open(Native Method)
>         at java.io.FileInputStream.<init>(FileInputStream.java:106)
>         at
> com.google.appengine.tools.development.AbstractContainerService.loadPropert 
> iesFile(AbstractContainerService.java:
> 394)
>         at
> com.google.appengine.tools.development.AbstractContainerService.updateLoggi 
> ngConfiguration(AbstractContainerService.java:
> 350)
>         at
> com.google.appengine.tools.development.AbstractContainerService.loadAppEngi 
> neWebXml(AbstractContainerService.java:
> 240)
>         at
> com.google.appengine.tools.development.AbstractContainerService.startup(Abs 
> tractContainerService.java:
> 144)
>         at
> com.google.appengine.tools.development.DevAppServerImpl.start(DevAppServerI 
> mpl.java:
> 222)
>         at com.google.appengine.tools.development.DevAppServerMain
> $StartAction.apply(DevAppServerMain.java:171)
>         at com.google.appengine.tools.util.Parser
> $ParseResult.applyArgs(Parser.java:48)
>         at
> com.google.appengine.tools.development.DevAppServerMain.<init>(DevAppServer 
> Main.java:
> 120)
>         at
> com.google.appengine.tools.development.DevAppServerMain.main(DevAppServerMa 
> in.java:
> 96)
> 26/06/2010 20:48:56 com.google.apphosting.utils.jetty.JettyLogger info
> INFO: jetty-6.1.x
> 26/06/2010 20:48:57
> com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
> INFO: Parsing configuration file [struts-default.xml]
> 26/06/2010 20:48:57
> com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
> INFO: Unable to locate configuration files of the name struts-
> plugin.xml, skipping
> 26/06/2010 20:48:57
> com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
> INFO: Parsing configuration file [struts-plugin.xml]
> 26/06/2010 20:48:57
> com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
> INFO: Parsing configuration file [struts.xml]
> 26/06/2010 20:48:57
> com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
> INFO: Overriding property struts.i18n.reload - old value: false new
> value: true
> 26/06/2010 20:48:57
> com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
> INFO: Overriding property struts.configuration.xml.reload - old value:
> false new value: true
> 26/06/2010 20:48:58 com.google.apphosting.utils.jetty.JettyLogger info
> INFO: Started selectchannelconnec...@127.0.0.1:8888
> 26/06/2010 20:48:58
> com.google.appengine.tools.development.DevAppServerImpl start
> INFO: The server is running athttp://localhost:8888/
>
> On 25 jun, 18:47, lisandrodc <lisandr...@gmail.com> wrote:
>
>
>
> > Thanks Prateek! The struts version that tape-worm was old  (2.1.2).
> > The problem was solved by the version 2.1.8!!!
> > Regards!
> > Lisandro
>
> > On 25 jun, 03:07, Prateek <bittooagar...@gmail.com> wrote:
>
> > > Which URL are you trying to access???
>
> > >http://localhost:8888/_ah/admin
>
> > > OR
>
> > >http://localhost:8888/_ah/login
>
> > > I guesshttp://localhost:8888/_ah/adminshouldworkfine.
>
> > > Can you even validate the struts2 jar version. Is it 2.1.8.1????
>
> > > Regards
> > > Prateek
>
> > > On Jun 25, 3:02 am, lisandrodc <lisandr...@gmail.com> wrote:
>
> > > > Hi Prateek. First thanks, but I don´t solve my local data problem.
> > > > Now, my struts.xml is:
> > > > <?xml version="1.0" encoding="UTF-8" ?>
> > > > <!DOCTYPE struts PUBLIC
> > > > "-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
> > > > "http://struts.apache.org/dtds/struts-2.0.dtd";>
> > > > <struts>
>
> > > > <constant name="struts.devMode" value="true" />
> > > >         <include file="struts-default.xml"></include>
> > > >         <constant name="struts.action.excludePattern" value='/_ah/.*'/>
> > > > <package name="member" namespace="/member" extends="struts-default">
> > > >                 <action name="login">
> > > >                         <result>/pages/inicio.jsp</result>
> > > >                 </action>
> > > >                         <action name="NuevoEmpleado" 
> > > > class="struts.action.Default">
> > > >                         <result>/pages/alta.jsp</result>
> > > >                 </action>
> > > >                 <action name="RegistrarEmpleado"
> > > > class="struts.action.RegistrarEmpleado">
> > > >                         <result>/pages/alta_exitosa.jsp</result>
> > > >                 </action>
> > > >                 <action name="home" method="login" 
> > > > class="com.login.LoginAction">
> > > >                         <result>/pages/home.jsp</result>
> > > >                         <result name="input">/pages/inicio.jsp</result>
> > > >                 </action>
> > > >                 <action name="MostrarEmp" 
> > > > class="struts.action.MostrarEmp">
> > > >                         <result>/pages/modificacion.jsp</result>
> > > >                 </action>
> > > >         </package>
>
> > > > </struts>
>
> > > > And my web.xml:
> > > > <?xml version="1.0" encoding="utf-8"?>
> > > > <web-app xmlns:xsi="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";
>
> > > >         version="2.5">
>
> > > >         <filter>
> > > >     <filter-name>struts2</filter-name>
> > > >     <filter-
> > > > class>org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter
> > > >  </
> > > > filter-class>
> > > >   </filter>
>
> > > >         <filter-mapping>
> > > >                 <filter-name>struts2</filter-name>
> > > >                 <url-pattern>/*</url-pattern>
> > > >         </filter-mapping>
>
> > > >                 <listener>
> > > >         <listener-class>com.login.OgnlListener</listener-class>
> > > > </listener>
>
> > > > </web-app>
>
> > > > But... says the page:
>
> > > > "Struts Problem Report
>
> > > > Struts has detected an unhandled exception:
> > > > # Messages:     There is no Action mapped for action name login."
>
> > > > On 24 jun, 15:56, Prateek <bittooagar...@gmail.com> wrote:
>
> > > > > Hello  @ IAN @ JOHN @ lisandrodc
>
> > > > > I just try the changes. We need to work out a few more changes.
>
> > > > > we need to make changes on web.xml with respect to the filter-class.
> > > > > that has been changed from
> > > > > "org.apache.struts2.dispatcher.FilterDispatcher" to
> > > > > "org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter",
> > > > > reason behind doing this was because the excludePattern doesnot work
> > > > > with FilterDispactcher and that was fixed in next release with the
> > > > > StrutsPrepareAndExecuteFilter class.
>
> > > > > Ref Link : 
> > > > > http://www.mail-archive.com/....@struts.apache.org/msg34677.html
>
> > > > >    <filter>
> > > > >         <filter-name>struts2</filter-name>
> > > > >         <filter-
> > > > > class>org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter
> > > > >  </
> > > > > filter-class>
> > > > >     </filter>
>
> > > > >     <filter-mapping>
> > > > >         <filter-name>struts2</filter-name>
> > > > >         <url-pattern>/*</url-pattern>
> > > > >     </filter-mapping>
>
> > > > > and changes in struts.xml is
> > > > > <constant name="struts.action.excludePattern" value="/_ah/.*"/>
>
> > > > > This should work. I worked fine for me.
>
> > > > > @ Ian : thanks buddy as the linkhttp://localhost:8888/_ah/admindid
> > > > > solve my local data problem.
> > > > > @ John : Thanks for helping and guiding.
>
> > > > > Regards and Thanks
> > > > > Be happy and keep Smiling always
> > > > > Prateek
>
> > > > > On Jun 24, 8:39 am, Prateek <bittooagar...@gmail.com> wrote:
>
> > > > > > Hello Ian and John,
>
> > > > > > Thanks a lotz guys. I guess i found the solution. Will go home and 
> > > > > > try
> > > > > > it.
>
> > > > > > we need to include a exclude pattern in our struts.xml
>
> > > > > > <constant name="struts.action.excludePattern" value="/_ah/.*"/>
>
> > > > > > @ lisandrodc  I guess that should solve our problem.
> > > > > > Below link would help you.
>
> > > > > >http://www.benmccann.com/dev-blog/tag/struts-2/
>
> > > > > > Thanks for all you support.
> > > > > > Be Happy
>
> > > > > > Prateek.
>
> > > > > > On Jun 24, 10:45 am, Prateek <bittooagar...@gmail.com> wrote:
>
> > > > > > > Hello Ian ,
>
> > > > > > > Hello John,
>
> > > > > > > Thanks for the response.
>
> > > > > > > @Ian : Yes, i m using the same URL but with my own port config 
> > > > > > > iehttp://localhost:8888/_ah/admin. I even 
> > > > > > > triedhttp://localhost:8888/_ah/login
> > > > > > > but no output. I can see the local_db.bin file in my 
> > > > > > > WEB-INF/appengine-
> > > > > > > generated/ directory.
>
> > > > > > > @ John, yep you are correct, all my request are mapped to be 
> > > > > > > handle by
> > > > > > > struts. its by default '/' mapping. But that is required for my 
> > > > > > > apps.
> > > > > > > if i config my struts to handle /_ah/admin as well where would i
> > > > > > > redirect him.
>
> > > > > > > Thanks and Regards
> > > > > > > Prateek
>
> > > > > > > So you
>
> > > > > > > On Jun 24, 10:19 am, John Patterson <jdpatter...@gmail.com> wrote:
>
> > > > > > > > You probably have struts configured to handle all requests.  
> > > > > > > > Wicket  
> > > > > > > > uses a filter rather than a servlet so it can pass unhandled 
> > > > > > > > URL's  
> > > > > > > > down the chain.  Can you configure Struts like this?
>
> > > > > > > > On 24 Jun 2010, at 06:36, lisandrodc wrote:
>
> > > > > > > > > Hi! I have a same problem that Prateek. I use Struts 2.
> > > > > > > > > I try to access the development web server console web
> > > > > > > > > application.http://localhost:8080,
>
> ...
>
> read more »

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.

Reply via email to