13 Replies Latest reply on Dec 24, 2012 1:22 AM by gg.svce

    I am using JSF 1.2 and getting some problem while accessing the application.

    gg.svce

      Hi,

       

      I have deployed the ear file successfully on JBOSS 7.1.1 Final but getting one SEVERE problem might be related to jsf:

       

      Server.log:

       

      11:56:52,516 INFO  [org.jboss.web] (MSC service thread 1-2) JBAS018210: Registering web context: /app

      11:56:53,155 INFO  [javax.enterprise.resource.webcontainer.jsf.config] (MSC service thread 1-3) Initializing Mojarra (1.2_15.jbossorg-1-20111019-SNAPSHOT) for context '/protectoria'

      11:56:53,853 SEVERE [javax.enterprise.resource.webcontainer.jsf.application] (MSC service thread 1-3) JSF1051: Service entry 'org.jboss.as.web.deployment.jsf.JsfInjectionProvider' does not extend DiscoverableInjectionProvider.  Entry will be ignored.

      11:56:53,856 INFO  [javax.enterprise.resource.webcontainer.jsf.application] (MSC service thread 1-3) JSF1048: PostConstruct/PreDestroy annotations present.  ManagedBeans methods marked with these annotations will have said annotations processed.

      11:56:54,308 INFO  [org.jboss.web] (MSC service thread 1-3) JBAS018210: Registering web context: /protectoria

      11:56:54,315 INFO  [org.jboss.as] (MSC service thread 1-3) JBAS015951: Admin console listening on http://127.0.0.1:9990

      11:56:54,317 INFO  [org.jboss.as] (MSC service thread 1-3) JBAS015874: JBoss AS 7.1.1.Final "Brontes" started in 32889ms - Started 1626 of 1711 services (84 services are passive or on-demand)

      11:56:54,447 INFO  [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS018559: Deployed "protectoria.ear"

       

      and when i access the app on localhost getting 404.

       

      please do suggest.

       

      Thanks in advance:)

        • 1. Re: I am using JSF 1.2 and getting some problem while accessing the application.
          nickarls

          In what way have you hooked up your application to use JSF 1.2?

          • 2. Re: I am using JSF 1.2 and getting some problem while accessing the application.
            gg.svce

            Thanks for reply...

             

            I have created a folder inside D:\jboss-as-7.1.1.Final\modules\javax\faces\api\ named 1.2 and added jsf library in that folder

            1. jsf-api-1.2_15-jbossorg-2
            2. and created module.xml:

            <module xmlns="urn:jboss:module:1.1" name="javax.faces.api" slot="1.2">

                <dependencies>

                    <module name="javax.el.api" export="true"/>

                    <module name="javax.servlet.api" export="true"/>

                    <module name="javax.servlet.jsp.api" export="true"/>

                    <module name="javax.servlet.jstl.api" export="true"/>

                    <module name="javax.validation.api" export="true"/>

                </dependencies>

             

             

                <resources>

                    <resource-root path="jsf-api-1.2_15-jbossorg-2.jar"/>

                    <!-- Insert resources here -->

                </resources>

            </module>

            then i have used this modules in jboss-deployment-structure.xml

            <jboss-deployment-structure xmlns="urn:jboss:deployment-structure:1.0">

                   <ear-subdeployments-isolated>true</ear-subdeployments-isolated>

                                <deployment>

                                               <dependencies>

                                                              <module name="org.apache.log4j" export="true" />

                                   <module name="org.dom4j" export="true" />

                                                              <module name="org.apache.commons.logging" export="true" />

                                                              <module name="org.apache.commons.collections" export="true" />

                                                              <module name="javax.faces.api" slot="1.2" export="true" />

                                                              <module name="com.sun.jsf-impl" slot="1.2" export="true" />

                                                              <module name="org.hibernate" slot="main" export="true" />

                                                              <module name="org.hibernate.validator" slot="main" export="true"></module>

                                          </dependencies>

                           </deployment>

                           <sub-deployment name="app.jar">

                                          <exclusions>

                                                         <module name="javax.faces.api" slot="main" />

                                          <module name="com.sun.jsf-impl" slot="main" />

                                          </exclusions>

                           </sub-deployment>

                           <sub-deployment name="app.war">

                                          <exclusions>

                                                         <module name="javax.faces.api" slot="main" />

                                                         <module name="com.sun.jsf-impl" slot="main" />

                                          </exclusions>

                                          <dependencies>

                                                         <module name="javax.faces.api" slot="1.2" />

                                                         <module name="com.sun.jsf-impl" slot="1.2" />

                                 </dependencies>

                       </sub-deployment>

            </jboss-deployment-structure>

            and also added jar to ear but getting the same error.

             

            please do suggest.

            • 3. Re: I am using JSF 1.2 and getting some problem while accessing the application.
              nickarls

              Why did you have to create the 1.2 module yourself? Mine 7.1.1 already has it OOTB (at least I can't recall adding it)

               

              From a sibling thread, try taking out the jsf module refs from the jboss-deployment-structure, remove all JSF libs from your app and put this in your web.xml

               

              <context-param>
                    <param-name>org.jboss.jbossfaces.JSF_CONFIG_NAME</param-name>
                    <param-value>Mojarra-1.2</param-value>
              </context-param>

               


               

              Message was edited by: Nicklas Karlsson

              1 of 1 people found this helpful
              • 4. Re: I am using JSF 1.2 and getting some problem while accessing the application.
                gg.svce

                Thanks Nicklas for replying...

                 

                we are using the same folder provided by JBOSS 7.1.1 Final i.e 1.2 folder for jsf 1.2 and i have added below code in my web.xml but still getting the same problem.

                <context-param>

                      <param-name>org.jboss.jbossfaces.JSF_CONFIG_NAME</param-name>

                      <param-value>Mojarra-1.2</param-value>

                </context-param>

                14:05:39,201 INFO  [org.jboss.web] (MSC service thread 1-4) JBAS018210: Registering web context: /app

                14:05:39,837 INFO  [javax.enterprise.resource.webcontainer.jsf.config] (MSC service thread 1-1) Initializing Mojarra (1.2_15.jbossorg-1-20111019-SNAPSHOT) for context '/protectoria'

                14:05:41,977 SEVERE [javax.enterprise.resource.webcontainer.jsf.application] (MSC service thread 1-1) JSF1051: Service entry 'org.jboss.as.web.deployment.jsf.JsfInjectionProvider' does not extend DiscoverableInjectionProvider.  Entry will be ignored.

                14:05:41,980 INFO  [javax.enterprise.resource.webcontainer.jsf.application] (MSC service thread 1-1) JSF1048: PostConstruct/PreDestroy annotations present.  ManagedBeans methods marked with these annotations will have said annotations processed.

                14:05:42,289 INFO  [org.jboss.web] (MSC service thread 1-1) JBAS018210: Registering web context: /protectoria

                14:05:42,292 INFO  [org.jboss.as] (MSC service thread 1-1) JBAS015951: Admin console listening on http://127.0.0.1:9990

                14:05:42,294 INFO  [org.jboss.as] (MSC service thread 1-1) JBAS015874: JBoss AS 7.1.1.Final "Brontes" started in 108669ms - Started 1630 of 1715 services (84 services are passive or on-demand)

                14:05:42,759 INFO  [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS018559: Deployed "protectoria.ear"..

                 

                and i am not able to access my application on localhost.

                 

                please do suggest?

                 

                i am attaching server.log file you can refer it for more info.

                • 5. Re: I am using JSF 1.2 and getting some problem while accessing the application.
                  nickarls

                  And you are sure you have no jsf libs bundled with your application (e.g. some war\WEB-INF\lib)?

                  • 6. Re: I am using JSF 1.2 and getting some problem while accessing the application.
                    gg.svce

                    I have jsf jars in my application libs folder.

                    should i remove them all?

                    • 7. Re: I am using JSF 1.2 and getting some problem while accessing the application.
                      gg.svce

                      Hi I am getting the below error when i removed all three jsf jars from my lib folder:

                       

                      15:08:00,506 INFO  [org.hibernate.hql.internal.ast.ASTQueryTranslatorFactory] (MSC service thread 1-3) HHH000397: Using ASTQueryTranslatorFactory

                      15:08:00,667 INFO  [org.hibernate.validator.util.Version] (MSC service thread 1-3) Hibernate Validator 4.2.0.Final

                      15:08:02,375 INFO  [org.jboss.web] (MSC service thread 1-1) JBAS018210: Registering web context: /app

                      15:08:02,901 INFO  [javax.enterprise.resource.webcontainer.jsf.config] (MSC service thread 1-3) Initializing Mojarra (1.2_15.jbossorg-1-20111019-SNAPSHOT) for context '/protectoria'

                      15:08:04,071 SEVERE [javax.enterprise.resource.webcontainer.jsf.application] (MSC service thread 1-3) JSF1051: Service entry 'org.jboss.as.web.deployment.jsf.JsfInjectionProvider' does not extend DiscoverableInjectionProvider.  Entry will be ignored.

                      15:08:04,074 INFO  [javax.enterprise.resource.webcontainer.jsf.application] (MSC service thread 1-3) JSF1048: PostConstruct/PreDestroy annotations present.  ManagedBeans methods marked with these annotations will have said annotations processed.

                      15:08:04,146 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/protectoria]] (MSC service thread 1-3) Exception sending context initialized event to listener instance of class com.sun.faces.config.ConfigureListener: com.sun.faces.config.ConfigurationException: CONFIGURATION FAILED! com.sun.facelets.compiler.Compiler from [Module "deployment.protectoria.ear:main" from Service Module Loader]

                                at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:215) [jsf-impl-1.2_15-jbossorg-2.jar:1.2_15.jbossorg-1-20111019-SNAPSHOT]

                                at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:200) [jsf-impl-1.2_15-jbossorg-2.jar:1.2_15.jbossorg-1-20111019-SNAPSHOT]

                                at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:3392) [jbossweb-7.0.13.Final.jar:]

                                at org.apache.catalina.core.StandardContext.start(StandardContext.java:3850) [jbossweb-7.0.13.Final.jar:]

                                at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:90) [jboss-as-web-7.1.1.Final.jar:7.1.1.Final]

                                at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)

                                at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)

                                at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_21]

                                at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_21]

                                at java.lang.Thread.run(Thread.java:619) [rt.jar:1.6.0_21]

                      Caused by: java.lang.ClassNotFoundException: com.sun.facelets.compiler.Compiler from [Module "deployment.protectoria.ear:main" from Service Module Loader]

                                at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:190)

                                at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468)

                                at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:456)

                                at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:423)

                                at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398)

                                at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:120)

                                at java.lang.Class.getDeclaredConstructors0(Native Method) [rt.jar:1.6.0_21]

                                at java.lang.Class.privateGetDeclaredConstructors(Class.java:2389) [rt.jar:1.6.0_21]

                                at java.lang.Class.getConstructor0(Class.java:2699) [rt.jar:1.6.0_21]

                                at java.lang.Class.newInstance0(Class.java:326) [rt.jar:1.6.0_21]

                                at java.lang.Class.newInstance(Class.java:308) [rt.jar:1.6.0_21]

                                at com.sun.faces.config.processor.AbstractConfigProcessor.createInstance(AbstractConfigProcessor.java:243) [jsf-impl-1.2_15-jbossorg-2.jar:1.2_15.jbossorg-1-20111019-SNAPSHOT]

                                at com.sun.faces.config.processor.LifecycleConfigProcessor.addPhaseListeners(LifecycleConfigProcessor.java:142) [jsf-impl-1.2_15-jbossorg-2.jar:1.2_15.jbossorg-1-20111019-SNAPSHOT]

                                at com.sun.faces.config.processor.LifecycleConfigProcessor.process(LifecycleConfigProcessor.java:115) [jsf-impl-1.2_15-jbossorg-2.jar:1.2_15.jbossorg-1-20111019-SNAPSHOT]

                                at com.sun.faces.config.processor.AbstractConfigProcessor.invokeNext(AbstractConfigProcessor.java:108) [jsf-impl-1.2_15-jbossorg-2.jar:1.2_15.jbossorg-1-20111019-SNAPSHOT]

                                at com.sun.faces.config.processor.FactoryConfigProcessor.process(FactoryConfigProcessor.java:133) [jsf-impl-1.2_15-jbossorg-2.jar:1.2_15.jbossorg-1-20111019-SNAPSHOT]

                                at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:205) [jsf-impl-1.2_15-jbossorg-2.jar:1.2_15.jbossorg-1-20111019-SNAPSHOT]

                                ... 9 more

                       

                       

                      15:08:04,189 ERROR [org.apache.catalina.core.StandardContext] (MSC service thread 1-3) Error listenerStart

                      15:08:04,191 ERROR [org.apache.catalina.core.StandardContext] (MSC service thread 1-3) Context [/protectoria] startup failed due to previous errors

                      15:08:04,307 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-3) MSC00001: Failed to start service jboss.web.deployment.default-host./protectoria: org.jboss.msc.service.StartException in service jboss.web.deployment.default-host./protectoria: JBAS018040: Failed to start context

                                at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:95)

                                at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]

                                at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]

                                at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_21]

                                at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_21]

                                at java.lang.Thread.run(Thread.java:619) [rt.jar:1.6.0_21]

                       

                       

                      15:08:04,325 INFO  [org.jboss.as] (MSC service thread 1-3) JBAS015951: Admin console listening on http://127.0.0.1:9990

                      15:08:04,326 ERROR [org.jboss.as] (MSC service thread 1-3) JBAS015875: JBoss AS 7.1.1.Final "Brontes" started (with errors) in 94743ms - Started 1628 of 1715 services (2 services failed or missing dependencies, 84 services are passive or on-demand)

                      15:08:04,531 INFO  [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS015870: Deploy of deployment "protectoria.ear" was rolled back with failure message {"JBAS014671: Failed services" => {"jboss.web.deployment.default-host./protectoria" => "org.jboss.msc.service.StartException in service jboss.web.deployment.default-host./protectoria: JBAS018040: Failed to start context"}}

                      15:08:04,606 INFO  [org.jboss.as.webservices] (MSC service thread 1-1) JBAS015540: Stopping service jboss.ws.endpoint."protectoria.ear"."app.jar".ThickClientSharedSecretEncryptedWS

                      15:08:04,608 INFO  [org.jboss.ws.common.management.DefaultEndpointRegistry] (MSC service thread 1-1) remove: jboss.ws:context=app,endpoint=ThickClientSharedSecretEncryptedWS

                      15:08:04,615 INFO  [org.jboss.as.webservices] (MSC service thread 1-1) JBAS015540: Stopping service jboss.ws.endpoint."protectoria.ear"."app.jar".CoreWsImpl

                      15:08:04,617 INFO  [org.jboss.ws.common.management.DefaultEndpointRegistry] (MSC service thread 1-1) remove: jboss.ws:context=app,endpoint=CoreWsImpl

                      15:08:04,750 INFO  [org.jboss.as.jpa] (MSC service thread 1-2) JBAS011403: Stopping Persistence Unit Service 'protectoria.ear/app.jar#protectoria'

                      15:08:04,856 INFO  [org.jboss.as.webservices] (MSC service thread 1-3) JBAS015540: Stopping service jboss.ws.port-component-link

                      15:08:04,913 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-2) JBAS015877: Stopped deployment app.war in 380ms

                      15:08:04,915 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-2) JBAS015877: Stopped deployment app.jar in 382ms

                      15:08:05,029 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-2) JBAS015877: Stopped deployment protectoria.ear in 497ms

                      15:08:05,032 INFO  [org.jboss.as.controller] (DeploymentScanner-threads - 2) JBAS014774: Service status report

                      JBAS014777:   Services which failed to start:      service jboss.web.deployment.default-host./protectoria: org.jboss.msc.service.StartException in service jboss.web.deployment.default-host./protectoria: JBAS018040: Failed to start context

                       

                       

                      15:08:05,037 ERROR [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) {"JBAS014653: Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-2" => {"JBAS014671: Failed services" => {"jboss.web.deployment.default-host./protectoria" => "org.jboss.msc.service.StartException in service jboss.web.deployment.default-host./protectoria: JBAS018040: Failed to start context"}}}}

                      I have removed below three jars from :

                       

                      jboss-as-7.1.1.Final\standalone\deployments\protectoria.ear\app.war\WEB-INF\lib\

                       

                      <exclude name="jsf-api.jar" />

                                                              <exclude name="jsf-facelets.jar" />

                                                              <exclude name="jsf-impl.jar" />

                      and also from :

                       

                      jboss-as-7.1.1.Final\standalone\deployments\protectoria.ear\ here as well

                       

                       

                      please do suggest?

                       

                      what can i do to deploy it successfully.

                      • 8. Re: I am using JSF 1.2 and getting some problem while accessing the application.
                        nickarls

                        Have you removed them physically from the archive? And you're not using a 2.0 faces-config.xml?

                        • 9. Re: I am using JSF 1.2 and getting some problem while accessing the application.
                          gg.svce

                          Yes i have removed jsf jars physically from my ear file and i am using jsf1.2 and also used faces-config.xml.

                           

                          location of my faces-config.xml:

                          jboss-as-7.1.1.Final\standalone\deployments\protectoria.ear\app.war\WEB-INF\

                           

                          faces-config.xml

                          <faces-config version="1.2"

                             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-facesconfig_1_2.xsd">

                           

                           

                             <application>

                                  <view-handler>org.jboss.seam.ui.facelet.SeamFaceletViewHandler</view-handler>

                                  <el-resolver>org.jboss.seam.jsf.SeamELResolver</el-resolver>

                                  <message-bundle>no.messageman.protectoria.core.properties.mymessages</message-bundle>

                                 

                              </application>

                           

                           

                              <validator>

                                  <validator-id>protectoria.MobileValidator</validator-id>

                                  <validator-class>no.messageman.protectoria.core.validation.MobileValidator</validator-class>

                              </validator>

                             

                               <validator>

                                  <validator-id>protectoria.ZipCodeValidator</validator-id>

                                  <validator-class>no.messageman.protectoria.core.validation.ZipCodeValidator</validator-class>

                              </validator>

                             

                              <validator>

                                  <validator-id>protectoria.EmailValidator</validator-id>

                                  <validator-class>no.messageman.protectoria.core.validation.EmailValidator</validator-class>

                              </validator>

                             

                               <validator>

                                  <validator-id>protectoria.PinRequiredValidator</validator-id>

                                  <validator-class>no.messageman.protectoria.core.validation.PinRequiredValidator</validator-class>

                              </validator>

                            

                              <validator>

                                  <validator-id>protectoria.CVCValidator</validator-id>

                                  <validator-class>no.messageman.protectoria.core.validation.CVCValidator</validator-class>

                              </validator>

                             

                             <validator>

                                  <validator-id>protectoria.CreditCardValidator</validator-id>

                                  <validator-class>no.messageman.protectoria.core.validation.CreditCardValidator</validator-class>

                              </validator>

                             

                              <validator>

                                  <validator-id>protectoria.CompulsoryMobileValidator</validator-id>

                                  <validator-class>no.messageman.protectoria.core.validation.CompulsoryMobileValidator</validator-class>

                              </validator>

                             

                              <validator>

                                  <validator-id>protectoria.FolderValidator</validator-id>

                                  <validator-class>no.messageman.protectoria.core.validation.FolderValidator</validator-class>

                              </validator>

                             

                               <validator>

                                  <validator-id>protectoria.FolderRequiredValidator</validator-id>

                                  <validator-class>no.messageman.protectoria.core.validation.FolderRequiredValidator</validator-class>

                              </validator>

                             

                              <validator>

                                  <validator-id>protectoria.PasswordValidator</validator-id>

                                  <validator-class>no.messageman.protectoria.core.validation.PasswordValidator</validator-class>

                              </validator>

                               <validator>

                                  <validator-id>protectoria.ProfileNameValidator</validator-id>

                                  <validator-class>no.messageman.protectoria.core.validation.ProfileNameValidator</validator-class>

                              </validator>

                               <validator>

                                  <validator-id>protectoria.CompanyNameValidator</validator-id>

                                  <validator-class>no.messageman.protectoria.core.validation.CompanyNameValidator</validator-class>

                              </validator>

                              <validator>

                                  <validator-id>protectoria.TelephoneValidator</validator-id>

                                  <validator-class>no.messageman.protectoria.core.validation.TelephoneValidator</validator-class>

                              </validator>

                               <validator>

                                  <validator-id>protectoria.CityValidator</validator-id>

                                  <validator-class>no.messageman.protectoria.core.validation.CityValidator</validator-class>

                              </validator>

                              <validator>

                                  <validator-id>protectoria.StateValidator</validator-id>

                                  <validator-class>no.messageman.protectoria.core.validation.StateValidator</validator-class>

                              </validator>

                              <validator>

                                        <validator-id>protectoria.CustomNotificationContentValidator</validator-id>

                                        <validator-class>no.messageman.protectoria.core.validation.CustomNotificationContentValidator</validator-class>

                              </validator>

                              <validator>

                                        <validator-id>protectoria.CustomNotificationSubjectValidator</validator-id>

                                        <validator-class>no.messageman.protectoria.core.validation.CustomNotificationSubjectValidator</validator-class>

                              </validator>

                              <lifecycle>

                                  <phase-listener>org.jboss.seam.jsf.SeamPhaseListener</phase-listener>

                              </lifecycle>

                          </faces-config>

                          there is one class missing java.lang.ClassNotFoundException: com.sun.facelets.compiler.Compiler

                           

                          which is present in jsf-facelets.jar, what should i do to deploy the same.

                           

                          Thanks:)

                          • 10. Re: I am using JSF 1.2 and getting some problem while accessing the application.
                            nickarls

                            Hmm. Not sure how you use facelets with 1.2. What happens if you place it in the same module dir as the jsf implementation 1.2 jar and add it to the module.xml?

                            • 11. Re: I am using JSF 1.2 and getting some problem while accessing the application.
                              ssilvert

                              If you are using Facelets with 1.2 then you do need the Facelets jar in your WAR.  Facelets is not built in to JSF 1.2.

                               

                              But do remove jsf-api.jar and jsf-impl.jar.  You get those via

                              org.jboss.jbossfaces.JSF_CONFIG_NAME=Mojarra-1.2

                               

                              Configure Facelets as per the instructions on the old Facelets web site.

                               

                              Stan

                              • 12. Re: I am using JSF 1.2 and getting some problem while accessing the application.
                                gg.svce

                                Hi Nickal,

                                 

                                I tried to add module for faclets but it was giving some exception so i have added jsf-facelets.jar in ear lib and removed all the other jsf jars from the application.

                                still facing the same problem.

                                 

                                please do suggest?

                                 

                                is this SEVERE error is responsible for not able to access the application locally and what does it mean to say, i am not able to resolve the issue please suggest?

                                 

                                Thanks:)

                                • 13. Re: I am using JSF 1.2 and getting some problem while accessing the application.
                                  gg.svce

                                  Thanks Stan for reply:)

                                   

                                  i have added facelets jar in my ear lib and i am able to deploy the app but again same problem i am facing below:

                                   

                                  17:24:20,426 SEVERE [javax.enterprise.resource.webcontainer.jsf.application] (MSC service thread 1-2) JSF1051: Service entry 'org.jboss.as.web.deployment.jsf.JsfInjectionProvider' does not extend DiscoverableInjectionProvider.  Entry will be ignored.

                                  17:24:20,426 SEVERE [javax.enterprise.resource.webcontainer.jsf.application] (MSC service thread 1-2) JSF1051: Service entry 'org.jboss.as.web.deployment.jsf.JsfInjectionProvider' does not extend DiscoverableInjectionProvider.  Entry will be ignored.

                                   

                                   

                                  and i am not able to access the application on localhost....can you please tell me wht the above error mean ....what should i do to remove it and is that the reason why i am not able to access my app locally??

                                   

                                  i dont have any any jsf jar now in my ear i have removed it from war as well as ear lib folder.

                                   

                                  please do suggest?

                                   

                                  Thanks:)