2 Replies Latest reply on Jan 3, 2014 11:39 AM by Sachin Dole

    java.lang.InternalError starting my tomcat server with weld.

    Sachin Dole Newbie

      This is perplexing to me! . What direction should I troubleshoot? thank you!   

       

      02-Jan-2014 15:38:06.008 SEVERE [RMI TCP Connection(3)-127.0.0.1] org.apache.catalina.core.StandardContext.listenerStart Exception sending context initialized event to listener instance of class org.jboss.weld.environment.servlet.Listener

      org.jboss.weld.exceptions.DeploymentException: Enclosing method not found

        at org.jboss.weld.executor.AbstractExecutorServices.checkForExceptions(AbstractExecutorServices.java:66)

        at org.jboss.weld.executor.AbstractExecutorServices.invokeAllAndCheckForExceptions(AbstractExecutorServices.java:43)

        at org.jboss.weld.executor.AbstractExecutorServices.invokeAllAndCheckForExceptions(AbstractExecutorServices.java:51)

        at org.jboss.weld.bootstrap.ConcurrentBeanDeployer.createClassBeans(ConcurrentBeanDeployer.java:72)

        at org.jboss.weld.bootstrap.BeanDeployment.createBeans(BeanDeployment.java:260)

        at org.jboss.weld.bootstrap.WeldStartup.deployBeans(WeldStartup.java:384)

        at org.jboss.weld.bootstrap.WeldBootstrap.deployBeans(WeldBootstrap.java:76)

        at org.jboss.weld.environment.servlet.Listener.contextInitialized(Listener.java:170)

        at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4830)

      .... TRUNCATED ....

      Caused by: java.lang.InternalError: Enclosing method not found

        at java.lang.Class.getEnclosingMethod(Class.java:952)

        at org.jboss.weld.util.reflection.Reflections.isNonStaticInnerClass(Reflections.java:380)

        at org.jboss.weld.util.Beans.isTypeManagedBeanOrDecoratorOrInterceptor(Beans.java:486)

        at org.jboss.weld.bootstrap.BeanDeployer.createClassBean(BeanDeployer.java:233)

        at org.jboss.weld.bootstrap.ConcurrentBeanDeployer$2.doWork(ConcurrentBeanDeployer.java:74)

        at org.jboss.weld.bootstrap.ConcurrentBeanDeployer$2.doWork(ConcurrentBeanDeployer.java:72)

        at org.jboss.weld.executor.IterativeWorkerTaskFactory$1.call(IterativeWorkerTaskFactory.java:60)

        at org.jboss.weld.executor.IterativeWorkerTaskFactory$1.call(IterativeWorkerTaskFactory.java:53)

        at java.util.concurrent.FutureTask.run(FutureTask.java:262)

        ... 3 more

       

       

      My pom.xml is like so:

                  <dependency>

                      <groupId>org.jboss.weld.servlet</groupId>

                      <artifactId>weld-servlet</artifactId>

                      <version>2.1.0.Final</version>

                      <exclusions>

                          <exclusion>

                              <groupId>org.slf4j</groupId>

                              <artifactId>slf4j-api</artifactId>

                          </exclusion>

                      </exclusions>

                  </dependency>