掲示板
Error in Deploying Hook v6.0
Hi,
I'm trying to extend UserLocalServiceImpl using Hook. But when i deploy it i'm getting java.lang.NoClassDefFoundError error. Below is the staketrace. I'm not sure why it can't access "ServiceContextThreadLocal" from portal-impl.jar.
Can anybody explain, what i'm doing wrong ? How to satisfy above dependency ?
Thanks & Regards
Gaurav
I'm trying to extend UserLocalServiceImpl using Hook. But when i deploy it i'm getting java.lang.NoClassDefFoundError error. Below is the staketrace. I'm not sure why it can't access "ServiceContextThreadLocal" from portal-impl.jar.
Can anybody explain, what i'm doing wrong ? How to satisfy above dependency ?
Caused by: java.lang.NoClassDefFoundError: com/liferay/portal/service/ServiceContextThreadLocal
at com.sambaash.hook.service.impl.HookUserLocalServiceImpl.<init>(HookUserLocalServiceImpl.java:99)
... 22 more
Caused by: java.lang.ClassNotFoundException: com.liferay.portal.service.ServiceContextThreadLocal
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1516)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1361)
... 23 more
</init>
Thanks & Regards
Gaurav
13年前 に Sam Wan によって更新されました。
RE: Error in Deploying Hook v6.0
Liferay Master 投稿: 660 参加年月日: 09/03/03 最新の投稿
Hi Deepak,
What is your configuration?
eg. where is your liferay-hook.xml and how did you build it?
Cheers
Sam
What is your configuration?
eg. where is your liferay-hook.xml and how did you build it?
Cheers
Sam
13年前 に Deepak Goel によって更新されました。
RE: Error in Deploying Hook v6.0
New Member 投稿: 5 参加年月日: 09/12/27 最新の投稿
Hi,
I'm using ant to build it.
Location is "tomcat-6.0.26/webapps/BBB-hook/WEB-INF/liferay-hook.xml"
Below is liferay-hook.xml
Do i need to define any dependency configuration ?
Thanks
Deepak
I'm using ant to build it.
Location is "tomcat-6.0.26/webapps/BBB-hook/WEB-INF/liferay-hook.xml"
Below is liferay-hook.xml
<hook>
<custom-jsp-dir>/META-INF/custom_jsps</custom-jsp-dir>
<service>
<service-type>com.liferay.portal.service.UserLocalService</service-type>
<service-impl>com.sambaash.hook.service.impl.HookUserLocalServiceImpl</service-impl>
</service>
</hook>
Do i need to define any dependency configuration ?
Thanks
Deepak
12年前 に Viktor Palai によって更新されました。
RE: Error in Deploying Hook v6.0
New Member 投稿: 20 参加年月日: 10/10/14 最新の投稿
Hi,
have you found solution?
I have similar problem.
Thank you.
have you found solution?
I have similar problem.
Thank you.