Forums

angle-left Back

RE: Market Place App Not Installing

Ben Brown, modified 4 Years ago.

Market Place App Not Installing

Junior Member Posts: 79 Join Date: 7/7/10 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, modified 4 Years ago.

RE: Market Place App Not Installing

Junior Member Posts: 79 Join Date: 7/7/10 Recent Posts
Looking in the Update Manager, it's showing but just says "installation in progress" - any ideas?

Thanks

Ben
David H Nebinger, modified 4 Years ago.

RE: Market Place App Not Installing

Community Moderator Liferay Legend Posts: 13824 Join Date: 9/1/06 Recent Posts
Sometimes this can be resolved by restarting the app container...
Ben Brown, modified 4 Years ago.

RE: Market Place App Not Installing

Junior Member Posts: 79 Join Date: 7/7/10 Recent Posts
Thanks for the reply David, have tried that.

Oddness.

Thanks

Ben
James Falkner, modified 4 Years ago.

RE: Market Place App Not Installing

Community Moderator Liferay Legend Posts: 1406 Join Date: 9/17/10 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:

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

Of course, change the user/passwd to match your environment.
Ben Brown, modified 4 Years ago.

RE: Market Place App Not Installing

Junior Member Posts: 79 Join Date: 7/7/10 Recent Posts
Thanks for that James, will give it a try and report back.

Ben
Ben Brown, modified 4 Years ago.

RE: Market Place App Not Installing

Junior Member Posts: 79 Join Date: 7/7/10 Recent Posts
Do I deploy via the hot deploy directory once I've added those, or through Glassfish?
Ben Brown, modified 4 Years ago.

RE: Market Place App Not Installing

Junior Member Posts: 79 Join Date: 7/7/10 Recent Posts
Adding through the deploy folders I get:

#|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
|#]

[#|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|#]

[#|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
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-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
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-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, modified 4 Years ago.

RE: Market Place App Not Installing

Junior Member Posts: 79 Join Date: 7/7/10 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
|#]
GD
gordon daniels, modified 4 Years ago.

RE: Market Place App Not Installing

Liferay Master Posts: 784 Join Date: 8/23/08 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, modified 4 Years ago.

RE: Market Place App Not Installing

Junior Member Posts: 79 Join Date: 7/7/10 Recent Posts
Thanks for that - the blacklisting is not a problem, restarting the server is fine.

Just that nothing deploys! Argh! emoticon

Help!
GD
gordon daniels, modified 4 Years ago.

RE: Market Place App Not Installing

Liferay Master Posts: 784 Join Date: 8/23/08 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, modified 4 Years ago.

RE: Market Place App Not Installing

Junior Member Posts: 79 Join Date: 7/7/10 Recent Posts
Thanks for that - have given it a go, but it won't deploy either!

Tried deploying using deploy folder and through Glassfish.
GD
gordon daniels, modified 4 Years ago.

RE: Market Place App Not Installing

Liferay Master Posts: 784 Join Date: 8/23/08 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, modified 4 Years ago.

RE: Market Place App Not Installing

Junior Member Posts: 79 Join Date: 7/7/10 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.