组合视图 统一视图 树状图
讨论主题 [ 上一个 | 下一个 ]
toggle
Justyna S
The portlets are not visible in Liferay
2012年11月16日 上午7:58
答复

Justyna S

等级: New Member

帖子: 2

加入日期: 2012年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:

 115:47:42,900 INFO  [AutoDeployDir:167] Processing alumni-ui-0.0.1-SNAPSHOT.war
 215: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
 3  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
 4  Copying 1 file to /home/tygrysjs/studia/inzynierka/liferay-portal-6.0.6/tomcat-6.0.29/temp/20121116154742905/WEB-INF/classes
 5  Warning: META-INF/MANIFEST.MF modified in the future.
 6  Warning: META-INF/maven/elka.alumni/alumni-ui/pom.properties modified in the future.
 7  Warning: WEB-INF/lib/alumni-model-0.0.1-SNAPSHOT.jar modified in the future.
 8  Warning: WEB-INF/lib/alumni-services-0.0.1-SNAPSHOT.jar modified in the future.
 9  Warning: META-INF modified in the future.
10  Copying 152 files to /home/tygrysjs/studia/inzynierka/liferay-portal-6.0.6/tomcat-6.0.29/webapps/alumni-ui-0.0.1-SNAPSHOT
11  Copying 1 file to /home/tygrysjs/studia/inzynierka/liferay-portal-6.0.6/tomcat-6.0.29/webapps/alumni-ui-0.0.1-SNAPSHOT
12  Deleting directory /home/tygrysjs/studia/inzynierka/liferay-portal-6.0.6/tomcat-6.0.29/temp/20121116154742905
1315: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.
142012-11-16 15:47:49 org.apache.catalina.startup.HostConfig deployDirectory
15INFO: Deploying web application directory alumni-ui-0.0.1-SNAPSHOT
16SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
17SLF4J: Defaulting to no-operation (NOP) logger implementation
18SLF4J: 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:

1INFO: Undeploying context [/alumni-ui-0.0.1-SNAPSHOT]
215:54:30,219 INFO  [ExtHotDeployListener:205] Extension environment for alumni-ui-0.0.1-SNAPSHOT will not be undeployed
32012-11-16 15:54:31 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
4SEVERE: 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
RE: The portlets are not visible in Liferay
2012年11月16日 上午10:53
答复

Justyna S

等级: New Member

帖子: 2

加入日期: 2012年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!