Skip to content

Commit

Permalink
[JBWS-4048]
Browse files Browse the repository at this point in the history
* Throw exception when the security domain is configured with Elytron
* Fix error in previous commit
  • Loading branch information
jimma authored and asoldano committed Jan 10, 2017
1 parent beabb4d commit 1b0bb35
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/java/org/jboss/ws/common/Messages.java
Expand Up @@ -271,4 +271,6 @@ public interface Messages {

@Message(id = 22121, value = "Could not find endpoint config name: %s")
WSFDeploymentException couldNotFindEndpointConfigName(String name);
@Message(id = 22122, value = "SecurityContext is not set for Endpoint: %s. A jaas security domain is required")
IllegalStateException cannotGetJBossSecurityContext(String endpointName);
}
Expand Up @@ -306,6 +306,10 @@ public void setAddress(String address)

public SecurityDomainContext getSecurityDomainContext()
{
if (securityDomainContext == null)
{
throw Messages.MESSAGES.cannotGetJBossSecurityContext(this.getName().toString());
}
return securityDomainContext;
}

Expand Down

0 comments on commit 1b0bb35

Please sign in to comment.