开发者

How do you specify the security domain for a war under JBoss 7?

开发者 https://www.devze.com 2023-02-11 18:55 出处:网络
This line in my jboss-web.xml: <security-domain>java:/jaas/flockingfun</security-domain> produces this error:

This line in my jboss-web.xml:

<security-domain>java:/jaas/flockingfun</security-domain>

produces this error:

Caused by: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[3,19] Message: Unexpected element 'security-domain' encounte开发者_JAVA技巧red at org.jboss.as.metadata.parser.util.MetaDataElementParser.unexpectedElement(MetaDataElementParser.java:109) at org.jboss.as.metadata.parser.jbossweb.JBossWebMetaDataParser.parse(JBossWebMetaDataParser.java:128) at org.jboss.as.web.deployment.JBossWebParsingDeploymentProcessor.processDeployment(JBossWebParsingDeploymentProcessor.java:60) ... 14 more

Any ideas what I should be specifying? Thanks in advance.


Since I stumbled upon this question recently, and it didn't help as the JBoss 7 nowadays does support security domains, here is how:

<?xml version="1.0" encoding="UTF-8"?>
<jboss-web>
   <security-domain>flockingfun</security-domain>
</jboss-web>

There's no need to prefix it with java:/jaas.


JBoss AS7 does not yet have support for security domains.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号