chenjianjx / wsdl2html Goto Github PK
View Code? Open in Web Editor NEWGenerate readable html docs from WSDLs
License: Apache License 2.0
Generate readable html docs from WSDLs
License: Apache License 2.0
I'm trying to use the xs:annotation / xs:documentation tags, but nothing is getting populated in the description column of the HTML tables.
<s:element minOccurs="1" maxOccurs="1" name="ContactMethodId" type="s:int" >
<xs:annotation>
<xs:documentation>Na = 0, RegularMail = 1, Email = 2, VoiceMail = 3, FaxBack = 4, Print = 5</xs:documentation>
</xs:annotation>
</s:element>
Maybe this feature hasn't been implemented yet? The Stub.java model looks like it will only ever return the words "In header"
public String getDescription() {
if (this.header) {
return "In header";
}
return null;
}
I intend to work with wsdl2html as a command line tool, when I tried to compile through maven I get some errors (see below)
I am not very fluent in java, so I'm a bit lost, but it seems that the issues come because javax.jws is no longer part of the core for java 11, (and should be explicitly declared), I found this solution here, but I don't know how to do the integration
$ mvn package
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.google.inject.internal.cglib.core.$ReflectUtils$1 (file:/usr/share/maven/lib/guice.jar) to method java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain)
WARNING: Please consider reporting this to the maintainers of com.google.inject.internal.cglib.core.$ReflectUtils$1
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for com.github.chenjianjx:wsdl2html:jar:4.0.1
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ line 85, column 12
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-source-plugin is missing. @ line 58, column 12
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-javadoc-plugin is missing. @ line 71, column 12
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING]
[INFO]
[INFO] ------------------< com.github.chenjianjx:wsdl2html >-------------------
[INFO] Building SOAP WSDL to Html 4.0.1
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ wsdl2html ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 8 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ wsdl2html ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 29 source files to /tmp/wsdl2html/target/classes
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] /tmp/wsdl2html/src/main/java/org/jaxws/stub2html/service/JavaLanguageVariableFactory.java:[11,17] package javax.jws does not exist
[ERROR] /tmp/wsdl2html/src/main/java/org/jaxws/stub2html/service/JavaLanguageVariableFactory.java:[12,17] package javax.jws does not exist
[ERROR] /tmp/wsdl2html/src/main/java/org/jaxws/stub2html/service/JavaLanguageVariableFactory.java:[13,33] package javax.xml.bind.annotation does not exist
[ERROR] /tmp/wsdl2html/src/main/java/org/jaxws/stub2html/service/JavaLanguageVariableFactory.java:[48,60] cannot find symbol
symbol: class XmlElement
location: class org.jaxws.stub2html.service.JavaLanguageVariableFactory
[ERROR] /tmp/wsdl2html/src/main/java/org/jaxws/stub2html/service/JavaLanguageVariableFactory.java:[96,109] cannot find symbol
symbol: class WebParam
location: class org.jaxws.stub2html.service.JavaLanguageVariableFactory
[ERROR] /tmp/wsdl2html/src/main/java/org/jaxws/stub2html/service/JavaLanguageVariableFactory.java:[107,24] cannot find symbol
symbol: class WebParam
location: class org.jaxws.stub2html.service.JavaLanguageVariableFactory
[ERROR] /tmp/wsdl2html/src/main/java/org/jaxws/stub2html/service/JavaLanguageVariableFactory.java:[116,43] cannot find symbol
symbol: class XmlElement
location: class org.jaxws.stub2html.service.JavaLanguageVariableFactory
[ERROR] /tmp/wsdl2html/src/main/java/org/jaxws/stub2html/service/WebServiceStubSetFactory.java:[9,17] package javax.jws does not exist
[ERROR] /tmp/wsdl2html/src/main/java/org/jaxws/wsdl2html/service/Wsdl2Html.java:[5,17] package javax.jws does not exist
[ERROR] /tmp/wsdl2html/src/main/java/org/jaxws/stub2html/service/Variable2Stub.java:[11,33] package javax.xml.bind.annotation does not exist
[ERROR] /tmp/wsdl2html/src/main/java/org/jaxws/stub2html/service/Variable2Stub.java:[12,33] package javax.xml.bind.annotation does not exist
[ERROR] /tmp/wsdl2html/src/main/java/org/jaxws/stub2html/service/JavaLanguageVariableFactory.java:[31,17] cannot find symbol
symbol: class XmlElement
location: class org.jaxws.stub2html.service.JavaLanguageVariableFactory
[ERROR] /tmp/wsdl2html/src/main/java/org/jaxws/stub2html/service/JavaLanguageVariableFactory.java:[31,61] cannot find symbol
symbol: class XmlElement
location: class org.jaxws.stub2html.service.JavaLanguageVariableFactory
[ERROR] /tmp/wsdl2html/src/main/java/org/jaxws/stub2html/service/JavaLanguageVariableFactory.java:[64,25] cannot find symbol
symbol: class WebParam
location: class org.jaxws.stub2html.service.JavaLanguageVariableFactory
[ERROR] /tmp/wsdl2html/src/main/java/org/jaxws/stub2html/service/JavaLanguageVariableFactory.java:[67,146] cannot find symbol
symbol: class WebParam
location: class org.jaxws.stub2html.service.JavaLanguageVariableFactory
[ERROR] /tmp/wsdl2html/src/main/java/org/jaxws/stub2html/service/JavaLanguageVariableFactory.java:[81,17] cannot find symbol
symbol: class WebResult
location: class org.jaxws.stub2html.service.JavaLanguageVariableFactory
[ERROR] /tmp/wsdl2html/src/main/java/org/jaxws/stub2html/service/JavaLanguageVariableFactory.java:[81,70] cannot find symbol
symbol: class WebResult
location: class org.jaxws.stub2html.service.JavaLanguageVariableFactory
[ERROR] /tmp/wsdl2html/src/main/java/org/jaxws/stub2html/service/JavaLanguageVariableFactory.java:[83,122] cannot find symbol
symbol: class WebResult
location: class org.jaxws.stub2html.service.JavaLanguageVariableFactory
[ERROR] /tmp/wsdl2html/src/main/java/org/jaxws/stub2html/service/JavaLanguageVariableFactory.java:[109,51] cannot find symbol
symbol: class WebParam
location: class org.jaxws.stub2html.service.JavaLanguageVariableFactory
[ERROR] /tmp/wsdl2html/src/main/java/org/jaxws/stub2html/service/JavaLanguageVariableFactory.java:[110,41] cannot find symbol
symbol: class WebParam
location: class org.jaxws.stub2html.service.JavaLanguageVariableFactory
[ERROR] /tmp/wsdl2html/src/main/java/org/jaxws/stub2html/service/WebServiceStubSetFactory.java:[33,56] cannot find symbol
symbol: class WebMethod
location: class org.jaxws.stub2html.service.WebServiceStubSetFactory
[ERROR] /tmp/wsdl2html/src/main/java/org/jaxws/wsdl2html/service/Wsdl2Html.java:[49,78] cannot find symbol
symbol: class WebService
location: class org.jaxws.wsdl2html.service.Wsdl2Html
[ERROR] /tmp/wsdl2html/src/main/java/org/jaxws/stub2html/service/Variable2Stub.java:[36,60] cannot find symbol
symbol: class XmlType
location: class org.jaxws.stub2html.service.Variable2Stub
[ERROR] /tmp/wsdl2html/src/main/java/org/jaxws/stub2html/service/Variable2Stub.java:[79,55] cannot find symbol
symbol: class XmlType
location: class org.jaxws.stub2html.service.Variable2Stub
[ERROR] /tmp/wsdl2html/src/main/java/org/jaxws/stub2html/service/Variable2Stub.java:[90,51] cannot find symbol
symbol: class XmlSeeAlso
location: class org.jaxws.stub2html.service.Variable2Stub
[ERROR] /tmp/wsdl2html/src/main/java/org/jaxws/stub2html/service/Variable2Stub.java:[120,64] cannot find symbol
symbol: class XmlSeeAlso
location: class org.jaxws.stub2html.service.Variable2Stub
[INFO] 26 errors
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.468 s
[INFO] Finished at: 2019-11-07T09:59:28+01:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project wsdl2html: Compilation failure: Compilation failure:
[ERROR] /tmp/wsdl2html/src/main/java/org/jaxws/stub2html/service/JavaLanguageVariableFactory.java:[11,17] package javax.jws does not exist
[ERROR] /tmp/wsdl2html/src/main/java/org/jaxws/stub2html/service/JavaLanguageVariableFactory.java:[12,17] package javax.jws does not exist
[ERROR] /tmp/wsdl2html/src/main/java/org/jaxws/stub2html/service/JavaLanguageVariableFactory.java:[13,33] package javax.xml.bind.annotation does not exist
[ERROR] /tmp/wsdl2html/src/main/java/org/jaxws/stub2html/service/JavaLanguageVariableFactory.java:[48,60] cannot find symbol
[ERROR] symbol: class XmlElement
[ERROR] location: class org.jaxws.stub2html.service.JavaLanguageVariableFactory
[ERROR] /tmp/wsdl2html/src/main/java/org/jaxws/stub2html/service/JavaLanguageVariableFactory.java:[96,109] cannot find symbol
[ERROR] symbol: class WebParam
[ERROR] location: class org.jaxws.stub2html.service.JavaLanguageVariableFactory
[ERROR] /tmp/wsdl2html/src/main/java/org/jaxws/stub2html/service/JavaLanguageVariableFactory.java:[107,24] cannot find symbol
[ERROR] symbol: class WebParam
[ERROR] location: class org.jaxws.stub2html.service.JavaLanguageVariableFactory
[ERROR] /tmp/wsdl2html/src/main/java/org/jaxws/stub2html/service/JavaLanguageVariableFactory.java:[116,43] cannot find symbol
[ERROR] symbol: class XmlElement
[ERROR] location: class org.jaxws.stub2html.service.JavaLanguageVariableFactory
[ERROR] /tmp/wsdl2html/src/main/java/org/jaxws/stub2html/service/WebServiceStubSetFactory.java:[9,17] package javax.jws does not exist
[ERROR] /tmp/wsdl2html/src/main/java/org/jaxws/wsdl2html/service/Wsdl2Html.java:[5,17] package javax.jws does not exist
[ERROR] /tmp/wsdl2html/src/main/java/org/jaxws/stub2html/service/Variable2Stub.java:[11,33] package javax.xml.bind.annotation does not exist
[ERROR] /tmp/wsdl2html/src/main/java/org/jaxws/stub2html/service/Variable2Stub.java:[12,33] package javax.xml.bind.annotation does not exist
[ERROR] /tmp/wsdl2html/src/main/java/org/jaxws/stub2html/service/JavaLanguageVariableFactory.java:[31,17] cannot find symbol
[ERROR] symbol: class XmlElement
[ERROR] location: class org.jaxws.stub2html.service.JavaLanguageVariableFactory
[ERROR] /tmp/wsdl2html/src/main/java/org/jaxws/stub2html/service/JavaLanguageVariableFactory.java:[31,61] cannot find symbol
[ERROR] symbol: class XmlElement
[ERROR] location: class org.jaxws.stub2html.service.JavaLanguageVariableFactory
[ERROR] /tmp/wsdl2html/src/main/java/org/jaxws/stub2html/service/JavaLanguageVariableFactory.java:[64,25] cannot find symbol
[ERROR] symbol: class WebParam
[ERROR] location: class org.jaxws.stub2html.service.JavaLanguageVariableFactory
[ERROR] /tmp/wsdl2html/src/main/java/org/jaxws/stub2html/service/JavaLanguageVariableFactory.java:[67,146] cannot find symbol
[ERROR] symbol: class WebParam
[ERROR] location: class org.jaxws.stub2html.service.JavaLanguageVariableFactory
[ERROR] /tmp/wsdl2html/src/main/java/org/jaxws/stub2html/service/JavaLanguageVariableFactory.java:[81,17] cannot find symbol
[ERROR] symbol: class WebResult
[ERROR] location: class org.jaxws.stub2html.service.JavaLanguageVariableFactory
[ERROR] /tmp/wsdl2html/src/main/java/org/jaxws/stub2html/service/JavaLanguageVariableFactory.java:[81,70] cannot find symbol
[ERROR] symbol: class WebResult
[ERROR] location: class org.jaxws.stub2html.service.JavaLanguageVariableFactory
[ERROR] /tmp/wsdl2html/src/main/java/org/jaxws/stub2html/service/JavaLanguageVariableFactory.java:[83,122] cannot find symbol
[ERROR] symbol: class WebResult
[ERROR] location: class org.jaxws.stub2html.service.JavaLanguageVariableFactory
[ERROR] /tmp/wsdl2html/src/main/java/org/jaxws/stub2html/service/JavaLanguageVariableFactory.java:[109,51] cannot find symbol
[ERROR] symbol: class WebParam
[ERROR] location: class org.jaxws.stub2html.service.JavaLanguageVariableFactory
[ERROR] /tmp/wsdl2html/src/main/java/org/jaxws/stub2html/service/JavaLanguageVariableFactory.java:[110,41] cannot find symbol
[ERROR] symbol: class WebParam
[ERROR] location: class org.jaxws.stub2html.service.JavaLanguageVariableFactory
[ERROR] /tmp/wsdl2html/src/main/java/org/jaxws/stub2html/service/WebServiceStubSetFactory.java:[33,56] cannot find symbol
[ERROR] symbol: class WebMethod
[ERROR] location: class org.jaxws.stub2html.service.WebServiceStubSetFactory
[ERROR] /tmp/wsdl2html/src/main/java/org/jaxws/wsdl2html/service/Wsdl2Html.java:[49,78] cannot find symbol
[ERROR] symbol: class WebService
[ERROR] location: class org.jaxws.wsdl2html.service.Wsdl2Html
[ERROR] /tmp/wsdl2html/src/main/java/org/jaxws/stub2html/service/Variable2Stub.java:[36,60] cannot find symbol
[ERROR] symbol: class XmlType
[ERROR] location: class org.jaxws.stub2html.service.Variable2Stub
[ERROR] /tmp/wsdl2html/src/main/java/org/jaxws/stub2html/service/Variable2Stub.java:[79,55] cannot find symbol
[ERROR] symbol: class XmlType
[ERROR] location: class org.jaxws.stub2html.service.Variable2Stub
[ERROR] /tmp/wsdl2html/src/main/java/org/jaxws/stub2html/service/Variable2Stub.java:[90,51] cannot find symbol
[ERROR] symbol: class XmlSeeAlso
[ERROR] location: class org.jaxws.stub2html.service.Variable2Stub
[ERROR] /tmp/wsdl2html/src/main/java/org/jaxws/stub2html/service/Variable2Stub.java:[120,64] cannot find symbol
[ERROR] symbol: class XmlSeeAlso
[ERROR] location: class org.jaxws.stub2html.service.Variable2Stub
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
I have tried the following
C:\Users\marfourn\Downloads>java -jar wsdl2html-1.0.3.jar ClientClaimsHistoryService.wsdl
and I got
aucun attribut manifest principal dans wsdl2html-1.0.3.jar
The the documentation on how to run this app is ok, but there is one thing missing:
How do i get the code that is to be run. My naive approach was to download the latest release (3.0.2) and run the stuff.
Unfortunatelly the actual latest release was 4.0.1, but as there no git tags for the newer releases this was not clear. This caused the issue #31 .
Therefore I would recommend to either:
Hi,
I am trying to use the wsdl2html jars but getting the below errors
Exception in thread "main" java.lang.NoSuchMethodError: org/apache/commons/lang/StringUtils.join(Ljava/util/Collection;Ljava/lang/String;)Ljava/lang/String;
at org.jaxws.wsdl2bytecodes.service.Wsdl2ByteCodes.generatePakcageName(Wsdl2ByteCodes.java:46)
at org.jaxws.wsdl2bytecodes.service.Wsdl2ByteCodes.generate(Wsdl2ByteCodes.java:26)
at org.jaxws.wsdl2html.service.Wsdl2Html.generateHtml(Wsdl2Html.java:26)
at org.jaxws.wsdl2html.ui.Wsdl2HtmlMain.main(Wsdl2HtmlMain.java:32)
Steps what I followed:
1)Downloaded the jar from the link and extracted.
2)Added as a project in my IRAD workspace and trying to run the project.
3)Giving the wsdl details in the run configuration of the wsdl2htmlMain.java
file.
Also added the commons jar that were specified.
Still getting the error.
Please advice.
Thank you.
Regards
P.Sharada
Original issue reported on code.google.com by [email protected]
on 29 Jul 2013 at 6:14
The code generates wrong report when response message contains at least one common attribute with the request message.
e.g.
request:
<id>
<country>
response
<result>
This works just fine. But the following does not:
request:
<id>
<country>
response
<result>
<country>
It shows:
Response - No Response
I am attaching an "erroneous" WSDL (test.asmx) which causes this behavior and the respective generated report. Check operation getHolidaysForYear.
If from GetHolidaysForYearResponse you remove countryCode everything works as expected.
I am unable to run this with Java 11, I get a lot of errors like this:
[ERROR] Compilation Error on line 4 in ****\Temp\wsdl2html\20200827173307848\ENpfTuGMrE\wsdl2bytecodes20200827173307848\TaHChM\OrwWzpT\MalformedURLException.java:4: error: package javax.xml.bind.annotation does not exist
[ERROR] import javax.xml.bind.annotation.XmlAccessType;
I am running this from Maven with the exec-plugin, but even the dependencies didn't help:
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>3.0.0</version>
<executions>
<execution>
<phase>test</phase>
<goals>
<goal>java</goal>
</goals>
<configuration>
<mainClass>mypackage.WebServiceCodeGenerator</mainClass>
</configuration>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>jakarta.xml.bind</groupId>
<artifactId>jakarta.xml.bind-api</artifactId>
<version>2.3.3</version>
</dependency>
<dependency>
<groupId>org.glassfish.jaxb</groupId>
<artifactId>jaxb-runtime</artifactId>
<version>2.3.3</version>
</dependency>
</dependencies>
</plugin>
I think the issue is this line in Wsdl2ByteCodes.java:
List<String> compilerOptions = Arrays.asList("-source", "1.8", "-target", "1.8");
When converting a WSDL that has methods with more than one response elements, it ends up putting them as parameters for the request.
Example:
<xsd:element name="getStuffResponse">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="Stuff" type="xsd:string"></xsd:element>
<xsd:element name="More Stuff" type="xsd:string"></xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
Example 2:
<message name="NDFDgenResponse">
<part name="dwmlOut" type="xsd:string"/>
<part name="dwmlOut2" type="xsd:string"/>
</message>
In both cases, the elements will be listed under the request parameters instead of listed under the response.
Hello, Thank you for this tool, it seems great.
Unfortunately, I am getting this error:
Exception in thread "main" java.lang.IllegalStateException: No WebService Class found
which seems to be cause by invalid WSDL file?
It there anything I can do about this to work around so I get something out?
Thanks,
Ashley.
It seems during the process of creating the html, a bunch of extra files are created. After the html is made, these files are no longer needed. Wouldn't it be beneficial to delete the temp files after the document is created?
When trying to run the bash script, it fails to find the class giving the following error.
Error: Could not find or load main class org.jaxws.wsdl2html.ui.Wsdl2HtmlMain.class
This was running in Git Bash (Cygwin) on Windows.
I was attempting to run the script from the same directory using the following command.
./wsdl2html.sh http://myusl/myfile.wsdl .
When providing the wsdl url in the below format:
http[s]://user:password@host:port//<url-path>
The error message is:
Exception in thread "main" org.jaxws.wsdl2bytecodes.service.WsdlImportException:
[INFO] parsing WSDL...
[INFO]
[INFO]
[INFO] [ERROR] Server returned HTTP response code: 401 for URL: http://admin:pass;word@localhost:8080/services/app?wsdl, "http://admin:pass;word@localhost:8080/services/app?wsdl" needs authorization, please provide authorization file with read access at /home/user/.metro/auth or use -Xauthfile to give the authorization file and on each line provide authorization information using this format : http[s]://user:password@host:port//
[INFO]
[INFO]
[ERROR] Exception in thread "main" com.sun.tools.internal.ws.wscompile.AbortException
[ERROR] at com.sun.tools.internal.ws.wsdl.parser.MetadataFinder$WSEntityResolver.resolveEntity(MetadataFinder.java:187)
[ERROR] at com.sun.tools.internal.ws.wsdl.parser.DOMForest.parse(DOMForest.java:198)
[ERROR] at com.sun.tools.internal.ws.wsdl.parser.DOMForest.parse(DOMForest.java:134)
[ERROR] at com.sun.tools.internal.ws.wsdl.parser.MetadataFinder.parseWSDL(MetadataFinder.java:96)
[ERROR] at com.sun.tools.internal.ws.wscompile.WsimportTool.buildWsdlModel(WsimportTool.java:424)
[ERROR] at com.sun.tools.internal.ws.wscompile.WsimportTool.run(WsimportTool.java:190)
[ERROR] at com.sun.tools.internal.ws.wscompile.WsimportTool.run(WsimportTool.java:168)
[ERROR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[ERROR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
[ERROR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[ERROR] at java.lang.reflect.Method.invoke(Method.java:498)
[ERROR] at com.sun.tools.internal.ws.Invoker.invoke(Invoker.java:159)
[ERROR] at com.sun.tools.internal.ws.WsImport.main(WsImport.java:42)
at org.jaxws.wsdl2bytecodes.service.Wsdl2ByteCodes.doWsImport(Wsdl2ByteCodes.java:150)
I expected being able to convert a wsdl with a URL with basic authentication credentials however it seems it is not possible or am I missing something?
I needed to generate some documentation for some legacy SOAP services and your efforts have saved me many hours of work. Know that your efforts are greatly appreciated!!
With the fixes last week, I can now compile the project, but at the las step there's an error because the compiler can't find javadoc. It's strange because javadoc is in the /usr/bin path as java or javac. $JAVA_HOME is unset on my system (I suppose it's the default), if JAVA_HOME is set to /usr/bin/, I get an error stating that I need an sdk instead of jre (both are on the same folder).
$ whereis javadoc
javadoc: /usr/bin/javadoc
javadoc --version ---> javadoc 11.0.4
javac --version ---> 11.0.4
$ java --version
openjdk 11.0.4 2019-07-16
OpenJDK Runtime Environment (build 11.0.4+11-post-Ubuntu-1ubuntu219.04)
OpenJDK 64-Bit Server VM (build 11.0.4+11-post-Ubuntu-1ubuntu219.04, mixed mode, sharing)
This is the message I get on the output
$ mvn package -e
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.google.inject.internal.cglib.core.$ReflectUtils$1 (file:/usr/share/maven/lib/guice.jar) to method java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain)
WARNING: Please consider reporting this to the maintainers of com.google.inject.internal.cglib.core.$ReflectUtils$1
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
[INFO] Error stacktraces are turned on.
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for com.github.chenjianjx:wsdl2html:jar:4.1.0
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ line 90, column 12
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-source-plugin is missing. @ line 58, column 12
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING]
[INFO]
[INFO] ------------------< com.github.chenjianjx:wsdl2html >-------------------
[INFO] Building SOAP WSDL to Html 4.1.0
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ wsdl2html ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 8 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ wsdl2html ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ wsdl2html ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /home/jjuvan/src/wsdl2html/src/test/resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ wsdl2html ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ wsdl2html ---
[INFO] Surefire report directory: /home/jjuvan/src/wsdl2html/target/surefire-reports
T E S T S
Running org.jaxws.wsdl2bytecodes.service.Wsdl2ByteCodesTest
wsdl2bytecodes20191114100835355.LtD.CvHvJ
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.114 sec
Running org.jaxws.bytecodes2stub.service.ByteCodePackageLoadingServiceTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec
Running org.jaxws.bytecodes2stub.util.ClassNameUtilsTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec
Running org.jaxws.stub2html.service.JavaLanguageVariableFactoryTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec
Running org.jaxws.stub2html.util.GenericsUtilsTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 secResults :
Tests run: 8, Failures: 0, Errors: 0, Skipped: 0
[INFO]
[INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ wsdl2html ---
[INFO]
[INFO] >>> maven-source-plugin:3.2.0:jar (attach-sources) > generate-sources @ wsdl2html >>>
[INFO]
[INFO] <<< maven-source-plugin:3.2.0:jar (attach-sources) < generate-sources @ wsdl2html <<<
[INFO]
[INFO]
[INFO] --- maven-source-plugin:3.2.0:jar (attach-sources) @ wsdl2html ---
[INFO]
[INFO] --- maven-javadoc-plugin:3.1.0:jar (attach-javadocs) @ wsdl2html ---
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.904 s
[INFO] Finished at: 2019-11-14T10:08:36+01:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-javadoc-plugin:3.1.0:jar (attach-javadocs) on project wsdl2html: MavenReportException: Error while generating Javadoc: Unable to find javadoc command: The environment variable JAVA_HOME is not correctly set. -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-javadoc-plugin:3.1.0:jar (attach-javadocs) on project wsdl2html: MavenReportException: Error while generating Javadoc: Unable to find javadoc command: The environment variable JAVA_HOME is not correctly set.
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:215)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
at org.apache.maven.cli.MavenCli.execute (MavenCli.java:956)
at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:288)
at org.apache.maven.cli.MavenCli.main (MavenCli.java:192)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke (Method.java:566)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
Caused by: org.apache.maven.plugin.MojoExecutionException: MavenReportException: Error while generating Javadoc: Unable to find javadoc command: The environment variable JAVA_HOME is not correctly set.
at org.apache.maven.plugins.javadoc.AbstractJavadocMojo.failOnError (AbstractJavadocMojo.java:6713)
at org.apache.maven.plugins.javadoc.JavadocJar.doExecute (JavadocJar.java:193)
at org.apache.maven.plugins.javadoc.AbstractJavadocMojo.execute (AbstractJavadocMojo.java:1907)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
at org.apache.maven.cli.MavenCli.execute (MavenCli.java:956)
at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:288)
at org.apache.maven.cli.MavenCli.main (MavenCli.java:192)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke (Method.java:566)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
Caused by: org.apache.maven.reporting.MavenReportException: Unable to find javadoc command: The environment variable JAVA_HOME is not correctly set.
at org.apache.maven.plugins.javadoc.AbstractJavadocMojo.executeReport (AbstractJavadocMojo.java:1991)
at org.apache.maven.plugins.javadoc.JavadocJar.doExecute (JavadocJar.java:189)
at org.apache.maven.plugins.javadoc.AbstractJavadocMojo.execute (AbstractJavadocMojo.java:1907)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
at org.apache.maven.cli.MavenCli.execute (MavenCli.java:956)
at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:288)
at org.apache.maven.cli.MavenCli.main (MavenCli.java:192)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke (Method.java:566)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
Caused by: java.io.IOException: The environment variable JAVA_HOME is not correctly set.
at org.apache.maven.plugins.javadoc.AbstractJavadocMojo.getJavadocExecutable (AbstractJavadocMojo.java:3801)
at org.apache.maven.plugins.javadoc.AbstractJavadocMojo.executeReport (AbstractJavadocMojo.java:1987)
at org.apache.maven.plugins.javadoc.JavadocJar.doExecute (JavadocJar.java:189)
at org.apache.maven.plugins.javadoc.AbstractJavadocMojo.execute (AbstractJavadocMojo.java:1907)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
at org.apache.maven.cli.MavenCli.execute (MavenCli.java:956)
at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:288)
at org.apache.maven.cli.MavenCli.main (MavenCli.java:192)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke (Method.java:566)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
[ERROR]
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
Thanks for your attention.
Hi There,
I love your project!!! Great tool to document WSDL files.
But could you please help me with an error that I get while documenting a large WSDL file?
Looks like the GenericUtils class produces an error when I try to use the tool:
Java files generated at: D:\Downloads\wsdl2html-2.0.1-jarset\wsdl2html-2.0.1.\test\stubs-14652014259001909405815451145366\20160606102345971\VOGxyqaHEj
Exception in thread "main" java.lang.ClassCastException: sun.reflect.generics.reflectiveObjects.WildcardTypeImpl cannot be cast to java.lang.Class
at org.jaxws.stub2html.util.GenericsUtils.digFromGenericType(GenericsUtils.java:46)
at org.jaxws.stub2html.util.GenericsUtils.digFromGenericType(GenericsUtils.java:44)
at org.jaxws.stub2html.util.GenericsUtils.chooseOneType(GenericsUtils.java:35)
at org.jaxws.stub2html.util.GenericsUtils.getFieldGenericType(GenericsUtils.java:19)
at org.jaxws.stub2html.service.JavaLanguageVariableFactory.createVariableFromField(JavaLanguageVariableFactory.java:41)
at org.jaxws.stub2html.service.Variable2Stub.convertFieldsToChildStubs(Variable2Stub.java:44)
at org.jaxws.stub2html.service.Variable2Stub.convertToStub(Variable2Stub.java:35)
at org.jaxws.stub2html.service.Variable2Stub.convertFieldsToChildStubs(Variable2Stub.java:44)
at org.jaxws.stub2html.service.Variable2Stub.convertToStub(Variable2Stub.java:35)
at org.jaxws.stub2html.service.Variable2Stub.convertFieldsToChildStubs(Variable2Stub.java:44)
at org.jaxws.stub2html.service.Variable2Stub.convertToStub(Variable2Stub.java:35)
at org.jaxws.stub2html.service.Variable2Stub.convertFieldsToChildStubs(Variable2Stub.java:44)
at org.jaxws.stub2html.service.Variable2Stub.convertToStub(Variable2Stub.java:35)
at org.jaxws.stub2html.service.Variable2Stub.convertFieldsToChildStubs(Variable2Stub.java:44)
at org.jaxws.stub2html.service.Variable2Stub.convertToStub(Variable2Stub.java:35)
at org.jaxws.stub2html.service.WebMethodStubSetFactory.addRequestStubs(WebMethodStubSetFactory.java:39)
at org.jaxws.stub2html.service.WebMethodStubSetFactory.createWebMethodStubSet(WebMethodStubSetFactory.java:23)
at org.jaxws.stub2html.service.WebServiceStubSetFactory.createWebServiceStubSet(WebServiceStubSetFactory.java:25)
at org.jaxws.wsdl2html.service.Wsdl2Html.generateHtml(Wsdl2Html.java:28)
at org.jaxws.wsdl2html.ui.Wsdl2HtmlMain.main(Wsdl2HtmlMain.java:48)D:\Downloads\wsdl2html-2.0.1-jarset\wsdl2html-2.0.1>
Cheers,
Eddy
http://www.wsdl2html.com/ -> 502 Bad Gateway
When calling generateHtml
of imported 4.0.1 version of this library via maven I get following errors:
org.jaxws.wsdl2bytecodes.service.WsdlImportException:
Compilation Error on line -1 in warning: [options] bootstrap class path not set in conjunction with -source 6
Compilation Error on line -1 in error: Source option 6 is no longer supported. Use 7 or later.
Compilation Error on line -1 in error: Target option 6 is no longer supported. Use 7 or later.
What can I do to fix this?
I've tried using the tool (v3.0.2) with the offical ebay wsdl without success.
Hello, I am trying to understand and adapt your tool, but I don't see the wsdl:documentation reported in the generated HTML.
Is it something in development?
Regards
Since Maven 3.8.1, it is by default prohibited to reference non-HTTPS repositories (even if they are referenced indirectly). See more details at https://maven.apache.org/docs/3.8.1/release-notes.html#cve-2021-26291.
Maven successfully builds package, which generates HTML doc for given WSDL file in local folder.
Maven fails with following output:
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for com.github.chenjianjx:wsdl2html:jar:4.2.1
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ line 90, column 12
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-source-plugin is missing. @ line 58, column 12
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING]
[INFO]
[INFO] ------------------< com.github.chenjianjx:wsdl2html >-------------------
[INFO] Building SOAP WSDL to Html 4.2.1
[INFO] --------------------------------[ jar ]---------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.410 s
[INFO] Finished at: 2021-08-18T19:20:16+03:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project wsdl2html: Could not resolve dependencies for project com.github.chenjianjx:wsdl2html:jar:4.2.1: Failed to collect dependencies at com.sun.xml.ws:wscompile:jar:2.3.1 -> com.sun.xml.ws:rt:jar:2.3.1 -> com.sun.xml.ws:policy:jar:2.7.5 -> org.glassfish.jaxb:txw2:jar:2.4.0-b180608.0325: Failed to read artifact descriptor for org.glassfish.jaxb:txw2:jar:2.4.0-b180608.0325: Could not transfer artifact org.glassfish.jaxb:txw2:pom:2.4.0-b180608.0325 from/to maven-default-http-blocker (http://0.0.0.0/): Blocked mirror for repositories: [releases.java.net (http://maven.java.net/content/repositories/releases/, default, releases+snapshots), jvnet-nexus-staging (http://maven.java.net/content/repositories/staging/, default, releases+snapshots), eclipse (http://download.eclipse.org/rt/eclipselink/maven.repo, default, releases+snapshots), jvnet-nexus-snapshots (http://maven.java.net/content/repositories/snapshots/, default, snapshots)] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
brew install java
brew install maven
mvn clean package
According to official notes there are 2 options to fix the problem:
Since I'm not familiar with Java (last time I touched it back in 2010), I decided to follow 2nd option with the assistance from Stackoverflow, and created settings.xml
in the root of the wsdl2html
folder with content:
<settings xmlns="http://maven.apache.org/SETTINGS/1.2.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.2.0 http://maven.apache.org/xsd/settings-1.2.0.xsd">
<mirrors>
<mirror>
<id>releases-java-net-http-unblocker</id>
<mirrorOf>releases.java.net</mirrorOf>
<name>releases.java.net</name>
<url>http://maven.java.net/content/repositories/releases/</url>
<blocked>false</blocked>
</mirror>
<mirror>
<id>jvnet-nexus-staging-unblocker</id>
<mirrorOf>jvnet-nexus-staging</mirrorOf>
<name>jvnet-nexus-staging</name>
<url>http://maven.java.net/content/repositories/staging/</url>
<blocked>false</blocked>
</mirror>
<mirror>
<id>eclipse-unblocker</id>
<mirrorOf>eclipse</mirrorOf>
<name>eclipse</name>
<url>http://download.eclipse.org/rt/eclipselink/maven.repo</url>
<blocked>false</blocked>
</mirror>
<mirror>
<id>jvnet-nexus-snapshots-unblocker</id>
<mirrorOf>jvnet-nexus-snapshots</mirrorOf>
<name>jvnet-nexus-snapshots</name>
<url>http://maven.java.net/content/repositories/snapshots/</url>
<blocked>false</blocked>
</mirror>
</mirrors>
</settings>
And then run the build specifying custom settings file:
mvn --settings settings.xml clean package
Hi, I try to use this command but I get this error
docker run --rm -v ${pwd}/output:/usr/src/output wsdl2html http://www.webservicex.com/globalweather.asmx?wsdl
Unhandled exception: Drive has not been shared
How to share the drive?
When building with Maven, I get the following error:
[WARNING] The POM for commonj.sdo:commonj.sdo:jar:2.1.1.v201112051852 is missing, no dependency information available
Downloading from central: https://repo.maven.apache.org/maven2/commonj/sdo/commonj.sdo/2.1.1.v201112051852/commonj.sdo-2.1.1.v201112051852.jar
[ERROR] Failed to execute goal on project ***: Could not resolve dependencies for project ***T: Failure to find commonj.sdo:commonj.sdo:jar:2.1.1.v201112051852 in https://repo.maven.apache.org/maven2/ was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced -> [Help 1]
Indeed I cannot find the artifact on Maven Central (although I can find it on https://mvnrepository.com).
I have solved it by exclusion, without further issues:
<dependency>
<groupId>com.github.chenjianjx</groupId>
<artifactId>wsdl2html</artifactId>
<version>4.2.0</version>
<exclusions>
<exclusion>
<groupId>commonj.sdo</groupId>
<artifactId>commonj.sdo</artifactId>
</exclusion>
</exclusions>
</dependency>
Can you please elaborate why this dependency is needed and either remove it or change it it:
<dependency>
<groupId>org.eclipse.persistence</groupId>
<artifactId>commonj.sdo</artifactId>
<version>2.1.1</version>
</dependency>
This feels like the more official version.
Running it with Java 11 causes the following errors and more.
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ wsdl2html ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 29 source files to /bin/wsdl2html-3.0.2/target/classes
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] /bin/wsdl2html-3.0.2/src/main/java/org/jaxws/stub2html/service/JavaLanguageVariableFactory.java:[11,17] package javax.jws does not exist
[ERROR] /bin/wsdl2html-3.0.2/src/main/java/org/jaxws/stub2html/service/JavaLanguageVariableFactory.java:[12,17] package javax.jws does not exist
[ERROR] /bin/wsdl2html-3.0.2/src/main/java/org/jaxws/stub2html/service/JavaLanguageVariableFactory.java:[13,33] package javax.xml.bind.annotation does not exist
[ERROR] /bin/wsdl2html-3.0.2/src/main/java/org/jaxws/stub2html/service/JavaLanguageVariableFactory.java:[48,60] cannot find symbol
...
Explicitly declaring the javax.xml dependencies should hopefully solve this issue.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.