Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
MANOVINAYAK AYYAPPAN
SOAP WSDD Build Exception
December 6, 2012 12:22 AM
Answer

MANOVINAYAK AYYAPPAN

Rank: Regular Member

Posts: 132

Join Date: June 13, 2011

Recent Posts

Hi All,

I am facing a Exception while building WSDD.

One of my Remote Service Method has RETURN TYPE JSONARRAY, which would be mapped to type Any while I build WSDD.
And this halts the whole process of building the WSDD and my rest of my Remote Services are not getting Built.

Is JsonArray an acceptable return value, please let me know ?

The Exception is as follows:

 1 16:12:12,652 WARN  [Types:1704] The class com.liferay.portal.kernel.json.JSONArray 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.
 2     [java]   WSDL2Java C:\_LIFERAY_DEV_ENV\onecal\release_1.1.1\onecal-plugins-sdk-6.0\hooks\onecal-hook\20121206161212613\service.wsdl
 3     [java]   Running Wsdl2javaAntTask with parameters:
 4     [java]       verbose:false
 5     [java]       debug:false
 6     [java]       quiet:false
 7     [java]       server-side:true
 8     [java]       skeletonDeploy:false
 9     [java]       helperGen:false
10     [java]       factory:null
11     [java]       nsIncludes:[]
12     [java]       nsExcludes:[]
13     [java]       factoryProps:[]
14     [java]       testCase:false
15     [java]       noImports:false
16     [java]       NStoPkg:{}
17     [java]       output:C:\_LIFERAY_DEV_ENV\onecal\release_1.1.1\onecal-plugins-sdk-6.0\hooks\onecal-hook\20121206161212613
18     [java]       protocolHandlerPkgs:
19     [java]       deployScope:
20     [java]       URL:C:\_LIFERAY_DEV_ENV\onecal\release_1.1.1\onecal-plugins-sdk-6.0\hooks\onecal-hook\20121206161212613\service.wsdl
21     [java]       all:false
22     [java]       typeMappingVersion:1.2
23     [java]       timeout:45000
24     [java]       failOnNetworkErrors:false
25     [java]       printStackTraceOnFailure:true
26     [java]       namespaceMappingFile:null
27     [java]       username:null
28     [java]       :passwordnull
29     [java]       :noWrappedfalse
30     [java]       :allowInvalidURLfalse
31     [java]       :implementationClassNamenull
32     [java]       :classpathnull
33     [java]       http.proxyHost=null
34     [java]       http.proxyPort=null
35     [java]       http.proxyUser=null
36     [java]       http.proxyPassword=null
37     [java]       socks.proxyHost=null
38     [java]       socks.proxyPort=null
39     [java] java.io.IOException: Type {http://json.kernel.portal.liferay.com}JSONArray is referenced but not defined.
40     [java]     at org.apache.axis.wsdl.symbolTable.SymbolTable.checkForUndefined(SymbolTable.java:665)
41     [java]     at org.apache.axis.wsdl.symbolTable.SymbolTable.add(SymbolTable.java:545)
42     [java]     at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:518)
43     [java]     at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:495)
44     [java]     at org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:361)
45     [java]     at java.lang.Thread.run(Thread.java:662)
46     [java] WSDL processing error for C:\_LIFERAY_DEV_ENV\onecal\release_1.1.1\onecal-plugins-sdk-6.0\hooks\onecal-hook\20121206161212613\service.wsdl :
47     [java]  Type {http://json.kernel.portal.liferay.com}JSONArray is referenced but not defined.
48     [java]     at org.apache.axis.tools.ant.wsdl.Wsdl2javaAntTask.execute(Wsdl2javaAntTask.java:304)
49     [java]     at com.liferay.util.ant.Java2WsddTask.generateWsdd(Java2WsddTask.java:106)
50     [java]     at com.liferay.portal.tools.WSDDBuilder._createServiceWSDD(WSDDBuilder.java:136)
51     [java]     at com.liferay.portal.tools.WSDDBuilder.<init>(WSDDBuilder.java:106)
52     [java]     at com.liferay.portal.tools.WSDDBuilder.main(WSDDBuilder.java:40)
53     [java] Caused by: java.io.IOException: Type {http://json.kernel.portal.liferay.com}JSONArray is referenced but not defined.
54     [java]     at org.apache.axis.wsdl.symbolTable.SymbolTable.checkForUndefined(SymbolTable.java:665)
55     [java]     at org.apache.axis.wsdl.symbolTable.SymbolTable.add(SymbolTable.java:545)
56     [java]     at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:518)
57     [java]     at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:495)
58     [java]     at org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:361)
59     [java]     at java.lang.Thread.run(Thread.java:662)
Hitoshi Ozawa
RE: SOAP WSDD Build Exception
December 9, 2012 4:17 AM
Answer

Hitoshi Ozawa

Rank: Liferay Legend

Posts: 7949

Join Date: March 23, 2010

Recent Posts

The following page may help you.

http://www.liferaysolution.com/2011/07/convert-list-to-json-in-liferay.html
MANOVINAYAK AYYAPPAN
RE: SOAP WSDD Build Exception
December 9, 2012 10:31 PM
Answer

MANOVINAYAK AYYAPPAN

Rank: Regular Member

Posts: 132

Join Date: June 13, 2011

Recent Posts

Thanks a Tonne Hitoshi emoticon !!

I will try this out and update this thread.