Foren

Delpoy portlets on "/portlets" instead of "/"

Jam M, geändert vor 12 Jahren.

Delpoy portlets on "/portlets" instead of "/"

New Member Beiträge: 2 Beitrittsdatum: 24.02.10 Neueste Beiträge
Hi,

I would like to deploy portlets on a non-root context. In fact, I would like all my portlets to be accessible through /portlet/<portlet-name> instead of /portlet-name.

I configured "Destination directory" in Control Pannel - Plugin installation - Install more portlets - Configuration with an absolute path like:

/home/tomcat//webapps/portlet

When I upload a new war to the deploy dir - I have downloaded a sample web form portlet -, Liferay seems to notice there's a new file, and in fact, it is deployed to the /portlet directory, but the portlet is not available. This is the log from catalina.out:

13:02:28,717 INFO [PortletAutoDeployListener:71] Copying portlets for /export/home/tomalu/deploy/web-form-portlet-6.0.6.1.war
Expanding: /export/home/tomalu/deploy/web-form-portlet-6.0.6.1.war into/home/tomcat/temp/20120207130228951
Copying 1 file to /home/tomcat/temp/20120207130228951/WEB-INF
Copying 1 file to /home/tomcat/temp/20120207130228951/WEB-INF/classes
Copying 1 file to /home/tomcat/temp/20120207130228951/WEB-INF/classes
Copying 1 file to /home/tomcat/temp/20120207130228951/META-INF
Copying 1 file to /home/tomcat/temp/20120207130228951/WEB-INF/jsp
Copying 41 files to /home/tomcat/webapps/alumni-apps/web-form-portlet
Copying 1 file to /home/tomcat/webapps/alumni-apps/web-form-portlet
Deleting directory /home/tomcat/temp/20120207130228951
13:02:32,187 INFO [PortletAutoDeployListener:81] Portlets for /export/home/tomalu/deploy/web-form-portlet-6.0.6.1.war copied successfully. Deployment will s
tart in a few seconds.

But I don't get the message "Portlet is available for use". I assume some configuration is missing. Any help? I have tried also setting portlet.virtual.path in portal.properties, but also without success.

Thanks in advance!
thumbnail
Rochad Tlusty, geändert vor 12 Jahren.

RE: Delpoy portlets on "/portlets" instead of "/"

Junior Member Beiträge: 42 Beitrittsdatum: 18.01.12 Neueste Beiträge
I am having the same problem. I cannot deploy any portlets on a web server where Liferay is running outside of root context. It hangs on the same message. I will post back if I find anything : /
thumbnail
David H Nebinger, geändert vor 12 Jahren.

RE: Delpoy portlets on "/portlets" instead of "/"

Liferay Legend Beiträge: 14919 Beitrittsdatum: 02.09.06 Neueste Beiträge
Well your issue is different than the original. The OP had Liferay at the root context but wanted portlets under a different context which, if you know anything about an app server, doesn't work out very well.

Your issue sounds strictly like an issue deploying Liferay to a non-root context. I believe there's some wiki pages to help w/ that, but you might want to start a different thread to get a wider viewage and possible answer...
thumbnail
Arcko Duan, geändert vor 12 Jahren.

RE: Delpoy portlets on "/portlets" instead of "/"

Regular Member Beiträge: 213 Beitrittsdatum: 15.10.07 Neueste Beiträge
/home/tomcat/webapps/alumni-apps
or
/home/tomcat//webapps/portlet ?
thumbnail
Hitoshi Ozawa, geändert vor 12 Jahren.

RE: Delpoy portlets on "/portlets" instead of "/"

Liferay Legend Beiträge: 7942 Beitrittsdatum: 24.03.10 Neueste Beiträge
I would like to deploy portlets on a non-root context. In fact, I would like all my portlets to be accessible through /portlet/<portlet-name> instead of /portlet-name.


I haven't tried this with Liferay, but the following pages may help you.
http://tomcat.10.n6.nabble.com/Tomcat-6-Deploy-to-subdirectory-td2094244.html
http://oreilly.com/java/archive/tomcat-tips.html (3. Deploying a Web Application)