I'm trying out the codebehind stuff in a portlet with the portlet created by the maven struts2 portlet archetype. It used to work until I did some changes with initialization of the ServletContext in the portlet, and now all I get is:
SEVERE: Could not execute actionjava.lang.RuntimeException: java.lang.RuntimeException: java.lang.RuntimeException: com.opensymphony.xwork2.inject.DependencyException: com.opensymphony.xwork2.inject.ContainerImpl$MissingDependencyException: No mapping found for dependency [type=javax.servlet.ServletContext, name='default'] in public void org.apache.struts2.codebehind.CodebehindUnknownHandler.setServletContext(javax.servlet.Servl etContext). at com.opensymphony.xwork2.inject.ContainerImpl$MethodInjector.inject(ContainerImpl.java:290) at com.opensymphony.xwork2.inject.ContainerImpl.inject(ContainerImpl.java:454) at com.opensymphony.xwork2.inject.ContainerImpl$6.call(ContainerImpl.java:492) at com.opensymphony.xwork2.inject.ContainerImpl$6.call(ContainerImpl.java:491) at com.opensymphony.xwork2.inject.ContainerImpl.callInContext(ContainerImpl.java:542) at com.opensymphony.xwork2.inject.ContainerImpl.inject(ContainerImpl.java:490) at org.apache.struts2.impl.StrutsActionProxyFactory.createActionProxy(StrutsActionProxyFactory.java:40) at org.apache.struts2.impl.StrutsActionProxyFactory.createActionProxy(StrutsActionProxyFactory.java:34) at org.apache.struts2.portlet.dispatcher.Jsr168Dispatcher.serviceAction(Jsr168Dispatcher.java:409) Any idea what's missing? I thought all the @Inject stuff was looked up in the struts xml files, but I can't find any entry for the type javax.servlet.ServletContext? Is this supposed to be looked up and injected from somewhere else? Nils-H --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]