You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "D Dub (JIRA)" <ji...@apache.org> on 2008/01/11 06:38:34 UTC

[jira] Created: (CXF-1388) Error when running client generated by Wsdl2Java tool 'org.apache.ws.commons.schema.constants.Enum$EnumValueException: Bad Enumeration value 'extension restriction''

Error when running client generated by Wsdl2Java tool 'org.apache.ws.commons.schema.constants.Enum$EnumValueException: Bad Enumeration value 'extension restriction''
---------------------------------------------------------------------------------------------------------------------------------------------------------------------

                 Key: CXF-1388
                 URL: https://issues.apache.org/jira/browse/CXF-1388
             Project: CXF
          Issue Type: Bug
    Affects Versions: 2.0.3
         Environment: Windows XP - Intellij Idea
            Reporter: D Dub


I am getting this error when running the main method of the client created by wsdl2java.  Wsdl does have a schema import.

"C:\Program Files\Java\jdk1.5.0_11\bin\java" -Xdebug -Xrunjdwp:transport=dt_socket,address=127.0.0.1:1470,suspend=y,server=n -Dfile.encoding=windows-1252 -classpath "C:\Program Files\Java\jdk1.5.0_11\jre\lib\charsets.jar;C:\Program Files\Java\jdk1.5.0_11\jre\lib\deploy.jar;C:\Program Files\Java\jdk1.5.0_11\jre\lib\javaws.jar;C:\Program Files\Java\jdk1.5.0_11\jre\lib\jce.jar;C:\Program Files\Java\jdk1.5.0_11\jre\lib\jsse.jar;C:\Program Files\Java\jdk1.5.0_11\jre\lib\plugin.jar;C:\Program Files\Java\jdk1.5.0_11\jre\lib\rt.jar;C:\Program Files\Java\jdk1.5.0_11\jre\lib\ext\dnsns.jar;C:\Program Files\Java\jdk1.5.0_11\jre\lib\ext\localedata.jar;C:\Program Files\Java\jdk1.5.0_11\jre\lib\ext\sunjce_provider.jar;C:\Program Files\Java\jdk1.5.0_11\jre\lib\ext\sunpkcs11.jar;C:\Development\BpmCxfClient\target\classes;C:\Documents and Settings\djwilli\.m2\repository\javax\xml\ws\jaxws-api\2.0\jaxws-api-2.0.jar;C:\Documents and Settings\djwilli\.m2\repository\aopalliance\aopalliance\1.0\aopalliance-1.0.jar;C:\Documents and Settings\djwilli\.m2\repository\org\codehaus\woodstox\wstx-asl\3.2.1\wstx-asl-3.2.1.jar;C:\Documents and Settings\djwilli\.m2\repository\org\apache\geronimo\specs\geronimo-javamail_1.4_spec\1.0-M1\geronimo-javamail_1.4_spec-1.0-M1.jar;C:\Documents and Settings\djwilli\.m2\repository\org\apache\neethi\neethi\2.0.2\neethi-2.0.2.jar;C:\Documents and Settings\djwilli\.m2\repository\javax\xml\bind\jaxb-api\2.0\jaxb-api-2.0.jar;C:\Documents and Settings\djwilli\.m2\repository\org\slf4j\slf4j-jdk14\1.3.1\slf4j-jdk14-1.3.1.jar;C:\Documents and Settings\djwilli\.m2\repository\org\apache\geronimo\specs\geronimo-servlet_2.5_spec\1.1-M1\geronimo-servlet_2.5_spec-1.1-M1.jar;C:\Documents and Settings\djwilli\.m2\repository\velocity\velocity-dep\1.4\velocity-dep-1.4.jar;C:\Documents and Settings\djwilli\.m2\repository\commons-logging\commons-logging\1.1\commons-logging-1.1.jar;C:\Documents and Settings\djwilli\.m2\repository\javax\xml\soap\saaj-api\1.3\saaj-api-1.3.jar;C:\Documents and Settings\djwilli\.m2\repository\org\apache\geronimo\specs\geronimo-activation_1.1_spec\1.0-M1\geronimo-activation_1.1_spec-1.0-M1.jar;C:\Documents and Settings\djwilli\.m2\repository\velocity\velocity\1.4\velocity-1.4.jar;C:\Documents and Settings\djwilli\.m2\repository\org\slf4j\slf4j-api\1.3.1\slf4j-api-1.3.1.jar;C:\Documents and Settings\djwilli\.m2\repository\wsdl4j\wsdl4j\1.6.1\wsdl4j-1.6.1.jar;C:\Documents and Settings\djwilli\.m2\repository\com\sun\xml\messaging\saaj\saaj-impl\1.3\saaj-impl-1.3.jar;C:\Documents and Settings\djwilli\.m2\repository\org\apache\geronimo\specs\geronimo-annotation_1.0_spec\1.1\geronimo-annotation_1.0_spec-1.1.jar;C:\Documents and Settings\djwilli\.m2\repository\commons-lang\commons-lang\2.1\commons-lang-2.1.jar;C:\Documents and Settings\djwilli\.m2\repository\com\sun\xml\bind\jaxb-xjc\2.0\jaxb-xjc-2.0.jar;C:\Documents and Settings\djwilli\.m2\repository\xml-resolver\xml-resolver\1.2\xml-resolver-1.2.jar;C:\Documents and Settings\djwilli\.m2\repository\org\apache\geronimo\specs\geronimo-ws-metadata_2.0_spec\1.1.1\geronimo-ws-metadata_2.0_spec-1.1.1.jar;C:\Documents and Settings\djwilli\.m2\repository\com\sun\xml\bind\jaxb-impl\2.0.5\jaxb-impl-2.0.5.jar;C:\Documents and Settings\djwilli\.m2\repository\org\springframework\spring-beans\2.0.6\spring-beans-2.0.6.jar;C:\Documents and Settings\djwilli\.m2\repository\org\apache\cxf\cxf-rt-transports-http\2.0.4-incubator-SNAPSHOT\cxf-rt-transports-http-2.0.4-incubator-SNAPSHOT.jar;C:\Documents and Settings\djwilli\.m2\repository\org\mortbay\jetty\jetty-util\6.1.6\jetty-util-6.1.6.jar;C:\Documents and Settings\djwilli\.m2\repository\org\apache\cxf\cxf-tools-common\2.0.4-incubator-SNAPSHOT\cxf-tools-common-2.0.4-incubator-SNAPSHOT.jar;C:\Documents and Settings\djwilli\.m2\repository\org\apache\cxf\cxf-rt-frontend-simple\2.0.4-incubator-SNAPSHOT\cxf-rt-frontend-simple-2.0.4-incubator-SNAPSHOT.jar;C:\Documents and Settings\djwilli\.m2\repository\org\apache\cxf\cxf-rt-bindings-soap\2.0.4-incubator-SNAPSHOT\cxf-rt-bindings-soap-2.0.4-incubator-SNAPSHOT.jar;C:\Documents and Settings\djwilli\.m2\repository\org\springframework\spring-context\2.0.6\spring-context-2.0.6.jar;C:\Documents and Settings\djwilli\.m2\repository\org\springframework\spring-web\2.0.6\spring-web-2.0.6.jar;C:\Documents and Settings\djwilli\.m2\repository\org\apache\cxf\cxf-rt-frontend-jaxws\2.0.4-incubator-SNAPSHOT\cxf-rt-frontend-jaxws-2.0.4-incubator-SNAPSHOT.jar;C:\Documents and Settings\djwilli\.m2\repository\org\apache\cxf\cxf-rt-core\2.0.4-incubator-SNAPSHOT\cxf-rt-core-2.0.4-incubator-SNAPSHOT.jar;C:\Documents and Settings\djwilli\.m2\repository\org\apache\ws\commons\schema\XmlSchema\1.3.2\XmlSchema-1.3.2.jar;C:\Documents and Settings\djwilli\.m2\repository\org\apache\cxf\cxf-common-schemas\2.0.4-incubator-SNAPSHOT\cxf-common-schemas-2.0.4-incubator-SNAPSHOT.jar;C:\Documents and Settings\djwilli\.m2\repository\org\apache\cxf\cxf-rt-databinding-jaxb\2.0.4-incubator-SNAPSHOT\cxf-rt-databinding-jaxb-2.0.4-incubator-SNAPSHOT.jar;C:\Documents and Settings\djwilli\.m2\repository\org\apache\geronimo\specs\geronimo-stax-api_1.0_spec\1.0\geronimo-stax-api_1.0_spec-1.0.jar;C:\Documents and Settings\djwilli\.m2\repository\org\springframework\spring-core\2.0.6\spring-core-2.0.6.jar;C:\Documents and Settings\djwilli\.m2\repository\org\mortbay\jetty\jetty\6.1.6\jetty-6.1.6.jar;C:\Documents and Settings\djwilli\.m2\repository\org\apache\cxf\cxf-common-utilities\2.0.4-incubator-SNAPSHOT\cxf-common-utilities-2.0.4-incubator-SNAPSHOT.jar;C:\Documents and Settings\djwilli\.m2\repository\org\apache\cxf\cxf-rt-transports-http-jetty\2.0.4-incubator-SNAPSHOT\cxf-rt-transports-http-jetty-2.0.4-incubator-SNAPSHOT.jar;C:\Documents and Settings\djwilli\.m2\repository\org\apache\cxf\cxf-api\2.0.4-incubator-SNAPSHOT\cxf-api-2.0.4-incubator-SNAPSHOT.jar;C:\Documents and Settings\djwilli\.m2\repository\org\apache\cxf\cxf-rt-bindings-xml\2.0.4-incubator-SNAPSHOT\cxf-rt-bindings-xml-2.0.4-incubator-SNAPSHOT.jar;C:\Program Files\JetBrains\IntelliJ IDEA 7.0.2\lib\idea_rt.jar" com.bea.albpm.papiwebservice.PapiWebServiceClient http://djwilli-2:8585/papiws/PapiWebServiceEndpoint?wsdl
Connected to the target VM, address: '127.0.0.1:1470', transport: 'socket'
Jan 10, 2008 11:28:39 PM org.springframework.context.support.AbstractApplicationContext prepareRefresh
INFO: Refreshing org.apache.cxf.bus.spring.BusApplicationContext@5e55ab: display name [org.apache.cxf.bus.spring.BusApplicationContext@5e55ab]; startup date [Thu Jan 10 23:28:39 CST 2008]; root of context hierarchy
Jan 10, 2008 11:28:39 PM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
INFO: Loading XML bean definitions from class path resource [META-INF/cxf/cxf.xml]
Jan 10, 2008 11:28:40 PM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
INFO: Loading XML bean definitions from class path resource [META-INF/cxf/cxf-extension-http.xml]
Jan 10, 2008 11:28:40 PM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
INFO: Loading XML bean definitions from class path resource [META-INF/cxf/cxf-extension-soap.xml]
Jan 10, 2008 11:28:40 PM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
INFO: Loading XML bean definitions from class path resource [META-INF/cxf/cxf-extension-jaxws.xml]
Jan 10, 2008 11:28:41 PM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
INFO: Loading XML bean definitions from class path resource [META-INF/cxf/cxf-extension-http-jetty.xml]
Jan 10, 2008 11:28:41 PM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
INFO: Loading XML bean definitions from class path resource [META-INF/cxf/cxf-extension-http.xml]
Jan 10, 2008 11:28:41 PM org.springframework.beans.factory.support.DefaultListableBeanFactory registerBeanDefinition
INFO: Overriding bean definition for bean 'org.apache.cxf.transport.http.ClientOnlyHTTPTransportFactory': replacing [Root bean: class [org.apache.cxf.transport.http.ClientOnlyHTTPTransportFactory]; scope=singleton; abstract=false; lazyInit=true; autowireCandidate=true; autowireMode=0; dependencyCheck=0; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in class path resource [META-INF/cxf/cxf-extension-http.xml]] with [Root bean: class [org.apache.cxf.transport.http.ClientOnlyHTTPTransportFactory]; scope=singleton; abstract=false; lazyInit=true; autowireCandidate=true; autowireMode=0; dependencyCheck=0; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in class path resource [META-INF/cxf/cxf-extension-http.xml]]
Jan 10, 2008 11:28:41 PM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
INFO: Loading XML bean definitions from class path resource [META-INF/cxf/cxf-extension-xml.xml]
Jan 10, 2008 11:28:42 PM org.springframework.context.support.AbstractApplicationContext obtainFreshBeanFactory
INFO: Bean factory for application context [org.apache.cxf.bus.spring.BusApplicationContext@5e55ab]: org.springframework.beans.factory.support.DefaultListableBeanFactory@6458a6
Jan 10, 2008 11:28:42 PM org.springframework.context.support.AbstractApplicationContext$BeanPostProcessorChecker postProcessAfterInitialization
INFO: Bean 'org.apache.cxf.bus.spring.Jsr250BeanPostProcessor' is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
Jan 10, 2008 11:28:42 PM org.springframework.context.support.AbstractApplicationContext$BeanPostProcessorChecker postProcessAfterInitialization
INFO: Bean 'org.apache.cxf.bus.spring.BusExtensionPostProcessor' is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
Jan 10, 2008 11:28:42 PM org.springframework.beans.factory.support.DefaultListableBeanFactory preInstantiateSingletons
INFO: Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@6458a6: defining beans [cxf,org.apache.cxf.bus.spring.Jsr250BeanPostProcessor,org.apache.cxf.bus.spring.BusExtensionPostProcessor,org.apache.cxf.resource.ResourceManager,org.apache.cxf.configuration.Configurer,org.apache.cxf.binding.BindingFactoryManager,org.apache.cxf.transport.DestinationFactoryManager,org.apache.cxf.transport.ConduitInitiatorManager,org.apache.cxf.wsdl.WSDLManager,org.apache.cxf.phase.PhaseManager,org.apache.cxf.workqueue.WorkQueueManager,org.apache.cxf.buslifecycle.BusLifeCycleManager,org.apache.cxf.endpoint.ServerRegistry,org.apache.cxf.endpoint.ServerLifeCycleManager,org.apache.cxf.endpoint.ClientLifeCycleManager,org.apache.cxf.transports.http.QueryHandlerRegistry,org.apache.cxf.endpoint.EndpointResolverRegistry,org.apache.cxf.headers.HeaderManager,org.apache.cxf.catalog.OASISCatalogManager,org.apache.cxf.endpoint.ServiceContractResolverRegistry,org.apache.cxf.transport.http.policy.HTTPClientAssertionBuilder,org.apache.cxf.transport.http.policy.HTTPServerAssertionBuilder,org.apache.cxf.transport.http.ClientOnlyHTTPTransportFactory,org.apache.cxf.binding.soap.SoapBindingFactory,org.apache.cxf.binding.soap.SoapTransportFactory,org.apache.cxf.binding.soap.customEditorConfigurer,org.apache.cxf.jaxws.context.WebServiceContextResourceResolver,org.apache.cxf.transport.http.policy.HTTPClientAssertionBuilder#1,org.apache.cxf.transport.http.policy.HTTPServerAssertionBuilder#1,org.apache.cxf.transport.http_jetty.JettyHTTPTransportFactory,org.apache.cxf.binding.xml.XMLBindingFactory]; root of factory hierarchy
Exception in thread "main" java.lang.RuntimeException: org.apache.ws.commons.schema.constants.Enum$EnumValueException: Bad Enumeration value 'extension restriction'
	at org.apache.ws.commons.schema.SchemaBuilder.resolveXmlSchema(SchemaBuilder.java:1886)
	at org.apache.ws.commons.schema.SchemaBuilder.resolveXmlSchema(SchemaBuilder.java:1902)
	at org.apache.ws.commons.schema.SchemaBuilder.handleImport(SchemaBuilder.java:1627)
	at org.apache.ws.commons.schema.SchemaBuilder.handleXmlSchemaElement(SchemaBuilder.java:175)
	at org.apache.ws.commons.schema.XmlSchemaCollection.read(XmlSchemaCollection.java:364)
	at org.apache.cxf.common.xmlschema.SchemaCollection.read(SchemaCollection.java:110)
	at org.apache.cxf.wsdl11.SchemaUtil.extractSchema(SchemaUtil.java:103)
	at org.apache.cxf.wsdl11.SchemaUtil.getSchemas(SchemaUtil.java:63)
	at org.apache.cxf.wsdl11.WSDLServiceBuilder.getSchemas(WSDLServiceBuilder.java:263)
	at org.apache.cxf.wsdl11.WSDLServiceBuilder.buildServices(WSDLServiceBuilder.java:238)
	at org.apache.cxf.wsdl11.WSDLServiceBuilder.buildServices(WSDLServiceBuilder.java:150)
	at org.apache.cxf.wsdl11.WSDLServiceFactory.create(WSDLServiceFactory.java:117)
	at org.apache.cxf.jaxws.ServiceImpl.initializePorts(ServiceImpl.java:136)
	at org.apache.cxf.jaxws.ServiceImpl.<init>(ServiceImpl.java:127)
	at org.apache.cxf.jaxws.spi.ProviderImpl.createServiceDelegate(ProviderImpl.java:55)
	at javax.xml.ws.Service.<init>(Service.java:57)
	at com.bea.albpm.papiwebservice.PapiWebService_Service.<init>(PapiWebService_Service.java:53)
	at com.bea.albpm.papiwebservice.PapiWebServiceClient.main(PapiWebServiceClient.java:64)
Caused by: org.apache.ws.commons.schema.constants.Enum$EnumValueException: Bad Enumeration value 'extension restriction'
	at org.apache.ws.commons.schema.constants.Enum.setValue(Enum.java:49)
	at org.apache.ws.commons.schema.constants.Enum.<init>(Enum.java:27)
	at org.apache.ws.commons.schema.XmlSchemaDerivationMethod.<init>(XmlSchemaDerivationMethod.java:46)
	at org.apache.ws.commons.schema.SchemaBuilder.handleComplexType(SchemaBuilder.java:657)
	at org.apache.ws.commons.schema.SchemaBuilder.handleXmlSchemaElement(SchemaBuilder.java:157)
	at org.apache.ws.commons.schema.SchemaBuilder.build(SchemaBuilder.java:82)
	at org.apache.ws.commons.schema.XmlSchemaCollection.read(XmlSchemaCollection.java:359)
	at org.apache.ws.commons.schema.XmlSchemaCollection.read(XmlSchemaCollection.java:304)
	at org.apache.ws.commons.schema.SchemaBuilder.resolveXmlSchema(SchemaBuilder.java:1884)
	... 17 more
Disconnected from the target VM, address: '127.0.0.1:1470', transport: 'socket'

Process finished with exit code 1


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CXF-1388) Error when running client generated by Wsdl2Java tool 'org.apache.ws.commons.schema.constants.Enum$EnumValueException: Bad Enumeration value 'extension restriction''

Posted by "Daniel Kulp (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CXF-1388?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12586819#action_12586819 ] 

