[jboss-jira] [JBoss JIRA] (WFLY-963) NoSuchMethodError pushOwner(ServiceTarget, ServiceName)

Eduardo Martins (JIRA) jira-events at lists.jboss.org
Tue Jul 30 02:51:26 EDT 2013


    [ https://issues.jboss.org/browse/WFLY-963?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12793683#comment-12793683 ] 

Eduardo Martins commented on WFLY-963:
--------------------------------------

I made source branches for evaluation of options:

1) require no owner - https://github.com/emmartins/wildfly/commit/222ee7a155768a73c85d88be450f9f5192cc3b45

3) proprietary api (see unit test for usage example) - https://github.com/emmartins/wildfly/commit/83d51ce6621848fc9b19936bb12c591945aa9d8f
                
> NoSuchMethodError pushOwner(ServiceTarget,ServiceName)
> ------------------------------------------------------
>
>                 Key: WFLY-963
>                 URL: https://issues.jboss.org/browse/WFLY-963
>             Project: WildFly
>          Issue Type: Bug
>          Components: Naming
>            Reporter: Jeff Yu
>            Assignee: Eduardo Martins
>
> 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