4 Replies Latest reply on Jan 3, 2007 7:39 AM by Makoto Hashimoto

    xts-demo does not work

    Makoto Hashimoto Newbie

      Hi,

      I tried to run xts-demo, but it fails with the following messages.

      Transaction failed! Cause: java.rmi.RemoteException: Call invocation failed: Malformed endpoint address; nested exception is: javax.xml.soap.SOAPException: Malformed endpoint address

      Does any body know the resolution ?

      Thanks,

        • 1. Re: xts-demo does not work
          Kevin Conner Master

          It looks like your service endpoints are not configured correctly.

          This error is likely to be raised by the SOAP layer when making the application call to your transactional service.

          What is your configuration? What call is failing?

          • 2. Re: xts-demo does not work
            Makoto Hashimoto Newbie

            I setup jbossts-4.2.2.GA on JBOSS AS 4.0.5.GA.
            According to my jboss log, restaurantAT.bookSeats(restaurantSeats) failed.


            20:15:35,732 INFO [STDOUT] at org.jboss.ws.jaxrpc.CallImpl.invokeInternal(CallImpl.java:718)
            20:15:35,732 INFO [STDOUT] at org.jboss.ws.jaxrpc.CallImpl.invoke(CallImpl.java:404)
            20:15:35,732 INFO [STDOUT] at org.jboss.ws.jaxrpc.CallProxy.invoke(CallProxy.java:148)
            20:15:35,732 INFO [STDOUT] at $Proxy285.bookSeats(Unknown Source)
            20:15:35,732 INFO [STDOUT] at com.arjuna.xts.nightout.clients.jboss.BasicClient.testAtomicTransaction(BasicClient.java:281)
            20:15:35,732 INFO [STDOUT] at com.arjuna.xts.nightout.clients.jboss.BasicClient.doGet(BasicClient.java:230)
            20:15:35,732 INFO [STDOUT] at javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
            20:15:35,732 INFO [STDOUT] at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
            20:15:35,732 INFO [STDOUT] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
            20:15:35,732 INFO [STDOUT] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
            20:15:35,774 INFO [STDOUT] at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
            20:15:35,774 INFO [STDOUT] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
            20:15:35,774 INFO [STDOUT] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
            20:15:35,774 INFO [STDOUT] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
            20:15:35,774 INFO [STDOUT] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
            20:15:35,774 INFO [STDOUT] at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
            20:15:35,774 INFO [STDOUT] at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
            20:15:35,774 INFO [STDOUT] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
            20:15:35,774 INFO [STDOUT] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
            20:15:35,774 INFO [STDOUT] at org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
            20:15:35,774 INFO [STDOUT] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
            20:15:35,774 INFO [STDOUT] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
            20:15:35,774 INFO [STDOUT] at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
            20:15:35,774 INFO [STDOUT] at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
            20:15:35,774 INFO [STDOUT] at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
            20:15:35,774 INFO [STDOUT] at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
            20:15:35,774 INFO [STDOUT] at java.lang.Thread.run(Thread.java:595)
            20:15:35,774 INFO [STDOUT] Caused by: javax.xml.soap.SOAPException: Malformed endpoint address
            20:15:35,774 INFO [STDOUT] at org.jboss.ws.soap.SOAPConnectionImpl.call(SOAPConnectionImpl.java:153)
            20:15:35,774 INFO [STDOUT] at org.jboss.ws.jaxrpc.CallImpl.invokeInternal(CallImpl.java:687)
            20:15:35,775 INFO [STDOUT] ... 26 more
            20:15:35,775 INFO [STDOUT] Caused by: java.net.MalformedURLException: Invalid url ${restaurantATURL}
            20:15:35,775 INFO [STDOUT] at org.jboss.remoting.InvokerLocator.(InvokerLocator.java:144)
            20:15:35,775 INFO [STDOUT] at org.jboss.ws.soap.SOAPConnectionImpl.call(SOAPConnectionImpl.java:149)


            My jboss.properties as follows,
            <arjuna>
            <hostname>localhost</hostname>
            <port>8080</port>
            <urlstub>xtsdemowebservices</urlstub>
            <deploy>
            <dir>/usr/local/jboss-4.0.5.GA/server/default/deploy</dir>
            </deploy>
            <!-- JBoss services --> <restaurantATURL>http://localhost:8080/xtsdemowebservices/RestaurantServiceAT</restaurantATURL>
            <restaurantBAURL>http://localhost:8080/xtsdemowebservices/RestaurantServiceBA</restaurantBAURL>
            <taxiATURL>http://localhost:8080/xtsdemowebservices/TaxiServiceAT</taxiATURL>
            <taxiBAURL>http://localhost:8080/xtsdemowebservices/TaxiServiceBA</taxiBAURL>
            <theatreATURL>http://localhost:8080/xtsdemowebservices/TheatreServiceAT</theatreATURL>
            

            Is this correct ?
            Thanks,


            • 3. Re: xts-demo does not work
              Kevin Conner Master

              The property file looks correct but you do not appear to have built the demo using the supplied script.

              Invalid url ${restaurantATURL}

              This indicates that the parameter subsititution did not occur.

              Follow the instructions in the BUILDING file and then redploy the ear. This should rectify your problem.


              • 4. Re: xts-demo does not work
                Makoto Hashimoto Newbie

                Hi,

                I found my mistake.
                I issued './build.sh jboss deploy' instead of 'ant deploy' and
                the demo worked correctly.

                Thank you for kindly support.

                Regards,