Hi.
I have an Axis (1.4) web service (running on Tomcat 6.0.20) that is working fine until I try to use any class from another project.
I have my web service project and another project containing business logic. I have added the business logic project as a project dependency/reference in my web service project.
package MyProject.services;
import BusinessLogic.Core.TestClass;
public class MyServiceImpl implements MyProject.services.MyServiceImpl_PortType {
public java.lang.String getServerStatus() throws java.rmi.RemoteException {
//BusinessLogic.Core.TestClass core = new BusinessLogic.Core.TestClass();
return "This is working fine!";
}
}
When I invoke the method above, everything works fine. However, if I uncomment the line in getServerStatus(), I get a NoClassDefFoundException.
The code is ofcourse compiling fine and as far as I can see i have added all dependencies. The TestClass has only a constructor that prints "Hello" and has no other dependencies.
I'm relatively new to java web services so it is probably just a stupid mistake I have made. Do you have any ideàs?