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.loadPropertiesFile(AbstractContainerService.java:
394)
at
com.google.appengine.tools.development.AbstractContainerService.updateLoggingConfiguration(AbstractContainerService.java:
350)
at
com.google.appengine.tools.development.AbstractContainerService.loadAppEngineWebXml(AbstractContainerService.java:
240)
at
com.google.appengine.tools.development.AbstractContainerService.startup(AbstractContainerService.java:
144)
at
com.google.appengine.tools.development.DevAppServerImpl.start(DevAppServerImpl.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>(DevAppServerMain.java:
120)
at
com.google.appengine.tools.development.DevAppServerMain.main(DevAppServerMain.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 [email protected]:8888
26/06/2010 20:48:58
com.google.appengine.tools.development.DevAppServerImpl start
INFO: The server is running at http://localhost:8888/
On 25 jun, 18:47, lisandrodc <[email protected]> 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 <[email protected]> wrote:
>
> > Which URL are you trying to access???
>
> >http://localhost:8888/_ah/admin
>
> > OR
>
> >http://localhost:8888/_ah/login
>
> > I guesshttp://localhost:8888/_ah/adminshouldwork fine.
>
> > Can you even validate the struts2 jar version. Is it 2.1.8.1????
>
> > Regards
> > Prateek
>
> > On Jun 25, 3:02 am, lisandrodc <[email protected]> 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 <[email protected]> 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/[email protected]/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 <[email protected]> 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 <[email protected]> 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 <[email protected]> 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, run, but at run
> > > > > > > >http://localhost:8080/_ah/admin
> > > > > > > > or:
> > > > > > > >http://localhost:8080/_ah/login
> > > > > > > > But for both, says the page:
>
> > > > > > > > "Struts Problem Report
>
> > > > > > > > Struts has detected an unhandled exception:
> > > > > > > > # Messages: There is no Action mapped for action name
> > > > > > > > login."
>
> > > > > > > > On 23 jun, 16:50, Ian Marshall <[email protected]> wrote:
> > > > > > > >> Hello Prateek,
>
> > > > > > > >> Are you trying to access the development web server console web
> > > > > > > >> application? If so, is the full URL you tried
>
> > > > > > > >> http://localhost:8080/_ah/admin
>
> > > > > > > >> (or whatever port number you use locally to test your URLs
> > > > > > > >> using the
> > > > > > > >> dev app server)?
>
> > > > > > > >> Cheers,
>
> > > > > > > >> Ian
>
> > > > > > > >> On Jun 23, 6:37 pm, Prateek <[email protected]> wrote:
>
> > > > > > > >>> Hello Ian,
>
> > > > > > > >>> I did try the URL but couldnt get the VIEW. I have configured
> > > > > > > >>> my
> > > > > > > >>> apps
> > > > > > > >>> with struts2 and tiles2. do i have to included any thing else
> > > > > > > >>> in my
> > > > > > > >>> Mapping. I m getting an ERROR as
>
> > > > > > > >>> HTTP ERROR 404
>
> > > > > > > >>> Problem accessing /_ah/admin. Reason:
>
> > > > > > > >>> There is no Action mapped for namespace / and action name
> > > > > > > >>> admin.
> > > > > > > >>> Powered by Jetty://
>
> > > > > > > >>> can you guide me to as how to resolve it.
>
> > > > > > > >>> Thanks and Regards
> > > > > > > >>> Prateek
>
> > > > > > > >>> On Jun 23, 6:37 am, Ian Marshall <[email protected]>
> > > > > > > >>> wrote:
>
> > > > > > > >>>> You're welcome.
>
> > > > > > > >>>> Of course, if you do not want to view your locally-persisted
> > > > > > > >>>>
> > > > > > > >>>> entities
> > > > > > > >>>> and just want to delete them all, just follow the
> > > > > > > >>>> instructions give
> > > > > > > >>>> at:
>
> > > > > > > >>>> http://code.google.com/intl/en/appengine/docs/java/tools/devserver.ht
> > > > > > > >>>> ...
>
> > > > > > > > --
> > > > > > > > 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
> > > > > > > > [email protected]
> > > > > > > > .
> > > > > > > > To unsubscribe from this group, send email to
> > > > > > > > [email protected]
> > > > > > > > .
> > > > > > > > For more options, visit this group
> > > > > > > > athttp://groups.google.com/group/google-appengine-java?hl=en
> > > > > > > > .
--
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 [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-appengine-java?hl=en.