Vista Combinata Vista Piatta Vista ad Albero
Discussioni [ Precedente | Successivo ]
toggle
Shiva Iyer
Exception for util-java.jar, aui.tld, liferay-theme.tld
18 luglio 2013 12.47
Risposta

Shiva Iyer

Punteggio: New Member

Messaggi: 6

Data di Iscrizione: 15 marzo 2013

Messaggi recenti

Hello everyone,

I am using liferay 6.1 CE. Recently i am getting below exception at the start of the server. Has any one encountered it please let me know how to fix it.

ERROR [com.liferay.portal.plugin.PluginPackageUtil] (liferay/scheduler_dispatch-1) Unable to load repository http://plugins.liferay.com/official com.liferay.portal.plugin.PluginPackageException: Unable to communicate with repository http://plugins.liferay.com/official
12:31:26,246 ERROR [com.liferay.portal.deploy.auto.ExtAutoDeployer] (MSC service thread 1-4) null: java.io.FileNotFoundException: /tmp/liferay/com/liferay/portal/deploy/dependencies/util-java.jar (Permission denied)
at java.io.FileOutputStream.open(Native Method) [rt.jar:1.6.0_24]
at java.io.FileOutputStream.<init>(Unknown Source) [rt.jar:1.6.0_24]
at java.io.FileOutputStream.<init>(Unknown Source) [rt.jar:1.6.0_24]
at com.liferay.portal.deploy.DeployUtil._getResourcePath(DeployUtil.java:225) [portal-impl.jar:]
at com.liferay.portal.deploy.DeployUtil.getResourcePath(DeployUtil.java:104) [portal-impl.jar:]
at com.liferay.portal.tools.deploy.BaseDeployer.addRequiredJar(BaseDeployer.java:166) [portal-impl.jar:]
at com.liferay.portal.deploy.auto.ExtAutoDeployer.<init>(ExtAutoDeployer.java:58) [portal-impl.jar:]
at com.liferay.portal.deploy.auto.ExtAutoDeployListener.<init>(ExtAutoDeployListener.java:30) [portal-impl.jar:]
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) [rt.jar:1.6.0_24]
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) [rt.jar:1.6.0_24]
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) [rt.jar:1.6.0_24]
at java.lang.reflect.Constructor.newInstance(Unknown Source) [rt.jar:1.6.0_24]
at java.lang.Class.newInstance0(Unknown Source) [rt.jar:1.6.0_24]
at java.lang.Class.newInstance(Unknown Source) [rt.jar:1.6.0_24]
at com.liferay.portal.kernel.util.InstanceFactory.newInstance(InstanceFactory.java:63) [portal-service.jar:]
at com.liferay.portal.kernel.util.InstanceFactory.newInstance(InstanceFactory.java:27) [portal-service.jar:]
at com.liferay.portal.kernel.util.InstanceFactory.newInstance(InstanceFactory.java:68) [portal-service.jar:]
at com.liferay.portal.events.GlobalStartupAction.getAutoDeployListeners(GlobalStartupAction.java:76) [portal-impl.jar:]
at com.liferay.portal.events.GlobalStartupAction.run(GlobalStartupAction.java:181) [portal-impl.jar:]
at com.liferay.portal.events.EventsProcessorImpl.processEvent(EventsProcessorImpl.java:106) [portal-impl.jar:]
at com.liferay.portal.events.EventsProcessorImpl.process(EventsProcessorImpl.java:58) [portal-impl.jar:]
at com.liferay.portal.events.EventsProcessorUtil.process(EventsProcessorUtil.java:32) [portal-impl.jar:]
at com.liferay.portal.servlet.MainServlet.processGlobalStartupEvents(MainServlet.java:1091) [portal-impl.jar:]
at com.liferay.portal.servlet.MainServlet.init(MainServlet.java:303) [portal-impl.jar:]
at javax.servlet.GenericServlet.init(GenericServlet.java:242) [jboss-servlet-api_3.0_spec-1.0.0.Final.jar:1.0.0.Final]
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1202) [jbossweb-7.0.13.Final.jar:]
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1102) [jbossweb-7.0.13.Final.jar:]
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3655) [jbossweb-7.0.13.Final.jar:]
at org.apache.catalina.core.StandardContext.start(StandardContext.java:3873) [jbossweb-7.0.13.Final.jar:]
at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:90) [jboss-as-web-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) [rt.jar:1.6.0_24]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [rt.jar:1.6.0_24]
at java.lang.Thread.run(Unknown Source) [rt.jar:1.6.0_24]

