so then you need to deploy your actual WAR with web.xml inside as usual.

Romain Manni-Bucau
@rmannibucau <https://twitter.com/rmannibucau> |  Blog
<http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> |
LinkedIn <https://www.linkedin.com/in/rmannibucau> | Tomitriber
<http://www.tomitribe.com>

2015-08-13 12:16 GMT-07:00 sgjava <[email protected]>:

> I'm using  <packaging>war</packaging> and my web.xml is in
> project/src/main/webapp/WEB-INF which is the normal place for Maven war. It
> ends up in target/project/WEB-INF:
>
> <web-app xmlns="http://java.sun.com/xml/ns/javaee";
>          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>          xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
> http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd";
>          metadata-complete="false"
>          version="2.5">
>
>     <display-name>My Project</display-name>
>
>     <security-constraint>
>         <web-resource-collection>
>             <web-resource-name>Protected Resource</web-resource-name>
>             <url-pattern>/*</url-pattern>
>         </web-resource-collection>
>         <auth-constraint>
>             <role-name>my-role</role-name>
>         </auth-constraint>
>     </security-constraint>
>
>     <login-config>
>         <auth-method>BASIC</auth-method>
>         <realm-name>My Realm</realm-name>
>     </login-config>
>
>     <security-role>
>         <role-name>my-role</role-name>
>     </security-role>
> </web-app>
>
>
>
> --
> View this message in context:
> http://tomee-openejb.979440.n4.nabble.com/Using-basic-auth-with-tomee-embedded-tp4675786p4675868.html
> Sent from the TomEE Users mailing list archive at Nabble.com.
>

Reply via email to