IWAB0399E Error use java -D - java

I have a wsdl file that i imported to my project in Eclipse Kepler. Then i tried to generate a client in Kepler, but i kept getting this error.
I tried many solutions but nothing seemed to work. Now i found a new solution which is to use:
java -Dhttp.proxySet=true -Dhttp.proxyHost={value} -Dhttp.proxyPort={value} org.apache.axis.wsdl.WSDL2Java {wsdlURL}
but where do i use this command and what are the values that i should give it?
IWAB0399E Error in generating Java from WSDL:
WSDLException (at /wsdl:definitions/wsdl:types/xsd:schema):
faultCode=OTHER_ERROR: An error occurred trying to resolve schema referenced
at 'Error.xsd', relative to 'file:/D:/home/eclipse_workspace/TEST/work
/gsi.wsdl'.: This file was not found: file:/D:/home/eclipse_workspace
/TEST/work/Error.xsd: java.io.FileNotFoundException: This file was not
found: file:/D:/home/eclipse_workspace/TEST/work/Error.xsd
Any idea on how i solve this problem?

Related

Error parsing xmldsig-core/xmldsig-core-schema.xsd

I am generating the client code from a wsdl file. Without any change on code, it stopped working and now I'm getting the following error message:
[ERROR] Failed to execute goal
org.apache.cxf:cxf-codegen-plugin:2.1.2:wsdl2java (generate-sources)
on project myProject: org.apache.cxf.wsdl11.WSDLRuntimeException: Fail
to create wsdl definition from :
file:/C:/myproject/src/main/resources/myservice.wsdl [ERROR] Caused by
: WSDLException (at
/wsdl:definitions/wsdl:types/xsd:schema/xsd:schema):
faultCode=PARSER_ERROR: Problem parsing
'http://www.w3.org/TR/xmldsig-core/xmldsig-core-schema.xsd'.:
java.io.FileNotFoundException:
http://www.w3.org/TR/xmldsig-core/xmldsig-core-schema.xsd
Copy the contents of the schema here
https://archive.evolveum.com/downloads/midpoint/1.9/midpoint-xsddocs-1.9/schemas/xmldsig-core-schema_xsd/schema-overview.html#xml_source
to a local file and amend 'http://www.w3.org/TR/xmldsig-core/xmldsig-core-schema.xsd' to the new path of your local schema.
or amend 'http://www.w3.org/TR/xmldsig-core/xmldsig-core-schema.xsd' to:
https://www.w3.org/TR/2008/REC-xmldsig-core-20080610/xmldsig-core-schema.xsd
This is happening because one of the references again references this link. By default wsdl2java will try to open all linked xsd's - if they are needed or not. Please also check -nexclude option for wsdl2java http://cxf.apache.org/docs/wsdl-to-java.html

XML error in my netbeans project

I transfered my game project from windows machine to mac and when I opened the project it gave me an error which I am not able to resolve.
errors look something like this:
/Users/dinajam/NetBeansProjects/Flip Flop/build.xml:12: The following error occurred while executing this line:
/Users/dinajam/NetBeansProjects/Flip Flop/nbproject/build-impl.xml:1: Content is not allowed in prolog.
Tomorrow is my project submission and i have to present using mac.

Getting 500 Error while generating WSDL in Soap Webservices in java?

I am getting below while creating web services in java.I am using jdk 1.8.Same application is working in another system.
But Client Side-Java Proxy is working properly..
HTTP ERROR: 500
Problem accessing /wse/perspective_toolbar.jsp;jsessionid=4wcj5ao8uenq7piua5t4m1vc. Reason:
PWC6033: Error in Javac compilation for JSP
PWC6197: An error occurred at line: 19 in the jsp file: /perspective_toolbar.jsp
PWC6199: Generated servlet error:
The type java.lang.CharSequence cannot be resolved. It is indirectly referenced from required .class files
Powered by Jetty://
Thanks,
Parveen.
I have solve the above problem by uninstalling jdk8 and installing jdk7.It seems I got this issue because of jdk8.
Thanks,
Parveen.

