Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
How to deploy ext-plugin in a production Tomcat? Juan José Fuentes June 7, 2011 3:27 AM
RE: How to deploy ext-plugin in a production Tomcat? Juan José Fuentes June 13, 2011 11:59 PM
RE: How to deploy ext-plugin in a production Tomcat? Lirone75 M. June 14, 2011 12:36 AM
RE: How to deploy ext-plugin in a production Tomcat? Juan José Fuentes June 15, 2011 6:38 AM
RE: How to deploy ext-plugin in a production Tomcat? Marc Piparo September 13, 2011 7:13 AM
RE: How to deploy ext-plugin in a production Tomcat? Lina Margarita Holguin March 24, 2012 3:13 PM
RE: How to deploy ext-plugin in a production Tomcat? Hitoshi Ozawa March 25, 2012 4:53 AM
RE: How to deploy ext-plugin in a production Tomcat? Lina Margarita Holguin March 25, 2012 1:30 PM
RE: How to deploy ext-plugin in a production Tomcat? Hitoshi Ozawa March 25, 2012 2:12 PM
RE: How to deploy ext-plugin in a production Tomcat? Lina Margarita Holguin March 25, 2012 2:20 PM
RE: How to deploy ext-plugin in a production Tomcat? Hitoshi Ozawa March 25, 2012 2:26 PM
RE: How to deploy ext-plugin in a production Tomcat? Lina Margarita Holguin March 25, 2012 2:42 PM
RE: How to deploy ext-plugin in a production Tomcat? Hitoshi Ozawa March 25, 2012 3:54 PM
RE: How to deploy ext-plugin in a production Tomcat? Florencia Gadea December 5, 2012 7:26 AM
RE: How to deploy ext-plugin in a production Tomcat? Sushil Saini December 7, 2012 8:13 PM
RE: How to deploy ext-plugin in a production Tomcat? Sushil Saini December 7, 2012 3:46 PM
RE: How to deploy ext-plugin in a production Tomcat? Florencia Gadea December 10, 2012 3:41 AM
RE: How to deploy ext-plugin in a production Tomcat? Sushil Saini December 10, 2012 3:53 AM
RE: How to deploy ext-plugin in a production Tomcat? Florencia Gadea December 10, 2012 3:55 AM
RE: How to deploy ext-plugin in a production Tomcat? Oliver Bayer December 10, 2012 8:07 AM
RE: How to deploy ext-plugin in a production Tomcat? Florencia Gadea December 10, 2012 9:04 AM
RE: How to deploy ext-plugin in a production Tomcat? Florencia Gadea December 11, 2012 4:01 AM
RE: How to deploy ext-plugin in a production Tomcat? Oliver Bayer December 11, 2012 5:04 AM
RE: How to deploy ext-plugin in a production Tomcat? Florencia Gadea December 11, 2012 6:10 AM
RE: How to deploy ext-plugin in a production Tomcat? Oliver Bayer December 12, 2012 2:27 AM
RE: How to deploy ext-plugin in a production Tomcat? Florencia Gadea December 12, 2012 3:39 AM
RE: How to deploy ext-plugin in a production Tomcat? Florencia Gadea December 12, 2012 8:11 AM
RE: How to deploy ext-plugin in a production Tomcat? Oliver Bayer December 14, 2012 1:35 AM
Juan José Fuentes
How to deploy ext-plugin in a production Tomcat?
June 7, 2011 3:27 AM
Answer

Juan José Fuentes

Rank: Junior Member

Posts: 42

Join Date: July 16, 2010

Recent Posts

Hi,

I've been developing an ext plugin for Liferay 6.0.5 with Liferay IDE in Windows 7. When testing it in the Tomcat bundle used (and started) by the IDE works great: I deploy it, restart Tomcat, and the changes are applied.

But if I try to deploy it placing the war file in the deploy folder of a fresh Liferay runtime (no ext plugin deployed before), started from the startup.bat script , and restart it, the changes are not applied. I mean, the last entry in the log is the "Deploying XXXX". No message telling me to restart or something.

