Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Virgo » First Virgo SNAP with JSF(Could not find backup for factory javax.faces.context.FacesContextFactory)
First Virgo SNAP with JSF [message #791889] Mon, 06 February 2012 11:27 Go to next message
Moacir Cardoso is currently offline Moacir Cardoso
Messages: 12
Registered: January 2012
Junior Member
I'm having a problem trying to run an WAB application using virgo snaps.
The host application is a JSP WAB, the child application is JSF + RichFaces4.
Both work separately whem deployed on virgo tomcat serer. But when trying to run them with Virgo SNAPs the following error is happening:


[2012-02-06 09:14:48.006] INFO   TCP Connection(4)-127.0.0.1 o.e.v.k.u.internal.importexpansion.ImportExpansionHandler         Updated manifest: 
Manifest-Version: 1.0
Require-Bundle: org.eclipse.virgo.snaps.api;bundle-version="3.0.2",jav
 ax.faces;bundle-version="2.1.6"
Bundle-ClassPath: .
Bundle-Version: 1.0.0
Bundle-Name: WebApp Core
Bundle-ManifestVersion: 2
Bundle-SymbolicName: br.teste.webapp.core
Web-ContextPath: webtest
Import-Package: javax.el;version="[2.2.0,2.2.0]",javax.naming,org.ecli
 pse.virgo.snaps;bundle-version="[3.0.2.RELEASE, 3.0.2.RELEASE]";bundl
 e-symbolic-name="org.eclipse.virgo.snaps.api",javax.servlet.jsp.jstl.
 tlv;version="[1.2.0.v20110728,1.2.0.v20110728]",javax.servlet.jsp.jst
 l.fmt;version="[1.2.0.v20110728,1.2.0.v20110728]",javax.servlet.jsp.j
 stl.core;version="[1.2.0.v20110728,1.2.0.v20110728]",javax.servlet.js
 p;version="[2.2.0,2.2.0]",javax.servlet.annotation;version="[3.0.0,3.
 0.0]",javax.servlet.resources;version="[3.0.0,3.0.0]",org.eclipse.vir
 go.snaps.core;bundle-version="[3.0.2.RELEASE, 3.0.2.RELEASE]";bundle-
 symbolic-name="org.eclipse.virgo.snaps.core",javax.servlet;version="[
 3.0.0,3.0.0]",javax.servlet.descriptor;version="[3.0.0,3.0.0]",javax.
 servlet.jsp.el;version="[2.2.0,2.2.0]",javax.servlet.jsp.tagext;versi
 on="[2.2.0,2.2.0]",javax.servlet.jsp.resources;version="[2.2.0,2.2.0]
 ",javax.servlet.jsp.jstl.sql;version="[1.2.0.v20110728,1.2.0.v2011072
 8]",javax.servlet.http;version="[3.0.0,3.0.0]"

 
