Getting 500 Error while generating WSDL in Soap Webservices in java? - 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.

Related

java 8 supported web service frameworks

What are the java 8 features supported web service frame works.
I tried with axis2 latest version, but it shows the below error,
org.apache.axis2.deployment.DeploymentException: The following error occurred during schema generation: Error looking for paramter names in bytecode: unexpected bytes in file
at org.apache.axis2.deployment.ServiceBuilder.populateService(ServiceBuilder.java:441)
at org.apache.axis2.deployment.repository.util.ArchiveReader.buildServiceGroup(ArchiveReader.java:109)
at org.apache.axis2.deployment.repository.util.ArchiveReader.processServiceGroup(ArchiveReader.java:232)
at org.apache.axis2.deployment.ServiceDeployer.deploy(ServiceDeployer.java:154)

IWAB0399E Error use java -D

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?

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.

Jetty build success, but in the browser i am getting "Error 503 Service Unavailable"

To run my application locally i am building it using 'mvn jetty:run' command. It builds my app properly without any issue.
But still in my browser i am getting an error saying :
HTTP ERROR: 503
Problem accessing /s/projectdash/. Reason:
Service Unavailable
Powered by Jetty://
I am not able to understand this issue. any one help me to sort this please?

"The server encountered an error and could not complete your request" on appengine

I am beginner of JAVA and JSP. I am doing semester project on appengine. I have deployed project and there are no compilation or other errors. But when I open my application link it gives an error which is
Error: Server Error
The server encountered an error and could not complete your request.
If the problem persists, please report your problem and mention this error message and the query that caused it.
In my application logs I have seen three types of problems which are
/favicon.ico 404 9ms 0kb
182.177.75.115 - - [19/Dec/2011:05:29:57 -0800] "GET /favicon.ico HTTP/1.1" 404 0 - - "cloudisapp.appspot.com" ms=9 cpu_ms=0 api_cpu_ms=0 cpm_usd=0.000033
No handlers matched this URL.
Uncaught exception from servlet
java.lang.UnsupportedClassVersionError: com/google/mystorage/server/GreetingServiceImpl : Unsupported major.minor version 51.0
java.lang.UnsupportedClassVersionError: com/google/mystorage/server/GreetingServiceImpl : Unsupported major.minor version 51.0
This request caused a new process to be started for your application, and thus caused your application code to be loaded for the first time. This request may thus take longer and use more CPU than a typical request for your application.
The error under 2. means that you are compiling classes under certain JDK version and then trying to run them under the older version of JDK/JRE.
Since AppEngine supports java 5 and 6, I'm guessing that you use Java 7 (OpenJDK)?
Btw, error under 1. is not serious: you are just missing a favicon. See this: http://www.w3.org/2005/10/howto-favicon
Check the Admin logs for your project. I had the same issue and in my case was: "Unauthorized sende". Your sender needs to have privilages to send e-mail. In my case just the account owner can do it.

Categories