1 2 Previous Next 18 Replies Latest reply on Jul 18, 2008 8:59 AM by Lucas Tiritilli

    webservice  and saygoodbye_over_http error

    Lucas Tiritilli Newbie

      hi!
      I was trying to execute "Quickstart_webservice_producer" but it's imposible.
      I deployed the webservice in mi jboss-esb-server but when i run testRun it throws any exceptions...
      stack-trace (eclipse console)

      saygoodbye_over_http:
       [echo] Invoking a JBossWS Endpoint over HTTP (via JBoss ESB).
       [java] Exception in thread "main" org.jboss.remoting.transport.http.WebServerError: Error received when calling on web server. Error returned was 500
       [java] at org.jboss.remoting.transport.http.HTTPClientInvoker.useHttpURLConnection(HTTPClientInvoker.java:380)
       [java] at org.jboss.remoting.transport.http.HTTPClientInvoker.transport(HTTPClientInvoker.java:135)
       [java] at org.jboss.remoting.MicroRemoteClientInvoker.invoke(MicroRemoteClientInvoker.java:122)
       [java] at org.jboss.remoting.Client.invoke(Client.java:1550)
       [java] at org.jboss.remoting.Client.invoke(Client.java:530)
       [java] at org.jboss.remoting.Client.invoke(Client.java:518)
       [java] at test.SendMessage.sendMessageToJBRListener(SendMessage.java:69)
       [java] at test.SendMessage.main(SendMessage.java:111)
      
      BUILD FAILED


      and my system console shows me " Unknown service endpoint "GoodByeWorlsWS"
      ---
      ---
      ---
      Can anybody help me?
      thaks!
      Atriano


        • 1. Re: webservice  and saygoodbye_over_http error
          Daniel Bevenius Master

          Hi Atriano,

          do you get the same error when running the quickstart from the command line:

          cd quickstarts/webservice_producer
          ant deploy
          and runtest
          


          Are you using a default installation of the jbossesb-server or have you modified any ports, or are you using the '-b' flag when starting the server?


          " Unknown service endpoint "GoodByeWorlsWS"

          Did you copy that from the console? It should be "GoodbyeWorldWS" as in the jboss-esb.xml file. Perhaps this is just a typo though?

          Regards,

          /Daniel




          • 2. Re: webservice  and saygoodbye_over_http error
            Lucas Tiritilli Newbie

            Hi Daniel I'm using jboss-esb-server-4.2
            when I run

            ant deploy
            ant runtest

            into the webservice_prodecer folder, the console prints an error as follows:


            
            BUILD SUCCESSFUL
            ...
            ...
            ...
            ...
            compile:
            
            saygoodbye_over_jms:
             [echo] Invoking a JBossWS Endpoint over JMS (via JBoss ESB).
             [java] Exception in thread "main" javax.naming.NameNotFoundException: quick
            start_webservice_producer_gw not bound
             [java] at org.jnp.server.NamingServer.getBinding(NamingServer.java:529)
            
             [java] at org.jnp.server.NamingServer.getBinding(NamingServer.java:537)
            
             [java] at org.jnp.server.NamingServer.getObject(NamingServer.java:543)
             [java] at org.jnp.server.NamingServer.lookup(NamingServer.java:296)
             [java] at org.jnp.server.NamingServer.lookup(NamingServer.java:270)
             [java] at sun.reflect.GeneratedMethodAccessor73.invoke(Unknown Source)
             [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMet
            hodAccessorImpl.java:25)
             [java] at java.lang.reflect.Method.invoke(Method.java:597)
             [java] at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.jav
            a:305)
             [java] at sun.rmi.transport.Transport$1.run(Transport.java:159)
             [java] at java.security.AccessController.doPrivileged(Native Method)
             [java] at sun.rmi.transport.Transport.serviceCall(Transport.java:155)
             [java] at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTranspor
            t.java:535)
             [java] at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCP
            Transport.java:790)
             [java] at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPT
            ransport.java:649)
             [java] at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Thread
            PoolExecutor.java:885)
             [java] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPool
            Executor.java:907)
             [java] at java.lang.Thread.run(Thread.java:619)
             [java] at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:255)
             [java] at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:233)
             [java] at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:142)
             [java] at org.jnp.server.NamingServer_Stub.lookup(Unknown Source)
             [java] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:627)
             [java] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:589)
             [java] at javax.naming.InitialContext.lookup(InitialContext.java:392)
             [java] at org.jboss.soa.esb.samples.quickstart.webserviceproducer.test.
            SendMessage.setupJMSConnection(SendMessage.java:87)
             [java] at org.jboss.soa.esb.samples.quickstart.webserviceproducer.test.
            SendMessage.sendMessageOverJMS(SendMessage.java:46)
             [java] at org.jboss.soa.esb.samples.quickstart.webserviceproducer.test.
            SendMessage.main(SendMessage.java:111)
            
            BUILD FAILED


            thanks!
            Atriano

            • 3. Re: webservice  and saygoodbye_over_http error
              Daniel Bevenius Master

              When you ran 'ant deploy' did you see anything in the server console?
              I suspect that the quickstart is not being deployed correctly.

              Regards,

              /Daniel

              • 4. Re: webservice  and saygoodbye_over_http error
                Lucas Tiritilli Newbie

                when I run ant deploy the console doesn't make any changes...
                Additionally I can see the webservice in
                http://localhost:8080/jbossws/

                • 6. Re: webservice  and saygoodbye_over_http error
                  Daniel Bevenius Master

                  Ok, just to make sure that the quickstart has deployed correctly can you undeploy it, and the deploy it again, like this:
                  ant undeploy
                  ant deploy

                  Thanks,

                  /Daniel

                  • 7. Re: webservice  and saygoodbye_over_http error
                    Lucas Tiritilli Newbie

                    ok, now I can not deploy.
                    the sercer console error is as follows

                    10:03:10,812 ERROR [MainDeployer] Could not create deployment: file:/C:/jbossesb
                    -server-4.2GA/server/default/tmp/deploy/tmp40664Quickstart_webservice_producer.e
                    sb-contents/Quickstart_webservice_producer.war
                    java.lang.NoClassDefFoundError: Could not initialize class com.sun.xml.bind.v2.m
                    odel.impl.RuntimeModelBuilder
                     at com.sun.xml.bind.v2.runtime.JAXBContextImpl.getTypeInfoSet(JAXBContex
                    tImpl.java:406)
                     at com.sun.xml.bind.v2.runtime.JAXBContextImpl.<init>(JAXBContextImpl.ja
                    va:270)
                     at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:
                    103)
                     at com.sun.xml.bind.api.JAXBRIContext.newInstance(JAXBRIContext.java:89)
                    
                     at com.sun.xml.bind.api.JAXBRIContext.newInstance(JAXBRIContext.java:100
                    )
                     at org.jboss.ws.metadata.builder.jaxws.JAXWSMetaDataBuilder.createJAXBCo
                    ntext(JAXWSMetaDataBuilder.java:917)
                     at org.jboss.ws.metadata.builder.jaxws.JAXWSWebServiceMetaDataBuilder.bu
                    ildWebServiceMetaData(JAXWSWebServiceMetaDataBuilder.java:142)
                     at org.jboss.ws.metadata.builder.jaxws.JAXWSServerMetaDataBuilder.setupP
                    roviderOrWebService(JAXWSServerMetaDataBuilder.java:50)
                     at org.jboss.ws.metadata.builder.jaxws.JAXWSMetaDataBuilderJSE.buildMeta
                    Data(JAXWSMetaDataBuilderJSE.java:69)
                     at org.jboss.wsf.stack.jbws.UnifiedMetaDataDeployer.create(UnifiedMetaDa
                    taDeployer.java:67)
                     at org.jboss.wsf.spi.deployment.BasicDeployerManager.deploy(BasicDeploye
                    rManager.java:69)
                     at org.jboss.wsf.container.jboss42.ArchiveDeployerHook.deploy(ArchiveDep
                    loyerHook.java:97)
                     at org.jboss.wsf.container.jboss42.DeployerInterceptor.create(DeployerIn
                    terceptor.java:79)
                     at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.
                    create(SubDeployerInterceptorSupport.java:180)
                     at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterce
                    ptor.java:91)
                     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 $Proxy34.create(Unknown Source)
                     at org.jboss.deployment.MainDeployer.create(MainDeployer.java:969)
                     at org.jboss.deployment.MainDeployer.create(MainDeployer.java:959)
                     at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:818)
                     at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
                     at sun.reflect.GeneratedMethodAccessor50.invoke(Unknown Source)
                     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
                    sorImpl.java:25)
                     at java.lang.reflect.Method.invoke(Method.java:597)
                     at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch
                    er.java:155)
                     at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
                     at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractIntercept
                    or.java:133)
                     at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                     at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelM
                    BeanOperationInterceptor.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 $Proxy9.deploy(Unknown Source)
                     at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymen
                    tScanner.java:421)
                     at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentS
                    canner.java:634)
                     at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.
                    doScan(AbstractDeploymentScanner.java:263)
                     at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.
                    loop(AbstractDeploymentScanner.java:274)
                     at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.
                    run(AbstractDeploymentScanner.java:225)


                    thanks once more!
                    Atriano

                    • 8. Re: webservice  and saygoodbye_over_http error
                      Daniel Bevenius Master

                      Something is not right with you server with regard to JBossWS by the looks of the stacktrace there.

                      Have you made any modifcations or is this a default installtion?
                      I'll download jbossesb-server-4.2GA and try this out and see if I can reproduce this.

                      Regards,

                      /Daniel

                      • 9. Re: webservice  and saygoodbye_over_http error
                        Daniel Bevenius Master

                        I've tried this and it works for me with a newly installed jbossesb-server-4.2GA.
                        Can you check your configuration and see if you have made any modfications to it?

                        Regards,

                        /Daniel

                        • 10. Re: webservice  and saygoodbye_over_http error
                          Lucas Tiritilli Newbie

                          thanks Daniel. I have an original jboss-esb-server (without any modifications).
                          regards,
                          Atriano

                          • 11. Re: webservice  and saygoodbye_over_http error
                            Lucas Tiritilli Newbie

                            I check again and I'm sure that i don't make any chenges in my server...

                            • 12. Re: webservice  and saygoodbye_over_http error
                              Lucas Tiritilli Newbie

                              Daniel, I reinstall my server, now I have other error

                              11:35:56,312 ERROR [MainDeployer] Could not create deployment: file:/C:/jbossesb
                              -server-4.2GA/server/default/tmp/deploy/tmp8445aplay-webServices.esb-contents/ap
                              lay-webServices.war
                              java.lang.LinkageError: JAXB 2.0 API is being loaded from the bootstrap classloa
                              der, but this RI (from jar:file:/C:/jbossesb-server-4.2GA/server/default/tmp/dep
                              loy/tmp8305jaxb-impl.jar!/com/sun/xml/bind/v2/model/impl/ModelBuilder.class) nee
                              ds 2.1 API. Use the endorsed directory mechanism to place jaxb-api.jar in the bo
                              otstrap classloader. (See http://java.sun.com/j2se/1.5.0/docs/guide/standards/)
                               at com.sun.xml.bind.v2.model.impl.ModelBuilder.<clinit>(ModelBuilder.jav
                              a:136)
                               at com.sun.xml.bind.v2.runtime.JAXBContextImpl.getTypeInfoSet(JAXBContex
                              tImpl.java:406)
                               at com.sun.xml.bind.v2.runtime.JAXBContextImpl.<init>(JAXBContextImpl.ja
                              va:270)
                               at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:
                              103)
                               at com.sun.xml.bind.api.JAXBRIContext.newInstance(JAXBRIContext.java:89)
                              
                               at com.sun.xml.bind.api.JAXBRIContext.newInstance(JAXBRIContext.java:100
                              )
                               at org.jboss.ws.metadata.builder.jaxws.JAXWSMetaDataBuilder.createJAXBCo
                              ntext(JAXWSMetaDataBuilder.java:917)
                               at org.jboss.ws.metadata.builder.jaxws.JAXWSWebServiceMetaDataBuilder.bu
                              ildWebServiceMetaData(JAXWSWebServiceMetaDataBuilder.java:142)
                               at org.jboss.ws.metadata.builder.jaxws.JAXWSServerMetaDataBuilder.setupP
                              roviderOrWebService(JAXWSServerMetaDataBuilder.java:50)
                               at org.jboss.ws.metadata.builder.jaxws.JAXWSMetaDataBuilderJSE.buildMeta
                              Data(JAXWSMetaDataBuilderJSE.java:69)
                               at org.jboss.wsf.stack.jbws.UnifiedMetaDataDeployer.create(UnifiedMetaDa
                              taDeployer.java:67)
                               at org.jboss.wsf.spi.deployment.BasicDeployerManager.deploy(BasicDeploye
                              rManager.java:69)
                               at org.jboss.wsf.container.jboss42.ArchiveDeployerHook.deploy(ArchiveDep
                              loyerHook.java:97)
                               at org.jboss.wsf.container.jboss42.DeployerInterceptor.create(DeployerIn
                              terceptor.java:79)
                               at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.
                              create(SubDeployerInterceptorSupport.java:180)
                               at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterce
                              ptor.java:91)
                               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 $Proxy34.create(Unknown Source)
                               at org.jboss.deployment.MainDeployer.create(MainDeployer.java:969)
                               at org.jboss.deployment.MainDeployer.create(MainDeployer.java:959)
                               at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:818)
                               at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
                               at sun.reflect.GeneratedMethodAccessor50.invoke(Unknown Source)
                               at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
                              sorImpl.java:25)
                               at java.lang.reflect.Method.invoke(Method.java:597)
                               at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch
                              er.java:155)
                               at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
                               at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractIntercept
                              or.java:133)
                               at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                               at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelM
                              BeanOperationInterceptor.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 $Proxy9.deploy(Unknown Source)
                               at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymen
                              tScanner.java:421)
                               at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentS
                              canner.java:634)
                               at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.
                              doScan(AbstractDeploymentScanner.java:263)
                               at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.
                              loop(AbstractDeploymentScanner.java:274)
                               at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.
                              run(AbstractDeploymentScanner.java:225)


                              May be the JAXB library is old... I try changing jaxb-api and jaxb-impl in
                              server/default/deploy/soap.esb and
                              ..../jbossws.esb

                              but I have the same error.

                              • 13. Re: webservice  and saygoodbye_over_http error
                                Daniel Bevenius Master

                                Can you try downloading the jbossesb server from here: http://www.jboss.org/jbossesb/downloads/4.2GA?action=a&windowstate=maximized

                                Unzip the jar and start the server.
                                Change to the webservice_producer directory and run:
                                ant deploy
                                ant runtest

                                These are the steps that I took. Does this not work for you?

                                Regards,

                                /Daniel

                                • 14. Re: webservice  and saygoodbye_over_http error
                                  Lucas Tiritilli Newbie

                                  no, it doesn't work...
                                  (I can't run just "ant", I must run c:\<paht to ant> deploy

                                  regards,
                                  Atriano

                                  1 2 Previous Next