留言板

The portlets are not visible in Liferay

Justyna S,修改在11 年前。

The portlets are not visible in Liferay

New Member 帖子: 2 加入日期: 12-11-16 最近的帖子
Hi!

I have liferay portal 6.0.6 bundled with tomcat. I've created portlets and packed them up in .war. When I'm deploying this is what happens in logs:

15:47:42,900 INFO  [AutoDeployDir:167] Processing alumni-ui-0.0.1-SNAPSHOT.war
15:47:42,901 INFO  [PortletAutoDeployListener:71] Copying portlets for /home/tygrysjs/studia/inzynierka/liferay-portal-6.0.6/deploy/alumni-ui-0.0.1-SNAPSHOT.war
  Expanding: /home/tygrysjs/studia/inzynierka/liferay-portal-6.0.6/deploy/alumni-ui-0.0.1-SNAPSHOT.war into /home/tygrysjs/studia/inzynierka/liferay-portal-6.0.6/tomcat-6.0.29/temp/20121116154742905
  Copying 1 file to /home/tygrysjs/studia/inzynierka/liferay-portal-6.0.6/tomcat-6.0.29/temp/20121116154742905/WEB-INF/classes
  Warning: META-INF/MANIFEST.MF modified in the future.
  Warning: META-INF/maven/elka.alumni/alumni-ui/pom.properties modified in the future.
  Warning: WEB-INF/lib/alumni-model-0.0.1-SNAPSHOT.jar modified in the future.
  Warning: WEB-INF/lib/alumni-services-0.0.1-SNAPSHOT.jar modified in the future.
  Warning: META-INF modified in the future.
  Copying 152 files to /home/tygrysjs/studia/inzynierka/liferay-portal-6.0.6/tomcat-6.0.29/webapps/alumni-ui-0.0.1-SNAPSHOT
  Copying 1 file to /home/tygrysjs/studia/inzynierka/liferay-portal-6.0.6/tomcat-6.0.29/webapps/alumni-ui-0.0.1-SNAPSHOT
  Deleting directory /home/tygrysjs/studia/inzynierka/liferay-portal-6.0.6/tomcat-6.0.29/temp/20121116154742905
15:47:47,060 INFO  [PortletAutoDeployListener:81] Portlets for /home/tygrysjs/studia/inzynierka/liferay-portal-6.0.6/deploy/alumni-ui-0.0.1-SNAPSHOT.war copied successfully. Deployment will start in a few seconds.
2012-11-16 15:47:49 org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory alumni-ui-0.0.1-SNAPSHOT
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.


It used to deploy correctly but one time it stopped and does not deploy any more. I've tried deleting directory from webapps and this is what I got:

INFO: Undeploying context [/alumni-ui-0.0.1-SNAPSHOT]
15:54:30,219 INFO  [ExtHotDeployListener:205] Extension environment for alumni-ui-0.0.1-SNAPSHOT will not be undeployed
2012-11-16 15:54:31 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/alumni-ui-0.0.1-SNAPSHOT] appears to have started a thread named [MySQL Statement Cancellation Timer] but has failed to stop it. This is very likely to create a memory leak.


I have also tried to unzip new lifray portal, delete the old one and do everything from scratch, but id does not work either.
I have also tried deleting everything from tomcat work folder and temp.

The moment it broke was adding maven dependency to portal-service.jar I think, but even when I stash changes and try to deploy old version it does not work.

What can I do more? Where to look for the bug? I'm out of ideas.

Thanks for any help.
Justina
Justyna S,修改在11 年前。

RE: The portlets are not visible in Liferay

New Member 帖子: 2 加入日期: 12-11-16 最近的帖子
The problem was lying in a way I declared dependency for portlet-service.jar - it was already in bundled tomcat and it was needed to add scope -provided to this dependency. Once tried to deploy incorrectly made .WAR the tomcat is trying to do something with this jar which was in .WAR once and has some problems.

Cheers!