Re: Defining a Jetty realm in hosted mode
Your jetty-web.xml is the same as mine, apart from missing the contextPath and war definitions. If I remove these I still get the same problem. On Wednesday, March 21, 2012 7:24:36 PM UTC, Paul Stockley wrote: > > Create a jetty-web.xml file under your war/WEB-INF folder > > Mine is defined as follows > > > "http://jetty.mortbay.org/configure.dtd";> > > > > > default > c:\ocs\jettyusers.properties > > > > > > my jettyusers.properties file contains the username, password and roles > for each user e.g. > > pstockley: test, nirvana_tester > > -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/Hg1Nc_WcnigJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Defining a Jetty realm in hosted mode
Create a jetty-web.xml file under your war/WEB-INF folder Mine is defined as follows http://jetty.mortbay.org/configure.dtd";> default c:\ocs\jettyusers.properties my jettyusers.properties file contains the username, password and roles for each user e.g. pstockley: test, nirvana_tester -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/hWgPbLWhDPMJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Defining a Jetty realm in hosted mode
I should clarify, it's GPE 2.5.1 (GWT 2.4). The following login-config in the web.xml works fine in Tomcat: BASIC I don't actually want to have to define a Jetty realm, but with the above web.xml I get the following warning when I launch my app: Starting Jetty on port [WARN] Unknown realm: Default It would be nice to have basic authentication working in hosted mode. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/mVnzAonQld4J. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Defining a Jetty realm in hosted mode
I should clarify, I mean GWT Eclipse Plugin 2.5.1 (GWT 2.4). The following login-config in the web.xml works fine in Tomcat: BASIC I don't actually want to have to define a Jetty realm, but with the above web.xml I get the following warning when I launch my app: Starting Jetty on port [WARN] Unknown realm: Default It would be nice to have basic authentication working in hosted mode. On Friday, March 16, 2012 1:38:43 PM UTC, TimD wrote: > > I am using GWT 2.5.1 in Eclipse Indigo. I am trying to configure basic > authentication in hosted mode and I'm running into the following > warning when I launch my app: > > Starting Jetty on port >[WARN] Unknown realm: myRealm > > When I try to access the app URL I get: > > HTTP ERROR: 404 > > NOT_FOUND > > RequestURI=/myApp.html > > Powered by jetty:// > > The following is in my web.xml: > > > BASIC > myRealm > > > I have also created the following jetty-web.xml that sits next to > web.xml: > > > PUBLIC "-//Mort Bay Consulting//DTD Configure//EN" > "http://jetty.mortbay.org/configure.dtd";> > > /myWebApp > > > /webapps/myWebApp > > > > class="org.mortbay.jetty.security.HashUserRealm"> > myRealm > name="config">fullyQualifiedPathToMyRealm.properties > > > > > > Without the fully qualified path to the realm properties file I get an > exception, so I know that it's now reading the config without error. > > Why is the realm not being set? -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/tQP4sAjExtQJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Defining a Jetty realm in hosted mode
Sorry, that Jetty warning should have read: Starting Jetty on port [WARN] Unknown realm: Default -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/FGTuIE-wRKQJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Defining a Jetty realm in hosted mode
I should clarify, I mean GWT Eclipse Plugin 2.5.1 (GWT 2.4). The following login-config in the web.xml works fine in Tomcat: BASIC I don't actually want to have to define a Jetty realm, but with the above web.xml I get the following warning when I launch my app: Starting Jetty on port [WARN] Unknown realm: myRealm It would be nice to have basic authentication working in hosted mode. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/yuGZD8ptnu8J. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Defining a Jetty realm in hosted mode
Did you tell it which files are protected? This also goes in the web.xml -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/0CJaUmgcDl0J. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Defining a Jetty realm in hosted mode
I am using GWT 2.5.1 in Eclipse Indigo. I am trying to configure basic authentication in hosted mode and I'm running into the following warning when I launch my app: Starting Jetty on port [WARN] Unknown realm: myRealm When I try to access the app URL I get: HTTP ERROR: 404 NOT_FOUND RequestURI=/myApp.html Powered by jetty:// The following is in my web.xml: BASIC myRealm I have also created the following jetty-web.xml that sits next to web.xml: http://jetty.mortbay.org/configure.dtd";> /myWebApp /webapps/myWebApp myRealm fullyQualifiedPathToMyRealm.properties Without the fully qualified path to the realm properties file I get an exception, so I know that it's now reading the config without error. Why is the realm not being set? -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.