You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Andy Zhai (JIRA)" <ax...@ws.apache.org> on 2006/04/25 22:00:02 UTC

[jira] Created: (AXIS-2468) WSDL2Java fails to generate Java class and returns MalformedURLException If the path of WSDL file contains DBCS

WSDL2Java fails to generate Java class and returns MalformedURLException If the path of WSDL file contains DBCS
---------------------------------------------------------------------------------------------------------------

         Key: AXIS-2468
         URL: http://issues.apache.org/jira/browse/AXIS-2468
     Project: Apache Axis
        Type: Bug

  Components: WSDL processing  
    Versions: 1.3    
 Environment: Windows XP sp2 simplified Chinese, java 1.5.0_06,
    Reporter: Andy Zhai


when using jdk1.5.0_06. WSDL2Java fails to generate Java class and returns MalformedURLException If the path of WSDL file contains DBCS.
(when using jdk1.4, no problems happened)
steps:
1. enter into the samples\addr directory of axis-1_3,
2. creat a new folder named 中文path
3. copy AddressBook.wsdl to 中文path\简体AddressBook中文.wsdl
4. execute java org.apache.axis.wsdl.WSDL2Java 中文path\简体AddressBook中文.wsdl

my command line result with jre1.4 and 1.5

D:\apps\axis-1_3\samples\addr>setpath

D:\apps\axis-1_3\samples\addr>set CLASSPATH=D:\apps\axis-1_3\lib\axis.jar;D:\app
s\axis-1_3\lib\commons-discovery-0.2.jar;D:\apps\axis-1_3\lib\commons-logging-1.
0.4.jar;D:\apps\axis-1_3\lib\jaxrpc.jar;D:\apps\axis-1_3\lib\saaj.jar;D:\apps\ax
is-1_3\lib\servlet.jar;D:\apps\axis-1_3\lib\activation.jar;D:\apps\axis-1_3\lib\
log4j-1.2.8.jar;D:\apps\axis-1_3\lib\wsdl4j-1.5.1.jar;

D:\apps\axis-1_3\samples\addr>C:\mnt\java\sun\j2sdk1.4.2_11\bin\java.exe org.apa
che.axis.wsdl.WSDL2Java 中文path\简体AddressBook中文.wsdl
log4j:WARN No appenders could be found for logger (org.apache.axis.i18n.ProjectR
esourceBundle).
log4j:WARN Please initialize the log4j system properly.

D:\apps\axis-1_3\samples\addr>C:\mnt\java\sun\jdk1.5.0_06\bin\java.exe org.apach
e.axis.wsdl.WSDL2Java 中文path\简体AddressBook中文.wsdl
log4j:WARN No appenders could be found for logger (org.apache.axis.i18n.ProjectR
esourceBundle).
log4j:WARN Please initialize the log4j system properly.
java.net.MalformedURLException: no protocol: 中文path\简体AddressBook中文.wsdl
        at java.net.URL.<init>(URL.java:567)
        at java.net.URL.<init>(URL.java:464)
        at java.net.URL.<init>(URL.java:413)
        at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrent
Entity(XMLEntityManager.java:968)
        at com.sun.org.apache.xerces.internal.impl.XMLVersionDetector.determineD
ocVersion(XMLVersionDetector.java:184)
        at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(X
ML11Configuration.java:798)
        at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(X
ML11Configuration.java:764)
        at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.
java:148)
        at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.
java:250)
        at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(Doc
umentBuilderImpl.java:292)
        at org.apache.axis.utils.XMLUtils.newDocument(XMLUtils.java:369)
        at org.apache.axis.utils.XMLUtils.newDocument(XMLUtils.java:420)
        at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.jav
a:482)
        at org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:361)
        at java.lang.Thread.run(Thread.java:595)

D:\apps\axis-1_3\samples\addr>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Updated: (AXIS-2468) WSDL2Java fails to generate Java class and returns MalformedURLException If the path of WSDL file contains DBCS

Posted by "Andy Zhai (JIRA)" <ax...@ws.apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS-2468?page=all ]

