Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Virgo » VTS with context.xml valve class not found exception(tomcat picketlink integration required valve configuration)
VTS with context.xml valve class not found exception [message #1064897] Fri, 21 June 2013 14:35 Go to next message
vinayak bhadage is currently offline vinayak bhadageFriend
Messages: 2
Registered: June 2013
Junior Member
Dear ,

I have migrated standard war to Virgo Tomcat server 3.6 supported WAB with osgi blueprint (shared service war). It is working fine.

But I am doing integration with picketlink for single sign on. For that purpose need to add valve inside Meta-INF/context.xml of WAB/WAR.

<Context antiJARLocking="true" path="/TransmissionSwitch">
	<Valve className="org.picketlink.identity.federation.bindings.tomcat.sp.ServiceProviderAuthenticator"/>
</Context>


but it is giving error class not found exception. I have tried to add in bundle class path of WAB in META-INF/Manifest.mf as for others jar. But no luck.

Then from some forum come to know that valve dependency should be added in tomcat_home/lib.
Where to add picketlink dependency in VTS ?

KernelBundleClassLoader: [bundle=org.eclipse.gemini.web.tomcat_2.2.2.RELEASE]
	at org.eclipse.virgo.kernel.userregion.internal.equinox.KernelBundleClassLoader.loadClass(KernelBundleClassLoader.java:150)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
	at org.apache.tomcat.util.digester.ObjectCreateRule.begin(ObjectCreateRule.java:144)
	at org.apache.tomcat.util.digester.Digester.startElement(Digester.java:1276)
	at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
	at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown Source)
	at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown Source)
	at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
	at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
	at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
	at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
	at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
	at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
	at org.apache.tomcat.util.digester.Digester.parse(Digester.java:1537)
	at org.apache.catalina.startup.ContextConfig.processContextConfig(ContextConfig.java:635)
	at org.apache.catalina.startup.ContextConfig.contextConfig(ContextConfig.java:599)
	at org.apache.catalina.startup.ContextConfig.init(ContextConfig.java:837)
	at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:387)
	at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
	at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
	at org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:402)
	at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:110)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:139)
	at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
	at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
	at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)
	at org.eclipse.gemini.web.tomcat.internal.TomcatServletContainer.startWebApplication(TomcatServletContainer.java:125)
	at org.eclipse.gemini.web.internal.StandardWebApplication.start(StandardWebApplication.java:109)
	at org.eclipse.virgo.web.core.internal.WebBundleLifecycleListener.onStarted(WebBundleLifecycleListener.java:122)
	at org.eclipse.virgo.kernel.install.artifact.internal.StandardArtifactStateMonitor.onStarted(StandardArtifactStateMonitor.java:271)
	at org.eclipse.virgo.kernel.install.artifact.internal.AbstractInstallArtifact.asyncStartSucceeded(AbstractInstallArtifact.java:319)
	at org.eclipse.virgo.kernel.install.artifact.internal.AbstractInstallArtifact.access$0(AbstractInstallArtifact.java:316)
	at org.eclipse.virgo.kernel.install.artifact.internal.AbstractInstallArtifact$StateMonitorSignal.signalSuccessfulCompletion(AbstractInstallArtifact.java:252)
	at org.eclipse.virgo.nano.core.internal.BundleStartTracker$1.run(BundleStartTracker.java:140)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
	at java.lang.Thread.run(Thread.java:722)
Caused by: java.lang.ClassNotFoundException: org.picketlink.identity.federation.bindings.tomcat.sp.ServiceProviderAuthenticator
	at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:501)
	at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421)
	at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412)
	at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
	at org.eclipse.virgo.kernel.userregion.internal.equinox.KernelBundleClassLoader.loadClass(KernelBundleClassLoader.java:146)
	... 36 common frames omitted


Thanks & regards,
-vinayak
Re: VTS with context.xml valve class not found exception [message #1064964 is a reply to message #1064897] Sat, 22 June 2013 04:42 Go to previous messageGo to next message
Violeta Georgieva is currently offline Violeta GeorgievaFriend
Messages: 278
Registered: October 2010
Senior Member
Hi,

Please provide here the MANIFEST.MF of your WAB.

Regards,
Violeta
Re: VTS with context.xml valve class not found exception [message #1065089 is a reply to message #1064964] Mon, 24 June 2013 10:21 Go to previous message
vinayak bhadage is currently offline vinayak bhadageFriend
Messages: 2
Registered: June 2013
Junior Member
Please find the attached Manifest.fm
In that I have added following entries in Bundle-ClassPath:
WEB-INF/lib/picketbox-4.0.7.Final.jar
WEB-INF/lib/picketlink-core-2.1.7.Final.jar
WEB-INF/lib/picketlink-tomcat5-2.1.7.Final.jar

But deployment is failing for WAB.

Picketlink supports the tomcat through custom valve. In tomcat these jars are added in CATALINA_HOME/lib.

How VTS support this thing ?

Regards,
-vinayak
  • Attachment: MANIFEST.mf
    (Size: 3.92KB, Downloaded 401 times)
Previous Topic:Life after greenpages sample
Next Topic:Virgo 3.6.2 Release
Goto Forum:
  


Current Time: Fri Sep 20 02:13:12 GMT 2024

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

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

Back to the top