You are not logged in.

#1 2014-06-04 20:15:17

Aegidius
Member
From: Italy
Registered: 2011-06-29
Posts: 288
Website

Problem with Maven

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

Board footer

Powered by FluxBB