構造的に表示 平面上に表示 ツリー上に表示
スレッド [ 前へ | 次へ ]
toggle
How to deploy ext-plugin in a production Tomcat? Juan José Fuentes 2011/06/07 3:27
RE: How to deploy ext-plugin in a production Tomcat? Juan José Fuentes 2011/06/13 23:59
RE: How to deploy ext-plugin in a production Tomcat? Lirone75 M. 2011/06/14 0:36
RE: How to deploy ext-plugin in a production Tomcat? Juan José Fuentes 2011/06/15 6:38
RE: How to deploy ext-plugin in a production Tomcat? Marc Piparo 2011/09/13 7:13
RE: How to deploy ext-plugin in a production Tomcat? Lina Margarita Holguin 2012/03/24 15:13
RE: How to deploy ext-plugin in a production Tomcat? Hitoshi Ozawa 2012/03/25 4:53
RE: How to deploy ext-plugin in a production Tomcat? Lina Margarita Holguin 2012/03/25 13:30
RE: How to deploy ext-plugin in a production Tomcat? Hitoshi Ozawa 2012/03/25 14:12
RE: How to deploy ext-plugin in a production Tomcat? Lina Margarita Holguin 2012/03/25 14:20
RE: How to deploy ext-plugin in a production Tomcat? Hitoshi Ozawa 2012/03/25 14:26
RE: How to deploy ext-plugin in a production Tomcat? Lina Margarita Holguin 2012/03/25 14:42
RE: How to deploy ext-plugin in a production Tomcat? Hitoshi Ozawa 2012/03/25 15:54
RE: How to deploy ext-plugin in a production Tomcat? Florencia Gadea 2012/12/05 7:26
RE: How to deploy ext-plugin in a production Tomcat? Sushil Saini 2012/12/07 20:13
RE: How to deploy ext-plugin in a production Tomcat? Sushil Saini 2012/12/07 15:46
RE: How to deploy ext-plugin in a production Tomcat? Florencia Gadea 2012/12/10 3:41
RE: How to deploy ext-plugin in a production Tomcat? Sushil Saini 2012/12/10 3:53
RE: How to deploy ext-plugin in a production Tomcat? Florencia Gadea 2012/12/10 3:55
RE: How to deploy ext-plugin in a production Tomcat? Oliver Bayer 2012/12/10 8:07
RE: How to deploy ext-plugin in a production Tomcat? Florencia Gadea 2012/12/10 9:04
RE: How to deploy ext-plugin in a production Tomcat? Florencia Gadea 2012/12/11 4:01
RE: How to deploy ext-plugin in a production Tomcat? Oliver Bayer 2012/12/11 5:04
RE: How to deploy ext-plugin in a production Tomcat? Florencia Gadea 2012/12/11 6:10
RE: How to deploy ext-plugin in a production Tomcat? Oliver Bayer 2012/12/12 2:27
RE: How to deploy ext-plugin in a production Tomcat? Florencia Gadea 2012/12/12 3:39
RE: How to deploy ext-plugin in a production Tomcat? Florencia Gadea 2012/12/12 8:11
RE: How to deploy ext-plugin in a production Tomcat? Oliver Bayer 2012/12/14 1:35
Juan José Fuentes
How to deploy ext-plugin in a production Tomcat?
2011/06/07 3:27
答え

Juan José Fuentes

ランク: Junior Member

投稿: 41

参加年月日: 2010/07/16

最近の投稿

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?
2011/06/13 23:59
答え

Juan José Fuentes

ランク: Junior Member

投稿: 41

参加年月日: 2010/07/16

最近の投稿

¿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?
2011/06/14 0:36
答え

Lirone75 M.

ランク: Regular Member

投稿: 235

参加年月日: 2007/03/19

最近の投稿

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?
2011/06/15 6:38
答え

Juan José Fuentes

ランク: Junior Member

投稿: 41

参加年月日: 2010/07/16

