Register / Login
Win a copy of
The Way of the Web Tester: A Beginner's Guide to Automating Tests
this week in the
WebServices in Eclipse
posted 8 years ago
I am trying to create a web service in eclipse 3.2 and using
1.6, i am getting a warning which is as follow, also i am getting error that platform is using Java greater than 1.4 .
Can someone tell me
i use Java 1.4 for web service? But I am also using annotation within my application and generics that require Java 5 or greater ?
Warning when try to run wizard in eclipse;
The service class "com.wonder.common.impl.UserServiceImpl" does not comply to one or more requirements of the JAX-RPC 1.1 specification, and may not deploy or function correctly. The method "findAllRoles" on the service class "com.wonder.common.impl.UserServiceImpl" uses a data type, "java.util.List", that is not supported by the JAX-RPC specification. Instances of the type may not serialize or deserialize correctly. Loss of data or complete failure of the Web service may result. The method "getPermissions" on the service class "com.wonder.common.impl.UserServiceImpl" uses a data type, "java.util.Set", that is not supported by the JAX-RPC specification. Instances of the type may not serialize or deserialize correctly. Loss of data or complete failure of the Web service may result. The value type "com.wonder.common.intf.Role" used via the service class "com.wonder.common.impl.UserServiceImpl" does not have a public default constructor. Chapter 5.4 of the JAX-RPC 1.1 specification requires a value type to have a public default constructor, otherwise a JAX-RPC 1.1 compliant Web service engine may be unable to construct an instance of the value type during deserialization.
Thanks in Advance,
posted 8 years ago
You can switch to JDK 1.5 and get rid of these errors.
Regards,<br /> <br />Seetesh Hindlekar<br />Technical Architect
Web Service, Axis 1.4, Array List.
Unable to create Axis 2 WEb services in Eclipse using Tomcat
Help to create a Web service that return javax.mail.internet.MimeMultipart
How to create Web service that returns javax.mail.internet.MimeMultipart