Skip to main content



      Home
Home » Language IDEs » Eclipse Web Tools Platform Project (WTP) » Issue with jakarta faces
Issue with jakarta faces [message #1873361] Thu, 12 December 2024 12:40 Go to next message
Eclipse UserFriend
Hello!

I'm not sure if this is the correct place for my question. If this isn't, can you please let me know where I should direct my question to?

I'm looking for support with a jakarta faces issue I'm running into. I found this forum after looking for support on this page: https://jakarta.ee/resources/

Here is the issue I need help with:

I am upgrading java to v17 and some servers to the latest versions of jakarta faces. When I start my server, I'm getting an error that I could use some help with...

SEVERE: Exception sending context initialized event to listener instance of class [com.sun.faces.config.ConfigureListener]
java.lang.IllegalStateException: CDI is not available
at com.sun.faces.util.Util.getCdiBeanManager(Util.java:1534)
at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:126)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3976)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:4403)

I can't find a good answer about why I'm getting this error and have been struggling with it for several days now. Would anyone know how to resolve this?

Here are some details:
java v17
tomcat v11

This is some of my classpath:
jakarta.faces-4.1.2.jar
jakarta.enterprise.cdi-api-4.1.0.jar
jakarta.enterprise.cdi-el-api-4.1.0.jar

Is there any other information that would be relevant to share?
Re: Issue with jakarta faces [message #1873364 is a reply to message #1873361] Thu, 12 December 2024 13:01 Go to previous messageGo to next message
Eclipse UserFriend
You're better off asking at StackOverflow or some other programming site. This is the forum for the Eclipse WTP project which provides tooling for the Eclipse IDE to support Jakarta EE specifications.

That said, I'll try answering your question. The error messages says that CDI is not available. In contrast to JSF, Jakarta Faces actually requires CDI. This means that your runtime environment (i.e. Tomcat) needs to provide an implementation of CDI. Tomcat does not do so because it's a servlet container. You need a Jakarta EE application server for Faces. If you want to stay close to your previous runtime environment, consider using Apache TomEE (see https://tomee.apache.org/comparison.html ). If TomEE is not the right server for your needs, consider using Wildfly, Payara or Open Liberty. There are more compatible implementations out there but some of the others are commercial.
Re: Issue with jakarta faces [message #1873370 is a reply to message #1873364] Thu, 12 December 2024 13:53 Go to previous messageGo to next message
Eclipse UserFriend
Thank you so much for the tip! It has been hard finding documentation on this. I have posted on stack overflow, perhaps I'll get more help there too.

I will try tomee as you suggested. I found some instructions for updating a tomcat installation to tomee here:
https://tomee.apache.org/tomcat-detailed-instructions.html
Re: Issue with jakarta faces [message #1873373 is a reply to message #1873370] Thu, 12 December 2024 14:14 Go to previous messageGo to next message
Eclipse UserFriend
It appears that tomee v10 is not compatible as my project is expecting tomcat v11.

I can't find a tomee v11 anywhere. Are you aware of one?
Re: Issue with jakarta faces [message #1873376 is a reply to message #1873373] Thu, 12 December 2024 14:28 Go to previous messageGo to next message
Eclipse UserFriend
No, I'm not aware of a TomEE 11. Sorry.
Re: Issue with jakarta faces [message #1873379 is a reply to message #1873376] Thu, 12 December 2024 16:15 Go to previous message
Eclipse UserFriend
No worries, thanks for your response. Glassfish looks like it may work as well.

I'm almost to the point where I'd be willing to pay for some support to get through this part of setting things up. If you have any recommendations on where I could look for paid support, I'd appreciate it!
Previous Topic:Control+Click on EL expression in Facelets not working in Eclipse after migration to Jakarta EE
Goto Forum:
  


Current Time: Wed Aug 27 10:50:00 EDT 2025

Powered by FUDForum. Page generated in 0.05681 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top