Is there anything I have to do additionally? Is there a wiki that explains how to deploy an ext plugin in a non development environment?

Thank you for your time.
Juan José Fuentes
RE: How to deploy ext-plugin in a production Tomcat?
June 13, 2011 11:59 PM
Answer

Juan José Fuentes

Rank: Junior Member

Posts: 42

Join Date: July 16, 2010

Recent Posts

¿Nobody has had this problem before? I'm still unable of installing the ext plugin...
Lirone75 M.
RE: How to deploy ext-plugin in a production Tomcat?
June 14, 2011 12:36 AM
Answer

Lirone75 M.

Rank: Regular Member

Posts: 235

Join Date: March 19, 2007

Recent Posts

tomcat supports auto deploy so just putting the war in the auto deploy folder should be ok.


Documentation on it : http://www.liferay.com/documentation/liferay-portal/6.0/development/-/ai/deploying-in-production
Juan José Fuentes
RE: How to deploy ext-plugin in a production Tomcat?
June 15, 2011 6:38 AM
Answer

Juan José Fuentes

Rank: Junior Member

Posts: 42

Join Date: July 16, 2010

Recent Posts

It should be that easy, but the fact is that the plugin isn't deployed. I'm going to download the latest tomcat bundle and the latest plugins sdk, create a simple ext plugin and deploy. I'll share the results.
Marc Piparo
RE: How to deploy ext-plugin in a production Tomcat?
September 13, 2011 7:13 AM
Answer

Marc Piparo

Rank: Junior Member

Posts: 43

Join Date: March 14, 2011

Recent Posts

Has this been resolved. I am having the same issue. When I deploy my ext plugin as a war in my production tomcat environment the war is extracted as a webapp, but it doesnt appear any of the appropriate libs are copied over the ROOT/WEB-INF/lib as it does in my dev environment when deploying.
Does any one know the correct steps for deploying an Ext plugin into a tomcat prod environment?

thanks!
Lina Margarita Holguin
RE: How to deploy ext-plugin in a production Tomcat?
March 24, 2012 3:13 PM
Answer

Lina Margarita Holguin

Rank: Junior Member

Posts: 25

Join Date: March 25, 2011

Recent Posts

Hello, i have the same problem, nobody found the solution? i have liferay into tomcat server
Hitoshi Ozawa
RE: How to deploy ext-plugin in a production Tomcat?
March 25, 2012 4:53 AM
Answer

Hitoshi Ozawa

Rank: Liferay Legend

Posts: 7990

Join Date: March 23, 2010

Recent Posts

I really haven't had any problem deploying ext plugin on Tomcat. Is there any error messages? Is the war file deleted from the deploy directory?

How are you creating your war file to deploy to Tomcat? I had one user who was just zipping the project directory instead of doing a build.
Lina Margarita Holguin
RE: How to deploy ext-plugin in a production Tomcat?
March 25, 2012 1:30 PM
Answer

Lina Margarita Holguin

Rank: Junior Member

Posts: 25

Join Date: March 25, 2011

Recent Posts

look, in development enviroment, the ext-plugin works fine using the sdk, but when i want to install the .war of the ext-plugin into my tomcat production, install fine but the changes are not visible.

i was restarted the server but is the same, not works.

My plugin-ext works fine and i had the .war, how install in the server?
Thanks
Hitoshi Ozawa
RE: How to deploy ext-plugin in a production Tomcat?
March 25, 2012 2:12 PM
Answer

Hitoshi Ozawa

Rank: Liferay Legend

Posts: 7990

Join Date: March 23, 2010

Recent Posts

look, in development enviroment, the ext-plugin works fine using the sdk, but when i want to install the .war of the ext-plugin into my tomcat production, install fine but the changes are not visible.


