Go Back   Velocity Reviews > General Computer Discussion > Software
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Search this Thread
Old 10-09-2007, 08:56 AM   #1
Default Eclipse - Axis2 - Java Webservices Error


Hi, I have tried to implement a Java Web Service using Eclipse plugins and Apache products like Tomcat-Axis2. I am stuck at the last part where I am getting this error.

I have all the Jar files in my lib folder under Projects directory. I have axis2.jar which contains the classes needed here. But I do not understand why am I getting this compile time error.

Thanks for you help in advance.


Code:
Exception in thread "main" java.lang.Error: Unresolved compilation problems: org.apache cannot be resolved to a type org.apache cannot be resolved to a type org.apache cannot be resolved to a type org.apache cannot be resolved to a type org.apache cannot be resolved to a type org.apache cannot be resolved to a type _serviceClient cannot be resolved org.apache cannot be resolved to a type _service cannot be resolved _serviceClient cannot be resolved _serviceClient cannot be resolved org.apache cannot be resolved to a type _serviceClient cannot be resolved _serviceClient cannot be resolved org.apache cannot be resolved org.apache cannot be resolved to a type org.apache cannot be resolved to a type org.apache cannot be resolved to a type org.apache cannot be resolved to a type The constructor TemperatureConverterStub(null, String) is undefined org.apache cannot be resolved to a type _serviceClient cannot be resolved _operations cannot be resolved org.apache cannot be resolved org.apache cannot be resolved to a type org.apache cannot be resolved to a type org.apache cannot be resolved to a type _serviceClient cannot be resolved org.apache cannot be resolved to a type org.apache cannot be resolved org.apache cannot be resolved to a type org.apache cannot be resolved to a type org.apache cannot be resolved to a type org.apache cannot be resolved to a type org.apache cannot be resolved to a type org.apache cannot be resolved to a type org.apache cannot be resolved org.apache cannot be resolved org.apache cannot be resolved to a type org.apache cannot be resolved to a type org.apache cannot be resolved org.apache cannot be resolved org.apache cannot be resolved org.apache cannot be resolved to a type org.apache cannot be resolved org.apache cannot be resolved to a type org.apache cannot be resolved to a type org.apache cannot be resolved org.apache cannot be resolved org.apache cannot be resolved to a type org.apache cannot be resolved to a type org.apache cannot be resolved org.apache cannot be resolved org.apache cannot be resolved org.apache cannot be resolved to a type org.apache cannot be resolved org.apache cannot be resolved to a type org.apache cannot be resolved to a type org.apache cannot be resolved to a type org.apache cannot be resolved org.apache cannot be resolved org.apache cannot be resolved to a type org.apache cannot be resolved to a type org.apache cannot be resolved org.apache cannot be resolved org.apache cannot be resolved org.apache cannot be resolved to a type org.apache cannot be resolved org.apache cannot be resolved to a type org.apache cannot be resolved to a type org.apache cannot be resolved org.apache cannot be resolved org.apache cannot be resolved to a type org.apache cannot be resolved to a type org.apache cannot be resolved org.apache cannot be resolved org.apache cannot be resolved org.apache cannot be resolved to a type org.apache cannot be resolved org.apache cannot be resolved to a type org.apache cannot be resolved to a type org.apache cannot be resolved to a type org.apache cannot be resolved to a type org.apache cannot be resolved to a type org.apache cannot be resolved to a type org.apache cannot be resolved to a type org.apache cannot be resolved to a type org.apache cannot be resolved to a type at ws.example.TemperatureConverterStub.<init>(TemperatureConverterStub.java:17) at ws.example.TemperatureConverterServiceClient.main(TemperatureConverterServiceClient.java:8)

The TemperatureConverterServiceClient.java is -

Code:
package ws.example; public class TemperatureConverterServiceClient { public static void main(String[] args) { TemperatureConverterStub stub; try { double c_value = 32; stub = new TemperatureConverterStub ("http://localhost:8080/axis2/services/TemperatureConverter"); TemperatureConverterStub.C2FConvertion c2f = new TemperatureConverterStub.C2FConvertion(); c2f.setParam0(c_value); TemperatureConverterStub.C2FConvertionResponse res = stub.c2FConvertion(c2f); System.out.println("C Value : "+c_value+ "\tResult : " +res.get_return()); TemperatureConverterStub.F2CConvertion f2c = new TemperatureConverterStub.F2CConvertion(); f2c.setParam0(res.get_return()); TemperatureConverterStub.F2CConvertionResponse res1 = stub.f2CConvertion(f2c); System.out.println("F Value : "+res.get_return()+ "\tResult : " +res1.get_return()); } catch (Exception e) { e.printStackTrace(); } } }

and TemperatureConverterStub.java is (it is quite huge as it is generated by the eclipse plugin from WSDL file) -


amanjsingh

Last edited by amanjsingh : 10-09-2007 at 08:58 AM.
amanjsingh is offline   Reply With Quote
Old 10-09-2007, 09:03 AM   #2
amanjsingh
Junior Member
 
Join Date: Oct 2007
Posts: 2
Default Attached is all the source code
I ahve attached the source code. There are four Java files in it. I hope someone can help me with this.
Thanks.


amanjsingh
Attached Files
File Type: zip sourcefiles.zip (9.0 KB, 0 views)
amanjsingh is offline   Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Axis java client error "Unrecognized SSL message, plaintext connection" joeandmav Software 0 02-03-2009 05:28 AM
Java Error: java.lang.ClassFormatError: oracle/jdbc/ttc7/TTC7Protocol Shalz Software 0 03-08-2008 06:05 PM
Need help on Modelsim VHDL syntax? ASAP:) kaji General Help Related Topics 0 03-14-2007 10:43 PM
Need help on a Modelsim VHDL Syntax? ASAP:) kaji Software 0 03-14-2007 10:43 PM
Need Help on a Modelsim VHDL Syntax....ASAP:) kaji Hardware 0 03-14-2007 10:41 PM




SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46