1 2 Previous Next 28 Replies Latest reply on Sep 11, 2012 8:33 PM by Ken Finnigan

    Deploy error with PortletBridge 3.0.0, GateIn3.3.0_JBossAS6, Richfaces 4.0

    Joe Padula Novice

      Hi,

      I am trying to migrate from GateIn 3.1.0/PortletBridge2.1,Richfaces 3.3.0 to PortletBridge 3.0, GateIn3.3.0_JBossAS6, Richfaces 4.0 but I am having classpath issues.

       

      In my server/default/lib folder I have:

       

      cssparser-0.9.5.jar

      guava-r08.jar

      ojdbc5.jar

      portletbridge-api-3.0.0-Final.jar

      portletbridge-impl-3.0.0-Final.jar

      richfaces-components-api-4.0.0.Final.jar

      richfaces-components-ui-4.0.0.Final.jar

      richfaces-core-api-4.0.0.Final.jar

      richfaces-core-impl-4.0.0.Final.jar

      sac-1.3.jar

      spring.jar

       

      When I launch GateIn, I get this error:

      09:50:45,129 INFO  [config] Initializing Mojarra 2.0.3 ( b05) for context '/dev-portlet-session-management'

      09:50:47,547 ERROR [[/dev-portlet-session-management]] Exception sending context initialized event to listener instance of class org.jboss.web.jsf.integration.config.JBossMojarra20ConfigureListener: java.lang.NoClassDefFoundError: javax/faces/application/ApplicationFactory

                at java.lang.ClassLoader.defineClass1(Native Method) [:1.6.0_33]

                at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631) [:1.6.0_33]

                at java.lang.ClassLoader.defineClass(ClassLoader.java:615) [:1.6.0_33]

                at org.jboss.classloader.spi.base.BaseClassLoader.access$200(BaseClassLoader.java:52) [jboss-classloader.jar:2.2.0.GA]

                at org.jboss.classloader.spi.base.BaseClassLoader$2.run(BaseClassLoader.java:650) [jboss-classloader.jar:2.2.0.GA]

                at org.jboss.classloader.spi.base.BaseClassLoader$2.run(BaseClassLoader.java:609) [jboss-classloader.jar:2.2.0.GA]

                at java.security.AccessController.doPrivileged(Native Method) [:1.6.0_33]

                at org.jboss.classloader.spi.base.BaseClassLoader.loadClassLocally(BaseClassLoader.java:608) [jboss-classloader.jar:2.2.0.GA]

                at org.jboss.classloader.spi.base.BaseClassLoader.loadClassLocally(BaseClassLoader.java:585) [jboss-classloader.jar:2.2.0.GA]

                at org.jboss.classloader.spi.base.BaseDelegateLoader.loadClass(BaseDelegateLoader.java:156) [jboss-classloader.jar:2.2.0.GA]

                at org.jboss.classloader.spi.filter.FilteredDelegateLoader.doLoadClass(FilteredDelegateLoader.java:141) [jboss-classloader.jar:2.2.0.GA]

                at org.jboss.classloader.spi.filter.FilteredDelegateLoader.loadClass(FilteredDelegateLoader.java:132) [jboss-classloader.jar:2.2.0.GA]

                at org.jboss.classloader.spi.base.ClassLoadingTask$ThreadTask.run(ClassLoadingTask.java:461) [jboss-classloader.jar:2.2.0.GA]

                at org.jboss.classloader.spi.base.ClassLoaderManager.nextTask(ClassLoaderManager.java:262) [jboss-classloader.jar:2.2.0.GA]

                at org.jboss.classloader.spi.base.ClassLoaderManager.process(ClassLoaderManager.java:161) [jboss-classloader.jar:2.2.0.GA]

                at org.jboss.classloader.spi.base.BaseClassLoaderDomain.loadClass(BaseClassLoaderDomain.java:260) [jboss-classloader.jar:2.2.0.GA]

                at org.jboss.classloader.spi.base.BaseClassLoaderDomain.loadClass(BaseClassLoaderDomain.java:1152) [jboss-classloader.jar:2.2.0.GA]

                at org.jboss.classloader.spi.base.BaseClassLoader.loadClassFromDomain(BaseClassLoader.java:886) [jboss-classloader.jar:2.2.0.GA]

                at org.jboss.classloader.spi.base.BaseClassLoader.doLoadClass(BaseClassLoader.java:505) [jboss-classloader.jar:2.2.0.GA]

                at org.jboss.classloader.spi.base.BaseClassLoader.loadClass(BaseClassLoader.java:450) [jboss-classloader.jar:2.2.0.GA]

                at java.lang.ClassLoader.loadClass(ClassLoader.java:295) [:1.6.0_33]

                at java.lang.ClassLoader.loadClass(ClassLoader.java:247) [:1.6.0_33]

                at java.lang.Class.forName0(Native Method) [:1.6.0_33]

                at java.lang.Class.forName(Class.java:247) [:1.6.0_33]

                at javax.faces.FactoryFinder.getImplGivenPreviousImpl(FactoryFinder.java:577) [:2.0.3-]

                at javax.faces.FactoryFinder.getImplementationInstance(FactoryFinder.java:468) [:2.0.3-]

                at javax.faces.FactoryFinder.access$400(FactoryFinder.java:135) [:2.0.3-]

                at javax.faces.FactoryFinder$FactoryManager.getFactory(FactoryFinder.java:792) [:2.0.3-]

                at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:302) [:2.0.3-]

                at com.sun.faces.config.processor.FactoryConfigProcessor.verifyFactoriesExist(FactoryConfigProcessor.java:290) [:2.0.3-]

                at com.sun.faces.config.processor.FactoryConfigProcessor.process(FactoryConfigProcessor.java:209) [:2.0.3-]

                at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:332) [:2.0.3-]

                at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:220) [:2.0.3-]

                at org.jboss.web.jsf.integration.config.JBossMojarraConfigureListener.contextInitialized(JBossMojarraConfigureListener.java:58) [:1.0.3]

                at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:3369) [:6.0.0.Final]

                at org.apache.catalina.core.StandardContext.start(StandardContext.java:3828) [:6.0.0.Final]

                at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:294) [:6.0.0.Final]

                at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:146) [:6.0.0.Final]

                at org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:477) [:6.0.0.Final]

                at org.jboss.web.deployers.WebModule.startModule(WebModule.java:118) [:6.0.0.Final]

                at org.jboss.web.deployers.WebModule.start(WebModule.java:95) [:6.0.0.Final]

                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [:1.6.0_33]

                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [:1.6.0_33]

                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [:1.6.0_33]

                at java.lang.reflect.Method.invoke(Method.java:597) [:1.6.0_33]

                at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157) [:6.0.0.GA]

                at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96) [:6.0.0.GA]

                at org.jboss.mx.server.Invocation.invoke(Invocation.java:88) [:6.0.0.GA]

                at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:271) [:6.0.0.GA]

                at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:670) [:6.0.0.GA]

                at org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:206) [:2.2.0.GA]

                at $Proxy41.start(Unknown Source)          at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:53) [:2.2.0.GA]

                at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:41) [:2.2.0.GA]

                at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62) [jboss-dependency.jar:2.2.0.GA]

                at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71) [jboss-dependency.jar:2.2.0.GA]

                at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51) [jboss-dependency.jar:2.2.0.GA]

                at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:379) [jboss-dependency.jar:2.2.0.GA]

                at org.jboss.system.microcontainer.ServiceControllerContext.install(ServiceControllerContext.java:301) [:2.2.0.GA]

                at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:2044) [jboss-dependency.jar:2.2.0.GA]

                at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:1083) [jboss-dependency.jar:2.2.0.GA]

                at org.jboss.dependency.plugins.AbstractController.executeOrIncrementStateDirectly(AbstractController.java:1322) [jboss-dependency.jar:2.2.0.GA]

                at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1246) [jboss-dependency.jar:2.2.0.GA]

                at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1139) [jboss-dependency.jar:2.2.0.GA]

                at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:894) [jboss-dependency.jar:2.2.0.GA]

                at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:641) [jboss-dependency.jar:2.2.0.GA]

                at org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataDeployer.deploy(BeanMetaDataDeployer.java:182) [:2.2.0.GA]

                at org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataDeployer.deploy(BeanMetaDataDeployer.java:58) [:2.2.0.GA]

                at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62) [:2.2.0.GA]

                at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:55) [:2.2.0.GA]

                at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:179) [:2.2.0.GA]

                at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1832) [:2.2.0.GA]

                at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1550) [:2.2.0.GA]

                at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1571) [:2.2.0.GA]

                at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1491) [:2.2.0.GA]

                at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:379) [jboss-dependency.jar:2.2.0.GA]

                at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:2044) [jboss-dependency.jar:2.2.0.GA]

                at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:1083) [jboss-dependency.jar:2.2.0.GA]

                at org.jboss.dependency.plugins.AbstractController.executeOrIncrementStateDirectly(AbstractController.java:1322) [jboss-dependency.jar:2.2.0.GA]

                at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1246) [jboss-dependency.jar:2.2.0.GA]

                at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1139) [jboss-dependency.jar:2.2.0.GA]

                at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:939) [jboss-dependency.jar:2.2.0.GA]

                at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:654) [jboss-dependency.jar:2.2.0.GA]

                at org.jboss.deployers.plugins.deployers.DeployersImpl.change(DeployersImpl.java:1983) [:2.2.0.GA]

                at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:1076) [:2.2.0.GA]

                at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:679) [:2.2.0.GA]

                at org.jboss.system.server.profileservice.deployers.MainDeployerPlugin.process(MainDeployerPlugin.java:106) [:6.0.0.Final]

                at org.jboss.profileservice.dependency.ProfileControllerContext$DelegateDeployer.process(ProfileControllerContext.java:143) [:0.2.2]

                at org.jboss.profileservice.dependency.ProfileDeployAction.deploy(ProfileDeployAction.java:151) [:0.2.2]

                at org.jboss.profileservice.dependency.ProfileDeployAction.installActionInternal(ProfileDeployAction.java:94) [:0.2.2]

                at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:54) [jboss-kernel.jar:2.2.0.GA]

                at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:42) [jboss-kernel.jar:2.2.0.GA]

                at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62) [jboss-dependency.jar:2.2.0.GA]

                at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71) [jboss-dependency.jar:2.2.0.GA]

                at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51) [jboss-dependency.jar:2.2.0.GA]

                at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:379) [jboss-dependency.jar:2.2.0.GA]

                at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:2044) [jboss-dependency.jar:2.2.0.GA]

                at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:1083) [jboss-dependency.jar:2.2.0.GA]

                at org.jboss.dependency.plugins.AbstractController.executeOrIncrementStateDirectly(AbstractController.java:1322) [jboss-dependency.jar:2.2.0.GA]

                at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1246) [jboss-dependency.jar:2.2.0.GA]

                at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1139) [jboss-dependency.jar:2.2.0.GA]

                at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:939) [jboss-dependency.jar:2.2.0.GA]

                at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:654) [jboss-dependency.jar:2.2.0.GA]

                at org.jboss.profileservice.dependency.ProfileActivationWrapper$BasicProfileActivation.start(ProfileActivationWrapper.java:190) [:0.2.2]

                at org.jboss.profileservice.dependency.ProfileActivationWrapper.start(ProfileActivationWrapper.java:87) [:0.2.2]

                at org.jboss.profileservice.dependency.ProfileActivationService.activateProfile(ProfileActivationService.java:215) [:0.2.2]

                at org.jboss.profileservice.dependency.ProfileActivationService.activate(ProfileActivationService.java:159) [:0.2.2]

                at org.jboss.profileservice.bootstrap.AbstractProfileServiceBootstrap.activate(AbstractProfileServiceBootstrap.java:112) [:0.2.2]

                at org.jboss.profileservice.resolver.BasicResolverFactory$ProfileResolverFacade.deploy(BasicResolverFactory.java:87) [:0.2.2]

                at org.jboss.profileservice.bootstrap.AbstractProfileServiceBootstrap.start(AbstractProfileServiceBootstrap.java:91) [:0.2.2]

                at org.jboss.system.server.profileservice.bootstrap.BasicProfileServiceBootstrap.start(BasicProfileServiceBootstrap.java:132) [:6.0.0.Final]

                at org.jboss.system.server.profileservice.bootstrap.BasicProfileServiceBootstrap.start(BasicProfileServiceBootstrap.java:56) [:6.0.0.Final]

                at org.jboss.bootstrap.impl.base.server.AbstractServer.startBootstraps(AbstractServer.java:827) [jboss-bootstrap-impl-base.jar:2.1.0-alpha-5]

                at org.jboss.bootstrap.impl.base.server.AbstractServer$StartServerTask.run(AbstractServer.java:417) [jboss-bootstrap-impl-base.jar:2.1.0-alpha-5]

                at java.lang.Thread.run(Thread.java:662) [:1.6.0_33]

      Caused by: java.lang.ClassNotFoundException: javax.faces.application.ApplicationFactory

                at java.net.URLClassLoader$1.run(URLClassLoader.java:202) [:1.6.0_33]

                at java.security.AccessController.doPrivileged(Native Method) [:1.6.0_33]

                at java.net.URLClassLoader.findClass(URLClassLoader.java:190) [:1.6.0_33]

                at java.lang.ClassLoader.loadClass(ClassLoader.java:306) [:1.6.0_33]

                at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) [:1.6.0_33]

                at java.lang.ClassLoader.loadClass(ClassLoader.java:247) [:1.6.0_33]

                at java.lang.Class.forName0(Native Method) [:1.6.0_33]

                at java.lang.Class.forName(Class.java:247) [:1.6.0_33]

                at org.jboss.classloader.spi.base.BaseClassLoaderDomain.loadClass(BaseClassLoaderDomain.java:284) [jboss-classloader.jar:2.2.0.GA]

                at org.jboss.classloader.spi.base.BaseClassLoaderDomain.loadClass(BaseClassLoaderDomain.java:1152) [jboss-classloader.jar:2.2.0.GA]

                at org.jboss.classloader.spi.base.BaseClassLoader.loadClassFromDomain(BaseClassLoader.java:886) [jboss-classloader.jar:2.2.0.GA]

                at org.jboss.classloader.spi.base.BaseClassLoader.doLoadClass(BaseClassLoader.java:505) [jboss-classloader.jar:2.2.0.GA]

                at org.jboss.classloader.spi.base.BaseClassLoader.loadClass(BaseClassLoader.java:450) [jboss-classloader.jar:2.2.0.GA]

                at java.lang.ClassLoader.loadClass(ClassLoader.java:247) [:1.6.0_33]

                ... 115 more

       

      web.xml contents:

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

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

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

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

                id="WebApp_ID" version="2.5">

       

       

                <display-name>SessionManagementPortlet</display-name>

       

       

                <context-param>

                          <param-name>facelets.LIBRARIES</param-name>

          <param-value>

              /WEB-INF/functions.taglib.xml

          </param-value>

         

                </context-param>

       

       

                <context-param>

                          <param-name>org.jboss.portletbridge.WRAP_SCRIPTS</param-name>

                          <param-value>true</param-value>

                </context-param>

       

       

                <context-param>

                          <param-name>javax.portlet.faces.renderPolicy</param-name>

                          <param-value>ALWAYS_DELEGATE</param-value>

                </context-param>

       

       

                <context-param>

                          <param-name>org.ajax4jsf.RESOURCE_URI_PREFIX</param-name>

                          <param-value>rfRes</param-value>

                </context-param>

       

       

                <context-param>

                          <param-name>org.richfaces.LoadStyleStrategy</param-name>

                          <param-value>ALL</param-value>

                </context-param>

       

       

                <context-param>

                          <param-name>org.richfaces.LoadScriptStrategy</param-name>

                          <param-value>ALL</param-value>

                </context-param>

       

       

                <context-param>

                          <param-name>org.ajax4jsf.COMPRESS_SCRIPT</param-name>

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

                </context-param>

       

       

                <context-param>

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

                          <param-value>.xhtml</param-value>

                </context-param>

       

       

                <context-param>

                          <param-name>facelets.DEVELOPMENT</param-name>

                          <param-value>false</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>

                </servlet-mapping>

       

       

                <session-config>

                          <session-timeout>40</session-timeout>

                </session-config>

       

       

                <!-- Spring Configuration -->

                <context-param>

                          <param-name>contextConfigLocation</param-name>

                          <param-value>/WEB-INF/spring-beans.xml</param-value>

                </context-param>

                <listener>

                          <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>

                </listener>

                <listener>

                          <listener-class>org.springframework.web.context.request.RequestContextListener</listener-class>

                </listener>

       

                <context-param>

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

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

                </context-param>

                <context-param>

                          <param-name>facelets.BUILD_BEFORE_RESTORE</param-name>

                          <param-value>true</param-value>

                </context-param>

                <context-param>

                          <param-name>facelets.RECREATE_VALUE_EXPRESSION_ON_BUILD_BEFORE_RESTORE</param-name>

                          <param-value>true</param-value>

                </context-param>

      </web-app>

       

      faces-config.xml contents:

      ?xml version='1.0' encoding='UTF-8'?>

       

       

      <faces-config xmlns="http://java.sun.com/xml/ns/javaee"

                    version="2.0">

       

       

                <application>

                          <state-manager>org.jboss.portletbridge.application.PortletStateManager</state-manager>

                </application>

       

       

                <!-- SPRING INTEGRATION TO JSF -->

                <application>

                          <el-resolver>org.springframework.web.jsf.el.SpringBeanFacesELResolver</el-resolver>

                </application>

                <application>

                          <locale-config>

                                    <default-locale>en</default-locale>

                                    <supported-locale>es</supported-locale>

                          </locale-config>

                </application>

                <application>

                          <locale-config>

                                    <default-locale>en</default-locale>

                                    <supported-locale>es</supported-locale>

                                    <supported-locale>en</supported-locale>

                          </locale-config>

                </application>

       

       

                <application>

                          <el-resolver>org.springframework.web.jsf.el.SpringBeanFacesELResolver</el-resolver>

                </application>

       

                <converter>

                          <description>Converter for formatting session type</description>

                          <converter-id>sessionTypeConverter</converter-id>

                          <converter-class>com.raytheon.athena.jiatfs.sessionportlet.SessionTypeConverter</converter-class>

                </converter>

       

       

      </faces-config>

       

      portlet.xml contents:

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

      <portlet-app

                xmlns="http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd"

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

                xsi:schemaLocation="http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd"

                version="2.0">

       

       

                <portlet>

                          <portlet-name>Session Management Editor Portlet</portlet-name>

                          <display-name>Session Management Editor</display-name>

                          <portlet-class>javax.portlet.faces.GenericFacesPortlet</portlet-class>

                          <init-param>

                                    <name>javax.portlet.faces.defaultViewId.view</name>

                                    <value>/main.xhtml</value>

                          </init-param>

                          <init-param>

                                    <name>javax.portlet.faces.preserveActionParams</name>

                                    <value>true</value>

                      </init-param>

                          <supports>

                                    <mime-type>text/html</mime-type>

                                    <portlet-mode>VIEW</portlet-mode>

                          </supports>

                          <portlet-info>

                                    <title>Session Management Editor</title>

                          </portlet-info>

                </portlet>

       

       

                <portlet>

                          <portlet-name>Session Management Viewer Portlet</portlet-name>

                          <display-name>Session Management Viewer</display-name>

                          <portlet-class>javax.portlet.faces.GenericFacesPortlet</portlet-class>

                          <init-param>

                                    <name>javax.portlet.faces.defaultViewId.view</name>

                                    <value>/mainReadOnly.xhtml</value>

                          </init-param>

                          <init-param>

                                    <name>javax.portlet.faces.preserveActionParams</name>

                                    <value>true</value>

                      </init-param>

                          <supports>

                                    <mime-type>text/html</mime-type>

                                    <portlet-mode>VIEW</portlet-mode>

                          </supports>

                          <portlet-info>

                                    <title>Session Management Viewer</title>

                          </portlet-info>

                </portlet>

       

                <portlet>

                          <portlet-name>Session Management Administration Portlet</portlet-name>

                          <display-name>Session Management Administration</display-name>

                          <portlet-class>javax.portlet.faces.GenericFacesPortlet</portlet-class>

                          <init-param>

                                    <name>javax.portlet.faces.defaultViewId.view</name>

                                    <value>/mainAdminView.xhtml</value>

                          </init-param>

                          <init-param>

                                    <name>javax.portlet.faces.preserveActionParams</name>

                                    <value>true</value>

                      </init-param>

                          <supports>

                                    <mime-type>text/html</mime-type>

                                    <portlet-mode>VIEW</portlet-mode>

                          </supports>

                          <portlet-info>

                                    <title>Session Management Administration</title>

                          </portlet-info>

                </portlet>

      </portlet-app>

       

      Am I making the correct assumption that the portletbridge goes in the lib folder. That is where we put it for GateIn 3.0.0.

      I have looked at the example richfaces for the contents of the xml files.

       

      I can see the ApplicationFactory in the deployers\jsf.deployer\Mojarra-1.2\jsf-libs folder.

       

      Thanks for any insights.

        • 1. Re: Deploy error with PortletBridge 3.0.0, GateIn3.3.0_JBossAS6, Richfaces 4.0
          Ken Finnigan Master

          Usually the RichFaces and Portlet Bridge libraries would be deployed within WEB-INF/lib of a WAR as opposed to in the system library path, as they need to be within the context of a web application classpath.

           

          Also, in web.xml you can remove the context-param for org.jboss.portletbridge.WRAP_SCRIPTS as it is no longer present.

           

          Ken

          1 of 1 people found this helpful
          • 2. Re: Deploy error with PortletBridge 3.0.0, GateIn3.3.0_JBossAS6, Richfaces 4.0
            Joe Padula Novice

            Thanks Ken for your quick and helpful reply.

             

            I forget the reason why we started putting everything in the system library path when we used GateIn 3.0.0, but hopefully I can put everything back into the individual wars with no problem.

             

            I tried you suggestion for this case, and it got rid of the ClassNotFoundException, but I still don't think it got deployed correctly (I don't see it when I "Import Applications" in the Application Registry of GateIn.

             

            Now in the server.log after the JBoss start line, I see these errors, do you know how I can fix them (running on a Virtual Machine)?

             

            2012-09-10 11:20:35,752 ERROR [ProfileServiceBootstrap] (Thread-2) Failed to load profile:: org.jboss.deployers.client.spi.IncompleteDeploymentException: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):

            DEPLOYMENTS MISSING DEPENDENCIES:
              Deployment "Remoting:ENDPOINT:dev-vm-00" is missing the following dependencies:
                Dependency "RemotingTcpConnector" (should be in state "Installed", but is actually in state "Described")
                Dependency "RemotingSslConnector" (should be in state "Installed", but is actually in state "Described")
              Deployment "RemotingSslConnector" is missing the following dependencies:
                Dependency "XnioProvider" (should be in state "Installed", but is actually in state "** NOT FOUND Depends on 'XnioProvider' **")
              Deployment "RemotingSslTcpServer" is missing the following dependencies:
                Dependency "XnioProvider" (should be in state "Installed", but is actually in state "** NOT FOUND Depends on 'XnioProvider' **")
              Deployment "RemotingSslTcpServerListener" is missing the following dependencies:
                Dependency "Remoting:ENDPOINT:dev-vm-00" (should be in state "Installed", but is actually in state "Described")
              Deployment "RemotingTcpConnector" is missing the following dependencies:
                Dependency "XnioProvider" (should be in state "Installed", but is actually in state "** NOT FOUND Depends on 'XnioProvider' **")
              Deployment "RemotingTcpServer" is missing the following dependencies:
                Dependency "XnioProvider" (should be in state "Installed", but is actually in state "** NOT FOUND Depends on 'XnioProvider' **")
              Deployment "RemotingTcpServerListener" is missing the following dependencies:
                Dependency "Remoting:ENDPOINT:dev-vm-00" (should be in state "Installed", but is actually in state "Described")
              Deployment "XNIO:Binding:-1401654886:RemotingSslTcpServer" is missing the following dependencies:
                Dependency "RemotingSslTcpServer" (should be in state "Installed", but is actually in state "Described")
              Deployment "XNIO:Binding:-1401654887:RemotingTcpServer" is missing the following dependencies:
                Dependency "RemotingTcpServer" (should be in state "Installed", but is actually in state "Described")
              Deployment "XNIO:Listener:ACCEPT:RemotingSslTcpServer" is missing the following dependencies:
                Dependency "RemotingSslTcpServerListener" (should be in state "Installed", but is actually in state "Described")
                Dependency "RemotingSslTcpServer" (should be in state "Installed", but is actually in state "Described")
              Deployment "XNIO:Listener:ACCEPT:RemotingTcpServer" is missing the following dependencies:
                Dependency "RemotingTcpServer" (should be in state "Installed", but is actually in state "Described")
                Dependency "RemotingTcpServerListener" (should be in state "Installed", but is actually in state "Described")

            DEPLOYMENTS IN ERROR:
              Deployment "XnioProvider" is in error due to the following reason(s): ** NOT FOUND Depends on 'XnioProvider' **

            • 3. Re: Deploy error with PortletBridge 3.0.0, GateIn3.3.0_JBossAS6, Richfaces 4.0
              Ken Finnigan Master

              There should be more detailed exceptions earlier in the server.log, or console, that shows why the dependencies failed.

              1 of 1 people found this helpful
              • 4. Re: Deploy error with PortletBridge 3.0.0, GateIn3.3.0_JBossAS6, Richfaces 4.0
                Joe Padula Novice

                Oops, I was still looking in the boot.log, which was where the other errors were. We have our own CustomResourceResolver, but now can't find the base class.

                 

                Caused by: com.sun.faces.config.ConfigurationException:
                  Source Document: web.xml
                  Cause: Class 'dev.portlet.common.CustomResourceResolver' is missing a runtime dependency: java.lang.NoClassDefFoundError: com/sun/facelets/impl/ResourceResolver
                at com.sun.faces.facelets.util.ReflectionUtil.decorateInstance(ReflectionUtil.java:246) [:2.0.3-]
                at com.sun.faces.application.ApplicationAssociate.createFaceletFactory(ApplicationAssociate.java:596) [:2.0.3-]
                at com.sun.faces.application.ApplicationAssociate.<init>(ApplicationAssociate.java:214) [:2.0.3-]
                at com.sun.faces.application.ApplicationImpl.<init>(ApplicationImpl.java:208) [:2.0.3-]
                at com.sun.faces.application.ApplicationFactoryImpl.getApplication(ApplicationFactoryImpl.java:103) [:2.0.3-]
                at org.jboss.portletbridge.application.PortletApplicationFactoryImpl.<init>(PortletApplicationFactoryImpl.java:34) [:3.0.0.Final]
                ... 95 more

                Do you know if com/sun/facelets/impl/ResourceResolver has moved, or if it even still exists?

                • 5. Re: Deploy error with PortletBridge 3.0.0, GateIn3.3.0_JBossAS6, Richfaces 4.0
                  Ken Finnigan Master

                  I believe it still exists, but has been relocated to javax.faces.view.facelets.ResourceResolver

                  • 6. Re: Deploy error with PortletBridge 3.0.0, GateIn3.3.0_JBossAS6, Richfaces 4.0
                    Joe Padula Novice

                    This goes at the bottom of our web.xml, I didn't include in original posting.

                     


                    <context-param>


                    <param-name>facelets.RESOURCE_RESOLVER</param-name>


                    <param-value>dev.portlet.common.CustomResourceResolver</param-value>

                    </context-param>

                     

                    Do you see any reason why this won't find the ResourceResolver? Is this still correct param-name - "facelets.RESOURCE_RESOLVER"

                     

                    Thank you.

                    • 7. Re: Deploy error with PortletBridge 3.0.0, GateIn3.3.0_JBossAS6, Richfaces 4.0
                      Ken Finnigan Master

                      From looking at the JSF code, the correct param-name is now javax.faces.FACELETS_RESOURCE_RESOLVER

                      • 8. Re: Deploy error with PortletBridge 3.0.0, GateIn3.3.0_JBossAS6, Richfaces 4.0
                        Joe Padula Novice

                        Ken,

                        Thank you so much for all your help. I've gotten past the JSF errors, getting a quava exception now, will post that if I can't figure out to the Richfaces forum.

                        Joe

                        • 10. Re: Deploy error with PortletBridge 3.0.0, GateIn3.3.0_JBossAS6, Richfaces 4.0
                          Joe Padula Novice

                          I didn't look past the guava exception, but I am seeing more issues.

                           

                          16:17:15,735 INFO  [config] Unsanitized stacktrace from failed start...: com.sun.faces.config.ConfigurationException:
                            Source Document: jndi:/localhost/dev-portlet-session-management/WEB-INF/faces-config.xml
                            Cause: Unable to find class 'org.jboss.portletbridge.application.PortletStateManager'
                          at com.sun.faces.config.processor.AbstractConfigProcessor.createInstance(AbstractConfigProcessor.java:269) [:2.0.3-]
                          at com.sun.faces.config.processor.ApplicationConfigProcessor.setStateManager(ApplicationConfigProcessor.java:499) [:2.0.3-]
                          at com.sun.faces.config.processor.ApplicationConfigProcessor.process(ApplicationConfigProcessor.java:292) [:2.0.3-]
                          at com.sun.faces.config.processor.AbstractConfigProcessor.invokeNext(AbstractConfigProcessor.java:110) [:2.0.3-]
                          at com.sun.faces.config.processor.LifecycleConfigProcessor.process(LifecycleConfigProcessor.java:112) [:2.0.3-]
                          at com.sun.faces.config.processor.AbstractConfigProcessor.invokeNext(AbstractConfigProcessor.java:110) [:2.0.3-]
                          at com.sun.faces.config.processor.FactoryConfigProcessor.process(FactoryConfigProcessor.java:212) [:2.0.3-]
                          at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:332) [:2.0.3-]
                          at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:220) [:2.0.3-]
                          at org.jboss.web.jsf.integration.config.JBossMojarraConfigureListener.contextInitialized(JBossMojarraConfigureListener.java:58) [:1.0.3]
                          at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:3369) [:6.0.0.Final]
                          at org.apache.catalina.core.StandardContext.start(StandardContext.java:3828) [:6.0.0.Final]
                          at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:294) [:6.0.0.Final]
                          at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:146) [:6.0.0.Final]
                          at org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:477) [:6.0.0.Final]
                          at org.jboss.web.deployers.WebModule.startModule(WebModule.java:118) [:6.0.0.Final]
                          at org.jboss.web.deployers.WebModule.start(WebModule.java:95) [:6.0.0.Final]
                          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [:1.6.0_33]
                          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [:1.6.0_33]
                          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [:1.6.0_33]
                          at java.lang.reflect.Method.invoke(Method.java:597) [:1.6.0_33]
                          at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157) [:6.0.0.GA]
                          at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96) [:6.0.0.GA]
                          at org.jboss.mx.server.Invocation.invoke(Invocation.java:88) [:6.0.0.GA]
                          at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:271) [:6.0.0.GA]
                          at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:670) [:6.0.0.GA]
                          at org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:206) [:2.2.0.GA]
                          at $Proxy41.start(Unknown Source) at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:53) [:2.2.0.GA]
                          at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:41) [:2.2.0.GA]
                          at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62) [jboss-dependency.jar:2.2.0.GA]
                          at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71) [jboss-dependency.jar:2.2.0.GA]
                          at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51) [jboss-dependency.jar:2.2.0.GA]
                          at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:379) [jboss-dependency.jar:2.2.0.GA]
                          at org.jboss.system.microcontainer.ServiceControllerContext.install(ServiceControllerContext.java:301) [:2.2.0.GA]
                          at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:2044) [jboss-dependency.jar:2.2.0.GA]
                          at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:1083) [jboss-dependency.jar:2.2.0.GA]
                          at org.jboss.dependency.plugins.AbstractController.executeOrIncrementStateDirectly(AbstractController.java:1322) [jboss-dependency.jar:2.2.0.GA]
                          at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1246) [jboss-dependency.jar:2.2.0.GA]
                          at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1139) [jboss-dependency.jar:2.2.0.GA]
                          at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:894) [jboss-dependency.jar:2.2.0.GA]
                          at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:641) [jboss-dependency.jar:2.2.0.GA]
                          at org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataDeployer.deploy(BeanMetaDataDeployer.java:182) [:2.2.0.GA]
                          at org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataDeployer.deploy(BeanMetaDataDeployer.java:58) [:2.2.0.GA]
                          at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62) [:2.2.0.GA]
                          at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:55) [:2.2.0.GA]
                          at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:179) [:2.2.0.GA]
                          at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1832) [:2.2.0.GA]
                          at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1550) [:2.2.0.GA]
                          at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1571) [:2.2.0.GA]
                          at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1491) [:2.2.0.GA]
                          at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:379) [jboss-dependency.jar:2.2.0.GA]
                          at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:2044) [jboss-dependency.jar:2.2.0.GA]
                          at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:1083) [jboss-dependency.jar:2.2.0.GA]
                          at org.jboss.dependency.plugins.AbstractController.executeOrIncrementStateDirectly(AbstractController.java:1322) [jboss-dependency.jar:2.2.0.GA]
                          at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1246) [jboss-dependency.jar:2.2.0.GA]
                          at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1139) [jboss-dependency.jar:2.2.0.GA]
                          at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:939) [jboss-dependency.jar:2.2.0.GA]
                          at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:654) [jboss-dependency.jar:2.2.0.GA]
                          at org.jboss.deployers.plugins.deployers.DeployersImpl.change(DeployersImpl.java:1983) [:2.2.0.GA]
                          at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:1076) [:2.2.0.GA]
                          at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:679) [:2.2.0.GA]
                          at org.jboss.system.server.profileservice.deployers.MainDeployerPlugin.process(MainDeployerPlugin.java:106) [:6.0.0.Final]
                          at org.jboss.profileservice.dependency.ProfileControllerContext$DelegateDeployer.process(ProfileControllerContext.java:143) [:0.2.2]
                          at org.jboss.profileservice.dependency.ProfileDeployAction.deploy(ProfileDeployAction.java:151) [:0.2.2]
                          at org.jboss.profileservice.dependency.ProfileDeployAction.installActionInternal(ProfileDeployAction.java:94) [:0.2.2]
                          at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:54) [jboss-kernel.jar:2.2.0.GA]
                          at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:42) [jboss-kernel.jar:2.2.0.GA]
                          at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62) [jboss-dependency.jar:2.2.0.GA]
                          at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71) [jboss-dependency.jar:2.2.0.GA]
                          at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51) [jboss-dependency.jar:2.2.0.GA]
                          at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:379) [jboss-dependency.jar:2.2.0.GA]
                          at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:2044) [jboss-dependency.jar:2.2.0.GA]
                          at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:1083) [jboss-dependency.jar:2.2.0.GA]
                          at org.jboss.dependency.plugins.AbstractController.executeOrIncrementStateDirectly(AbstractController.java:1322) [jboss-dependency.jar:2.2.0.GA]
                          at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1246) [jboss-dependency.jar:2.2.0.GA]
                          at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1139) [jboss-dependency.jar:2.2.0.GA]
                          at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:939) [jboss-dependency.jar:2.2.0.GA]
                          at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:654) [jboss-dependency.jar:2.2.0.GA]
                          at org.jboss.profileservice.dependency.ProfileActivationWrapper$BasicProfileActivation.start(ProfileActivationWrapper.java:190) [:0.2.2]
                          at org.jboss.profileservice.dependency.ProfileActivationWrapper.start(ProfileActivationWrapper.java:87) [:0.2.2]
                          at org.jboss.profileservice.dependency.ProfileActivationService.activateProfile(ProfileActivationService.java:215) [:0.2.2]
                          at org.jboss.profileservice.dependency.ProfileActivationService.activate(ProfileActivationService.java:159) [:0.2.2]
                          at org.jboss.profileservice.bootstrap.AbstractProfileServiceBootstrap.activate(AbstractProfileServiceBootstrap.java:112) [:0.2.2]
                          at org.jboss.profileservice.resolver.BasicResolverFactory$ProfileResolverFacade.deploy(BasicResolverFactory.java:87) [:0.2.2]
                          at org.jboss.profileservice.bootstrap.AbstractProfileServiceBootstrap.start(AbstractProfileServiceBootstrap.java:91) [:0.2.2]
                          at org.jboss.system.server.profileservice.bootstrap.BasicProfileServiceBootstrap.start(BasicProfileServiceBootstrap.java:132) [:6.0.0.Final]
                          at org.jboss.system.server.profileservice.bootstrap.BasicProfileServiceBootstrap.start(BasicProfileServiceBootstrap.java:56) [:6.0.0.Final]
                          at org.jboss.bootstrap.impl.base.server.AbstractServer.startBootstraps(AbstractServer.java:827) [jboss-bootstrap-impl-base.jar:2.1.0-alpha-5]
                          at org.jboss.bootstrap.impl.base.server.AbstractServer$StartServerTask.run(AbstractServer.java:417) [jboss-bootstrap-impl-base.jar:2.1.0-alpha-5]
                          at java.lang.Thread.run(Thread.java:662) [:1.6.0_33]
                          Caused by: java.lang.ClassNotFoundException: org.jboss.portletbridge.application.PortletStateManager
                          at java.net.URLClassLoader$1.run(URLClassLoader.java:202) [:1.6.0_33]
                          at java.security.AccessController.doPrivileged(Native Method) [:1.6.0_33]
                          at java.net.URLClassLoader.findClass(URLClassLoader.java:190) [:1.6.0_33]
                          at java.lang.ClassLoader.loadClass(ClassLoader.java:306) [:1.6.0_33]
                          at java.lang.ClassLoader.loadClass(ClassLoader.java:247) [:1.6.0_33]
                          at com.sun.faces.util.Util.loadClass(Util.java:287) [:2.0.3-]
                          at com.sun.faces.config.processor.AbstractConfigProcessor.loadClass(AbstractConfigProcessor.java:307) [:2.0.3-]
                          at com.sun.faces.config.processor.AbstractConfigProcessor.createInstance(AbstractConfigProcessor.java:236) [:2.0.3-]
                          ... 90 more

                          Something wrong with my faces-config.xml?

                          • 11. Re: Deploy error with PortletBridge 3.0.0, GateIn3.3.0_JBossAS6, Richfaces 4.0
                            Joe Padula Novice

                            I found the issue regarding; Cause: Unable to find class 'org.jboss.portletbridge.application.PortletStateManager'

                             

                            I removed this element from faces-config.xml:

                            <application>

                                    <state-manager>org.jboss.portletbridge.application.PortletStateManager</state-manager>

                            </application>

                             

                            I no longer see the PortletStateManager in the portletbridge.

                             

                            However, I still had in some configurations:

                             

                             

                             

                            <application>

                             

                                 <view-handler>org.jboss.portletbridge.application.PortletViewHandler</view-handler>

                             

                            </application>

                             

                            Should I remove the section on PortletViewHandler also? Is it still relevant?

                             

                             

                            Message was edited by: Joseph Padula

                            • 12. Re: Deploy error with PortletBridge 3.0.0, GateIn3.3.0_JBossAS6, Richfaces 4.0
                              Joe Padula Novice

                              Hi Ken,

                              Besides my question above on the PortletViewHandler, can you help with these missing dependencies that I am still getting (I fixed the guava error)?

                               

                              2012-09-10 20:11:11,729 ERROR [ProfileServiceBootstrap] (Thread-2) Failed to load profile:: org.jboss.deployers.client.spi.IncompleteDeploymentException: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):

                              DEPLOYMENTS MISSING DEPENDENCIES:
                                Deployment "Remoting:ENDPOINT:dev-vm-00" is missing the following dependencies:
                                  Dependency "RemotingTcpConnector" (should be in state "Installed", but is actually in state "Described")
                                  Dependency "RemotingSslConnector" (should be in state "Installed", but is actually in state "Described")
                                Deployment "RemotingSslConnector" is missing the following dependencies:
                                  Dependency "XnioProvider" (should be in state "Installed", but is actually in state "** NOT FOUND Depends on 'XnioProvider' **")
                                Deployment "RemotingSslTcpServer" is missing the following dependencies:
                                  Dependency "XnioProvider" (should be in state "Installed", but is actually in state "** NOT FOUND Depends on 'XnioProvider' **")
                                Deployment "RemotingSslTcpServerListener" is missing the following dependencies:
                                  Dependency "Remoting:ENDPOINT:dev-vm-00" (should be in state "Installed", but is actually in state "Described")
                                Deployment "RemotingTcpConnector" is missing the following dependencies:
                                  Dependency "XnioProvider" (should be in state "Installed", but is actually in state "** NOT FOUND Depends on 'XnioProvider' **")
                                Deployment "RemotingTcpServer" is missing the following dependencies:
                                  Dependency "XnioProvider" (should be in state "Installed", but is actually in state "** NOT FOUND Depends on 'XnioProvider' **")
                                Deployment "RemotingTcpServerListener" is missing the following dependencies:
                                  Dependency "Remoting:ENDPOINT:dev-vm-00" (should be in state "Installed", but is actually in state "Described")
                                Deployment "XNIO:Binding:414094707:RemotingTcpServer" is missing the following dependencies:
                                  Dependency "RemotingTcpServer" (should be in state "Installed", but is actually in state "Described")
                                Deployment "XNIO:Binding:414094708:RemotingSslTcpServer" is missing the following dependencies:
                                  Dependency "RemotingSslTcpServer" (should be in state "Installed", but is actually in state "Described")
                                Deployment "XNIO:Listener:ACCEPT:RemotingSslTcpServer" is missing the following dependencies:
                                  Dependency "RemotingSslTcpServerListener" (should be in state "Installed", but is actually in state "Described")
                                  Dependency "RemotingSslTcpServer" (should be in state "Installed", but is actually in state "Described")
                                Deployment "XNIO:Listener:ACCEPT:RemotingTcpServer" is missing the following dependencies:
                                  Dependency "RemotingTcpServer" (should be in state "Installed", but is actually in state "Described")
                                  Dependency "RemotingTcpServerListener" (should be in state "Installed", but is actually in state "Described")

                              DEPLOYMENTS IN ERROR:
                                Deployment "XnioProvider" is in error due to the following reason(s): ** NOT FOUND Depends on 'XnioProvider' **

                              at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(DeployersImpl.java:1228) [:2.2.0.GA]
                              at org.jboss.deployers.plugins.main.MainDeployerImpl.checkComplete(MainDeployerImpl.java:905) [:2.2.0.GA]
                              at org.jboss.system.server.profileservice.deployers.MainDeployerPlugin.checkComplete(MainDeployerPlugin.java:87) [:6.0.0.Final]
                              at org.jboss.profileservice.deployment.ProfileDeployerPluginRegistry.checkAllComplete(ProfileDeployerPluginRegistry.java:107) [:0.2.2]
                              at org.jboss.system.server.profileservice.bootstrap.BasicProfileServiceBootstrap.start(BasicProfileServiceBootstrap.java:135) [:6.0.0.Final]
                              at org.jboss.system.server.profileservice.bootstrap.BasicProfileServiceBootstrap.start(BasicProfileServiceBootstrap.java:56) [:6.0.0.Final]
                              at org.jboss.bootstrap.impl.base.server.AbstractServer.startBootstraps(AbstractServer.java:827) [jboss-bootstrap-impl-base.jar:2.1.0-alpha-5]
                              at org.jboss.bootstrap.impl.base.server.AbstractServer$StartServerTask.run(AbstractServer.java:417) [jboss-bootstrap-impl-base.jar:2.1.0-alpha-5]
                              at java.lang.Thread.run(Thread.java:662) [:1.6.0_33]

                              2012-09-10 20:11:11,744 INFO  [org.apache.coyote.http11.Http11Protocol] (Thread-2) Starting Coyote HTTP/1.1 on http-0.0.0.0-8180
                              2012-09-10 20:11:11,744 INFO  [org.apache.coyote.ajp.AjpProtocol] (Thread-2) Starting Coyote AJP/1.3 on ajp-0.0.0.0-8109
                              2012-09-10 20:11:11,744 INFO  [org.jboss.bootstrap.impl.base.server.AbstractServer] (Thread-2) JBossAS [6.0.0.Final "Neo"] Started in 1m:33s:24ms

                               

                              That is all there is in the server.log. I double checked the console and the boot.log, and there are no errors or exceptions. Here is the bottom of the boot.log:

                              20:11:02,665 INFO  [faces] Init GenericFacesPortlet for portlet Session Management Editor Portlet
                              20:11:02,665 INFO  [faces] Bridge class name is org.jboss.portletbridge.PortletBridgeImpl
                              20:11:02,665 INFO  [faces] Init GenericFacesPortlet for portlet Session Management Administration Portlet
                              20:11:02,665 INFO  [faces] Bridge class name is org.jboss.portletbridge.PortletBridgeImpl
                              20:11:02,665 INFO  [faces] Init GenericFacesPortlet for portlet Session Management Viewer Portlet
                              20:11:02,681 INFO  [faces] Bridge class name is org.jboss.portletbridge.PortletBridgeImpl
                              20:11:02,743 INFO  [WebDavServiceImpl] def-folder-node-type = nt:folder
                              20:11:02,743 INFO  [WebDavServiceImpl] def-file-node-type = nt:file
                              20:11:02,743 INFO  [WebDavServiceImpl] def-file-mimetype = text/plain
                              20:11:02,743 INFO  [WebDavServiceImpl] update-policy = create-version
                              20:11:08,515 INFO  [STDOUT] Initializing the context of the 'sample-ext'

                              20:11:08,609 INFO  [GadgetImporter] Importing gadget name=Todo description=ToDo Gadget, easily manage and track your daily to-do list. thumbnail=/rest/jcr/repository/portal-system/production/app:gadgets/app:Todo/app:data/app:resources/images/Todo.gif title=/rest/jcr/repository/portal-system/production/app:gadgets/app:Todo/app:data/app:resources/images/Todo.gif title=Todo
                              20:11:08,718 INFO  [GadgetImporter] Importing gadget name=Calendar description=What date is it? Use this cool calendar to keep track of the date in style. You can switch easily between daily, monthly or yearly view. thumbnail=/rest/jcr/repository/portal-system/production/app:gadgets/app:Calendar/app:data/app:resources/images/Calendar.gif title=/rest/jcr/repository/portal-system/production/app:gadgets/app:Calendar/app:data/app:resources/images/Calendar.gif title=Calendar
                              20:11:08,765 INFO  [GadgetImporter] Importing gadget name=Calculator description=This simple and useful calculator lets you perform most of the basic arithmetic operations. thumbnail=/rest/jcr/repository/portal-system/production/app:gadgets/app:Calculator/app:data/app:resources/images/Calculator.gif title=/rest/jcr/repository/portal-system/production/app:gadgets/app:Calculator/app:data/app:resources/images/Calculator.gif title=Calculator
                              20:11:08,796 INFO  [GadgetImporter] Importing gadget name=rssAggregator description=RSS Reader thumbnail=/rest/jcr/repository/portal-system/production/app:gadgets/app:rssAggregator/app:data/app:resources/images/rssAggregator.png title=/rest/jcr/repository/portal-system/production/app:gadgets/app:rssAggregator/app:data/app:resources/images/rssAggregator.png title=RSS Reader
                              20:11:09,030 INFO  [GadgetImporter] Importing gadget name=Currency description=null thumbnail=http://dob.ireland.googlepages.com/curr_thm.png title=http://dob.ireland.googlepages.com/curr_thm.png title=Currency Converter
                              20:11:09,092 INFO  [GadgetImporter] Importing gadget name=ServicesManagement description=Services Management thumbnail=/rest/jcr/repository/portal-system/production/app:gadgets/app:ServicesManagement/app:data/app:resources/style/images/ServicesManagement.png title=/rest/jcr/repository/portal-system/production/app:gadgets/app:ServicesManagement/app:data/app:resources/style/images/ServicesManagement.png title=Services Management
                              20:11:11,027 INFO  [GadgetImporter] Importing gadget name=SiteExportImport description=This gadget allows the administrator to export/import sites thumbnail= title= title=Export/Import Tool
                              20:11:11,432 INFO  [WebAppController] Loading router configuration D:\dev\GateIn-3.3.0-GA-jbossas6\server\dev-portal/conf/gatein/controller.xml
                              20:11:11,432 INFO  [WebAppController] Loading router configuration file:/D:/dev/GateIn-3.3.0-GA-jbossas6/server/dev-portal/conf/gatein/controller.xml
                              20:11:11,557 INFO  [PortalController] The WebAppController has been successfully initialized for the portal 'portal'
                              20:11:11,557 INFO  [ExoContainer] The portal container 'portal' has been created successfully
                              20:11:11,604 INFO  [service] Removing bootstrap log handlers

                              • 13. Re: Deploy error with PortletBridge 3.0.0, GateIn3.3.0_JBossAS6, Richfaces 4.0
                                Ken Finnigan Master

                                Joe,

                                 

                                Apologies, forgot to mention earlier that Portlet Bridge 3.0 doesn't require any additions to faces-config.xml, so both PortletViewHandler and PortletStateManager are no longer required.

                                 

                                Ken

                                • 14. Re: Deploy error with PortletBridge 3.0.0, GateIn3.3.0_JBossAS6, Richfaces 4.0
                                  Ken Finnigan Master

                                  I'm surprised there aren't further errors in the server.log if there a missing dependencies preventing something from starting.  Usually those messages are a repeat of something earlier.

                                   

                                  Can you try using a completely fresh server instance, as it seems like something has become corrupted. possibly.

                                  1 2 Previous Next