Hi Folks, When I reported this problem yesterday I was working on my Macbook (OSX 10.6.2, Java 1.6, Eclipse 3.5, GWT 2.0 - Developer plugins for both Firefox and Safari).
Today I'm back in the office to I figured I'd try it on a Windows environment (Windows XP, Java 1.6, Eclipse 3.5, GWT 2.0, Developer plugins for Chrome and Firefox). Unfortunately I'm getting the same problem :( The next thing I did is take a peep at the JeTTY source code where the exception is occuring when the developer plugin fires up. You can see the WebXmlConfiguration source code here on the codehaus website. http://jetty.codehaus.org/jetty/jetty-6/xref/org/mortbay/jetty/webapp/WebXmlConfiguration.html#860 So if you take a look at the lines where the Exception is being thrown Jetty has just read the <realm-name> element from the web.xml. The next thing it does is enumerate all the realms that have been wired into JeTTY to find the one specified in the web app config. So after its checked the UserRealm[] for the one we've specified realm is still null and hence we get the "[WARN] Unknown realm" message. So the next thing I did is to try and increase the logging level of the GWT plugin so we can see what else it does when it starts up. So I now specify: -logLevel DEBUG in the program argumets to increase logging. The strange thing here is that if I do this the security realm works correctly (even though the configuration errors appear in the log output). I attempt to log in with invalid users and I see lines like [WARN] AUTH FAILURE: user <user-name> appearing in the console. If I log in with a valid username I get re-directed to the main application html file. If I then remove the -logLevel DEBUG from the startup parameters it continues to work fine. Not sure what happened there but may serve as a useful reference if somebody else gets the problem in the future. If things start to fail again I will report back my findings. Regards Ian.
-- 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.
