Matthias Wronka created DELTASPIKE-1228:
-------------------------------------------
Summary: ContextControl does not work in Websphere AS
Key: DELTASPIKE-1228
URL: https://issues.apache.org/jira/browse/DELTASPIKE-1228
Project: DeltaSpike
Issue Type: Bug
Affects Versions: 1.7.1
Environment: Websphere 8.5.5.9
Reporter: Matthias Wronka
I´m getting an Exception in Websphere Application Server 8.5.5.9 when I try to
start the SessionScope like this using ContextControl:
{code:java}
@Inject
private ContextControl contextControl
private void doSth() {
contextControl.startContext(SessionScoped.class);
}
{code}
The exception is:
{code}
java.lang.NoClassDefFoundError: org/apache/webbeans/config/WebBeansContext at
org.apache.deltaspike.cdise.owb.OpenWebBeansContextControl.getContextsService(OpenWebBeansContextControl.java:242)
at
org.apache.deltaspike.cdise.owb.OpenWebBeansContextControl.startSessionScope(OpenWebBeansContextControl.java:154)
at
org.apache.deltaspike.cdise.owb.OpenWebBeansContextControl.startContext(OpenWebBeansContextControl.java:80)
{code}
I think this is because of a rather old owb-implementations, that Websphere
uses. I found the missing class in another package:
org/apache/webbeans/*context*/WebBeansContext.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)