Skip to content
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

Start up error (joinfaces 5/springboot 3/primefaces 12) #1617

Open
pbk97030 opened this issue Dec 4, 2022 · 5 comments
Open

Start up error (joinfaces 5/springboot 3/primefaces 12) #1617

pbk97030 opened this issue Dec 4, 2022 · 5 comments

Comments

@pbk97030
Copy link

pbk97030 commented Dec 4, 2022

JDK 17
Joinfaces 5
Primefaces 12
Springboot 3
Tomcat 10

I am getting error in start up. Please see attached files and you can see full error details.
One file is error messages and the other file is part of pom.xml.

2022-12-04_16:41:10.816 INFO j.e.r.webcontainer.jsf.application - JSF1048: PostConstruct/PreDestroy annotations present. ManagedBeans methods marked with these annotations will have said annotations processed.
jakarta.faces.FacesException: javax.faces.event.PreRenderComponentEvent

==> why jakarta faces is referring to javax faces (old one) here???

start up error.txt
pom.txt

@larsgrefer
Copy link
Member

Im not sure whats causing this error.

Your pom seems to have a mix of JoinFaces 5.0.0 and 5.0.0-m3 and also a mix of undertow and tomcat?

@pbk97030
Copy link
Author

pbk97030 commented Dec 7, 2022

Thanks for the reply.

I need to run springboot3/joinfaces 5/primefaces 12/embedded tomcat 10.

Any suggestion?

@larsgrefer
Copy link
Member

Can you provide a complete project which I can run, which reproduces your problem?

@dokoeur
Copy link

dokoeur commented Jan 6, 2023

HI,

i have the same issue with this configuration. Check if you have a primefaces 12 dependency without jakarta classifier.

@cachescrubber
Copy link

cachescrubber commented Jun 5, 2023

Thanks @dokoeur!

I had the same Issue. Slightly other class mismatch, but the same root cause.

2023-06-05T17:23:47.850+02:00  INFO 12373 --- [  restartedMain] org.joinfaces.ClasspathScanUtil          : Loading prepared scan result took 0.342917ms
jakarta.faces.FacesException: javax.faces.event.PostConstructApplicationEvent

@larsgrefer I think the dependency management in joinfaces-dependencies-5.1.0.pom needs to be updated. It is missing the jakarta classifier.

    <dependency>
      <groupId>org.primefaces.extensions</groupId>
      <artifactId>primefaces-extensions</artifactId>
      <classifier>jakarta</classifier>
      <version>12.0.7</version>
    </dependency>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants