我正在创建一个liferay服务,我生成了很多类。当我尝试使用Liferay ServiceBUilder构建服务时,它在控制台中显示我的服务是成功构建的
[Console output redirected to file:/home/rajeshp/Desktop/LiferayDeveloperStudio/workspace/.metadata/.plugins/com.liferay.ide.eclipse.sdk/sdk.log]
Buildfile: /home/rajeshp/Desktop/LiferayDeveloperStudio/workspace/trunk/portlets/rosetta-services-portlet/build.xml
build-service:
[copy] Copying 1 file to /home/rajeshp/Desktop/LiferayDeveloperStudio/workspace/trunk/portlets/rosetta-services-portlet/docroot/WEB-INF/classes
[echo] Loading jar:file:/home/rajeshp/Desktop/LiferayDeveloperStudio/liferay-portal-6.0-ee-sp2/tomcat-6.0.32/webapps/ROOT/WEB-INF/lib/portal-impl.jar!/system.properties
[echo] 16:27:07,649 INFO [EasyConf:122] Refreshed the configuration of all components
[echo] 16:27:08,250 INFO [ConfigurationLoader:56] Properties for jar:file:/home/rajeshp/Desktop/LiferayDeveloperStudio/liferay-portal-6.0-ee-sp2/tomcat-6.0.32/webapps/ROOT/WEB-INF/lib/portal-impl.jar!/portal loaded from [jar:file:/home/rajeshp/Desktop/LiferayDeveloperStudio/liferay-portal-6.0-ee-sp2/tomcat-6.0.32/webapps/ROOT/WEB-INF/lib/portal-impl.jar!/com/liferay/portal/tools/dependencies/portal-tools.properties, jar:file:/home/rajeshp/Desktop/LiferayDeveloperStudio/liferay-portal-6.0-ee-sp2/tomcat-6.0.32/webapps/ROOT/WEB-INF/lib/portal-impl.jar!/portal.properties]
[echo] Loading jar:file:/home/rajeshp/Desktop/LiferayDeveloperStudio/liferay-portal-6.0-ee-sp2/tomcat-6.0.32/webapps/ROOT/WEB-INF/lib/portal-impl.jar!/portal.properties
[echo] Loading jar:file:/home/rajeshp/Desktop/LiferayDeveloperStudio/liferay-portal-6.0-ee-sp2/tomcat-6.0.32/webapps/ROOT/WEB-INF/lib/portal-impl.jar!/com/liferay/portal/tools/dependencies/portal-tools.properties
[echo] 16:27:11,976 INFO [PortalImpl:295] Global lib directory /home/rajeshp/Desktop/LiferayDeveloperStudio/liferay-portal-6.0-ee-sp2/tomcat-6.0.32/lib/ext/
[echo] 16:27:11,978 INFO [PortalImpl:315] Portal lib directory /home/rajeshp/Desktop/LiferayDeveloperStudio/liferay-portal-6.0-ee-sp2/tomcat-6.0.32/webapps/ROOT/WEB-INF/lib/
[echo] Building ECData
[echo] Building WebArticleHelper
[delete] Deleting: /home/rajeshp/Desktop/LiferayDeveloperStudio/workspace/trunk/portlets/rosetta-services-portlet/ServiceBuilder.temp
[mkdir] Created dir: /home/rajeshp/Desktop/LiferayDeveloperStudio/workspace/trunk/portlets/rosetta-services-portlet/docroot/WEB-INF/service-classes
compile-java:
[javac] Compiling 18 source files to /home/rajeshp/Desktop/LiferayDeveloperStudio/workspace/trunk/portlets/rosetta-services-portlet/docroot/WEB-INF/service-classes
[zip] Building zip: /home/rajeshp/Desktop/LiferayDeveloperStudio/workspace/trunk/portlets/rosetta-services-portlet/docroot/WEB-INF/lib/rosetta-services-portlet-service.jar
[delete] Deleting directory /home/rajeshp/Desktop/LiferayDeveloperStudio/workspace/trunk/portlets/rosetta-services-portlet/docroot/WEB-INF/service-classes
BUILD SUCCESSFUL
Total time: 16 seconds
但是我无法在Liferay Developer工作室中看到该服务
此外,当我打开http://localhost:8080/tunnel-web/axis
时我无法在那里找到我的服务,
在编译,部署,构建服务时,services-portlet没有给出任何错误,增加了更多的挫折感,相同的服务-portlet和服务正在我的大学机器中部署。
有谁可以弄清问题是什么?非常感谢。
答案 0 :(得分:0)
运行构建服务后,您需要运行build-wsdd ant任务(或在IDE中的service.xml编辑器中单击“build wsdd”)。另外,要尝试对此进行测试,您必须右键单击服务器视图中显示的portlet项目,然后选择“测试Web服务”。或者如果你想直接看到网址,你应该使用:
http://localhost:8080/rosetta-services-portlet/tunnel-web/axis
答案 1 :(得分:0)
我认为链接是:http://localhost:8080/rosetta-services-portlet/axis
........