title: Configure web service in seam ("no active application context")
body: <p>I am building a web service using seam 2.0.1 and deploying it on jboss 4.2.2 GA. I have my web service class which access another class (updates stuff in data base).</p>
  
  <p>I have <code>standard-jaxws-endpoint-config.xml</code> in META-INF folder. </p>
  
  <pre><code>@Name("pluginHandler")
  @Scope(ScopeType.APPLICATION)  
  @Install(precedence = Install.BUILT_IN)
  @Startup(depends = "someclass")
  
  @Stateless
  @WebService(name = "Plugin", serviceName = "PluginService")
  
  
  public class PlugInHandler {
  
  @WebMethod
  public int processRequest(Account account)
  {
  
      Workbench wb = Component.getInstance("Workbench");
      //above line keeps throwing exception "No application context active"
  
      }
  
  }
  </code></pre>
  
  <p>I have been looking all over different forums, but I cannot find a solution. I tried using <code>Lifecycle.begincall()</code> and <code>Lifecycle.endCall()</code> but nothing worked. 
  Do I need <code>web.xml</code> as well? If yes what information should <code>web.xml</code> contain? 
  Any help would be highly appreciated.</p>