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/javaee
http://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-on-google-app-engine-gae/

-- 
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.

Reply via email to