12:31:26,267 ERROR [com.liferay.portal.deploy.auto.HookAutoDeployer] (MSC service thread 1-4) null: java.io.FileNotFoundException: /tmp/liferay/com/liferay/portal/deploy/dependencies/util-java.jar (Permission denied)
at java.io.FileOutputStream.open(Native Method) [rt.jar:1.6.0_24]
at java.io.FileOutputStream.<init>(Unknown Source) [rt.jar:1.6.0_24]
at java.io.FileOutputStream.<init>(Unknown Source) [rt.jar:1.6.0_24]
at com.liferay.portal.deploy.DeployUtil._getResourcePath(DeployUtil.java:225) [portal-impl.jar:]
at com.liferay.portal.deploy.DeployUtil.getResourcePath(DeployUtil.java:104) [portal-impl.jar:]
at com.liferay.portal.tools.deploy.BaseDeployer.addRequiredJar(BaseDeployer.java:166) [portal-impl.jar:]
at com.liferay.portal.deploy.auto.HookAutoDeployer.<init>(HookAutoDeployer.java:59) [portal-impl.jar:]
at com.liferay.portal.deploy.auto.HookAutoDeployListener.<init>(HookAutoDeployListener.java:30) [portal-impl.jar:]
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) [rt.jar:1.6.0_24]
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) [rt.jar:1.6.0_24]
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) [rt.jar:1.6.0_24]
at java.lang.reflect.Constructor.newInstance(Unknown Source) [rt.jar:1.6.0_24]
at java.lang.Class.newInstance0(Unknown Source) [rt.jar:1.6.0_24]
at java.lang.Class.newInstance(Unknown Source) [rt.jar:1.6.0_24]
at com.liferay.portal.kernel.util.InstanceFactory.newInstance(InstanceFactory.java:63) [portal-service.jar:]
at com.liferay.portal.kernel.util.InstanceFactory.newInstance(InstanceFactory.java:27) [portal-service.jar:]
at com.liferay.portal.kernel.util.InstanceFactory.newInstance(InstanceFactory.java:68) [portal-service.jar:]
at com.liferay.portal.events.GlobalStartupAction.getAutoDeployListeners(GlobalStartupAction.java:76) [portal-impl.jar:]
at com.liferay.portal.events.GlobalStartupAction.run(GlobalStartupAction.java:181) [portal-impl.jar:]
at com.liferay.portal.events.EventsProcessorImpl.processEvent(EventsProcessorImpl.java:106) [portal-impl.jar:]
at com.liferay.portal.events.EventsProcessorImpl.process(EventsProcessorImpl.java:58) [portal-impl.jar:]
at com.liferay.portal.events.EventsProcessorUtil.process(EventsProcessorUtil.java:32) [portal-impl.jar:]
at com.liferay.portal.servlet.MainServlet.processGlobalStartupEvents(MainServlet.java:1091) [portal-impl.jar:]
at com.liferay.portal.servlet.MainServlet.init(MainServlet.java:303) [portal-impl.jar:]
at javax.servlet.GenericServlet.init(GenericServlet.java:242) [jboss-servlet-api_3.0_spec-1.0.0.Final.jar:1.0.0.Final]
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1202) [jbossweb-7.0.13.Final.jar:]
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1102) [jbossweb-7.0.13.Final.jar:]
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3655) [jbossweb-7.0.13.Final.jar:]
at org.apache.catalina.core.StandardContext.start(StandardContext.java:3873) [jbossweb-7.0.13.Final.jar:]
at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:90) [jboss-as-web-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) [rt.jar:1.6.0_24]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [rt.jar:1.6.0_24]
at java.lang.Thread.run(Unknown Source) [rt.jar:1.6.0_24]

