Hello, at the moment I try to migrate my wicket ant projects to maven, and have a final problem with CDI. I am using netbeans 7.2.1 and Glassfish 3.1.2, when I click run the the war is deployed to glassfish in the pom with mvn.bat -Dnetbeans.deploy=true package and the property <netbeans.hint.deploy.server>gfv3ee6</netbeans.hint.deploy.server> defined in the pom. Don't know how exactly.
When I try to use CDI, I get the error: > WARNING: StandardWrapperValve[default]: PWC1406: Servlet.service() for > servlet default threw exception > javax.enterprise.context.ContextNotActiveException: Conversation Context not > active when method called on conversation Transient conversation > at > org.jboss.weld.context.conversation.ConversationImpl.verifyConversationContextActive(ConversationImpl.java:197) > at > org.jboss.weld.context.conversation.ConversationImpl.touch(ConversationImpl.java:159) > at > org.jboss.weld.context.conversation.ConversationImpl.<init>(ConversationImpl.java:72) > at > org.jboss.weld.bean.builtin.ConversationBean.create(ConversationBean.java:48) > at > org.jboss.weld.bean.builtin.ConversationBean.create(ConversationBean.java:17) > at org.jboss.weld.context.AbstractContext.get(AbstractContext.java:107) > at > org.jboss.weld.bean.proxy.ContextBeanInstance.getInstance(ContextBeanInstance.java:90) > at > org.jboss.weld.bean.proxy.ProxyMethodHandler.invoke(ProxyMethodHandler.java:104) > at > org.jboss.weld.proxies.Conversation$-493077674$Proxy$_$$_WeldClientProxy.isTransient(Conversation$-493077674$Proxy$_$$_WeldClientProxy.java) > at > org.apache.wicket.cdi.ConversationPropagator.onRequestHandlerExecuted(ConversationPropagator.java:177) I built a small Quickstart and added the injection of a tiny HelloBean in the simplest way, but same problem. Dependency to wicket-cdi 6.4.0 has transient dependency to seam-conversation-spi, which is included in war/WEB-INF/libs. With ant based project, no error. Any idea? Thank You Dieter Tremel --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
