[Messaging, JMS & JBossMQ] - No resource manager found for jms/TCF
by Nishank
Hi ,
I am porting an application from Weblogic to Jboss4.x.
While configuring JMS with Entity beans I am getting this message on the Jboss Console:
No resource manager found for jms/TCF
Because of this Jboss is unable to look up for JNDi name and hence giving naming.context.namenotfound exception while running the application.
I am pasting my ejb-jar.xml and jboss.xml for reference.
ejb-jar.xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN" "http://java.sun.com/dtd/ejb-jar_2_0.dtd">
<ejb-jar id="EJBJar_1119650856615">
<display-name>BusinessDataManagement</display-name>
<enterprise-beans>
Business Data Management Service
<ejb-name>BusinessDataManagementService</ejb-name>
com.eidea.stub.ejb.component.BusinessDataManagementServiceHome
com.eidea.stub.ejb.component.BusinessDataManagementService
<ejb-class>com.eidea.svc.ejb.data.DataManagementServiceBean</ejb-class>
<session-type>Stateless</session-type>
<transaction-type>Container</transaction-type>
<ejb-local-ref id="DataServiceLocalRefID">
Reference to the RelationshipServiceLocal Home
<ejb-ref-name>RelationshipServiceLocal</ejb-ref-name>
<ejb-ref-type>Session</ejb-ref-type>
<local-home>com.eidea.stub.ejb.relationship.RelationshipServiceLocalHome</local-home>
com.eidea.stub.ejb.relationship.RelationshipServiceLocal
<ejb-link>RelationshipService</ejb-link>
</ejb-local-ref>
<security-role-ref>
<role-name>PiiEOperator</role-name>
<role-link>PiiEOperator</role-link>
</security-role-ref>
<security-identity>
<use-caller-identity/>
</security-identity>
<resource-ref id="res_ref_1">
<res-ref-name>jms/TCF</res-ref-name>
<res-type>javax.jms.TopicConnectionFactory</res-type>
<res-auth>Container</res-auth>
<res-sharing-scope>Shareable</res-sharing-scope>
</resource-ref>
<resource-env-ref id="res_env_ref_1">
<resource-env-ref-name>jms/ptopic</resource-env-ref-name>
<resource-env-ref-type>javax.jms.Topic</resource-env-ref-type>
</resource-env-ref>
</enterprise-beans>
<assembly-descriptor>
<security-role>
Oms User
<role-name>PiiEOperator</role-name>
</security-role>
<method-permission>
<role-name>PiiEOperator</role-name>
<ejb-name>BusinessDataManagementService</ejb-name>
<method-name>*</method-name>
</method-permission>
<container-transaction>
<ejb-name>BusinessDataManagementService</ejb-name>
<method-name>*</method-name>
<trans-attribute>Required</trans-attribute>
</container-transaction>
</assembly-descriptor>
</ejb-jar>
Jboss.xml
<?xml version="1.0" encoding="UTF-8"?>
<enterprise-beans>
<ejb-name>BusinessDataManagementService</ejb-name>
<resource-ref>
<res-ref-name>jdo</res-ref-name>
<jndi-name>jdo</jndi-name>
</resource-ref>
<resource-ref>
<res-ref-name>jms/TCF</res-ref-name>
<jndi-name>TopicConnectionFactory</jndi-name>
</resource-ref>
<resource-ref>
<res-env-ref-name>jms/ptopic</res-env-ref-name>
<jndi-name>topic/DefaultChannel</jndi-name>
</resource-ref>
<jndi-name>BusinessDataManagementService</jndi-name>
</enterprise-beans>
<security-role-assignment>
<role-name>PiiEOperator</role-name>
<principal-name>Deployers</principal-name>
</security-role-assignment>
Any help in this regard will be highly appreciated.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4141670#4141670
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4141670
18 years
[Management, JMX/JBoss] - Re: Securing JMX console (JBoss)
by mcdan311
What if the red arrow is not there from the beginning what does that mean?
<!-- A security constraint that restricts access to the HTML JMX console
to users with the role JBossAdmin. Edit the roles to what you want and
uncomment the WEB-INF/jboss-web.xml/security-domain element to enable
secured access to the HTML JMX console.
<security-constraint>
<web-resource-collection>
<web-resource-name>HtmlAdaptor</web-resource-name>
An example security config that only allows users with the
role JBossAdmin to access the HTML JMX console web application
<url-pattern>/*</url-pattern>
<http-method>GET</http-method>
<http-method>POST</http-method>
</web-resource-collection>
<auth-constraint>
<role-name>JBossAdmin</role-name>
</auth-constraint>
</security-constraint>
-->
<login-config>
<auth-method>BASIC</auth-method>
<realm-name>JBoss JMX Console</realm-name>
</login-config>
<security-role>
<role-name>JBossAdmin</role-name>
</security-role>
</web-app>
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4141658#4141658
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4141658
18 years