Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

java.lang.ClassNotFoundException: javax.faces.webapp.FacesServlet while deploying the Application in

Sanjeev-OFMFeb 4 2016 — edited Feb 4 2016

Hi Team,

Lot of time I faced this issue but today want to discussed with you people please suggest me what files are getting corrupted or what wrong so I'm unable to deploy this Application in Integrated Weblogic server itself.

I download the sample from the below link and open in the Jdeveloper version 11.1.2.3.0 and Integrated weblogic server version is

WebLogic Server 10.3.5.0 Fri Apr 1 20:20:06 PDT 2011 1398638

Java Version:

1.6.0_24

OS Name:

Windows 7(6.1)

link to download the sample:

https://docs.oracle.com/cd/E18941_01/tutorials/jdtut_11r2_83/jdtut_11r2_83.html

it directly open the sample in Jdeveloper without converting the project and while running the Application I'm getting the below error:

[11:01:19 AM] ----  Deployment started.  ----

[11:01:19 AM] Target platform is  (Weblogic 10.3).

[11:01:22 AM] Retrieving existing application information

[11:01:22 AM] Running dependency analysis...

[11:01:23 AM] Deploying 2 profiles...

[11:01:25 AM] Wrote Web Application Module to C:\Users\IBM_ADMIN\AppData\Roaming\JDeveloper\system11.1.2.3.39.62.76.1\o.j2ee\drs\ADFSkinSample\ViewControllerWebApp.war

[11:01:27 AM] Wrote Enterprise Application Module to C:\Users\IBM_ADMIN\AppData\Roaming\JDeveloper\system11.1.2.3.39.62.76.1\o.j2ee\drs\ADFSkinSample

[11:01:27 AM] Deploying Application...

<Feb 4, 2016 11:01:29 AM IST> <Error> <HTTP> <BEA-101371> <There was a failure when processing annotations for application C:\Users\IBM_ADMIN\AppData\Roaming\JDeveloper\system11.1.2.3.39.62.76.1\o.j2ee\drs\ADFSkinSample\ViewControllerWebApp.war. Please make sure that the annotations are valid. The error is javax.faces.webapp.FacesServlet>

<Feb 4, 2016 11:01:29 AM IST> <Error> <Deployer> <BEA-149265> <Failure occurred in the execution of deployment request with ID '1454563887423' for task '0'. Error is: 'weblogic.application.ModuleException: Failed to load webapp: 'ADFSecuritySample-ViewController-context-root''

weblogic.application.ModuleException: Failed to load webapp: 'ADFSecuritySample-ViewController-context-root'

  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

>

<Feb 4, 2016 11:01:29 AM IST> <Warning> <Deployer> <BEA-149004> <Failures were detected while initiating deploy task for application 'ADFSkinSample'.>

<Feb 4, 2016 11:01:29 AM IST> <Warning> <Deployer> <BEA-149078> <Stack trace for message 149004

weblogic.application.ModuleException: Failed to load webapp: 'ADFSecuritySample-ViewController-context-root'

  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

>

[11:01:29 AM] Deployment cancelled.

[11:01:29 AM] ----  Deployment incomplete  ----.

[11:01:29 AM] Remote deployment failed (oracle.jdevimpl.deploy.common.Jsr88RemoteDeployer)

#### Cannot run application ADFSkinSample due to error deploying to IntegratedWebLogicServer.

[Application ADFSkinSample stopped and undeployed from Server Instance IntegratedWebLogicServer]

<Logger> <error> ServletContainerAdapter manager not initialized correctly.

Please advise.

Thanks & Regards

Sanjeev

This post has been answered by Sanjeev-OFM on Feb 4 2016
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 3 2016
Added on Feb 4 2016
2 comments
1,452 views