Details

      Description

      Go to portal-impl folder and invoke: ant build-wsdd-portal

      The following exception occurs:

          [java]   WSDL2Java d:\liferay\liferay-portal\portal-impl\20130611031854401\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\liferay-portal\portal-impl\20130611031854401
           [java]     protocolHandlerPkgs:
           [java]     deployScope:
           [java]     URL:d:\liferay\liferay-portal\portal-impl\20130611031854401\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://util.java}Locale 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:662)
           [java] Exception in thread "main" WSDL processing error for d:\liferay\liferay-portal\portal-impl\20130611031854401
      \service.wsdl :
           [java]  Type {http://util.java}Locale 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:133)
           [java]     at com.liferay.portal.tools.WSDDBuilder.build(WSDDBuilder.java:96)
           [java]     at com.liferay.portal.tools.WSDDBuilder.main(WSDDBuilder.java:50)
           [java] Caused by: java.io.IOException: Type {http://util.java}Locale 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:662)
           [java] Java Result: 1
      

      This is Axis issue.

      When running Java2WSDL on a class, if type appears in the class hierarchy more than once AND if type is without SerializerFactory mapped AND if class fails on isBeanCompatible test; Java2WSDL will create an invalid schema - by creating a namespace and then referencing a non-existent type in that namespace.

      When processing AddressServiceSoap, Locale class exists in ServiceBuilder and in ThemeDisplay. First time its mapped to "xsd:anyType" and next (and every other) time is mapped to "{http://util.java}Locale".

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                brian.chan Brian Chan
                Reporter:
                igor.spasic Igor Spasic (Inactive)
                Participants of an Issue:
                Recent user:
                Esther Sanz
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  6 years, 19 weeks, 2 days ago

                  Packages

                  Version Package
                  6.1.2 CE GA3
                  6.1.30 EE GA3
                  6.2.0 CE M6