Build Failed in Liferay 6.2

I am getting Build Failed, while deploying the Portlets,Themes and Layouts in liferay 6.2 on ubuntu OS .
The console messages are:
The Build Failed Message on Console:
BUILD FAILED
/opt/scrum-6.2/plugins/layouttpl/20x80-layouttpl/build.xml:7: The following error occurred while executing this line:
/opt/scrum-6.2/plugins/layouttpl/build-common-layouttpl.xml:5: The following error occurred while executing this line:
/opt/scrum-6.2/plugins/build-common-plugin.xml:5: The following error occurred while executing this line:
/opt/scrum-6.2/plugins/build-common.xml:47: The following error occurred while executing this line:
/opt/scrum-6.2/plugins/build-common-ivy.xml:17: The specified destination is a directory
Can any one help me?
Solution -> Edit build-common-ivy.xml and change line 17 so that it looks like this:
dest="${ivy.home}/ivy-${ivy.version}.jar"
Also, it complains that you need Ant 1.8, so be sure to upgrade to 1.8.
I have resolved the build failed issue
The following file is missing in plugins:
---> build.username.properties file
And inside the .ivy folder,cache folder and ivy-2.3.0.jar files are missed.
I just have added the above things in plugins.

ADBException in using WebEnv & QueryKey example for EFetch

