Hi,
I've generated with Axis-1.1 stubs for the Google-webservice and built a
working client. Then I've built an EJB session bean in JBoss were I call
the google-webservice. I use the same (copy-paste) methods in the bean
as in the axis-client but every time I invoke the bean-method from an
ejb client there is a NoSuchMethodError. The bean is working, because
I'm able to invoke other methods without problems.
The exception always occured at this line:
GoogleSearchService service = new GoogleSearchServiceLocator();
-> GoogleSearchPort port = service.getGoogleSearchPort();
I use jboss-3.2.6 and axis-1.1.
This ist the stack-trace in detail:
java.rmi.ServerException: RemoteException occurred in server thread;
nested exception is:
java.rmi.ServerError: Unexpected Error:; nested exception is:
java.lang.NoSuchMethodError:
org.apache.axis.description.TypeDesc.<init>(Ljava/lang/Class;Z)V
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:292)
.
.
.
Caused by: java.rmi.ServerError: Unexpected Error:; nested exception is:
java.lang.NoSuchMethodError:
org.apache.axis.description.TypeDesc.<init>(Ljava/lang/Class;Z)V
at
org.jboss.ejb.plugins.LogInterceptor.handleException(LogInterceptor.java:398)
.
.
.
Caused by: java.lang.NoSuchMethodError:
org.apache.axis.description.TypeDesc.<init>(Ljava/lang/Class;Z)V
at
GoogleSearch.GoogleSearchResult.<clinit>(GoogleSearchResult.java:332)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:141)
at
GoogleSearch.GoogleSearchBindingStub.class$(GoogleSearchBindingStub.java:27)
...
When I call the bean-method a second time, there is another exception,
but on the same lines:
java.rmi.ServerException: RemoteException occurred in server thread;
nested exception is:
java.rmi.ServerError: Unexpected Error:; nested exception is:
java.lang.NoClassDefFoundError
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:292)
.
.
.
Caused by: java.lang.NoClassDefFoundError
at
GoogleSearch.GoogleSearchServiceLocator.getGoogleSearchPort(GoogleSearchServiceLocator.java:43)
at
GoogleSearch.GoogleSearchServiceLocator.getGoogleSearchPort(GoogleSearchServiceLocator.java:38)
Does anybody know what the problem might be?
Are there some libraries missing? I put them all in jboss-lib dir, but
the error is the same.
regards,
Peter Gerstbach