473,320 Members | 1,719 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

org.apache cannot be resolved to a type - error

Hi, I am trying to implement Java Web Service using Apache Axis2 and Eclipse as a tool. I have created the basic code and deployed the service using various eclipse plugin but when I try to invoke the service using client stub, I get this error...

Expand|Select|Wrap|Line Numbers
  1. Exception in thread "main" java.lang.Error: Unresolved compilation problems: 
  2.     org.apache cannot be resolved to a type
  3.     org.apache cannot be resolved to a type
  4.     org.apache cannot be resolved to a type
  5.     org.apache cannot be resolved to a type
  6.     org.apache cannot be resolved to a type
  7.     org.apache cannot be resolved to a type
  8.     _serviceClient cannot be resolved
  9.     org.apache cannot be resolved to a type
  10.     _service cannot be resolved
  11.     _serviceClient cannot be resolved
  12.     _serviceClient cannot be resolved
  13.     org.apache cannot be resolved to a type
  14.     _serviceClient cannot be resolved
  15.     _serviceClient cannot be resolved
  16.     org.apache cannot be resolved
  17.     org.apache cannot be resolved to a type
  18.     org.apache cannot be resolved to a type
  19.     org.apache cannot be resolved to a type
  20.     org.apache cannot be resolved to a type
  21.     The constructor TemperatureConverterStub(null, String) is undefined
  22.     org.apache cannot be resolved to a type
  23.     _serviceClient cannot be resolved
  24.     _operations cannot be resolved
  25.     org.apache cannot be resolved
  26.     org.apache cannot be resolved to a type
  27.     org.apache cannot be resolved to a type
  28.     org.apache cannot be resolved to a type
  29.     _serviceClient cannot be resolved
  30.     org.apache cannot be resolved to a type
  31.     org.apache cannot be resolved
  32.     org.apache cannot be resolved to a type
  33.     org.apache cannot be resolved to a type
  34.     org.apache cannot be resolved to a type
  35.     org.apache cannot be resolved to a type
  36.     org.apache cannot be resolved to a type
  37.     org.apache cannot be resolved to a type
  38.     org.apache cannot be resolved
  39.     org.apache cannot be resolved
  40.     org.apache cannot be resolved to a type
  41.     org.apache cannot be resolved to a type
  42.     org.apache cannot be resolved
  43.     org.apache cannot be resolved
  44.     org.apache cannot be resolved
  45.     org.apache cannot be resolved to a type
  46.     org.apache cannot be resolved
  47.     org.apache cannot be resolved to a type
  48.     org.apache cannot be resolved to a type
  49.     org.apache cannot be resolved
  50.     org.apache cannot be resolved
  51.     org.apache cannot be resolved to a type
  52.     org.apache cannot be resolved to a type
  53.     org.apache cannot be resolved
  54.     org.apache cannot be resolved
  55.     org.apache cannot be resolved
  56.     org.apache cannot be resolved to a type
  57.     org.apache cannot be resolved
  58.     org.apache cannot be resolved to a type
  59.     org.apache cannot be resolved to a type
  60.     org.apache cannot be resolved to a type
  61.     org.apache cannot be resolved
  62.     org.apache cannot be resolved
  63.     org.apache cannot be resolved to a type
  64.     org.apache cannot be resolved to a type
  65.     org.apache cannot be resolved
  66.     org.apache cannot be resolved
  67.     org.apache cannot be resolved
  68.     org.apache cannot be resolved to a type
  69.     org.apache cannot be resolved
  70.     org.apache cannot be resolved to a type
  71.     org.apache cannot be resolved to a type
  72.     org.apache cannot be resolved
  73.     org.apache cannot be resolved
  74.     org.apache cannot be resolved to a type
  75.     org.apache cannot be resolved to a type
  76.     org.apache cannot be resolved
  77.     org.apache cannot be resolved
  78.     org.apache cannot be resolved
  79.     org.apache cannot be resolved to a type
  80.     org.apache cannot be resolved
  81.     org.apache cannot be resolved to a type
  82.     org.apache cannot be resolved to a type
  83.     org.apache cannot be resolved to a type
  84.     org.apache cannot be resolved to a type
  85.     org.apache cannot be resolved to a type
  86.     org.apache cannot be resolved to a type
  87.     org.apache cannot be resolved to a type
  88.     org.apache cannot be resolved to a type
  89.     org.apache cannot be resolved to a type
  90.  
  91.     at ws.example.TemperatureConverterStub.<init>(TemperatureConverterStub.java:17)
  92.     at ws.example.TemperatureConverterServiceClient.main(TemperatureConverterServiceClient.java:8)
  93.  
