Caused By: java.lang.ClassNotFoundException: javax.faces.webapp.FacesServlet 发布异常

最近总是遇到这个问题 ,记一下

weblogic.application.ModuleException: Failed to load webapp: 'VisaUI'
at weblogic.servlet.internal.WebAppModule.prepare(WebAppModule.java:393)
at weblogic.application.internal.flow.ScopedModuleDriver.prepare(ScopedModuleDriver.java:176)
at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:199)
at weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(DeploymentCallbackFlow.java:517)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
Truncated. see log file for complete stacktrace
Caused By: java.lang.ClassNotFoundException: javax.faces.webapp.FacesServlet
at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:297)
at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:270)
at weblogic.utils.classloaders.ChangeAwareClassLoader.findClass(ChangeAwareClassLoader.java:64)
at java.lang.ClassLoader.loadClass(ClassLoader.java:305)
at java.lang.ClassLoader.loadClass(ClassLoader.java:246)滋补品
Truncated. see log file for complete stacktrace
>

出现这个异常后,

#### Cannot run application VisaServiceADF_S due to error deploying to IntegratedWebLogicServer.
[02:49:41 PM] #### Deployment incomplete. ####
[02:49:41 PM] Remote deployment failed (oracle.jdevimpl.deploy.common.Jsr88RemoteDeployer)
[Application VisaServiceADF_S stopped and undeployed from Server Instance IntegratedWebLogicServer]
<Logger> <error> ServletContainerAdapter manager not initialized correctly.

尝试了下。发现是web.xml中相关连的javax.faces.webapp.FacesServlet,真找不到了。于是只好重新加了一下,JSF1.2的包,就可以了

于是打开Jdevelop工具的project property,找到JSP TAG LIBRARIES 添加所要用到的JSF包就可以了

你可能感兴趣的:(Caused By: java.lang.ClassNotFoundException: javax.faces.webapp.FacesServlet 发布异常)