You are not logged in.
Pages: 1
Hello.
I'm trying to run a Maven application, using Weld, but I get this error message:
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at org.codehaus.mojo.exec.ExecJavaMojo$1.run(ExecJavaMojo.java:297)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.IllegalStateException: WELD-SE-000016: Missing beans.xml file in META-INF
at org.jboss.weld.environment.se.Weld.initialize(Weld.java:115)
at org.agoncal.book.javaee7.chapter02.Main.main(Main.java:10)
... 6 more
I have placed the beans.xml file in the src/main/resources/META-INF directory.
Offline
Pages: 1