i don't know what i have missing or the cookies/cache from the browser
keep the previous error instead i have change the code.. when i run in
incognito mode this is the error

Struts Problem Report

Struts has detected an unhandled exception:

Messages:
There is no Action mapped for namespace / and action name .

---- end of error ---

i have change a bit of code in struts.xml

<package name="strutsGAEv2" namespace="/strutsGAEv2" extends="struts-
default">

from

<package name="default" namespace="/" extends="struts-default">

and error above triggered

On May 10, 10:35 am, Muhammad Syafiq Zainuddin <tmuk...@gmail.com>
wrote:
> HTTP ERROR: 503
> Problem accessing /. Reason:
>     SERVICE_UNAVAILABLE
> Powered by Jetty://
>
> ----
>
> above is the error triggered in the browser. i just want to make a
> simple struts apps to test the config. but that error happen.
>
> my web.xml is like below;
>
> <?xml version="1.0" encoding="UTF-8"?>
> <web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee";
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
> xsi:schemaLocation="http://java.sun.com/xml/ns/javaeehttp://java.sun.com/xml/ns/javaee/web-app_2_5.xsd";>
>     <filter>
>         <filter-name>struts2</filter-name>
>         <filter-class>org.apache.struts2.dispatcher.FilterDispatcher</
> filter-class>
>     </filter>
>
>     <filter-mapping>
>         <filter-name>struts2</filter-name>
>         <url-pattern>/*</url-pattern>
>     </filter-mapping>
>
>     <welcome-file-list>
>         <welcome-file>index.jsp</welcome-file>
>     </welcome-file-list>
> </web-app>
>
> ---- end of web.xml ----
>
> my struts.xml is like below;
>
> <?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";>
>
> <!-- Author: tmukmkd -->
>
> <struts>
>     <!-- Add your configuration elements here -->
>     <constant name="struts.enable.DynamicMethodInvocation"
> value="false" />
>     <constant name="struts.devMode" value="true"/>
>
>     <package name="default" namespace="/" extends="struts-default">
>         <action name="test">
>             <result>index.jsp</result>
>             <!-- try to make sure the config ok -->
>         </action>
>     </package>
> </struts>
>
> ---- end of struts.xml ----
>
> my index.jsp is like below;
>
> <%...@page contentType="text/html" pageEncoding="UTF-8"%>
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
>    "http://www.w3.org/TR/html4/loose.dtd";>
>
> <html>
>     <head>
>         <meta http-equiv="Content-Type" content="text/html;
> charset=UTF-8">
>         <title>JSP Page</title>
>     </head>
>     <body>
>         <h1>Hello World!</h1>
>         <s:a action="test">test</s:a>
>         <a href="test.action">test</a>
>     </body>
> </html>
>
> ---- end of index.jsp ----
>
> i've try the solution from whyjava blog but not success :(
> im using netbeans 6.8, using gae server.
> can this problem happen because of the ide? or the main page of mine
> using jsp instead html just like in whyjava?
> or this? <package name="default" namespace="/" extends="struts-
> default"> ?
>
> tqia for the respond :)
>
> note: whyjava url 
> -http://whyjava.wordpress.com/2009/08/30/creating-struts2-application-...
>
> --
> 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 
> 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 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