[2012-02-06 09:14:48.007] INFO   TCP Connection(4)-127.0.0.1 o.e.virgo.kernel.userregion.internal.quasi.DependencyCalculator   Calculating missing dependencies of bundle(s) 'br.teste.webapp.core_1.0.0' 
[2012-02-06 09:14:48.050] INFO   TCP Connection(4)-127.0.0.1 o.e.virgo.kernel.userregion.internal.quasi.DependencyCalculator   The dependencies of '[br.teste.webapp.core_1.0.0]' are '[]' 
[2012-02-06 09:14:48.057] INFO   TCP Connection(4)-127.0.0.1 o.eclipse.virgo.kernel.model.internal.bundle.ModelBundleListener  Processing installed event for bundle 'br.teste.webapp.core:1.0.0' in region 'org.eclipse.virgo.region.user' 
[2012-02-06 09:14:48.059] INFO  GiLogServiceListener@160f5bf org.osgi.service.log.LogService                                   Bundle br.teste.webapp.core_1.0.0, BundleEvent INSTALLED 
[2012-02-06 09:14:48.061] INFO   TCP Connection(4)-127.0.0.1 org.eclipse.virgo.medic.eventlog.default                         DE0001I Installed bundle 'br.teste.webapp.core' version '1.0.0'. 
[2012-02-06 09:14:48.062] INFO   TCP Connection(4)-127.0.0.1 o.e.v.k.i.artifact.internal.bundle.BundleThreadContextManager     Thread context class loader 'sun.misc.Launcher$AppClassLoader@f4a24a' popped and set to 'sun.misc.Launcher$AppClassLoader@f4a24a' 
[2012-02-06 09:14:48.073] INFO  GiLogServiceListener@160f5bf org.osgi.service.log.LogService                                   Bundle br.teste.webapp.core_1.0.0, BundleEvent RESOLVED 
[2012-02-06 09:14:48.074] INFO   TCP Connection(4)-127.0.0.1 o.e.v.k.i.artifact.internal.bundle.BundleThreadContextManager     Thread context class loader 'sun.misc.Launcher$AppClassLoader@f4a24a' pushed and set to 'KernelBundleClassLoader: [bundle=br.teste.webapp.core_1.0.0]' 
[2012-02-06 09:14:48.075] INFO   TCP Connection(4)-127.0.0.1 o.e.v.k.i.artifact.internal.bundle.BundleThreadContextManager     Thread context class loader 'KernelBundleClassLoader: [bundle=br.teste.webapp.core_1.0.0]' popped and set to 'sun.misc.Launcher$AppClassLoader@f4a24a' 
[2012-02-06 09:14:48.076] INFO   TCP Connection(4)-127.0.0.1 o.e.v.k.i.artifact.internal.bundle.BundleThreadContextManager     Thread context class loader 'sun.misc.Launcher$AppClassLoader@f4a24a' pushed and set to 'KernelBundleClassLoader: [bundle=br.teste.webapp.core_1.0.0]' 
[2012-02-06 09:14:48.077] INFO   TCP Connection(4)-127.0.0.1 o.e.v.k.i.artifact.internal.bundle.BundleThreadContextManager     Thread context class loader 'KernelBundleClassLoader: [bundle=br.teste.webapp.core_1.0.0]' pushed and set to 'KernelBundleClassLoader: [bundle=br.teste.webapp.core_1.0.0]' 
[2012-02-06 09:14:48.078] INFO   TCP Connection(4)-127.0.0.1 org.eclipse.virgo.kernel.core.internal.BundleStartTracker         Adding signal 'org.eclipse.virgo.kernel.install.artifact.internal.AbstractInstallArtifact$StateMonitorSignal@f8093f' for bundle 'br.teste.webapp.core_1.0.0 [124]' 
[2012-02-06 09:14:48.080] INFO   TCP Connection(4)-127.0.0.1 o.e.v.k.i.a.internal.AtomicInstallArtifactLifecycleListener       No atomic parent of bundle 'br.teste.webapp.core' version '1.0.0' in scope 'null' to propagate starting event to 
[2012-02-06 09:14:48.083] INFO   TCP Connection(4)-127.0.0.1 org.eclipse.virgo.medic.eventlog.default                         DE0004I Starting bundle 'br.teste.webapp.core' version '1.0.0'. 
[2012-02-06 09:14:48.084] INFO   TCP Connection(4)-127.0.0.1 org.eclipse.virgo.kernel.core.internal.BundleStartTracker         Non-Spring DM powered bundle 'br.teste.webapp.core_1.0.0 [124]' has started. Driving signals '[org.eclipse.virgo.kernel.install.artifact.internal.AbstractInstallArtifact$StateMonitorSignal@f8093f]'. 
[2012-02-06 09:14:48.084] INFO  start-signalling-2           org.eclipse.virgo.kernel.core.internal.BundleStartTracker         Driving signal 'org.eclipse.virgo.kernel.install.artifact.internal.AbstractInstallArtifact$StateMonitorSignal@f8093f' 
[2012-02-06 09:14:48.084] INFO  start-signalling-2           o.e.v.k.i.artifact.internal.bundle.BundleThreadContextManager     Thread context class loader 'sun.misc.Launcher$AppClassLoader@f4a24a' pushed and set to 'KernelBundleClassLoader: [bundle=br.teste.webapp.core_1.0.0]' 
[2012-02-06 09:14:48.086] INFO  start-signalling-2           org.eclipse.virgo.medic.eventlog.default                         WE0000I Starting web bundle 'br.teste.webapp.core' version '1.0.0' with context path '/webtest'. 
[2012-02-06 09:14:48.093] INFO  GiLogServiceListener@160f5bf org.osgi.service.log.LogService                                   Bundle br.teste.webapp.core_1.0.0, BundleEvent STARTED 
[2012-02-06 09:14:48.094] INFO   TCP Connection(4)-127.0.0.1 o.e.v.k.i.artifact.internal.bundle.BundleThreadContextManager     Thread context class loader 'KernelBundleClassLoader: [bundle=br.teste.webapp.core_1.0.0]' popped and set to 'KernelBundleClassLoader: [bundle=br.teste.webapp.core_1.0.0]' 
[2012-02-06 09:14:48.094] INFO   TCP Connection(4)-127.0.0.1 o.e.v.k.i.artifact.internal.bundle.BundleThreadContextManager     Thread context class loader 'KernelBundleClassLoader: [bundle=br.teste.webapp.core_1.0.0]' popped and set to 'sun.misc.Launcher$AppClassLoader@f4a24a' 
[2012-02-06 09:14:48.684] INFO  fs-watcher                   org.eclipse.virgo.medic.eventlog.default                         HD0001I Hot deployer processing 'INITIAL' event for file 'org.eclipse.virgo.apps.splash-3.0.2.RELEASE.jar'. 
[2012-02-06 09:14:48.684] INFO  fs-watcher                   o.e.virgo.kernel.deployer.hot.HotDeploymentFileSystemListener     ApplicationConditionallyDeploying path '/home/caed/java/virgo-tomcat-server-3.0.2.RELEASE/pickup/org.eclipse.virgo.apps.splash-3.0.2.RELEASE.jar'. 
[2012-02-06 09:14:48.685] INFO  fs-watcher                   org.eclipse.virgo.medic.eventlog.default                         HD0005I Hot deploy not performed because file 'org.eclipse.virgo.apps.splash-3.0.2.RELEASE.jar' is already deployed. 
[2012-02-06 09:14:48.686] INFO  fs-watcher                   org.eclipse.virgo.medic.eventlog.default                         HD0001I Hot deployer processing 'INITIAL' event for file 'org.eclipse.virgo.apps.repository-3.0.2.RELEASE.par'. 
[2012-02-06 09:14:48.686] INFO  fs-watcher                   o.e.virgo.kernel.deployer.hot.HotDeploymentFileSystemListener     ApplicationConditionallyDeploying path '/home/caed/java/virgo-tomcat-server-3.0.2.RELEASE/pickup/org.eclipse.virgo.apps.repository-3.0.2.RELEASE.par'. 
[2012-02-06 09:14:48.687] INFO  fs-watcher                   org.eclipse.virgo.medic.eventlog.default                         HD0005I Hot deploy not performed because file 'org.eclipse.virgo.apps.repository-3.0.2.RELEASE.par' is already deployed. 
[2012-02-06 09:14:48.688] INFO  fs-watcher                   org.eclipse.virgo.medic.eventlog.default                         HD0001I Hot deployer processing 'INITIAL' event for file 'org.eclipse.virgo.apps.admin-3.0.2.RELEASE.plan'. 
[2012-02-06 09:14:48.688] INFO  fs-watcher                   o.e.virgo.kernel.deployer.hot.HotDeploymentFileSystemListener     ApplicationConditionallyDeploying path '/home/caed/java/virgo-tomcat-server-3.0.2.RELEASE/pickup/org.eclipse.virgo.apps.admin-3.0.2.RELEASE.plan'. 
[2012-02-06 09:14:48.689] INFO  fs-watcher                   org.eclipse.virgo.medic.eventlog.default                         HD0005I Hot deploy not performed because file 'org.eclipse.virgo.apps.admin-3.0.2.RELEASE.plan' is already deployed. 
[2012-02-06 09:14:48.889] INFO  Thread-63                    org.eclipse.virgo.snaps.core.OsgiSnapRegistry                     Snap registry created 
[2012-02-06 09:14:48.890] INFO  Thread-63                    org.eclipse.virgo.medic.eventlog.default                         SN0000I Host created for path '/webtest' 
[2012-02-06 09:14:48.935] INFO  start-signalling-2           o.e.virgo.snaps.core.internal.SnapFactoryMonitor$SnapBinder       Host br.teste.webapp.core did not match org.eclipse.virgo.snaps.core.internal.SnapHostDefinition@33a21  
[2012-02-06 09:14:48.935] INFO  start-signalling-2           o.e.virgo.snaps.core.internal.SnapFactoryMonitor$SnapBinder       Host br.teste.webapp.core did not match org.eclipse.virgo.snaps.core.internal.SnapHostDefinition@1dd6941  
[2012-02-06 09:14:48.936] INFO  start-signalling-2           org.eclipse.virgo.medic.eventlog.default                         WE0001I Started web bundle 'br.teste.webapp.core' version '1.0.0' with context path '/webtest'. 
[2012-02-06 09:14:48.937] INFO  GiLogServiceListener@160f5bf org.osgi.service.log.LogService                                   Bundle br.teste.webapp.core_1.0.0, Service 268, ServiceEvent REGISTERED 
[2012-02-06 09:14:48.942] INFO  start-signalling-2           org.eclipse.virgo.medic.eventlog.default                         DE0005I Started bundle 'br.teste.webapp.core' version '1.0.0'. 
[2012-02-06 09:14:48.942] INFO  start-signalling-2           o.e.v.k.i.artifact.internal.bundle.BundleThreadContextManager     Thread context class loader 'KernelBundleClassLoader: [bundle=br.teste.webapp.core_1.0.0]' popped and set to 'sun.misc.Launcher$AppClassLoader@f4a24a' 
[2012-02-06 09:14:49.088] INFO   TCP Connection(4)-127.0.0.1 o.e.v.k.m.i.deployer.ModelInstallArtifactLifecycleListener        Processing installing event for bundle 'br.teste.webapp.jsf' version '1.0.0' 
[2012-02-06 09:14:49.100] INFO   TCP Connection(4)-127.0.0.1 org.eclipse.virgo.medic.eventlog.default                         DE0000I Installing bundle 'br.teste.webapp.jsf' version '1.0.0'. 
[2012-02-06 09:14:49.101] INFO   TCP Connection(4)-127.0.0.1 org.eclipse.virgo.snaps.core.internal.deployer.SnapTransformer    Transforming bundle at 'file:/home/caed/java/virgo-tomcat-server-3.0.2.RELEASE/work/org.eclipse.virgo.kernel.deployer_3.0.2.RELEASE/staging/global/bundle/br.teste.webapp.jsf/1.0.0/br.teste.webapp.jsf.war/' 
[2012-02-06 09:14:50.743] INFO   TCP Connection(4)-127.0.0.1 o.e.virgo.kernel.userregion.internal.quasi.DependencyCalculator   Calculating missing dependencies of bundle(s) 'br.teste.webapp.jsf_1.0.0' 
[2012-02-06 09:14:51.079] INFO   TCP Connection(4)-127.0.0.1 o.e.virgo.kernel.userregion.internal.quasi.DependencyCalculator   The dependencies of '[br.teste.webapp.jsf_1.0.0]' are '[]' 
[2012-02-06 09:14:51.099] INFO   TCP Connection(4)-127.0.0.1 o.eclipse.virgo.kernel.model.internal.bundle.ModelBundleListener  Processing installed event for bundle 'br.teste.webapp.jsf:1.0.0' in region 'org.eclipse.virgo.region.user' 
[2012-02-06 09:14:51.121] INFO  GiLogServiceListener@160f5bf org.osgi.service.log.LogService                                   Bundle br.teste.webapp.jsf_1.0.0, BundleEvent INSTALLED 
[2012-02-06 09:14:51.124] INFO   TCP Connection(4)-127.0.0.1 org.eclipse.virgo.medic.eventlog.default                         DE0001I Installed bundle 'br.teste.webapp.jsf' version '1.0.0'. 
[2012-02-06 09:14:51.125] INFO   TCP Connection(4)-127.0.0.1 o.e.v.k.i.artifact.internal.bundle.BundleThreadContextManager     Thread context class loader 'sun.misc.Launcher$AppClassLoader@f4a24a' popped and set to 'sun.misc.Launcher$AppClassLoader@f4a24a' 
[2012-02-06 09:14:51.153] INFO  GiLogServiceListener@160f5bf org.osgi.service.log.LogService                                   Bundle br.teste.webapp.jsf_1.0.0, BundleEvent RESOLVED 
[2012-02-06 09:14:51.154] INFO   TCP Connection(4)-127.0.0.1 o.e.v.k.i.artifact.internal.bundle.BundleThreadContextManager     Thread context class loader 'sun.misc.Launcher$AppClassLoader@f4a24a' pushed and set to 'KernelBundleClassLoader: [bundle=br.teste.webapp.jsf_1.0.0]' 
[2012-02-06 09:14:51.155] INFO   TCP Connection(4)-127.0.0.1 o.e.v.k.i.artifact.internal.bundle.BundleThreadContextManager     Thread context class loader 'KernelBundleClassLoader: [bundle=br.teste.webapp.jsf_1.0.0]' popped and set to 'sun.misc.Launcher$AppClassLoader@f4a24a' 
[2012-02-06 09:14:51.155] INFO   TCP Connection(4)-127.0.0.1 o.e.v.k.i.artifact.internal.bundle.BundleThreadContextManager     Thread context class loader 'sun.misc.Launcher$AppClassLoader@f4a24a' pushed and set to 'KernelBundleClassLoader: [bundle=br.teste.webapp.jsf_1.0.0]' 
[2012-02-06 09:14:51.155] INFO   TCP Connection(4)-127.0.0.1 o.e.v.k.i.artifact.internal.bundle.BundleThreadContextManager     Thread context class loader 'KernelBundleClassLoader: [bundle=br.teste.webapp.jsf_1.0.0]' pushed and set to 'KernelBundleClassLoader: [bundle=br.teste.webapp.jsf_1.0.0]' 
[2012-02-06 09:14:51.156] INFO   TCP Connection(4)-127.0.0.1 org.eclipse.virgo.kernel.core.internal.BundleStartTracker         Adding signal 'org.eclipse.virgo.kernel.install.artifact.internal.AbstractInstallArtifact$StateMonitorSignal@1eb8755' for bundle 'br.teste.webapp.jsf_1.0.0 [125]' 
[2012-02-06 09:14:51.156] INFO   TCP Connection(4)-127.0.0.1 o.e.v.k.i.a.internal.AtomicInstallArtifactLifecycleListener       No atomic parent of bundle 'br.teste.webapp.jsf' version '1.0.0' in scope 'null' to propagate starting event to 
[2012-02-06 09:14:51.157] INFO   TCP Connection(4)-127.0.0.1 org.eclipse.virgo.medic.eventlog.default                         DE0004I Starting bundle 'br.teste.webapp.jsf' version '1.0.0'. 
[2012-02-06 09:14:51.158] INFO   TCP Connection(4)-127.0.0.1 org.eclipse.virgo.kernel.core.internal.BundleStartTracker         Non-Spring DM powered bundle 'br.teste.webapp.jsf_1.0.0 [125]' has started. Driving signals '[org.eclipse.virgo.kernel.install.artifact.internal.AbstractInstallArtifact$StateMonitorSignal@1eb8755]'. 
[2012-02-06 09:14:51.158] INFO  start-signalling-2           org.eclipse.virgo.kernel.core.internal.BundleStartTracker         Driving signal 'org.eclipse.virgo.kernel.install.artifact.internal.AbstractInstallArtifact$StateMonitorSignal@1eb8755' 
[2012-02-06 09:14:51.158] INFO  start-signalling-2           o.e.v.k.i.artifact.internal.bundle.BundleThreadContextManager     Thread context class loader 'sun.misc.Launcher$AppClassLoader@f4a24a' pushed and set to 'KernelBundleClassLoader: [bundle=br.teste.webapp.jsf_1.0.0]' 
[2012-02-06 09:14:51.159] INFO  start-signalling-2           o.e.virgo.snaps.core.internal.deployer.SnapLifecycleListener      Creating a SnapFactory for bundle 'br.teste.webapp.jsf_1.0.0 [125]' 
[2012-02-06 09:14:51.159] INFO  start-signalling-2           org.eclipse.virgo.snaps.core.internal.SnapHostDefinition          Creating a SnapHostDefinition for factory 'br.teste.webapp.core' and range '[1.0.0, oo)' 
[2012-02-06 09:14:51.160] INFO  start-signalling-2           org.eclipse.virgo.snaps.core.internal.SnapHostDefinition          Creating a SnapHostDefinition for factory 'br.teste.webapp.core' and range '[1.0.0, oo)' 
[2012-02-06 09:14:51.160] INFO  start-signalling-2           o.e.virgo.snaps.core.internal.SnapFactoryMonitor$SnapBinder       Listening for hosts to be registered. 
[2012-02-06 09:14:51.161] INFO  start-signalling-2           o.e.virgo.snaps.core.internal.SnapFactoryMonitor$SnapBinder       5 host candidates found 
[2012-02-06 09:14:51.161] INFO  start-signalling-2           org.eclipse.virgo.snaps.core.internal.HostSelector                Found best-so-far Host candidate from bundle 'br.teste.webapp.core_1.0.0 [124]' 
[2012-02-06 09:14:51.161] INFO  start-signalling-2           org.eclipse.virgo.snaps.core.internal.HostSelector                Host service '{javax.servlet.ServletContext}={osgi.web.symbolicname=br.teste.webapp.core, osgi.web.version=1.0.0, osgi.web.contextpath=/webtest, service.id=268}' found 
[2012-02-06 09:14:51.161] INFO  start-signalling-2           org.eclipse.virgo.snaps.core.internal.HostSelector                Found best-so-far Host candidate from bundle 'br.teste.webapp.core_1.0.0 [124]' 
[2012-02-06 09:14:51.161] INFO  start-signalling-2           org.eclipse.virgo.snaps.core.internal.HostSelector                Host service '{javax.servlet.ServletContext}={osgi.web.symbolicname=br.teste.webapp.core, osgi.web.version=1.0.0, osgi.web.contextpath=/webtest, service.id=268}' found 
[2012-02-06 09:14:51.161] INFO  start-signalling-2           org.eclipse.virgo.snaps.core.internal.webapp.WebAppSnapFactory    Creating new snap that binds snap bundle 'br.teste.webapp.jsf_1.0.0 [125]' to host bundle 'br.teste.webapp.core_1.0.0 [124]' 
[2012-02-06 09:14:51.162] INFO  start-signalling-2           o.e.virgo.snaps.core.internal.SnapFactoryMonitor$SnapBinder       Initializing snap '/jsf' 
[2012-02-06 09:14:51.162] INFO  start-signalling-2           org.eclipse.virgo.snaps.core.internal.webapp.WebAppSnap           Initializing snap '/jsf' 
[2012-02-06 09:14:51.162] INFO  start-signalling-2           o.e.virgo.snaps.core.internal.webapp.config.BundleWebXmlLoader    Loading configuration from 'bundleentry://125.fwk22262475/WEB-INF/web.xml' 
[2012-02-06 09:14:51.173] INFO  GiLogServiceListener@160f5bf org.osgi.service.log.LogService                                   Bundle br.teste.webapp.jsf_1.0.0, BundleEvent STARTED 
[2012-02-06 09:14:51.173] INFO   TCP Connection(4)-127.0.0.1 o.e.v.k.i.artifact.internal.bundle.BundleThreadContextManager     Thread context class loader 'KernelBundleClassLoader: [bundle=br.teste.webapp.jsf_1.0.0]' popped and set to 'KernelBundleClassLoader: [bundle=br.teste.webapp.jsf_1.0.0]' 
[2012-02-06 09:14:51.174] INFO   TCP Connection(4)-127.0.0.1 o.e.v.k.i.artifact.internal.bundle.BundleThreadContextManager     Thread context class loader 'KernelBundleClassLoader: [bundle=br.teste.webapp.jsf_1.0.0]' popped and set to 'sun.misc.Launcher$AppClassLoader@f4a24a' 
[2012-02-06 09:14:51.739] INFO  start-signalling-2           o.e.virgo.snaps.core.internal.webapp.config.BundleWebXmlLoader    Loading configuration from 'bundleentry://109.fwk22262475/META-INF/snaps/default-web.xml' 
[2012-02-06 09:14:51.821] INFO  start-signalling-2           o.eclipse.virgo.snaps.core.internal.webapp.url.UrlPatternMatcher  Adding mapping 'Faces Servlet' with pattern '/jsf/faces/*' 
[2012-02-06 09:14:51.822] INFO  start-signalling-2           o.eclipse.virgo.snaps.core.internal.webapp.url.UrlPatternFactory  Pattern '/jsf/faces/*' is a PathUrlPattern 
[2012-02-06 09:14:51.822] INFO  start-signalling-2           o.eclipse.virgo.snaps.core.internal.webapp.url.UrlPatternMatcher  Adding mapping '__resource-servlet' with pattern '/' 
[2012-02-06 09:14:51.822] INFO  start-signalling-2           o.eclipse.virgo.snaps.core.internal.webapp.url.UrlPatternFactory  Pattern '/' is a DefaultUrlPattern 
[2012-02-06 09:14:51.822] INFO  start-signalling-2           o.eclipse.virgo.snaps.core.internal.webapp.url.UrlPatternMatcher  Adding mapping '__jsp-servlet' with pattern '*.jsp' 
[2012-02-06 09:14:51.822] INFO  start-signalling-2           o.eclipse.virgo.snaps.core.internal.webapp.url.UrlPatternFactory  Pattern '*.jsp' is an ExtensionUrlPattern 
[2012-02-06 09:14:52.018] ERROR start-signalling-2           javax.faces                                                       O aplicativo não foi iniciado corretamente na inicialização. Não foi possível encontrar Fábrica: javax.faces.context.FacesContextFactory. Attempting to find backup. 
[2012-02-06 09:14:52.041] ERROR GiLogServiceListener@160f5bf org.osgi.service.log.LogService                                   Bundle org.eclipse.osgi_3.7.0.v20110613, An unexpected runtime error has occurred. java.lang.IllegalStateException: Could not find backup for factory javax.faces.context.FacesContextFactory. 
        at javax.faces.FactoryFinder$FactoryManager.getFactory(FactoryFinder.java:1008)
        at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:343)
        at javax.faces.webapp.FacesServlet.init(FacesServlet.java:302)
        at org.eclipse.virgo.snaps.core.internal.webapp.container.ServletManager$1.doWithClassLoader(ServletManager.java:71)
        at org.eclipse.virgo.snaps.core.internal.webapp.container.ServletManager$1.doWithClassLoader(ServletManager.java:1)
        at org.eclipse.virgo.snaps.core.internal.webapp.container.ManagerUtils.doWithThreadContextClassLoader(ManagerUtils.java:36)
        at org.eclipse.virgo.snaps.core.internal.webapp.container.ServletManager.init(ServletManager.java:65)
        at org.eclipse.virgo.snaps.core.internal.webapp.container.StandardVirtualContainer.init(StandardVirtualContainer.java:85)
        at org.eclipse.virgo.snaps.core.internal.webapp.WebAppSnap.init(WebAppSnap.java:105)
        at org.eclipse.virgo.snaps.core.internal.SnapFactoryMonitor$SnapBinder.hostPublished(SnapFactoryMonitor.java:170)
        at org.eclipse.virgo.snaps.core.internal.SnapFactoryMonitor$SnapBinder.searchForExistingHost(SnapFactoryMonitor.java:288)
        at org.eclipse.virgo.snaps.core.internal.SnapFactoryMonitor$SnapBinder.registerHostListener(SnapFactoryMonitor.java:139)
        at org.eclipse.virgo.snaps.core.internal.SnapFactoryMonitor$SnapBinder.start(SnapFactoryMonitor.java:132)
        at org.eclipse.virgo.snaps.core.internal.SnapFactoryMonitor$SnapBinder.access$0(SnapFactoryMonitor.java:131)
        at org.eclipse.virgo.snaps.core.internal.SnapFactoryMonitor.addingService(SnapFactoryMonitor.java:74)
        at org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:980)
        at org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:1)
        at org.osgi.util.tracker.AbstractTracked.trackAdding(AbstractTracked.java:262)
        at org.osgi.util.tracker.AbstractTracked.track(AbstractTracked.java:234)
        at org.osgi.util.tracker.ServiceTracker$Tracked.serviceChanged(ServiceTracker.java:941)
        at org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:104)
        at org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:861)
        at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
        at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)
        at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEventPrivileged(ServiceRegistry.java:819)
        at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEvent(ServiceRegistry.java:771)
        at org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.register(ServiceRegistrationImpl.java:130)
        at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.registerService(ServiceRegistry.java:214)
        at org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:433)
        at org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:451)
        at org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:950)
        at org.eclipse.virgo.snaps.core.internal.deployer.SnapLifecycleListener.createAndRegisterSnapFactoryService(SnapLifecycleListener.java:85)
        at org.eclipse.virgo.snaps.core.internal.deployer.SnapLifecycleListener.onStarted(SnapLifecycleListener.java:66)
        at org.eclipse.virgo.kernel.install.artifact.internal.StandardArtifactStateMonitor.onStarted(StandardArtifactStateMonitor.java:247)
        at org.eclipse.virgo.kernel.install.artifact.internal.AbstractInstallArtifact.asyncStartSucceeded(AbstractInstallArtifact.java:294)
        at org.eclipse.virgo.kernel.install.artifact.internal.AbstractInstallArtifact.access$0(AbstractInstallArtifact.java:291)
        at org.eclipse.virgo.kernel.install.artifact.internal.AbstractInstallArtifact$StateMonitorSignal.signalSuccessfulCompletion(AbstractInstallArtifact.java:229)
        at org.eclipse.virgo.kernel.core.internal.BundleStartTracker$1.run(BundleStartTracker.java:143)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)

