掲示板
Hessian implementation in liferay
13年前 に Smoodo Schmitt によって更新されました。
Hessian implementation in liferay
New Member 投稿: 2 参加年月日: 10/10/31 最新の投稿
Hi there,
iam trying to make my services accessible with hessian.
What i have done:
1.) Wrote a portlet and a service
2.) deployed (axis and json works fine)
3.) added web.xml to my portlet and added follwing lines:
4.) added remoting-servlet.xml to my portlet and added follinw line:
When I start the tomcat, iam getting a no bean definition exception. When i look in the classes directory of my portlet, i can see that the interfaces are missing. Whats going wrong?
Can anyone give me a step by step hessian example.
Thank you.
iam trying to make my services accessible with hessian.
What i have done:
1.) Wrote a portlet and a service
2.) deployed (axis and json works fine)
3.) added web.xml to my portlet and added follwing lines:
<servlet>
<servlet-name>remoting</servlet-name>
<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>remoting</servlet-name>
<url-pattern>/remoting/*</url-pattern>
</servlet-mapping>
<listener>
</listener>
4.) added remoting-servlet.xml to my portlet and added follinw line:
<bean name="/xx" class="org.springframework.remoting.caucho.HessianServiceExporter">
<property name="service" ref="xx.xx.NewsService"></property>
<property name="serviceInterface" value="xx.xx.service.Service"></property>
</bean>
When I start the tomcat, iam getting a no bean definition exception. When i look in the classes directory of my portlet, i can see that the interfaces are missing. Whats going wrong?
Can anyone give me a step by step hessian example.
Thank you.