[jboss-user] [JBoss Seam] - Remoting problem - Component not found

fredgen do-not-reply at jboss.com
Thu Aug 23 11:09:03 EDT 2007


Hello, 

I'm trying to add remoting to webapp i'm working on, but have got stuck at "hello world" ... Can anyone please look at code bellow, and tell me what i have missed ;( 

import javax.ejb.Stateless;
  | import org.jboss.seam.annotations.Name;
  | 
  | @Stateless
  | @Name("concernActions")
  | public class ConcernRemoteBean implements ConcernRemote {
  |     
  |      public String getAttachments(String str) {
  |          return "first<br />second<br />";
  |     }
  | }

import javax.ejb.Local;
  | import org.jboss.seam.annotations.WebRemote;
  | 
  | @Local
  | public interface ConcernRemote {
  |     
  | @WebRemote
  |     public String getAttachments(String str);
  | 
  | }
  | 

i also have in web.xml

<servlet>
  |       <servlet-name>Seam Resource Servlet</servlet-name>
  |       <servlet-class>org.jboss.seam.servlet.ResourceServlet</servlet-class>
  |    </servlet>
  |     
  |    <servlet-mapping>
  |       <servlet-name>Seam Resource Servlet</servlet-name>
  |       <url-pattern>/seam/resource/*</url-pattern>
  |    </servlet-mapping>

i can invoke
/seam/resource/remoting/resource/remote.js
but when try to invoke
/seam/resource/remoting/interface.js?getAttachments
i get
16:27:23,065 ERROR [InterfaceGenerator] Component not found: [getAttachments]
  | 16:27:23,066 ERROR [Remoting] Error
  | javax.servlet.ServletException: Invalid request - component not found.
  |         at org.jboss.seam.remoting.InterfaceGenerator.handle(InterfaceGenerator.java:96)
  |         at org.jboss.seam.remoting.Remoting.getResource(Remoting.java:110)
  |         at org.jboss.seam.servlet.ResourceServlet.doGet(ResourceServlet.java:68)
  |         at javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
  |         at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
  |         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
  |         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
  |         at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:63)
  |         at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:57)
  |         at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
  |         at org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.java:60)
  |         at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
  |         at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
  |         at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
  |         at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:79)
  |         at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
  |         at org.jboss.seam.web.SeamFilter.doFilter(SeamFilter.java:84)
  |         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
  |         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
  |         at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
  |         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
  |         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
  |         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
  |         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
  |         at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
  |         at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432)
  |         at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
  |         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
  |         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
  |         at org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
  |         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
  |         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
  |         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
  |         at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
  |         at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
  |         at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
  |         at java.lang.Thread.run(Thread.java:619)
  | 

Thanks, 
Zbyszko

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4077389#4077389

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4077389



More information about the jboss-user mailing list