Andy Zhai updated AXIS-2468:
----------------------------

    Attachment: wsdl2java_dbcs.JPG

Screenshot of command line result with jre1.4 and jre1.5 

> WSDL2Java fails to generate Java class and returns MalformedURLException If the path of WSDL file contains DBCS
> ---------------------------------------------------------------------------------------------------------------
>
>          Key: AXIS-2468
>          URL: http://issues.apache.org/jira/browse/AXIS-2468
>      Project: Apache Axis
>         Type: Bug

>   Components: WSDL processing
>     Versions: 1.3
>  Environment: Windows XP sp2 simplified Chinese, java 1.5.0_06,
>     Reporter: Andy Zhai
>  Attachments: wsdl2java_dbcs.JPG
>
> when using jdk1.5.0_06. WSDL2Java fails to generate Java class and returns MalformedURLException If the path of WSDL file contains DBCS.
> (when using jdk1.4, no problems happened)
> steps:
> 1. enter into the samples\addr directory of axis-1_3,
> 2. creat a new folder named ??path
> 3. copy AddressBook.wsdl to ??path\??AddressBook??.wsdl
> 4. execute java org.apache.axis.wsdl.WSDL2Java ??path\??AddressBook??.wsdl
> my command line result with jre1.4 and 1.5
> D:\apps\axis-1_3\samples\addr>setpath
> D:\apps\axis-1_3\samples\addr>set CLASSPATH=D:\apps\axis-1_3\lib\axis.jar;D:\app
> s\axis-1_3\lib\commons-discovery-0.2.jar;D:\apps\axis-1_3\lib\commons-logging-1.
> 0.4.jar;D:\apps\axis-1_3\lib\jaxrpc.jar;D:\apps\axis-1_3\lib\saaj.jar;D:\apps\ax
> is-1_3\lib\servlet.jar;D:\apps\axis-1_3\lib\activation.jar;D:\apps\axis-1_3\lib\
> log4j-1.2.8.jar;D:\apps\axis-1_3\lib\wsdl4j-1.5.1.jar;
> D:\apps\axis-1_3\samples\addr>C:\mnt\java\sun\j2sdk1.4.2_11\bin\java.exe org.apa
> che.axis.wsdl.WSDL2Java ??path\??AddressBook??.wsdl
> log4j:WARN No appenders could be found for logger (org.apache.axis.i18n.ProjectR
> esourceBundle).
> log4j:WARN Please initialize the log4j system properly.
> D:\apps\axis-1_3\samples\addr>C:\mnt\java\sun\jdk1.5.0_06\bin\java.exe org.apach
> e.axis.wsdl.WSDL2Java ??path\??AddressBook??.wsdl
> log4j:WARN No appenders could be found for logger (org.apache.axis.i18n.ProjectR
> esourceBundle).
> log4j:WARN Please initialize the log4j system properly.
> java.net.MalformedURLException: no protocol: ??path\??AddressBook??.wsdl
>         at java.net.URL.<init>(URL.java:567)
>         at java.net.URL.<init>(URL.java:464)
>         at java.net.URL.<init>(URL.java:413)
>         at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrent
> Entity(XMLEntityManager.java:968)
>         at com.sun.org.apache.xerces.internal.impl.XMLVersionDetector.determineD
> ocVersion(XMLVersionDetector.java:184)
>         at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(X
> ML11Configuration.java:798)
>         at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(X
> ML11Configuration.java:764)
>         at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.
> java:148)
>         at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.
> java:250)
>         at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(Doc
> umentBuilderImpl.java:292)
>         at org.apache.axis.utils.XMLUtils.newDocument(XMLUtils.java:369)
>         at org.apache.axis.utils.XMLUtils.newDocument(XMLUtils.java:420)
>         at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.jav
> a:482)
>         at org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:361)
>         at java.lang.Thread.run(Thread.java:595)
> D:\apps\axis-1_3\samples\addr>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Commented: (AXIS-2468) WSDL2Java fails to generate Java class and returns MalformedURLException If the path of WSDL file contains DBCS

