我想从this tutorial运行一个简单的CDI测试。以下是我的JUNIT和POM。不知道错误是什么。感谢任何帮助。 ERROR java.lang.NullPointerException
at com.aravind.jee6.cdi.basic.GreeterTest.greet(GreeterTest.java:32)
at sun.reflect.NativeMe
的不同版本我有一个产生SimpleDateFromat对象JEE6简单制作类: public class myProducer {
@Produces public SimpleDateFormat produceASimpleDateFormat(final InjectionPoint injectionPoint)
{
return new SimpleDa
我正在使用tomcat在Weld CDI上设置一个应用程序,并尝试在应用程序启动时运行类以启动实体管理器。 我收到以下异常绞车,表明我的班级有多个范围。 WELD-000046 At most one scope may be specified on [email protected] @Singleton class se.raindance.squid.core.init.InitSquid