JBoss Community

how to do a binding for jms from web.xml to jboss for IBM MQ

created by shirish maurya in JNDI and Naming - View the full discussion

we are getting following error on startup

 

startup failed due to previous errors

java.lang.RuntimeException: mapped-name is required for jms/starof deployment xyz.war

        at org.jboss.web.tomcat.service.injection.WebResourceHandler.loadXmlResourceEnvRefs(WebResourceHandler.java:287)

        at org.jboss.web.tomcat.service.injection.WebResourceHandler.loadXml(WebResourceHandler.java:325)

        at org.jboss.web.tomcat.service.TomcatInjectionContainer.processMetadata(TomcatInjectionContainer.java:537)

        at org.jboss.web.tomcat.service.WebCtxLoader.start(WebCtxLoader.java:158)

        at org.apache.catalina.core.StandardContext.start(StandardContext.java:4272)

        at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:321)

        at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:145)

        at org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:461)

        at org.jboss.web.deployers.WebModule.startModule(WebModule.java:118)

        at org.jboss.web.deployers.WebModule.start(WebModule.java:97)

        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

 

 

any idea how to fix this  is content in web.xml

 

<resource-env-ref id="ResourceEnvRef_THOMWEBSENQ">

                <description>Queue Name</description>

                <resource-env-ref-name>java:jms/star</resource-env-ref-name>

<resource-env-ref-type>javax.jms.Queue</resource-env-ref-type>

        </resource-env-ref>

Reply to this message by going to Community

Start a new discussion in JNDI and Naming at Community