Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Laura Randazzo
Issue in both 5.0 and 5.1 under ext with tomcat 6
July 26, 2008 5:12 PM
Answer

Laura Randazzo

Rank: New Member

Posts: 16

Join Date: May 22, 2008

Recent Posts

I have run into a strange problem that I don't think is pilot error, but either way, I can't figure it out.

I have working portlets in the 4.4 environment. I upgraded to 5.0 and they seemed to work fine, but if I touch all of the files under the ext directory (to make sure it completely redoes a build), it doesn't work. I only tried that because when I put my portlets into our SVN at our location, it wouldn't work after re-running ant, and it turned out if all of the files are "touched" and recompiled then it won't start under tomcat once I run ant to rebuild.

I then tried to download the original ext zip file (provided from the liferay site) and touched all of the files and ran ant to see if it would start under tomcat. It would not. As I was working this problem, I saw that 5.1 was out, so I thought perhaps it was something wrong in the build files for 5.0 (I had put the fix in that was recommended in my earlier post) so I thought I would upgrade to 5.1. I upgraded tomcat according to the instructions on http://www.liferay.com/web/guest/community/wiki/-/wiki/Main/Upgrade%20Instructions%20from%205.0%20to%205.1 and with a couple of tweaks it seemed to work fine (of course without my portlets). I first re-created my theme using the liferay-plugins-sdk-5.1.0.zip and it worked perfectly. So then I extracted the zip file liferay-portal-ext-5.1.0.zip, placed my app.server.{user name}.properties file in the ext directory and upated portal-ext.properties to match what I had already put in tomcat. I touched all the files and then ran ant (I did not add anything to do with my portlets). I started up tomcat and it failed. How is that possible? I thought it should be exactly like what I downloaded from the site as liferay-portal-tomcat-6.0-5.1.0.zip.

Can someone explain this to me please.

Thanks

I've put the error below.

Jul 27, 2008 12:03:08 AM org.apache.catalina.core.StandardContext listenerStart
SEVERE: Exception sending context initialized event to listener instance of class com.liferay.portal.kernel.servlet.ThemeContextListener
java.lang.ExceptionInInitializerError
at com.liferay.portal.kernel.servlet.ThemeContextListener.contextInitialized(ThemeContextListener.java:41)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3843)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4350)
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:525)
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:829)
at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:718)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:490)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1147)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
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:578)
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.NullPointerException
at org.apache.commons.logging.LogFactory.getCachedFactory(LogFactory.java:979)
at org.apache.commons.logging.LogFactory.getFactory(LogFactory.java:435)
at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:704)
at com.liferay.portal.log.CommonsLogFactoryImpl.getLog(CommonsLogFactoryImpl.java:41)
at com.liferay.portal.kernel.log.LogFactoryWrapper.getLog(LogFactoryWrapper.java:78)
at com.liferay.portal.kernel.log.LogFactoryWrapper.getLog(LogFactoryWrapper.java:66)
at com.liferay.portal.kernel.log.LogFactoryUtil.getLog(LogFactoryUtil.java:42)
at com.liferay.portal.kernel.deploy.hot.HotDeployUtil.<clinit>(HotDeployUtil.java:126)
... 25 more
Jul 27, 2008 12:03:08 AM org.apache.catalina.core.StandardContext listenerStop
SEVERE: Exception sending context destroyed event to listener instance of class com.liferay.portal.kernel.servlet.ThemeContextListener
java.lang.NoClassDefFoundError: Could not initialize class com.liferay.portal.kernel.deploy.hot.HotDeployUtil
at com.liferay.portal.kernel.servlet.ThemeContextListener.contextDestroyed(ThemeContextListener.java:48)
at org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:3882)
at org.apache.catalina.core.StandardContext.stop(StandardContext.java:4516)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4380)
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:525)
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:829)
at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:718)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:490)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1147)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
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:578)
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)
Radhakrishna Meduri
RE: Issue in both 5.0 and 5.1 under ext with tomcat 6
June 24, 2013 4:44 AM
Answer

Radhakrishna Meduri

Rank: New Member

Posts: 22

Join Date: December 5, 2011

Recent Posts

Hi

I am looking for upgrade instructions from liferay 5.2.1 to liferay 6.1..
Could you please help me?
I am newbie to lifeary. We are using liferay extenstion environment.

I would like to use tomcat 6.0.36

Thanks
Radhakrishna