Questions tagged [openwebbeans]
40 questions
1
vote
1 answer
javax.enterprise.inject.Vetoed Open web beans, which jar?
I'm wanting to try out Open Web Beans 1.6.2, but the jars it lists on it's website for adding CDI support to a Java SE…

PDStat
- 5,513
- 10
- 51
- 86
1
vote
1 answer
Maven: javax.enterprise.context.ContextNotActiveException while running tests with openejb
I've created some unit- and integration tests for mine Java-ee project with the help of OpenEjb and Junit with an embedded container. The tests are running fine in Eclipse, beans(CDI/EJB) are injected and working fine. But when I start the tests…

Huls
- 11
- 1
1
vote
1 answer
omnifaces starting before openwebbeans 1.5.0?
I am using Java 8 / Tomcat 8 / OpenWebBeans 1.5.0 / MyFaces 2.2.8 / DeltaSpike 1.3.0.
As I want to use the openwebbeans-tomcat7 module, I placed the following jars in tomcat/lib…

Ludovic Pénet
- 1,136
- 1
- 16
- 32
1
vote
2 answers
WebBeans context with scope type annotation @RequestScoped does not exist within current thread
I'm using OpenJPA at TomEE server.
I build my .war, deploy it on server but i get this execption when i open page with my application:
javax.servlet.ServletException: WebBeans context with scope type annotation @RequestScoped does not exist within…

kuba44
- 1,838
- 9
- 34
- 62
1
vote
0 answers
How to inject an event in a Singleton Bean on Start up
Good day,
Can anyone give me an advise on how to inject an event in a Singleton bean on Start up.
Here is my code. (working OK on Weld (Glassfish 3.1.2))
@Singleton
@Startup
public class SingletonBean {
@Inject @Type private Event Event;…

ton
- 355
- 3
- 13
1
vote
1 answer
IllegalLoopbackException: Cannot call a method on a singleton session bean while constructing the bean instance
I'm getting the following exception:
Exception data: javax.ejb.IllegalLoopbackException: Cannot call a method on a singleton session bean while constructing the bean instance : MyWar.war#BarProducer
My code is as follows.
I have a Stateless Session…

DarVar
- 16,882
- 29
- 97
- 146
0
votes
1 answer
ClassnotFoundException jakarta.Name:NamingException when running test CDITestRunner of deltaspike 1.9.6 with Jakarta
I am trying to use CDITestRunner in our tests using deltaspike with jakarta 1.9.6 versionand with apache open web beans.
which is not running the tests with CDITestRunner and throwing ClassnotFoundException…

Gaurav
- 33
- 8
0
votes
1 answer
OWB 2.0.27, TomEE 8.0.14, JSF (myfaces) 2.3.10 startup errors
We are upgrading our webapp to JSF 2.3.10, OWB 2.0.22, and TomEE 8.0.14. I realize we should move to Jakarta EE, but, for now, this is our tech stack.
I'm seeing stacktraces in the catalina logs concerning Default qualifiers. A snippet of…

RandyB
- 1
- 2
0
votes
1 answer
NullPointerException during initFaces of a MyFaces 2.0 application while migrating from WLS to Tomcat
I'm new to JSF and have been entrusted with the task of migrating what appears to me as an old MyFaces 2.0 webapp from WebLogic Server 12.1.3 to Tomcat (I chose Tomcat 9 and OpenWebBeans 2.0.20).
I followed the instructions at BalusC's page to…

UserB
- 25
- 5
0
votes
1 answer
JSF initialization fails with @ViewScoped
I am building a JSF 2.3 application with Primefaces 8.0 on MyFaces 2.3.6, running on Tomcat 9. Also using OpenWebBeans 2.0.18.
One of my beans (controller) gives me an error when I change the scope from @RequestScoped to @ViewScoped:
28-Sep-2020…

mvreijn
- 2,807
- 28
- 40
0
votes
0 answers
NPE during navigation with viewscoped bean using Mojarra 2.2.x with openwebbeans 1.0 (CDI 1.0)
I am now running into a ViewScope issue on h:commandButton with navigation.
I am not sure if JSF 2.2 is supported with CDI 1.0
Error
May 28, 2020 5:57:07 PM com.sun.faces.context.ExceptionHandlerImpl throwIt
INFO: Exception when handling error…

Ravi
- 391
- 2
- 18
0
votes
0 answers
Invalidating old httpsession drops current httpsession's context
My app handles logins with a @ViewScoped LoginBean, which is injected with a @SessionScoped SessionBean that stores user information and the current HttpSession. This app allows a user N separate sessions. After reaching that limit the user can…

Didjit
- 785
- 2
- 8
- 26
0
votes
1 answer
EclipseLink: How to enable Bean Validation without JEE/CDI? (aka enabling in SE)
We have a test extension that creates an EntityManager for our tests:
Map properties = new HashMap();
properties.put(PersistenceUnitProperties.JDBC_DRIVER,…

Jonathan S. Fisher
- 8,189
- 6
- 46
- 84
0
votes
0 answers
ContainerRequestFilter is called twice
I have simple Apache Meecrowave 1.2.1 (OWB+CXF) application with ContainerRequestFilter:
@Singleton
@Provider
public class AppInstanceAndSecurityFilter implements ContainerRequestFilter {
...
@Inject
private AppInstanceService…

Pavel Arnošt
- 97
- 2
- 8
0
votes
2 answers
OmniFaces CDI @ViewScoped bean deployed on WebSphere 7 (Java EE 5) nulls all EJBs injected with @EJB: NPE/NullPointerException
I have a simple OmniFaces 1.8.3 view-scoped bean successfully deployed on WebSphere 7 (7.0.50) along with OpenWebBeans 1.2.8 (and Mojarra 2.1.27 BTW):
import java.io.Serializable;
import java.util.List;
import javax.annotation.PostConstruct;
import…

Kawu
- 13,647
- 34
- 123
- 195