最近の投稿

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?
2011/09/13 7:13
答え

Marc Piparo

ランク: Junior Member

投稿: 43

参加年月日: 2011/03/14

最近の投稿

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?
2012/03/24 15:13
答え

Lina Margarita Holguin

ランク: Junior Member

投稿: 25

参加年月日: 2011/03/25

最近の投稿

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?
2012/03/25 4:53
答え

Hitoshi Ozawa

ランク: Liferay Legend

投稿: 7990

参加年月日: 2010/03/23

最近の投稿

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?
2012/03/25 13:30
答え

Lina Margarita Holguin

ランク: Junior Member

投稿: 25

参加年月日: 2011/03/25

最近の投稿

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?
2012/03/25 14:12
答え

Hitoshi Ozawa

ランク: Liferay Legend

投稿: 7990

参加年月日: 2010/03/23

最近の投稿

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?
2012/03/25 14:20
答え

Lina Margarita Holguin

ランク: Junior Member

投稿: 25

参加年月日: 2011/03/25

最近の投稿

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?
2012/03/25 14:26
答え

Hitoshi Ozawa

ランク: Liferay Legend

投稿: 7990

参加年月日: 2010/03/23

最近の投稿

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?
2012/03/25 14:42
答え

Lina Margarita Holguin

ランク: Junior Member

投稿: 25

参加年月日: 2011/03/25

最近の投稿

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?
2012/03/25 15:54
答え

Hitoshi Ozawa

ランク: Liferay Legend

投稿: 7990

参加年月日: 2010/03/23

最近の投稿

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?
2012/12/05 7:26
答え

Florencia Gadea

ランク: Regular Member

投稿: 159

参加年月日: 2012/03/27

最近の投稿

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?
2012/12/07 20:13
答え

Sushil Saini

ランク: Regular Member

投稿: 102

参加年月日: 2011/07/27

最近の投稿

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?
2012/12/07 15:46
答え

Sushil Saini

ランク: Regular Member

投稿: 102

参加年月日: 2011/07/27

最近の投稿

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

Florencia Gadea

ランク: Regular Member

投稿: 159

参加年月日: 2012/03/27

最近の投稿

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?
2012/12/10 3:53
答え

Sushil Saini

ランク: Regular Member

投稿: 102

参加年月日: 2011/07/27

最近の投稿

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?
2012/12/10 3:55
答え

Florencia Gadea

ランク: Regular Member

投稿: 159

参加年月日: 2012/03/27

最近の投稿

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?
2012/12/10 8:07
答え

Oliver Bayer

ランク: Liferay Master

投稿: 870

参加年月日: 2009/02/18

最近の投稿

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?
2012/12/10 9:04
答え

Florencia Gadea

ランク: Regular Member

投稿: 159

参加年月日: 2012/03/27

最近の投稿

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?
2012/12/11 4:01
答え

Florencia Gadea

ランク: Regular Member

投稿: 159

参加年月日: 2012/03/27

最近の投稿

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?
2012/12/11 5:04
答え

Oliver Bayer

ランク: Liferay Master

投稿: 870

参加年月日: 2009/02/18

最近の投稿

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?
2012/12/11 6:10
答え

Florencia Gadea

ランク: Regular Member

投稿: 159

参加年月日: 2012/03/27

最近の投稿

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?
2012/12/12 2:27
答え

Oliver Bayer

ランク: Liferay Master

投稿: 870

参加年月日: 2009/02/18

最近の投稿

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?
2012/12/12 3:39
答え

Florencia Gadea

ランク: Regular Member

投稿: 159

参加年月日: 2012/03/27

最近の投稿

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?
2012/12/12 8:11
答え

Florencia Gadea

ランク: Regular Member

投稿: 159

参加年月日: 2012/03/27

最近の投稿

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?
2012/12/14 1:35
答え

Oliver Bayer

ランク: Liferay Master

投稿: 870

参加年月日: 2009/02/18

最近の投稿

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