Coder Social home page Coder Social logo

wesleyegberto / jakartaee-jsf-chat Goto Github PK

View Code? Open in Web Editor NEW
9.0 3.0 5.0 211 KB

Simple chat using JSF 2.3 + CDI 2.0 + Bean Validation 2.0 + WebSocket

License: MIT License

Java 70.29% HTML 28.54% Dockerfile 0.32% Shell 0.85%
javaee8 jsf23 jsf websocket jakartaee jakartaee9

jakartaee-jsf-chat's Introduction

JSF 2.3 Chat

Simple chat to show some new features JSF 2.3 + CDI 2.0 + Bean Validation 2.0

Start Glassfish: ./asadmin start-domain domain1

URL: https://localhost:8080/jsf-chat

Features

  • JSF 2.2 - HTML5 Friendly Markup
  • JSF 2.3 - Selectors
  • JSF 2.3 - JS code from managed bean
  • JSF 2.3 - Artifacts injection
  • JSF 2.3 - f:webSocket
  • WebSocket 1.1 - Tomcat already provides

Picture:

Print

Some notes

  • Spec JSF 2.3: Section 5.9 "As of version 2.3 of this specification, JSF must run in a container that supports CDI version 2.0"
  • When running on Glassfish 5 sometimes we can get a NPE which could be related to this issue

Migration:

  • Changed imports from javax to jakarta
  • Changed references from javax to jakarta in files: web.xml, Context.xml and jsf_messages.properties

Tested on:

  • Java EE 8 (using refs javax)
  • Jakarta EE 8 (using refs javax)
  • Jakarta EE 9 (using refs jakarta)
  • TomEE 8 (supports only Java EE 8 / Jakarta EE 8, use this branch to run)

Links

jakartaee-jsf-chat's People

Contributors

wesleyegberto avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

jakartaee-jsf-chat's Issues

Error Getting Reflective Information

Hi, I would like that can help me....
I import the project to eclipse, when I run the project, shows the following error:

ERROR [org.jboss.msc.service.fail] (MSC service thread 1-4) MSC000001: Failed to start service jboss.deployment.unit."jsf-chat.war".POST_MODULE: org.jboss.msc.service.StartException in service jboss.deployment.unit."jsf-chat.war".POST_MODULE: WFLYSRV0153: Failed to process phase POST_MODULE of deployment "jsf-chat.war"
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:154)
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1948)
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1881)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.RuntimeException: WFLYSRV0177: Error getting reflective information for class com.github.wesleyegberto.adoptajsr.jsfchat.service.ChatRoom with ClassLoader ModuleClassLoader for Module "deployment.jsf-chat.war:main" from Service Module Loader
at org.jboss.as.server.deployment.reflect.DeploymentReflectionIndex.getClassIndex(DeploymentReflectionIndex.java:70)
at org.jboss.as.ee.metadata.MethodAnnotationAggregator.runtimeAnnotationInformation(MethodAnnotationAggregator.java:57)
at org.jboss.as.ee.component.deployers.InterceptorAnnotationProcessor.handleAnnotations(InterceptorAnnotationProcessor.java:106)
at org.jboss.as.ee.component.deployers.InterceptorAnnotationProcessor.processComponentConfig(InterceptorAnnotationProcessor.java:91)
at org.jboss.as.ee.component.deployers.InterceptorAnnotationProcessor.deploy(InterceptorAnnotationProcessor.java:76)
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:147)
... 5 more
Caused by: java.lang.NoClassDefFoundError: Ljavax/faces/push/PushContext;
at java.lang.Class.getDeclaredFields0(Native Method)
at java.lang.Class.privateGetDeclaredFields(Unknown Source)
at java.lang.Class.getDeclaredFields(Unknown Source)
at org.jboss.as.server.deployment.reflect.ClassReflectionIndex.(ClassReflectionIndex.java:72)
at org.jboss.as.server.deployment.reflect.DeploymentReflectionIndex.getClassIndex(DeploymentReflectionIndex.java:66)
... 10 more
Caused by: java.lang.ClassNotFoundException: javax.faces.push.PushContext from [Module "deployment.jsf-chat.war:main" from Service Module Loader]
at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:198)
at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:363)
at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:351)
at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:93)
... 15 more

