Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[eclipselink-users] JSF 1.2

Hi,

 

I am having problema on deploy a JSF 1.2 web app on Oracle Weblogic Server 11gR1 PatchSet 1. This is what I get when I try to deploy the EAR file from inside Eclipse Galileo,

 

weblogic.application.ModuleException: Failed to load webapp: 'CustomerWeb'

      at weblogic.servlet.internal.WebAppModule.prepare(WebAppModule.java:378)

      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:391)

      at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:83)

      Truncated. see log file for complete stacktrace

 

Caused By: java.lang.ClassNotFoundException: javax.faces.webapp.FacesServlet

      at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:296)

      at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:269)

      at weblogic.utils.classloaders.ChangeAwareClassLoader.findClass(ChangeAwareClassLoader.java:56)

      at java.lang.ClassLoader.loadClass(ClassLoader.java:307)

      at java.lang.ClassLoader.loadClass(ClassLoader.java:248)

      Truncated. see log file for complete stacktrace

>

<15-feb-2010 13H49' CET> <Warning> <Deployer> <BEA-149004> <Failures were detected while initiating deploy task for application 'CustomerEAR'.>

<15-feb-2010 13H49' CET> <Warning> <Deployer> <BEA-149078> <Stack trace for message 149004

weblogic.application.ModuleException: Failed to load webapp: 'CustomerWeb'

      at weblogic.servlet.internal.WebAppModule.prepare(WebAppModule.java:378)

      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:391)

      at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:83)

      Truncated. see log file for complete stacktrace

 

Caused By: java.lang.ClassNotFoundException: javax.faces.webapp.FacesServlet

      at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:296)

      at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:269)

      at weblogic.utils.classloaders.ChangeAwareClassLoader.findClass(ChangeAwareClassLoader.java:56)

      at java.lang.ClassLoader.loadClass(ClassLoader.java:307)

      at java.lang.ClassLoader.loadClass(ClassLoader.java:248)

      Truncated. see log file for complete stacktrace

>

 

 

I guess it is due to de url pattern defined in the web.xml,

 

<?xml version="1.0" encoding="UTF-8"?>

<web-app version="2.5"

      xmlns="http://java.sun.com/xml/ns/javaee"

      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

      xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">

    <context-param>

        <param-name>com.sun.faces.verifyObjects</param-name>

        <param-value>false</param-value>

    </context-param>

    <context-param>

        <param-name>javax.faces.STATE_SAVING_METHOD</param-name>

        <param-value>client</param-value>

    </context-param>

    <servlet>

        <servlet-name>Faces Servlet</servlet-name>

        <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>

        <load-on-startup>1</load-on-startup>

    </servlet>

    <servlet-mapping>

        <servlet-name>Faces Servlet</servlet-name>

        <url-pattern>/faces/*</url-pattern>

        <url-pattern>*.jsf</url-pattern>

    </servlet-mapping>

    <jsp-config>

            <jsp-property-group>

            <url-pattern>*.jsp</url-pattern>

            <deferred-syntax-allowed-as-literal>

                        true

            </deferred-syntax-allowed-as-literal>

            </jsp-property-group>

      </jsp-config>

    <ejb-local-ref>

      <ejb-ref-name>ejb/CustomerSessionBean</ejb-ref-name>

      <ejb-ref-type>Session</ejb-ref-type>

      <local>com.example.ejb.CustomerSessionLocal</local>

    </ejb-local-ref>

    <session-config>

        <session-timeout>

            30

        </session-timeout>

    </session-config>

    <welcome-file-list>

        <welcome-file>index.jsp</welcome-file>

    </welcome-file-list>

</web-app>

 

But I do not know where I am getting wrong.

 

Any help will be appreciated.

 

 Jose


Back to the top