Hotdeploy Liferay 4.0 RC2 vs Liferay 4.0.0 (doesn't work)

13711, geändert vor 19 Jahren. Junior Member Beiträge: 35 Beitrittsdatum: 05.05.06 Neueste Beiträge
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 />&#036; find . -name &#092;*spring&#092;* -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&#33;/system.properties<br />Loading jar:file:/Users/johnryan/dev/liferay4.0.0/liferay/WEB-INF/lib/portal-ejb.jar&#33;/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&#33;/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 &#39;SpringServlet&#39;<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&#33;/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&#33;/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 &quot;Book&quot; portlet did not show up, nor dit any of the other spring portlets, redirect etc. Why does it fail silently on 4.0.0?
13711, geändert vor 19 Jahren. Junior Member Beiträge: 35 Beitrittsdatum: 05.05.06 Neueste Beiträge
<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 />&#036; find . -name &#092;*spring&#092;* -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&#33; So Close but still no joy&#33;&#036;##*%*.<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 &quot;sudo ./startup.sh; tail -f ../logs/catalina.out&quot;; EVERYTHING worked&#33; 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 &quot;Books, Hello World, Mode Name View, Redirect,Test Exceptions, and WSRP Upload&quot;. Hurray&#33; Next I added Users &quot;Power User, User (one per line) to the books portlet. Then I went to add the pages to my homepage with &quot;Add Content&quot; and lo and behold there were the portlets under &quot;Undefined&quot;. I added the books portlet to my page successfully&#33; Then I clicked on a book and ist properly sent me to the next page. So far so goood&#33;<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 /> &lt;Successfully completed request&gt;<br />2006-06-14 14:46:03,511 DEBUG [org.springframework.web.portlet.context.XmlPortletApplicationContext] - &lt;Publishing event in context [PortletApplicationContext for namespace &#39;books-portlet&#39;]: PortletRequestHandledEvent: portlet=[books]; mode=[view]; type=[render]; session=[2C57D6C0A3DDBE3848275DC511A77819]; user=[liferay.com.1]; time=[1897ms]; status=[OK]&gt;<br />2006-06-14 14:46:03,554 ERROR [portal-web.docroot.html.portal.render_portlet.jsp] - &lt;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 &quot;Navigation is temporarily unavailable, Analog clock is temporarily unavailable, ...Books is temporarily unavailabe&quot; So now the whole installlation is horked and useless. &quot;The guest home page is unaffected&quot;. Restarting tomcat fixes the problem. (of course users woun&#39;t be able to fis the problem this way so something has to be done&#33;<br /><br />Any one else get this far and have any ideas?
19231, geändert vor 19 Jahren. New Member Beiträge: 10 Beitrittsdatum: 14.01.06 Neueste Beiträge
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>