[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [virgo-dev] Apache MyFaces

Hi Saadat,
 
I can reproduce your problem with very simple application with custom classloader. The resource cannot be found because it is not bind in the naming. Your custom classloader has to maintain this.
Can you tell me what in addition the custom classloader of the web application is doing.
What is the behavior if you drop the custom classloader and use the one provided with Virgo?
 
Regards,
Violeta

2010/12/24 Saadat Dowlati <sdowlati@xxxxxxxxxxxxxx>

Hello Dmitry, Violeta,
 We removed all references/logic associated with MyFaces from our standard WAR app, since it was not a critical part of the app. Now, we get same exact error but on one of the adobe flex/BlazeDS jars -- that's, we get same exception, as originally posted, with 'flex-messaging-opt-3.2.0.jar' in place of 'myfaces-api-1.2.5.jar'.

The one thing that Flex+BlazeDS and MyFaces have in common is the use of JNDI. In addition to BlazeDS, our app also  uses Atomikos JTA and apache OpenJPA, which all utilize JNDI.

Is there a way to confirm that this is indeed a JNDI related issue?

I followed the instructions on using Gemini Naming, by Dmitry, but apparently tomcat is getting in the way and there's already an open ticket on this bug. How soon can we expect a fix? Is there a workaround or any other alternative?

BTW, this is the same standard WAR app that its custom class  loader issue was resolved by two fragment bundles (many thanks to both of you).
       
For your reference, I can publish/provide any of the config files but I'm not at liberty on the app:-(
--
Regards,
sd

On Tue, Dec 14, 2010 at 6:41 AM, Dmitry Sklyut <dmitry@xxxxxxxxxxx> wrote:
Saadat,

It would be even better if you could provide a slimmed down version on the app to test with.
Would help immensely!

Regards,
Dmitry 

On Tue, Dec 14, 2010 at 6:38 AM, Violeta Georgieva <milesg78@xxxxxxxxx> wrote:
Hi,
 
Can you give more information about the application?
-context.xml
-Manifest.mf
 
Thanks and Regards
Violeta

2010/12/14 Saadat Dowlati <sdowlati@xxxxxxxxxxxxxx>
Hello,
    I have a standard WAR application (works on tomcat 5.5 and 6 as is) which uses MyFaces and it fails to start in virgo. Based on the log below, I can't tell if this is a JNDI problem or myfaces -- "/WEB-INF/lib/myfaces-api-1.2.5.jar" actually exists in the WAR.
I would appreciate if someone can shed some light on the real root cause.
 
HD0001I Hot deployer processing 'CREATED' event for file 'EMA-Server.war'.
 ApplicationDeploying path 'C:\APPSER~1\VIRGO-~1.REL\pickup\EMA-Server.war'.
 Processing installing event for bundle 'EMA-Server' version '0.0.0'
DE0000I Installing bundle 'EMA-Server' version '0.0.0'.
 Calculating missing dependencies of bundle(s) 'EMA-Server_0.0.0'
 The dependencies of '[EMA-Server_0.0.0]' are '[]'
 Processing installed event for 'EMA-Server:0.0.0'
DE0001I Installed bundle 'EMA-Server' version '0.0.0'.
 Thread context class loader 'BundleDelegatingClassLoader for [Virgo Kernel Deployer (org.eclipse.virgo.kernel.deployer)]' popped and set to 'BundleDelegatingClassLoader for [Virgo Kernel Deployer (org.eclipse.virgo.ker
 Thread context class loader 'BundleDelegatingClassLoader for [Virgo Kernel Deployer (org.eclipse.virgo.kernel.deployer)]' pushed and set to 'KernelBundleClassLoader: [bundle=EMA-Server_0.0.0]'
 Thread context class loader 'KernelBundleClassLoader: [bundle=EMA-Server_0.0.0]' popped and set to 'BundleDelegatingClassLoader for [Virgo Kernel Deployer (org.eclipse.virgo.kernel.deployer)]'
 Thread context class loader 'BundleDelegatingClassLoader for [Virgo Kernel Deployer (org.eclipse.virgo.kernel.deployer)]' pushed and set to 'KernelBundleClassLoader: [bundle=EMA-Server_0.0.0]'
 Thread context class loader 'KernelBundleClassLoader: [bundle=EMA-Server_0.0.0]' pushed and set to 'KernelBundleClassLoader: [bundle=EMA-Server_0.0.0]'
 No atomic parent of bundle 'EMA-Server' version '0.0.0' in scope 'null' to propagate starting event to
DE0004I Starting bundle 'EMA-Server' version '0.0.0'.
 Non-Spring DM powered bundle 'EMA-Server_0.0.0 [66]' has started. Driving signals '[org.eclipse.virgo.kernel.install.artifact.internal.AbstractInstallArtifact$StateMonitorSignal@7cddcb]'.
 Thread context class loader 'KernelBundleClassLoader: [bundle=EMA-Server_0.0.0]' pushed and set to 'KernelBundleClassLoader: [bundle=EMA-Server_0.0.0]'
 Thread context class loader 'KernelBundleClassLoader: [bundle=EMA-Server_0.0.0]' popped and set to 'KernelBundleClassLoader: [bundle=EMA-Server_0.0.0]'
 Thread context class loader 'KernelBundleClassLoader: [bundle=EMA-Server_0.0.0]' popped and set to 'BundleDelegatingClassLoader for [Virgo Kernel Deployer (org.eclipse.virgo.kernel.deployer)]'
WE0000I Starting web bundle 'EMA-Server' version '0.0.0' with context path '/EMA-Server'.
 Dec 13, 2010 7:24:09 PM org.apache.catalina.loader.WebappLoader start
 INFO: Dual registration of jndi stream handler: factory already defined
 Dec 13, 2010 7:24:09 PM org.apache.catalina.loader.WebappLoader start
 SEVERE: LifecycleException 
 java.io.IOException: Failed to access resource /WEB-INF/lib/myfaces-api-1.2.5.jar
  at org.apache.catalina.loader.WebappLoader.setRepositories(WebappLoader.java:1050)
  at org.apache.catalina.loader.WebappLoader.start(WebappLoader.java:681)
  at org.apache.catalina.core.StandardContext.start(StandardContext.java:4551)
  at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
  at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
  at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:546)
  at org.eclipse.gemini.web.tomcat.internal.TomcatServletContainer.startWebApplication(TomcatServletContainer.java:120)
  at org.eclipse.gemini.web.internal.StandardWebApplication.start(StandardWebApplication.java:90)
  at org.eclipse.virgo.web.core.internal.WebBundleLifecycleListener.onStarted(WebBundleLifecycleListener.java:120)
  at org.eclipse.virgo.kernel.install.artifact.internal.ArtifactStateMonitor.onStarted(ArtifactStateMonitor.java:205)
  at org.eclipse.virgo.kernel.install.artifact.internal.AbstractInstallArtifact.asyncStartSucceeded(AbstractInstallArtifact.java:273)
  at org.eclipse.virgo.kernel.install.artifact.internal.AbstractInstallArtifact.access$0(AbstractInstallArtifact.java:270)
  at org.eclipse.virgo.kernel.install.artifact.internal.AbstractInstallArtifact$StateMonitorSignal.signalSuccessfulCompletion(AbstractInstallArtifact.java:223)
  at org.eclipse.virgo.kernel.core.internal.BundleStartTracker$1.run(BundleStartTracker.java:140)
  at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
  at java.lang.Thread.run(Thread.java:619)
 Caused by: javax.naming.NamingException: Name 'myfaces-api-1.2.5.jar' does not exist.
  at org.eclipse.gemini.web.tomcat.internal.loading.BundleDirContext.getNamedEntry(BundleDirContext.java:74)
  at org.eclipse.gemini.web.tomcat.internal.loading.BundleDirContext.doLookup(BundleDirContext.java:63)
  at org.apache.naming.resources.BaseDirContext.lookup(BaseDirContext.java:378)
  at org.apache.catalina.loader.WebappLoader.setRepositories(WebappLoader.java:1048)
  ... 16 more
 Dec 13, 2010 7:24:09 PM org.apache.catalina.core.ContainerBase addChildInternal
 SEVERE: ContainerBase.addChild: start: 
 LifecycleException:  start: :  java.io.IOException: Failed to access resource /WEB-INF/lib/myfaces-api-1.2.5.jar
  at org.apache.catalina.loader.WebappLoader.start(WebappLoader.java:707)
  at org.apache.catalina.core.StandardContext.start(StandardContext.java:4551)
  at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
  at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
  at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:546)
  at org.eclipse.gemini.web.tomcat.internal.TomcatServletContainer.startWebApplication(TomcatServletContainer.java:120)
  at org.eclipse.gemini.web.internal.StandardWebApplication.start(StandardWebApplication.java:90)
  at org.eclipse.virgo.web.core.internal.WebBundleLifecycleListener.onStarted(WebBundleLifecycleListener.java:120)
  at org.eclipse.virgo.kernel.install.artifact.internal.ArtifactStateMonitor.onStarted(ArtifactStateMonitor.java:205)
  at org.eclipse.virgo.kernel.install.artifact.internal.AbstractInstallArtifact.asyncStartSucceeded(AbstractInstallArtifact.java:273)
  at org.eclipse.virgo.kernel.install.artifact.internal.AbstractInstallArtifact.access$0(AbstractInstallArtifact.java:270)
  at org.eclipse.virgo.kernel.install.artifact.internal.AbstractInstallArtifact$StateMonitorSignal.signalSuccessfulCompletion(AbstractInstallArtifact.java:223)
  at org.eclipse.virgo.kernel.core.internal.BundleStartTracker$1.run(BundleStartTracker.java:140)
  at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
  at java.lang.Thread.run(Thread.java:619)
ME0003I Dump 'serviceability\dump\2010-12-13-19-24-936' generated
 Thread context class loader 'KernelBundleClassLoader: [bundle=EMA-Server_0.0.0]' popped and set to 'KernelBundleClassLoader: [bundle=EMA-Server_0.0.0]'
 Exception in thread "start-signalling-4" java.lang.IllegalStateException: ContainerBase.addChild: start: LifecycleException:  start: :  java.io.IOException: Failed to access resource /WEB-INF/lib/myfaces-api-1.2.5.jar
  at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:795)
 --
Thanks,
sd

_______________________________________________
virgo-dev mailing list
virgo-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/virgo-dev



_______________________________________________
virgo-dev mailing list
virgo-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/virgo-dev



_______________________________________________
virgo-dev mailing list
virgo-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/virgo-dev



_______________________________________________
virgo-dev mailing list
virgo-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/virgo-dev