So how are you deploying your ext plugin on to your production tomcat server? By modifying your build.properties from development to production. Please answer my questions I posted before.
Lina Margarita Holguin
RE: How to deploy ext-plugin in a production Tomcat?
March 25, 2012 2:20 PM
Answer

Lina Margarita Holguin

Rank: Junior Member

Posts: 25

Join Date: March 25, 2011

Recent Posts

Thanks for your answer... When i install my plugin-ext inte tomcat server, not show message error, say that the plugin is installed sucess. But don't work.

I did the ext-plugin with liferay sdk, but my tomcat production was clean install, only upload the plugins when works fine un te development enviroment.

In the liferay directory server production doesn't file build.properties
Hitoshi Ozawa
RE: How to deploy ext-plugin in a production Tomcat?
March 25, 2012 2:26 PM
Answer

Hitoshi Ozawa

Rank: Liferay Legend

Posts: 7990

Join Date: March 23, 2010

Recent Posts

So the war file you're uploading to your production server is corrupt. Modify the ant build.properties file to deploy to your production server after testing your ext plugin on your development server.
Lina Margarita Holguin
RE: How to deploy ext-plugin in a production Tomcat?
March 25, 2012 2:42 PM
Answer

Lina Margarita Holguin

Rank: Junior Member

Posts: 25

Join Date: March 25, 2011

Recent Posts

HItoshi sorry, in the tomcat server production where create the file build.properties?? because this file is available into liferay-sdk, but in the server doesn't sdk only the liferay-tomcat6

Thanks for all.
Hitoshi Ozawa
RE: How to deploy ext-plugin in a production Tomcat?
March 25, 2012 3:54 PM
Answer

Hitoshi Ozawa

Rank: Liferay Legend

Posts: 7990

Join Date: March 23, 2010

Recent Posts

build.properties is not in the production server. It's in the SDK. Change the properties in the build.properties to point to your production server.

Change the following property to point to your production server instead of your development server:
app.server.dir =
Florencia Gadea
RE: How to deploy ext-plugin in a production Tomcat?
December 5, 2012 7:26 AM
Answer

Florencia Gadea

Rank: Regular Member

Posts: 159

Join Date: March 27, 2012

Recent Posts

Hi José,

I'm having exactly the same problem. But I'm using LR 6.1.1 GA2.

Did you ever find a solution?

Regards,

Flor.
Sushil Saini
RE: How to deploy ext-plugin in a production Tomcat?
December 7, 2012 8:13 PM
Answer

Sushil Saini

Rank: Regular Member

Posts: 102

Join Date: July 27, 2011

Recent Posts

Hi All,

Using the Liferay version 6.1.1 GA2 with tomcat. And used the following steps while deploying the ext plugin on the production and it is working fine for me.

Liferay Redeploy Ext Plugin
 1
 2
 31.    Stop the tomcat server.
 42.     Delete the temporary data from the temp and work folder of tomcat server.
 53.    Delete the following jar file from $TOMCAT_HOME/lib/ext
 6        •     ext-*-ext-service.jar
 74.    Delete the following file from $TOMCAT_HOME/ROOT/WEB-INF/lib/
 8        •    ext-*-ext-impl.jar
 9        •    ext-*-ext-util-bridges.jar
10        •    ext-*-ext-util-java.jar
11        •    ext-*-ext-util-taglib.jar
125.    Delete the following file from $TOMCAT_HOME/ROOT/WEB-INF
13        •    ext-*-ext.xml
146.    Replace the $TOMCAT_HOME/ROOT/WEB-INF/web.xml file with the default web.xml file which comes with the liferay bundle. (I think this step is required when you are doing any modification in web.xml through the ext plugin.)
157.     Delete the ext-* plugin folder from the $TOMCAT_HOME/webapps directory.
168.     Deploy the ext-*.war file in the deploy directory.
179.    Start the tomcat server.
1810.    Restart the tomcat server again.



Thanks & Regards
Sushil Saini
Sushil Saini
RE: How to deploy ext-plugin in a production Tomcat?
December 7, 2012 3:46 PM
Answer

