The wsdl: <?xml version="1.0" encoding="utf-8"?> <wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:tns="http://www.rakis.com/webservices/47/RakisRuntime/" xmlns:i0="http://www.rakis.com/webservices/47/RakisRuntime/external-wsdl /" xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" targetNamespace="http://www.rakis.com/webservices/47/RakisRuntime/"> <wsdl:import namespace="http://www.rakis.com/webservices/47/RakisRuntime/external-wsd l/" location="http://www.rakis.com/webservices/47/definitions/runtime-main.w sdl"/> <wsdl:types/> <wsdl:service name="RakisRuntime"> <wsdl:port name="RKInterface47-1101-RakisRuntime-binding" binding="i0:RKInterface47-1101-RakisRuntime-binding"> <soap:address location="http://dtrakis/rakiswebservice/rkruntime.asmx"/> </wsdl:port> <wsdl:port name="RKInterface47-1101-RakisRuntime-binding1" binding="i0:RKInterface47-1101-RakisRuntime-binding"> <soap12:address location="http://dtrakis/rakiswebservice/rkruntime.asmx"/> </wsdl:port> </wsdl:service> </wsdl:definitions>
-----Original Message----- From: Danny Trieu [mailto:[EMAIL PROTECTED] Sent: Sunday, May 07, 2006 10:51 PM To: Dan Diephouse (JIRA) Cc: [email protected]; [email protected] Subject: [xfire-dev] RE: [jira] Commented: (XFIRE-381) "java.lang.OutOfMemoryError: Java heap space" caused by circular dependencies in wsdl and xsd. Dan, This time it comeback with different exception... My project is under: C:\work\securedfunding.com\trunk My project pom: C:\work\securedfunding.com\trunk\myproject\pom.xml <taskdef name="wsgen" classname="org.codehaus.xfire.gen.WsGenTask" classpathref="maven.compile.classpath"/> <wsgen outputDirectory="${basedir}/target/generated-source" wsdl="${basedir}/src/wsdl/rkruntime.wsdl" package="com.rakis.runtime.jaxb" binding="jaxb" /> This time it said: Embedded error: java.lang.RuntimeException: java.net.URISyntaxException: Illegal character in opaque part at index 2: C:\work\securedfunding.com\trunk What is "...opaque part at index 2...", and how does it related to C:\work\securedfunding.com\trunk ??? Anyway, attached is the actual wsdl that has the import to http://www.rakis.com/webservices/47/definitions/runtime-main.wsdl and here is the stacktrace: May 7, 2006 10:28:14 PM org.codehaus.xfire.wsdl11.parser.WSDLServiceBuilder processImports INFO: Adding wsdl definition http://www.rakis.com/webservices/47/definitions/runtime-main.wsdl with baseURI of C:\work\securedfunding.com\trunk May 7, 2006 10:28:14 PM org.codehaus.xfire.wsdl11.parser.WSDLServiceBuilder processImports INFO: Adding wsdl definition http://www.rakis.com/webservices/47/definitions/runtime-message-types.xs d with baseURI of http://www.rakis.com/webservices/47/definitions/runtime-main.wsdl May 7, 2006 10:28:14 PM org.codehaus.xfire.wsdl11.parser.WSDLServiceBuilder processImports INFO: Adding wsdl definition http://www.rakis.com/webservices/47/definitions/runtime-header-types.xsd with baseURI of http://www.rakis.com/webservices/47/definitions/runtime-main.wsdl [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Error executing ant tasks Embedded error: java.lang.RuntimeException: java.net.URISyntaxException: Illegal character in opaque part at index 2: C:\work\securedfunding.com\trunk [INFO] ------------------------------------------------------------------------ [INFO] Trace org.apache.maven.lifecycle.LifecycleExecutionException: Error executing ant tasks at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Default LifecycleExecutor.java:559) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifec ycle(DefaultLifecycleExecutor.java:475) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultL ifecycleExecutor.java:454) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandle Failures(DefaultLifecycleExecutor.java:306) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments( DefaultLifecycleExecutor.java:273) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifec ycleExecutor.java:140) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115) at org.apache.maven.cli.MavenCli.main(MavenCli.java:256) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav a:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor Impl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) Caused by: org.apache.maven.plugin.MojoExecutionException: Error executing ant tasks at org.apache.maven.plugin.antrun.AbstractAntMojo.executeTasks(AbstractAntM ojo.java:109) at org.apache.maven.plugin.antrun.AntRunMojo.execute(AntRunMojo.java:83) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginMa nager.java:412) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Default LifecycleExecutor.java:534) ... 16 more Caused by: java.lang.RuntimeException: java.net.URISyntaxException: Illegal character in opaque part at index 2: C:\work\securedfunding.com\trunk at org.codehaus.xfire.gen.WsGenTask.execute(WsGenTask.java:41) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275) at org.apache.tools.ant.Task.perform(Task.java:364) at org.apache.tools.ant.Target.execute(Target.java:341) at org.apache.maven.plugin.antrun.AbstractAntMojo.executeTasks(AbstractAntM ojo.java:99) ... 19 more Caused by: java.lang.RuntimeException: java.net.URISyntaxException: Illegal character in opaque part at index 2: C:\work\securedfunding.com\trunk at org.apache.ws.commons.schema.resolver.DefaultURIResolver.resolveEntity(D efaultURIResolver.java:58) at org.apache.ws.commons.schema.SchemaBuilder.resolveXmlSchema(SchemaBuilde r.java:1916) at org.apache.ws.commons.schema.SchemaBuilder.resolveXmlSchema(SchemaBuilde r.java:1941) at org.apache.ws.commons.schema.SchemaBuilder.handleImport(SchemaBuilder.ja va:1719) at org.apache.ws.commons.schema.SchemaBuilder.handleXmlSchemaElement(Schema Builder.java:130) at org.apache.ws.commons.schema.XmlSchemaCollection.read(XmlSchemaCollectio n.java:263) at org.codehaus.xfire.wsdl11.parser.WSDLServiceBuilder.visit(WSDLServiceBui lder.java:320) at org.codehaus.xfire.wsdl11.parser.WSDLServiceBuilder.build(WSDLServiceBui lder.java:165) at org.codehaus.xfire.gen.Wsdl11Generator.generate(Wsdl11Generator.java:69) at org.codehaus.xfire.gen.WsGenTask.execute(WsGenTask.java:37) ... 23 more Caused by: java.net.URISyntaxException: Illegal character in opaque part at index 2: C:\work\securedfunding.com\trunk at java.net.URI$Parser.fail(URI.java:2809) at java.net.URI$Parser.checkChars(URI.java:2982) at java.net.URI$Parser.parse(URI.java:3019) at java.net.URI.<init>(URI.java:578) at org.apache.ws.commons.schema.resolver.DefaultURIResolver.resolveEntity(D efaultURIResolver.java:52) ... 32 more [INFO] ------------------------------------------------------------------------ [INFO] Total time: 30 seconds [INFO] Finished at: Sun May 07 22:28:14 PDT 2006 [INFO] Final Memory: 5M/11M [INFO] ------------------------------------------------------------------------ -----Original Message----- From: Dan Diephouse (JIRA) [mailto:[EMAIL PROTECTED] Sent: Sunday, May 07, 2006 3:12 PM To: Danny Trieu Subject: [jira] Commented: (XFIRE-381) "java.lang.OutOfMemoryError: Java heap space" caused by circular dependencies in wsdl and xsd. [ http://jira.codehaus.org/browse/XFIRE-381?page=comments#action_64913 ] Dan Diephouse commented on XFIRE-381: ------------------------------------- Actually - I'm not sure if that jar has the required fix in it. Use this one just to be safe: http://cvs.apache.org/maven-snapshot-repository/org/apache/ws/commons/Xm lSchema/SNAPSHOT/XmlSchema-20060507.220617-4.jar > "java.lang.OutOfMemoryError: Java heap space" caused by circular dependencies in wsdl and xsd. > ------------------------------------------------------------------------ ---------------------- > > Key: XFIRE-381 > URL: http://jira.codehaus.org/browse/XFIRE-381 > Project: XFire > Type: Bug > Components: Generator > Versions: 1.1-RC1 > Environment: JDK1.5 on WIN XP PRO > Reporter: Danny Trieu > Assignee: Dan Diephouse > Priority: Blocker > Fix For: 1.1 > > > "java.lang.OutOfMemoryError: Java heap space" occured why generating the client proxy and server stuff from WSDL that has <wsdl:import namespace="http://www.rakis.com/webservices/47/RakisRuntime/external-wsd l/> which inturns has other XSD and wsdl import created 2 circular dependencies in it. > I also tried against AXIS2's WSDL2JAVA tool and got the StackOverflowError. > Mika Gockel explained this issue related to WS-I conformance XFire to support doc/lit over rpc/lit encoding. > Thanks, > --danny > ps. you can follow the URL to get all the WSDL and XSD documents. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira
