10 Replies Latest reply on Jun 23, 2010 7:44 PM by Rick Alves

    Access to jUDDI using uddibrowser

    Christophe BEAUVERGER Newbie

      Following Services Guide chap 4, I try to browse jUDDI using uddibrowser.

      When launching "Find all businesses", I have the following error on JBoss log :

      16:49:56,515 ERROR [JUDDIServlet] org.jboss.ws.core.soap.TextImpl cannot be cast to org.w3c.dom.Element
      java.lang.ClassCastException: org.jboss.ws.core.soap.TextImpl cannot be cast to org.w3c.dom.Element
      at org.jboss.jaxr.juddi.JUDDIServlet.doPost(JUDDIServlet.java:120)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
      at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:182)
      at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
      at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241)
      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:580)
      at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
      at java.lang.Thread.run(Thread.java:619)
      16:49:56,515 ERROR [JUDDIServlet] A serious error has occured while assembling the SOAP Fault.
      javax.xml.soap.SOAPException: Fault code 'Server' must be namespace qualified
      at org.jboss.ws.core.soap.SOAPFaultImpl.setFaultCode(SOAPFaultImpl.java:191)
      at org.jboss.ws.core.soap.SOAPFaultImpl.setFaultCode(SOAPFaultImpl.java:175)
      at org.jboss.jaxr.juddi.JUDDIServlet.doPost(JUDDIServlet.java:262)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
      at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:182)
      at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
      at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241)
      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:580)
      at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
      at java.lang.Thread.run(Thread.java:619)


      Searching on the web, i find an JIRA entry for jUDDI :
      "[jira] Created: (JUDDI-114) Classcast Exception on JBoss, Tomcat 6 on geronimo"


      I try with JDK 1.6 and JDK 1.5.

      My question is : is there anybody having the same problem as I ? JBoss ESB is documented in that way but it doesn't work. Is there a patch or something special to configure ?

      Thanks by advance.


        • 1. Re: Access to jUDDI using uddibrowser
          Daniel Bevenius Master

          Hi,

          What version of JBossESB are you running?
          https://issues.apache.org/jira/browse/JUDDI-114 was fixed in version 2.0rc5 which is the version that we are currently using.
          Could you try this by using a build from the trunk?

          Regards,

          /Daniel

          • 2. Re: Access to jUDDI using uddibrowser
            Christophe BEAUVERGER Newbie

            Hi,

            I encounter the problem with JBoss ESB 4.4 GA and JBoss SOAP 4.3.0.
            I run it indifferently on jdk 1.6 and jdk 1.5 with the same error.

            Thanks for your help.

            Christophe

            • 3. Re: Access to jUDDI using uddibrowser
              Tom Cunningham Master

              Do you have a juddi-service.sar in your deploy directory? If you do, try moving it aside to /tmp or somewhere else and then then running uddi browser.

              • 4. Re: Access to jUDDI using uddibrowser
                Christophe BEAUVERGER Newbie

                Hi,

                I've followed your advise.
                I've moved away from deploy directory juddi-service.sar. uddibrowser works well.

                Can you explain why it works now ? To use JBoss ESB, i need jUDDI. So it means that JBoss ESB doesn't need juddi-service.sar.

                Christophe

                • 5. Re: Access to jUDDI using uddibrowser
                  Tom Cunningham Master

                  juddi-service.sar is a separate juddi installation that is used with JBossWS. JBoss ESB's juddi installation is within jbossesb.sar. In some cases (like in the case of uddi browser) the two can conflict.

                  For the future, we have bugs logged on this conflict and are aware of it in terms of future releases.

                  • 6. Re: Access to jUDDI using uddibrowser
                    Christophe BEAUVERGER Newbie

                    Thank you for your answer.

                    What is the impact of moving definitivly aside juddi-service.sar from JBoss ? What is its use for JBoss WS ?

                    • 7. Re: Access to jUDDI using uddibrowser
                      Tom Cunningham Master

                      I believe its use for JBossWS is just as an installation of juddi for examples. Unless you plan on running the JBossWS examples, you should be fine moving it aside, and even then you would be okay if you altered a few configuration files I think.

                      • 8. Re: Access to jUDDI using uddibrowser
                        Rajneesh Kapur Newbie

                        Hello,

                        I came to this post after Christophe's reply on this post: (thanks)
                        http://www.jboss.org/index.html?module=bb&op=viewtopic&t=154277&postdays=0&postorder=asc&start=10

                        -- I have same setup as Christophe -- jdk 1.6 update12 and SOA-P4.3 (which uses - ESB4.4)

                        I was also getting similar exception and After removing juddi-service.sar from /deploy - Now I am getting the following exception:
                        This happens when from UDDIBrowse ->View -> Basic Find -- and click search (search criteria is empty -- but it should display all services registered in jUDDI).

                        Thanks a lot for your help.

                        17:15:57,105 ERROR [AbstractService] setProperty must be overridden by all subclasses of SOAPMessage
                        java.lang.UnsupportedOperationException: setProperty must be overridden by all subclasses of SOAPMessage
                         at javax.xml.soap.SOAPMessage.setProperty(SOAPMessage.java:441)
                         at org.jboss.ws.core.soap.SOAPMessageImpl.<init>(SOAPMessageImpl.java:67)
                         at org.jboss.ws.core.soap.MessageFactoryImpl.createMessage(MessageFactoryImpl.java:207)
                         at org.jboss.ws.core.soap.MessageFactoryImpl.createMessage(MessageFactoryImpl.java:185)
                         at org.apache.juddi.registry.AbstractService.doPost(AbstractService.java:94)
                         at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
                         at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
                         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
                         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                         at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
                         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
                         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
                         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
                         at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:182)
                         at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
                         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
                         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
                         at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
                         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
                         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241)
                         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
                         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:580)
                         at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
                         at java.lang.Thread.run(Thread.java:619)
                        17:15:57,121 ERROR [AbstractService] A serious error has occured while assembling the SOAP Fault.
                        java.lang.NullPointerException
                         at org.apache.juddi.registry.AbstractService.doPost(AbstractService.java:324)
                         at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
                         at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
                         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
                         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                         at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
                         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
                         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
                         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
                         at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:182)
                         at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
                         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
                         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
                         at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
                         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
                         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241)
                         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
                         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:580)
                         at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
                         at java.lang.Thread.run(Thread.java:619)
                        17:15:57,121 ERROR [ContainerBase] Servlet.service() for servlet UDDIV2InquiryService threw exception
                        java.lang.NullPointerException


                        - regards,
                        rishi

                        • 9. Re: Access to jUDDI using uddibrowser
                          Rajneesh Kapur Newbie

                          I use standalone ESB 4.5 server and I don't get this error anymore.

                          Thanks. everyone.

                          • 10. Re: Access to jUDDI using uddibrowser
                            Rick Alves Newbie

                            I'm using JDK1.6.0_12, JBossAS 6.0.0.M1 and JBossESB 4.7. I've only been able to view the UDDI used by JBossWS. When I remove the juddi-service.sar and try to view the registry I get the following:

                             

                            Request body:
                            <uddiv2:find_business generic="2.0"><uddiv2:findQualifiers/><uddiv2:name>%</udd
                            v2:name></uddiv2:find_business>
                            Caught exception: Unsupported response content type "text/html; charset=utf-8",
                            must be: "text/xml". Response was:
                            <html><head><title>JBoss Web/2.1.6.GA - Error report</title><style><!--H1 {font
                            family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:2
                            px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D
                            6;font-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:white;backgrou
                            d-color:#525D76;font-size:14px;} BODY {font-family:Tahoma,Arial,sans-serif;colo
                            :black;background-color:white;} B {font-family:Tahoma,Arial,sans-serif;color:wh
                            te;background-color:#525D76;} P {font-family:Tahoma,Arial,sans-serif;background
                            white;color:black;font-size:12px;}A {color : black;}A.name {color : black;}HR {
                            olor : #525D76;}--></style> </head><body><h1>HTTP Status 404 - /juddi/inquiry</
                            1><HR size="1" noshade="noshade"><p><b>type</b> Status report</p><p><b>message<
                            b> <u>/juddi/inquiry</u></p><p><b>description</b> <u>The requested resource (/j
                            ddi/inquiry) is not available.</u></p><HR size="1" noshade="noshade"><h3>JBoss
                            eb/2.1.6.GA</h3></body></html>

                            org.uddi4j.transport.TransportException: Unsupported response content type "tex
                            /html; charset=utf-8", must be: "text/xml". Response was:
                            <html><head><title>JBoss Web/2.1.6.GA - Error report</title><style><!--H1 {font
                            family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:2
                            px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D
                            6;font-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:white;backgrou
                            d-color:#525D76;font-size:14px;} BODY {font-family:Tahoma,Arial,sans-serif;colo
                            :black;background-color:white;} B {font-family:Tahoma,Arial,sans-serif;color:wh
                            te;background-color:#525D76;} P {font-family:Tahoma,Arial,sans-serif;background
                            white;color:black;font-size:12px;}A {color : black;}A.name {color : black;}HR {
                            olor : #525D76;}--></style> </head><body><h1>HTTP Status 404 - /juddi/inquiry</
                            1><HR size="1" noshade="noshade"><p><b>type</b> Status report</p><p><b>message<
                            b> <u>/juddi/inquiry</u></p><p><b>description</b> <u>The requested resource (/j
                            ddi/inquiry) is not available.</u></p><HR size="1" noshade="noshade"><h3>JBoss
                            eb/2.1.6.GA</h3></body></html>

                                    at org.uddi4j.transport.ApacheSOAPTransport.send(ApacheSOAPTransport.ja
                            a:88)
                                    at org.uddi4j.transport.TransportBase.send(TransportBase.java:57)
                                    at org.uddi4j.client.UDDIProxy.send(UDDIProxy.java:1938)
                                    at org.uddi4j.client.UDDIProxy.find_business(UDDIProxy.java:676)
                                    at org.uddibrowser.uddi.UDDIWrapper.findBusiness(UDDIWrapper.java:477)
                                    at org.uddibrowser.RegistryActionController.processRead(RegistryActionC
                            ntroller.java:500)
                                    at org.uddibrowser.RegistryActionController.asyncWork(RegistryActionCon
                            roller.java:471)
                                    at org.uddibrowser.RegistryActionController.access$000(RegistryActionCo
                            troller.java:76)
                                    at org.uddibrowser.RegistryActionController$1.construct(RegistryActionC
                            ntroller.java:354)
                                    at org.uddibrowser.ui.SwingWorker$2.run(SwingWorker.java:137)
                                    at java.lang.Thread.run(Thread.java:619)

                            Nested exception:
                            [SOAPException: faultCode=SOAP-ENV:Protocol; msg=Unsupported response content t
                            pe "text/html; charset=utf-8", must be: "text/xml". Response was:
                            <html><head><title>JBoss Web/2.1.6.GA - Error report</title><style><!--H1 {font
                            family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:2
                            px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D
                            6;font-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:white;backgrou
                            d-color:#525D76;font-size:14px;} BODY {font-family:Tahoma,Arial,sans-serif;colo
                            :black;background-color:white;} B {font-family:Tahoma,Arial,sans-serif;color:wh
                            te;background-color:#525D76;} P {font-family:Tahoma,Arial,sans-serif;background
                            white;color:black;font-size:12px;}A {color : black;}A.name {color : black;}HR {
                            olor : #525D76;}--></style> </head><body><h1>HTTP Status 404 - /juddi/inquiry</
                            1><HR size="1" noshade="noshade"><p><b>type</b> Status report</p><p><b>message<
                            b> <u>/juddi/inquiry</u></p><p><b>description</b> <u>The requested resource (/j
                            ddi/inquiry) is not available.</u></p><HR size="1" noshade="noshade"><h3>JBoss
                            eb/2.1.6.GA</h3></body></html>
                            ]
                                    at org.apache.soap.rpc.Call.getEnvelopeString(Call.java:175)
                                    at org.apache.soap.messaging.Message.receiveEnvelope(Message.java:144)
                                    at org.uddi4j.transport.ApacheSOAPTransport.send(ApacheSOAPTransport.ja
                            a:79)
                                    at org.uddi4j.transport.TransportBase.send(TransportBase.java:57)
                                    at org.uddi4j.client.UDDIProxy.send(UDDIProxy.java:1938)
                                    at org.uddi4j.client.UDDIProxy.find_business(UDDIProxy.java:676)
                                    at org.uddibrowser.uddi.UDDIWrapper.findBusiness(UDDIWrapper.java:477)
                                    at org.uddibrowser.RegistryActionController.processRead(RegistryActionC
                            ntroller.java:500)
                                    at org.uddibrowser.RegistryActionController.asyncWork(RegistryActionCon
                            roller.java:471)
                                    at org.uddibrowser.RegistryActionController.access$000(RegistryActionCo
                            troller.java:76)
                                    at org.uddibrowser.RegistryActionController$1.construct(RegistryActionC
                            ntroller.java:354)
                                    at org.uddibrowser.ui.SwingWorker$2.run(SwingWorker.java:137)
                                    at java.lang.Thread.run(Thread.java:619)