title: how to resolve the java.lang.reflect.InvocationTargetException in maven
body: <p>the my web-app working fine in eclipse and the Netbeas but when i try to execute in maven after include the dependency its throwing exception.The dependency is.</p>
  
  <pre><code>     &lt;dependency&gt;
        &lt;groupId&gt;org.apache.cxf&lt;/groupId&gt;
        &lt;artifactId&gt;cxf-bundle-jaxrs&lt;/artifactId&gt;
         &lt;version&gt;2.1.2&lt;/version&gt;
       &lt;/dependency&gt;
  </code></pre>
  
  <p>This dependency i include because i am using the
  ResponseBuilderImpl builder = new ResponseBuilderImpl()<br>
  if i remove the builder and dependency  then its work in maven but when i included then its giving exception.this is my rest sample rest code.</p>
  
  <pre><code>       @Path("/{userId}/logout")
     @PUT
     public Response logout(@PathParam ("userId") String userId,@Context HttpServletRequest request,@Context HttpServletResponse response)throws ServletException, IOException 
     {
      ResponseBuilderImpl builder = new ResponseBuilderImpl();
      log.debug("request user id for logout::"+userId);
      MapUserLogin mapUserLogin=new MapUserLogin();
      mapUserLogin.removeMap(userId);
      log.debug("after remove userinformation from hashmap");
  
      System.out.print("LOGOUT SUCCESSFULLUY");
      builder.status(200).entity("SUCCESS");
      return builder.build();
  
     }
  </code></pre>
  
  <p>so for the ResponseBuilderImpl i imported the import org.apache.cxf.jaxrs.impl.ResponseBuilderImpl
  if i remove and just return string types then its work but when i am using this above code then only maven is throwing exception The exception is.</p>
  
  <pre><code>INFO: Deployed Application(path=C:\App\apache-tomee-jaxrs-1.5.2\webapps\Snefocaremaven)
  Oct 01, 2013 10:51:10 AM org.apache.openejb.observer.ObserverManager fireEvent
  SEVERE: error invoking org.apache.openejb.observer.ObserverManager$Observer@21d4f61d
  java.lang.reflect.InvocationTargetException
  </code></pre>