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

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

    sachindole

      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>

        • 1. Re: java.lang.InternalError starting my tomcat server with weld.
          jharting

          Weld does not seem to be the root case here. It looks like Weld triggers a problem in the JVM because it scans the entire deployment and a class in your deployment causes the JVM error. Would you be able to isolate the class and give us a reproducer? What we could do in Weld is to ignore a class in a situation like that and not to fail entirely.

          • 2. Re: java.lang.InternalError starting my tomcat server with weld.
            sachindole

            Hi Jozef,

             

            Thank you for your quick attention!!! It turned out to be some problem with my environment. It might either be IntelliJ that failed to copy files over correctly or it might be windows 8 - both these are very new. Things started working right this morning after I tried to isolate the issue as you suggested in a different project.

             

            If this becomes a problem again, I will upload or send link to isolated classes/problems.