<?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">
<!-- org.jboss.test.web package descriptor -->
<web-app>
<!-- ### Servlets -->
<servlet>
<servlet-name>ENCServlet</servlet-name>
<servlet-class>org.jboss.test.web.servlets.ENCServlet</servlet-class>
</servlet>
<servlet>
<servlet-name>EJBServlet</servlet-name>
<servlet-class>org.jboss.test.web.servlets.EJBServlet</servlet-class>
</servlet>
<servlet>
<servlet-name>ClientLoginServlet</servlet-name>
<servlet-class>org.jboss.test.web.servlets.ClientLoginServlet</servlet-class>
</servlet>
<servlet>
<servlet-name>EJBOnStartupServlet</servlet-name>
<servlet-class>org.jboss.test.web.servlets.EJBOnStartupServlet</servlet-class>
<init-param>
<param-name>failOnError</param-name>
<param-value>false</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet>
<servlet-name>DebugServlet</servlet-name>
<servlet-class>org.jboss.test.web.servlets.DebugServlet</servlet-class>
</servlet>
<servlet>
<servlet-name>SecureServlet</servlet-name>
<servlet-class>org.jboss.test.web.servlets.SecureServlet</servlet-class>
</servlet>
<servlet>
<servlet-name>SecureEJBServlet</servlet-name>
<servlet-class>org.jboss.test.web.servlets.SecureEJBServlet</servlet-class>
</servlet>
<servlet>
<servlet-name>SecureEJBServletMT</servlet-name>
<servlet-class>org.jboss.test.web.servlets.SecureEJBServletMT</servlet-class>
</servlet>
<servlet>
<servlet-name>snoop</servlet-name>
<jsp-file>/snoop.jsp</jsp-file>
</servlet>
<servlet>
<servlet-name>classpath</servlet-name>
<jsp-file>/classpath.jsp</jsp-file>
</servlet>
<!-- Default Apache SOAP 2.2 Servlets -->
<servlet>
<servlet-name>rpcrouter</servlet-name>
<display-name>Apache-SOAP RPC Router</display-name>
<description>no description</description>
<servlet-class>org.apache.soap.server.http.RPCRouterServlet</servlet-class>
<init-param>
<param-name>faultListener</param-name>
<param-value>org.apache.soap.server.DOMFaultListener</param-value>
</init-param>
</servlet>
<servlet>
<servlet-name>messagerouter</servlet-name>
<display-name>Apache-SOAP Message Router</display-name>
<servlet-class>org.apache.soap.server.http.MessageRouterServlet</servlet-class>
<init-param>
<param-name>faultListener</param-name>
<param-value>org.apache.soap.server.DOMFaultListener</param-value>
</init-param>
</servlet>
<servlet>
<servlet-name>secure-rpcrouter</servlet-name>
<display-name>Apache-SOAP RPC Router</display-name>
<description>no description</description>
<servlet-class>org.apache.soap.server.http.RPCRouterServlet</servlet-class>
<init-param>
<param-name>faultListener</param-name>
<param-value>org.apache.soap.server.DOMFaultListener</param-value>
</init-param>
</servlet>
<servlet-mapping>
<servlet-name>ENCServlet</servlet-name>
<url-pattern>/ENCServlet</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>DebugServlet</servlet-name>
<url-pattern>/DebugServlet</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>EJBServlet</servlet-name>
<url-pattern>/EJBServlet</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>EJBOnStartupServlet</servlet-name>
<url-pattern>/EJBOnStartupServlet</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>ClientLoginServlet</servlet-name>
<url-pattern>/ClientLoginServlet</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>SecureServlet</servlet-name>
<url-pattern>/restricted/SecureServlet</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>SecureEJBServlet</servlet-name>
<url-pattern>/restricted/SecureEJBAccess</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>SecureEJBServletMT</servlet-name>
<url-pattern>/restricted/SecureEJBAccessMT</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>snoop</servlet-name>
<url-pattern>*.snp</url-pattern>
</servlet-mapping>
<!-- Apache SOAP 2.2 mappings -->
<servlet-mapping>
<servlet-name>rpcrouter</servlet-name>
<url-pattern>/soap/rpcrouter</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>messagerouter</servlet-name>
<url-pattern>/soap/messagerouter</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>secure-rpcrouter</servlet-name>
<url-pattern>/restricted/soap/rpcrouter</url-pattern>
</servlet-mapping>
<!-- The Welcome File List -->
<welcome-file-list>
<welcome-file>index.html</welcome-file>
</welcome-file-list>
<!-- ### Resources -->
<!-- JDBC DataSources (java:comp/env/jdbc) -->
<resource-ref>
<description>The default DS</description>
<res-ref-name>jdbc/DefaultDS</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
<!-- JavaMail Connection Factories (java:comp/env/mail) -->
<resource-ref>
<description>Default Mail</description>
<res-ref-name>mail/DefaultMail</res-ref-name>
<res-type>javax.mail.Session</res-type>
<res-auth>Container</res-auth>
</resource-ref>
<!-- JMS Connection Factories (java:comp/env/jms) -->
<resource-ref>
<description>Default QueueFactory</description>
<res-ref-name>jms/QueFactory</res-ref-name>
<res-type>javax.jms.QueueConnectionFactory</res-type>
<res-auth>Container</res-auth>
</resource-ref>
<!-- URL Connection Factories (java:comp/env/url) -->
<!-- ### Security -->
<security-constraint>
<web-resource-collection>
<web-resource-name>Restricted</web-resource-name>
<description>Declarative security tests</description>
<url-pattern>/restricted/*</url-pattern>
<http-method>HEAD</http-method>
<http-method>GET</http-method>
<http-method>POST</http-method>
<http-method>PUT</http-method>
<http-method>DELETE</http-method>
</web-resource-collection>
<auth-constraint>
<description>Only </description>
<role-name>AuthorizedUser</role-name>
</auth-constraint>
<user-data-constraint>
<description>no description</description>
<transport-guarantee>NONE</transport-guarantee>
</user-data-constraint>
</security-constraint>
<login-config>
<auth-method>BASIC</auth-method>
<realm-name>JBossTest Servlets</realm-name>
</login-config>
<security-role>
<description>A AuthorizedUser is one with a valid username and
password</description>
<role-name>AuthorizedUser</role-name>
</security-role>
<!-- ### Environment (java:comp/env/ejb) -->
<env-entry>
<description>Integer0</description>
<env-entry-name>Ints/i0</env-entry-name>
<env-entry-type>java.lang.Integer</env-entry-type>
<env-entry-value>0</env-entry-value>
</env-entry>
<env-entry>
<description>Integer1</description>
<env-entry-name>Ints/i1</env-entry-name>
<env-entry-type>java.lang.Integer</env-entry-type>
<env-entry-value>1</env-entry-value>
</env-entry>
<env-entry>
<description>Float0</description>
<env-entry-name>Floats/f0</env-entry-name>
<env-entry-type>java.lang.Float</env-entry-type>
<env-entry-value>0.0</env-entry-value>
</env-entry>
<env-entry>
<description>Float1</description>
<env-entry-name>Floats/f1</env-entry-name>
<env-entry-type>java.lang.Float</env-entry-type>
<env-entry-value>1.1</env-entry-value>
</env-entry>
<env-entry>
<description>String0</description>
<env-entry-name>Strings/s0</env-entry-name>
<env-entry-type>java.lang.String</env-entry-type>
<env-entry-value>String0</env-entry-value>
</env-entry>
<env-entry>
<description>String1</description>
<env-entry-name>Strings/s1</env-entry-name>
<env-entry-type>java.lang.String</env-entry-type>
<env-entry-value>String1</env-entry-value>
</env-entry>
<!-- ### EJB References (java:comp/env/ejb) -->
<ejb-ref>
<ejb-ref-name>ejb/bean0</ejb-ref-name>
<ejb-ref-type>Session</ejb-ref-type>
<ejb-link>ENCBean0</ejb-link>
<home>org.jboss.test.web.interfaces.StatelessSessionHome</home>
<remote>org.jboss.test.web.interfaces.StatelessSession</remote>
</ejb-ref>
<ejb-ref>
<ejb-ref-name>ejb/bean1</ejb-ref-name>
<ejb-ref-type>Session</ejb-ref-type>
<ejb-link>ENCBean1</ejb-link>
<home>org.jboss.test.web.interfaces.StatelessSessionHome</home>
<remote>org.jboss.test.web.interfaces.StatelessSession</remote>
</ejb-ref>
<!-- An ejb-ref that has no corresponding ejb-ref in jboss-web.xml -->
<ejb-ref>
<ejb-ref-name>ejb/bean2</ejb-ref-name>
<ejb-ref-type>Session</ejb-ref-type>
<ejb-link>ENCBean1</ejb-link>
<home>org.jboss.test.web.interfaces.StatelessSessionHome</home>
<remote>org.jboss.test.web.interfaces.StatelessSession</remote>
</ejb-ref>
<ejb-ref>
<ejb-ref-name>ejb/SecuredEJB</ejb-ref-name>
<ejb-ref-type>Session</ejb-ref-type>
<ejb-link>SecuredEJB</ejb-link>
<home>org.jboss.test.web.interfaces.StatelessSessionHome</home>
<remote>org.jboss.test.web.interfaces.StatelessSession</remote>
</ejb-ref>
<ejb-ref>
<ejb-ref-name>ejb/UnsecuredEJB</ejb-ref-name>
<ejb-ref-type>Session</ejb-ref-type>
<ejb-link>UnsecuredEJB</ejb-link>
<home>org.jboss.test.web.interfaces.StatelessSessionHome</home>
<remote>org.jboss.test.web.interfaces.StatelessSession</remote>
</ejb-ref>
<ejb-ref>
<ejb-ref-name>ejb/OptimizedEJB</ejb-ref-name>
<ejb-ref-type>Session</ejb-ref-type>
<ejb-link>OptimizedEJB</ejb-link>
<home>org.jboss.test.web.interfaces.StatelessSessionHome</home>
<remote>org.jboss.test.web.interfaces.StatelessSession</remote>
</ejb-ref>
</web-app>
----- Original Message -----
From: "Nick Taylor" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, June 28, 2001 3:54 AM
Subject: RE: [JBoss-user] JAAS problem
> Scott,
> Many thanks for taking the time to look over my JAAS problems...i still
> can't shake them...could you post the web.xml you used in the example below?
> Cheers
>
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user