Skip to content

Commit

Permalink
Fix exception message (i18n)
Browse files Browse the repository at this point in the history
  • Loading branch information
asoldano committed Feb 17, 2016
1 parent 32142c7 commit f6695bf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Expand Up @@ -223,4 +223,7 @@ public interface Messages {

@Message(id = 24109, value = "Could not get WSDL contract for endpoint %s at %s")
WSFException couldNotFetchWSDLContract(String endpoint, String wsdlLocation);

@Message(id = 24110, value = "JNDI component resource not set correctly")
WSFException jndiComponentResourceNotSetCorrectly();
}
Expand Up @@ -46,6 +46,7 @@
import org.jboss.wsf.spi.WSFException;
import org.jboss.wsf.spi.deployment.Deployment;
import org.jboss.wsf.spi.metadata.JAXRSDeploymentMetadata;
import org.jboss.wsf.stack.cxf.Messages;
import org.jboss.wsf.stack.cxf.client.configuration.JBossWSBusFactory;
import org.jboss.wsf.stack.cxf.deployment.JNDIComponentResourceProvider;

Expand Down Expand Up @@ -188,7 +189,7 @@ private static void processJNDIComponentResources(JAXRSServerFactoryBean bean, J
for (String cl : md.getScannedJndiComponentResources()) {
String[] config = cl.trim().split(";");
if (config.length < 3) {
throw new RuntimeException("Messages.MESSAGES.jndiComponentResourceNotSetCorrectly()");
throw Messages.MESSAGES.jndiComponentResourceNotSetCorrectly();
}
String jndiName = config[0];
Class<?> clazz = classLoader.loadClass(config[1]);
Expand Down

0 comments on commit f6695bf

Please sign in to comment.