5 Replies Latest reply on Jan 15, 2007 9:05 AM by Talles Brito

    java.lang.NoSuchMethodError: javax.jws.WebService.portName()

    Marco Novice

      hi all,
      been havign this exception after upgrading jbossws to 1.0.4

      i have read similar threads that suggest to replace ejb3 files....

      i have downloaded ejb3-rc9, replaced ejb3-persistence.jar and jboss-ejb3-client wherever i could, but i am still getting same exception...

      i think i am missing something... mayb some jboss-j2ee jars?

      can anyone help me out?

      thanks in advance and regards
      Marco

        • 1. Re: java.lang.NoSuchMethodError: javax.jws.WebService.portNa
          Marco Novice

          hi all,
          i found solution (and i apologize for not being more proactive..)

          i have downloaded ejb3.0-rc9fd and haveupdated followign files:
          - ejb3-persistence.jar
          - jboss-ejb3-client.jar
          - ejb3.deployer (directory)
          - jboss-aop-jdk50.deployer (directory)

          in jbossAS 4.0.4GA.

          all files above comes with ejb3.0-rc9fd or with microcontainer rc9

          hth
          marco

          • 3. Re: java.lang.NoSuchMethodError: javax.jws.WebService.portNa
            Heitor Roriz Filho Newbie

            I am having the same problem as Marco. I did what was suggested but unfortunately did not succeed. I updated the directories, it's ok. The file ejb3-persistence.jar can be found in different directories:

            jboss-4.0.4.GA\server\default\deploy\ejb3.deployer\
            jboss-4.0.4.GA\client\
            jboss-4.0.4.GA\server\default\lib\

            Should I update on all 3 dirs?

            I updated in all dirs and I get the following error:

            ERROR [MainDeployer] Could not create deployment: HYPERLINK file:/C:/jboss-4.0.4.GA/server/default/deploy/ejb3.deployer/ file:/C:/jboss-4.0.4.GA/server/default/deploy/ejb3.deployer/
            org.jboss.deployment.DeploymentException: Trying to install an already registered mbean: jboss.remoting:type=Connector,name=DefaultEjb3Connector,handler=ejb3
             at org.jboss.system.ServiceCreator.install(ServiceCreator.java:103)
             at org.jboss.system.ServiceConfigurator.internalInstall(ServiceConfigurator.java:449)
             at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:171)
             at org.jboss.system.ServiceController.install(ServiceController.java:226)
            (...)
            
            ERROR [MainDeployer] Could not create deployment: HYPERLINK file:/C:/jboss-4.0.4.GA/server/default/deploy/jboss-aop-jdk50.deployer/ file:/C:/jboss-4.0.4.GA/server/default/deploy/jboss-aop-jdk50.deployer/
            org.jboss.deployment.DeploymentException: Trying to install an already registered mbean: jboss.aop:service=AspectManager
             at org.jboss.system.ServiceCreator.install(ServiceCreator.java:103)
             at org.jboss.system.ServiceConfigurator.internalInstall(ServiceConfigurator.java:449)
             at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:171)
            
            (...)
             at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
             at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
             at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
             at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
             at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
             at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
             at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
             at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
             at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
             at $Proxy5.deploy(Unknown Source)
             at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)
             at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
             at org.jboss.Main.boot(Main.java:200)
             at org.jboss.Main$1.run(Main.java:464)
             at java.lang.Thread.run(Thread.java:595)
            INFO [ServiceEndpointManager] jbossws-1.0.4.GA (date=200611151648)
            

            Any hints?

            Heitor


            • 4. Re: java.lang.NoSuchMethodError: javax.jws.WebService.portNa
              Steve Newbie

              Heitor,
              The message "Trying to install an already registered mbean" is telling me that you managed to get two copies of one of the jars in your lib directory.
              Double check that all of the files you installed when over the top of the files they should have.

              Steve

              • 5. Re: java.lang.NoSuchMethodError: javax.jws.WebService.portNa
                Talles Brito Newbie

                JB 3.0 Preview RC9 only works with JBoss 4.0.4.GA. An ANT build script has been supplied to patch an existing JBoss 4.0.4.GA distribution.

                * download ANT from apache.org if you don't have it already
                * set a JBOSS_HOME environment variable to point to the directory JBoss is installed in

                $ cd jboss-EJB-3.0_RC9-FD
                $ ant -f install.xml -Djboss.server.config=[server directory you want to patch]