DefaultWebEnvironment l_oEnvironment = new DefaultWebEnvironment();
InjectorHolder.getInjector().inject(l_oContainer, SecurityManagerContainer.class);
l_oEnvironment.setSecurityManager (l_oContainer.getSecurityManager());
getServletContext().setAttribute(EnvironmentLoader.ENVIRONMENT_ATTRIBUTE_KEY, l_oEnvironment);
java.lang.IllegalStateException: INJECTION_SOURCE_SCAN cannot be used with neither blueprint nor spring context
at org.ops4j.pax.wicket.internal.injection.BundleAnalysingComponentInstantiationListener.createProxyTargetLocator(BundleAnalysingComponentInstantiationListener.java:156)[3471:org.ops4j.pax.wicket.service:2.1.1]
at org.ops4j.pax.wicket.internal.injection.BundleAnalysingComponentInstantiationListener.createProxy(BundleAnalysingComponentInstantiationListener.java:122)[3471:org.ops4j.pax.wicket.service:2.1.1]
at org.ops4j.pax.wicket.internal.injection.BundleAnalysingComponentInstantiationListener.inject(BundleAnalysingComponentInstantiationListener.java:112)[3471:org.ops4j.pax.wicket.service:2.1.1]
at org.ops4j.pax.wicket.internal.injection.BundleDelegatingComponentInstanciationListener.inject(BundleDelegatingComponentInstanciationListener.java:91)[3471:org.ops4j.pax.wicket.service:2.1.1]
at org.ops4j.pax.wicket.internal.injection.DelegatingComponentInstanciationListener.inject(DelegatingComponentInstanciationListener.java:100)[3471:org.ops4j.pax.wicket.service:2.1.1]
public class SecurityManagerContainer
{
@PaxWicketBean(name = "shiroSecurityManager")
private WebSecurityManager m_oSecurityManager = null;
public WebSecurityManager getSecurityManager()
{
return m_oSecurityManager;
}
public void setSecurityManager
(
WebSecurityManager p_oSecurityManager
)
{
m_oSecurityManager = p_oSecurityManager;
}
}
--
--
------------------
OPS4J - http://www.ops4j.org - op...@googlegroups.com
---
You received this message because you are subscribed to the Google Groups "OPS4J" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ops4j+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.