转自:https://web.liferay.com/de/community/wiki/-/wiki/Main/Eclipse+Debugging+Liferay+on+Tomcat#section-Eclipse+Debugging+Liferay+on+Tomcat-(Older+versions)+With+a+straightforward+launch+configuration
Using a Launch Configuration specifically created to run Tomcat directly, bypassing Eclipse.
- Open "Run Configurations..." under the Run button
- Under Java Applications node in the tree, right click and "New"
- On Main tab, select the portal source code project or your EXT project
- In the Main class put org.apache.catalina.startup.Bootstrap, don't check any check boxes
- Go to Arguments tab, in the Program arguments type: start
- In VM arguments put like:
这里的参数
-Xmx2600M
-XX:PermSize=128M
-XX:MaxPermSize=512M
-Xmx512m -XX:PermSize=32m -XX:MaxPermSize=160m -Dfile.encoding=UTF8 -Duser.timezone=GMT -Djava.security.auth.login.config=${tomcat-root-folder}/conf/jaas.config -Dcatalina.base=${tomcat-root-folder} -Dcatalina.home=${tomcat-root-folder} -Djava.io.tmpdir=${tomcat-root-folder}/temp
Optional If you want to retain the tomcat logging settings include the following arguments.
-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.util.logging.config.file=${tomcat-root-folder}/conf/logging.properties
Change ${tomcat-root-folder} to point at your tomcat deployment root folder
- In the Working directory, make it: Other: ${tomcat-root-folder}/bin. Again, change ${tomcat-root-folder} accordingly
- In Classpath tab, remove ALL User entries, do NOT remove the JRE System library
- Select User Entries and "Add External JArs", find the bootstrap.jar file from the ${tomcat-root-folder}/bin folder and add only that one
- In the Source tab, select any related project, but also the main project. For example, if you want to also debug a plugin, add it's source path here
- Under Common tab check Run and Debug
- Apply all changes
- Now whenever you want to debug, just go to the debug button/drop down and click. The server should startup on console.
相关推荐
liferay portal 开发指南liferay portal 开发指南liferay portal 开发指南liferay portal 开发指南
Using Liferay Portal 6.1
里面有四个小型的liferay portal mvc实例,所需要的jar文件大家可以在eclipse里面新建一个portlet项目,再将里面的实例代码拷贝进去即可运行
Liferay Portal 内容管理
一共有三部分,这是第一部分。liferay,tomcat
liferay Portal 学习书籍,外国人编写的,非常好。
包含liferay portal开发,帮助,架构,代码,等portlet中文文档 ,PDF格式
liferay portal 6文档,使用说明
liferay portal system development 高清pdf
Liferay Portal Liferay IDE
liferay-portal使用的tomcat需要经过配置后才能被正常使用的,这里提供下jar包,给那些自己配置tomcat服务器的tx使用(我测试过的tomcat5.x有用)
Liferay Portal数据库读写说明
liferay是一个现成的,即开即用的,功能完备的门户网站Liferay Portal,是一个完美的桌面协同办公组合,完全为企业和机构设计
关于liferay portal介绍的ppt
Liferay Portal 二次开发指南,内容比较详细。
RAC配置,RAC配置RAC配置RAC配置RAC配置RAC配置RAC配置RAC配置RAC配置RAC配置RAC配置RAC配置RAC配置RAC配置RAC配置RAC配置RAC配置RAC配置RAC配置RAC配置RAC配置RAC配置RAC配置RAC配置RAC配置RAC配置RAC配置RAC配置RAC...
liferay-portal-tomcat-5.5-5.1.1.part4.rar
liferay-portal-tomcat-5.5-5.1.1.part2.rar
liferay-portal-tomcat-5.5-5.1.1.part3.rar