开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