Laliwala IT Services

Laliwala IT Services
Website Development

Thursday, February 24, 2011

Setting up Extention environement, dynamic servlet config, location, phpportlet, tomcat server, app.server, tomcat liferay, java liferay tomacat, dir

Sanghamitra Mitra : Hi ,








While setting up the ext environment for development








as per the instruction @ http://www.liferay.com/community/wiki/-/wiki/Main/Development+Environment+%28Windows%29








I got the following error while deploying








E:\SM\liferay\portal\build.xml:331: The following error occurred while executing

this line:








E:\SM\liferay\portal\build-common-java.xml:100: Failed to copy E:\SM\liferay\por

tal\portal-kernel\portal-kernel.jar to E:\SM\liferay\portal\SMliferay omcat\co

mmon\lib\ext\portal-kernel.jar due to failed to create the parent directory for

E:\SM\liferay\portal\SMliferay omcat\common\lib\ext\portal-kernel.jar








The directory to





E:\SM\liferay\portal\SMliferay omcat\common\lib\ext\ does not exist on my machine.








I believe I have missed to set the right directory in some of the property file , but not able to find out where (which file )to recify the same.








Can any body help me.








Sharing the following for reference.





1. Snapshot of my directory structure


2. release.mitrasag.properties (which lies in the portal directory )


3. app.server.mitrasag.properties ( which lies in the ext directory )








Thanks in advance.

Sanghamitra






Attachments:






Mazhar Anwar : Hi, you have to point to parent directory of your tomcat server, not java, "app.server.parent.dir=E:/SM/liferay"








Please find the attached properties file as per your image.









Attachments:






Sanghamitra Mitra : Hi





Many thanks .. I could solve the problem with your input.








But now getting the following error :





[javac] E:\SM\liferay\portal\util-





bridges\src\com\liferay\util\bridges\wai\WAIPortlet.java:30: cannot find





symbol


[javac] symbol : class HttpUtil





[javac] location: package com.liferay.util





[javac] import com.liferay.util.HttpUtil;

[javac] ^





[javac] E:\SM\liferay\portal\util-





bridges\src\com\liferay\util\bridges\php\PHPPortlet.java:141: cannot find





symbol





[javac] symbol : class DynamicServletConfig





[javac] location: class com.liferay.util.bridges.php.PHPPortlet





[javac] config = new DynamicServletConfig





(config, params);





[javac] ^





[javac] E:\SM\liferay\portal\util-





bridges\src\com\liferay\util\bridges\wai\WAIPortlet.java:134: cannot find





symbol





[javac] symbol : variable HttpUtil





[javac] location: class com.liferay.util.bridges.wai.WAIPortlet





[javac] String queryString = HttpUtil.parameterMapToString





(params, false);





[javac] ^





[javac] Note: Some input files use or override a deprecated API.





[javac] Note: Recompile with -Xlint:deprecation for details.





[javac] Note: Some input files use unchecked or unsafe operations.





[javac] Note: Recompile with -Xlint:unchecked for details.





[javac] 4 errors








What am I missing..








Thanks & Regards.

Sanghamitra






Gaurang Sheladia : Hi Sanghamitra,








Seems like error is missing jar file so you need to add some jar file on your build path.








Thanks,

Gaurang Sheladia






Sanghamitra Mitra : Hi,





Can any body let me know exactly which jar file(s) is required.








Thanks

Sanghamitra






Sandeep Nair : HttpUtil is in portal-kernal.jar and DynamicServletConfig is in util-java.jar








Regards,

San-D

No comments:

Post a Comment