Sushil Saini

Rank: Regular Member

Posts: 102

Join Date: July 27, 2011

Recent Posts

Guys,... Please let us know if you still face any issue...
Florencia Gadea
RE: How to deploy ext-plugin in a production Tomcat?
December 10, 2012 3:41 AM
Answer

Florencia Gadea

Rank: Regular Member

Posts: 159

Join Date: March 27, 2012

Recent Posts

Hi Sushil,

The actual problem is that we can't even deploy in a production server.

Regards,

Flor.
Sushil Saini
RE: How to deploy ext-plugin in a production Tomcat?
December 10, 2012 3:53 AM
Answer

Sushil Saini

Rank: Regular Member

Posts: 102

Join Date: July 27, 2011

Recent Posts

Hi Florencia,.. I am not getting, what is the problem you are facing.. Can you please describe.

In my case, i am using the liferay 6.1.1 and building the ext-plugin using the plugin-sdk. And then i am manually deploying the ext-plugin to tomcat-liferay setup using the above steps and it is working fine.

Regards
Sushil Saini
Florencia Gadea
RE: How to deploy ext-plugin in a production Tomcat?
December 10, 2012 3:55 AM
Answer

Florencia Gadea

Rank: Regular Member

Posts: 159

Join Date: March 27, 2012

Recent Posts

Well, if you read the first post, that is the problem I'm having.

I put the war in the deploy folder, it looks like it gets deployed, but the changes are not applied.

Regards,

Flor.
Oliver Bayer
RE: How to deploy ext-plugin in a production Tomcat?
December 10, 2012 8:07 AM
Answer

Oliver Bayer

Rank: Liferay Master

Posts: 870

Join Date: February 18, 2009

Recent Posts

Hi Florencia,

the "easiest" workaround would be to deploy it manually - even if it's not really solution for your reported problem. Be careful when deploying the ext-service.jar file. I ran into another issue there. You should copy it into a different folder (not /lib/ext) as described in the following Jira issue.

HTH Oli
Florencia Gadea
RE: How to deploy ext-plugin in a production Tomcat?
December 10, 2012 9:04 AM
Answer

Florencia Gadea

Rank: Regular Member

Posts: 159

Join Date: March 27, 2012

Recent Posts

Hi Oliver,

Thank you so much for this valuable piece of information. I woudn't have been able to find it out without your help.

If I have problems with it, I'll contact you again.

Thanks,

Flor.
Florencia Gadea
RE: How to deploy ext-plugin in a production Tomcat?
December 11, 2012 4:01 AM
Answer

Florencia Gadea

Rank: Regular Member

Posts: 159

Join Date: March 27, 2012

Recent Posts

Hi Oliver,

The ext plugin is still not working for me. In my extension I also override classes from portal-impl.jar. Not sure when that jar is loaded.

This is what I have in catalina.properties:

