Liferay 4 Development in the Extension Environment Contributions

Extra contents #

4,5 Installing on an Existing Application Server

This section contains detailed instructions for system administrators that need to deploy from ext environment to a existing applications server and ,consequently, do not want to use the bundles referred in previous section.

It is recommended to have a good understanding of how to deploy Java EE applications in the application server of choice.

Please note that while Liferay Portal supports a wide rage of databases, for brevity this section assumes MySQL as the database and that the database has already been created. To use other databases, substitute that database JDBC driver and URL for those required by your database. Liferay will automatically create the tables and populate the database the first time it starts. We also assume you have properly configured your server to have Java installed and that your application server is already installed and running successfully.

The following instructions assume an installation on a local machine. When installing to a remote server, substitute localhost with the host name or IP of the server.

The default configuration deploys to the /ext/servers subdirectory. This can be changed for any installed application server by setting a custom location in the file app.server.${user.name}.properties. For example, to choose an installed 5.5 tomcat in a linux box you can use the following configuration:

app.server.type=tomcat

app.server.parent.dir=/usr/share

app.server.tomcat.dir=${app.server.parent.dir}/tomcat5.5

Once you are ready follow the instructions specific for each application server:

JBoss+Jetty

JBoss+Tomcat

Jetty

JOnAS+Jetty

JOnAS+Tomcat

OC4J

Orion

Tomcat

In an installed tomcat 5.5 for ubuntu (Package: tomcat5.5 Version: 5.5.17-1ubuntu1) i've got a java.lang.ClassNotFoundException: org.apache.tomcat.dbcp.dbcp.BasicDataSourceFactory that prevents liferay to start. Solved by copying naming-factory-dbcp.jar to /usr/share/tomcat5.5/common/lib/

Comments #

(Please keep the following comment format)

Title

Comment text

-- Signature (full name or link to your LiferayPedia page)

Errata #

No content here yet

Related LiferayPedia pages #

No content here yet

0 Attachments
12427 Views
Average (1 Vote)
The average rating is 4.0 stars out of 5.
Comments
Threaded Replies Author Date
Thank cognitive. <a href="http://google.com/"... Klara Gladkovaskiy August 3, 2012 4:17 AM

Thank cognitive.
<a href="http://google.com/" rel="follow">google</a>
Posted on 8/3/12 4:17 AM.