[2012-02-06 09:14:52.042] INFO  start-signalling-2           org.eclipse.virgo.medic.eventlog.default                         DE0005I Started bundle 'br.teste.webapp.jsf' version '1.0.0'. 
[2012-02-06 09:14:52.048] INFO  start-signalling-2           o.e.v.k.i.artifact.internal.bundle.BundleThreadContextManager     Thread context class loader 'KernelBundleClassLoader: [bundle=br.teste.webapp.jsf_1.0.0]' popped and set to 'sun.misc.Launcher$AppClassLoader@f4a24a' 
[2012-02-06 09:14:52.082] ERROR GiLogServiceListener@160f5bf org.osgi.service.log.LogService                                   Bundle org.eclipse.virgo.snaps.core_3.0.2.RELEASE, FrameworkEvent ERROR java.lang.IllegalStateException: Could not find backup for factory javax.faces.context.FacesContextFactory. 
        at javax.faces.FactoryFinder$FactoryManager.getFactory(FactoryFinder.java:1008)
        at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:343)
        at javax.faces.webapp.FacesServlet.init(FacesServlet.java:302)
        at org.eclipse.virgo.snaps.core.internal.webapp.container.ServletManager$1.doWithClassLoader(ServletManager.java:71)
        at org.eclipse.virgo.snaps.core.internal.webapp.container.ServletManager$1.doWithClassLoader(ServletManager.java:1)
        at org.eclipse.virgo.snaps.core.internal.webapp.container.ManagerUtils.doWithThreadContextClassLoader(ManagerUtils.java:36)
        at org.eclipse.virgo.snaps.core.internal.webapp.container.ServletManager.init(ServletManager.java:65)
        at org.eclipse.virgo.snaps.core.internal.webapp.container.StandardVirtualContainer.init(StandardVirtualContainer.java:85)
        at org.eclipse.virgo.snaps.core.internal.webapp.WebAppSnap.init(WebAppSnap.java:105)
        at org.eclipse.virgo.snaps.core.internal.SnapFactoryMonitor$SnapBinder.hostPublished(SnapFactoryMonitor.java:170)
        at org.eclipse.virgo.snaps.core.internal.SnapFactoryMonitor$SnapBinder.searchForExistingHost(SnapFactoryMonitor.java:288)
        at org.eclipse.virgo.snaps.core.internal.SnapFactoryMonitor$SnapBinder.registerHostListener(SnapFactoryMonitor.java:139)
        at org.eclipse.virgo.snaps.core.internal.SnapFactoryMonitor$SnapBinder.start(SnapFactoryMonitor.java:132)
        at org.eclipse.virgo.snaps.core.internal.SnapFactoryMonitor$SnapBinder.access$0(SnapFactoryMonitor.java:131)
        at org.eclipse.virgo.snaps.core.internal.SnapFactoryMonitor.addingService(SnapFactoryMonitor.java:74)
        at org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:980)
        at org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:1)
        at org.osgi.util.tracker.AbstractTracked.trackAdding(AbstractTracked.java:262)
        at org.osgi.util.tracker.AbstractTracked.track(AbstractTracked.java:234)
        at org.osgi.util.tracker.ServiceTracker$Tracked.serviceChanged(ServiceTracker.java:941)
        at org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:104)
        at org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:861)
        at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
        at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)
        at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEventPrivileged(ServiceRegistry.java:819)
        at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEvent(ServiceRegistry.java:771)
        at org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.register(ServiceRegistrationImpl.java:130)
        at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.registerService(ServiceRegistry.java:214)
        at org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:433)
        at org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:451)
        at org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:950)
        at org.eclipse.virgo.snaps.core.internal.deployer.SnapLifecycleListener.createAndRegisterSnapFactoryService(SnapLifecycleListener.java:85)
        at org.eclipse.virgo.snaps.core.internal.deployer.SnapLifecycleListener.onStarted(SnapLifecycleListener.java:66)
        at org.eclipse.virgo.kernel.install.artifact.internal.StandardArtifactStateMonitor.onStarted(StandardArtifactStateMonitor.java:247)
        at org.eclipse.virgo.kernel.install.artifact.internal.AbstractInstallArtifact.asyncStartSucceeded(AbstractInstallArtifact.java:294)
        at org.eclipse.virgo.kernel.install.artifact.internal.AbstractInstallArtifact.access$0(AbstractInstallArtifact.java:291)
        at org.eclipse.virgo.kernel.install.artifact.internal.AbstractInstallArtifact$StateMonitorSignal.signalSuccessfulCompletion(AbstractInstallArtifact.java:229)
        at org.eclipse.virgo.kernel.core.internal.BundleStartTracker$1.run(BundleStartTracker.java:143)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)

