You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by GitBox <gi...@apache.org> on 2021/03/27 11:47:08 UTC
[GitHub] [myfaces] cristiand85 opened a new pull request #189: quarkus extension in native mode does not work
cristiand85 opened a new pull request #189:
URL: https://github.com/apache/myfaces/pull/189
### error from console
javax.faces.FacesException: Bean Validation is not present
at javax.faces.validator.BeanValidator.createValidatorFactory(BeanValidator.java:329)
at javax.faces.validator.BeanValidator.validate(BeanValidator.java:186)
at org.apache.myfaces.core.api.shared.ComponentUtils.callValidators(ComponentUtils.java:245)
at javax.faces.component.UIInput.validateValue(UIInput.java:472)
at javax.faces.component.UIInput.validate(UIInput.java:729)
at javax.faces.component.UIInput.processValidators(UIInput.java:302)
at javax.faces.component.UIForm.processValidators(UIForm.java:204)
at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1410)
at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1410)
at javax.faces.component.UIViewRoot._processValidatorsDefault(UIViewRoot.java:1759)
at javax.faces.component.UIViewRoot.access$500(UIViewRoot.java:83)
at javax.faces.component.UIViewRoot$ProcessValidatorPhaseProcessor.process(UIViewRoot.java:1867)
at javax.faces.component.UIViewRoot._process(UIViewRoot.java:1715)
at javax.faces.component.UIViewRoot.processValidators(UIViewRoot.java:965)
at org.apache.myfaces.lifecycle.ProcessValidationsExecutor.execute(ProcessValidationsExecutor.java:39)
at org.apache.myfaces.lifecycle.LifecycleImpl.executePhase(LifecycleImpl.java:172)
at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:125)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:207)
at io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:74)
at io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:63)
at io.undertow.servlet.handlers.ServletChain$1.handleRequest(ServletChain.java:68)
at io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java:36)
at io.undertow.servlet.handlers.RedirectDirHandler.handleRequest(RedirectDirHandler.java:67)
at io.undertow.servlet.handlers.security.SSLInformationAssociationHandler.handleRequest(SSLInformationAssociationHandler.java:133)
at io.undertow.servlet.handlers.security.ServletAuthenticationCallHandler.handleRequest(ServletAuthenticationCallHandler.java:57)
at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
at io.undertow.security.handlers.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java:46)
at io.undertow.servlet.handlers.security.ServletConfidentialityConstraintHandler.handleRequest(ServletConfidentialityConstraintHandler.java:65)
at io.undertow.security.handlers.AuthenticationMechanismsHandler.handleRequest(AuthenticationMechanismsHandler.java:60)
at io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHandler.handleRequest(CachedAuthenticatedSessionHandler.java:77)
at io.undertow.security.handlers.NotificationReceiverHandler.handleRequest(NotificationReceiverHandler.java:50)
at io.undertow.security.handlers.AbstractSecurityContextAssociationHandler.handleRequest(AbstractSecurityContextAssociationHandler.java:43)
at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
at io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:247)
at io.undertow.servlet.handlers.ServletInitialHandler.access$100(ServletInitialHandler.java:56)
at io.undertow.servlet.handlers.ServletInitialHandler$2.call(ServletInitialHandler.java:111)
at io.undertow.servlet.handlers.ServletInitialHandler$2.call(ServletInitialHandler.java:108)
at io.undertow.servlet.core.ServletRequestContextThreadSetupAction$1.call(ServletRequestContextThreadSetupAction.java:48)
at io.undertow.servlet.core.ContextClassLoaderSetupAction$1.call(ContextClassLoaderSetupAction.java:43)
at io.quarkus.undertow.runtime.UndertowDeploymentRecorder$9$1.call(UndertowDeploymentRecorder.java:574)
at io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:227)
at io.undertow.servlet.handlers.ServletInitialHandler.handleRequest(ServletInitialHandler.java:152)
at io.quarkus.undertow.runtime.UndertowDeploymentRecorder$1.handleRequest(UndertowDeploymentRecorder.java:117)
at io.undertow.server.Connectors.executeRootHandler(Connectors.java:290)
at io.undertow.server.DefaultExchangeHandler.handle(DefaultExchangeHandler.java:18)
at io.quarkus.undertow.runtime.UndertowDeploymentRecorder$5$1.run(UndertowDeploymentRecorder.java:400)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
at java.util.concurrent.FutureTask.run(FutureTask.java:264)
at org.jboss.threads.EnhancedQueueExecutor$Task.run(EnhancedQueueExecutor.java:2415)
at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1452)
at org.jboss.threads.DelegatingRunnable.run(DelegatingRunnable.java:29)
at org.jboss.threads.ThreadLocalResettingRunnable.run(ThreadLocalResettingRunnable.java:29)
at java.lang.Thread.run(Thread.java:834)
at org.jboss.threads.JBossThread.run(JBossThread.java:501)
at com.oracle.svm.core.thread.JavaThreads.threadStartRoutine(JavaThreads.java:519)
at com.oracle.svm.core.posix.thread.PosixJavaThreads.pthreadStartRoutine(PosixJavaThreads.java:192)
![Schermata da 2021-03-27 12-41-20](https://user-images.githubusercontent.com/5626867/112719613-feeedd00-8ef9-11eb-83a1-a3b9da04b853.png)
### **My Entity class @Entity**
public class Product extends PanacheEntity{
@Setter @Getter
@NotEmpty
private String title;
}
**### My Bean @Named @ViewScoped**
public class Bean implements Serializable{
@Setter @Getter
private Product product= new Product();
@Transactional
public void save(){
product.persist();
product = new Product();
}
}
**### my index.xhtml**
<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="it"
xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
xmlns:h="http://xmlns.jcp.org/jsf/html"
xmlns:f="http://xmlns.jcp.org/jsf/core"
xmlns:d="http://xmlns.jcp.org/jsf/composite/d"
>
<h:head>
<title>quarkus</title>
</h:head>
<h:body>
<ui:repeat value="#{bean.product.listAll()}" var="i">
#{i}
</ui:repeat>
<h:form>
<h:inputText value="#{bean.product.title}"/>
<h:commandButton value="invio" actionListener="#{bean.save()}"/>
</h:form>
</h:body>
</html>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [myfaces] cristiand85 commented on pull request #189: quarkus extension in native mode does not work
Posted by GitBox <gi...@apache.org>.
cristiand85 commented on pull request #189:
URL: https://github.com/apache/myfaces/pull/189#issuecomment-808762759
this is my showcase
[quarkus-myfaces-test](https://github.com/cristiand85/quarkus-myfaces-test)
thank you
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [myfaces] tandraschko commented on pull request #189: quarkus extension in native mode does not work
Posted by GitBox <gi...@apache.org>.
tandraschko commented on pull request #189:
URL: https://github.com/apache/myfaces/pull/189#issuecomment-808735369
Your PR contains many unrelated Changes
Also please use our jira
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [myfaces] tandraschko closed pull request #189: quarkus extension in native mode does not work
Posted by GitBox <gi...@apache.org>.
tandraschko closed pull request #189:
URL: https://github.com/apache/myfaces/pull/189
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [myfaces] tandraschko commented on pull request #189: quarkus extension in native mode does not work
Posted by GitBox <gi...@apache.org>.
tandraschko commented on pull request #189:
URL: https://github.com/apache/myfaces/pull/189#issuecomment-808763035
Please create a issue in JIRA, @rmpestano might check it
i dont have a running graal environment here.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [myfaces] tandraschko commented on pull request #189: quarkus extension in native mode does not work
Posted by GitBox <gi...@apache.org>.
tandraschko commented on pull request #189:
URL: https://github.com/apache/myfaces/pull/189#issuecomment-808735309
Please provide a forked Showcase example
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org