I am using nearly the exact same web.xml you have here... Doing a fresh
install of JBoss v2.4.0 and v2.2.2, both bundled with tomcat, changing
_nothing_, and deploying this .war causes that NullPointerException that
was already fixed. But it seems to me that the NullPointerException
shouldn't be occuring at all, since the CVS comment was that a NPE can
occur when no security-domain is specified, and I'm specifying one.
Can anyone get this .war to deploy and be accessed with green/green, or
know what I'm doing wrong? It's very small, I'm attaching it to the msg.
Thanks,
David Green
On Wed, 27 Jun 2001, David Green wrote:
>
> I posted my web.xml in which I specified 'propertyAdmin' as the
> <role-name> - you told me that i needed a jboss-web.xml which specified a
> <security-domain> - so I posted my new jboss-web.xml along with a
> statement that I changed all instances of 'propertyAdmin' to 'guest' since
> I was using java:/jaas/simple. Since my old web.xml was quoted, I didn't
> want to paste the entire new one as well, since the role-name was the only
> thing that changed.
>
> Thanks,
>
> David Green
>
> On Wed, 27 Jun 2001, Scott M Stark wrote:
>
> > I don't understand what you mean by propertyAdmin being changed to 'guest'.
> > You have to change the web-app/seccurity-constraint/auth-constraint/role-name
> > to guest to allow green/null and green/green. To allow only green/green the
> > role-name would have to be user. Both scenarios work for me. Here is the
> > correct web.xml for that would only allow green/green(or any username/password
> > that are equal):
> >
> > web 2138>cat WEB-INF/web.xml
> > <?xml version="1.0" encoding="UTF-8"?>
> > <!DOCTYPE web-app
> > PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
> > "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
> >
> > <web-app>
> > <!-- ### Servlets -->
> > <servlet>
> > <servlet-name>index</servlet-name>
> > <jsp-file>/index.jsp</jsp-file>
> > </servlet>
> >
> > <!-- ### Security -->
> > <security-constraint>
> > <web-resource-collection>
> > <web-resource-name>Restricted</web-resource-name>
> > <description>Declarative security tests</description>
> > <url-pattern>/*</url-pattern>
> > <http-method>GET</http-method>
> > <http-method>POST</http-method>
> > </web-resource-collection>
> > <auth-constraint>
> > <role-name>guest</role-name>
> > </auth-constraint>
> > </security-constraint>
> >
> > <login-config>
> > <auth-method>BASIC</auth-method>
> > <realm-name>JBossTest Servlets</realm-name>
> > </login-config>
> >
> > </web-app>
> >
> > ----- Original Message -----
> > From: "David Green" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Tuesday, June 26, 2001 9:36 PM
> > Subject: Re: [JBoss-user] Authentication Problem...
> >
> >
> > > I'm having no luck with this :(
> > >
> > > Here's what I have now:
> > >
> > > WEB-INF/jboss-web.xml:
> > > ----------------------
> > > <jboss-web>
> > > <security-domain>java:/jaas/simple</security-domain>
> > > </jboss-web>
> > > ----------------------
> > >
> > > WEB-INF/web.xml:
> > > Changed all instances of propertyAdmin to "guest", since that's what
> > > 'simple' returns if a user is authenticated.
> > >
> > > Simple is indeed set up in conf/tomcat/auth.conf and in
> > > conf/default/auth.conf... it's marked as 'required' and it's not commented
> > > out.
> > >
> > > i try logging into the page with green/green or green/(nopassword) and get
> > > rejected.
> > >
> > > Redeployed the file, restarted the server, banged on the computer with a
> > > large hammer... nothing seems to work... :(
> > >
> > > David Green
> > >
> >
> >
> >
> > _______________________________________________
> > JBoss-user mailing list
> > [EMAIL PROTECTED]
> > http://lists.sourceforge.net/lists/listinfo/jboss-user
> >
>
>
> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user
>
propertyeditor.war