[2012-02-06 09:14:52.085] INFO  GiLogServiceListener@160f5bf org.osgi.service.log.LogService                                   Bundle br.teste.webapp.jsf_1.0.0, Service 269, ServiceEvent REGISTERED 


I'm using jsf Mojarra javax.faces-2.1.6.jar deployed as a separeted bundle.
Re: First Virgo SNAP with JSF [message #792285 is a reply to message #791889] Mon, 06 February 2012 20:54 Go to previous messageGo to next message
Violeta Georgieva is currently offline Violeta Georgieva
Messages: 242
Registered: October 2010
Senior Member
Can you provide a small example that can be used in order to see what's going on
Re: First Virgo SNAP with JSF [message #792911 is a reply to message #792285] Tue, 07 February 2012 15:02 Go to previous messageGo to next message
Moacir Cardoso is currently offline Moacir Cardoso
Messages: 12
Registered: January 2012
Junior Member
In attached file there are two Eclipse projects:
br.teste.webapp.core
br.teste.webapp.jsf

The snap-host is the br.teste.webapp.core.

If you deploy the project without the manifest tags Snap-Host and Snap-contextPath it works perfectly, otherwise the above error occurs.

[Updated on: Tue, 07 February 2012 15:32]

Report message to a moderator

Re: First Virgo SNAP with JSF [message #794248 is a reply to message #792911] Thu, 09 February 2012 03:59 Go to previous messageGo to next message
Dmitry Sklyut is currently offline Dmitry Sklyut
Messages: 272
Registered: January 2010
Senior Member
This log entry look really suspicious:

[2012-02-06 09:14:51.173] INFO   TCP Connection(4)-127.0.0.1 o.e.v.k.i.artifact.internal.bundle.BundleThreadContextManager     Thread context class loader 'KernelBundleClassLoader: [bundle=br.teste.webapp.jsf_1.0.0]' popped and set to 'KernelBundleClassLoader: [bundle=br.teste.webapp.jsf_1.0.0]' 
[2012-02-06 09:14:51.174] INFO   TCP Connection(4)-127.0.0.1 o.e.v.k.i.artifact.internal.bundle.BundleThreadContextManager     Thread context class loader 'KernelBundleClassLoader: [bundle=br.teste.webapp.jsf_1.0.0]' popped and set to 'sun.misc.Launcher$AppClassLoader@f4a24a' 
[2012-02-06 09:14:51.739] INFO  start-signalling-2           o.e.virgo.snaps.core.internal.webapp.config.BundleWebXmlLoader    Loading configuration from 'bundleentry://109.fwk22262475/META-INF/snaps/default-web.xml' 


Why is TCCL is getting poped and set to 'sun.misc.Launcher$AppClassLoader@f4a24a' right before snaps start processing web.xml?

Can you please raise an issue in bugzilla? Thanks Dmitry
Re: First Virgo SNAP with JSF [message #794499 is a reply to message #794248] Thu, 09 February 2012 11:22 Go to previous message
Moacir Cardoso is currently offline Moacir Cardoso
Messages: 12
Registered: January 2012
Junior Member
Bug 371061 created
Previous Topic:Running RAP on Virgo
Next Topic:Virgo + Spring Security + EHCache
Goto Forum:
  


Current Time: Thu Oct 23 15:48:10 GMT 2014

Powered by FUDForum. Page generated in 0.11725 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software