Daniel Kulp commented on CXF-1388:
----------------------------------


We managed to finally get a new version of XmlSchema (version 1.4) from the ws folks that appears to fix this.   I have the trunk (2.1) and 2.0.x fixes branch both updated to use it.   I'll get new snapshots deployed that have it in place.

I'd appreciate it if someone could give it a download and make sure it really does checkout fine.



> Error when running client generated by Wsdl2Java tool 'org.apache.ws.commons.schema.constants.Enum$EnumValueException: Bad Enumeration value 'extension restriction''
> ---------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: CXF-1388
>                 URL: https://issues.apache.org/jira/browse/CXF-1388
>             Project: CXF
>          Issue Type: Bug
>    Affects Versions: 2.0.3
>         Environment: Windows XP - Intellij Idea
>            Reporter: D Dub
>            Priority: Blocker
>         Attachments: java_first_jaxws_bug.zip
>
>
> I am getting this error when running the main method of the client created by wsdl2java.  Wsdl does have a schema import.
> I am now getting this when using the wsdl2java tool.
> WSDLToJava Error : java.lang.RuntimeException: org.apache.ws.commons.schema.constants.Enum$EnumValueException: Bad Enumeration value 'extension restriction'
> "C:\Program Files\Java\jdk1.5.0_11\bin\java" -Xdebug -Xrunjdwp:transport=dt_socket,address=127.0.0.1:1470,suspend=y,server=n -Dfile.encoding=windows-1252 -classpath "C:\Program Files\Java\jdk1.5.0_11\jre\lib\charsets.jar;C:\Program Files\Java\jdk1.5.0_11\jre\lib\deploy.jar;C:\Program Files\Java\jdk1.5.0_11\jre\lib\javaws.jar;C:\Program Files\Java\jdk1.5.0_11\jre\lib\jce.jar;C:\Program Files\Java\jdk1.5.0_11\jre\lib\jsse.jar;C:\Program Files\Java\jdk1.5.0_11\jre\lib\plugin.jar;C:\Program Files\Java\jdk1.5.0_11\jre\lib\rt.jar;C:\Program Files\Java\jdk1.5.0_11\jre\lib\ext\dnsns.jar;C:\Program Files\Java\jdk1.5.0_11\jre\lib\ext\localedata.jar;C:\Program Files\Java\jdk1.5.0_11\jre\lib\ext\sunjce_provider.jar;C:\Program Files\Java\jdk1.5.0_11\jre\lib\ext\sunpkcs11.jar;C:\Development\BpmCxfClient\target\classes;C:\Documents and Settings\djwilli\.m2\repository\javax\xml\ws\jaxws-api\2.0\jaxws-api-2.0.jar;C:\Documents and Settings\djwilli\.m2\repository\aopalliance\aopalliance\1.0\aopalliance-1.0.jar;C:\Documents and Settings\djwilli\.m2\repository\org\codehaus\woodstox\wstx-asl\3.2.1\wstx-asl-3.2.1.jar;C:\Documents and Settings\djwilli\.m2\repository\org\apache\geronimo\specs\geronimo-javamail_1.4_spec\1.0-M1\geronimo-javamail_1.4_spec-1.0-M1.jar;C:\Documents and Settings\djwilli\.m2\repository\org\apache\neethi\neethi\2.0.2\neethi-2.0.2.jar;C:\Documents and Settings\djwilli\.m2\repository\javax\xml\bind\jaxb-api\2.0\jaxb-api-2.0.jar;C:\Documents and Settings\djwilli\.m2\repository\org\slf4j\slf4j-jdk14\1.3.1\slf4j-jdk14-1.3.1.jar;C:\Documents and Settings\djwilli\.m2\repository\org\apache\geronimo\specs\geronimo-servlet_2.5_spec\1.1-M1\geronimo-servlet_2.5_spec-1.1-M1.jar;C:\Documents and Settings\djwilli\.m2\repository\velocity\velocity-dep\1.4\velocity-dep-1.4.jar;C:\Documents and Settings\djwilli\.m2\repository\commons-logging\commons-logging\1.1\commons-logging-1.1.jar;C:\Documents and Settings\djwilli\.m2\repository\javax\xml\soap\saaj-api\1.3\saaj-api-1.3.jar;C:\Documents and Settings\djwilli\.m2\repository\org\apache\geronimo\specs\geronimo-activation_1.1_spec\1.0-M1\geronimo-activation_1.1_spec-1.0-M1.jar;C:\Documents and Settings\djwilli\.m2\repository\velocity\velocity\1.4\velocity-1.4.jar;C:\Documents and Settings\djwilli\.m2\repository\org\slf4j\slf4j-api\1.3.1\slf4j-api-1.3.1.jar;C:\Documents and Settings\djwilli\.m2\repository\wsdl4j\wsdl4j\1.6.1\wsdl4j-1.6.1.jar;C:\Documents and Settings\djwilli\.m2\repository\com\sun\xml\messaging\saaj\saaj-impl\1.3\saaj-impl-1.3.jar;C:\Documents and Settings\djwilli\.m2\repository\org\apache\geronimo\specs\geronimo-annotation_1.0_spec\1.1\geronimo-annotation_1.0_spec-1.1.jar;C:\Documents and Settings\djwilli\.m2\repository\commons-lang\commons-lang\2.1\commons-lang-2.1.jar;C:\Documents and Settings\djwilli\.m2\repository\com\sun\xml\bind\jaxb-xjc\2.0\jaxb-xjc-2.0.jar;C:\Documents and Settings\djwilli\.m2\repository\xml-resolver\xml-resolver\1.2\xml-resolver-1.2.jar;C:\Documents and Settings\djwilli\.m2\repository\org\apache\geronimo\specs\geronimo-ws-metadata_2.0_spec\1.1.1\geronimo-ws-metadata_2.0_spec-1.1.1.jar;C:\Documents and Settings\djwilli\.m2\repository\com\sun\xml\bind\jaxb-impl\2.0.5\jaxb-impl-2.0.5.jar;C:\Documents and Settings\djwilli\.m2\repository\org\springframework\spring-beans\2.0.6\spring-beans-2.0.6.jar;C:\Documents and Settings\djwilli\.m2\repository\org\apache\cxf\cxf-rt-transports-http\2.0.4-incubator-SNAPSHOT\cxf-rt-transports-http-2.0.4-incubator-SNAPSHOT.jar;C:\Documents and Settings\djwilli\.m2\repository\org\mortbay\jetty\jetty-util\6.1.6\jetty-util-6.1.6.jar;C:\Documents and Settings\djwilli\.m2\repository\org\apache\cxf\cxf-tools-common\2.0.4-incubator-SNAPSHOT\cxf-tools-common-2.0.4-incubator-SNAPSHOT.jar;C:\Documents and Settings\djwilli\.m2\repository\org\apache\cxf\cxf-rt-frontend-simple\2.0.4-incubator-SNAPSHOT\cxf-rt-frontend-simple-2.0.4-incubator-SNAPSHOT.jar;C:\Documents and Settings\djwilli\.m2\repository\org\apache\cxf\cxf-rt-bindings-soap\2.0.4-incubator-SNAPSHOT\cxf-rt-bindings-soap-2.0.4-incubator-SNAPSHOT.jar;C:\Documents and Settings\djwilli\.m2\repository\org\springframework\spring-context\2.0.6\spring-context-2.0.6.jar;C:\Documents and Settings\djwilli\.m2\repository\org\springframework\spring-web\2.0.6\spring-web-2.0.6.jar;C:\Documents and Settings\djwilli\.m2\repository\org\apache\cxf\cxf-rt-frontend-jaxws\2.0.4-incubator-SNAPSHOT\cxf-rt-frontend-jaxws-2.0.4-incubator-SNAPSHOT.jar;C:\Documents and Settings\djwilli\.m2\repository\org\apache\cxf\cxf-rt-core\2.0.4-incubator-SNAPSHOT\cxf-rt-core-2.0.4-incubator-SNAPSHOT.jar;C:\Documents and Settings\djwilli\.m2\repository\org\apache\ws\commons\schema\XmlSchema\1.3.2\XmlSchema-1.3.2.jar;C:\Documents and Settings\djwilli\.m2\repository\org\apache\cxf\cxf-common-schemas\2.0.4-incubator-SNAPSHOT\cxf-common-schemas-2.0.4-incubator-SNAPSHOT.jar;C:\Documents and Settings\djwilli\.m2\repository\org\apache\cxf\cxf-rt-databinding-jaxb\2.0.4-incubator-SNAPSHOT\cxf-rt-databinding-jaxb-2.0.4-incubator-SNAPSHOT.jar;C:\Documents and Settings\djwilli\.m2\repository\org\apache\geronimo\specs\geronimo-stax-api_1.0_spec\1.0\geronimo-stax-api_1.0_spec-1.0.jar;C:\Documents and Settings\djwilli\.m2\repository\org\springframework\spring-core\2.0.6\spring-core-2.0.6.jar;C:\Documents and Settings\djwilli\.m2\repository\org\mortbay\jetty\jetty\6.1.6\jetty-6.1.6.jar;C:\Documents and Settings\djwilli\.m2\repository\org\apache\cxf\cxf-common-utilities\2.0.4-incubator-SNAPSHOT\cxf-common-utilities-2.0.4-incubator-SNAPSHOT.jar;C:\Documents and Settings\djwilli\.m2\repository\org\apache\cxf\cxf-rt-transports-http-jetty\2.0.4-incubator-SNAPSHOT\cxf-rt-transports-http-jetty-2.0.4-incubator-SNAPSHOT.jar;C:\Documents and Settings\djwilli\.m2\repository\org\apache\cxf\cxf-api\2.0.4-incubator-SNAPSHOT\cxf-api-2.0.4-incubator-SNAPSHOT.jar;C:\Documents and Settings\djwilli\.m2\repository\org\apache\cxf\cxf-rt-bindings-xml\2.0.4-incubator-SNAPSHOT\cxf-rt-bindings-xml-2.0.4-incubator-SNAPSHOT.jar;C:\Program Files\JetBrains\IntelliJ IDEA 7.0.2\lib\idea_rt.jar" com.bea.albpm.papiwebservice.PapiWebServiceClient http://djwilli-2:8585/papiws/PapiWebServiceEndpoint?wsdl
> Connected to the target VM, address: '127.0.0.1:1470', transport: 'socket'
> Jan 10, 2008 11:28:39 PM org.springframework.context.support.AbstractApplicationContext prepareRefresh
> INFO: Refreshing org.apache.cxf.bus.spring.BusApplicationContext@5e55ab: display name [org.apache.cxf.bus.spring.BusApplicationContext@5e55ab]; startup date [Thu Jan 10 23:28:39 CST 2008]; root of context hierarchy
> Jan 10, 2008 11:28:39 PM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
> INFO: Loading XML bean definitions from class path resource [META-INF/cxf/cxf.xml]
> Jan 10, 2008 11:28:40 PM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
> INFO: Loading XML bean definitions from class path resource [META-INF/cxf/cxf-extension-http.xml]
> Jan 10, 2008 11:28:40 PM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
> INFO: Loading XML bean definitions from class path resource [META-INF/cxf/cxf-extension-soap.xml]
> Jan 10, 2008 11:28:40 PM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
> INFO: Loading XML bean definitions from class path resource [META-INF/cxf/cxf-extension-jaxws.xml]
> Jan 10, 2008 11:28:41 PM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
> INFO: Loading XML bean definitions from class path resource [META-INF/cxf/cxf-extension-http-jetty.xml]
> Jan 10, 2008 11:28:41 PM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
> INFO: Loading XML bean definitions from class path resource [META-INF/cxf/cxf-extension-http.xml]
> Jan 10, 2008 11:28:41 PM org.springframework.beans.factory.support.DefaultListableBeanFactory registerBeanDefinition
> INFO: Overriding bean definition for bean 'org.apache.cxf.transport.http.ClientOnlyHTTPTransportFactory': replacing [Root bean: class [org.apache.cxf.transport.http.ClientOnlyHTTPTransportFactory]; scope=singleton; abstract=false; lazyInit=true; autowireCandidate=true; autowireMode=0; dependencyCheck=0; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in class path resource [META-INF/cxf/cxf-extension-http.xml]] with [Root bean: class [org.apache.cxf.transport.http.ClientOnlyHTTPTransportFactory]; scope=singleton; abstract=false; lazyInit=true; autowireCandidate=true; autowireMode=0; dependencyCheck=0; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in class path resource [META-INF/cxf/cxf-extension-http.xml]]
> Jan 10, 2008 11:28:41 PM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
> INFO: Loading XML bean definitions from class path resource [META-INF/cxf/cxf-extension-xml.xml]
> Jan 10, 2008 11:28:42 PM org.springframework.context.support.AbstractApplicationContext obtainFreshBeanFactory
> INFO: Bean factory for application context [org.apache.cxf.bus.spring.BusApplicationContext@5e55ab]: org.springframework.beans.factory.support.DefaultListableBeanFactory@6458a6
> Jan 10, 2008 11:28:42 PM org.springframework.context.support.AbstractApplicationContext$BeanPostProcessorChecker postProcessAfterInitialization
> INFO: Bean 'org.apache.cxf.bus.spring.Jsr250BeanPostProcessor' is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
> Jan 10, 2008 11:28:42 PM org.springframework.context.support.AbstractApplicationContext$BeanPostProcessorChecker postProcessAfterInitialization
> INFO: Bean 'org.apache.cxf.bus.spring.BusExtensionPostProcessor' is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
> Jan 10, 2008 11:28:42 PM org.springframework.beans.factory.support.DefaultListableBeanFactory preInstantiateSingletons
> INFO: Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@6458a6: defining beans [cxf,org.apache.cxf.bus.spring.Jsr250BeanPostProcessor,org.apache.cxf.bus.spring.BusExtensionPostProcessor,org.apache.cxf.resource.ResourceManager,org.apache.cxf.configuration.Configurer,org.apache.cxf.binding.BindingFactoryManager,org.apache.cxf.transport.DestinationFactoryManager,org.apache.cxf.transport.ConduitInitiatorManager,org.apache.cxf.wsdl.WSDLManager,org.apache.cxf.phase.PhaseManager,org.apache.cxf.workqueue.WorkQueueManager,org.apache.cxf.buslifecycle.BusLifeCycleManager,org.apache.cxf.endpoint.ServerRegistry,org.apache.cxf.endpoint.ServerLifeCycleManager,org.apache.cxf.endpoint.ClientLifeCycleManager,org.apache.cxf.transports.http.QueryHandlerRegistry,org.apache.cxf.endpoint.EndpointResolverRegistry,org.apache.cxf.headers.HeaderManager,org.apache.cxf.catalog.OASISCatalogManager,org.apache.cxf.endpoint.ServiceContractResolverRegistry,org.apache.cxf.transport.http.policy.HTTPClientAssertionBuilder,org.apache.cxf.transport.http.policy.HTTPServerAssertionBuilder,org.apache.cxf.transport.http.ClientOnlyHTTPTransportFactory,org.apache.cxf.binding.soap.SoapBindingFactory,org.apache.cxf.binding.soap.SoapTransportFactory,org.apache.cxf.binding.soap.customEditorConfigurer,org.apache.cxf.jaxws.context.WebServiceContextResourceResolver,org.apache.cxf.transport.http.policy.HTTPClientAssertionBuilder#1,org.apache.cxf.transport.http.policy.HTTPServerAssertionBuilder#1,org.apache.cxf.transport.http_jetty.JettyHTTPTransportFactory,org.apache.cxf.binding.xml.XMLBindingFactory]; root of factory hierarchy
> Exception in thread "main" java.lang.RuntimeException: org.apache.ws.commons.schema.constants.Enum$EnumValueException: Bad Enumeration value 'extension restriction'
> 	at org.apache.ws.commons.schema.SchemaBuilder.resolveXmlSchema(SchemaBuilder.java:1886)
> 	at org.apache.ws.commons.schema.SchemaBuilder.resolveXmlSchema(SchemaBuilder.java:1902)
> 	at org.apache.ws.commons.schema.SchemaBuilder.handleImport(SchemaBuilder.java:1627)
> 	at org.apache.ws.commons.schema.SchemaBuilder.handleXmlSchemaElement(SchemaBuilder.java:175)
> 	at org.apache.ws.commons.schema.XmlSchemaCollection.read(XmlSchemaCollection.java:364)
> 	at org.apache.cxf.common.xmlschema.SchemaCollection.read(SchemaCollection.java:110)
> 	at org.apache.cxf.wsdl11.SchemaUtil.extractSchema(SchemaUtil.java:103)
> 	at org.apache.cxf.wsdl11.SchemaUtil.getSchemas(SchemaUtil.java:63)
> 	at org.apache.cxf.wsdl11.WSDLServiceBuilder.getSchemas(WSDLServiceBuilder.java:263)
> 	at org.apache.cxf.wsdl11.WSDLServiceBuilder.buildServices(WSDLServiceBuilder.java:238)
> 	at org.apache.cxf.wsdl11.WSDLServiceBuilder.buildServices(WSDLServiceBuilder.java:150)
> 	at org.apache.cxf.wsdl11.WSDLServiceFactory.create(WSDLServiceFactory.java:117)
> 	at org.apache.cxf.jaxws.ServiceImpl.initializePorts(ServiceImpl.java:136)
> 	at org.apache.cxf.jaxws.ServiceImpl.<init>(ServiceImpl.java:127)
> 	at org.apache.cxf.jaxws.spi.ProviderImpl.createServiceDelegate(ProviderImpl.java:55)
> 	at javax.xml.ws.Service.<init>(Service.java:57)
> 	at com.bea.albpm.papiwebservice.PapiWebService_Service.<init>(PapiWebService_Service.java:53)
> 	at com.bea.albpm.papiwebservice.PapiWebServiceClient.main(PapiWebServiceClient.java:64)
> Caused by: org.apache.ws.commons.schema.constants.Enum$EnumValueException: Bad Enumeration value 'extension restriction'
> 	at org.apache.ws.commons.schema.constants.Enum.setValue(Enum.java:49)
> 	at org.apache.ws.commons.schema.constants.Enum.<init>(Enum.java:27)
> 	at org.apache.ws.commons.schema.XmlSchemaDerivationMethod.<init>(XmlSchemaDerivationMethod.java:46)
> 	at org.apache.ws.commons.schema.SchemaBuilder.handleComplexType(SchemaBuilder.java:657)
> 	at org.apache.ws.commons.schema.SchemaBuilder.handleXmlSchemaElement(SchemaBuilder.java:157)
> 	at org.apache.ws.commons.schema.SchemaBuilder.build(SchemaBuilder.java:82)
> 	at org.apache.ws.commons.schema.XmlSchemaCollection.read(XmlSchemaCollection.java:359)
> 	at org.apache.ws.commons.schema.XmlSchemaCollection.read(XmlSchemaCollection.java:304)
> 	at org.apache.ws.commons.schema.SchemaBuilder.resolveXmlSchema(SchemaBuilder.java:1884)
> 	... 17 more
> Disconnected from the target VM, address: '127.0.0.1:1470', transport: 'socket'
> Process finished with exit code 1

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CXF-1388) Error when running client generated by Wsdl2Java tool 'org.apache.ws.commons.schema.constants.Enum$EnumValueException: Bad Enumeration value 'extension restriction''

