need help with this error
bandini Jun 2, 2005 3:18 PMHi,
I get this error when i execute my client code:
java.lang.NoClassDefFoundError: com/sun/xml/messaging/saaj/util/ByteInputStream at com.sun.xml.rpc.client.dii.BasicCall.<init>(BasicCall.java:116) at com.sun.xml.rpc.client.dii.BasicCall.<init>(BasicCall.java:129) at com.sun.xml.rpc.client.dii.ConfiguredCall.<init>(ConfiguredCall.java:36) at com.sun.xml.rpc.client.dii.DynamicProxyBuilder.buildDynamicProxyFor(DynamicProxyBuilder.java:56) at com.sun.xml.rpc.client.dii.ConfiguredService.getPort(ConfiguredService.java:250) at com.sun.xml.rpc.client.dii.ConfiguredService.getPort(ConfiguredService.java:150) at com.tps.test.testWS1.testServletContextExactAccess(testWS1.java:24) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at junit.framework.TestCase.runTest(TestCase.java:154) at junit.framework.TestCase.runBare(TestCase.java:127) at junit.framework.TestResult$1.protect(TestResult.java:106) at junit.framework.TestResult.runProtected(TestResult.java:124) at junit.framework.TestResult.run(TestResult.java:109) at junit.framework.TestCase.run(TestCase.java:118) at junit.framework.TestSuite.runTest(TestSuite.java:208) at junit.framework.TestSuite.run(TestSuite.java:203) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:474) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:342) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:194)
My client code is as follows:
public void testServletContextExactAccess() throws Exception {
log.debug("CLIENT COMPONENT TALKING TO SERVER: 1 ");
URL url = new URL("http://localhost:8080/server-ejb/OrganizationServiceEJB?wsdl");
QName qname = new QName("http://localhost:8080/ws4ee", "OrganizationServiceEJB");
try {
ServiceFactory factory = ServiceFactory.newInstance();
Service service = factory.createService(url, qname);
OrganizationEndpoint endpoint = (OrganizationEndpoint) service.getPort(OrganizationEndpoint.class);
log.debug("CLIENT COMPONENT TALKING TO SERVER: 2 ");
String info = endpoint.getContactInfo("TPS");
log.debug("The boss is currently out of office, please call again." + info);
log.debug("CLIENT COMPONENT TALKING TO SERVER: 3 ");
} catch (Exception e) {
log.error("Oops", e);
}
}
Im running in jboss and my ejb.jar has been properly published by the
server...
Any help will be appreciated...
Thanx