I used the example code "Using WebEnv & QueryKey example" from http://www.ncbi.nlm.nih.gov/books/NBK55696/ - the ESearch part seems to work fine, but not EFetch. I added the command "e.printStackTrace()" to get the full error message:
WebEnv: NCID_1_160921978_130.14.18.34_9001_1392822285_1227953195
QueryKey: 1
org.apache.axis2.AxisFault: org.apache.axis2.databinding.ADBException: Unexpected subelement {http://www.ncbi.nlm.nih.gov/soap/eutils/efetch_pubmed}Affiliation
org.apache.axis2.AxisFault: org.apache.axis2.databinding.ADBException: Unexpected subelement {http://www.ncbi.nlm.nih.gov/soap/eutils/efetch_pubmed}Affiliation
at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)
at gov.nih.nlm.ncbi.www.soap.eutils.EFetchPubmedServiceStub.fromOM(EFetchPubmedServiceStub.java)
at gov.nih.nlm.ncbi.www.soap.eutils.EFetchPubmedServiceStub.run_eFetch(EFetchPubmedServiceStub.java:190)
at preparation.Client.main(Client.java:39)
Caused by: java.lang.Exception: org.apache.axis2.databinding.ADBException: Unexpected subelement {http://www.ncbi.nlm.nih.gov/soap/eutils/efetch_pubmed}Affiliation
at gov.nih.nlm.ncbi.www.soap.eutils.EFetchPubmedServiceStub$AuthorType$Factory.parse(EFetchPubmedServiceStub.java:47561)
at gov.nih.nlm.ncbi.www.soap.eutils.EFetchPubmedServiceStub$AuthorListType$Factory.parse(EFetchPubmedServiceStub.java:12284)
at gov.nih.nlm.ncbi.www.soap.eutils.EFetchPubmedServiceStub$ArticleType$Factory.parse(EFetchPubmedServiceStub.java)
at gov.nih.nlm.ncbi.www.soap.eutils.EFetchPubmedServiceStub$MedlineCitationType$Factory.parse(EFetchPubmedServiceStub.java:27035)
at gov.nih.nlm.ncbi.www.soap.eutils.EFetchPubmedServiceStub$PubmedArticleType$Factory.parse(EFetchPubmedServiceStub.java:17841)
at gov.nih.nlm.ncbi.www.soap.eutils.EFetchPubmedServiceStub$PubmedArticleSetChoiceE$Factory.parse(EFetchPubmedServiceStub.java)
at gov.nih.nlm.ncbi.www.soap.eutils.EFetchPubmedServiceStub$PubmedArticleSet_type0$Factory.parse(EFetchPubmedServiceStub.java:54143)
at gov.nih.nlm.ncbi.www.soap.eutils.EFetchPubmedServiceStub$EFetchResult$Factory.parse(EFetchPubmedServiceStub.java:48494)
... 3 more
Caused by: org.apache.axis2.databinding.ADBException: Unexpected subelement {http://www.ncbi.nlm.nih.gov/soap/eutils/efetch_pubmed}Affiliation
at gov.nih.nlm.ncbi.www.soap.eutils.EFetchPubmedServiceStub$AuthorType$Factory.parse(EFetchPubmedServiceStub.java:47555)
... 10 more
I am using Eclipse (Version: 3.7.2) with Ubuntu 12.04 LTS and java-7-openjdk-amd64 as JRE. The NCBI page mentions to use this command before runnning Client.java:
wsdl2java -uri http://eutils.ncbi.nlm.nih.gov/soap/v2.0/efetch_pubmed.wsdl
Instead of that, I simply included the jar files (only binaries) that have been shown as output in console, because this worked fine for all other exapmles on http://www.ncbi.nlm.nih.gov/books/NBK55696/ except the ELink example:
org.apache.axis2.AxisFault: org.apache.axis2.databinding.ADBException: Unexpected subelement {http://www.ncbi.nlm.nih.gov/soap/eutils/elink}error
I will describe which jar files I included in my project.
As the FTP link for downloading eutils_axis2.jar on the above mentioned page did not work, I searched for the current path and added it to my Eclipse project.
Their README says that JDK version 7.0.45 and Axis2 version 1.6.2 should be used and that it was released in December 2013.
I searched for "download wsdl2java.sh" in Google to get the Axis2 version in connection to WSDL and found the package axis2-eclipse-service-plugin-1.6.2.zip . I downloaded the package and added all jar files to my project:
apache-mime4j-core-0.7.2.jar
axiom-api-1.2.13.jar
axiom-impl-1.2.13.jar
axis2-adb-1.6.2.jar
axis2-codegen-1.6.2.jar
axis2-kernel-1.6.2.jar
commons-codec-1.3.jar
commons-fileupload-1.2.jar
commons-httpclient-3.1.jar
geronimo-jta_1.1_spec-1.1.jar
geronimo-ws-metadata_2.0_spec-1.1.2.jar
jaxen-1.1.1.jar
jsr311-api-1.0.jar
neethi-3.0.2.jar
servlet-api-2.3.jar
woden-api-1.0M9.jar
woden-impl-commons-1.0M9.jar
woden-impl-dom-1.0M9.jar
wsdl4j-1.6.2.jar
XmlSchema-1.4.7.jar
Then I searched the packages for the remaining error messages:
axis2-transport-http-1.6.2.jar
axis2-transport-local-1.6.2.jar
commons-logging-1.1.3.jar
geronimo-javamail_1.4_spec-1.7.1.jar
httpcore-4.3.2.jar
I searched for similar cases with Google, but I did not find a solution. How can I fix this message mentioned at the beginning?
The corresponding wsdl file mentioned in the NCBI tutorial is from 2010. Maybe it is outdated, but first, be sure that creating the specified java classes works fine. Do the following steps result in an error?
Download and extract axis2-1.6.2.
Set the environment variables
export AXIS2_HOME=<path/to/axis2-1.6.2>
export JAVA_HOME=<path/to/java-7-openjdk-amd64>
Download the following files
http://eutils.ncbi.nlm.nih.gov/soap/v2.0/efetch_pubmed.xsd
http://eutils.ncbi.nlm.nih.gov/soap/v2.0/efetch_db_pubmed.xsd
http://eutils.ncbi.nlm.nih.gov/soap/v2.0/efetch_pubmed.wsdl
and execute bin/wsdl2java.sh within the axis2-1.6.2 directory using the efetch_pubmed.wsdl file.
sh wsdl2java.sh -uri <path/to/efetch_pubmed.wsdl>
Two java classes should appear in
src/gov/nih/nlm/ncbi/www/soap/eutils
(still in your axis/bin directory). Import and use these files with your Client.java (pointing to the filename in the tutorial).
Works fine for me. Hope that helps.

Categories