portals-pluto-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eric Dalquist <eric.dalqu...@doit.wisc.edu>
Subject Re: Class not found
Date Thu, 25 Aug 2011 12:46:23 GMT
You need to have the portlet-api JAR in the tomcat/shared/lib 
classloader and have that classloader enabled in catalina.properties.

-Eric

On 8/24/11 8:26 PM, David Daniel wrote:
> Hello all,
>   I tried my best to follow the instructions for embedding Pluto in 
> tomcat 6 but I keep getting an error.  The instructions are a little 
> outdated so if you happen to know what file I forgot to copy where 
> then please let me know.
> org.springframework.beans.factory.CannotLoadBeanClassException: Error 
> loading class 
> [org.apache.pluto.driver.services.container.PortalContextImpl] for 
> bean with name 'PortalContext' defined in ServletContext resource 
> [/WEB-INF/pluto-portal-driver-services-config.xml]: problem with class 
> file or dependent class; nested exception is 
> java.lang.NoClassDefFoundError: javax/portlet/PortalContext
> Caused by: java.lang.NoClassDefFoundError: javax/portlet/PortalContext
>  at java.lang.ClassLoader.defineClass1(Native Method)
>  at java.lang.ClassLoader.defineClassCond(ClassLoader.java:632)
>  at java.lang.ClassLoader.defineClass(ClassLoader.java:616)
>  at 
> java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
>  at 
> org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1850)
>  at 
> org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:890)
>  at 
> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1354)
>  at 
> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1233)
>  at org.springframework.util.ClassUtils.forName(ClassUtils.java:183)
>  at 
> org.springframework.beans.factory.support.AbstractBeanDefinition.resolveBeanClass(AbstractBeanDefinition.java:317)
>  at 
> org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1044)
>  at 
> org.springframework.beans.factory.support.AbstractBeanFactory.isBeanClassMatch(AbstractBeanFactory.java:1072)
>  at 
> org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:165)
>  at 
> org.springframework.context.support.AbstractApplicationContext.getBeanNamesForType(AbstractApplicationContext.java:691)
>  at 
> org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:395)
>  at 
> org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:328)
>  at 
> org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableWebApplicationContext.java:156)
>  at 
> org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:246)
>  at 
> org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:184)
>  at 
> org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:49)
>  at 
> org.apache.pluto.driver.PortalStartupListener.contextInitialized(PortalStartupListener.java:108)
>  at 
> org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3934)
>  at 
> org.apache.catalina.core.StandardContext.start(StandardContext.java:4429)
>  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:526)
>  at 
> org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:630)
>  at 
> org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:556)
>  at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:491)
>  at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1206)
>  at 
> org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:314)
>  at 
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
>  at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
>  at org.apache.catalina.core.StandardHost.start(StandardHost.java:722)
>  at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
>  at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
>  at 
> org.apache.catalina.core.StandardService.start(StandardService.java:516)
>  at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
>  at org.apache.catalina.startup.Catalina.start(Catalina.java:583)
>  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>  at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>  at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>  at java.lang.reflect.Method.invoke(Method.java:597)
>  at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
>  at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
> Caused by: java.lang.ClassNotFoundException: javax.portlet.PortalContext
>  at 
> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1387)
>  at 
> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1233)
>  ... 45 more
> Aug 24, 2011 9:21:12 PM org.apache.pluto.driver.PortalStartupListener 
> contextDestroyed
> INFO: Shutting down Pluto Portal Driver...
> Aug 24, 2011 9:21:12 PM org.apache.pluto.driver.PortalStartupListener 
> destroyContainer
> INFO: Shutting down Pluto Portal Driver...
> Aug 24, 2011 9:21:12 PM org.apache.pluto.driver.PortalStartupListener 
> contextDestroyed
> INFO: ********** Pluto Portal Driver Shut Down **********


Mime
View raw message