Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
Hotdeploy Liferay 4.0 RC2 vs Liferay 4.0.0 (doesn't work)
On Liferay 4.0 Candidate 2 I put spring_-portlet-sample.war in /home/liferay/deploy and restart tomcat. I tries to deploy and there is a spring-portlet-sample in webapps and it shows up in the Admin/portlets page.<br /><br />I Liferay 4.0.0 I drop the file in /home/liferay/deploy and I get no error messages but also nothing in webapps. I think that the install fails silently without a warning. When I look for anything with the name spring in it<br /><br />$ find . -name \*spring\* -print<br /><br />nothing shows up. Therefore nothing deployed. <br /><br />Here is catalina.out.<br /><br />08:54:05,022 INFO [org.apache.catalina.core.AprLifecycleListener] The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: .:/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java<br />08:54:05,143 INFO [org.apache.coyote.http11.Http11BaseProtocol] Initializing Coyote HTTP/1.1 on http-8080<br />08:54:05,146 INFO [org.apache.catalina.startup.Catalina] Initialization processed in 1209 ms<br />08:54:05,385 INFO [org.apache.catalina.core.StandardService] Starting service Catalina<br />08:54:05,392 INFO [org.apache.catalina.core.StandardEngine] Starting Servlet Engine: Apache Tomcat/5.5.17<br />08:54:05,419 INFO [org.apache.catalina.core.StandardHost] XML validation disabled<br />08:54:05,561 INFO [org.apache.catalina.realm.JAASRealm] Setting useContextClassLoader = false<br />Loading jar:file:/Users/johnryan/dev/liferay4.0.0/liferay/WEB-INF/lib/portal-ejb.jar!/system.properties<br />Loading jar:file:/Users/johnryan/dev/liferay4.0.0/liferay/WEB-INF/lib/portal-ejb.jar!/portal.properties<br />Loading file:/Users/johnryan/dev/liferay4.0.0/liferay/WEB-INF/classes/portal-ext.properties<br />Starting Liferay Portal Professional 4.0.0 (Lloyd-Jones / Build 2987 / June 2, 2006)<br />Loading jar:file:/Users/johnryan/dev/liferay4.0.0/liferay/WEB-INF/lib/portal-ejb.jar!/cache-multi-vm.properties<br />08:54:29,246 INFO [com.liferay.portal.shared.util.ServerDetector] Detected server tomcat<br />08:54:29,647 INFO [com.liferay.portal.shared.deploy.AutoDeployDir] Auto deploy scanner started for /home/liferay/deploy<br />08:54:53,298 INFO [org.apache.catalina.realm.JAASRealm] Setting useContextClassLoader = false<br />08:54:53,508 INFO [org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/tunnel]] Loading Spring root WebApplicationContext<br />08:55:00,851 INFO [org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/tunnel]] Loading WebApplicationContext for Spring FrameworkServlet 'SpringServlet'<br />Loading file:/Users/johnryan/dev/liferay4.0.0/webapps/cms/WEB-INF/classes/cms-redirects.properties<br />08:55:01,311 INFO [org.apache.coyote.http11.Http11BaseProtocol] Starting Coyote HTTP/1.1 on http-8080<br />08:55:01,571 INFO [org.apache.catalina.storeconfig.StoreLoader] Find registry server-registry.xml at classpath resource<br />08:55:01,733 INFO [org.apache.catalina.startup.Catalina] Server startup in 56586 ms<br />Loading jar:file:/Users/johnryan/dev/liferay4.0.0/liferay/WEB-INF/lib/portal-ejb.jar!/portal.properties for liferay.com<br />Loading file:/Users/johnryan/dev/liferay4.0.0/liferay/WEB-INF/classes/portal-ext.properties for liferay.com<br />Loading jar:file:/Users/johnryan/dev/liferay4.0.0/liferay/WEB-INF/lib/portal-ejb.jar!/cache-single-vm.properties<br /><br /><br />It looks like it checked the correct directory, and the war file is gone from /home/liferay/deploy, so something happend, but not a hot deploy. The "Book" portlet did not show up, nor dit any of the other spring portlets, redirect etc. Why does it fail silently on 4.0.0?
<br />On Liferay 4.0 Candidate 2 I put spring_-portlet-sample.war in /home/liferay/deploy and restart tomcat. I tries to deploy and there is a spring-portlet-sample in webapps and it shows up in the Admin/portlets page.<br /><br />I Liferay 4.0.0 I drop the file in /home/liferay/deploy and I get no error messages but also nothing in webapps. I think that the install fails silently without a warning. When I look for anything with the name spring in it<br /><br />$ find . -name \*spring\* -print<br /><br />nothing shows up. Therefore nothing deployed. <br /><br />Here is catalina.out.<br /><br />08:54:05,022 INFO [org.apache.catalina.core.AprLifecycleListener] The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: .:/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java<br /><br />...<br /><br /><br /><br />Almost there! So Close but still no joy!$##*%*.<br /><br />O.K. I Just wanted to say I resolved my problem (sort of) I did a fresh install of the liferay4.0.0-tomcat-jdk5 bundle. <br /><br />I thought there might be a permission problem beccause I could see things left over in the temp directory. So I removed the old installation. Then I created a /home/liferay/deploy directory and put the spring-sample-portlet.war in it. Then I went into ~/liferay/bin and made the shell scripts executable and started liferay. that is I ran "sudo ./startup.sh; tail -f ../logs/catalina.out"; EVERYTHING worked! I saw the spring-sample-portlet deploy.<br /><br />I logged in as test@liferay.com/test and selected the Admin/Portlets tab and saw the portlets "Books, Hello World, Mode Name View, Redirect,Test Exceptions, and WSRP Upload". Hurray! Next I added Users "Power User, User (one per line) to the books portlet. Then I went to add the pages to my homepage with "Add Content" and lo and behold there were the portlets under "Undefined". I added the books portlet to my page successfully! Then I clicked on a book and ist properly sent me to the next page. So far so goood!<br /><br />Now for the bad news. I selected Edit and the whole thing fell apart and took out the rest of my homepage as well.<br /><br />Here is the error message from catalina.out.<br /><br /> <Successfully completed request><br />2006-06-14 14:46:03,511 DEBUG [org.springframework.web.portlet.context.XmlPortletApplicationContext] - <Publishing event in context [PortletApplicationContext for namespace 'books-portlet']: PortletRequestHandledEvent: portlet=[books]; mode=[view]; type=[render]; session=[2C57D6C0A3DDBE3848275DC511A77819]; user=[liferay.com.1]; time=[1897ms]; status=[OK]><br />2006-06-14 14:46:03,554 ERROR [portal-web.docroot.html.portal.render_portlet.jsp] - <java.lang.ClassCastException: [Ljava.lang.String;<br /> at com.liferay.portlet.CachePortlet._invoke(CachePortlet.java:328)<br /> at com.liferay.portlet.CachePortlet.render(CachePortlet.java:153)<br /> at org.apache.jsp.html.portal.render_005fportlet_jsp._jspService(render_005fportlet_jsp.java:629)<br />.....<br /><br />Now whenever I log in I get a page wherin all the portlets say "Navigation is temporarily unavailable, Analog clock is temporarily unavailable, ...Books is temporarily unavailabe" So now the whole installlation is horked and useless. "The guest home page is unaffected". Restarting tomcat fixes the problem. (of course users woun't be able to fis the problem this way so something has to be done!<br /><br />Any one else get this far and have any ideas?
I had the same problem. It seems that there is a bug in CachePortlet. See <a href="http://www.liferay.com/web/guest/community/forums/message_boards/message/77250" target="_blank">http://www.liferay.com/web/guest/community/forums/message_boards/message/77250</a>
Community
Company
Feedback