• Post Reply Bookmark Topic Watch Topic
  • New Topic

java.lang.ClassNotFoundException: javax.faces.event.ActionEvent  RSS feed

 
Raymond Chiu Wing Hing
Ranch Hand
Posts: 77
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear all,

I am developer. I am using java faces and primefaces on weblogic 12c R2 (12.2.1.2), java 1.8.0_121 on windows 7 professional of IE11. I have maven build successfully but when run on localhost:7001, it show this error that I cannot make ear. Do you have any ideas? I have researched in the web but no clue. Please help.

java.lang.ClassNotFoundException: javax.faces.event.ActionEvent
 
Raymond Chiu Wing Hing
Ranch Hand
Posts: 77
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
<3月 6, 2017, 4:59:20,7 下午 CST> <Warning> <JMX> <BEA-149535> <JMX Resiliency Activity Server=AdminServer : Initializing callbacks>
<3月 6, 2017, 4:59:20,10 下午 CST> <Warning> <JMX> <BEA-149535> <JMX Resiliency Activity Server=AdminServer : Added MBeanServerConnection in DomainRuntimeServiceMBean >
<3月 6, 2017, 4:59:20,11 下午 CST> <Warning> <JMX> <BEA-149535> <JMX Resiliency Activity Server=AdminServer : Callback is done>
<3月 6, 2017, 4:59:20,13 下午 CST> <Warning> <JMX> <BEA-149535> <JMX Resiliency Activity Server=AdminServer : Connection already exists for the server. Did not attempt to connect to the server>
<3月 6, 2017, 4:59:20,236 下午 CST> <Warning> <JMX> <BEA-149535> <JMX Resiliency Activity Server=All Servers : Resolving connection list DomainRuntimeServiceMBean>
<3月 6, 2017, 4:59:43,762 下午 CST> <Error> <Deployer> <BEA-149265> <Failure occurred in the execution of deployment request with ID "1304779980764" for task "0" on [partition-name: DOMAIN]. Error is: "weblogic.application.ModuleException: java.lang.ClassNotFoundException: javax.faces.event.ActionEvent"
weblogic.application.ModuleException: java.lang.ClassNotFoundException: javax.faces.event.ActionEvent
at weblogic.application.internal.ExtensibleModuleWrapper.prepare(ExtensibleModuleWrapper.java:114)
at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:100)
at weblogic.application.internal.flow.ModuleStateDriver$1.next(ModuleStateDriver.java:192)
at weblogic.application.internal.flow.ModuleStateDriver$1.next(ModuleStateDriver.java:187)
at weblogic.application.utils.StateMachineDriver$ParallelChange.run(StateMachineDriver.java:83)
Truncated. see log file for complete stacktrace
Caused By: java.lang.ClassNotFoundException: javax.faces.event.ActionEvent
at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:1026)
at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:987)
at weblogic.utils.classloaders.ChangeAwareClassLoader.findClass(ChangeAwareClassLoader.java:83)
at weblogic.utils.classloaders.GenericClassLoader.doFindClass(GenericClassLoader.java:608)
at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:540)
Truncated. see log file for complete stacktrace
>
<3月 6, 2017, 4:59:44,71 下午 CST> <Warning> <Deployer> <BEA-149004> <Failures were detected while initiating distribute task for application "_auto_generated_ear_".>
<3月 6, 2017, 4:59:44,71 下午 CST> <Warning> <Deployer> <BEA-149078> <Stack trace for message 149004
weblogic.application.ModuleException: java.lang.ClassNotFoundException: javax.faces.event.ActionEvent
at weblogic.application.internal.ExtensibleModuleWrapper.prepare(ExtensibleModuleWrapper.java:114)
at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:100)
at weblogic.application.internal.flow.ModuleStateDriver$1.next(ModuleStateDriver.java:192)
at weblogic.application.internal.flow.ModuleStateDriver$1.next(ModuleStateDriver.java:187)
at weblogic.application.utils.StateMachineDriver$ParallelChange.run(StateMachineDriver.java:83)
Truncated. see log file for complete stacktrace
Caused By: java.lang.ClassNotFoundException: javax.faces.event.ActionEvent
at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:1026)
at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:987)
at weblogic.utils.classloaders.ChangeAwareClassLoader.findClass(ChangeAwareClassLoader.java:83)
at weblogic.utils.classloaders.GenericClassLoader.doFindClass(GenericClassLoader.java:608)
at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:540)
Truncated. see log file for complete stacktrace
>
 
Jesper de Jong
Java Cowboy
Sheriff
Posts: 15941
86
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's hard to say what exactly causes this, but most likely you are using an incompatible combination of libraries.

For example, you are using version A of some library X that was designed to work with JSF 2.2, but you are trying to use it with JSF 2.0. Or some other combination of libraries that was not designed to work together. Maybe you are using a version of Primefaces which is not compatible with the version of Weblogic that you are using. Check what the requirements are for the libraries that you are using.

It's also possible that you are missing libraries in your runtime environment. Check whether you have included all the necessary libraries in your application and in Weblogic.
 
Tim Holloway
Bartender
Posts: 18606
68
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I concur with Jesper. In fact, since the Ajax ActionEvent is part of JSF since JSF 2.0, I'm suspecting that you are attempting to deploy a JSF application written for JSF version 1, or you should have found some ActionEvent class even if it was the wrong copy.

In fact, the most likely scenario here is a JSF version 1 app that was built for a pre-JEE server (or for Tomcat or jeTTY, which don't have integrated JSF) so that the JSF libraries build into WebLogic are being hidden.

And if that's true, you have a lot of work ahead of you, since any such app probably used JSP View Templates, which don't work at all under JSF version 2.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!