2 Replies Latest reply on Jul 1, 2011 1:18 PM by Jason Porter

    Remoting + AS7 errors

    lholmquist Newbie

      I'm using seam remoting in an application that i'm creating,  i was using as6 but want to move to as7 cr1.


      i'm getting an error when making a remote call. 



      here is a snippet of the js code:



      <script type="text/javascript" src="seam/resource/remoting/resource/remote.js?compress=false"></script>
      <script type="text/javascript" src="seam/resource/remoting/interface.js?mainAction"></script>
      
      
      Seam.debug = true;
      
      var seamMainAction =  Seam.createBean("mainAction");
      
      
      seamMainAction.loadData(loadingCallback,loadingCallbackExceptionHandler);
      



      here is a snippet of the java file:




      @Named("mainAction")
      public class MainControllerAction implements Serializable{
      
          @Inject
          Identity identity;
      
          @Inject
          @Authenticated
          User user;
      
          @Inject
          IDataHandler dataHandler;
      
      
         @WebRemote
          public User loadData()
          {
      
              user = dataHandler.loadUser(user);
      
              return user;
          }
      }
      



      here is the seam debug window:




      Fri Jul 01 2011 11:27:27 GMT-0400 (Eastern Daylight Time): Request packet:
      <envelope><header><context><callId>0</callId></context></header><body><call><target>mainAction</target><method>loadData</method><params></params><refs></refs></call></body></envelope>
      
      
      Fri Jul 01 2011 11:27:27 GMT-0400 (Eastern Daylight Time): Response packet:
      





      here is the error:




      11:27:27,784 ERROR [org.jboss.seam.remoting.Remoting] (http--127.0.0.1-8080-1) Error: org.jboss.weld.exceptions.UnsatisfiedResolutionException: WELD-001308 Unable to resolve any beans for Types: [class org.jboss.seam.remoting.ExecutionHandler]; Bindings: [@javax.enterprise.inject.Default()]
           at org.jboss.weld.manager.BeanManagerImpl.getBean(BeanManagerImpl.java:809) [weld-core-1.1.1.Final.jar:2011-04-04 15:54]
           at org.jboss.weld.bean.builtin.InstanceImpl.get(InstanceImpl.java:108) [weld-core-1.1.1.Final.jar:2011-04-04 15:54]
           at org.jboss.seam.remoting.Remoting.getExecutionHandler(Remoting.java:253) [seam-remoting-3.0.0.Final.jar:]
           at org.jboss.seam.remoting.Remoting.service(Remoting.java:288) [seam-remoting-3.0.0.Final.jar:]
           at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) [jboss-servlet-api_3.0_spec-1.0.0.Final.jar:1.0.0.Final]
           at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329) [jbossweb-7.0.0.CR4.jar:7.0.0.CR1]
           at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.0.CR4.jar:7.0.0.CR1]
           at org.jboss.weld.servlet.ConversationPropagationFilter.doFilter(ConversationPropagationFilter.java:67) [weld-core-1.1.1.Final.jar:2011-04-04 15:54]
           at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280) [jbossweb-7.0.0.CR4.jar:7.0.0.CR1]
           at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.0.CR4.jar:7.0.0.CR1]
           at org.jboss.seam.servlet.exception.CatchExceptionFilter.doFilter(CatchExceptionFilter.java:62) [seam-servlet-3.0.0.Final.jar:]
           at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280) [jbossweb-7.0.0.CR4.jar:7.0.0.CR1]
           at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.0.CR4.jar:7.0.0.CR1]
           at org.jboss.seam.servlet.event.ServletEventBridgeFilter.doFilter(ServletEventBridgeFilter.java:72) [seam-servlet-3.0.0.Final.jar:]
           at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280) [jbossweb-7.0.0.CR4.jar:7.0.0.CR1]
           at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.0.CR4.jar:7.0.0.CR1]
           at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275) [jbossweb-7.0.0.CR4.jar:7.0.0.CR1]
           at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161) [jbossweb-7.0.0.CR4.jar:7.0.0.CR1]
           at org.jboss.as.web.NamingValve.invoke(NamingValve.java:57) [jboss-as-web-7.0.0.CR1.jar:7.0.0.CR1]
           at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:154) [jbossweb-7.0.0.CR4.jar:7.0.0.CR1]
           at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [jbossweb-7.0.0.CR4.jar:7.0.0.CR1]
           at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [jbossweb-7.0.0.CR4.jar:7.0.0.CR1]
           at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:362) [jbossweb-7.0.0.CR4.jar:7.0.0.CR1]
           at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877) [jbossweb-7.0.0.CR4.jar:7.0.0.CR1]
           at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:667) [jbossweb-7.0.0.CR4.jar:7.0.0.CR1]
           at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:951) [jbossweb-7.0.0.CR4.jar:7.0.0.CR1]
           at java.lang.Thread.run(Thread.java:662) [:1.6.0_24]
      




      and the dependency section of my pom



       <dependencyManagement>
              <dependencies>
                  <dependency>
                      <groupId>org.jboss.seam</groupId>
                      <artifactId>seam-bom</artifactId>
                      <version>${seam.version}</version>
                      <type>pom</type>
                      <scope>import</scope>
                  </dependency>
              </dependencies>
          </dependencyManagement>
      
      
      
          <dependencies>
              <dependency>
                  <groupId>org.jboss.spec</groupId>
                  <artifactId>jboss-javaee-6.0</artifactId>
                  <version>2.0.0.Beta1</version>
                  <type>pom</type>
                  <scope>provided</scope>
              </dependency>
      
      
              <dependency>
                  <groupId>org.jboss.seam.solder</groupId>
                  <artifactId>seam-solder</artifactId>
              </dependency>
      
              <dependency>
                  <groupId>org.jboss.seam.servlet</groupId>
                  <artifactId>seam-servlet</artifactId>
      
              </dependency>
      
              <dependency>
                  <groupId>org.jboss.seam.security</groupId>
                  <artifactId>seam-security</artifactId>
      
              </dependency>
              <dependency>
               <groupId>joda-time</groupId>
               <artifactId>joda-time</artifactId>
               <version>1.6</version>
            </dependency>
      
      
              <dependency>
                  <groupId>org.jboss.seam.remoting</groupId>
                  <artifactId>seam-remoting</artifactId>
                 
              </dependency>
      
                
      
          </dependencies>