Win a copy of 97 Things Every Java Programmer Should Know this week in the Java in General forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

org.apache.axis cannot be resolved to a type (Eclipse Helios)

 
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

I've just taken over an eclipse project. It's a webservice. This is the first web service project i've looked at, also i've never worked with eclipse, so i might have missed something basic.

There's a lot of "cannot be resolved to a type" errors, org.apache.axis is one of them.

- I added all the jar files that came with the project to build path libraries. Including all the axis2 jar files.
- The jar files is now located under project -> Referenced Libraries.
- Under preferences -> Web Services -> Axis2 Preferences i've set the Axis2 runtime location. "Axis2 runtime loaded successfully".
- Added server Tomcat v7.0

I've searched the web for some time, but i'm stuck at the moment.

Am i missing anything?

 
Ranch Hand
Posts: 1325
Android Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try this short key Ctrl+Shift+O.
This will organize imports meaning only import packages used by class.
 
terr lundamo
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Muhammad Saifuddin wrote:Try this short key Ctrl+Shift+O.
This will organize imports meaning only import packages used by class.



Thanks for the tip but no luck, "0 imports added"
 
Ranch Hand
Posts: 859
IBM DB2 Chrome Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
According to:
http://findjar.com/class/org/apache/axis/description/TypeDesc.html

This Class seems only to be in axis1.x

You state you have added the axis2 jars, so this tells me that the project is using axis1.x

WP
 
terr lundamo
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
findjar.com is bookmarked! never seen that site

I'll try using axis1.

 
terr lundamo
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It compiles, now to figure out how to run this project:)

Thank you!
 
These are the worst of times and these are the best of times. And this is the best tiny ad:
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic