Also wild guessing, sorry: Maybe some other ServletContextListener fails and thus is preventing the MyFaces ServletContextListener to run.
Regards, Jakob 2010/12/13 Werner Punz <[email protected]>: > Just a wild guessing here, maybe weblogic delivers its own jsf > implementation from bottom up and it overrides myfaces in the classloader > hierarchy. > > Werner > > > Am 13.12.10 13:05, schrieb Marcio Carvalho: >> >> Hi all, >> >> I have a myfaces 1.2 web application which I'm trying to deploy on >> Weblogic >> 10.3. >> >> Every time I try I got the error: >> >> [HTTP:101216]Servlet: "Faces Servlet" failed to preload on startup in Web >> application: "mevi.war". java.lang.IllegalStateException: No Factories >> configured for this Application. This happens if the faces-initialization >> does not work at all - make sure that you properly include all >> configuration >> settings necessary for a basic faces application and that all the >> necessary >> libs are included. Also check the logging output of your web application >> and >> your container for any exceptions! If you did that and find nothing, the >> mistake might be due to the fact that you use some special web-containers >> which do not support registering context-listeners via TLD files and a >> context listener is not setup in your web.xml. A typical config looks like >> this;<listener> >> >> <listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class> >> </listener> at >> javax.faces.FactoryFinder.getFactory(FactoryFinder.java:106) >> at javax.faces.webapp.FacesServlet.init(FacesServlet.java:137) at >> org.apache.myfaces.webapp.MyFacesServlet.init(MyFacesServlet.java:94) at >> >> br.com.petrobras.fwjw.web.FrameworkFacesServlet.init(FrameworkFacesServlet.java:38) >> at >> >> weblogic.servlet.internal.StubSecurityHelper$ServletInitAction.run(StubSecurityHelper.java:283) >> at >> >> weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321) >> at weblogic.security.service.SecurityManager.runAs(Unknown Source) at >> >> weblogic.servlet.internal.StubSecurityHelper.createServlet(StubSecurityHelper.java:64) >> at >> >> weblogic.servlet.internal.StubLifecycleHelper.createOneInstance(StubLifecycleHelper.java:58) >> at >> >> weblogic.servlet.internal.StubLifecycleHelper.<init>(StubLifecycleHelper.java:48) >> at >> >> weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:521) >> at >> >> weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppServletContext.java:1893) >> at >> >> weblogic.servlet.internal.WebAppServletContext.loadServletsOnStartup(WebAppServletContext.java:1870) >> at >> >> weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:1790) >> at >> >> weblogic.servlet.internal.WebAppServletContext.start(WebAppServletContext.java:2999) >> at >> >> weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:1371) >> at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:468) at >> >> weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:204) >> at >> >> weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37) >> at >> >> weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:60) >> at >> >> weblogic.application.internal.flow.ScopedModuleDriver.start(ScopedModuleDriver.java:200) >> at >> >> weblogic.application.internal.flow.ModuleListenerInvoker.start(ModuleListenerInvoker.java:117) >> at >> >> weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:204) >> at >> >> weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37) >> at >> >> weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:60) >> at >> >> weblogic.application.internal.flow.StartModulesFlow.activate(StartModulesFlow.java:27) >> at >> >> weblogic.application.internal.BaseDeployment$2.next(BaseDeployment.java:635) >> at >> >> weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37) >> at >> >> weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:212) >> at >> >> weblogic.application.internal.SingleModuleDeployment.activate(SingleModuleDeployment.java:16) >> at >> >> weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:162) >> at >> >> weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(AppContainerInvoker.java:79) >> at >> >> weblogic.deploy.internal.targetserver.operations.AbstractOperation.activate(AbstractOperation.java:569) >> at >> >> weblogic.deploy.internal.targetserver.operations.ActivateOperation.activateDeployment(ActivateOperation.java:140) >> at >> >> weblogic.deploy.internal.targetserver.operations.ActivateOperation.doCommit(ActivateOperation.java:106) >> at >> >> weblogic.deploy.internal.targetserver.operations.StartOperation.doCommit(StartOperation.java:143) >> at >> >> weblogic.deploy.internal.targetserver.operations.AbstractOperation.commit(AbstractOperation.java:323) >> at >> >> weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentCommit(DeploymentManager.java:820) >> at >> >> weblogic.deploy.internal.targetserver.DeploymentManager.activateDeploymentList(DeploymentManager.java:1227) >> at >> >> weblogic.deploy.internal.targetserver.DeploymentManager.handleCommit(DeploymentManager.java:436) >> at >> >> weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.commit(DeploymentServiceDispatcher.java:163) >> at >> >> weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doCommitCallback(DeploymentReceiverCallbackDeliverer.java:181) >> at >> >> weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$100(DeploymentReceiverCallbackDeliverer.java:12) >> at >> >> weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$2.run(DeploymentReceiverCallbackDeliverer.java:67) >> at >> >> weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:516) >> at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201) at >> weblogic.work.ExecuteThread.run(ExecuteThread.java:173) >> >> I've googled for a week and haven't found any directions. >> >> I already declared the StartupServletContextListener on my web.xml. >> >> Here is the list of jars included in my app.war: >> >> activation.jar >> antlr-2.7.6.jar >> asm-attrs.jar >> asm.jar >> cglib-2.1.3.jar >> common-annotations.jar >> commons-beanutils-1.7.0.jar >> commons-codec-1.3.jar >> commons-collections-3.2.jar >> commons-digester-1.8.jar >> commons-discovery-0.4.jar >> commons-el-1.0.jar >> commons-email-1.0.jar >> commons-fileupload-1.2.1.jar >> commons-io-1.4.jar >> commons-jexl-1.1.jar >> commons-lang-2.1.jar >> commons-logging-1.1.1.jar >> dom4j-1.6.1.jar >> gif-plugin-0.1.jar >> jaxen-1.1.1.jar >> jsf-facelets.jar >> jstl-api-1.2.jar >> jstl-impl-1.2.jar >> jta.jar >> log4j-1.2.14.jar >> myfaces-api-1.2.9.jar >> myfaces-impl-1.2.9.jar >> richfaces-api-3.3.2.SR1.jar >> richfaces-impl-3.3.2.SR1.jar >> richfaces-ui-3.3.2.SR1.jar >> saxpath.jar >> tomahawk-sandbox12-1.1.9-SNAPSHOT.jar >> tomahawk12-1.1.8.jar >> xml-apis.jar >> >> I omitted only the hibernate apis. >> >> Is there anything missing for myfaces 1.2 get to work properly with the >> weblogic I'm using? >> >> PS: in weblogic 9.2 this application works just fine. >> >> Thanks for any help. >> >> Marcio >> >> "Do or do not. There is no try." (Master Yoda) >> ============================= >> Marcio Ribeiro de Carvalho >> [email protected] >> [email protected] >> ============================= >> > > > -- Jakob Korherr blog: http://www.jakobk.com twitter: http://twitter.com/jakobkorherr work: http://www.irian.at

