-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
LinkageError in Weld/CDI in combination with jakarta.servlet.jsp.JspApplicationContext #6123
Comments
I was able to reproduce both in The base I have ...
I had to make 2 changes to make it work (in standalone Jetty)
<listener>
<listener-class>org.jboss.weld.environment.servlet.Listener</listener-class>
</listener> You can see this from the error messages it produces ...
Let weld use it's
@janbartel @gregw should we add https://github.com/eclipse/jetty.project/blob/jetty-11.0.x/jetty-webapp/src/main/java/org/eclipse/jetty/webapp/WebAppContext.java#L166-L171 |
@christophs78 can you confirm that primefaces has been configured for the container's classpath and not on the webapp's classpath? As per instructions in the jetty doco here in section "Using JSF Taglibs": https://www.eclipse.org/jetty/documentation/jetty-9/index.html#jsp-support |
Propably stupid question: How can i do |
I tried this today, but it does not seem to make a difference. (And this may create new challenges to stay compatible with Tomcat.) |
@joakime IMO "jakarta. " should definitely be in the default SystemClasses. |
@christophs78 you don't need to set the system classes. The problem is that weld in transitively pulling in the jakarta.el-api jar, which is duplicating the one that is on the container classpath. You can simply put in:
Weld should probably have made their dependency |
@joakime Got it work on an external Jetty server, https://github.com/hantsy/jakartaee9-servlet-starter-boilerplate/. Is there a simple way to run all of these(CDI, JSF) in an embbeded jetty(via |
Closing as the issue is resolved. |
Jetty version
11.0.2
Java version
11.0.10
OS type/version
Windows 10
Description
Running
mvn clean jetty:run
on primefaces/primefaces-test#76 results in:The text was updated successfully, but these errors were encountered: