Hi, jar are not deployed as webapps so not sure you can apply this security. You can either use JAAS or package the sample as a war.
*Romain Manni-Bucau* *Twitter: @rmannibucau <https://twitter.com/rmannibucau>* *Blog: **http://rmannibucau.wordpress.com/*<http://rmannibucau.wordpress.com/> *LinkedIn: **http://fr.linkedin.com/in/rmannibucau* *Github: https://github.com/rmannibucau* 2013/5/9 Louis <[email protected]> > Hi, > > While trying to secure an existing project's @Webservice on 1.5.2, I > emulated the example > <http://tomee.apache.org/examples-trunk/webservice-security/README.html> > . > Unfortunately, I was not ever able to successfully authenticate. > > I then downloaded/built the example calculator project from > (http://tomee.apache.org/examples-trunk/webservice-security/README.html). > > I added the following entry to tomcat-users.xml: > <role rolename="Administrator" /> > <user username="AdministratorUser" password="pass123" > roles="Administrator" /> > > Restarted TomEE and deployed the built > webservice-security-1.1.0-SNAPSHOT.jar to webapps. > > I noted the following entry in the catalina log: > INFO: > Webservice(wsdl= > http://localhost:8080/webservice-security-1.1.0-SNAPSHOT/CalculatorImpl, > qname={http://superbiz.org/wsdl}CalculatorWsService) --> > Ejb(id=CalculatorImpl) > > I then went to the following link in my browser: > > > http://localhost:8080/webservice-security-1.1.0-SNAPSHOT/CalculatorImpl?wsdl > > And was prompted for authentication. U ysed AdministratorUser/pass123 but > still was unable to authenticate. > > Any ideas as to what I'm doing wrong? > > > > > -- > View this message in context: > http://openejb.979440.n4.nabble.com/webservice-security-basic-auth-tp4662743.html > Sent from the OpenEJB User mailing list archive at Nabble.com. >
