Fórumok

Issue With Installing Liferay 6.0.6 on Existing Tomcat Installation

thumbnail
Swapnil Jadhav, módosítva 12 év-val korábban

Issue With Installing Liferay 6.0.6 on Existing Tomcat Installation

New Member Bejegyzések: 23 Csatlakozás dátuma: 2011.03.04. Legújabb bejegyzések
Hello Everyone

[indent]I am getting some problem while setting up liferay on existing tomcat installation
Development Environment
Liferay Portal 6.0.6
Apache-tomcat-6.0.33
Mysql
The steps that i followed for performing installation are
1) Downloaded WAR and dependency file from the Source forge.
2) Then followed steps given in the admin guide as follows
3) Created root. XML file in Conf->Catalina->localhost with the content as follows

<Context path="">
<Resource
name="jdbc/LiferayPool"
auth="Container"
type="javax.sql.DataSource"
driverClassName="com.mysql.jdbc.Driver"
url="jdbc:mysql://localhost/lportalbi?useUnicode=true&amp;characterEncoding=UTF-8"
username="xyz"
password="xyz"
maxActive="100"
maxIdle="30"
maxWait="10000"
/>
<Realm
className="org.apache.catalina.realm.JAASRealm"
appName="PortalRealm"
userClassNames="com.liferay.portal.security.jaas.PortalPrincipal"
roleClassNames="com.liferay.portal.security.jaas.PortalRole"
debug="99"
useContextClassLoader="false"
/>
</Context>

4)Content of jaas.config

PortalRealm {
com.liferay.portal.kernel.security.jaas.PortalLoginModule required;
};

5)content added to catalina.bat

rem ----- Execute...
set JAVA_OPTS=-Xms128m -Xmx512m -Dfile.encoding=UTF8
-Duser.timezone=GMT -Djava.security.auth.login.config=
%CATALINA_HOME%/conf/jaas.config [/indent]

6) Also Added Dependency JAR files in ext folder under the Lib Folder

After performing above task when i start the Tomcat it gives me an error as follows.

INFO: Setting useContextClassLoader = false
Nov 4, 2011 12:54:27 AM org.apache.catalina.realm.JAASRealm parseClassNames
SEVERE: Class com.liferay.portal.security.jaas.PortalPrincipal not found! Class
not added.

Nov 4, 2011 12:54:27 AM org.apache.catalina.realm.JAASRealm parseClassNames
SEVERE: Class com.liferay.portal.security.jaas.PortalRole not found! Class not a
dded.

Nov 4, 2011 12:54:28 AM org.apache.catalina.core.StandardContext start
SEVERE: Error listenerStart
Nov 4, 2011 12:54:28 AM org.apache.catalina.core.StandardContext start
SEVERE: Context [/Root] startup failed due to previous errors
Nov 4, 2011 12:54:28 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory docs
Nov 4, 2011 12:54:28 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory examples
Nov 4, 2011 12:54:28 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory ROOT
Nov 4, 2011 12:54:29 AM org.apache.catalina.core.StandardContext start
SEVERE: Error listenerStart
Nov 4, 2011 12:54:29 AM org.apache.catalina.core.StandardContext start
SEVERE: Context [] startup failed due to previous errors
Nov 4, 2011 12:54:29 AM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
Nov 4, 2011 12:54:29 AM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
Nov 4, 2011 12:54:29 AM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/15 config=null
Nov 4, 2011 12:54:29 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 2608 ms

Please give me some input where i am going wrong or what are the steps that i have to follow more to solve this issue..

Thanks in Advance

Regards
Swapnil
thumbnail
Sagar A Vyas, módosítva 12 év-val korábban

RE: Issue With Installing Liferay 6.0.6 on Existing Tomcat Installation

Liferay Master Bejegyzések: 679 Csatlakozás dátuma: 2009.04.17. Legújabb bejegyzések
Hi Swapnil,

Check out below URL it may help you.

http://www.liferay.com/community/wiki/-/wiki/Main/Quick+Installation+Instructions

Thanks,
Sagar Vyas
thumbnail
Swapnil Jadhav, módosítva 12 év-val korábban

RE: Issue With Installing Liferay 6.0.6 on Existing Tomcat Installation

New Member Bejegyzések: 23 Csatlakozás dátuma: 2011.03.04. Legújabb bejegyzések
Hi Sagar

I have followed all the steps from the URL that you given in the post but not get success yet.

Thanks
Swapnil
thumbnail
Sagar A Vyas, módosítva 12 év-val korábban

RE: Issue With Installing Liferay 6.0.6 on Existing Tomcat Installation

Liferay Master Bejegyzések: 679 Csatlakozás dátuma: 2009.04.17. Legújabb bejegyzések
Hi Swapnil,

May I Know the reason why did you use old tomcat ?

I would suggest extract fresh tomcat bundle for new Liferay Instance.

Thanks,
Sagar Vyas
thumbnail
Swapnil Jadhav, módosítva 12 év-val korábban

RE: Issue With Installing Liferay 6.0.6 on Existing Tomcat Installation

New Member Bejegyzések: 23 Csatlakozás dátuma: 2011.03.04. Legújabb bejegyzések
Hi Sagar

We are using Liferay with tomcat bundled in the development but for production client want to deploy liferay on their existing tomcat.

Thanks
Swapnil
thumbnail
Sagar A Vyas, módosítva 12 év-val korábban

RE: Issue With Installing Liferay 6.0.6 on Existing Tomcat Installation

Liferay Master Bejegyzések: 679 Csatlakozás dátuma: 2009.04.17. Legújabb bejegyzések
Hi Swapnil,

You mean to say you need to deploy certain applications (Portlet , Themes) in production server ?

So that you can achieve by simple deploy portlets.

Why you doing above mention step i am still not on track emoticon

Thanks,
Sagar Vyas
thumbnail
Sander Bilo, módosítva 12 év-val korábban

RE: Issue With Installing Liferay 6.0.6 on Existing Tomcat Installation

New Member Bejegyzések: 21 Csatlakozás dátuma: 2010.12.02. Legújabb bejegyzések
Hi Swapnil,

Did you try adding the dependencies from the tomcat bundle instead of those from the dependencies zip-file? My experience is the dependencies.zip file is missing some jars for tomcat installations wich are included in the bundle.
thumbnail
Swapnil Jadhav, módosítva 12 év-val korábban

RE: Issue With Installing Liferay 6.0.6 on Existing Tomcat Installation

New Member Bejegyzések: 23 Csatlakozás dátuma: 2011.03.04. Legújabb bejegyzések
Hi Everyone,

This issue has been resolved , the root cause for this issue was the URL was not correct for some of the configuration files in the tomcat. So I have referred the liferay with bundled tomcat configuration files for doing changes in new tomcat configuration files.

Thanks for the support,

Regards
Swapnil