Does anyone know about these kind of errors. I do have all the important Apache classes in the lib folder within the Java project.

Thanks.
AJ

The two error files are -
Expand|Select|Wrap|Line Numbers
  1. package ws.example;
  2.  
  3. public class TemperatureConverterServiceClient {
  4.     public static void main(String[] args) {
  5.         TemperatureConverterStub stub;
  6.         try {
  7.             double c_value = 32;
  8.             stub = new TemperatureConverterStub
  9.            ("http://localhost:8080/axis2/services/TemperatureConverter");
  10.             TemperatureConverterStub.C2FConvertion c2f = new TemperatureConverterStub.C2FConvertion();
  11.             c2f.setCValue(c_value); 
  12.             TemperatureConverterStub.C2FConvertionResponse res = stub.c2FConvertion(c2f);  
  13.             System.out.println("C Value : "+c_value+ "\tResult : " +res.get_return());
  14.             TemperatureConverterStub.F2CConvertion f2c = new TemperatureConverterStub.F2CConvertion(); 
  15.             f2c.setFValue(res.get_return());
  16.  
  17.             TemperatureConverterStub.F2CConvertionResponse res1 = stub.f2CConvertion(f2c);
  18.             System.out.println("F Value : "+res.get_return()+ "\tResult : " +res1.get_return());
  19.        } catch (Exception e) {
  20.            e.printStackTrace();
  21.        }
  22.     }
  23. }
  24.  
Oct 4 '07 #1
3 17056
skini
1
Hi ,
I am trying out this and I get a org.apache.woden.resolver problem.
Did you resolve your earlier problem

Thanks
Sep 9 '08 #2
Hi ,
I am trying out this and I get a org.apache.woden.resolver problem.
Did you resolve your earlier problem

Thanks
No. It still stands unresolved.
Sep 9 '08 #3
r035198x
13,262 8TB
You were trying to run the program before successfully compiling all the required classes. You are probably missing some import statements.
Sep 10 '08 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: Tim Cartwright | last post by:
I have a page that has the login control on it, nothing else. This page inherits from a master page, neither page has any code in it. This page works perfectly when running on the WebDev debug web...
2
by: Paul Hemans | last post by:
I am very new at .Net. I have a small project where I need to manipulate the contents of a web page. I have a form with a web browser control (webBrowser1) on it. Within the...
2
by: keithb | last post by:
A web site published from its development environment (VS Web Server) to an IIS 6.0 site displays this message: Compiler Error Message: CS0030: Cannot convert type 'ASP.login_aspx' to...
669
by: Xah Lee | last post by:
in March, i posted a essay “What is Expressiveness in a Computer Language”, archived at: http://xahlee.org/perl-python/what_is_expresiveness.html I was informed then that there is a academic...
6
by: John | last post by:
The following code: int test = 1; bool isTrue = (bool)test; results in a compiler error: Cannot convert type 'int' to 'bool' wtf, any ideas on how to work around this?
2
by: Paulo | last post by:
DataRow dr = (DataRow)ds.Tables.Rows.ItemArray; Error 1 Cannot convert type 'object' to 'System.Data.DataRow' C:\Documents and Settings\Fabio\Meus documentos\Visual Studio...
2
by: nomad | last post by:
Hi, When trying to serialize a class I keep getting the message below. optionalExtensionTypeOptionalExtension is not mandatory so not sure why this is appearing. If anyone has seen this type...
2
by: navneet88 | last post by:
httpservlet cannot resolved to a type
1
by: Alien | last post by:
Hi guys, I am doing JSP stuff in eclipse and when I open my file, i get a red cross on the line: <%@page import="org.apache.xml.serialize.*"%> When i move my mouse over it says:
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, youll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.