0 Replies Latest reply on Jul 16, 2009 8:57 PM by Bob Corcoran

    Seam Remoting

    Bob Corcoran Newbie
      I added the @WebRemote annotation to a few methods in an interface in our Seam app. I want to be able to call these methods from a web app running on a different box. However, the follwoing error occurs when we try to call the remote method(s):

      uncaught exception: Access to restricted URI denied

      The web remoting runs fine when the calling app is running inside the same JBoss server instance. However, when calling from an app running in a different container (Tomcat on another box, for instance), the browser reports the above exception.

      Example Code:

      <script type="text/javascript" src="http://ourseamapp.com/seam/resource/remoting/resource/remote.js"></script>
        <script type="text/javascript" src="http://ourseamapp.com/seam/resource/remoting/interface.js?gSAWebRemoteProvider">     
        <script type="text/javascript">  
          function getTeams() {
            Seam.Remoting.resourcePath = "http://ourseamapp.com/seam/resource/remoting";       
          function callback(result) {   
                  do something here...