Posted by "Chelski (JIRA)" <ax...@ws.apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS-2468?page=comments#action_12376380 ] 

Chelski commented on AXIS-2468:
-------------------------------

using   "file:///d:/中文path/some.wsdl"   for work-around

> WSDL2Java fails to generate Java class and returns MalformedURLException If the path of WSDL file contains DBCS
> ---------------------------------------------------------------------------------------------------------------
>
>          Key: AXIS-2468
>          URL: http://issues.apache.org/jira/browse/AXIS-2468
>      Project: Apache Axis
>         Type: Bug

>   Components: WSDL processing
>     Versions: 1.3
>  Environment: Windows XP sp2 simplified Chinese, java 1.5.0_06,
>     Reporter: Andy Zhai
>  Attachments: wsdl2java_dbcs.JPG
>
> when using jdk1.5.0_06. WSDL2Java fails to generate Java class and returns MalformedURLException If the path of WSDL file contains DBCS.
> (when using jdk1.4, no problems happened)
> steps:
> 1. enter into the samples\addr directory of axis-1_3,
> 2. creat a new folder named ??path
> 3. copy AddressBook.wsdl to ??path\??AddressBook??.wsdl
> 4. execute java org.apache.axis.wsdl.WSDL2Java ??path\??AddressBook??.wsdl
> my command line result with jre1.4 and 1.5
> D:\apps\axis-1_3\samples\addr>setpath
> D:\apps\axis-1_3\samples\addr>set CLASSPATH=D:\apps\axis-1_3\lib\axis.jar;D:\app
> s\axis-1_3\lib\commons-discovery-0.2.jar;D:\apps\axis-1_3\lib\commons-logging-1.
> 0.4.jar;D:\apps\axis-1_3\lib\jaxrpc.jar;D:\apps\axis-1_3\lib\saaj.jar;D:\apps\ax
> is-1_3\lib\servlet.jar;D:\apps\axis-1_3\lib\activation.jar;D:\apps\axis-1_3\lib\
> log4j-1.2.8.jar;D:\apps\axis-1_3\lib\wsdl4j-1.5.1.jar;
> D:\apps\axis-1_3\samples\addr>C:\mnt\java\sun\j2sdk1.4.2_11\bin\java.exe org.apa
> che.axis.wsdl.WSDL2Java ??path\??AddressBook??.wsdl
> log4j:WARN No appenders could be found for logger (org.apache.axis.i18n.ProjectR
> esourceBundle).
> log4j:WARN Please initialize the log4j system properly.
> D:\apps\axis-1_3\samples\addr>C:\mnt\java\sun\jdk1.5.0_06\bin\java.exe org.apach
> e.axis.wsdl.WSDL2Java ??path\??AddressBook??.wsdl
> log4j:WARN No appenders could be found for logger (org.apache.axis.i18n.ProjectR
> esourceBundle).
> log4j:WARN Please initialize the log4j system properly.
> java.net.MalformedURLException: no protocol: ??path\??AddressBook??.wsdl
>         at java.net.URL.<init>(URL.java:567)
>         at java.net.URL.<init>(URL.java:464)
>         at java.net.URL.<init>(URL.java:413)
>         at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrent
> Entity(XMLEntityManager.java:968)
>         at com.sun.org.apache.xerces.internal.impl.XMLVersionDetector.determineD
> ocVersion(XMLVersionDetector.java:184)
>         at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(X
> ML11Configuration.java:798)
>         at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(X
> ML11Configuration.java:764)
>         at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.
> java:148)
>         at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.
> java:250)
>         at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(Doc
> umentBuilderImpl.java:292)
>         at org.apache.axis.utils.XMLUtils.newDocument(XMLUtils.java:369)
>         at org.apache.axis.utils.XMLUtils.newDocument(XMLUtils.java:420)
>         at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.jav
> a:482)
>         at org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:361)
>         at java.lang.Thread.run(Thread.java:595)
> D:\apps\axis-1_3\samples\addr>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira