掲示板

Service Builder 6.1, Type {http://model.redtree.be}CampaignRef is referenc

thumbnail
12年前 に Tom Mahy によって更新されました。

Service Builder 6.1, Type {http://model.redtree.be}CampaignRef is referenc

Regular Member 投稿: 103 参加年月日: 11/05/11 最新の投稿
Hi,

Im trying to make a simple service that can be accessed remotly.

So i create a portlet (with the liferay IDE)
Build a service.



<!--?xml version="1.0" encoding="UTF-8"?-->

<service-builder package-path="be.redtree">
	<author>author</author>
	<namespace>marketing</namespace>

	<entity name="CampaignRef" local-service="false" remote-service="true">
		<column name="uuid" type="String" primary="true" />
		<column name="title" type="String" />
		<column name="groupId" type="long" />
	</entity>


	<entity name="CampaignImage" local-service="false" remote-service="true">
		<column name="uuid" type="String" primary="true" />
		<column name="campaignId" type="String" />
		<column name="imageId" type="long" />
		<column name="percent" type="long" />
		<column name="counter" type="long" />
	</entity>

	<entity name="CampaignResult" local-service="false" remote-service="true">
		<column name="uuid" type="String" primary="true" />
		<column name="campaignId" type="String" />
		<column name="campaignImageId" type="String" />
		<column name="clicks" type="long" />
		<column name="groupId" type="long" />
	</entity>

</service-builder>


build it, add the FinderImpl classes. build it again. No errors.

and build the wsdd
i get the error :


[Console output redirected to file:/home/tom/workspaces/workspace-yes-another-one/.metadata/.plugins/com.liferay.ide.eclipse.sdk/sdk.log]
Buildfile: /opt/liferay_6.1_sdk/portlets/marketing-service-portlet/build.xml
compile:
merge:
compile-java:
merge:
build-wsdd:
     [java] Loading jar:file:/opt/liferay_6.1/tomcat-7.0.23/webapps/ROOT/WEB-INF/lib/portal-impl.jar!/system.properties
     [java] Mar 8, 2012 1:10:49 PM com.liferay.portal.kernel.log.Jdk14LogImpl info
     [java] INFO: Global lib directory /opt/liferay_6.1/tomcat-7.0.23/lib/ext/
     [java] Mar 8, 2012 1:10:49 PM com.liferay.portal.kernel.log.Jdk14LogImpl info
     [java] INFO: Portal lib directory /opt/liferay_6.1/tomcat-7.0.23/webapps/ROOT/WEB-INF/lib/
     [java] 13:10:49,915 INFO  [EasyConf:122] Refreshed the configuration of all components
     [java] 13:10:50,356 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]
     [java] Loading jar:file:/opt/liferay_6.1/tomcat-7.0.23/webapps/ROOT/WEB-INF/lib/portal-impl.jar!/portal.properties
     [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
     [java] SLF4J: Class path contains multiple SLF4J bindings.
     [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]
     [java] SLF4J: Found binding in [jar:file:/opt/liferay_6.1_sdk/portlets/marketing-service-portlet/docroot/WEB-INF/lib/util-java.jar!/org/slf4j/impl/StaticLoggerBinder.class]
     [java] SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
     [java]   Java2WSDL be.redtree.service.http.CampaignRefServiceSoap
     [java] 13:10:55,458 WARN  [Types:1704] The class be.redtree.model.CampaignRef does not contain a default constructor, which is a requirement for a bean class.  The class cannot be converted into an xml schema type.  An xml schema anyType will be used to define this class in the wsdl file.
     [java]   WSDL2Java /opt/liferay_6.1_sdk/portlets/marketing-service-portlet/20120308131054853/service.wsdl
     [java]   Running Wsdl2javaAntTask with parameters:
     [java]   	verbose:false
     [java]   	debug:false
     [java]   	quiet:false
     [java]   	server-side:true
     [java]   	skeletonDeploy:false
     [java]   	helperGen:false
     [java]   	factory:null
     [java]   	nsIncludes:[]
     [java]   	nsExcludes:[]
     [java]   	factoryProps:[]
     [java]   	testCase:false
     [java]   	noImports:false
     [java]   	NStoPkg:{}
     [java]   	output:/opt/liferay_6.1_sdk/portlets/marketing-service-portlet/20120308131054853
     [java]   	protocolHandlerPkgs:
     [java]   	deployScope:
     [java]   	URL:/opt/liferay_6.1_sdk/portlets/marketing-service-portlet/20120308131054853/service.wsdl
     [java]   	all:false
     [java]   	typeMappingVersion:1.2
     [java]   	timeout:45000
     [java]   	failOnNetworkErrors:false
     [java]   	printStackTraceOnFailure:true
     [java]   	namespaceMappingFile:null
     [java]   	username:null
     [java]   	:passwordnull
     [java]   	:noWrappedfalse
     [java]   	:allowInvalidURLfalse
     [java]   	:implementationClassNamenull
     [java]   	:classpathnull
     [java]   	http.proxyHost=null
     [java]   	http.proxyPort=null
     [java]   	http.proxyUser=null
     [java]   	http.proxyPassword=null
     [java]   	socks.proxyHost=null
     [java]   	socks.proxyPort=null
     [java] java.io.IOException: Type {http://model.redtree.be}CampaignRef is referenced but not defined.
     [java] 	at org.apache.axis.wsdl.symbolTable.SymbolTable.checkForUndefined(SymbolTable.java:665)
     [java] 	at org.apache.axis.wsdl.symbolTable.SymbolTable.add(SymbolTable.java:545)
     [java] 	at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:518)
     [java] 	at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:495)
     [java] 	at org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:361)
     [java] 	at java.lang.Thread.run(Thread.java:679)
     [java] Exception in thread "main" WSDL processing error for /opt/liferay_6.1_sdk/portlets/marketing-service-portlet/20120308131054853/service.wsdl :
     [java]  Type {http://model.redtree.be}CampaignRef is referenced but not defined.
     [java] 	at org.apache.axis.tools.ant.wsdl.Wsdl2javaAntTask.execute(Wsdl2javaAntTask.java:304)
     [java] 	at com.liferay.util.ant.Java2WsddTask.generateWsdd(Java2WsddTask.java:108)
     [java] 	at com.liferay.portal.tools.WSDDBuilder._createServiceWSDD(WSDDBuilder.java:130)
     [java] 	at com.liferay.portal.tools.WSDDBuilder.build(WSDDBuilder.java:93)
     [java] 	at com.liferay.portal.tools.WSDDBuilder.main(WSDDBuilder.java:49)
     [java] Caused by: java.io.IOException: Type {http://model.redtree.be}CampaignRef is referenced but not defined.
     [java] 	at org.apache.axis.wsdl.symbolTable.SymbolTable.checkForUndefined(SymbolTable.java:665)
     [java] 	at org.apache.axis.wsdl.symbolTable.SymbolTable.add(SymbolTable.java:545)
     [java] 	at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:518)
     [java] 	at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:495)
     [java] 	at org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:361)
     [java] 	at java.lang.Thread.run(Thread.java:679)
     [java] Java Result: 1
BUILD SUCCESSFUL
Total time: 8 seconds


Of course its not built properly.

any advice ?
I have not managed to build a service on 6.1 yet.

On 6.0.6 everything works fine.


Thank you.
11年前 に Giuseppe Pantaleo によって更新されました。

RE: Service Builder 6.1, Type {http://model.redtree.be}CampaignRef is refe

New Member 投稿: 15 参加年月日: 12/06/18 最新の投稿
Hi, I'm experiencing the same problem.
Have you solved it? If so, would you pelase tell me how you solved the problem?

Thanks in advance
thumbnail
11年前 に Tom Mahy によって更新されました。

RE: Service Builder 6.1, Type {http://model.redtree.be}CampaignRef is refe

Regular Member 投稿: 103 参加年月日: 11/05/11 最新の投稿
Hi,

No we have not. We were loosing too much time trying to find an answer, so we wrote our own service with hibernate for the db connection.
If you manage to solve it i would be very interested in the answer.

Thank you.
thumbnail
11年前 に Juan Gonzalez P によって更新されました。

RE: Service Builder 6.1, Type {http://model.redtree.be}CampaignRef is refe

Liferay Legend 投稿: 3089 参加年月日: 08/10/28 最新の投稿
I see two things here:

  • Not sure if "local-service=false" has sense if you enabled remote-service
  • uuid may be a reserved field name. If you want uuid, you can enable it using "uuid=true"
thumbnail
11年前 に Tom Mahy によって更新されました。

RE: Service Builder 6.1, Type {http://model.redtree.be}CampaignRef is refe

Regular Member 投稿: 103 参加年月日: 11/05/11 最新の投稿
Hi,

Thanks for the speedy answer.

1. locale service
The only reason i disabled this is because its a web service and should not be used by local classes. This keeps the project a bit cleaner.
Anyway. This makes no difference. Enabled or Disabled i get the same error.

2. UUID reserved.
I changed this to another value and the problem persists.

Here is the project before the changes,
before the changes
after the edit

Thank you.
thumbnail
11年前 に Juan Gonzalez P によって更新されました。

RE: Service Builder 6.1, Type {http://model.redtree.be}CampaignRef is refe

Liferay Legend 投稿: 3089 参加年月日: 08/10/28 最新の投稿
Can you change groupId from long to Long and re build-services and wsdd?
thumbnail
11年前 に Tom Mahy によって更新されました。

RE: Service Builder 6.1, Type {http://model.redtree.be}CampaignRef is refe

Regular Member 投稿: 103 参加年月日: 11/05/11 最新の投稿
same problem im afraid.
thumbnail
11年前 に Juan Gonzalez P によって更新されました。

RE: Service Builder 6.1, Type {http://model.redtree.be}CampaignRef is refe

Liferay Legend 投稿: 3089 参加年月日: 08/10/28 最新の投稿
Ok will test in few hours. Perhaps is a problem with 6.1 SDK and could be solved in 6.1.1 sdk.

Can you try with simplest single entity so we can check what is the exact field/entity that causes the problem?
thumbnail
11年前 に Tom Mahy によって更新されました。

RE: Service Builder 6.1, Type {http://model.redtree.be}CampaignRef is refe

Regular Member 投稿: 103 参加年月日: 11/05/11 最新の投稿
OK. i tried testing with the most basic service.xml

<entity name="CampaignRef" local-service="true" remote-service="true">
        <column name="anotherone" type="Long" primary="true" />
    </entity>


<entity name="CampaignRef" local-service="true" remote-service="true">
        <column name="anotherone" type="String" primary="true" />
    </entity>


The service impl class will return List<CampaignRef>.
The error will now be shown.

Return the single object : CampaignRef and the WSDL will compile.

Thank you.
11年前 に Giuseppe Pantaleo によって更新されました。

RE: Service Builder 6.1, Type {http://model.redtree.be}CampaignRef is refe

New Member 投稿: 15 参加年月日: 12/06/18 最新の投稿
Hi Tom, have you solved the problem?
I was following this guide: http://www.liferay.com/community/wiki/-/wiki/Main/Creating+Liferay+6+plugin+web+service, but I still have the problem.
As you can see I've just left a comment to the author of the guide, to try to solve the problem.
thumbnail
11年前 に Tom Mahy によって更新されました。

RE: Service Builder 6.1, Type {http://model.redtree.be}CampaignRef is refe

Regular Member 投稿: 103 参加年月日: 11/05/11 最新の投稿
Hi,

No i have not solved the problem. I just don't have the time right now as im trying to fix another bug with liferay and terracotta.
If i manage to fix this i will let you know.
11年前 に Giuseppe Pantaleo によって更新されました。

RE: Service Builder 6.1, Type {http://model.redtree.be}CampaignRef is refe

New Member 投稿: 15 参加年月日: 12/06/18 最新の投稿
I've probably solved the problem: I'm using (referring to your example) 'be.redtree.model.CampaignRefSoap' instead of 'be.redtree.model.CampaignRef' as transport object in remote service implementation class.

Hope this will help you
thumbnail
7年前 に Marco Azzalini によって更新されました。

RE: Service Builder 6.1, Type {http://model.redtree.be}CampaignRef is refe

Regular Member 投稿: 146 参加年月日: 14/11/18 最新の投稿
Giuseppe Pantaleo:
I've probably solved the problem: I'm using (referring to your example) 'be.redtree.model.CampaignRefSoap' instead of 'be.redtree.model.CampaignRef' as transport object in remote service implementation class.

Hope this will help you

Giuseppe... after five years since you wrote your message, you also solved my problem! emoticon Thanks a lot!

ciao
Marco
thumbnail
11年前 に Harish Kumar によって更新されました。

RE: Service Builder 6.1, Type {http://model.redtree.be}CampaignRef is refe

Expert 投稿: 483 参加年月日: 10/07/31 最新の投稿
Giuseppe Pantaleo:
Hi Tom, have you solved the problem?
I was following this guide: http://www.liferay.com/community/wiki/-/wiki/Main/Creating+Liferay+6+plugin+web+service, but I still have the problem.
As you can see I've just left a comment to the author of the guide, to try to solve the problem.



Hi Giuseppe,

I've tried with the same service.xml as provided by you and its working just fine. I've tested this with Liferay 6.1EE.
Here is the service.xml file -


<!--?xml version="1.0" encoding="UTF-8"?-->

<service-builder package-path="com.harish">
	<author>harish.kumar</author>
	<namespace>test_service</namespace>

	<entity name="anagraficaReligione" local-service="true" remote-service="true" json-enabled="true" human-name="Anagrafica religione">
        <!-- Primary key column -->
        <column name="idReligione" type="long" primary="true" />

        <!-- Foreign key columns -->
        <column name="companyId" type="long" />
        <column name="groupId" type="long" />
        <column name="userId" type="long" />

        <!-- Other columns -->
        <column name="label" type="String" />
        
        <order by="asc">
            <order-column name="label"></order-column>
        </order>

        <!-- Finder Methods Standard -->
        <finder name="GroupId" return-type="Collection">
            <finder-column name="groupId" />
        </finder>
        <finder name="UserId" return-type="Collection">
            <finder-column name="userId" />
        </finder>
        <finder name="UserIdGroupId" return-type="Collection">
            <finder-column name="userId" />
            <finder-column name="groupId" />
        </finder>
        <finder name="IdReligione" return-type="anagraficaReligione">
            <finder-column name="idReligione" />
        </finder>
        <finder name="Label" return-type="anagraficaReligione">
            <finder-column name="label" />
        </finder>
    </entity>
</service-builder>



and here is the console log for your reference (build-wsdd) -


Buildfile: D:\Liferay Work\liferay-plugins-sdk-6.1.10-ee-ga1\portlets\testservice-portlet\build.xml
compile:
merge:
     [copy] Copying 5 files to D:\Liferay Work\liferay-plugins-sdk-6.1.10-ee-ga1\portlets\testservice-portlet\docroot\WEB-INF\lib
compile-java:
merge:
build-wsdd:
     [java] Loading jar:file:/D:/Liferay%20Work/liferay-portal-6.1.10-ee-ga1/tomcat-7.0.25/webapps/ROOT/WEB-INF/lib/portal-impl.jar!/system.properties
     [java] Jul 31, 2012 7:28:02 AM com.liferay.portal.kernel.log.Jdk14LogImpl info
     [java] INFO: Global lib directory /D:/Liferay Work/liferay-portal-6.1.10-ee-ga1/tomcat-7.0.25/lib/ext/
     [java] Jul 31, 2012 7:28:02 AM com.liferay.portal.kernel.log.Jdk14LogImpl info
     [java] INFO: Portal lib directory /D:/Liferay Work/liferay-portal-6.1.10-ee-ga1/tomcat-7.0.25/webapps/ROOT/WEB-INF/lib/
     [java] 07:28:02,499 INFO  [EasyConf:122] Refreshed the configuration of all components
     [java] 07:28:02,821 INFO  [ConfigurationLoader:56] Properties for jar:file:/D:/Liferay%20Work/liferay-portal-6.1.10-ee-ga1/tomcat-7.0.25/webapps/ROOT/WEB-INF/lib/portal-impl.jar!/portal loaded from [jar:file:/D:/Liferay%20Work/liferay-portal-6.1.10-ee-ga1/tomcat-7.0.25/webapps/ROOT/WEB-INF/lib/portal-impl.jar!/com/liferay/portal/tools/dependencies/portal-tools.properties, file:/D:/Liferay%20Work/liferay-portal-6.1.10-ee-ga1/tomcat-7.0.25/webapps/ROOT/WEB-INF/classes/portal-ext.properties, jar:file:/D:/Liferay%20Work/liferay-portal-6.1.10-ee-ga1/tomcat-7.0.25/webapps/ROOT/WEB-INF/lib/portal-impl.jar!/portal.properties]
     [java] Loading jar:file:/D:/Liferay%20Work/liferay-portal-6.1.10-ee-ga1/tomcat-7.0.25/webapps/ROOT/WEB-INF/lib/portal-impl.jar!/portal.properties
     [java] Loading file:/D:/Liferay%20Work/liferay-portal-6.1.10-ee-ga1/tomcat-7.0.25/webapps/ROOT/WEB-INF/classes/portal-ext.properties
     [java] Loading jar:file:/D:/Liferay%20Work/liferay-portal-6.1.10-ee-ga1/tomcat-7.0.25/webapps/ROOT/WEB-INF/lib/portal-impl.jar!/com/liferay/portal/tools/dependencies/portal-tools.properties
     [java] SLF4J: Class path contains multiple SLF4J bindings.
     [java] SLF4J: Found binding in [jar:file:/D:/Liferay%20Work/liferay-portal-6.1.10-ee-ga1/tomcat-7.0.25/webapps/ROOT/WEB-INF/lib/util-java.jar!/org/slf4j/impl/StaticLoggerBinder.class]
     [java] SLF4J: Found binding in [jar:file:/D:/Liferay%20Work/liferay-plugins-sdk-6.1.10-ee-ga1/portlets/testservice-portlet/docroot/WEB-INF/lib/util-java.jar!/org/slf4j/impl/StaticLoggerBinder.class]
     [java] SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
     [java]   Java2WSDL com.harish.service.http.anagraficaReligioneServiceSoap
     [java]   WSDL2Java D:\Liferay Work\liferay-plugins-sdk-6.1.10-ee-ga1\portlets\testservice-portlet\20120731072805710\service.wsdl
     [java]   Deleting directory D:\Liferay Work\liferay-plugins-sdk-6.1.10-ee-ga1\portlets\testservice-portlet\20120731072805710
BUILD SUCCESSFUL
Total time: 7 seconds


Regards,
thumbnail
11年前 に Harish Kumar によって更新されました。

RE: Service Builder 6.1, Type {http://model.redtree.be}CampaignRef is refe

Expert 投稿: 483 参加年月日: 10/07/31 最新の投稿
Giuseppe Pantaleo:
Hi Tom, have you solved the problem?
I was following this guide: http://www.liferay.com/community/wiki/-/wiki/Main/Creating+Liferay+6+plugin+web+service, but I still have the problem.
As you can see I've just left a comment to the author of the guide, to try to solve the problem.


Hi Giuseppe,

If you are using Liferay 6.1 then you should skip step 21 mentioned in the tutorial as this has been fixed in 6.1


Regards,
11年前 に Giuseppe Pantaleo によって更新されました。

RE: Service Builder 6.1, Type {http://model.redtree.be}CampaignRef is refe

New Member 投稿: 15 参加年月日: 12/06/18 最新の投稿
I also think that "local-service=false" has no sense, but this sholud not be the problem: I have "local-service=true" and I still have the problem.

Here is my service.xml (generated from xmlPortletFactory and hand-modified):

<!--?xml version="1.0" encoding="UTF-8"?-->

<service-builder package-path="org.xmlportletfactory.portal.anagraficareligione">
	<author>Giuseppe Pantaleo</author>
	<namespace>anag</namespace>
	<entity name="anagraficaReligione" local-service="true" remote-service="true" json-enabled="true" human-name="Anagrafica religione">
		<!-- Primary key column -->
		<column name="idReligione" type="long" primary="true" />

		<!-- Foreign key columns -->
		<column name="companyId" type="long" />
		<column name="groupId" type="long" />
		<column name="userId" type="long" />

		<!-- Other columns -->
		<column name="label" type="String" />
		
        <order by="asc">
            <order-column name="label"></order-column>
        </order>

		<!-- Finder Methods Standard -->
		<finder name="GroupId" return-type="Collection">
			<finder-column name="groupId" />
		</finder>
		<finder name="UserId" return-type="Collection">
			<finder-column name="userId" />
		</finder>
		<finder name="UserIdGroupId" return-type="Collection">
			<finder-column name="userId" />
			<finder-column name="groupId" />
		</finder>
		<finder name="IdReligione" return-type="anagraficaReligione">
			<finder-column name="idReligione" />
		</finder>
		<finder name="Label" return-type="anagraficaReligione">
			<finder-column name="label" />
		</finder>
	</entity>
</service-builder>


I want a Web Service acessible remotely via soap and via json.
I have implemented the remote method in the class that implement remote service; than I've launched the build-service ant command and the build-wsdd ant command and I had the error listed below:

build-wsdd:
     [java] Loading jar:file:/D:/liferay-portal-6.1.0-ce-ga1/tomcat-7.0.23/webapps/ROOT/WEB-INF/lib/portal-impl.jar!/system.properties
     [java] 18-giu-2012 10.16.23 com.liferay.portal.kernel.log.Jdk14LogImpl info
     [java] INFO: Global lib directory /D:/liferay-portal-6.1.0-ce-ga1/tomcat-7.0.23/lib/ext/
     [java] 18-giu-2012 10.16.23 com.liferay.portal.kernel.log.Jdk14LogImpl info
     [java] INFO: Portal lib directory /D:/liferay-portal-6.1.0-ce-ga1/tomcat-7.0.23/webapps/ROOT/WEB-INF/lib/
     [java] 10:16:23,124 INFO  [EasyConf:122] Refreshed the configuration of all components
     [java] 10:16:23,409 INFO  [ConfigurationLoader:56] Properties for jar:file:/D:/liferay-portal-6.1.0-ce-ga1/tomcat-7.0.23/webapps/ROOT/WEB-INF/lib/portal-impl.jar!/portal loaded from [jar:file:/D:/liferay-portal-6.1.0-ce-ga1/tomcat-7.0.23/webapps/ROOT/WEB-INF/lib/portal-impl.jar!/com/liferay/portal/tools/dependencies/portal-tools.properties, file:/D:/liferay-portal-6.1.0-ce-ga1/tomcat-7.0.23/webapps/ROOT/WEB-INF/classes/portal-ext.properties, jar:file:/D:/liferay-portal-6.1.0-ce-ga1/tomcat-7.0.23/webapps/ROOT/WEB-INF/lib/portal-impl.jar!/portal.properties]
     [java] Loading jar:file:/D:/liferay-portal-6.1.0-ce-ga1/tomcat-7.0.23/webapps/ROOT/WEB-INF/lib/portal-impl.jar!/portal.properties
     [java] Loading file:/D:/liferay-portal-6.1.0-ce-ga1/tomcat-7.0.23/webapps/ROOT/WEB-INF/classes/portal-ext.properties
     [java] Loading jar:file:/D:/liferay-portal-6.1.0-ce-ga1/tomcat-7.0.23/webapps/ROOT/WEB-INF/lib/portal-impl.jar!/com/liferay/portal/tools/dependencies/portal-tools.properties
     [java] SLF4J: Class path contains multiple SLF4J bindings.
     [java] SLF4J: Found binding in [jar:file:/D:/liferay-portal-6.1.0-ce-ga1/tomcat-7.0.23/webapps/ROOT/WEB-INF/lib/util-java.jar!/org/slf4j/impl/StaticLoggerBinder.class]
     [java] SLF4J: Found binding in [jar:file:/D:/liferay-plugins-sdk-6.1.0-ce-ga1/portlets/anagraficaReligione-portlet/docroot/WEB-INF/lib/util-java.jar!/org/slf4j/impl/StaticLoggerBinder.class]
     [java] SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
     [java]   Java2WSDL org.xmlportletfactory.portal.anagraficareligione.service.http.anagraficaReligioneServiceSoap
     [java] 10:16:26,563 WARN  [Types:1704] The class org.xmlportletfactory.portal.anagraficareligione.model.anagraficaReligione does not contain a default constructor, which is a requirement for a bean class.  The class cannot be converted into an xml schema type.  An xml schema anyType will be used to define this class in the wsdl file.
     [java]   WSDL2Java D:\liferay-plugins-sdk-6.1.0-ce-ga1\portlets\anagraficaReligione-portlet\20120618101626071\service.wsdl
     [java]   Running Wsdl2javaAntTask with parameters:
     [java]   	verbose:false
     [java]   	debug:false
     [java]   	quiet:false
     [java]   	server-side:true
     [java]   	skeletonDeploy:false
     [java]   	helperGen:false
     [java]   	factory:null
     [java]   	nsIncludes:[]
     [java]   	nsExcludes:[]
     [java]   	factoryProps:[]
     [java]   	testCase:false
     [java]   	noImports:false
     [java]   	NStoPkg:{}
     [java]   	output:D:\liferay-plugins-sdk-6.1.0-ce-ga1\portlets\anagraficaReligione-portlet\20120618101626071
     [java]   	protocolHandlerPkgs:
     [java]   	deployScope:
     [java]   	URL:D:\liferay-plugins-sdk-6.1.0-ce-ga1\portlets\anagraficaReligione-portlet\20120618101626071\service.wsdl
     [java]   	all:false
     [java]   	typeMappingVersion:1.2
     [java]   	timeout:45000
     [java]   	failOnNetworkErrors:false
     [java]   	printStackTraceOnFailure:true
     [java]   	namespaceMappingFile:null
     [java]   	username:null
     [java]   	:passwordnull
     [java]   	:noWrappedfalse
     [java]   	:allowInvalidURLfalse
     [java]   	:implementationClassNamenull
     [java]   	:classpathnull
     [java]   	http.proxyHost=null
     [java]   	http.proxyPort=null
     [java]   	http.proxyUser=null
     [java]   	http.proxyPassword=null
     [java]   	socks.proxyHost=null
     [java]   	socks.proxyPort=null
     [java] java.io.IOException: Type {http://model.anagraficareligione.portal.xmlportletfactory.org}anagraficaReligione is referenced but not defined.
     [java] 	at org.apache.axis.wsdl.symbolTable.SymbolTable.checkForUndefined(SymbolTable.java:665)
     [java] 	at org.apache.axis.wsdl.symbolTable.SymbolTable.add(SymbolTable.java:545)
     [java] 	at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:518)
     [java] 	at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:495)
     [java] 	at org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:361)
     [java] 	at java.lang.Thread.run(Thread.java:619)
     [java] Exception in thread "main" WSDL processing error for D:\liferay-plugins-sdk-6.1.0-ce-ga1\portlets\anagraficaReligione-portlet\20120618101626071\service.wsdl :
     [java]  Type {http://model.anagraficareligione.portal.xmlportletfactory.org}anagraficaReligione is referenced but not defined.
     [java] 	at org.apache.axis.tools.ant.wsdl.Wsdl2javaAntTask.execute(Wsdl2javaAntTask.java:304)
     [java] 	at com.liferay.util.ant.Java2WsddTask.generateWsdd(Java2WsddTask.java:108)
     [java] 	at com.liferay.portal.tools.WSDDBuilder._createServiceWSDD(WSDDBuilder.java:130)
     [java] 	at com.liferay.portal.tools.WSDDBuilder.build(WSDDBuilder.java:93)
     [java] 	at com.liferay.portal.tools.WSDDBuilder.main(WSDDBuilder.java:49)
     [java] Caused by: java.io.IOException: Type {http://model.anagraficareligione.portal.xmlportletfactory.org}anagraficaReligione is referenced but not defined.
     [java] 	at org.apache.axis.wsdl.symbolTable.SymbolTable.checkForUndefined(SymbolTable.java:665)
     [java] 	at org.apache.axis.wsdl.symbolTable.SymbolTable.add(SymbolTable.java:545)
     [java] 	at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:518)
     [java] 	at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:495)
     [java] 	at org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:361)
     [java] 	at java.lang.Thread.run(Thread.java:619)
     [java] Java Result: 1
BUILD SUCCESSFUL
Total time: 6 seconds


Here I've noticed the warning
" [java] 10:16:26,563 WARN [Types:1704] The class org.xmlportletfactory.portal.anagraficareligione.model.anagraficaReligione does not contain a default constructor, which is a requirement for a bean class. The class cannot be converted into an xml schema type. An xml schema anyType will be used to define this class in the wsdl file."
The class org.xmlportletfactory.portal.anagraficareligione.model.anagraficaReligione is the class that is referenced but not defined.

Has anyone any suggestions to solve the problem?
11年前 に Joe D によって更新されました。

RE: Service Builder 6.1, Type {http://model.redtree.be}CampaignRef is refe

New Member 投稿: 12 参加年月日: 12/04/19 最新の投稿
Hi,

I got the same errors when I do build-wsdd.

I figured it out that the error only appear when I got find methods that return-type="Collection" and put these methods in *ServiceImpl.java. It would works fine if I removed those methods that return as A List of Objects.

I'm not sure if I missed and configurations or it's liferay's bug. If anyone have any ideas, please let us know. Thanks