Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Ben Brown
Market Place App Not Installing
October 10, 2013 2:28 AM
Answer

Ben Brown

Rank: Junior Member

Posts: 79

Join Date: July 7, 2010

Recent Posts

Hi,

In Jelastic, I have set up Liferay EE on Glassfish using the war file. I need to install the Market Place app, but deploying it directly into Glassfish or copying it to the Liferay deploy folder doesn't seem to work.

When copying it to the deploy folder, the logs show:

[#|2013-10-10T09:18:59.883+0000|INFO|glassfish3.1.2|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=349;_ThreadName=Thread-2;|09:18:59,882 INFO [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][PortletAutoDeployListener:89] Portlets for /opt/glassfish3/temp/swict/deploy/marketplace-portlet-6.1.20.2-ee-ga3-20130812170130063.war copied successfully. Deployment will start in a few seconds.

Then nothing....

Any ideas?

Thanks for your help again.

Ben
Ben Brown
RE: Market Place App Not Installing
October 17, 2013 6:23 AM
Answer

Ben Brown

Rank: Junior Member

Posts: 79

Join Date: July 7, 2010

Recent Posts

Looking in the Update Manager, it's showing but just says "installation in progress" - any ideas?

Thanks

Ben
David H Nebinger
RE: Market Place App Not Installing
October 17, 2013 6:44 AM
Answer

David H Nebinger

Community Moderator

Rank: Liferay Legend

Posts: 13739

Join Date: September 1, 2006

Recent Posts

Sometimes this can be resolved by restarting the app container...
Ben Brown
RE: Market Place App Not Installing
October 17, 2013 6:51 AM
Answer

Ben Brown

Rank: Junior Member

Posts: 79

Join Date: July 7, 2010

Recent Posts

Thanks for the reply David, have tried that.

Oddness.

Thanks

Ben
James Falkner
RE: Market Place App Not Installing
October 17, 2013 7:53 AM
Answer

James Falkner

Community Moderator

Rank: Liferay Legend

Posts: 1406

Join Date: September 17, 2010

Recent Posts

Ben Brown:
Thanks for the reply David, have tried that.

Oddness.

Thanks

Ben


Is autodeployment perhaps disabled in your GlassFish configuration? Liferay relies on that by default (Liferay will copy stuff to the domains/<domainname>/autodeploy dir). If so, you could try the other way to deploy to GlassFish, via JSR 88 and these settings in your portal-ext.properties:

1    auto.deploy.glassfish.jee.deployment.enabled=true
2    auto.deploy.glassfish.jee.dm.id=deployer:Sun:AppServer::localhost:4848
3    auto.deploy.glassfish.jee.dm.user=admin
4    auto.deploy.glassfish.jee.dm.passwd=adminadmin
5    auto.deploy.glassfish.jee.df.classname=com.sun.enterprise.deployapi.SunDeploymentFactory

Of course, change the user/passwd to match your environment.
Ben Brown
RE: Market Place App Not Installing
October 17, 2013 8:46 AM
Answer

Ben Brown

Rank: Junior Member

Posts: 79

Join Date: July 7, 2010

Recent Posts

Thanks for that James, will give it a try and report back.

Ben
Ben Brown
RE: Market Place App Not Installing
October 17, 2013 8:53 AM
Answer

Ben Brown

Rank: Junior Member

Posts: 79

Join Date: July 7, 2010

Recent Posts

Do I deploy via the hot deploy directory once I've added those, or through Glassfish?
Ben Brown
RE: Market Place App Not Installing
October 17, 2013 9:01 AM
Answer

Ben Brown

Rank: Junior Member

Posts: 79

Join Date: July 7, 2010

Recent Posts

Adding through the deploy folders I get:

 1#|2013-10-17T15:56:39.138+0000|INFO|glassfish3.1.2|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=351;_ThreadName=Thread-2;|15:56:39,137 INFO  [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][BaseDeployer:2233] Modifying Servlet 2.4 /tmp/20131017155638912/WEB-INF/web.xml
 2|#]
 3
 4[#|2013-10-17T15:56:39.152+0000|INFO|glassfish3.1.2|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=351;_ThreadName=Thread-2;|  Building war: /tmp/20131017155639139|#]
 5
 6[#|2013-10-17T15:56:39.641+0000|INFO|glassfish3.1.2|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=351;_ThreadName=Thread-2;|15:56:39,640 ERROR [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][DeploymentHandler:56] java.lang.ClassNotFoundException: com.sun.enterprise.deployapi.SunDeploymentFactory
 7java.lang.ClassNotFoundException: com.sun.enterprise.deployapi.SunDeploymentFactory
 8    at org.glassfish.web.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1509)
 9    at org.glassfish.web.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1359)
10    at com.liferay.portal.tools.deploy.DeploymentHandler.<init>(DeploymentHandler.java:46)
11    at com.liferay.portal.tools.deploy.BaseDeployer.getDeploymentHandler(BaseDeployer.java:1063)
12    at com.liferay.portal.tools.deploy.BaseDeployer.deployDirectory(BaseDeployer.java:751)
13    at com.liferay.portal.tools.deploy.BaseDeployer.deployFile(BaseDeployer.java:1014)
14    at com.liferay.portal.tools.deploy.BaseDeployer.deployFile(BaseDeployer.java:946)
15    at com.liferay.portal.tools.deploy.BaseDeployer.autoDeploy(BaseDeployer.java:206)
16    at com.liferay.portal.deploy.auto.PortletAutoDeployListener.deploy(PortletAutoDeployListener.java:86)
17    at com.liferay.portal.kernel.deploy.auto.AutoDeployDir.deploy(AutoDeployDir.java:51)
18    at com.liferay.portal.kernel.deploy.auto.AutoDeployDir.processFile(AutoDeployDir.java:230)
19    at com.liferay.portal.kernel.deploy.auto.AutoDeployDir.scanDirectory(AutoDeployDir.java:271)
20    at com.liferay.portal.kernel.deploy.auto.AutoDeployScanner.run(AutoDeployScanner.java:54)
21|#]
22
23[#|2013-10-17T15:56:39.643+0000|INFO|glassfish3.1.2|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=351;_ThreadName=Thread-2;|15:56:39,642 ERROR [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][AutoDeployDir:246] com.liferay.portal.kernel.deploy.auto.AutoDeployException: java.lang.NullPointerException
24com.liferay.portal.kernel.deploy.auto.AutoDeployException: java.lang.NullPointerException
25    at com.liferay.portal.tools.deploy.BaseDeployer.autoDeploy(BaseDeployer.java:209)
26    at com.liferay.portal.deploy.auto.PortletAutoDeployListener.deploy(PortletAutoDeployListener.java:86)
27    at com.liferay.portal.kernel.deploy.auto.AutoDeployDir.deploy(AutoDeployDir.java:51)
28    at com.liferay.portal.kernel.deploy.auto.AutoDeployDir.processFile(AutoDeployDir.java:230)
29    at com.liferay.portal.kernel.deploy.auto.AutoDeployDir.scanDirectory(AutoDeployDir.java:271)
30    at com.liferay.portal.kernel.deploy.auto.AutoDeployScanner.run(AutoDeployScanner.java:54)
31Caused by: java.lang.NullPointerException
32    at com.liferay.portal.tools.deploy.DeploymentHandler.deploy(DeploymentHandler.java:67)
33    at com.liferay.portal.tools.deploy.BaseDeployer.deployDirectory(BaseDeployer.java:753)
34    at com.liferay.portal.tools.deploy.BaseDeployer.deployFile(BaseDeployer.java:1014)
35    at com.liferay.portal.tools.deploy.BaseDeployer.deployFile(BaseDeployer.java:946)
36    at com.liferay.portal.tools.deploy.BaseDeployer.autoDeploy(BaseDeployer.java:206)
37    ... 5 more
38|#]
39
40[#|2013-10-17T15:56:39.644+0000|INFO|glassfish3.1.2|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=351;_ThreadName=Thread-2;|15:56:39,643 INFO  [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][AutoDeployDir:252] Add marketplace-portlet-6.1.20.2-ee-ga3-20130812170130063.war to the blacklist
Ben Brown
RE: Market Place App Not Installing
October 21, 2013 8:33 AM
Answer

Ben Brown

Rank: Junior Member

Posts: 79

Join Date: July 7, 2010

Recent Posts

Still getting the following - any ideas?

[#|2013-10-21T15:29:57.246+0000|INFO|glassfish3.1.2|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=359;_ThreadName=Thread-2;|15:29:57,246 INFO [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][AutoDeployDir:220] Processing marketplace-portlet-6.1.20.2-ee-ga3-20130812170130063.war. This is attempt 9.
|#]

[#|2013-10-21T15:29:57.248+0000|INFO|glassfish3.1.2|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=359;_ThreadName=Thread-2;|15:29:57,248 INFO [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][PortletAutoDeployListener:79] Copying portlets for /opt/glassfish3/temp/swict/deploy/marketplace-portlet-6.1.20.2-ee-ga3-20130812170130063.war
|#]

[#|2013-10-21T15:29:57.249+0000|INFO|glassfish3.1.2|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=359;_ThreadName=Thread-2;|15:29:57,248 INFO [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][BaseDeployer:820] Deploying marketplace-portlet-6.1.20.2-ee-ga3-20130812170130063.war
|#]

[#|2013-10-21T15:29:57.250+0000|INFO|glassfish3.1.2|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=359;_ThreadName=Thread-2;| Expanding: /opt/glassfish3/temp/swict/deploy/marketplace-portlet-6.1.20.2-ee-ga3-20130812170130063.war into /tmp/20131021152957249|#]

[#|2013-10-21T15:29:57.298+0000|INFO|glassfish3.1.2|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=359;_ThreadName=Thread-2;| Copying 1 file to /tmp/20131021152957249/WEB-INF|#]

[#|2013-10-21T15:29:57.300+0000|INFO|glassfish3.1.2|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=359;_ThreadName=Thread-2;| Copying 1 file to /tmp/20131021152957249/WEB-INF/classes|#]

[#|2013-10-21T15:29:57.301+0000|INFO|glassfish3.1.2|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=359;_ThreadName=Thread-2;| Copying 1 file to /tmp/20131021152957249/WEB-INF/classes|#]

[#|2013-10-21T15:29:57.310+0000|INFO|glassfish3.1.2|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=359;_ThreadName=Thread-2;| Copying 1 file to /tmp/20131021152957249/WEB-INF/jsp|#]

[#|2013-10-21T15:29:57.357+0000|INFO|glassfish3.1.2|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=359;_ThreadName=Thread-2;|15:29:57,356 INFO [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][BaseDeployer:2233] Modifying Servlet 2.4 /tmp/20131021152957249/WEB-INF/web.xml
|#]

[#|2013-10-21T15:29:57.364+0000|INFO|glassfish3.1.2|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=359;_ThreadName=Thread-2;| Building war: /tmp/20131021152957358|#]

[#|2013-10-21T15:29:57.901+0000|INFO|glassfish3.1.2|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=359;_ThreadName=Thread-2;|15:29:57,900 ERROR [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][DeploymentHandler:56] java.lang.ClassNotFoundException: com.sun.enterprise.deployapi.SunDeploymentFactory
java.lang.ClassNotFoundException: com.sun.enterprise.deployapi.SunDeploymentFactory
at org.glassfish.web.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1509)
at org.glassfish.web.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1359)
at com.liferay.portal.tools.deploy.DeploymentHandler.<init>(DeploymentHandler.java:46)
at com.liferay.portal.tools.deploy.BaseDeployer.getDeploymentHandler(BaseDeployer.java:1063)
at com.liferay.portal.tools.deploy.BaseDeployer.deployDirectory(BaseDeployer.java:751)
at com.liferay.portal.tools.deploy.BaseDeployer.deployFile(BaseDeployer.java:1014)
at com.liferay.portal.tools.deploy.BaseDeployer.deployFile(BaseDeployer.java:946)
at com.liferay.portal.tools.deploy.BaseDeployer.autoDeploy(BaseDeployer.java:206)
at com.liferay.portal.deploy.auto.PortletAutoDeployListener.deploy(PortletAutoDeployListener.java:86)
at com.liferay.portal.kernel.deploy.auto.AutoDeployDir.deploy(AutoDeployDir.java:51)
at com.liferay.portal.kernel.deploy.auto.AutoDeployDir.processFile(AutoDeployDir.java:230)
at com.liferay.portal.kernel.deploy.auto.AutoDeployDir.scanDirectory(AutoDeployDir.java:271)
at com.liferay.portal.kernel.deploy.auto.AutoDeployScanner.run(AutoDeployScanner.java:54)
|#]

[#|2013-10-21T15:29:57.903+0000|INFO|glassfish3.1.2|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=359;_ThreadName=Thread-2;|15:29:57,902 ERROR [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][AutoDeployDir:246] com.liferay.portal.kernel.deploy.auto.AutoDeployException: java.lang.NullPointerException
com.liferay.portal.kernel.deploy.auto.AutoDeployException: java.lang.NullPointerException
at com.liferay.portal.tools.deploy.BaseDeployer.autoDeploy(BaseDeployer.java:209)
at com.liferay.portal.deploy.auto.PortletAutoDeployListener.deploy(PortletAutoDeployListener.java:86)
at com.liferay.portal.kernel.deploy.auto.AutoDeployDir.deploy(AutoDeployDir.java:51)
at com.liferay.portal.kernel.deploy.auto.AutoDeployDir.processFile(AutoDeployDir.java:230)
at com.liferay.portal.kernel.deploy.auto.AutoDeployDir.scanDirectory(AutoDeployDir.java:271)
at com.liferay.portal.kernel.deploy.auto.AutoDeployScanner.run(AutoDeployScanner.java:54)
Caused by: java.lang.NullPointerException
at com.liferay.portal.tools.deploy.DeploymentHandler.deploy(DeploymentHandler.java:67)
at com.liferay.portal.tools.deploy.BaseDeployer.deployDirectory(BaseDeployer.java:753)
at com.liferay.portal.tools.deploy.BaseDeployer.deployFile(BaseDeployer.java:1014)
at com.liferay.portal.tools.deploy.BaseDeployer.deployFile(BaseDeployer.java:946)
at com.liferay.portal.tools.deploy.BaseDeployer.autoDeploy(BaseDeployer.java:206)
... 5 more
|#]

[#|2013-10-21T15:29:57.904+0000|INFO|glassfish3.1.2|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=359;_ThreadName=Thread-2;|15:29:57,903 INFO [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][AutoDeployDir:252] Add marketplace-portlet-6.1.20.2-ee-ga3-20130812170130063.war to the blacklist
|#]
gordon daniels
RE: Market Place App Not Installing
October 21, 2013 9:17 AM
Answer

gordon daniels

Rank: Liferay Master

Posts: 751

Join Date: August 23, 2008

Recent Posts

Ben: there is another thread that talks about this. Once your porltet is blacklisted, redeploying the portlet will not work. I know of no other way to clear blacklist but to restart app server. Also, I use tomcat but have had similiar issues with ga3. See thread about ga3 sdk not deploying. Same problem that you are having.

good luck
Ben Brown
RE: Market Place App Not Installing
October 22, 2013 6:07 AM
Answer

Ben Brown

Rank: Junior Member

Posts: 79

Join Date: July 7, 2010

Recent Posts

Thanks for that - the blacklisting is not a problem, restarting the server is fine.

Just that nothing deploys! Argh! emoticon

Help!
gordon daniels
RE: Market Place App Not Installing
October 22, 2013 6:40 AM
Answer

gordon daniels

Rank: Liferay Master

Posts: 751

Join Date: August 23, 2008

Recent Posts

Ben: You can try private-plugin . Go to sourceforge - liferay portal and get the plugin. See if that will work for you. You have to delete the marketplace plugin. I don't use the mardketplace plugin, only the private plugin. It might be worth a try :-)
Ben Brown
RE: Market Place App Not Installing
October 22, 2013 6:55 AM
Answer

Ben Brown

Rank: Junior Member

Posts: 79

Join Date: July 7, 2010

Recent Posts

Thanks for that - have given it a go, but it won't deploy either!

Tried deploying using deploy folder and through Glassfish.
gordon daniels
RE: Market Place App Not Installing
October 22, 2013 7:05 AM
Answer

gordon daniels

Rank: Liferay Master

Posts: 751

Join Date: August 23, 2008

Recent Posts

Ben: bummer. The only time I have had this happen to me, where it just wouldn't deploy, was a corrupt install. Hate to say it, but you might want to re-install liferay. I hate saying that, but that's what I would do at this stage. Anyway, you've exhausted my limited knowledge :-)

good luck - and if you get it working please post back what you did so we can all learn.
Ben Brown
RE: Market Place App Not Installing
October 23, 2013 2:59 AM
Answer

Ben Brown

Rank: Junior Member

Posts: 79

Join Date: July 7, 2010

Recent Posts

Don't really want to re-install, it being a live instance.

Any WAR file being put into the deploy folder is getting copied across to the autodeploy folder in Glassfish, and shows in the Glassfish logs as being deployed.

They are just not being picked up by Liferay.

Participate in the State of Liferay Community 2017. Help the community and even win some prizes!