[jboss-jira] [JBoss JIRA] (AS7-6877) NoSuchMethodError pushOwner(ServiceTarget, ServiceName)

Jeff Yu (JIRA) jira-events at lists.jboss.org
Thu Apr 11 11:33:55 EDT 2013


Jeff Yu created AS7-6877:
----------------------------

             Summary: NoSuchMethodError pushOwner(ServiceTarget,ServiceName)
                 Key: AS7-6877
                 URL: https://issues.jboss.org/browse/AS7-6877
             Project: Application Server 7
          Issue Type: Bug
    Affects Versions: EAP 6.1.0.Alpha (7.2.0.Final)
            Reporter: Jeff Yu


In the JBoss AS-7.1.1.Final, I used the following code to do the JNDI binding/unbinding from the modules (not deployed in the deployment folder).
 
 
public class JndiRegistry {
 
     private static final Log LOG= LogFactory.getLog(JndiRegistry.class);
 
     public static void bindToJndi(String name, Object object) {
         ServiceTarget serviceTarget = CurrentServiceContainer.getServiceContainer();
         if (serviceTarget != null) {
            WritableServiceBasedNamingStore.pushOwner(serviceTarget);
             try {
                 InitialContext context = new InitialContext();
                 context.bind(name, object);
             } catch (NamingException e) {
                 LOG.error("Error in binding the object in JNDI.");
             }
         }
     }
 
     public static void unbindFromJndi(String name){
         ServiceTarget serviceTarget = CurrentServiceContainer.getServiceContainer();
         if (serviceTarget != null) {
             WritableServiceBasedNamingStore.pushOwner(serviceTarget);
             try {
                 InitialContext context = new InitialContext();
                 context.unbind(name);
             } catch (NamingException e) {
                 LOG.error("Error in unbinding the object from JNDI.");
             }
         }
     }
 
}
 
 
 
With the EAP 6.1.0.Alpha, I am getting the error of "
Caused by: java.lang.NoSuchMethodError: org.jboss.as.naming.WritableServiceBasedNamingStore.pushOwner(Lorg/jboss/msc/service/ServiceTarget;[Lorg/jboss/msc/service/ServiceName;)V",

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the jboss-jira mailing list