If you are running the code in hosted mode the GWT log window should also contain some additional information. Specifically, something along the lines of:
com.google.apphosting.utils.config.AppEngineConfigException: .../war/WEB-INF/web.xml: Unknown role-name: must be '*' or 'admin' On Tue, Apr 28, 2009 at 4:33 PM, misqu23 <[email protected]> wrote: > > Hello > > Recently I have switched to the GWT 1.6, everything works fine except > warning in the hostedmode > > [WARN] Unable to process 'file:/home/misiek/dev/workspace/gui/war/WEB- > INF/web.xml' for servlet validation > javax.servlet.UnavailableException: Configuration problem > at org.mortbay.jetty.webapp.WebXmlConfiguration.initialize > (WebXmlConfiguration.java:298) > at org.mortbay.jetty.webapp.WebXmlConfiguration.configure > (WebXmlConfiguration.java:222) > at com.google.gwt.dev.ServletValidator.create(ServletValidator.java: > 68) > at com.google.gwt.dev.ServletValidator.create(ServletValidator.java: > 51) > at com.google.gwt.dev.HostedMode.doStartup(HostedMode.java:344) > at > com.google.gwt.dev.HostedModeBase.startUp(HostedModeBase.java:585) > at com.google.gwt.dev.HostedModeBase.run(HostedModeBase.java:397) > at com.google.gwt.dev.HostedMode.main(HostedMode.java:232) > > Does anybody know what is the cause of this warning. I'm using Google > Eclipe Plugin. I'm running hosted mode without embedded jetty server. > > Here is my web.xml : > > <?xml version="1.0" encoding="UTF-8"?> > <web-app id="WebApp_ID" version="2.5" xmlns="http://java.sun.com/xml/ > ns/javaee <http://java.sun.com/xml/%0Ans/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"> > <display-name>gui</display-name> > <servlet> > <display-name>SessionServiceImpl</display-name> > <servlet-name>SessionServiceImpl</servlet-name> > <servlet-class>smartoffice.rpc.server.services.SessionServiceImpl</ > servlet-class> > </servlet> > <servlet> > <display-name>UserServiceImpl</display-name> > <servlet-name>UserServiceImpl</servlet-name> > <servlet-class>smartoffice.rpc.server.services.UserServiceImpl</ > servlet-class> > </servlet> > <servlet-mapping> > <servlet-name>SessionServiceImpl</servlet-name> > <url-pattern>/basic/session</url-pattern> > </servlet-mapping> > <servlet-mapping> > <servlet-name>SessionServiceImpl</servlet-name> > <url-pattern>/pro/session</url-pattern> > </servlet-mapping> > <servlet-mapping> > <servlet-name>UserServiceImpl</servlet-name> > <url-pattern>/login/user</url-pattern> > </servlet-mapping> > <!-- more servlets configurations --> > <session-config> > <session-timeout>30</session-timeout> > </session-config> > <welcome-file-list> > <welcome-file>index.html</welcome-file> > <welcome-file>index.htm</welcome-file> > <welcome-file>index.jsp</welcome-file> > <welcome-file>default.html</welcome-file> > <welcome-file>default.htm</welcome-file> > <welcome-file>default.jsp</welcome-file> > </welcome-file-list> > <security-constraint> > <web-resource-collection> > <web-resource-name>Protected resources</web-resource-name> > <url-pattern>/basic/*</url-pattern> > <url-pattern>/pro/*</url-pattern> > <url-pattern>/pro.html</url-pattern> > <url-pattern>/basic.html</url-pattern> > <http-method>GET</http-method> > <http-method>POST</http-method> > <http-method>HEAD</http-method> > <http-method>PUT</http-method> > <http-method>OPTIONS</http-method> > <http-method>TRACE</http-method> > <http-method>DELETE</http-method> > </web-resource-collection> > <auth-constraint> > <role-name>USER</role-name> > </auth-constraint> > <user-data-constraint> > <transport-guarantee>NONE</transport-guarantee> > </user-data-constraint> > </security-constraint> > <login-config> > <auth-method>FORM</auth-method> > <form-login-config> > <form-login-page>/login.jsp</form-login-page> > <form-error-page>/login.jsp?error=true</form-error-page> > </form-login-config> > </login-config> > <security-role> > <description>The role required to login to application</ > description> > <role-name>USER</role-name> > </security-role> > </web-app> > > > Thank's a lot. > > Martin > > > -- Miguel --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" 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-Web-Toolkit?hl=en -~----------~----~----~----~------~----~------~--~---