Posted by "Wim Verreycken (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CXF-1388?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12586110#action_12586110 ] 

Wim Verreycken commented on CXF-1388:
-------------------------------------

you are using Spring 2.5. I think this can be related to CFX-1502

> Error when running client generated by Wsdl2Java tool 'org.apache.ws.commons.schema.constants.Enum$EnumValueException: Bad Enumeration value 'extension restriction''
> ---------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: CXF-1388
>                 URL: https://issues.apache.org/jira/browse/CXF-1388
>             Project: CXF
>          Issue Type: Bug
>    Affects Versions: 2.0.3
>         Environment: Windows XP - Intellij Idea
>            Reporter: D Dub
>            Priority: Blocker
>         Attachments: java_first_jaxws_bug.zip
>
>
> I am getting this error when running the main method of the client created by wsdl2java.  Wsdl does have a schema import.
> I am now getting this when using the wsdl2java tool.
> WSDLToJava Error : java.lang.RuntimeException: org.apache.ws.commons.schema.constants.Enum$EnumValueException: Bad Enumeration value 'extension restriction'
> "C:\Program Files\Java\jdk1.5.0_11\bin\java" -Xdebug -Xrunjdwp:transport=dt_socket,address=127.0.0.1:1470,suspend=y,server=n -Dfile.encoding=windows-1252 -classpath "C:\Program Files\Java\jdk1.5.0_11\jre\lib\charsets.jar;C:\Program Files\Java\jdk1.5.0_11\jre\lib\deploy.jar;C:\Program Files\Java\jdk1.5.0_11\jre\lib\javaws.jar;C:\Program Files\Java\jdk1.5.0_11\jre\lib\jce.jar;C:\Program Files\Java\jdk1.5.0_11\jre\lib\jsse.jar;C:\Program Files\Java\jdk1.5.0_11\jre\lib\plugin.jar;C:\Program Files\Java\jdk1.5.0_11\jre\lib\rt.jar;C:\Program Files\Java\jdk1.5.0_11\jre\lib\ext\dnsns.jar;C:\Program Files\Java\jdk1.5.0_11\jre\lib\ext\localedata.jar;C:\Program Files\Java\jdk1.5.0_11\jre\lib\ext\sunjce_provider.jar;C:\Program Files\Java\jdk1.5.0_11\jre\lib\ext\sunpkcs11.jar;C:\Development\BpmCxfClient\target\classes;C:\Documents and Settings\djwilli\.m2\repository\javax\xml\ws\jaxws-api\2.0\jaxws-api-2.0.jar;C:\Documents and Settings\djwilli\.m2\repository\aopalliance\aopalliance\1.0\aopalliance-1.0.jar;C:\Documents and Settings\djwilli\.m2\repository\org\codehaus\woodstox\wstx-asl\3.2.1\wstx-asl-3.2.1.jar;C:\Documents and Settings\djwilli\.m2\repository\org\apache\geronimo\specs\geronimo-javamail_1.4_spec\1.0-M1\geronimo-javamail_1.4_spec-1.0-M1.jar;C:\Documents and Settings\djwilli\.m2\repository\org\apache\neethi\neethi\2.0.2\neethi-2.0.2.jar;C:\Documents and Settings\djwilli\.m2\repository\javax\xml\bind\jaxb-api\2.0\jaxb-api-2.0.jar;C:\Documents and Settings\djwilli\.m2\repository\org\slf4j\slf4j-jdk14\1.3.1\slf4j-jdk14-1.3.1.jar;C:\Documents and Settings\djwilli\.m2\repository\org\apache\geronimo\specs\geronimo-servlet_2.5_spec\1.1-M1\geronimo-servlet_2.5_spec-1.1-M1.jar;C:\Documents and Settings\djwilli\.m2\repository\velocity\velocity-dep\1.4\velocity-dep-1.4.jar;C:\Documents and Settings\djwilli\.m2\repository\commons-logging\commons-logging\1.1\commons-logging-1.1.jar;C:\Documents and Settings\djwilli\.m2\repository\javax\xml\soap\saaj-api\1.3\saaj-api-1.3.jar;C:\Documents and Settings\djwilli\.m2\repository\org\apache\geronimo\specs\geronimo-activation_1.1_spec\1.0-M1\geronimo-activation_1.1_spec-1.0-M1.jar;C:\Documents and Settings\djwilli\.m2\repository\velocity\velocity\1.4\velocity-1.4.jar;C:\Documents and Settings\djwilli\.m2\repository\org\slf4j\slf4j-api\1.3.1\slf4j-api-1.3.1.jar;C:\Documents and Settings\djwilli\.m2\repository\wsdl4j\wsdl4j\1.6.1\wsdl4j-1.6.1.jar;C:\Documents and Settings\djwilli\.m2\repository\com\sun\xml\messaging\saaj\saaj-impl\1.3\saaj-impl-1.3.jar;C:\Documents and Settings\djwilli\.m2\repository\org\apache\geronimo\specs\geronimo-annotation_1.0_spec\1.1\geronimo-annotation_1.0_spec-1.1.jar;C:\Documents and Settings\djwilli\.m2\repository\commons-lang\commons-lang\2.1\commons-lang-2.1.jar;C:\Documents and Settings\djwilli\.m2\repository\com\sun\xml\bind\jaxb-xjc\2.0\jaxb-xjc-2.0.jar;C:\Documents and Settings\djwilli\.m2\repository\xml-resolver\xml-resolver\1.2\xml-resolver-1.2.jar;C:\Documents and Settings\djwilli\.m2\repository\org\apache\geronimo\specs\geronimo-ws-metadata_2.0_spec\1.1.1\geronimo-ws-metadata_2.0_spec-1.1.1.jar;C:\Documents and Settings\djwilli\.m2\repository\com\sun\xml\bind\jaxb-impl\2.0.5\jaxb-impl-2.0.5.jar;C:\Documents and Settings\djwilli\.m2\repository\org\springframework\spring-beans\2.0.6\spring-beans-2.0.6.jar;C:\Documents and Settings\djwilli\.m2\repository\org\apache\cxf\cxf-rt-transports-http\2.0.4-incubator-SNAPSHOT\cxf-rt-transports-http-2.0.4-incubator-SNAPSHOT.jar;C:\Documents and Settings\djwilli\.m2\repository\org\mortbay\jetty\jetty-util\6.1.6\jetty-util-6.1.6.jar;C:\Documents and Settings\djwilli\.m2\repository\org\apache\cxf\cxf-tools-common\2.0.4-incubator-SNAPSHOT\cxf-tools-common-2.0.4-incubator-SNAPSHOT.jar;C:\Documents and Settings\djwilli\.m2\repository\org\apache\cxf\cxf-rt-frontend-simple\2.0.4-incubator-SNAPSHOT\cxf-rt-frontend-simple-2.0.4-incubator-SNAPSHOT.jar;C:\Documents and Settings\djwilli\.m2\repository\org\apache\cxf\cxf-rt-bindings-soap\2.0.4-incubator-SNAPSHOT\cxf-rt-bindings-soap-2.0.4-incubator-SNAPSHOT.jar;C:\Documents and Settings\djwilli\.m2\repository\org\springframework\spring-context\2.0.6\spring-context-2.0.6.jar;C:\Documents and Settings\djwilli\.m2\repository\org\springframework\spring-web\2.0.6\spring-web-2.0.6.jar;C:\Documents and Settings\djwilli\.m2\repository\org\apache\cxf\cxf-rt-frontend-jaxws\2.0.4-incubator-SNAPSHOT\cxf-rt-frontend-jaxws-2.0.4-incubator-SNAPSHOT.jar;C:\Documents and Settings\djwilli\.m2\repository\org\apache\cxf\cxf-rt-core\2.0.4-incubator-SNAPSHOT\cxf-rt-core-2.0.4-incubator-SNAPSHOT.jar;C:\Documents and Settings\djwilli\.m2\repository\org\apache\ws\commons\schema\XmlSchema\1.3.2\XmlSchema-1.3.2.jar;C:\Documents and Settings\djwilli\.m2\repository\org\apache\cxf\cxf-common-schemas\2.0.4-incubator-SNAPSHOT\cxf-common-schemas-2.0.4-incubator-SNAPSHOT.jar;C:\Documents and Settings\djwilli\.m2\repository\org\apache\cxf\cxf-rt-databinding-jaxb\2.0.4-incubator-SNAPSHOT\cxf-rt-databinding-jaxb-2.0.4-incubator-SNAPSHOT.jar;C:\Documents and Settings\djwilli\.m2\repository\org\apache\geronimo\specs\geronimo-stax-api_1.0_spec\1.0\geronimo-stax-api_1.0_spec-1.0.jar;C:\Documents and Settings\djwilli\.m2\repository\org\springframework\spring-core\2.0.6\spring-core-2.0.6.jar;C:\Documents and Settings\djwilli\.m2\repository\org\mortbay\jetty\jetty\6.1.6\jetty-6.1.6.jar;C:\Documents and Settings\djwilli\.m2\repository\org\apache\cxf\cxf-common-utilities\2.0.4-incubator-SNAPSHOT\cxf-common-utilities-2.0.4-incubator-SNAPSHOT.jar;C:\Documents and Settings\djwilli\.m2\repository\org\apache\cxf\cxf-rt-transports-http-jetty\2.0.4-incubator-SNAPSHOT\cxf-rt-transports-http-jetty-2.0.4-incubator-SNAPSHOT.jar;C:\Documents and Settings\djwilli\.m2\repository\org\apache\cxf\cxf-api\2.0.4-incubator-SNAPSHOT\cxf-api-2.0.4-incubator-SNAPSHOT.jar;C:\Documents and Settings\djwilli\.m2\repository\org\apache\cxf\cxf-rt-bindings-xml\2.0.4-incubator-SNAPSHOT\cxf-rt-bindings-xml-2.0.4-incubator-SNAPSHOT.jar;C:\Program Files\JetBrains\IntelliJ IDEA 7.0.2\lib\idea_rt.jar" com.bea.albpm.papiwebservice.PapiWebServiceClient http://djwilli-2:8585/papiws/PapiWebServiceEndpoint?wsdl
> Connected to the target VM, address: '127.0.0.1:1470', transport: 'socket'
> Jan 10, 2008 11:28:39 PM org.springframework.context.support.AbstractApplicationContext prepareRefresh
> INFO: Refreshing org.apache.cxf.bus.spring.BusApplicationContext@5e55ab: display name [org.apache.cxf.bus.spring.BusApplicationContext@5e55ab]; startup date [Thu Jan 10 23:28:39 CST 2008]; root of context hierarchy
> Jan 10, 2008 11:28:39 PM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
> INFO: Loading XML bean definitions from class path resource [META-INF/cxf/cxf.xml]
> Jan 10, 2008 11:28:40 PM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
> INFO: Loading XML bean definitions from class path resource [META-INF/cxf/cxf-extension-http.xml]
> Jan 10, 2008 11:28:40 PM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
> INFO: Loading XML bean definitions from class path resource [META-INF/cxf/cxf-extension-soap.xml]
> Jan 10, 2008 11:28:40 PM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
> INFO: Loading XML bean definitions from class path resource [META-INF/cxf/cxf-extension-jaxws.xml]
> Jan 10, 2008 11:28:41 PM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
> INFO: Loading XML bean definitions from class path resource [META-INF/cxf/cxf-extension-http-jetty.xml]
> Jan 10, 2008 11:28:41 PM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
> INFO: Loading XML bean definitions from class path resource [META-INF/cxf/cxf-extension-http.xml]
> Jan 10, 2008 11:28:41 PM org.springframework.beans.factory.support.DefaultListableBeanFactory registerBeanDefinition
> INFO: Overriding bean definition for bean 'org.apache.cxf.transport.http.ClientOnlyHTTPTransportFactory': replacing [Root bean: class [org.apache.cxf.transport.http.ClientOnlyHTTPTransportFactory]; scope=singleton; abstract=false; lazyInit=true; autowireCandidate=true; autowireMode=0; dependencyCheck=0; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in class path resource [META-INF/cxf/cxf-extension-http.xml]] with [Root bean: class [org.apache.cxf.transport.http.ClientOnlyHTTPTransportFactory]; scope=singleton; abstract=false; lazyInit=true; autowireCandidate=true; autowireMode=0; dependencyCheck=0; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in class path resource [META-INF/cxf/cxf-extension-http.xml]]
> Jan 10, 2008 11:28:41 PM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
> INFO: Loading XML bean definitions from class path resource [META-INF/cxf/cxf-extension-xml.xml]
> Jan 10, 2008 11:28:42 PM org.springframework.context.support.AbstractApplicationContext obtainFreshBeanFactory
> INFO: Bean factory for application context [org.apache.cxf.bus.spring.BusApplicationContext@5e55ab]: org.springframework.beans.factory.support.DefaultListableBeanFactory@6458a6
> Jan 10, 2008 11:28:42 PM org.springframework.context.support.AbstractApplicationContext$BeanPostProcessorChecker postProcessAfterInitialization
> INFO: Bean 'org.apache.cxf.bus.spring.Jsr250BeanPostProcessor' is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
> Jan 10, 2008 11:28:42 PM org.springframework.context.support.AbstractApplicationContext$BeanPostProcessorChecker postProcessAfterInitialization
> INFO: Bean 'org.apache.cxf.bus.spring.BusExtensionPostProcessor' is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
> Jan 10, 2008 11:28:42 PM org.springframework.beans.factory.support.DefaultListableBeanFactory preInstantiateSingletons
> INFO: Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@6458a6: defining beans [cxf,org.apache.cxf.bus.spring.Jsr250BeanPostProcessor,org.apache.cxf.bus.spring.BusExtensionPostProcessor,org.apache.cxf.resource.ResourceManager,org.apache.cxf.configuration.Configurer,org.apache.cxf.binding.BindingFactoryManager,org.apache.cxf.transport.DestinationFactoryManager,org.apache.cxf.transport.ConduitInitiatorManager,org.apache.cxf.wsdl.WSDLManager,org.apache.cxf.phase.PhaseManager,org.apache.cxf.workqueue.WorkQueueManager,org.apache.cxf.buslifecycle.BusLifeCycleManager,org.apache.cxf.endpoint.ServerRegistry,org.apache.cxf.endpoint.ServerLifeCycleManager,org.apache.cxf.endpoint.ClientLifeCycleManager,org.apache.cxf.transports.http.QueryHandlerRegistry,org.apache.cxf.endpoint.EndpointResolverRegistry,org.apache.cxf.headers.HeaderManager,org.apache.cxf.catalog.OASISCatalogManager,org.apache.cxf.endpoint.ServiceContractResolverRegistry,org.apache.cxf.transport.http.policy.HTTPClientAssertionBuilder,org.apache.cxf.transport.http.policy.HTTPServerAssertionBuilder,org.apache.cxf.transport.http.ClientOnlyHTTPTransportFactory,org.apache.cxf.binding.soap.SoapBindingFactory,org.apache.cxf.binding.soap.SoapTransportFactory,org.apache.cxf.binding.soap.customEditorConfigurer,org.apache.cxf.jaxws.context.WebServiceContextResourceResolver,org.apache.cxf.transport.http.policy.HTTPClientAssertionBuilder#1,org.apache.cxf.transport.http.policy.HTTPServerAssertionBuilder#1,org.apache.cxf.transport.http_jetty.JettyHTTPTransportFactory,org.apache.cxf.binding.xml.XMLBindingFactory]; root of factory hierarchy
> Exception in thread "main" java.lang.RuntimeException: org.apache.ws.commons.schema.constants.Enum$EnumValueException: Bad Enumeration value 'extension restriction'
> 	at org.apache.ws.commons.schema.SchemaBuilder.resolveXmlSchema(SchemaBuilder.java:1886)
> 	at org.apache.ws.commons.schema.SchemaBuilder.resolveXmlSchema(SchemaBuilder.java:1902)
> 	at org.apache.ws.commons.schema.SchemaBuilder.handleImport(SchemaBuilder.java:1627)
> 	at org.apache.ws.commons.schema.SchemaBuilder.handleXmlSchemaElement(SchemaBuilder.java:175)
> 	at org.apache.ws.commons.schema.XmlSchemaCollection.read(XmlSchemaCollection.java:364)
> 	at org.apache.cxf.common.xmlschema.SchemaCollection.read(SchemaCollection.java:110)
> 	at org.apache.cxf.wsdl11.SchemaUtil.extractSchema(SchemaUtil.java:103)
> 	at org.apache.cxf.wsdl11.SchemaUtil.getSchemas(SchemaUtil.java:63)
> 	at org.apache.cxf.wsdl11.WSDLServiceBuilder.getSchemas(WSDLServiceBuilder.java:263)
> 	at org.apache.cxf.wsdl11.WSDLServiceBuilder.buildServices(WSDLServiceBuilder.java:238)
> 	at org.apache.cxf.wsdl11.WSDLServiceBuilder.buildServices(WSDLServiceBuilder.java:150)
> 	at org.apache.cxf.wsdl11.WSDLServiceFactory.create(WSDLServiceFactory.java:117)
> 	at org.apache.cxf.jaxws.ServiceImpl.initializePorts(ServiceImpl.java:136)
> 	at org.apache.cxf.jaxws.ServiceImpl.<init>(ServiceImpl.java:127)
> 	at org.apache.cxf.jaxws.spi.ProviderImpl.createServiceDelegate(ProviderImpl.java:55)
> 	at javax.xml.ws.Service.<init>(Service.java:57)
> 	at com.bea.albpm.papiwebservice.PapiWebService_Service.<init>(PapiWebService_Service.java:53)
> 	at com.bea.albpm.papiwebservice.PapiWebServiceClient.main(PapiWebServiceClient.java:64)
> Caused by: org.apache.ws.commons.schema.constants.Enum$EnumValueException: Bad Enumeration value 'extension restriction'
> 	at org.apache.ws.commons.schema.constants.Enum.setValue(Enum.java:49)
> 	at org.apache.ws.commons.schema.constants.Enum.<init>(Enum.java:27)
> 	at org.apache.ws.commons.schema.XmlSchemaDerivationMethod.<init>(XmlSchemaDerivationMethod.java:46)
> 	at org.apache.ws.commons.schema.SchemaBuilder.handleComplexType(SchemaBuilder.java:657)
> 	at org.apache.ws.commons.schema.SchemaBuilder.handleXmlSchemaElement(SchemaBuilder.java:157)
> 	at org.apache.ws.commons.schema.SchemaBuilder.build(SchemaBuilder.java:82)
> 	at org.apache.ws.commons.schema.XmlSchemaCollection.read(XmlSchemaCollection.java:359)
> 	at org.apache.ws.commons.schema.XmlSchemaCollection.read(XmlSchemaCollection.java:304)
> 	at org.apache.ws.commons.schema.SchemaBuilder.resolveXmlSchema(SchemaBuilder.java:1884)
> 	... 17 more
> Disconnected from the target VM, address: '127.0.0.1:1470', transport: 'socket'
> Process finished with exit code 1

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (CXF-1388) Error when running client generated by Wsdl2Java tool 'org.apache.ws.commons.schema.constants.Enum$EnumValueException: Bad Enumeration value 'extension restriction''

Posted by "D Dub (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CXF-1388?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

D Dub updated CXF-1388:
-----------------------

    Estimated Complexity: Advanced  (was: Moderate)
                Priority: Blocker  (was: Major)
             Description: 
I am getting this error when running the main method of the client created by wsdl2java.  Wsdl does have a schema import.

I am now getting this when using the wsdl2java tool.

WSDLToJava Error : java.lang.RuntimeException: org.apache.ws.commons.schema.constants.Enum$EnumValueException: Bad Enumeration value 'extension restriction'

"C:\Program Files\Java\jdk1.5.0_11\bin\java" -Xdebug -Xrunjdwp:transport=dt_socket,address=127.0.0.1:1470,suspend=y,server=n -Dfile.encoding=windows-1252 -classpath "C:\Program Files\Java\jdk1.5.0_11\jre\lib\charsets.jar;C:\Program Files\Java\jdk1.5.0_11\jre\lib\deploy.jar;C:\Program Files\Java\jdk1.5.0_11\jre\lib\javaws.jar;C:\Program Files\Java\jdk1.5.0_11\jre\lib\jce.jar;C:\Program Files\Java\jdk1.5.0_11\jre\lib\jsse.jar;C:\Program Files\Java\jdk1.5.0_11\jre\lib\plugin.jar;C:\Program Files\Java\jdk1.5.0_11\jre\lib\rt.jar;C:\Program Files\Java\jdk1.5.0_11\jre\lib\ext\dnsns.jar;C:\Program Files\Java\jdk1.5.0_11\jre\lib\ext\localedata.jar;C:\Program Files\Java\jdk1.5.0_11\jre\lib\ext\sunjce_provider.jar;C:\Program Files\Java\jdk1.5.0_11\jre\lib\ext\sunpkcs11.jar;C:\Development\BpmCxfClient\target\classes;C:\Documents and Settings\djwilli\.m2\repository\javax\xml\ws\jaxws-api\2.0\jaxws-api-2.0.jar;C:\Documents and Settings\djwilli\.m2\repository\aopalliance\aopalliance\1.0\aopalliance-1.0.jar;C:\Documents and Settings\djwilli\.m2\repository\org\codehaus\woodstox\wstx-asl\3.2.1\wstx-asl-3.2.1.jar;C:\Documents and Settings\djwilli\.m2\repository\org\apache\geronimo\specs\geronimo-javamail_1.4_spec\1.0-M1\geronimo-javamail_1.4_spec-1.0-M1.jar;C:\Documents and Settings\djwilli\.m2\repository\org\apache\neethi\neethi\2.0.2\neethi-2.0.2.jar;C:\Documents and Settings\djwilli\.m2\repository\javax\xml\bind\jaxb-api\2.0\jaxb-api-2.0.jar;C:\Documents and Settings\djwilli\.m2\repository\org\slf4j\slf4j-jdk14\1.3.1\slf4j-jdk14-1.3.1.jar;C:\Documents and Settings\djwilli\.m2\repository\org\apache\geronimo\specs\geronimo-servlet_2.5_spec\1.1-M1\geronimo-servlet_2.5_spec-1.1-M1.jar;C:\Documents and Settings\djwilli\.m2\repository\velocity\velocity-dep\1.4\velocity-dep-1.4.jar;C:\Documents and Settings\djwilli\.m2\repository\commons-logging\commons-logging\1.1\commons-logging-1.1.jar;C:\Documents and Settings\djwilli\.m2\repository\javax\xml\soap\saaj-api\1.3\saaj-api-1.3.jar;C:\Documents and Settings\djwilli\.m2\repository\org\apache\geronimo\specs\geronimo-activation_1.1_spec\1.0-M1\geronimo-activation_1.1_spec-1.0-M1.jar;C:\Documents and Settings\djwilli\.m2\repository\velocity\velocity\1.4\velocity-1.4.jar;C:\Documents and Settings\djwilli\.m2\repository\org\slf4j\slf4j-api\1.3.1\slf4j-api-1.3.1.jar;C:\Documents and Settings\djwilli\.m2\repository\wsdl4j\wsdl4j\1.6.1\wsdl4j-1.6.1.jar;C:\Documents and Settings\djwilli\.m2\repository\com\sun\xml\messaging\saaj\saaj-impl\1.3\saaj-impl-1.3.jar;C:\Documents and Settings\djwilli\.m2\repository\org\apache\geronimo\specs\geronimo-annotation_1.0_spec\1.1\geronimo-annotation_1.0_spec-1.1.jar;C:\Documents and Settings\djwilli\.m2\repository\commons-lang\commons-lang\2.1\commons-lang-2.1.jar;C:\Documents and Settings\djwilli\.m2\repository\com\sun\xml\bind\jaxb-xjc\2.0\jaxb-xjc-2.0.jar;C:\Documents and Settings\djwilli\.m2\repository\xml-resolver\xml-resolver\1.2\xml-resolver-1.2.jar;C:\Documents and Settings\djwilli\.m2\repository\org\apache\geronimo\specs\geronimo-ws-metadata_2.0_spec\1.1.1\geronimo-ws-metadata_2.0_spec-1.1.1.jar;C:\Documents and Settings\djwilli\.m2\repository\com\sun\xml\bind\jaxb-impl\2.0.5\jaxb-impl-2.0.5.jar;C:\Documents and Settings\djwilli\.m2\repository\org\springframework\spring-beans\2.0.6\spring-beans-2.0.6.jar;C:\Documents and Settings\djwilli\.m2\repository\org\apache\cxf\cxf-rt-transports-http\2.0.4-incubator-SNAPSHOT\cxf-rt-transports-http-2.0.4-incubator-SNAPSHOT.jar;C:\Documents and Settings\djwilli\.m2\repository\org\mortbay\jetty\jetty-util\6.1.6\jetty-util-6.1.6.jar;C:\Documents and Settings\djwilli\.m2\repository\org\apache\cxf\cxf-tools-common\2.0.4-incubator-SNAPSHOT\cxf-tools-common-2.0.4-incubator-SNAPSHOT.jar;C:\Documents and Settings\djwilli\.m2\repository\org\apache\cxf\cxf-rt-frontend-simple\2.0.4-incubator-SNAPSHOT\cxf-rt-frontend-simple-2.0.4-incubator-SNAPSHOT.jar;C:\Documents and Settings\djwilli\.m2\repository\org\apache\cxf\cxf-rt-bindings-soap\2.0.4-incubator-SNAPSHOT\cxf-rt-bindings-soap-2.0.4-incubator-SNAPSHOT.jar;C:\Documents and Settings\djwilli\.m2\repository\org\springframework\spring-context\2.0.6\spring-context-2.0.6.jar;C:\Documents and Settings\djwilli\.m2\repository\org\springframework\spring-web\2.0.6\spring-web-2.0.6.jar;C:\Documents and Settings\djwilli\.m2\repository\org\apache\cxf\cxf-rt-frontend-jaxws\2.0.4-incubator-SNAPSHOT\cxf-rt-frontend-jaxws-2.0.4-incubator-SNAPSHOT.jar;C:\Documents and Settings\djwilli\.m2\repository\org\apache\cxf\cxf-rt-core\2.0.4-incubator-SNAPSHOT\cxf-rt-core-2.0.4-incubator-SNAPSHOT.jar;C:\Documents and Settings\djwilli\.m2\repository\org\apache\ws\commons\schema\XmlSchema\1.3.2\XmlSchema-1.3.2.jar;C:\Documents and Settings\djwilli\.m2\repository\org\apache\cxf\cxf-common-schemas\2.0.4-incubator-SNAPSHOT\cxf-common-schemas-2.0.4-incubator-SNAPSHOT.jar;C:\Documents and Settings\djwilli\.m2\repository\org\apache\cxf\cxf-rt-databinding-jaxb\2.0.4-incubator-SNAPSHOT\cxf-rt-databinding-jaxb-2.0.4-incubator-SNAPSHOT.jar;C:\Documents and Settings\djwilli\.m2\repository\org\apache\geronimo\specs\geronimo-stax-api_1.0_spec\1.0\geronimo-stax-api_1.0_spec-1.0.jar;C:\Documents and Settings\djwilli\.m2\repository\org\springframework\spring-core\2.0.6\spring-core-2.0.6.jar;C:\Documents and Settings\djwilli\.m2\repository\org\mortbay\jetty\jetty\6.1.6\jetty-6.1.6.jar;C:\Documents and Settings\djwilli\.m2\repository\org\apache\cxf\cxf-common-utilities\2.0.4-incubator-SNAPSHOT\cxf-common-utilities-2.0.4-incubator-SNAPSHOT.jar;C:\Documents and Settings\djwilli\.m2\repository\org\apache\cxf\cxf-rt-transports-http-jetty\2.0.4-incubator-SNAPSHOT\cxf-rt-transports-http-jetty-2.0.4-incubator-SNAPSHOT.jar;C:\Documents and Settings\djwilli\.m2\repository\org\apache\cxf\cxf-api\2.0.4-incubator-SNAPSHOT\cxf-api-2.0.4-incubator-SNAPSHOT.jar;C:\Documents and Settings\djwilli\.m2\repository\org\apache\cxf\cxf-rt-bindings-xml\2.0.4-incubator-SNAPSHOT\cxf-rt-bindings-xml-2.0.4-incubator-SNAPSHOT.jar;C:\Program Files\JetBrains\IntelliJ IDEA 7.0.2\lib\idea_rt.jar" com.bea.albpm.papiwebservice.PapiWebServiceClient http://djwilli-2:8585/papiws/PapiWebServiceEndpoint?wsdl
Connected to the target VM, address: '127.0.0.1:1470', transport: 'socket'
Jan 10, 2008 11:28:39 PM org.springframework.context.support.AbstractApplicationContext prepareRefresh
INFO: Refreshing org.apache.cxf.bus.spring.BusApplicationContext@5e55ab: display name [org.apache.cxf.bus.spring.BusApplicationContext@5e55ab]; startup date [Thu Jan 10 23:28:39 CST 2008]; root of context hierarchy
Jan 10, 2008 11:28:39 PM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
INFO: Loading XML bean definitions from class path resource [META-INF/cxf/cxf.xml]
Jan 10, 2008 11:28:40 PM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
INFO: Loading XML bean definitions from class path resource [META-INF/cxf/cxf-extension-http.xml]
Jan 10, 2008 11:28:40 PM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
INFO: Loading XML bean definitions from class path resource [META-INF/cxf/cxf-extension-soap.xml]
Jan 10, 2008 11:28:40 PM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
INFO: Loading XML bean definitions from class path resource [META-INF/cxf/cxf-extension-jaxws.xml]
Jan 10, 2008 11:28:41 PM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
INFO: Loading XML bean definitions from class path resource [META-INF/cxf/cxf-extension-http-jetty.xml]
Jan 10, 2008 11:28:41 PM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
INFO: Loading XML bean definitions from class path resource [META-INF/cxf/cxf-extension-http.xml]
Jan 10, 2008 11:28:41 PM org.springframework.beans.factory.support.DefaultListableBeanFactory registerBeanDefinition
INFO: Overriding bean definition for bean 'org.apache.cxf.transport.http.ClientOnlyHTTPTransportFactory': replacing [Root bean: class [org.apache.cxf.transport.http.ClientOnlyHTTPTransportFactory]; scope=singleton; abstract=false; lazyInit=true; autowireCandidate=true; autowireMode=0; dependencyCheck=0; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in class path resource [META-INF/cxf/cxf-extension-http.xml]] with [Root bean: class [org.apache.cxf.transport.http.ClientOnlyHTTPTransportFactory]; scope=singleton; abstract=false; lazyInit=true; autowireCandidate=true; autowireMode=0; dependencyCheck=0; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in class path resource [META-INF/cxf/cxf-extension-http.xml]]
Jan 10, 2008 11:28:41 PM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
INFO: Loading XML bean definitions from class path resource [META-INF/cxf/cxf-extension-xml.xml]
Jan 10, 2008 11:28:42 PM org.springframework.context.support.AbstractApplicationContext obtainFreshBeanFactory
INFO: Bean factory for application context [org.apache.cxf.bus.spring.BusApplicationContext@5e55ab]: org.springframework.beans.factory.support.DefaultListableBeanFactory@6458a6
Jan 10, 2008 11:28:42 PM org.springframework.context.support.AbstractApplicationContext$BeanPostProcessorChecker postProcessAfterInitialization
INFO: Bean 'org.apache.cxf.bus.spring.Jsr250BeanPostProcessor' is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
Jan 10, 2008 11:28:42 PM org.springframework.context.support.AbstractApplicationContext$BeanPostProcessorChecker postProcessAfterInitialization
INFO: Bean 'org.apache.cxf.bus.spring.BusExtensionPostProcessor' is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
Jan 10, 2008 11:28:42 PM org.springframework.beans.factory.support.DefaultListableBeanFactory preInstantiateSingletons
INFO: Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@6458a6: defining beans [cxf,org.apache.cxf.bus.spring.Jsr250BeanPostProcessor,org.apache.cxf.bus.spring.BusExtensionPostProcessor,org.apache.cxf.resource.ResourceManager,org.apache.cxf.configuration.Configurer,org.apache.cxf.binding.BindingFactoryManager,org.apache.cxf.transport.DestinationFactoryManager,org.apache.cxf.transport.ConduitInitiatorManager,org.apache.cxf.wsdl.WSDLManager,org.apache.cxf.phase.PhaseManager,org.apache.cxf.workqueue.WorkQueueManager,org.apache.cxf.buslifecycle.BusLifeCycleManager,org.apache.cxf.endpoint.ServerRegistry,org.apache.cxf.endpoint.ServerLifeCycleManager,org.apache.cxf.endpoint.ClientLifeCycleManager,org.apache.cxf.transports.http.QueryHandlerRegistry,org.apache.cxf.endpoint.EndpointResolverRegistry,org.apache.cxf.headers.HeaderManager,org.apache.cxf.catalog.OASISCatalogManager,org.apache.cxf.endpoint.ServiceContractResolverRegistry,org.apache.cxf.transport.http.policy.HTTPClientAssertionBuilder,org.apache.cxf.transport.http.policy.HTTPServerAssertionBuilder,org.apache.cxf.transport.http.ClientOnlyHTTPTransportFactory,org.apache.cxf.binding.soap.SoapBindingFactory,org.apache.cxf.binding.soap.SoapTransportFactory,org.apache.cxf.binding.soap.customEditorConfigurer,org.apache.cxf.jaxws.context.WebServiceContextResourceResolver,org.apache.cxf.transport.http.policy.HTTPClientAssertionBuilder#1,org.apache.cxf.transport.http.policy.HTTPServerAssertionBuilder#1,org.apache.cxf.transport.http_jetty.JettyHTTPTransportFactory,org.apache.cxf.binding.xml.XMLBindingFactory]; root of factory hierarchy
Exception in thread "main" java.lang.RuntimeException: org.apache.ws.commons.schema.constants.Enum$EnumValueException: Bad Enumeration value 'extension restriction'
	at org.apache.ws.commons.schema.SchemaBuilder.resolveXmlSchema(SchemaBuilder.java:1886)
	at org.apache.ws.commons.schema.SchemaBuilder.resolveXmlSchema(SchemaBuilder.java:1902)
	at org.apache.ws.commons.schema.SchemaBuilder.handleImport(SchemaBuilder.java:1627)
	at org.apache.ws.commons.schema.SchemaBuilder.handleXmlSchemaElement(SchemaBuilder.java:175)
	at org.apache.ws.commons.schema.XmlSchemaCollection.read(XmlSchemaCollection.java:364)
	at org.apache.cxf.common.xmlschema.SchemaCollection.read(SchemaCollection.java:110)
	at org.apache.cxf.wsdl11.SchemaUtil.extractSchema(SchemaUtil.java:103)
	at org.apache.cxf.wsdl11.SchemaUtil.getSchemas(SchemaUtil.java:63)
	at org.apache.cxf.wsdl11.WSDLServiceBuilder.getSchemas(WSDLServiceBuilder.java:263)
	at org.apache.cxf.wsdl11.WSDLServiceBuilder.buildServices(WSDLServiceBuilder.java:238)
	at org.apache.cxf.wsdl11.WSDLServiceBuilder.buildServices(WSDLServiceBuilder.java:150)
	at org.apache.cxf.wsdl11.WSDLServiceFactory.create(WSDLServiceFactory.java:117)
	at org.apache.cxf.jaxws.ServiceImpl.initializePorts(ServiceImpl.java:136)
	at org.apache.cxf.jaxws.ServiceImpl.<init>(ServiceImpl.java:127)
	at org.apache.cxf.jaxws.spi.ProviderImpl.createServiceDelegate(ProviderImpl.java:55)
	at javax.xml.ws.Service.<init>(Service.java:57)
	at com.bea.albpm.papiwebservice.PapiWebService_Service.<init>(PapiWebService_Service.java:53)
	at com.bea.albpm.papiwebservice.PapiWebServiceClient.main(PapiWebServiceClient.java:64)
Caused by: org.apache.ws.commons.schema.constants.Enum$EnumValueException: Bad Enumeration value 'extension restriction'
	at org.apache.ws.commons.schema.constants.Enum.setValue(Enum.java:49)
	at org.apache.ws.commons.schema.constants.Enum.<init>(Enum.java:27)
	at org.apache.ws.commons.schema.XmlSchemaDerivationMethod.<init>(XmlSchemaDerivationMethod.java:46)
	at org.apache.ws.commons.schema.SchemaBuilder.handleComplexType(SchemaBuilder.java:657)
	at org.apache.ws.commons.schema.SchemaBuilder.handleXmlSchemaElement(SchemaBuilder.java:157)
	at org.apache.ws.commons.schema.SchemaBuilder.build(SchemaBuilder.java:82)
	at org.apache.ws.commons.schema.XmlSchemaCollection.read(XmlSchemaCollection.java:359)
	at org.apache.ws.commons.schema.XmlSchemaCollection.read(XmlSchemaCollection.java:304)
	at org.apache.ws.commons.schema.SchemaBuilder.resolveXmlSchema(SchemaBuilder.java:1884)
	... 17 more
Disconnected from the target VM, address: '127.0.0.1:1470', transport: 'socket'

Process finished with exit code 1


  was:
I am getting this error when running the main method of the client created by wsdl2java.  Wsdl does have a schema import.

"C:\Program Files\Java\jdk1.5.0_11\bin\java" -Xdebug -Xrunjdwp:transport=dt_socket,address=127.0.0.1:1470,suspend=y,server=n -Dfile.encoding=windows-1252 -classpath "C:\Program Files\Java\jdk1.5.0_11\jre\lib\charsets.jar;C:\Program Files\Java\jdk1.5.0_11\jre\lib\deploy.jar;C:\Program Files\Java\jdk1.5.0_11\jre\lib\javaws.jar;C:\Program Files\Java\jdk1.5.0_11\jre\lib\jce.jar;C:\Program Files\Java\jdk1.5.0_11\jre\lib\jsse.jar;C:\Program Files\Java\jdk1.5.0_11\jre\lib\plugin.jar;C:\Program Files\Java\jdk1.5.0_11\jre\lib\rt.jar;C:\Program Files\Java\jdk1.5.0_11\jre\lib\ext\dnsns.jar;C:\Program Files\Java\jdk1.5.0_11\jre\lib\ext\localedata.jar;C:\Program Files\Java\jdk1.5.0_11\jre\lib\ext\sunjce_provider.jar;C:\Program Files\Java\jdk1.5.0_11\jre\lib\ext\sunpkcs11.jar;C:\Development\BpmCxfClient\target\classes;C:\Documents and Settings\djwilli\.m2\repository\javax\xml\ws\jaxws-api\2.0\jaxws-api-2.0.jar;C:\Documents and Settings\djwilli\.m2\repository\aopalliance\aopalliance\1.0\aopalliance-1.0.jar;C:\Documents and Settings\djwilli\.m2\repository\org\codehaus\woodstox\wstx-asl\3.2.1\wstx-asl-3.2.1.jar;C:\Documents and Settings\djwilli\.m2\repository\org\apache\geronimo\specs\geronimo-javamail_1.4_spec\1.0-M1\geronimo-javamail_1.4_spec-1.0-M1.jar;C:\Documents and Settings\djwilli\.m2\repository\org\apache\neethi\neethi\2.0.2\neethi-2.0.2.jar;C:\Documents and Settings\djwilli\.m2\repository\javax\xml\bind\jaxb-api\2.0\jaxb-api-2.0.jar;C:\Documents and Settings\djwilli\.m2\repository\org\slf4j\slf4j-jdk14\1.3.1\slf4j-jdk14-1.3.1.jar;C:\Documents and Settings\djwilli\.m2\repository\org\apache\geronimo\specs\geronimo-servlet_2.5_spec\1.1-M1\geronimo-servlet_2.5_spec-1.1-M1.jar;C:\Documents and Settings\djwilli\.m2\repository\velocity\velocity-dep\1.4\velocity-dep-1.4.jar;C:\Documents and Settings\djwilli\.m2\repository\commons-logging\commons-logging\1.1\commons-logging-1.1.jar;C:\Documents and Settings\djwilli\.m2\repository\javax\xml\soap\saaj-api\1.3\saaj-api-1.3.jar;C:\Documents and Settings\djwilli\.m2\repository\org\apache\geronimo\specs\geronimo-activation_1.1_spec\1.0-M1\geronimo-activation_1.1_spec-1.0-M1.jar;C:\Documents and Settings\djwilli\.m2\repository\velocity\velocity\1.4\velocity-1.4.jar;C:\Documents and Settings\djwilli\.m2\repository\org\slf4j\slf4j-api\1.3.1\slf4j-api-1.3.1.jar;C:\Documents and Settings\djwilli\.m2\repository\wsdl4j\wsdl4j\1.6.1\wsdl4j-1.6.1.jar;C:\Documents and Settings\djwilli\.m2\repository\com\sun\xml\messaging\saaj\saaj-impl\1.3\saaj-impl-1.3.jar;C:\Documents and Settings\djwilli\.m2\repository\org\apache\geronimo\specs\geronimo-annotation_1.0_spec\1.1\geronimo-annotation_1.0_spec-1.1.jar;C:\Documents and Settings\djwilli\.m2\repository\commons-lang\commons-lang\2.1\commons-lang-2.1.jar;C:\Documents and Settings\djwilli\.m2\repository\com\sun\xml\bind\jaxb-xjc\2.0\jaxb-xjc-2.0.jar;C:\Documents and Settings\djwilli\.m2\repository\xml-resolver\xml-resolver\1.2\xml-resolver-1.2.jar;C:\Documents and Settings\djwilli\.m2\repository\org\apache\geronimo\specs\geronimo-ws-metadata_2.0_spec\1.1.1\geronimo-ws-metadata_2.0_spec-1.1.1.jar;C:\Documents and Settings\djwilli\.m2\repository\com\sun\xml\bind\jaxb-impl\2.0.5\jaxb-impl-2.0.5.jar;C:\Documents and Settings\djwilli\.m2\repository\org\springframework\spring-beans\2.0.6\spring-beans-2.0.6.jar;C:\Documents and Settings\djwilli\.m2\repository\org\apache\cxf\cxf-rt-transports-http\2.0.4-incubator-SNAPSHOT\cxf-rt-transports-http-2.0.4-incubator-SNAPSHOT.jar;C:\Documents and Settings\djwilli\.m2\repository\org\mortbay\jetty\jetty-util\6.1.6\jetty-util-6.1.6.jar;C:\Documents and Settings\djwilli\.m2\repository\org\apache\cxf\cxf-tools-common\2.0.4-incubator-SNAPSHOT\cxf-tools-common-2.0.4-incubator-SNAPSHOT.jar;C:\Documents and Settings\djwilli\.m2\repository\org\apache\cxf\cxf-rt-frontend-simple\2.0.4-incubator-SNAPSHOT\cxf-rt-frontend-simple-2.0.4-incubator-SNAPSHOT.jar;C:\Documents and Settings\djwilli\.m2\repository\org\apache\cxf\cxf-rt-bindings-soap\2.0.4-incubator-SNAPSHOT\cxf-rt-bindings-soap-2.0.4-incubator-SNAPSHOT.jar;C:\Documents and Settings\djwilli\.m2\repository\org\springframework\spring-context\2.0.6\spring-context-2.0.6.jar;C:\Documents and Settings\djwilli\.m2\repository\org\springframework\spring-web\2.0.6\spring-web-2.0.6.jar;C:\Documents and Settings\djwilli\.m2\repository\org\apache\cxf\cxf-rt-frontend-jaxws\2.0.4-incubator-SNAPSHOT\cxf-rt-frontend-jaxws-2.0.4-incubator-SNAPSHOT.jar;C:\Documents and Settings\djwilli\.m2\repository\org\apache\cxf\cxf-rt-core\2.0.4-incubator-SNAPSHOT\cxf-rt-core-2.0.4-incubator-SNAPSHOT.jar;C:\Documents and Settings\djwilli\.m2\repository\org\apache\ws\commons\schema\XmlSchema\1.3.2\XmlSchema-1.3.2.jar;C:\Documents and Settings\djwilli\.m2\repository\org\apache\cxf\cxf-common-schemas\2.0.4-incubator-SNAPSHOT\cxf-common-schemas-2.0.4-incubator-SNAPSHOT.jar;C:\Documents and Settings\djwilli\.m2\repository\org\apache\cxf\cxf-rt-databinding-jaxb\2.0.4-incubator-SNAPSHOT\cxf-rt-databinding-jaxb-2.0.4-incubator-SNAPSHOT.jar;C:\Documents and Settings\djwilli\.m2\repository\org\apache\geronimo\specs\geronimo-stax-api_1.0_spec\1.0\geronimo-stax-api_1.0_spec-1.0.jar;C:\Documents and Settings\djwilli\.m2\repository\org\springframework\spring-core\2.0.6\spring-core-2.0.6.jar;C:\Documents and Settings\djwilli\.m2\repository\org\mortbay\jetty\jetty\6.1.6\jetty-6.1.6.jar;C:\Documents and Settings\djwilli\.m2\repository\org\apache\cxf\cxf-common-utilities\2.0.4-incubator-SNAPSHOT\cxf-common-utilities-2.0.4-incubator-SNAPSHOT.jar;C:\Documents and Settings\djwilli\.m2\repository\org\apache\cxf\cxf-rt-transports-http-jetty\2.0.4-incubator-SNAPSHOT\cxf-rt-transports-http-jetty-2.0.4-incubator-SNAPSHOT.jar;C:\Documents and Settings\djwilli\.m2\repository\org\apache\cxf\cxf-api\2.0.4-incubator-SNAPSHOT\cxf-api-2.0.4-incubator-SNAPSHOT.jar;C:\Documents and Settings\djwilli\.m2\repository\org\apache\cxf\cxf-rt-bindings-xml\2.0.4-incubator-SNAPSHOT\cxf-rt-bindings-xml-2.0.4-incubator-SNAPSHOT.jar;C:\Program Files\JetBrains\IntelliJ IDEA 7.0.2\lib\idea_rt.jar" com.bea.albpm.papiwebservice.PapiWebServiceClient http://djwilli-2:8585/papiws/PapiWebServiceEndpoint?wsdl
Connected to the target VM, address: '127.0.0.1:1470', transport: 'socket'
Jan 10, 2008 11:28:39 PM org.springframework.context.support.AbstractApplicationContext prepareRefresh
INFO: Refreshing org.apache.cxf.bus.spring.BusApplicationContext@5e55ab: display name [org.apache.cxf.bus.spring.BusApplicationContext@5e55ab]; startup date [Thu Jan 10 23:28:39 CST 2008]; root of context hierarchy
Jan 10, 2008 11:28:39 PM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
INFO: Loading XML bean definitions from class path resource [META-INF/cxf/cxf.xml]
Jan 10, 2008 11:28:40 PM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
INFO: Loading XML bean definitions from class path resource [META-INF/cxf/cxf-extension-http.xml]
Jan 10, 2008 11:28:40 PM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
INFO: Loading XML bean definitions from class path resource [META-INF/cxf/cxf-extension-soap.xml]
Jan 10, 2008 11:28:40 PM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
INFO: Loading XML bean definitions from class path resource [META-INF/cxf/cxf-extension-jaxws.xml]
Jan 10, 2008 11:28:41 PM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
INFO: Loading XML bean definitions from class path resource [META-INF/cxf/cxf-extension-http-jetty.xml]
Jan 10, 2008 11:28:41 PM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
INFO: Loading XML bean definitions from class path resource [META-INF/cxf/cxf-extension-http.xml]
Jan 10, 2008 11:28:41 PM org.springframework.beans.factory.support.DefaultListableBeanFactory registerBeanDefinition
INFO: Overriding bean definition for bean 'org.apache.cxf.transport.http.ClientOnlyHTTPTransportFactory': replacing [Root bean: class [org.apache.cxf.transport.http.ClientOnlyHTTPTransportFactory]; scope=singleton; abstract=false; lazyInit=true; autowireCandidate=true; autowireMode=0; dependencyCheck=0; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in class path resource [META-INF/cxf/cxf-extension-http.xml]] with [Root bean: class [org.apache.cxf.transport.http.ClientOnlyHTTPTransportFactory]; scope=singleton; abstract=false; lazyInit=true; autowireCandidate=true; autowireMode=0; dependencyCheck=0; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in class path resource [META-INF/cxf/cxf-extension-http.xml]]
Jan 10, 2008 11:28:41 PM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
INFO: Loading XML bean definitions from class path resource [META-INF/cxf/cxf-extension-xml.xml]
Jan 10, 2008 11:28:42 PM org.springframework.context.support.AbstractApplicationContext obtainFreshBeanFactory
INFO: Bean factory for application context [org.apache.cxf.bus.spring.BusApplicationContext@5e55ab]: org.springframework.beans.factory.support.DefaultListableBeanFactory@6458a6
Jan 10, 2008 11:28:42 PM org.springframework.context.support.AbstractApplicationContext$BeanPostProcessorChecker postProcessAfterInitialization
INFO: Bean 'org.apache.cxf.bus.spring.Jsr250BeanPostProcessor' is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
Jan 10, 2008 11:28:42 PM org.springframework.context.support.AbstractApplicationContext$BeanPostProcessorChecker postProcessAfterInitialization
INFO: Bean 'org.apache.cxf.bus.spring.BusExtensionPostProcessor' is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
Jan 10, 2008 11:28:42 PM org.springframework.beans.factory.support.DefaultListableBeanFactory preInstantiateSingletons
INFO: Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@6458a6: defining beans [cxf,org.apache.cxf.bus.spring.Jsr250BeanPostProcessor,org.apache.cxf.bus.spring.BusExtensionPostProcessor,org.apache.cxf.resource.ResourceManager,org.apache.cxf.configuration.Configurer,org.apache.cxf.binding.BindingFactoryManager,org.apache.cxf.transport.DestinationFactoryManager,org.apache.cxf.transport.ConduitInitiatorManager,org.apache.cxf.wsdl.WSDLManager,org.apache.cxf.phase.PhaseManager,org.apache.cxf.workqueue.WorkQueueManager,org.apache.cxf.buslifecycle.BusLifeCycleManager,org.apache.cxf.endpoint.ServerRegistry,org.apache.cxf.endpoint.ServerLifeCycleManager,org.apache.cxf.endpoint.ClientLifeCycleManager,org.apache.cxf.transports.http.QueryHandlerRegistry,org.apache.cxf.endpoint.EndpointResolverRegistry,org.apache.cxf.headers.HeaderManager,org.apache.cxf.catalog.OASISCatalogManager,org.apache.cxf.endpoint.ServiceContractResolverRegistry,org.apache.cxf.transport.http.policy.HTTPClientAssertionBuilder,org.apache.cxf.transport.http.policy.HTTPServerAssertionBuilder,org.apache.cxf.transport.http.ClientOnlyHTTPTransportFactory,org.apache.cxf.binding.soap.SoapBindingFactory,org.apache.cxf.binding.soap.SoapTransportFactory,org.apache.cxf.binding.soap.customEditorConfigurer,org.apache.cxf.jaxws.context.WebServiceContextResourceResolver,org.apache.cxf.transport.http.policy.HTTPClientAssertionBuilder#1,org.apache.cxf.transport.http.policy.HTTPServerAssertionBuilder#1,org.apache.cxf.transport.http_jetty.JettyHTTPTransportFactory,org.apache.cxf.binding.xml.XMLBindingFactory]; root of factory hierarchy
Exception in thread "main" java.lang.RuntimeException: org.apache.ws.commons.schema.constants.Enum$EnumValueException: Bad Enumeration value 'extension restriction'
	at org.apache.ws.commons.schema.SchemaBuilder.resolveXmlSchema(SchemaBuilder.java:1886)
	at org.apache.ws.commons.schema.SchemaBuilder.resolveXmlSchema(SchemaBuilder.java:1902)
	at org.apache.ws.commons.schema.SchemaBuilder.handleImport(SchemaBuilder.java:1627)
	at org.apache.ws.commons.schema.SchemaBuilder.handleXmlSchemaElement(SchemaBuilder.java:175)
	at org.apache.ws.commons.schema.XmlSchemaCollection.read(XmlSchemaCollection.java:364)
	at org.apache.cxf.common.xmlschema.SchemaCollection.read(SchemaCollection.java:110)
	at org.apache.cxf.wsdl11.SchemaUtil.extractSchema(SchemaUtil.java:103)
	at org.apache.cxf.wsdl11.SchemaUtil.getSchemas(SchemaUtil.java:63)
	at org.apache.cxf.wsdl11.WSDLServiceBuilder.getSchemas(WSDLServiceBuilder.java:263)
	at org.apache.cxf.wsdl11.WSDLServiceBuilder.buildServices(WSDLServiceBuilder.java:238)
	at org.apache.cxf.wsdl11.WSDLServiceBuilder.buildServices(WSDLServiceBuilder.java:150)
	at org.apache.cxf.wsdl11.WSDLServiceFactory.create(WSDLServiceFactory.java:117)
	at org.apache.cxf.jaxws.ServiceImpl.initializePorts(ServiceImpl.java:136)
	at org.apache.cxf.jaxws.ServiceImpl.<init>(ServiceImpl.java:127)
	at org.apache.cxf.jaxws.spi.ProviderImpl.createServiceDelegate(ProviderImpl.java:55)
	at javax.xml.ws.Service.<init>(Service.java:57)
	at com.bea.albpm.papiwebservice.PapiWebService_Service.<init>(PapiWebService_Service.java:53)
	at com.bea.albpm.papiwebservice.PapiWebServiceClient.main(PapiWebServiceClient.java:64)
Caused by: org.apache.ws.commons.schema.constants.Enum$EnumValueException: Bad Enumeration value 'extension restriction'
	at org.apache.ws.commons.schema.constants.Enum.setValue(Enum.java:49)
	at org.apache.ws.commons.schema.constants.Enum.<init>(Enum.java:27)
	at org.apache.ws.commons.schema.XmlSchemaDerivationMethod.<init>(XmlSchemaDerivationMethod.java:46)
	at org.apache.ws.commons.schema.SchemaBuilder.handleComplexType(SchemaBuilder.java:657)
	at org.apache.ws.commons.schema.SchemaBuilder.handleXmlSchemaElement(SchemaBuilder.java:157)
	at org.apache.ws.commons.schema.SchemaBuilder.build(SchemaBuilder.java:82)
	at org.apache.ws.commons.schema.XmlSchemaCollection.read(XmlSchemaCollection.java:359)
	at org.apache.ws.commons.schema.XmlSchemaCollection.read(XmlSchemaCollection.java:304)
	at org.apache.ws.commons.schema.SchemaBuilder.resolveXmlSchema(SchemaBuilder.java:1884)
	... 17 more
Disconnected from the target VM, address: '127.0.0.1:1470', transport: 'socket'

Process finished with exit code 1



> Error when running client generated by Wsdl2Java tool 'org.apache.ws.commons.schema.constants.Enum$EnumValueException: Bad Enumeration value 'extension restriction''
> ---------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: CXF-1388
>                 URL: https://issues.apache.org/jira/browse/CXF-1388
>             Project: CXF
>          Issue Type: Bug
>    Affects Versions: 2.0.3
>         Environment: Windows XP - Intellij Idea
>            Reporter: D Dub
>            Priority: Blocker
>
> I am getting this error when running the main method of the client created by wsdl2java.  Wsdl does have a schema import.
> I am now getting this when using the wsdl2java tool.
> WSDLToJava Error : java.lang.RuntimeException: org.apache.ws.commons.schema.constants.Enum$EnumValueException: Bad Enumeration value 'extension restriction'
> "C:\Program Files\Java\jdk1.5.0_11\bin\java" -Xdebug -Xrunjdwp:transport=dt_socket,address=127.0.0.1:1470,suspend=y,server=n -Dfile.encoding=windows-1252 -classpath "C:\Program Files\Java\jdk1.5.0_11\jre\lib\charsets.jar;C:\Program Files\Java\jdk1.5.0_11\jre\lib\deploy.jar;C:\Program Files\Java\jdk1.5.0_11\jre\lib\javaws.jar;C:\Program Files\Java\jdk1.5.0_11\jre\lib\jce.jar;C:\Program Files\Java\jdk1.5.0_11\jre\lib\jsse.jar;C:\Program Files\Java\jdk1.5.0_11\jre\lib\plugin.jar;C:\Program Files\Java\jdk1.5.0_11\jre\lib\rt.jar;C:\Program Files\Java\jdk1.5.0_11\jre\lib\ext\dnsns.jar;C:\Program Files\Java\jdk1.5.0_11\jre\lib\ext\localedata.jar;C:\Program Files\Java\jdk1.5.0_11\jre\lib\ext\sunjce_provider.jar;C:\Program Files\Java\jdk1.5.0_11\jre\lib\ext\sunpkcs11.jar;C:\Development\BpmCxfClient\target\classes;C:\Documents and Settings\djwilli\.m2\repository\javax\xml\ws\jaxws-api\2.0\jaxws-api-2.0.jar;C:\Documents and Settings\djwilli\.m2\repository\aopalliance\aopalliance\1.0\aopalliance-1.0.jar;C:\Documents and Settings\djwilli\.m2\repository\org\codehaus\woodstox\wstx-asl\3.2.1\wstx-asl-3.2.1.jar;C:\Documents and Settings\djwilli\.m2\repository\org\apache\geronimo\specs\geronimo-javamail_1.4_spec\1.0-M1\geronimo-javamail_1.4_spec-1.0-M1.jar;C:\Documents and Settings\djwilli\.m2\repository\org\apache\neethi\neethi\2.0.2\neethi-2.0.2.jar;C:\Documents and Settings\djwilli\.m2\repository\javax\xml\bind\jaxb-api\2.0\jaxb-api-2.0.jar;C:\Documents and Settings\djwilli\.m2\repository\org\slf4j\slf4j-jdk14\1.3.1\slf4j-jdk14-1.3.1.jar;C:\Documents and Settings\djwilli\.m2\repository\org\apache\geronimo\specs\geronimo-servlet_2.5_spec\1.1-M1\geronimo-servlet_2.5_spec-1.1-M1.jar;C:\Documents and Settings\djwilli\.m2\repository\velocity\velocity-dep\1.4\velocity-dep-1.4.jar;C:\Documents and Settings\djwilli\.m2\repository\commons-logging\commons-logging\1.1\commons-logging-1.1.jar;C:\Documents and Settings\djwilli\.m2\repository\javax\xml\soap\saaj-api\1.3\saaj-api-1.3.jar;C:\Documents and Settings\djwilli\.m2\repository\org\apache\geronimo\specs\geronimo-activation_1.1_spec\1.0-M1\geronimo-activation_1.1_spec-1.0-M1.jar;C:\Documents and Settings\djwilli\.m2\repository\velocity\velocity\1.4\velocity-1.4.jar;C:\Documents and Settings\djwilli\.m2\repository\org\slf4j\slf4j-api\1.3.1\slf4j-api-1.3.1.jar;C:\Documents and Settings\djwilli\.m2\repository\wsdl4j\wsdl4j\1.6.1\wsdl4j-1.6.1.jar;C:\Documents and Settings\djwilli\.m2\repository\com\sun\xml\messaging\saaj\saaj-impl\1.3\saaj-impl-1.3.jar;C:\Documents and Settings\djwilli\.m2\repository\org\apache\geronimo\specs\geronimo-annotation_1.0_spec\1.1\geronimo-annotation_1.0_spec-1.1.jar;C:\Documents and Settings\djwilli\.m2\repository\commons-lang\commons-lang\2.1\commons-lang-2.1.jar;C:\Documents and Settings\djwilli\.m2\repository\com\sun\xml\bind\jaxb-xjc\2.0\jaxb-xjc-2.0.jar;C:\Documents and Settings\djwilli\.m2\repository\xml-resolver\xml-resolver\1.2\xml-resolver-1.2.jar;C:\Documents and Settings\djwilli\.m2\repository\org\apache\geronimo\specs\geronimo-ws-metadata_2.0_spec\1.1.1\geronimo-ws-metadata_2.0_spec-1.1.1.jar;C:\Documents and Settings\djwilli\.m2\repository\com\sun\xml\bind\jaxb-impl\2.0.5\jaxb-impl-2.0.5.jar;C:\Documents and Settings\djwilli\.m2\repository\org\springframework\spring-beans\2.0.6\spring-beans-2.0.6.jar;C:\Documents and Settings\djwilli\.m2\repository\org\apache\cxf\cxf-rt-transports-http\2.0.4-incubator-SNAPSHOT\cxf-rt-transports-http-2.0.4-incubator-SNAPSHOT.jar;C:\Documents and Settings\djwilli\.m2\repository\org\mortbay\jetty\jetty-util\6.1.6\jetty-util-6.1.6.jar;C:\Documents and Settings\djwilli\.m2\repository\org\apache\cxf\cxf-tools-common\2.0.4-incubator-SNAPSHOT\cxf-tools-common-2.0.4-incubator-SNAPSHOT.jar;C:\Documents and Settings\djwilli\.m2\repository\org\apache\cxf\cxf-rt-frontend-simple\2.0.4-incubator-SNAPSHOT\cxf-rt-frontend-simple-2.0.4-incubator-SNAPSHOT.jar;C:\Documents and Settings\djwilli\.m2\repository\org\apache\cxf\cxf-rt-bindings-soap\2.0.4-incubator-SNAPSHOT\cxf-rt-bindings-soap-2.0.4-incubator-SNAPSHOT.jar;C:\Documents and Settings\djwilli\.m2\repository\org\springframework\spring-context\2.0.6\spring-context-2.0.6.jar;C:\Documents and Settings\djwilli\.m2\repository\org\springframework\spring-web\2.0.6\spring-web-2.0.6.jar;C:\Documents and Settings\djwilli\.m2\repository\org\apache\cxf\cxf-rt-frontend-jaxws\2.0.4-incubator-SNAPSHOT\cxf-rt-frontend-jaxws-2.0.4-incubator-SNAPSHOT.jar;C:\Documents and Settings\djwilli\.m2\repository\org\apache\cxf\cxf-rt-core\2.0.4-incubator-SNAPSHOT\cxf-rt-core-2.0.4-incubator-SNAPSHOT.jar;C:\Documents and Settings\djwilli\.m2\repository\org\apache\ws\commons\schema\XmlSchema\1.3.2\XmlSchema-1.3.2.jar;C:\Documents and Settings\djwilli\.m2\repository\org\apache\cxf\cxf-common-schemas\2.0.4-incubator-SNAPSHOT\cxf-common-schemas-2.0.4-incubator-SNAPSHOT.jar;C:\Documents and Settings\djwilli\.m2\repository\org\apache\cxf\cxf-rt-databinding-jaxb\2.0.4-incubator-SNAPSHOT\cxf-rt-databinding-jaxb-2.0.4-incubator-SNAPSHOT.jar;C:\Documents and Settings\djwilli\.m2\repository\org\apache\geronimo\specs\geronimo-stax-api_1.0_spec\1.0\geronimo-stax-api_1.0_spec-1.0.jar;C:\Documents and Settings\djwilli\.m2\repository\org\springframework\spring-core\2.0.6\spring-core-2.0.6.jar;C:\Documents and Settings\djwilli\.m2\repository\org\mortbay\jetty\jetty\6.1.6\jetty-6.1.6.jar;C:\Documents and Settings\djwilli\.m2\repository\org\apache\cxf\cxf-common-utilities\2.0.4-incubator-SNAPSHOT\cxf-common-utilities-2.0.4-incubator-SNAPSHOT.jar;C:\Documents and Settings\djwilli\.m2\repository\org\apache\cxf\cxf-rt-transports-http-jetty\2.0.4-incubator-SNAPSHOT\cxf-rt-transports-http-jetty-2.0.4-incubator-SNAPSHOT.jar;C:\Documents and Settings\djwilli\.m2\repository\org\apache\cxf\cxf-api\2.0.4-incubator-SNAPSHOT\cxf-api-2.0.4-incubator-SNAPSHOT.jar;C:\Documents and Settings\djwilli\.m2\repository\org\apache\cxf\cxf-rt-bindings-xml\2.0.4-incubator-SNAPSHOT\cxf-rt-bindings-xml-2.0.4-incubator-SNAPSHOT.jar;C:\Program Files\JetBrains\IntelliJ IDEA 7.0.2\lib\idea_rt.jar" com.bea.albpm.papiwebservice.PapiWebServiceClient http://djwilli-2:8585/papiws/PapiWebServiceEndpoint?wsdl
> Connected to the target VM, address: '127.0.0.1:1470', transport: 'socket'
> Jan 10, 2008 11:28:39 PM org.springframework.context.support.AbstractApplicationContext prepareRefresh
> INFO: Refreshing org.apache.cxf.bus.spring.BusApplicationContext@5e55ab: display name [org.apache.cxf.bus.spring.BusApplicationContext@5e55ab]; startup date [Thu Jan 10 23:28:39 CST 2008]; root of context hierarchy
> Jan 10, 2008 11:28:39 PM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
> INFO: Loading XML bean definitions from class path resource [META-INF/cxf/cxf.xml]
> Jan 10, 2008 11:28:40 PM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
> INFO: Loading XML bean definitions from class path resource [META-INF/cxf/cxf-extension-http.xml]
> Jan 10, 2008 11:28:40 PM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
> INFO: Loading XML bean definitions from class path resource [META-INF/cxf/cxf-extension-soap.xml]
> Jan 10, 2008 11:28:40 PM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
> INFO: Loading XML bean definitions from class path resource [META-INF/cxf/cxf-extension-jaxws.xml]
> Jan 10, 2008 11:28:41 PM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
> INFO: Loading XML bean definitions from class path resource [META-INF/cxf/cxf-extension-http-jetty.xml]
> Jan 10, 2008 11:28:41 PM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
> INFO: Loading XML bean definitions from class path resource [META-INF/cxf/cxf-extension-http.xml]
> Jan 10, 2008 11:28:41 PM org.springframework.beans.factory.support.DefaultListableBeanFactory registerBeanDefinition
> INFO: Overriding bean definition for bean 'org.apache.cxf.transport.http.ClientOnlyHTTPTransportFactory': replacing [Root bean: class [org.apache.cxf.transport.http.ClientOnlyHTTPTransportFactory]; scope=singleton; abstract=false; lazyInit=true; autowireCandidate=true; autowireMode=0; dependencyCheck=0; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in class path resource [META-INF/cxf/cxf-extension-http.xml]] with [Root bean: class [org.apache.cxf.transport.http.ClientOnlyHTTPTransportFactory]; scope=singleton; abstract=false; lazyInit=true; autowireCandidate=true; autowireMode=0; dependencyCheck=0; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in class path resource [META-INF/cxf/cxf-extension-http.xml]]
> Jan 10, 2008 11:28:41 PM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
> INFO: Loading XML bean definitions from class path resource [META-INF/cxf/cxf-extension-xml.xml]
> Jan 10, 2008 11:28:42 PM org.springframework.context.support.AbstractApplicationContext obtainFreshBeanFactory
> INFO: Bean factory for application context [org.apache.cxf.bus.spring.BusApplicationContext@5e55ab]: org.springframework.beans.factory.support.DefaultListableBeanFactory@6458a6
> Jan 10, 2008 11:28:42 PM org.springframework.context.support.AbstractApplicationContext$BeanPostProcessorChecker postProcessAfterInitialization
> INFO: Bean 'org.apache.cxf.bus.spring.Jsr250BeanPostProcessor' is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
> Jan 10, 2008 11:28:42 PM org.springframework.context.support.AbstractApplicationContext$BeanPostProcessorChecker postProcessAfterInitialization
> INFO: Bean 'org.apache.cxf.bus.spring.BusExtensionPostProcessor' is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
> Jan 10, 2008 11:28:42 PM org.springframework.beans.factory.support.DefaultListableBeanFactory preInstantiateSingletons
> INFO: Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@6458a6: defining beans [cxf,org.apache.cxf.bus.spring.Jsr250BeanPostProcessor,org.apache.cxf.bus.spring.BusExtensionPostProcessor,org.apache.cxf.resource.ResourceManager,org.apache.cxf.configuration.Configurer,org.apache.cxf.binding.BindingFactoryManager,org.apache.cxf.transport.DestinationFactoryManager,org.apache.cxf.transport.ConduitInitiatorManager,org.apache.cxf.wsdl.WSDLManager,org.apache.cxf.phase.PhaseManager,org.apache.cxf.workqueue.WorkQueueManager,org.apache.cxf.buslifecycle.BusLifeCycleManager,org.apache.cxf.endpoint.ServerRegistry,org.apache.cxf.endpoint.ServerLifeCycleManager,org.apache.cxf.endpoint.ClientLifeCycleManager,org.apache.cxf.transports.http.QueryHandlerRegistry,org.apache.cxf.endpoint.EndpointResolverRegistry,org.apache.cxf.headers.HeaderManager,org.apache.cxf.catalog.OASISCatalogManager,org.apache.cxf.endpoint.ServiceContractResolverRegistry,org.apache.cxf.transport.http.policy.HTTPClientAssertionBuilder,org.apache.cxf.transport.http.policy.HTTPServerAssertionBuilder,org.apache.cxf.transport.http.ClientOnlyHTTPTransportFactory,org.apache.cxf.binding.soap.SoapBindingFactory,org.apache.cxf.binding.soap.SoapTransportFactory,org.apache.cxf.binding.soap.customEditorConfigurer,org.apache.cxf.jaxws.context.WebServiceContextResourceResolver,org.apache.cxf.transport.http.policy.HTTPClientAssertionBuilder#1,org.apache.cxf.transport.http.policy.HTTPServerAssertionBuilder#1,org.apache.cxf.transport.http_jetty.JettyHTTPTransportFactory,org.apache.cxf.binding.xml.XMLBindingFactory]; root of factory hierarchy
> Exception in thread "main" java.lang.RuntimeException: org.apache.ws.commons.schema.constants.Enum$EnumValueException: Bad Enumeration value 'extension restriction'
> 	at org.apache.ws.commons.schema.SchemaBuilder.resolveXmlSchema(SchemaBuilder.java:1886)
> 	at org.apache.ws.commons.schema.SchemaBuilder.resolveXmlSchema(SchemaBuilder.java:1902)
> 	at org.apache.ws.commons.schema.SchemaBuilder.handleImport(SchemaBuilder.java:1627)
> 	at org.apache.ws.commons.schema.SchemaBuilder.handleXmlSchemaElement(SchemaBuilder.java:175)
> 	at org.apache.ws.commons.schema.XmlSchemaCollection.read(XmlSchemaCollection.java:364)
> 	at org.apache.cxf.common.xmlschema.SchemaCollection.read(SchemaCollection.java:110)
> 	at org.apache.cxf.wsdl11.SchemaUtil.extractSchema(SchemaUtil.java:103)
> 	at org.apache.cxf.wsdl11.SchemaUtil.getSchemas(SchemaUtil.java:63)
> 	at org.apache.cxf.wsdl11.WSDLServiceBuilder.getSchemas(WSDLServiceBuilder.java:263)
> 	at org.apache.cxf.wsdl11.WSDLServiceBuilder.buildServices(WSDLServiceBuilder.java:238)
> 	at org.apache.cxf.wsdl11.WSDLServiceBuilder.buildServices(WSDLServiceBuilder.java:150)
> 	at org.apache.cxf.wsdl11.WSDLServiceFactory.create(WSDLServiceFactory.java:117)
> 	at org.apache.cxf.jaxws.ServiceImpl.initializePorts(ServiceImpl.java:136)
> 	at org.apache.cxf.jaxws.ServiceImpl.<init>(ServiceImpl.java:127)
> 	at org.apache.cxf.jaxws.spi.ProviderImpl.createServiceDelegate(ProviderImpl.java:55)
> 	at javax.xml.ws.Service.<init>(Service.java:57)
> 	at com.bea.albpm.papiwebservice.PapiWebService_Service.<init>(PapiWebService_Service.java:53)
> 	at com.bea.albpm.papiwebservice.PapiWebServiceClient.main(PapiWebServiceClient.java:64)
> Caused by: org.apache.ws.commons.schema.constants.Enum$EnumValueException: Bad Enumeration value 'extension restriction'
> 	at org.apache.ws.commons.schema.constants.Enum.setValue(Enum.java:49)
> 	at org.apache.ws.commons.schema.constants.Enum.<init>(Enum.java:27)
> 	at org.apache.ws.commons.schema.XmlSchemaDerivationMethod.<init>(XmlSchemaDerivationMethod.java:46)
> 	at org.apache.ws.commons.schema.SchemaBuilder.handleComplexType(SchemaBuilder.java:657)
> 	at org.apache.ws.commons.schema.SchemaBuilder.handleXmlSchemaElement(SchemaBuilder.java:157)
> 	at org.apache.ws.commons.schema.SchemaBuilder.build(SchemaBuilder.java:82)
> 	at org.apache.ws.commons.schema.XmlSchemaCollection.read(XmlSchemaCollection.java:359)
> 	at org.apache.ws.commons.schema.XmlSchemaCollection.read(XmlSchemaCollection.java:304)
> 	at org.apache.ws.commons.schema.SchemaBuilder.resolveXmlSchema(SchemaBuilder.java:1884)
> 	... 17 more
> Disconnected from the target VM, address: '127.0.0.1:1470', transport: 'socket'
> Process finished with exit code 1

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (CXF-1388) Error when running client generated by Wsdl2Java tool 'org.apache.ws.commons.schema.constants.Enum$EnumValueException: Bad Enumeration value 'extension restriction''

Posted by "Daniel Kulp (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CXF-1388?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Daniel Kulp resolved CXF-1388.
------------------------------

       Resolution: Fixed
    Fix Version/s: 2.0.6
                   2.1
         Assignee: Daniel Kulp

> Error when running client generated by Wsdl2Java tool 'org.apache.ws.commons.schema.constants.Enum$EnumValueException: Bad Enumeration value 'extension restriction''
> ---------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: CXF-1388
>                 URL: https://issues.apache.org/jira/browse/CXF-1388
>             Project: CXF
>          Issue Type: Bug
>    Affects Versions: 2.0.3
>         Environment: Windows XP - Intellij Idea
>            Reporter: D Dub
>            Assignee: Daniel Kulp
>            Priority: Blocker
>             Fix For: 2.1, 2.0.6
>
>         Attachments: java_first_jaxws_bug.zip
>
>
> I am getting this error when running the main method of the client created by wsdl2java.  Wsdl does have a schema import.
> I am now getting this when using the wsdl2java tool.
> WSDLToJava Error : java.lang.RuntimeException: org.apache.ws.commons.schema.constants.Enum$EnumValueException: Bad Enumeration value 'extension restriction'
> "C:\Program Files\Java\jdk1.5.0_11\bin\java" -Xdebug -Xrunjdwp:transport=dt_socket,address=127.0.0.1:1470,suspend=y,server=n -Dfile.encoding=windows-1252 -classpath "C:\Program Files\Java\jdk1.5.0_11\jre\lib\charsets.jar;C:\Program Files\Java\jdk1.5.0_11\jre\lib\deploy.jar;C:\Program Files\Java\jdk1.5.0_11\jre\lib\javaws.jar;C:\Program Files\Java\jdk1.5.0_11\jre\lib\jce.jar;C:\Program Files\Java\jdk1.5.0_11\jre\lib\jsse.jar;C:\Program Files\Java\jdk1.5.0_11\jre\lib\plugin.jar;C:\Program Files\Java\jdk1.5.0_11\jre\lib\rt.jar;C:\Program Files\Java\jdk1.5.0_11\jre\lib\ext\dnsns.jar;C:\Program Files\Java\jdk1.5.0_11\jre\lib\ext\localedata.jar;C:\Program Files\Java\jdk1.5.0_11\jre\lib\ext\sunjce_provider.jar;C:\Program Files\Java\jdk1.5.0_11\jre\lib\ext\sunpkcs11.jar;C:\Development\BpmCxfClient\target\classes;C:\Documents and Settings\djwilli\.m2\repository\javax\xml\ws\jaxws-api\2.0\jaxws-api-2.0.jar;C:\Documents and Settings\djwilli\.m2\repository\aopalliance\aopalliance\1.0\aopalliance-1.0.jar;C:\Documents and Settings\djwilli\.m2\repository\org\codehaus\woodstox\wstx-asl\3.2.1\wstx-asl-3.2.1.jar;C:\Documents and Settings\djwilli\.m2\repository\org\apache\geronimo\specs\geronimo-javamail_1.4_spec\1.0-M1\geronimo-javamail_1.4_spec-1.0-M1.jar;C:\Documents and Settings\djwilli\.m2\repository\org\apache\neethi\neethi\2.0.2\neethi-2.0.2.jar;C:\Documents and Settings\djwilli\.m2\repository\javax\xml\bind\jaxb-api\2.0\jaxb-api-2.0.jar;C:\Documents and Settings\djwilli\.m2\repository\org\slf4j\slf4j-jdk14\1.3.1\slf4j-jdk14-1.3.1.jar;C:\Documents and Settings\djwilli\.m2\repository\org\apache\geronimo\specs\geronimo-servlet_2.5_spec\1.1-M1\geronimo-servlet_2.5_spec-1.1-M1.jar;C:\Documents and Settings\djwilli\.m2\repository\velocity\velocity-dep\1.4\velocity-dep-1.4.jar;C:\Documents and Settings\djwilli\.m2\repository\commons-logging\commons-logging\1.1\commons-logging-1.1.jar;C:\Documents and Settings\djwilli\.m2\repository\javax\xml\soap\saaj-api\1.3\saaj-api-1.3.jar;C:\Documents and Settings\djwilli\.m2\repository\org\apache\geronimo\specs\geronimo-activation_1.1_spec\1.0-M1\geronimo-activation_1.1_spec-1.0-M1.jar;C:\Documents and Settings\djwilli\.m2\repository\velocity\velocity\1.4\velocity-1.4.jar;C:\Documents and Settings\djwilli\.m2\repository\org\slf4j\slf4j-api\1.3.1\slf4j-api-1.3.1.jar;C:\Documents and Settings\djwilli\.m2\repository\wsdl4j\wsdl4j\1.6.1\wsdl4j-1.6.1.jar;C:\Documents and Settings\djwilli\.m2\repository\com\sun\xml\messaging\saaj\saaj-impl\1.3\saaj-impl-1.3.jar;C:\Documents and Settings\djwilli\.m2\repository\org\apache\geronimo\specs\geronimo-annotation_1.0_spec\1.1\geronimo-annotation_1.0_spec-1.1.jar;C:\Documents and Settings\djwilli\.m2\repository\commons-lang\commons-lang\2.1\commons-lang-2.1.jar;C:\Documents and Settings\djwilli\.m2\repository\com\sun\xml\bind\jaxb-xjc\2.0\jaxb-xjc-2.0.jar;C:\Documents and Settings\djwilli\.m2\repository\xml-resolver\xml-resolver\1.2\xml-resolver-1.2.jar;C:\Documents and Settings\djwilli\.m2\repository\org\apache\geronimo\specs\geronimo-ws-metadata_2.0_spec\1.1.1\geronimo-ws-metadata_2.0_spec-1.1.1.jar;C:\Documents and Settings\djwilli\.m2\repository\com\sun\xml\bind\jaxb-impl\2.0.5\jaxb-impl-2.0.5.jar;C:\Documents and Settings\djwilli\.m2\repository\org\springframework\spring-beans\2.0.6\spring-beans-2.0.6.jar;C:\Documents and Settings\djwilli\.m2\repository\org\apache\cxf\cxf-rt-transports-http\2.0.4-incubator-SNAPSHOT\cxf-rt-transports-http-2.0.4-incubator-SNAPSHOT.jar;C:\Documents and Settings\djwilli\.m2\repository\org\mortbay\jetty\jetty-util\6.1.6\jetty-util-6.1.6.jar;C:\Documents and Settings\djwilli\.m2\repository\org\apache\cxf\cxf-tools-common\2.0.4-incubator-SNAPSHOT\cxf-tools-common-2.0.4-incubator-SNAPSHOT.jar;C:\Documents and Settings\djwilli\.m2\repository\org\apache\cxf\cxf-rt-frontend-simple\2.0.4-incubator-SNAPSHOT\cxf-rt-frontend-simple-2.0.4-incubator-SNAPSHOT.jar;C:\Documents and Settings\djwilli\.m2\repository\org\apache\cxf\cxf-rt-bindings-soap\2.0.4-incubator-SNAPSHOT\cxf-rt-bindings-soap-2.0.4-incubator-SNAPSHOT.jar;C:\Documents and Settings\djwilli\.m2\repository\org\springframework\spring-context\2.0.6\spring-context-2.0.6.jar;C:\Documents and Settings\djwilli\.m2\repository\org\springframework\spring-web\2.0.6\spring-web-2.0.6.jar;C:\Documents and Settings\djwilli\.m2\repository\org\apache\cxf\cxf-rt-frontend-jaxws\2.0.4-incubator-SNAPSHOT\cxf-rt-frontend-jaxws-2.0.4-incubator-SNAPSHOT.jar;C:\Documents and Settings\djwilli\.m2\repository\org\apache\cxf\cxf-rt-core\2.0.4-incubator-SNAPSHOT\cxf-rt-core-2.0.4-incubator-SNAPSHOT.jar;C:\Documents and Settings\djwilli\.m2\repository\org\apache\ws\commons\schema\XmlSchema\1.3.2\XmlSchema-1.3.2.jar;C:\Documents and Settings\djwilli\.m2\repository\org\apache\cxf\cxf-common-schemas\2.0.4-incubator-SNAPSHOT\cxf-common-schemas-2.0.4-incubator-SNAPSHOT.jar;C:\Documents and Settings\djwilli\.m2\repository\org\apache\cxf\cxf-rt-databinding-jaxb\2.0.4-incubator-SNAPSHOT\cxf-rt-databinding-jaxb-2.0.4-incubator-SNAPSHOT.jar;C:\Documents and Settings\djwilli\.m2\repository\org\apache\geronimo\specs\geronimo-stax-api_1.0_spec\1.0\geronimo-stax-api_1.0_spec-1.0.jar;C:\Documents and Settings\djwilli\.m2\repository\org\springframework\spring-core\2.0.6\spring-core-2.0.6.jar;C:\Documents and Settings\djwilli\.m2\repository\org\mortbay\jetty\jetty\6.1.6\jetty-6.1.6.jar;C:\Documents and Settings\djwilli\.m2\repository\org\apache\cxf\cxf-common-utilities\2.0.4-incubator-SNAPSHOT\cxf-common-utilities-2.0.4-incubator-SNAPSHOT.jar;C:\Documents and Settings\djwilli\.m2\repository\org\apache\cxf\cxf-rt-transports-http-jetty\2.0.4-incubator-SNAPSHOT\cxf-rt-transports-http-jetty-2.0.4-incubator-SNAPSHOT.jar;C:\Documents and Settings\djwilli\.m2\repository\org\apache\cxf\cxf-api\2.0.4-incubator-SNAPSHOT\cxf-api-2.0.4-incubator-SNAPSHOT.jar;C:\Documents and Settings\djwilli\.m2\repository\org\apache\cxf\cxf-rt-bindings-xml\2.0.4-incubator-SNAPSHOT\cxf-rt-bindings-xml-2.0.4-incubator-SNAPSHOT.jar;C:\Program Files\JetBrains\IntelliJ IDEA 7.0.2\lib\idea_rt.jar" com.bea.albpm.papiwebservice.PapiWebServiceClient http://djwilli-2:8585/papiws/PapiWebServiceEndpoint?wsdl
> Connected to the target VM, address: '127.0.0.1:1470', transport: 'socket'
> Jan 10, 2008 11:28:39 PM org.springframework.context.support.AbstractApplicationContext prepareRefresh
> INFO: Refreshing org.apache.cxf.bus.spring.BusApplicationContext@5e55ab: display name [org.apache.cxf.bus.spring.BusApplicationContext@5e55ab]; startup date [Thu Jan 10 23:28:39 CST 2008]; root of context hierarchy
> Jan 10, 2008 11:28:39 PM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
> INFO: Loading XML bean definitions from class path resource [META-INF/cxf/cxf.xml]
> Jan 10, 2008 11:28:40 PM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
> INFO: Loading XML bean definitions from class path resource [META-INF/cxf/cxf-extension-http.xml]
> Jan 10, 2008 11:28:40 PM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
> INFO: Loading XML bean definitions from class path resource [META-INF/cxf/cxf-extension-soap.xml]
> Jan 10, 2008 11:28:40 PM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
> INFO: Loading XML bean definitions from class path resource [META-INF/cxf/cxf-extension-jaxws.xml]
> Jan 10, 2008 11:28:41 PM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
> INFO: Loading XML bean definitions from class path resource [META-INF/cxf/cxf-extension-http-jetty.xml]
> Jan 10, 2008 11:28:41 PM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
> INFO: Loading XML bean definitions from class path resource [META-INF/cxf/cxf-extension-http.xml]
> Jan 10, 2008 11:28:41 PM org.springframework.beans.factory.support.DefaultListableBeanFactory registerBeanDefinition
> INFO: Overriding bean definition for bean 'org.apache.cxf.transport.http.ClientOnlyHTTPTransportFactory': replacing [Root bean: class [org.apache.cxf.transport.http.ClientOnlyHTTPTransportFactory]; scope=singleton; abstract=false; lazyInit=true; autowireCandidate=true; autowireMode=0; dependencyCheck=0; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in class path resource [META-INF/cxf/cxf-extension-http.xml]] with [Root bean: class [org.apache.cxf.transport.http.ClientOnlyHTTPTransportFactory]; scope=singleton; abstract=false; lazyInit=true; autowireCandidate=true; autowireMode=0; dependencyCheck=0; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in class path resource [META-INF/cxf/cxf-extension-http.xml]]
> Jan 10, 2008 11:28:41 PM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
> INFO: Loading XML bean definitions from class path resource [META-INF/cxf/cxf-extension-xml.xml]
> Jan 10, 2008 11:28:42 PM org.springframework.context.support.AbstractApplicationContext obtainFreshBeanFactory
> INFO: Bean factory for application context [org.apache.cxf.bus.spring.BusApplicationContext@5e55ab]: org.springframework.beans.factory.support.DefaultListableBeanFactory@6458a6
> Jan 10, 2008 11:28:42 PM org.springframework.context.support.AbstractApplicationContext$BeanPostProcessorChecker postProcessAfterInitialization
> INFO: Bean 'org.apache.cxf.bus.spring.Jsr250BeanPostProcessor' is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
> Jan 10, 2008 11:28:42 PM org.springframework.context.support.AbstractApplicationContext$BeanPostProcessorChecker postProcessAfterInitialization
> INFO: Bean 'org.apache.cxf.bus.spring.BusExtensionPostProcessor' is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
> Jan 10, 2008 11:28:42 PM org.springframework.beans.factory.support.DefaultListableBeanFactory preInstantiateSingletons
> INFO: Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@6458a6: defining beans [cxf,org.apache.cxf.bus.spring.Jsr250BeanPostProcessor,org.apache.cxf.bus.spring.BusExtensionPostProcessor,org.apache.cxf.resource.ResourceManager,org.apache.cxf.configuration.Configurer,org.apache.cxf.binding.BindingFactoryManager,org.apache.cxf.transport.DestinationFactoryManager,org.apache.cxf.transport.ConduitInitiatorManager,org.apache.cxf.wsdl.WSDLManager,org.apache.cxf.phase.PhaseManager,org.apache.cxf.workqueue.WorkQueueManager,org.apache.cxf.buslifecycle.BusLifeCycleManager,org.apache.cxf.endpoint.ServerRegistry,org.apache.cxf.endpoint.ServerLifeCycleManager,org.apache.cxf.endpoint.ClientLifeCycleManager,org.apache.cxf.transports.http.QueryHandlerRegistry,org.apache.cxf.endpoint.EndpointResolverRegistry,org.apache.cxf.headers.HeaderManager,org.apache.cxf.catalog.OASISCatalogManager,org.apache.cxf.endpoint.ServiceContractResolverRegistry,org.apache.cxf.transport.http.policy.HTTPClientAssertionBuilder,org.apache.cxf.transport.http.policy.HTTPServerAssertionBuilder,org.apache.cxf.transport.http.ClientOnlyHTTPTransportFactory,org.apache.cxf.binding.soap.SoapBindingFactory,org.apache.cxf.binding.soap.SoapTransportFactory,org.apache.cxf.binding.soap.customEditorConfigurer,org.apache.cxf.jaxws.context.WebServiceContextResourceResolver,org.apache.cxf.transport.http.policy.HTTPClientAssertionBuilder#1,org.apache.cxf.transport.http.policy.HTTPServerAssertionBuilder#1,org.apache.cxf.transport.http_jetty.JettyHTTPTransportFactory,org.apache.cxf.binding.xml.XMLBindingFactory]; root of factory hierarchy
> Exception in thread "main" java.lang.RuntimeException: org.apache.ws.commons.schema.constants.Enum$EnumValueException: Bad Enumeration value 'extension restriction'
> 	at org.apache.ws.commons.schema.SchemaBuilder.resolveXmlSchema(SchemaBuilder.java:1886)
> 	at org.apache.ws.commons.schema.SchemaBuilder.resolveXmlSchema(SchemaBuilder.java:1902)
> 	at org.apache.ws.commons.schema.SchemaBuilder.handleImport(SchemaBuilder.java:1627)
> 	at org.apache.ws.commons.schema.SchemaBuilder.handleXmlSchemaElement(SchemaBuilder.java:175)
> 	at org.apache.ws.commons.schema.XmlSchemaCollection.read(XmlSchemaCollection.java:364)
> 	at org.apache.cxf.common.xmlschema.SchemaCollection.read(SchemaCollection.java:110)
> 	at org.apache.cxf.wsdl11.SchemaUtil.extractSchema(SchemaUtil.java:103)
> 	at org.apache.cxf.wsdl11.SchemaUtil.getSchemas(SchemaUtil.java:63)
> 	at org.apache.cxf.wsdl11.WSDLServiceBuilder.getSchemas(WSDLServiceBuilder.java:263)
> 	at org.apache.cxf.wsdl11.WSDLServiceBuilder.buildServices(WSDLServiceBuilder.java:238)
> 	at org.apache.cxf.wsdl11.WSDLServiceBuilder.buildServices(WSDLServiceBuilder.java:150)
> 	at org.apache.cxf.wsdl11.WSDLServiceFactory.create(WSDLServiceFactory.java:117)
> 	at org.apache.cxf.jaxws.ServiceImpl.initializePorts(ServiceImpl.java:136)
> 	at org.apache.cxf.jaxws.ServiceImpl.<init>(ServiceImpl.java:127)
> 	at org.apache.cxf.jaxws.spi.ProviderImpl.createServiceDelegate(ProviderImpl.java:55)
> 	at javax.xml.ws.Service.<init>(Service.java:57)
> 	at com.bea.albpm.papiwebservice.PapiWebService_Service.<init>(PapiWebService_Service.java:53)
> 	at com.bea.albpm.papiwebservice.PapiWebServiceClient.main(PapiWebServiceClient.java:64)
> Caused by: org.apache.ws.commons.schema.constants.Enum$EnumValueException: Bad Enumeration value 'extension restriction'
> 	at org.apache.ws.commons.schema.constants.Enum.setValue(Enum.java:49)
> 	at org.apache.ws.commons.schema.constants.Enum.<init>(Enum.java:27)
> 	at org.apache.ws.commons.schema.XmlSchemaDerivationMethod.<init>(XmlSchemaDerivationMethod.java:46)
> 	at org.apache.ws.commons.schema.SchemaBuilder.handleComplexType(SchemaBuilder.java:657)
> 	at org.apache.ws.commons.schema.SchemaBuilder.handleXmlSchemaElement(SchemaBuilder.java:157)
> 	at org.apache.ws.commons.schema.SchemaBuilder.build(SchemaBuilder.java:82)
> 	at org.apache.ws.commons.schema.XmlSchemaCollection.read(XmlSchemaCollection.java:359)
> 	at org.apache.ws.commons.schema.XmlSchemaCollection.read(XmlSchemaCollection.java:304)
> 	at org.apache.ws.commons.schema.SchemaBuilder.resolveXmlSchema(SchemaBuilder.java:1884)
> 	... 17 more
> Disconnected from the target VM, address: '127.0.0.1:1470', transport: 'socket'
> Process finished with exit code 1

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (CXF-1388) Error when running client generated by Wsdl2Java tool 'org.apache.ws.commons.schema.constants.Enum$EnumValueException: Bad Enumeration value 'extension restriction''

Posted by "veliko (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CXF-1388?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

veliko updated CXF-1388:
------------------------

    Attachment: java_first_jaxws_bug.zip

If someone is interested to reproduce bug, you can find it in attachment. Unzip content and place in sample directory of Cxf binary installation. 

Then run "ant server" and you should get error.

This example is Java-first scenario, bunch of pojos that form tree structure, and basic send over the wire.

Simple as it can be.

I would be more than glad to hear this is some kind of my mistake.

Regards

Environment:
JDK 1.5, Windows, Ant 1.6.5, Cxf 2.0.3

> Error when running client generated by Wsdl2Java tool 'org.apache.ws.commons.schema.constants.Enum$EnumValueException: Bad Enumeration value 'extension restriction''
> ---------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: CXF-1388
>                 URL: https://issues.apache.org/jira/browse/CXF-1388
>             Project: CXF
>          Issue Type: Bug
>    Affects Versions: 2.0.3
>         Environment: Windows XP - Intellij Idea
>            Reporter: D Dub
>            Priority: Blocker
>         Attachments: java_first_jaxws_bug.zip
>
>
> I am getting this error when running the main method of the client created by wsdl2java.  Wsdl does have a schema import.
> I am now getting this when using the wsdl2java tool.
> WSDLToJava Error : java.lang.RuntimeException: org.apache.ws.commons.schema.constants.Enum$EnumValueException: Bad Enumeration value 'extension restriction'
> "C:\Program Files\Java\jdk1.5.0_11\bin\java" -Xdebug -Xrunjdwp:transport=dt_socket,address=127.0.0.1:1470,suspend=y,server=n -Dfile.encoding=windows-1252 -classpath "C:\Program Files\Java\jdk1.5.0_11\jre\lib\charsets.jar;C:\Program Files\Java\jdk1.5.0_11\jre\lib\deploy.jar;C:\Program Files\Java\jdk1.5.0_11\jre\lib\javaws.jar;C:\Program Files\Java\jdk1.5.0_11\jre\lib\jce.jar;C:\Program Files\Java\jdk1.5.0_11\jre\lib\jsse.jar;C:\Program Files\Java\jdk1.5.0_11\jre\lib\plugin.jar;C:\Program Files\Java\jdk1.5.0_11\jre\lib\rt.jar;C:\Program Files\Java\jdk1.5.0_11\jre\lib\ext\dnsns.jar;C:\Program Files\Java\jdk1.5.0_11\jre\lib\ext\localedata.jar;C:\Program Files\Java\jdk1.5.0_11\jre\lib\ext\sunjce_provider.jar;C:\Program Files\Java\jdk1.5.0_11\jre\lib\ext\sunpkcs11.jar;C:\Development\BpmCxfClient\target\classes;C:\Documents and Settings\djwilli\.m2\repository\javax\xml\ws\jaxws-api\2.0\jaxws-api-2.0.jar;C:\Documents and Settings\djwilli\.m2\repository\aopalliance\aopalliance\1.0\aopalliance-1.0.jar;C:\Documents and Settings\djwilli\.m2\repository\org\codehaus\woodstox\wstx-asl\3.2.1\wstx-asl-3.2.1.jar;C:\Documents and Settings\djwilli\.m2\repository\org\apache\geronimo\specs\geronimo-javamail_1.4_spec\1.0-M1\geronimo-javamail_1.4_spec-1.0-M1.jar;C:\Documents and Settings\djwilli\.m2\repository\org\apache\neethi\neethi\2.0.2\neethi-2.0.2.jar;C:\Documents and Settings\djwilli\.m2\repository\javax\xml\bind\jaxb-api\2.0\jaxb-api-2.0.jar;C:\Documents and Settings\djwilli\.m2\repository\org\slf4j\slf4j-jdk14\1.3.1\slf4j-jdk14-1.3.1.jar;C:\Documents and Settings\djwilli\.m2\repository\org\apache\geronimo\specs\geronimo-servlet_2.5_spec\1.1-M1\geronimo-servlet_2.5_spec-1.1-M1.jar;C:\Documents and Settings\djwilli\.m2\repository\velocity\velocity-dep\1.4\velocity-dep-1.4.jar;C:\Documents and Settings\djwilli\.m2\repository\commons-logging\commons-logging\1.1\commons-logging-1.1.jar;C:\Documents and Settings\djwilli\.m2\repository\javax\xml\soap\saaj-api\1.3\saaj-api-1.3.jar;C:\Documents and Settings\djwilli\.m2\repository\org\apache\geronimo\specs\geronimo-activation_1.1_spec\1.0-M1\geronimo-activation_1.1_spec-1.0-M1.jar;C:\Documents and Settings\djwilli\.m2\repository\velocity\velocity\1.4\velocity-1.4.jar;C:\Documents and Settings\djwilli\.m2\repository\org\slf4j\slf4j-api\1.3.1\slf4j-api-1.3.1.jar;C:\Documents and Settings\djwilli\.m2\repository\wsdl4j\wsdl4j\1.6.1\wsdl4j-1.6.1.jar;C:\Documents and Settings\djwilli\.m2\repository\com\sun\xml\messaging\saaj\saaj-impl\1.3\saaj-impl-1.3.jar;C:\Documents and Settings\djwilli\.m2\repository\org\apache\geronimo\specs\geronimo-annotation_1.0_spec\1.1\geronimo-annotation_1.0_spec-1.1.jar;C:\Documents and Settings\djwilli\.m2\repository\commons-lang\commons-lang\2.1\commons-lang-2.1.jar;C:\Documents and Settings\djwilli\.m2\repository\com\sun\xml\bind\jaxb-xjc\2.0\jaxb-xjc-2.0.jar;C:\Documents and Settings\djwilli\.m2\repository\xml-resolver\xml-resolver\1.2\xml-resolver-1.2.jar;C:\Documents and Settings\djwilli\.m2\repository\org\apache\geronimo\specs\geronimo-ws-metadata_2.0_spec\1.1.1\geronimo-ws-metadata_2.0_spec-1.1.1.jar;C:\Documents and Settings\djwilli\.m2\repository\com\sun\xml\bind\jaxb-impl\2.0.5\jaxb-impl-2.0.5.jar;C:\Documents and Settings\djwilli\.m2\repository\org\springframework\spring-beans\2.0.6\spring-beans-2.0.6.jar;C:\Documents and Settings\djwilli\.m2\repository\org\apache\cxf\cxf-rt-transports-http\2.0.4-incubator-SNAPSHOT\cxf-rt-transports-http-2.0.4-incubator-SNAPSHOT.jar;C:\Documents and Settings\djwilli\.m2\repository\org\mortbay\jetty\jetty-util\6.1.6\jetty-util-6.1.6.jar;C:\Documents and Settings\djwilli\.m2\repository\org\apache\cxf\cxf-tools-common\2.0.4-incubator-SNAPSHOT\cxf-tools-common-2.0.4-incubator-SNAPSHOT.jar;C:\Documents and Settings\djwilli\.m2\repository\org\apache\cxf\cxf-rt-frontend-simple\2.0.4-incubator-SNAPSHOT\cxf-rt-frontend-simple-2.0.4-incubator-SNAPSHOT.jar;C:\Documents and Settings\djwilli\.m2\repository\org\apache\cxf\cxf-rt-bindings-soap\2.0.4-incubator-SNAPSHOT\cxf-rt-bindings-soap-2.0.4-incubator-SNAPSHOT.jar;C:\Documents and Settings\djwilli\.m2\repository\org\springframework\spring-context\2.0.6\spring-context-2.0.6.jar;C:\Documents and Settings\djwilli\.m2\repository\org\springframework\spring-web\2.0.6\spring-web-2.0.6.jar;C:\Documents and Settings\djwilli\.m2\repository\org\apache\cxf\cxf-rt-frontend-jaxws\2.0.4-incubator-SNAPSHOT\cxf-rt-frontend-jaxws-2.0.4-incubator-SNAPSHOT.jar;C:\Documents and Settings\djwilli\.m2\repository\org\apache\cxf\cxf-rt-core\2.0.4-incubator-SNAPSHOT\cxf-rt-core-2.0.4-incubator-SNAPSHOT.jar;C:\Documents and Settings\djwilli\.m2\repository\org\apache\ws\commons\schema\XmlSchema\1.3.2\XmlSchema-1.3.2.jar;C:\Documents and Settings\djwilli\.m2\repository\org\apache\cxf\cxf-common-schemas\2.0.4-incubator-SNAPSHOT\cxf-common-schemas-2.0.4-incubator-SNAPSHOT.jar;C:\Documents and Settings\djwilli\.m2\repository\org\apache\cxf\cxf-rt-databinding-jaxb\2.0.4-incubator-SNAPSHOT\cxf-rt-databinding-jaxb-2.0.4-incubator-SNAPSHOT.jar;C:\Documents and Settings\djwilli\.m2\repository\org\apache\geronimo\specs\geronimo-stax-api_1.0_spec\1.0\geronimo-stax-api_1.0_spec-1.0.jar;C:\Documents and Settings\djwilli\.m2\repository\org\springframework\spring-core\2.0.6\spring-core-2.0.6.jar;C:\Documents and Settings\djwilli\.m2\repository\org\mortbay\jetty\jetty\6.1.6\jetty-6.1.6.jar;C:\Documents and Settings\djwilli\.m2\repository\org\apache\cxf\cxf-common-utilities\2.0.4-incubator-SNAPSHOT\cxf-common-utilities-2.0.4-incubator-SNAPSHOT.jar;C:\Documents and Settings\djwilli\.m2\repository\org\apache\cxf\cxf-rt-transports-http-jetty\2.0.4-incubator-SNAPSHOT\cxf-rt-transports-http-jetty-2.0.4-incubator-SNAPSHOT.jar;C:\Documents and Settings\djwilli\.m2\repository\org\apache\cxf\cxf-api\2.0.4-incubator-SNAPSHOT\cxf-api-2.0.4-incubator-SNAPSHOT.jar;C:\Documents and Settings\djwilli\.m2\repository\org\apache\cxf\cxf-rt-bindings-xml\2.0.4-incubator-SNAPSHOT\cxf-rt-bindings-xml-2.0.4-incubator-SNAPSHOT.jar;C:\Program Files\JetBrains\IntelliJ IDEA 7.0.2\lib\idea_rt.jar" com.bea.albpm.papiwebservice.PapiWebServiceClient http://djwilli-2:8585/papiws/PapiWebServiceEndpoint?wsdl
> Connected to the target VM, address: '127.0.0.1:1470', transport: 'socket'
> Jan 10, 2008 11:28:39 PM org.springframework.context.support.AbstractApplicationContext prepareRefresh
> INFO: Refreshing org.apache.cxf.bus.spring.BusApplicationContext@5e55ab: display name [org.apache.cxf.bus.spring.BusApplicationContext@5e55ab]; startup date [Thu Jan 10 23:28:39 CST 2008]; root of context hierarchy
> Jan 10, 2008 11:28:39 PM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
> INFO: Loading XML bean definitions from class path resource [META-INF/cxf/cxf.xml]
> Jan 10, 2008 11:28:40 PM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
> INFO: Loading XML bean definitions from class path resource [META-INF/cxf/cxf-extension-http.xml]
> Jan 10, 2008 11:28:40 PM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
> INFO: Loading XML bean definitions from class path resource [META-INF/cxf/cxf-extension-soap.xml]
> Jan 10, 2008 11:28:40 PM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
> INFO: Loading XML bean definitions from class path resource [META-INF/cxf/cxf-extension-jaxws.xml]
> Jan 10, 2008 11:28:41 PM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
> INFO: Loading XML bean definitions from class path resource [META-INF/cxf/cxf-extension-http-jetty.xml]
> Jan 10, 2008 11:28:41 PM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
> INFO: Loading XML bean definitions from class path resource [META-INF/cxf/cxf-extension-http.xml]
> Jan 10, 2008 11:28:41 PM org.springframework.beans.factory.support.DefaultListableBeanFactory registerBeanDefinition
> INFO: Overriding bean definition for bean 'org.apache.cxf.transport.http.ClientOnlyHTTPTransportFactory': replacing [Root bean: class [org.apache.cxf.transport.http.ClientOnlyHTTPTransportFactory]; scope=singleton; abstract=false; lazyInit=true; autowireCandidate=true; autowireMode=0; dependencyCheck=0; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in class path resource [META-INF/cxf/cxf-extension-http.xml]] with [Root bean: class [org.apache.cxf.transport.http.ClientOnlyHTTPTransportFactory]; scope=singleton; abstract=false; lazyInit=true; autowireCandidate=true; autowireMode=0; dependencyCheck=0; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in class path resource [META-INF/cxf/cxf-extension-http.xml]]
> Jan 10, 2008 11:28:41 PM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
> INFO: Loading XML bean definitions from class path resource [META-INF/cxf/cxf-extension-xml.xml]
> Jan 10, 2008 11:28:42 PM org.springframework.context.support.AbstractApplicationContext obtainFreshBeanFactory
> INFO: Bean factory for application context [org.apache.cxf.bus.spring.BusApplicationContext@5e55ab]: org.springframework.beans.factory.support.DefaultListableBeanFactory@6458a6
> Jan 10, 2008 11:28:42 PM org.springframework.context.support.AbstractApplicationContext$BeanPostProcessorChecker postProcessAfterInitialization
> INFO: Bean 'org.apache.cxf.bus.spring.Jsr250BeanPostProcessor' is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
> Jan 10, 2008 11:28:42 PM org.springframework.context.support.AbstractApplicationContext$BeanPostProcessorChecker postProcessAfterInitialization
> INFO: Bean 'org.apache.cxf.bus.spring.BusExtensionPostProcessor' is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
> Jan 10, 2008 11:28:42 PM org.springframework.beans.factory.support.DefaultListableBeanFactory preInstantiateSingletons
> INFO: Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@6458a6: defining beans [cxf,org.apache.cxf.bus.spring.Jsr250BeanPostProcessor,org.apache.cxf.bus.spring.BusExtensionPostProcessor,org.apache.cxf.resource.ResourceManager,org.apache.cxf.configuration.Configurer,org.apache.cxf.binding.BindingFactoryManager,org.apache.cxf.transport.DestinationFactoryManager,org.apache.cxf.transport.ConduitInitiatorManager,org.apache.cxf.wsdl.WSDLManager,org.apache.cxf.phase.PhaseManager,org.apache.cxf.workqueue.WorkQueueManager,org.apache.cxf.buslifecycle.BusLifeCycleManager,org.apache.cxf.endpoint.ServerRegistry,org.apache.cxf.endpoint.ServerLifeCycleManager,org.apache.cxf.endpoint.ClientLifeCycleManager,org.apache.cxf.transports.http.QueryHandlerRegistry,org.apache.cxf.endpoint.EndpointResolverRegistry,org.apache.cxf.headers.HeaderManager,org.apache.cxf.catalog.OASISCatalogManager,org.apache.cxf.endpoint.ServiceContractResolverRegistry,org.apache.cxf.transport.http.policy.HTTPClientAssertionBuilder,org.apache.cxf.transport.http.policy.HTTPServerAssertionBuilder,org.apache.cxf.transport.http.ClientOnlyHTTPTransportFactory,org.apache.cxf.binding.soap.SoapBindingFactory,org.apache.cxf.binding.soap.SoapTransportFactory,org.apache.cxf.binding.soap.customEditorConfigurer,org.apache.cxf.jaxws.context.WebServiceContextResourceResolver,org.apache.cxf.transport.http.policy.HTTPClientAssertionBuilder#1,org.apache.cxf.transport.http.policy.HTTPServerAssertionBuilder#1,org.apache.cxf.transport.http_jetty.JettyHTTPTransportFactory,org.apache.cxf.binding.xml.XMLBindingFactory]; root of factory hierarchy
> Exception in thread "main" java.lang.RuntimeException: org.apache.ws.commons.schema.constants.Enum$EnumValueException: Bad Enumeration value 'extension restriction'
> 	at org.apache.ws.commons.schema.SchemaBuilder.resolveXmlSchema(SchemaBuilder.java:1886)
> 	at org.apache.ws.commons.schema.SchemaBuilder.resolveXmlSchema(SchemaBuilder.java:1902)
> 	at org.apache.ws.commons.schema.SchemaBuilder.handleImport(SchemaBuilder.java:1627)
> 	at org.apache.ws.commons.schema.SchemaBuilder.handleXmlSchemaElement(SchemaBuilder.java:175)
> 	at org.apache.ws.commons.schema.XmlSchemaCollection.read(XmlSchemaCollection.java:364)
> 	at org.apache.cxf.common.xmlschema.SchemaCollection.read(SchemaCollection.java:110)
> 	at org.apache.cxf.wsdl11.SchemaUtil.extractSchema(SchemaUtil.java:103)
> 	at org.apache.cxf.wsdl11.SchemaUtil.getSchemas(SchemaUtil.java:63)
> 	at org.apache.cxf.wsdl11.WSDLServiceBuilder.getSchemas(WSDLServiceBuilder.java:263)
> 	at org.apache.cxf.wsdl11.WSDLServiceBuilder.buildServices(WSDLServiceBuilder.java:238)
> 	at org.apache.cxf.wsdl11.WSDLServiceBuilder.buildServices(WSDLServiceBuilder.java:150)
> 	at org.apache.cxf.wsdl11.WSDLServiceFactory.create(WSDLServiceFactory.java:117)
> 	at org.apache.cxf.jaxws.ServiceImpl.initializePorts(ServiceImpl.java:136)
> 	at org.apache.cxf.jaxws.ServiceImpl.<init>(ServiceImpl.java:127)
> 	at org.apache.cxf.jaxws.spi.ProviderImpl.createServiceDelegate(ProviderImpl.java:55)
> 	at javax.xml.ws.Service.<init>(Service.java:57)
> 	at com.bea.albpm.papiwebservice.PapiWebService_Service.<init>(PapiWebService_Service.java:53)
> 	at com.bea.albpm.papiwebservice.PapiWebServiceClient.main(PapiWebServiceClient.java:64)
> Caused by: org.apache.ws.commons.schema.constants.Enum$EnumValueException: Bad Enumeration value 'extension restriction'
> 	at org.apache.ws.commons.schema.constants.Enum.setValue(Enum.java:49)
> 	at org.apache.ws.commons.schema.constants.Enum.<init>(Enum.java:27)
> 	at org.apache.ws.commons.schema.XmlSchemaDerivationMethod.<init>(XmlSchemaDerivationMethod.java:46)
> 	at org.apache.ws.commons.schema.SchemaBuilder.handleComplexType(SchemaBuilder.java:657)
> 	at org.apache.ws.commons.schema.SchemaBuilder.handleXmlSchemaElement(SchemaBuilder.java:157)
> 	at org.apache.ws.commons.schema.SchemaBuilder.build(SchemaBuilder.java:82)
> 	at org.apache.ws.commons.schema.XmlSchemaCollection.read(XmlSchemaCollection.java:359)
> 	at org.apache.ws.commons.schema.XmlSchemaCollection.read(XmlSchemaCollection.java:304)
> 	at org.apache.ws.commons.schema.SchemaBuilder.resolveXmlSchema(SchemaBuilder.java:1884)
> 	... 17 more
> Disconnected from the target VM, address: '127.0.0.1:1470', transport: 'socket'
> Process finished with exit code 1

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.