12:31:26,294 ERROR [com.liferay.portal.deploy.auto.PortletAutoDeployer] (MSC service thread 1-4) null: java.io.FileNotFoundException: /tmp/liferay/com/liferay/portal/deploy/dependencies/aui.tld (Permission denied)
at java.io.FileOutputStream.open(Native Method) [rt.jar:1.6.0_24]
at java.io.FileOutputStream.<init>(Unknown Source) [rt.jar:1.6.0_24]
at java.io.FileOutputStream.<init>(Unknown Source) [rt.jar:1.6.0_24]
at com.liferay.portal.deploy.DeployUtil._getResourcePath(DeployUtil.java:225) [portal-impl.jar:]
at com.liferay.portal.deploy.DeployUtil.getResourcePath(DeployUtil.java:104) [portal-impl.jar:]
at com.liferay.portal.deploy.auto.PortletAutoDeployer.<init>(PortletAutoDeployer.java:47) [portal-impl.jar:]
at com.liferay.portal.deploy.auto.PortletAutoDeployListener.<init>(PortletAu
David H Nebinger
RE: Exception for util-java.jar, aui.tld, liferay-theme.tld
22 luglio 2013 6.08
Risposta

David H Nebinger

Community Moderator

Punteggio: Liferay Legend

Messaggi: 11285

Data di Iscrizione: 1 settembre 2006

Messaggi recenti

Shiva Iyer:
java.io.FileNotFoundException: /tmp/liferay/com/liferay/portal/deploy/dependencies/aui.tld (Permission denied)


Seems pretty clear to me. Make sure liferay can r/w/x on /tmp, /tmp/liferay, ... Make sure there's not already an aui.tld file w/ perms blocking r/w/x by the Liferay user.
Shiva Iyer
RE: Exception for util-java.jar, aui.tld, liferay-theme.tld
23 luglio 2013 12.31
Risposta

Shiva Iyer

Punteggio: New Member

Messaggi: 6

Data di Iscrizione: 15 marzo 2013

Messaggi recenti

Hello David,

Thanks for the reply. But under standalone/tmp folder i am not able to see liferay folder.

Also aui.tld and util-java.jar are present in ROOT.war/WEB-INF tld and lib folder respectively. So can you please guide to which folder i should give the r/w/x permission.

Regards,
Shiva
David H Nebinger
RE: Exception for util-java.jar, aui.tld, liferay-theme.tld
23 luglio 2013 14.20
Risposta

David H Nebinger

Community Moderator

Punteggio: Liferay Legend

Messaggi: 11285

Data di Iscrizione: 1 settembre 2006

Messaggi recenti

possibly a CATALINA_HOME env var is not set up correctly...

The default temp file location for Liferay would be ${CATALINA_HOME}/tmp, but you can always override it to point somewhere else since it is the temp dir. Since yours said /tmp, I thought maybe you had done that...

You're fine to use /tmp; try creating /tmp/liferay and chmod 0777 /tmp/liferay, then restart your tomcat container.

Missing files from ${CATALINA_HOME}/webapps/ROOT/WEB-INF is a more serious problem, almost as though your initial installation failed...
Shiva Iyer
RE: Exception for util-java.jar, aui.tld, liferay-theme.tld
30 luglio 2013 13.39
Risposta

Shiva Iyer

Punteggio: New Member

Messaggi: 6

Data di Iscrizione: 15 marzo 2013

Messaggi recenti

Hello David,

You were absolutely right. I was able to find the tmp folder which it was referring to. The tmp was present inside root folder. Now the problem is my Liferay is installed in Linux box, which has many users,
for eg: su - user1, user2 etc, and tmp folder which it was referring too is inside root folder i.e root/tmp/liferay/com/.......

So some other team has installed a new version of liferay in different account and i think that has updated few of the files inside /tmp/liferay path. I was able to get the necessary permission to that folder, but few of the files now does not exist.

So can you please tell me is there a way i can change the path of the tmp folder reference, i.e. instead of pointing to /root/tmp path can i set my own custom path. So that in future i wont have to face the same problem.

Thanks & Regards,
Shiva
David H Nebinger
RE: Exception for util-java.jar, aui.tld, liferay-theme.tld
30 luglio 2013 13.50
Risposta

David H Nebinger

Community Moderator

Punteggio: Liferay Legend

Messaggi: 11285

Data di Iscrizione: 1 settembre 2006

Messaggi recenti

Well, since you cannot have two liferay instances in the same tomcat container, this won't be a problem. They should each have their own unique value for CATALINA_HOME and will therefore have their own portal-ext.properties, etc., where you can specify locations for each separate instance.