3 Replies Latest reply on Mar 13, 2011 6:46 PM by kragoth

    No phase Id bound to current thread when posting a response to a webservice

    meldawy

      Hi all,
      This is my first time to post a question on seam forum. I know from the title that this exception has been posted several times on the forum before. I checked those posts all and none of them applies to what I have in my project.


      I've a web application project using seam 2.2.0GA, resteasy 1.2.0GA. The application has two parts, one of them as web application to be accessed in browsers and the other part is actually providing REST web services to be accessed by another application.


      The part of web services is actually the one causing the exception to be thrown as follows:



      Mar 6, 2011 9:41:35 PM org.apache.catalina.core.StandardWrapperValve invoke
      SEVERE: Servlet.service() for servlet Seam Resource Servlet threw exception
      java.lang.IllegalStateException: No phase id bound to current thread (make sure you do not have two SeamPhaseListener instances installed)
              at org.jboss.seam.contexts.PageContext.getPhaseId(PageContext.java:163)
              at org.jboss.seam.contexts.PageContext.isBeforeInvokeApplicationPhase(PageContext.java:175)
              at org.jboss.seam.contexts.PageContext.getCurrentWritableMap(PageContext.java:91)
              at org.jboss.seam.contexts.PageContext.remove(PageContext.java:105)
              at org.jboss.seam.Component.newInstance(Component.java:2141)
              at org.jboss.seam.Component.getInstance(Component.java:2021)
              at org.jboss.seam.Component.getInstance(Component.java:2000)
              at org.jboss.seam.Component.getInstance(Component.java:1994)
              at org.jboss.seam.Component.getInstance(Component.java:1967)
              at org.jboss.seam.Component.getInstance(Component.java:1962)
              at org.jboss.seam.faces.FacesPage.instance(FacesPage.java:92)
              at org.jboss.seam.core.ConversationPropagation.restorePageContextConversationId(ConversationPropagation.java:84)
              at org.jboss.seam.core.ConversationPropagation.restoreConversationId(ConversationPropagation.java:57)
              at org.jboss.seam.servlet.ContextualHttpServletRequest.restoreConversationId(ContextualHttpServletRequest.java:89)
              at org.jboss.seam.servlet.ContextualHttpServletRequest.run(ContextualHttpServletRequest.java:40)
              at org.jboss.seam.resteasy.ResteasyResourceAdapter.getResource(ResteasyResourceAdapter.java:121)
              at org.jboss.seam.servlet.SeamResourceServlet.service(SeamResourceServlet.java:80)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
              at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
              at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
              at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
              at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
              at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
              at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
              at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)
              at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
              at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
              at java.lang.Thread.run(Thread.java:637)

      After debugging, I found that this exception is thrown from this function:


             @POST
              @Consumes("application/json")
              @Path("/login")
              @Produces("text/plain")
              public String loginUser(Credentials creds) {
                      log.info("Trying to login user {} ", creds.getUsername());
                      credentials.setUsername(creds.getUsername());
                      credentials.setPassword(creds.getPassword());
                      if (identity.login() != null) {
                              log.info("get contractor id from current session contractor");
                              IndividualContractor currentIndividualContractor = (IndividualContractor) Component.getInstance("currentIndividualContractor", ScopeType.SESSION);
                              return currentIndividualContractor.getId().toString();
                      } else {
                              log.info("Error logging in");
                              return "fail";
                      }
              }


      specifically, from the line that gets the contractor Id and returns it return currentIndividualContractor.getId().toString();


      It seems that the exception is thrown while forming the response.


      I'm using maven and tomcat 6 to deploy a war file. Here are the dependencies in my pom.xml:


              <dependencies>
                      <dependency>
                              <groupId>org.hsqldb</groupId>
                              <artifactId>hsqldb</artifactId>
                              <version>1.8.0.10</version>
                              <scope>test</scope>
                      </dependency>
                      <dependency>
                              <groupId>org.hamcrest</groupId>
                              <artifactId>hamcrest-all</artifactId>
                              <version>1.1</version>
                              <scope>test</scope>
                      </dependency>
                      <dependency>
                              <groupId>dbunit</groupId>
                              <artifactId>dbunit</artifactId>
                              <version>2.1</version>
                      </dependency>
                      <dependency>
                              <groupId>org.jboss.seam</groupId>
                              <artifactId>jboss-seam</artifactId>
                              <version>2.2.0.GA</version>
                              <exclusions>
                                      <exclusion>
                                              <artifactId>el-api</artifactId>
                                              <groupId>javax.el</groupId>
                                      </exclusion>
                                      <exclusion>
                                              <artifactId>xstream</artifactId>
                                              <groupId>xstream</groupId>
                                      </exclusion>
                              </exclusions>
                      </dependency>
                      <dependency>
                              <groupId>org.jboss.seam</groupId>
                              <artifactId>jboss-seam-ui</artifactId>
                              <version>2.2.0.GA</version>
                              <exclusions>
                                      <exclusion>
                                              <artifactId>commons-beanutils</artifactId>
                                              <groupId>commons-beanutils</groupId>
                                      </exclusion>
                                      <exclusion>
                                              <groupId>org.jboss.seam</groupId>
                                              <artifactId>jboss-seam-jul</artifactId>
                                      </exclusion>
                                      <exclusion>
                                              <artifactId>el-api</artifactId>
                                              <groupId>javax.el</groupId>
                                      </exclusion>
                                      <exclusion>
                                              <artifactId>jboss-seam</artifactId>
                                              <groupId>org.jboss.seam</groupId>
                                      </exclusion>
                              </exclusions>
                      </dependency>
                      <dependency>
                              <groupId>org.jboss.seam</groupId>
                              <artifactId>jboss-seam-mail</artifactId>
                              <version>2.2.0.GA</version>
                              <exclusions>
                                      <exclusion>
                                              <artifactId>jboss-seam</artifactId>
                                              <groupId>org.jboss.seam</groupId>
                                      </exclusion>
                              </exclusions>
                      </dependency>
                      <dependency>
                              <groupId>org.jboss.seam</groupId>
                              <artifactId>jboss-seam-resteasy</artifactId>
                              <version>2.2.0.GA</version>
                              <exclusions>
                                      <exclusion>
                                              <artifactId>jboss-seam</artifactId>
                                              <groupId>org.jboss.seam</groupId>
                                      </exclusion>
                              </exclusions>
                      </dependency>
                      <dependency>
                              <groupId>org.jboss.resteasy</groupId>
                              <artifactId>resteasy-jaxrs</artifactId>
                              <version>1.2.GA</version>
                      </dependency>
                      <dependency>
                              <groupId>org.jboss.resteasy</groupId>
                              <artifactId>resteasy-jaxb-provider</artifactId>
                              <version>1.2.GA</version>
                      </dependency>
                      <dependency>
                              <groupId>org.jboss.resteasy</groupId>
                              <artifactId>resteasy-atom-provider</artifactId>
                              <version>1.2.GA</version>
                      </dependency>
      <!--         <dependency>-->
      <!--                 <groupId>org.jboss.resteasy</groupId>-->
      <!--                 <artifactId>tjws</artifactId>-->
      <!--                 <version>1.2.GA</version>-->
      <!--         </dependency>-->
                      <dependency>
                              <groupId>com.thoughtworks.xstream</groupId>
                              <artifactId>xstream</artifactId>
                              <version>1.3.1</version>
                      </dependency>
                      <dependency>
                              <groupId>org.codehaus.jettison</groupId>
                              <artifactId>jettison</artifactId>
                              <version>1.2</version>
                      </dependency>
                      <dependency>
                              <groupId>javax.mail</groupId>
                              <artifactId>mail</artifactId>
                              <version>1.4.2</version>
                      </dependency>
                      <dependency>
                              <groupId>org.hibernate</groupId>
                              <artifactId>hibernate-core</artifactId>
                              <version>3.5.3-Final</version>
                              <exclusions>
                                      <exclusion>
                                              <artifactId>xml-apis</artifactId>
                                              <groupId>xml-apis</groupId>
                                      </exclusion>
                              </exclusions>
                      </dependency>
                      <dependency>
                              <groupId>org.hibernate</groupId>
                              <artifactId>hibernate-entitymanager</artifactId>
                              <version>3.5.3-Final</version>
                      </dependency>
                      <dependency>
                              <groupId>org.hibernate</groupId>
                              <artifactId>hibernate-annotations</artifactId>
                              <version>3.5.3-Final</version>
                      </dependency>
                      <dependency>
                              <groupId>org.hibernate</groupId>
                              <artifactId>hibernate-validator</artifactId>
                              <version>3.1.0.GA</version>
                              <exclusions>
                                      <exclusion>
                                              <groupId>org.hibernate</groupId>
                                              <artifactId>hibernate-core</artifactId>
                                      </exclusion>
                                      <exclusion>
                                              <groupId>org.hibernate</groupId>
                                              <artifactId>hibernate-commons-annotations</artifactId>
                                      </exclusion>
                              </exclusions>
                      </dependency>
                      <dependency>
                              <groupId>org.hibernate</groupId>
                              <artifactId>hibernate-search</artifactId>
                              <version>3.1.0.GA</version>
                              <exclusions>
                                      <exclusion>
                                              <groupId>org.hibernate</groupId>
                                              <artifactId>hibernate-core</artifactId>
                                      </exclusion>
                                      <exclusion>
                                              <groupId>org.hibernate</groupId>
                                              <artifactId>hibernate-commons-annotations</artifactId>
                                      </exclusion>
                                      <exclusion>
                                              <artifactId>ejb3-persistence</artifactId>
                                              <groupId>org.hibernate</groupId>
                                      </exclusion>
                              </exclusions>
                      </dependency>
                      <dependency>
                              <groupId>org.slf4j</groupId>
                              <artifactId>slf4j-api</artifactId>
                              <version>1.5.11</version>
                      </dependency>
                      <dependency>
                              <groupId>ch.qos.logback</groupId>
                              <artifactId>logback-core</artifactId>
                              <version>0.9.20</version>
                      </dependency>
                      <dependency>
                              <groupId>ch.qos.logback</groupId>
                              <artifactId>logback-classic</artifactId>
                              <version>0.9.20</version>
                      </dependency>
                      <dependency>
                              <groupId>net.sf.ehcache</groupId>
                              <artifactId>ehcache</artifactId>
                              <version>1.6.1</version>
                      </dependency>
                      <dependency>
                              <groupId>com.sun.faces</groupId>
                              <artifactId>jsf-api</artifactId>
                              <version>2.0.2</version>
                      </dependency>
                      <dependency>
                              <groupId>com.sun.faces</groupId>
                              <artifactId>jsf-impl</artifactId>
                              <version>2.0.2</version>
                      </dependency>
                      <dependency>
                              <groupId>jstl</groupId>
                              <artifactId>jstl</artifactId>
                              <version>1.1.2</version>
                      </dependency>
                      <dependency>
                              <groupId>org.richfaces.framework</groupId>
                              <artifactId>richfaces-api</artifactId>
                              <version>3.3.3.Final</version>
                      </dependency>
                      <dependency>
                              <groupId>org.richfaces.framework</groupId>
                              <artifactId>richfaces-impl-jsf2</artifactId>
                              <version>3.3.3.Final</version>
                      </dependency>
                      <dependency>
                              <groupId>org.richfaces.ui</groupId>
                              <artifactId>richfaces-ui</artifactId>
                              <version>3.3.3.Final</version>
                      </dependency>
                      <dependency>
                              <groupId>com.sun.facelets</groupId>
                              <artifactId>jsf-facelets</artifactId>
                              <version>1.1.15</version>
                      </dependency>
                      <dependency>
                              <groupId>javassist</groupId>
                              <artifactId>javassist</artifactId>
                              <version>3.8.0.GA</version>
                      </dependency>
                      <dependency>
                              <groupId>com.ontometrics.components</groupId>
                              <artifactId>charting</artifactId>
                              <version>0.0.1-SNAPSHOT</version>
                              <exclusions>
                                      <exclusion>
                                              <artifactId>jsf-api</artifactId>
                                              <groupId>com.sun.faces</groupId>
                                      </exclusion>
                              </exclusions>
                      </dependency>
                      <dependency>
                              <groupId>com.ontometrics</groupId>
                              <artifactId>wizard</artifactId>
                              <version>0.0.1-SNAPSHOT</version>
                              <exclusions>
                                      <exclusion>
                                              <artifactId>jboss-seam</artifactId>
                                              <groupId>org.jboss.seam</groupId>
                                      </exclusion>
                                      <exclusion>
                                              <artifactId>ejb</artifactId>
                                              <groupId>javax.persistence</groupId>
                                      </exclusion>
                                      <exclusion>
                                              <groupId>org.hsqldb</groupId>
                                              <artifactId>hsqldb</artifactId>
                                      </exclusion>
                                      <exclusion>
                                              <groupId>org.hibernate</groupId>
                                              <artifactId>hibernate-core</artifactId>
                                      </exclusion>
                                      <exclusion>
                                              <groupId>org.hibernate</groupId>
                                              <artifactId>hibernate-entitymanager</artifactId>
                                      </exclusion>
                              </exclusions>
                      </dependency>
                      <dependency>
                              <groupId>com.ontometrics</groupId>
                              <artifactId>forms</artifactId>
                              <version>0.0.1-SNAPSHOT</version>
                              <exclusions>
                                      <exclusion>
                                              <groupId>org.hibernate</groupId>
                                              <artifactId>hibernate-core</artifactId>
                                      </exclusion>
                                      <exclusion>
                                              <groupId>org.hibernate</groupId>
                                              <artifactId>hibernate-annotations</artifactId>
                                      </exclusion>
                                      <exclusion>
                                              <groupId>org.hibernate</groupId>
                                              <artifactId>hibernate-entitymanager</artifactId>
                                      </exclusion>
                                      <exclusion>
                                              <groupId>org.hibernate</groupId>
                                              <artifactId>hibernate-validator</artifactId>
                                      </exclusion>
                                      <exclusion>
                                              <artifactId>jboss-seam</artifactId>
                                              <groupId>org.jboss.seam</groupId>
                                      </exclusion>
                                      <exclusion>
                                              <groupId>net.sf.ehcache</groupId>
                                              <artifactId>ehcache</artifactId>
                                      </exclusion>
                              </exclusions>
                      </dependency>
                      <dependency>
                              <groupId>com.ontometrics</groupId>
                              <artifactId>location-services</artifactId>
                              <version>0.1-SNAPSHOT</version>
                              <exclusions>
                                      <exclusion>
                                              <groupId>org.jboss.seam</groupId>
                                              <artifactId>jboss-seam</artifactId>
                                      </exclusion>
                              </exclusions>
                      </dependency>
                      <dependency>
                              <groupId>com.ontometrics</groupId>
                              <artifactId>domain-commons</artifactId>
                              <version>1.0-SNAPSHOT</version>
                      </dependency>
                      <dependency>
                              <groupId>com.ontometrics</groupId>
                              <artifactId>opportunities</artifactId>
                              <version>0.0.1-SNAPSHOT</version>
                              <exclusions>
                                      <exclusion>
                                              <groupId>org.hibernate</groupId>
                                              <artifactId>hibernate-entitymanager</artifactId>
                                      </exclusion>
                                      <exclusion>
                                              <artifactId>jboss-seam</artifactId>
                                              <groupId>org.jboss.seam</groupId>
                                      </exclusion>
                              </exclusions>
                      </dependency>
                      <dependency>
                              <groupId>com.ontometrics</groupId>
                              <artifactId>opportunities-sites</artifactId>
                              <version>0.0.1-SNAPSHOT</version>
                              <exclusions>
                                      <exclusion>
                                              <artifactId>log4j</artifactId>
                                              <groupId>log4j</groupId>
                                      </exclusion>
                                      <exclusion>
                                              <artifactId>jboss-seam</artifactId>
                                              <groupId>org.jboss.seam</groupId>
                                      </exclusion>
                                      <exclusion>
                                              <groupId>org.jboss.seam</groupId>
                                              <artifactId>jboss-seam-ui</artifactId>
                                      </exclusion>
                              </exclusions>
                      </dependency>
                      <dependency>
                              <groupId>com.ontometrics.components</groupId>
                              <artifactId>maps</artifactId>
                              <version>0.0.1-SNAPSHOT</version>
                              <exclusions>
                                      <exclusion>
                                              <groupId>org.jboss.seam</groupId>
                                              <artifactId>jboss-seam</artifactId>
                                      </exclusion>
                                      <exclusion>
                                              <groupId>org.jboss.seam</groupId>
                                              <artifactId>jboss-seam-ui</artifactId>
                                      </exclusion>
                              </exclusions>
                      </dependency>
                      <dependency>
                              <groupId>joda-time</groupId>
                              <artifactId>joda-time</artifactId>
                              <version>1.5.2</version>
                      </dependency>
                      <dependency>
                              <groupId>scribe</groupId>
                              <artifactId>scribe</artifactId>
                              <version>0.6.6</version>
                      </dependency>
                      <dependency>
                              <groupId>javax.servlet</groupId>
                              <artifactId>servlet-api</artifactId>
                              <version>2.5</version>
                              <scope>provided</scope>
                      </dependency>
                      <dependency>
                              <groupId>quartz</groupId>
                              <artifactId>quartz</artifactId>
                              <version>1.6.0</version>
                      </dependency>
                      <dependency>
                              <groupId>com.ontometrics</groupId>
                              <artifactId>oauth-core</artifactId>
                              <version>0.0.1-SNAPSHOT</version>
                      </dependency>
                      <dependency>
                              <groupId>commons-io</groupId>
                              <artifactId>commons-io</artifactId>
                              <version>1.4</version>
                      </dependency>
                      <dependency>
                              <groupId>commons-configuration</groupId>
                              <artifactId>commons-configuration</artifactId>
                              <version>1.6</version>
                      </dependency>
                      <dependency>
                              <groupId>org.testng</groupId>
                              <artifactId>testng</artifactId>
                              <version>5.6</version>
                              <scope>test</scope>
                              <classifier>jdk15</classifier>
                              <exclusions>
                                      <exclusion>
                                              <groupId>junit</groupId>
                                              <artifactId>junit</artifactId>
                                      </exclusion>
                              </exclusions>
                      </dependency>
                      <dependency>
                              <groupId>javax.el</groupId>
                              <artifactId>el-api</artifactId>
                              <version>2.2</version>
                              <scope>provided</scope>
                      </dependency>
              </dependencies>


      you help is highly appreciated.


      Thanks,
      Marwa

        • 1. Re: No phase Id bound to current thread when posting a response to a webservice
          meldawy

          Sorry for the bad formatting:
          Here is the function again:


               @POST
               @Consumes("application/json")
               @Path("/login")
               @Produces("text/plain")
               public String loginUser(Credentials creds) {
                    log.info("Trying to login user {} ", creds.getUsername());
                    credentials.setUsername(creds.getUsername());
                    credentials.setPassword(creds.getPassword());
                    if (identity.login() != null) {
                         log.info("get contractor id from current session contractor");
                         IndividualContractor currentIndividualContractor = (IndividualContractor) Component.getInstance("currentIndividualContractor", ScopeType.SESSION);
                         return currentIndividualContractor.getId().toString();
                    } else {
                         log.info("Error logging in");
                         return "fail";
                    }
               }
          



          and the dependencies of the pom.xml


               <dependencies>
                    <dependency>
                         <groupId>org.hsqldb</groupId>
                         <artifactId>hsqldb</artifactId>
                         <version>1.8.0.10</version>
                         <scope>test</scope>
                    </dependency>
                    <dependency>
                         <groupId>org.hamcrest</groupId>
                         <artifactId>hamcrest-all</artifactId>
                         <version>1.1</version>
                         <scope>test</scope>
                    </dependency>
                    <dependency>
                         <groupId>dbunit</groupId>
                         <artifactId>dbunit</artifactId>
                         <version>2.1</version>
                    </dependency>
                    <dependency>
                         <groupId>org.jboss.seam</groupId>
                         <artifactId>jboss-seam</artifactId>
                         <version>2.2.0.GA</version>
                         <exclusions>
                              <exclusion>
                                   <artifactId>el-api</artifactId>
                                   <groupId>javax.el</groupId>
                              </exclusion>
                              <exclusion>
                                   <artifactId>xstream</artifactId>
                                   <groupId>xstream</groupId>
                              </exclusion>
                         </exclusions>
                    </dependency>
                    <dependency>
                         <groupId>org.jboss.seam</groupId>
                         <artifactId>jboss-seam-ui</artifactId>
                         <version>2.2.0.GA</version>
                         <exclusions>
                              <exclusion>
                                   <artifactId>commons-beanutils</artifactId>
                                   <groupId>commons-beanutils</groupId>
                              </exclusion>
                              <exclusion>
                                   <groupId>org.jboss.seam</groupId>
                                   <artifactId>jboss-seam-jul</artifactId>
                              </exclusion>
                              <exclusion>
                                   <artifactId>el-api</artifactId>
                                   <groupId>javax.el</groupId>
                              </exclusion>
                              <exclusion>
                                   <artifactId>jboss-seam</artifactId>
                                   <groupId>org.jboss.seam</groupId>
                              </exclusion>
                         </exclusions>
                    </dependency>
                    <dependency>
                         <groupId>org.jboss.seam</groupId>
                         <artifactId>jboss-seam-mail</artifactId>
                         <version>2.2.0.GA</version>
                         <exclusions>
                              <exclusion>
                                   <artifactId>jboss-seam</artifactId>
                                   <groupId>org.jboss.seam</groupId>
                              </exclusion>
                         </exclusions>
                    </dependency>
                    <dependency>
                         <groupId>org.jboss.seam</groupId>
                         <artifactId>jboss-seam-resteasy</artifactId>
                         <version>2.2.0.GA</version>
                         <exclusions>
                              <exclusion>
                                   <artifactId>jboss-seam</artifactId>
                                   <groupId>org.jboss.seam</groupId>
                              </exclusion>
                         </exclusions>
                    </dependency>
                    <dependency>
                         <groupId>org.jboss.resteasy</groupId>
                         <artifactId>resteasy-jaxrs</artifactId>
                         <version>1.2.GA</version>
                    </dependency>
                    <dependency>
                         <groupId>org.jboss.resteasy</groupId>
                         <artifactId>resteasy-jaxb-provider</artifactId>
                         <version>1.2.GA</version>
                    </dependency>
                    <dependency>
                         <groupId>org.jboss.resteasy</groupId>
                         <artifactId>resteasy-atom-provider</artifactId>
                         <version>1.2.GA</version>
                    </dependency>
          <!--          <dependency>-->
          <!--               <groupId>org.jboss.resteasy</groupId>-->
          <!--               <artifactId>tjws</artifactId>-->
          <!--               <version>1.2.GA</version>-->
          <!--          </dependency>-->
                    <dependency>
                         <groupId>com.thoughtworks.xstream</groupId>
                         <artifactId>xstream</artifactId>
                         <version>1.3.1</version>
                    </dependency>
                    <dependency>
                         <groupId>org.codehaus.jettison</groupId>
                         <artifactId>jettison</artifactId>
                         <version>1.2</version>
                    </dependency>
                    <dependency>
                         <groupId>javax.mail</groupId>
                         <artifactId>mail</artifactId>
                         <version>1.4.2</version>
                    </dependency>
                    <dependency>
                         <groupId>org.hibernate</groupId>
                         <artifactId>hibernate-core</artifactId>
                         <version>3.5.3-Final</version>
                         <exclusions>
                              <exclusion>
                                   <artifactId>xml-apis</artifactId>
                                   <groupId>xml-apis</groupId>
                              </exclusion>
                         </exclusions>
                    </dependency>
                    <dependency>
                         <groupId>org.hibernate</groupId>
                         <artifactId>hibernate-entitymanager</artifactId>
                         <version>3.5.3-Final</version>
                    </dependency>
                    <dependency>
                         <groupId>org.hibernate</groupId>
                         <artifactId>hibernate-annotations</artifactId>
                         <version>3.5.3-Final</version>
                    </dependency>
                    <dependency>
                         <groupId>org.hibernate</groupId>
                         <artifactId>hibernate-validator</artifactId>
                         <version>3.1.0.GA</version>
                         <exclusions>
                              <exclusion>
                                   <groupId>org.hibernate</groupId>
                                   <artifactId>hibernate-core</artifactId>
                              </exclusion>
                              <exclusion>
                                   <groupId>org.hibernate</groupId>
                                   <artifactId>hibernate-commons-annotations</artifactId>
                              </exclusion>
                         </exclusions>
                    </dependency>
                    <dependency>
                         <groupId>org.hibernate</groupId>
                         <artifactId>hibernate-search</artifactId>
                         <version>3.1.0.GA</version>
                         <exclusions>
                              <exclusion>
                                   <groupId>org.hibernate</groupId>
                                   <artifactId>hibernate-core</artifactId>
                              </exclusion>
                              <exclusion>
                                   <groupId>org.hibernate</groupId>
                                   <artifactId>hibernate-commons-annotations</artifactId>
                              </exclusion>
                              <exclusion>
                                   <artifactId>ejb3-persistence</artifactId>
                                   <groupId>org.hibernate</groupId>
                              </exclusion>
                         </exclusions>
                    </dependency>
                    <dependency>
                         <groupId>org.slf4j</groupId>
                         <artifactId>slf4j-api</artifactId>
                         <version>1.5.11</version>
                    </dependency>
                    <dependency>
                         <groupId>ch.qos.logback</groupId>
                         <artifactId>logback-core</artifactId>
                         <version>0.9.20</version>
                    </dependency>
                    <dependency>
                         <groupId>ch.qos.logback</groupId>
                         <artifactId>logback-classic</artifactId>
                         <version>0.9.20</version>
                    </dependency>
                    <dependency>
                         <groupId>net.sf.ehcache</groupId>
                         <artifactId>ehcache</artifactId>
                         <version>1.6.1</version>
                    </dependency>
                    <dependency>
                         <groupId>com.sun.faces</groupId>
                         <artifactId>jsf-api</artifactId>
                         <version>2.0.2</version>
                    </dependency>
                    <dependency>
                         <groupId>com.sun.faces</groupId>
                         <artifactId>jsf-impl</artifactId>
                         <version>2.0.2</version>
                    </dependency>
                    <dependency>
                         <groupId>jstl</groupId>
                         <artifactId>jstl</artifactId>
                         <version>1.1.2</version>
                    </dependency>
                    <dependency>
                         <groupId>org.richfaces.framework</groupId>
                         <artifactId>richfaces-api</artifactId>
                         <version>3.3.3.Final</version>
                    </dependency>
                    <dependency>
                         <groupId>org.richfaces.framework</groupId>
                         <artifactId>richfaces-impl-jsf2</artifactId>
                         <version>3.3.3.Final</version>
                    </dependency>
                    <dependency>
                         <groupId>org.richfaces.ui</groupId>
                         <artifactId>richfaces-ui</artifactId>
                         <version>3.3.3.Final</version>
                    </dependency>
                    <dependency>
                         <groupId>com.sun.facelets</groupId>
                         <artifactId>jsf-facelets</artifactId>
                         <version>1.1.15</version>
                    </dependency>
                    <dependency>
                         <groupId>javassist</groupId>
                         <artifactId>javassist</artifactId>
                         <version>3.8.0.GA</version>
                    </dependency>
                    <dependency>
                         <groupId>com.ontometrics.components</groupId>
                         <artifactId>charting</artifactId>
                         <version>0.0.1-SNAPSHOT</version>
                         <exclusions>
                              <exclusion>
                                   <artifactId>jsf-api</artifactId>
                                   <groupId>com.sun.faces</groupId>
                              </exclusion>
                         </exclusions>
                    </dependency>
                    <dependency>
                         <groupId>com.ontometrics</groupId>
                         <artifactId>wizard</artifactId>
                         <version>0.0.1-SNAPSHOT</version>
                         <exclusions>
                              <exclusion>
                                   <artifactId>jboss-seam</artifactId>
                                   <groupId>org.jboss.seam</groupId>
                              </exclusion>
                              <exclusion>
                                   <artifactId>ejb</artifactId>
                                   <groupId>javax.persistence</groupId>
                              </exclusion>
                              <exclusion>
                                   <groupId>org.hsqldb</groupId>
                                   <artifactId>hsqldb</artifactId>
                              </exclusion>
                              <exclusion>
                                   <groupId>org.hibernate</groupId>
                                   <artifactId>hibernate-core</artifactId>
                              </exclusion>
                              <exclusion>
                                   <groupId>org.hibernate</groupId>
                                   <artifactId>hibernate-entitymanager</artifactId>
                              </exclusion>
                         </exclusions>
                    </dependency>
                    <dependency>
                         <groupId>com.ontometrics</groupId>
                         <artifactId>forms</artifactId>
                         <version>0.0.1-SNAPSHOT</version>
                         <exclusions>
                              <exclusion>
                                   <groupId>org.hibernate</groupId>
                                   <artifactId>hibernate-core</artifactId>
                              </exclusion>
                              <exclusion>
                                   <groupId>org.hibernate</groupId>
                                   <artifactId>hibernate-annotations</artifactId>
                              </exclusion>
                              <exclusion>
                                   <groupId>org.hibernate</groupId>
                                   <artifactId>hibernate-entitymanager</artifactId>
                              </exclusion>
                              <exclusion>
                                   <groupId>org.hibernate</groupId>
                                   <artifactId>hibernate-validator</artifactId>
                              </exclusion>
                              <exclusion>
                                   <artifactId>jboss-seam</artifactId>
                                   <groupId>org.jboss.seam</groupId>
                              </exclusion>
                              <exclusion>
                                   <groupId>net.sf.ehcache</groupId>
                                   <artifactId>ehcache</artifactId>
                              </exclusion>
                         </exclusions>
                    </dependency>
                    <dependency>
                         <groupId>com.ontometrics</groupId>
                         <artifactId>location-services</artifactId>
                         <version>0.1-SNAPSHOT</version>
                         <exclusions>
                              <exclusion>
                                   <groupId>org.jboss.seam</groupId>
                                   <artifactId>jboss-seam</artifactId>
                              </exclusion>
                         </exclusions>
                    </dependency>
                    <dependency>
                         <groupId>com.ontometrics</groupId>
                         <artifactId>domain-commons</artifactId>
                         <version>1.0-SNAPSHOT</version>
                    </dependency>
                    <dependency>
                         <groupId>com.ontometrics</groupId>
                         <artifactId>opportunities</artifactId>
                         <version>0.0.1-SNAPSHOT</version>
                         <exclusions>
                              <exclusion>
                                   <groupId>org.hibernate</groupId>
                                   <artifactId>hibernate-entitymanager</artifactId>
                              </exclusion>
                              <exclusion>
                                   <artifactId>jboss-seam</artifactId>
                                   <groupId>org.jboss.seam</groupId>
                              </exclusion>
                         </exclusions>
                    </dependency>
                    <dependency>
                         <groupId>com.ontometrics</groupId>
                         <artifactId>opportunities-sites</artifactId>
                         <version>0.0.1-SNAPSHOT</version>
                         <exclusions>
                              <exclusion>
                                   <artifactId>log4j</artifactId>
                                   <groupId>log4j</groupId>
                              </exclusion>
                              <exclusion>
                                   <artifactId>jboss-seam</artifactId>
                                   <groupId>org.jboss.seam</groupId>
                              </exclusion>
                              <exclusion>
                                   <groupId>org.jboss.seam</groupId>
                                   <artifactId>jboss-seam-ui</artifactId>
                              </exclusion>
                         </exclusions>
                    </dependency>
                    <dependency>
                         <groupId>com.ontometrics.components</groupId>
                         <artifactId>maps</artifactId>
                         <version>0.0.1-SNAPSHOT</version>
                         <exclusions>
                              <exclusion>
                                   <groupId>org.jboss.seam</groupId>
                                   <artifactId>jboss-seam</artifactId>
                              </exclusion>
                              <exclusion>
                                   <groupId>org.jboss.seam</groupId>
                                   <artifactId>jboss-seam-ui</artifactId>
                              </exclusion>
                         </exclusions>
                    </dependency>
                    <dependency>
                         <groupId>joda-time</groupId>
                         <artifactId>joda-time</artifactId>
                         <version>1.5.2</version>
                    </dependency>
                    <dependency>
                         <groupId>scribe</groupId>
                         <artifactId>scribe</artifactId>
                         <version>0.6.6</version>
                    </dependency>
                    <dependency>
                         <groupId>javax.servlet</groupId>
                         <artifactId>servlet-api</artifactId>
                         <version>2.5</version>
                         <scope>provided</scope>
                    </dependency>
                    <dependency>
                         <groupId>quartz</groupId>
                         <artifactId>quartz</artifactId>
                         <version>1.6.0</version>
                    </dependency>
                    <dependency>
                         <groupId>com.ontometrics</groupId>
                         <artifactId>oauth-core</artifactId>
                         <version>0.0.1-SNAPSHOT</version>
                    </dependency>
                    <dependency>
                         <groupId>commons-io</groupId>
                         <artifactId>commons-io</artifactId>
                         <version>1.4</version>
                    </dependency>
                    <dependency>
                         <groupId>commons-configuration</groupId>
                         <artifactId>commons-configuration</artifactId>
                         <version>1.6</version>
                    </dependency>
                    <dependency>
                         <groupId>org.testng</groupId>
                         <artifactId>testng</artifactId>
                         <version>5.6</version>
                         <scope>test</scope>
                         <classifier>jdk15</classifier>
                         <exclusions>
                              <exclusion>
                                   <groupId>junit</groupId>
                                   <artifactId>junit</artifactId>
                              </exclusion>
                         </exclusions>
                    </dependency>
                    <dependency>
                         <groupId>javax.el</groupId>
                         <artifactId>el-api</artifactId>
                         <version>2.2</version>
                         <scope>provided</scope>
                    </dependency>
               </dependencies>
          

          • 2. Re: No phase Id bound to current thread when posting a response to a webservice
            meldawy

            Why there is no reply on this? Is there anything unclear ?

            • 3. Re: No phase Id bound to current thread when posting a response to a webservice
              kragoth

              There is a BUNCH of stuff out there on this exception. Go google 'No phase id bound to current thread (make sure you do not have two SeamPhaseListener instances installed)' If none of them relate to you then post back here and be sure to put your web.xml source here too.