1common.loader=${catalina.base}/lib,${catalina.base}/lib/*.jar,${catalina.home}/lib,${catalina.home}/lib/*.jar,${catalina.home}/lib/liferay-ext,${catalina.home}/lib/liferay-ext/*.jar,${catalina.home}/lib/liferay,${catalina.home}/lib/liferay/*.jar

What do you think?

Regards,

Flor.
Oliver Bayer
RE: How to deploy ext-plugin in a production Tomcat?
December 11, 2012 5:04 AM
Answer

Oliver Bayer

Rank: Liferay Master

Posts: 870

Join Date: February 18, 2009

Recent Posts

Hi Flor,

your configuration of the common.loader property seems to be ok. You only need this change if ext-service overrides aren't loaded.

The ext-impl jar file should be placed into the "webapps \ ROOT \ WEB-INF \ lib" folder instead and should automatically override the original ones from the portal-impl.jar file.
There could be some reasons if your modifications aren't loaded - without any further info I have to guess:
- is the package structure correct (the same as in portal-impl)?
- do these classes need additional configuration (spring, struts, tiles ...)?
- are these classes filters or listeners (then you have to modify web.xml)?

- did you delete the work and temp folder of tomcat before restarting?

Normally it's an "easy" task -more or less- to deploy the ext manually but as a drawback you have to know the internals e.g. where and how it's configured to be able to apply it on your own. If you have any questions feel free to ask again but please provide some more info (e.g. the server you are using, which classes aren't loaded, which error messages shown up, do they shown up in jsps or in classes...).

Greets Oli
Florencia Gadea
RE: How to deploy ext-plugin in a production Tomcat?
December 11, 2012 6:10 AM
Answer

Florencia Gadea

Rank: Regular Member

Posts: 159

Join Date: March 27, 2012

Recent Posts

Hi Oli,

Thanks for you help. I could make it work. The thing was that I didn't know that I had to manually move the ext-service.jar and ext-impl.jar.

I'm developing an app that will be available for the community, for LR 6.1.1 GA 2 CE. So the OS shoudn't matter, I would like it to work in any environment. And I would like it to make it as easy as possible for any user to install it. I first deploy a portlet and then an ext plugin.

Here are the steps for the ext plugin:

1) Drop the war in the deploy folder. Then in gets deployed.
2) Turn the server off.
3) Copy the ext-service.jar in tomcat/lib/ext.
4) Copy the ext-impl.jar in webapps/ROOT/WEB-INF/lib
5) Delete the temp and work directories.
6) Start the server.

Now everything works fine.

Are these the standard steps that any user should follow to install an ext plugin?

Regards, thanks again,

Flor.
Oliver Bayer
RE: How to deploy ext-plugin in a production Tomcat?
December 12, 2012 2:27 AM
Answer

Oliver Bayer

Rank: Liferay Master

Posts: 870

Join Date: February 18, 2009

Recent Posts

Hi Flor,

afaik you dont' have to copy files manually if you use the deploy mechanism. If you have no ext plugin deployed it should work for the very first time (but you have to restart the server). Afterwards if you want to redeploy it you can first undeploy it as described in this wiki or you can "deploy" it manually as I've tried to describe it.

Regards Oli
Florencia Gadea
RE: How to deploy ext-plugin in a production Tomcat?
December 12, 2012 3:39 AM
Answer

Florencia Gadea

Rank: Regular Member

Posts: 159

Join Date: March 27, 2012

Recent Posts

Hi Oli,

Well, that is extactly the problem I have! I have a clean server where no ext plugin has ever been deployed. I put the war in the deploy folder. It looks like it has been deployed. I restart the server. But it never gets fully deployed! I only see that it is copied under webapps folder and that the global libraries are under lib/ext. But the changes are not applied. So in order to make it work, I have to move those jars manually. Why do you think I have that problem?

I'm using Ubuntu 10.04.4. Java version "1.6.0_24", OpenJDK. Liferay 6.1.1 GA 2 CE.

Regards,

Flor.
Florencia Gadea
RE: How to deploy ext-plugin in a production Tomcat?
December 12, 2012 8:11 AM
Answer

Florencia Gadea

Rank: Regular Member

Posts: 159

Join Date: March 27, 2012

Recent Posts

Hi Oli,

I finally found the problem. I didn't have the file liferay-plugin-package.xml in the ext plugin. Now it works fine. It is such a pity that this is not specified in the ext plugin development documentation.

Thanks for the help,

Flor.
Oliver Bayer
RE: How to deploy ext-plugin in a production Tomcat?
December 14, 2012 1:35 AM
Answer

Oliver Bayer

Rank: Liferay Master

Posts: 870

Join Date: February 18, 2009

Recent Posts

Hi Flor,

I'm glad to hear that you've got it to work. Thanks for the info about the missing liferay-plugin-package.xml file. I've never thought about it being the reason for not deploying the ext plugin correctly emoticon.

Greets Oli