-- xxxxxxxxxxxxxxxxxxxxxxxx Scott Stark Chief Technology Officer JBoss Group, LLC xxxxxxxxxxxxxxxxxxxxxxxx
Matthew Hixson wrote:
I'm having troubles getting basic auth to work with Tomcat embedded in JBoss 3.2.2RC3. What I'm seeing is that the browser shows the username/password challenge dialog, but I can just enter anything into it and Tomcat will serve up the page. I don't have to enter a real username and password.
When starting up JBoss I see this on the console and wonder if it might have something to do with the problem:
14:14:51,473 INFO [Engine] ContextConfig[/invoker]: Configured an authenticator for method BASIC
14:14:51,567 WARN [EmbeddedTomcatService] Unable to invoke setDelegate on class loader:[EMAIL PROTECTED]
In my jboss-service.xml file I have:
<attribute name="Config">
<Server>
<Service name="JBoss-Tomcat">
<Engine name="MainEngine" defaultHost="localhost">
<Logger className="org.jboss.web.tomcat.Log4jLogger"
verbosityLevel="debug" category="org.jboss.web.localhost.Engine"/>
<Host name="localhost">
<!-- Access logger -->
<Valve className="org.apache.catalina.valves.AccessLogValve"
prefix="localhost_access" suffix=".log"
pattern="common" directory="${jboss.server.home.dir}/log"/>
<!-- This valve clears any caller identity set by the realm
and provides access to the realm about the existence of an
authenticated caller to allow a web app to run with a realm
that support unauthenticated identities. It also establishes
any run-as principal for the servlet being accessed.
-->
<Valve className="org.jboss.web.tomcat.security.SecurityAssociationValve" />
<!-- Default context parameters -->
<DefaultContext cookies="true" crossContext="true" override="true"/>
<Context path="/watermarks" docBase="/usr/local/foo/watermarked_images"/>
<Realm className="org.apache.catalina.realm.MemoryRealm" debug="4" path="/usr/local/jboss/server/default/conf/tomcat-users.xml" />
</Host>
</Engine>
------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
