Hi,
so im trying to build a remote service with the standard service build.
I have the liferay IDE installed.
I user liferay 6.1CE and the SDK 6.1
the steps i followed :
--> create portlet
--> create liferay service inside the portlet.
this generates a service.xml
i change it to look like this.
1
2<entity name="Mapping" local-service="false" remote-service="true">
3 <column name="id" type="long" primary="true"/>
4 <column name="uuid" type="String"/>
5</entity>
i then do a build service (from the service.xml)
i then change MappingServiceImpl with some very basic functions.
i then do a build service (from the service.xml)
i then do a build wsdd (from the service.xml)
MappingService_deploy.wsdd and server-config.wsdd refer to the funtions correctly.
So i do a clean and deploy.
The portlet installs fine. No errors.
I can even see it under add portlet/ samples
i can also add it to the page.
BUT the service is not available.
if i go to http://localhost:8081/myservice-portlet/axis/Plugin_Mapping_MappingService?wsdl i get a 404
The only thing i noticed inside the log was
1
2build-wsdd:
3 [java] Loading jar:file:/opt/liferay_6.1/tomcat-7.0.23/webapps/ROOT/WEB-INF/lib/portal-impl.jar!/system.properties
4 [java] Feb 17, 2012 11:22:36 AM com.liferay.portal.kernel.log.Jdk14LogImpl info
5 [java] INFO: Global lib directory /opt/liferay_6.1/tomcat-7.0.23/lib/ext/
6 [java] Feb 17, 2012 11:22:36 AM com.liferay.portal.kernel.log.Jdk14LogImpl info
7 [java] INFO: Portal lib directory /opt/liferay_6.1/tomcat-7.0.23/webapps/ROOT/WEB-INF/lib/
8 [java] 11:22:36,588 INFO [EasyConf:122] Refreshed the configuration of all components
9 [java] 11:22:37,029 INFO [ConfigurationLoader:56] Properties for jar:file:/opt/liferay_6.1/tomcat-7.0.23/webapps/ROOT/WEB-INF/lib/portal-impl.jar!/portal loaded from [jar:file:/opt/liferay_6.1/tomcat-7.0.23/webapps/ROOT/WEB-INF/lib/portal-impl.jar!/com/liferay/portal/tools/dependencies/portal-tools.properties, jar:file:/opt/liferay_6.1/tomcat-7.0.23/webapps/ROOT/WEB-INF/lib/portal-impl.jar!/portal.properties]
10 [java] Loading jar:file:/opt/liferay_6.1/tomcat-7.0.23/webapps/ROOT/WEB-INF/lib/portal-impl.jar!/portal.properties
11 [java] Loading jar:file:/opt/liferay_6.1/tomcat-7.0.23/webapps/ROOT/WEB-INF/lib/portal-impl.jar!/com/liferay/portal/tools/dependencies/portal-tools.properties
12 [java] SLF4J: Class path contains multiple SLF4J bindings.
13 [java] SLF4J: Found binding in [jar:file:/opt/liferay_6.1/tomcat-7.0.23/webapps/ROOT/WEB-INF/lib/util-java.jar!/org/slf4j/impl/StaticLoggerBinder.class]
14 [java] SLF4J: Found binding in [jar:file:/opt/liferay_6.1_sdk/portlets/myservice-portlet/docroot/WEB-INF/lib/util-java.jar!/org/slf4j/impl/StaticLoggerBinder.class]
15 [java] SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
16 [java] Java2WSDL com.company.service.http.MappingServiceSoap
17 [java] WSDL2Java /opt/liferay_6.1_sdk/portlets/myservice-portlet/20120217112241677/service.wsdl
18 [java] Deleting directory /opt/liferay_6.1_sdk/portlets/myservice-portlet/20120217112241677
19BUILD SUCCESSFUL
20Total time: 9 seconds
I tried restarting liferay several times.
Please note that liferay runs on port 8081.
If i repeat these exact steps using the 6.0.6 sdk everything works fine.
any ideas what im doing wrong ?
Please sign in to flag this as inappropriate.