473,388 Members | 979 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,388 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 17073
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: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.