00:16:47,797 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0013: Operation ("deploy") failed - address: ([("deployment" => "jsf-chat.war")]) - failure description: {
"WFLYCTL0080: Failed services" => {"jboss.deployment.unit."jsf-chat.war".POST_MODULE" => "org.jboss.msc.service.StartException in service jboss.deployment.unit."jsf-chat.war".POST_MODULE: WFLYSRV0153: Failed to process phase POST_MODULE of deployment "jsf-chat.war"
Caused by: java.lang.RuntimeException: WFLYSRV0177: Error getting reflective information for class com.github.wesleyegberto.adoptajsr.jsfchat.service.ChatRoom with ClassLoader ModuleClassLoader for Module "deployment.jsf-chat.war:main" from Service Module Loader
Caused by: java.lang.NoClassDefFoundError: Ljavax/faces/push/PushContext;
Caused by: java.lang.ClassNotFoundException: javax.faces.push.PushContext from [Module "deployment.jsf-chat.war:main" from Service Module Loader]"},
"WFLYCTL0412: Required services that are not installed:" => ["jboss.deployment.unit."jsf-chat.war".POST_MODULE"],
"WFLYCTL0180: Services with missing/unavailable dependencies" => undefined
}
00:16:47,819 INFO [org.jboss.as.server] (ServerService Thread Pool -- 34) WFLYSRV0010: Deployed "jsf-chat.war" (runtime-name : "jsf-chat.war")
00:16:47,821 INFO [org.jboss.as.controller] (Controller Boot Thread) WFLYCTL0183: Service status report
WFLYCTL0186: Services which failed to start: service jboss.deployment.unit."jsf-chat.war".POST_MODULE: org.jboss.msc.service.StartException in service jboss.deployment.unit."jsf-chat.war".POST_MODULE: WFLYSRV0153: Failed to process phase POST_MODULE of deployment "jsf-chat.war"

00:16:47,966 INFO [org.jboss.as] (Controller Boot Thread) WFLYSRV0060: Http management interface listening on http://127.0.0.1:9990/management
00:16:47,967 INFO [org.jboss.as] (Controller Boot Thread) WFLYSRV0051: Admin console listening on http://127.0.0.1:9990
00:16:47,967 ERROR [org.jboss.as] (Controller Boot Thread) WFLYSRV0026: WildFly Full 10.1.0.Final (WildFly Core 2.2.0.Final) started (with errors) in 3442ms - Started 370 of 617 services (1 services failed or missing dependencies, 399 services are lazy, passive or on-demand)
00:16:47,997 INFO [org.jboss.as.server.deployment] (MSC service thread 1-6) WFLYSRV0028: Stopped deployment jsf-chat.war (runtime-name: jsf-chat.war) in 9ms
00:16:48,040 WARN [org.jboss.as.controller] (DeploymentScanner-threads - 1) WFLYCTL0357: Notification of type deployment-undeployed is not described for the resource at the address []
00:16:48,041 INFO [org.jboss.as.server] (DeploymentScanner-threads - 1) WFLYSRV0009: Undeployed "jsf-chat.war" (runtime-name: "jsf-chat.war")
00:16:48,041 INFO [org.jboss.as.controller] (DeploymentScanner-threads - 1) WFLYCTL0183: Service status report
WFLYCTL0186: Services which failed to start: service jboss.deployment.unit."jsf-chat.war".POST_MODULE

00:16:52,839 INFO [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) WFLYDS0004: Found jsf-chat.war in deployment directory. To trigger deployment create a file called jsf-chat.war.dodeploy

I tried to fix that by doing a lot of things but it still shows that error, I hope you can tell me how to fix it ...

Problema ao rodar

Bom dia, muito legal seu projeto, estou com um problema ao rodar com o Tomcat.

BUILD SUCCESS

Total time: 4.656s
Finished at: Mon Jan 13 12:05:34 BRST 2020
Final Memory: 10M/153M

Deploying on Apache Tomcat ou TomEE
profile mode: false
debug mode: false
force redeploy: true
[Fatal Error] :4:6: A string "--" não é permitida nos comentários.

notei que no context é que se configura pra funcionar com o Tomcat, porém não sei como fazê-lo...

clock: wildfly 13 error

stack trace:

15:35:45,171 WARNING [javax.enterprise.resource.webcontainer.jsf.lifecycle] (default task-1) /chat-room.xhtml @68,108 listener="#{chatController.updateClock()}": java.lang.IllegalArgumentException: Cannot invoke getter of property 'annotatedOwnerType' of bean 'class sun.reflect.annotation.AnnotatedTypeFactory$AnnotatedTypeBaseImpl'.: javax.el.ELException: /chat-room.xhtml @68,108 listener="#{chatController.updateClock()}": java.lang.IllegalArgumentException: Cannot invoke getter of property 'annotatedOwnerType' of bean 'class sun.reflect.annotation.AnnotatedTypeFactory$AnnotatedTypeBaseImpl'.
	at [email protected]//com.sun.faces.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:113)
	at [email protected]//com.sun.faces.facelets.tag.jsf.core.AjaxBehaviorListenerImpl.processAjaxBehavior(AjaxHandler.java:442)
	at [email protected]//javax.faces.event.AjaxBehaviorEvent.processListener(AjaxBehaviorEvent.java:124)
	at [email protected]//javax.faces.component.behavior.BehaviorBase.broadcast(BehaviorBase.java:106)
	at [email protected]//javax.faces.component.UIComponentBase.broadcast(UIComponentBase.java:830)
	at [email protected]//javax.faces.component.UICommand.broadcast(UICommand.java:315)
	at [email protected]//javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:870)
	at [email protected]//javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:1418)
	at [email protected]//com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:82)
	at [email protected]//com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
	at [email protected]//com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:201)
	at [email protected]//javax.faces.webapp.FacesServlet.service(FacesServlet.java:670)
	at [email protected]//io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:74)
	at [email protected]//io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:129)
	at [email protected]//io.undertow.websockets.jsr.JsrWebSocketFilter.doFilter(JsrWebSocketFilter.java:171)
	at [email protected]//io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61)
	at [email protected]//io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131)
	at [email protected]//io.undertow.servlet.handlers.FilterHandler.handleRequest(FilterHandler.java:84)
	at [email protected]//io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:62)
	at [email protected]//io.undertow.servlet.handlers.ServletChain$1.handleRequest(ServletChain.java:68)
	at [email protected]//io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java:36)
	at [email protected]//org.wildfly.extension.undertow.security.SecurityContextAssociationHandler.handleRequest(SecurityContextAssociationHandler.java:78)
	at [email protected]//io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
	at [email protected]//io.undertow.servlet.handlers.security.SSLInformationAssociationHandler.handleRequest(SSLInformationAssociationHandler.java:132)
	at [email protected]//io.undertow.servlet.handlers.security.ServletAuthenticationCallHandler.handleRequest(ServletAuthenticationCallHandler.java:57)
	at [email protected]//io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
	at [email protected]//io.undertow.security.handlers.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java:46)
	at [email protected]//io.undertow.servlet.handlers.security.ServletConfidentialityConstraintHandler.handleRequest(ServletConfidentialityConstraintHandler.java:64)
	at [email protected]//io.undertow.security.handlers.AuthenticationMechanismsHandler.handleRequest(AuthenticationMechanismsHandler.java:60)
	at [email protected]//io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHandler.handleRequest(CachedAuthenticatedSessionHandler.java:77)
	at [email protected]//io.undertow.security.handlers.NotificationReceiverHandler.handleRequest(NotificationReceiverHandler.java:50)
	at [email protected]//io.undertow.security.handlers.AbstractSecurityContextAssociationHandler.handleRequest(AbstractSecurityContextAssociationHandler.java:43)
	at [email protected]//io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
	at [email protected]//org.wildfly.extension.undertow.security.jacc.JACCContextIdHandler.handleRequest(JACCContextIdHandler.java:61)
	at [email protected]//io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
	at [email protected]//org.wildfly.extension.undertow.deployment.GlobalRequestControllerHandler.handleRequest(GlobalRequestControllerHandler.java:68)
	at [email protected]//io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
	at [email protected]//io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:292)
	at [email protected]//io.undertow.servlet.handlers.ServletInitialHandler.access$100(ServletInitialHandler.java:81)
	at [email protected]//io.undertow.servlet.handlers.ServletInitialHandler$2.call(ServletInitialHandler.java:138)
	at [email protected]//io.undertow.servlet.handlers.ServletInitialHandler$2.call(ServletInitialHandler.java:135)
	at [email protected]//io.undertow.servlet.core.ServletRequestContextThreadSetupAction$1.call(ServletRequestContextThreadSetupAction.java:48)
	at [email protected]//io.undertow.servlet.core.ContextClassLoaderSetupAction$1.call(ContextClassLoaderSetupAction.java:43)
	at [email protected]//org.wildfly.extension.undertow.security.SecurityContextThreadSetupAction.lambda$create$0(SecurityContextThreadSetupAction.java:105)
	at [email protected]//org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1514)
	at [email protected]//org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1514)
	at [email protected]//org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1514)
	at [email protected]//org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1514)
	at [email protected]//io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:272)
	at [email protected]//io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:81)
	at [email protected]//io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:104)
	at [email protected]//io.undertow.server.Connectors.executeRootHandler(Connectors.java:360)
	at [email protected]//io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:830)
	at [email protected]//org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
	at [email protected]//org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1985)
	at [email protected]//org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1487)
	at [email protected]//org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1378)
	at java.base/java.lang.Thread.run(Thread.java:844)
Caused by: java.lang.IllegalArgumentException: Cannot invoke getter of property 'annotatedOwnerType' of bean 'class sun.reflect.annotation.AnnotatedTypeFactory$AnnotatedTypeBaseImpl'.
	at [email protected]//com.sun.faces.util.Json.encodeBean(Json.java:363)
	at [email protected]//com.sun.faces.util.Json.encode(Json.java:192)
	at [email protected]//com.sun.faces.util.Json.encodeArray(Json.java:286)
	at [email protected]//com.sun.faces.util.Json.encode(Json.java:183)
	at [email protected]//com.sun.faces.util.Json.encodeBean(Json.java:367)
	at [email protected]//com.sun.faces.util.Json.encode(Json.java:192)
	at [email protected]//com.sun.faces.util.Json.encodeBean(Json.java:367)
	at [email protected]//com.sun.faces.util.Json.encode(Json.java:192)
	at [email protected]//com.sun.faces.util.Json.encodeBean(Json.java:367)
	at [email protected]//com.sun.faces.util.Json.encode(Json.java:192)
	at [email protected]//com.sun.faces.util.Json.encode(Json.java:140)
	at [email protected]//com.sun.faces.util.Json.encode(Json.java:124)
	at [email protected]//com.sun.faces.push.WebsocketSessionManager.send(WebsocketSessionManager.java:161)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:564)
	at [email protected]//org.jboss.weld.bean.proxy.AbstractBeanInstance.invoke(AbstractBeanInstance.java:38)
	at [email protected]//org.jboss.weld.bean.proxy.ProxyMethodHandler.invoke(ProxyMethodHandler.java:106)
	at [email protected]//com.sun.faces.push.WebsocketSessionManager$Proxy$_$$_WeldClientProxy.send(Unknown Source)
	at [email protected]//com.sun.faces.push.WebsocketPushContext.send(WebsocketPushContext.java:106)
	at deployment.jsf-chat.war//com.github.wesleyegberto.adoptajsr.jsfchat.controller.ChatController.updateClock(ChatController.java:45)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:564)
	at [email protected]//javax.el.ELUtil.invokeMethod(ELUtil.java:311)
	at [email protected]//javax.el.BeanELResolver.invoke(BeanELResolver.java:415)
	at [email protected]//javax.el.CompositeELResolver.invoke(CompositeELResolver.java:256)
	at [email protected]//com.sun.el.parser.AstValue.invoke(AstValue.java:285)
	at [email protected]//com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:304)
	at [email protected]//org.jboss.weld.module.web.util.el.ForwardingMethodExpression.invoke(ForwardingMethodExpression.java:40)
	at [email protected]//org.jboss.weld.module.web.el.WeldMethodExpression.invoke(WeldMethodExpression.java:50)
	at [email protected]//org.jboss.weld.module.web.util.el.ForwardingMethodExpression.invoke(ForwardingMethodExpression.java:40)
	at [email protected]//org.jboss.weld.module.web.el.WeldMethodExpression.invoke(WeldMethodExpression.java:50)
	at [email protected]//com.sun.faces.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:107)
	... 57 more
	Suppressed: javax.json.stream.JsonGenerationException: Generating incomplete JSON
		at [email protected]//org.glassfish.json.JsonGeneratorImpl.close(JsonGeneratorImpl.java:531)
		at [email protected]//com.sun.faces.util.Json.encode(Json.java:142)
		... 82 more
Caused by: java.lang.IllegalAccessException: class com.sun.faces.util.Json cannot access a member of class sun.reflect.annotation.AnnotatedTypeFactory$AnnotatedTypeBaseImpl (in module java.base) with modifiers "public"
	at java.base/jdk.internal.reflect.Reflection.newIllegalAccessException(Reflection.java:360)
	at java.base/java.lang.reflect.AccessibleObject.checkAccess(AccessibleObject.java:589)
	at java.base/java.lang.reflect.Method.invoke(Method.java:556)
	at [email protected]//com.sun.faces.util.Json.encodeBean(Json.java:360)
	... 92 more

15:35:45,179 SEVERE [javax.enterprise.resource.webcontainer.jsf.context] (default task-1) java.lang.IllegalArgumentException: Cannot invoke getter of property 'annotatedOwnerType' of bean 'class sun.reflect.annotation.AnnotatedTypeFactory$AnnotatedTypeBaseImpl'.
	at [email protected]//com.sun.faces.util.Json.encodeBean(Json.java:363)
	at [email protected]//com.sun.faces.util.Json.encode(Json.java:192)
	at [email protected]//com.sun.faces.util.Json.encodeArray(Json.java:286)
	at [email protected]//com.sun.faces.util.Json.encode(Json.java:183)
	at [email protected]//com.sun.faces.util.Json.encodeBean(Json.java:367)
	at [email protected]//com.sun.faces.util.Json.encode(Json.java:192)
	at [email protected]//com.sun.faces.util.Json.encodeBean(Json.java:367)
	at [email protected]//com.sun.faces.util.Json.encode(Json.java:192)
	at [email protected]//com.sun.faces.util.Json.encodeBean(Json.java:367)
	at [email protected]//com.sun.faces.util.Json.encode(Json.java:192)
	at [email protected]//com.sun.faces.util.Json.encode(Json.java:140)
	at [email protected]//com.sun.faces.util.Json.encode(Json.java:124)
	at [email protected]//com.sun.faces.push.WebsocketSessionManager.send(WebsocketSessionManager.java:161)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:564)
	at [email protected]//org.jboss.weld.bean.proxy.AbstractBeanInstance.invoke(AbstractBeanInstance.java:38)
	at [email protected]//org.jboss.weld.bean.proxy.ProxyMethodHandler.invoke(ProxyMethodHandler.java:106)
	at [email protected]//com.sun.faces.push.WebsocketSessionManager$Proxy$_$$_WeldClientProxy.send(Unknown Source)
	at [email protected]//com.sun.faces.push.WebsocketPushContext.send(WebsocketPushContext.java:106)
	at deployment.jsf-chat.war//com.github.wesleyegberto.adoptajsr.jsfchat.controller.ChatController.updateClock(ChatController.java:45)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:564)
	at [email protected]//javax.el.ELUtil.invokeMethod(ELUtil.java:311)
	at [email protected]//javax.el.BeanELResolver.invoke(BeanELResolver.java:415)
	at [email protected]//javax.el.CompositeELResolver.invoke(CompositeELResolver.java:256)
	at [email protected]//com.sun.el.parser.AstValue.invoke(AstValue.java:285)
	at [email protected]//com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:304)
	at [email protected]//org.jboss.weld.module.web.util.el.ForwardingMethodExpression.invoke(ForwardingMethodExpression.java:40)
	at [email protected]//org.jboss.weld.module.web.el.WeldMethodExpression.invoke(WeldMethodExpression.java:50)
	at [email protected]//org.jboss.weld.module.web.util.el.ForwardingMethodExpression.invoke(ForwardingMethodExpression.java:40)
	at [email protected]//org.jboss.weld.module.web.el.WeldMethodExpression.invoke(WeldMethodExpression.java:50)
	at [email protected]//com.sun.faces.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:107)
	at [email protected]//com.sun.faces.facelets.tag.jsf.core.AjaxBehaviorListenerImpl.processAjaxBehavior(AjaxHandler.java:442)
	at [email protected]//javax.faces.event.AjaxBehaviorEvent.processListener(AjaxBehaviorEvent.java:124)
	at [email protected]//javax.faces.component.behavior.BehaviorBase.broadcast(BehaviorBase.java:106)
	at [email protected]//javax.faces.component.UIComponentBase.broadcast(UIComponentBase.java:830)
	at [email protected]//javax.faces.component.UICommand.broadcast(UICommand.java:315)
	at [email protected]//javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:870)
	at [email protected]//javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:1418)
	at [email protected]//com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:82)
	at [email protected]//com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
	at [email protected]//com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:201)
	at [email protected]//javax.faces.webapp.FacesServlet.service(FacesServlet.java:670)
	at [email protected]//io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:74)
	at [email protected]//io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:129)
	at [email protected]//io.undertow.websockets.jsr.JsrWebSocketFilter.doFilter(JsrWebSocketFilter.java:171)
	at [email protected]//io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61)
	at [email protected]//io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131)
	at [email protected]//io.undertow.servlet.handlers.FilterHandler.handleRequest(FilterHandler.java:84)
	at [email protected]//io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:62)
	at [email protected]//io.undertow.servlet.handlers.ServletChain$1.handleRequest(ServletChain.java:68)
	at [email protected]//io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java:36)
	at [email protected]//org.wildfly.extension.undertow.security.SecurityContextAssociationHandler.handleRequest(SecurityContextAssociationHandler.java:78)
	at [email protected]//io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
	at [email protected]//io.undertow.servlet.handlers.security.SSLInformationAssociationHandler.handleRequest(SSLInformationAssociationHandler.java:132)
	at [email protected]//io.undertow.servlet.handlers.security.ServletAuthenticationCallHandler.handleRequest(ServletAuthenticationCallHandler.java:57)
	at [email protected]//io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
	at [email protected]//io.undertow.security.handlers.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java:46)
	at [email protected]//io.undertow.servlet.handlers.security.ServletConfidentialityConstraintHandler.handleRequest(ServletConfidentialityConstraintHandler.java:64)
	at [email protected]//io.undertow.security.handlers.AuthenticationMechanismsHandler.handleRequest(AuthenticationMechanismsHandler.java:60)
	at [email protected]//io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHandler.handleRequest(CachedAuthenticatedSessionHandler.java:77)
	at [email protected]//io.undertow.security.handlers.NotificationReceiverHandler.handleRequest(NotificationReceiverHandler.java:50)
	at [email protected]//io.undertow.security.handlers.AbstractSecurityContextAssociationHandler.handleRequest(AbstractSecurityContextAssociationHandler.java:43)
	at [email protected]//io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
	at [email protected]//org.wildfly.extension.undertow.security.jacc.JACCContextIdHandler.handleRequest(JACCContextIdHandler.java:61)
	at [email protected]//io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
	at [email protected]//org.wildfly.extension.undertow.deployment.GlobalRequestControllerHandler.handleRequest(GlobalRequestControllerHandler.java:68)
	at [email protected]//io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
	at [email protected]//io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:292)
	at [email protected]//io.undertow.servlet.handlers.ServletInitialHandler.access$100(ServletInitialHandler.java:81)
	at [email protected]//io.undertow.servlet.handlers.ServletInitialHandler$2.call(ServletInitialHandler.java:138)
	at [email protected]//io.undertow.servlet.handlers.ServletInitialHandler$2.call(ServletInitialHandler.java:135)
	at [email protected]//io.undertow.servlet.core.ServletRequestContextThreadSetupAction$1.call(ServletRequestContextThreadSetupAction.java:48)
	at [email protected]//io.undertow.servlet.core.ContextClassLoaderSetupAction$1.call(ContextClassLoaderSetupAction.java:43)
	at [email protected]//org.wildfly.extension.undertow.security.SecurityContextThreadSetupAction.lambda$create$0(SecurityContextThreadSetupAction.java:105)
	at [email protected]//org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1514)
	at [email protected]//org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1514)
	at [email protected]//org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1514)
	at [email protected]//org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1514)
	at [email protected]//io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:272)
	at [email protected]//io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:81)
	at [email protected]//io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:104)
	at [email protected]//io.undertow.server.Connectors.executeRootHandler(Connectors.java:360)
	at [email protected]//io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:830)
	at [email protected]//org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
	at [email protected]//org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1985)
	at [email protected]//org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1487)
	at [email protected]//org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1378)
	at java.base/java.lang.Thread.run(Thread.java:844)
	Suppressed: javax.json.stream.JsonGenerationException: Generating incomplete JSON
		at [email protected]//org.glassfish.json.JsonGeneratorImpl.close(JsonGeneratorImpl.java:531)
		at [email protected]//com.sun.faces.util.Json.encode(Json.java:142)
		... 82 more
Caused by: java.lang.IllegalAccessException: class com.sun.faces.util.Json cannot access a member of class sun.reflect.annotation.AnnotatedTypeFactory$AnnotatedTypeBaseImpl (in module java.base) with modifiers "public"
	at java.base/jdk.internal.reflect.Reflection.newIllegalAccessException(Reflection.java:360)
	at java.base/java.lang.reflect.AccessibleObject.checkAccess(AccessibleObject.java:589)
	at java.base/java.lang.reflect.Method.invoke(Method.java:556)
	at [email protected]//com.sun.faces.util.Json.encodeBean(Json.java:360)
	... 92 more

TomEE 8 context.xml error

I get an error running on TomEE 8: "Cannot deploy the module. The context.xml file seems to be broken. Check whether it is well-formed and valid".

I uncommented the commented out sectiopn there, but no luck.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.