need urgent help: badly stuck with this problem
bandini Jun 2, 2005 9:23 AMHi,
im trying to run my java client but i get this error:
javax.xml.parsers.FactoryConfigurationError: Provider com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl could not be instantiated: java.lang.NullPointerException
My setup: jboss 4, ant, eclipse
My server-jar, got deployed properly and my axis page [validation]
also shows fine :
The core axis libraries are present. 1 optional axis library is missing
My client code is as below:
package com.tps.test;
import javax.xml.namespace.QName;
import javax.xml.rpc.Service;
import javax.xml.rpc.ServiceFactory;
import java.net.URL;
public class testWS1 {
static void testServletContextExactAccess() throws Exception
{
System.out.println("CLIENT COMPONENT TALKING TO SERVER: 1 ");
URL url = new URL("http://localhost:8080/server-ejb/OrganizationServiceEJB?wsdl");
QName qname = new QName("http://com.tps.test/ws4ee", "OrganizationServiceJSE");
System.out.println("CLIENT COMPONENT TALKING TO SERVER: 1.1 ");
try{
ServiceFactory factory = ServiceFactory.newInstance();
Service service = factory.createService(url, qname);
OrganizationEndpoint endpoint = (OrganizationEndpoint)service.getPort(OrganizationEndpoint.class);
System.out.println("CLIENT COMPONENT TALKING TO SERVER: 2 ");
String info = endpoint.getContactInfo("TPS");
System.out.println("The boss is currently out of office, please call again." + info);
System.out.println("CLIENT COMPONENT TALKING TO SERVER: 3 ");
}catch(Exception e){
System.out.println(e);
}
}
public static void main(String [] arg){
try{
System.out.println("CLIENT COMPONENT TALKING TO SERVER: 0 ");
testServletContextExactAccess();
}catch(Exception e){}
}
}
I have required .jar files in my classpath:
${jboss.deploy}/server/default/deploy/jboss-ws4ee.sar/axis-ws4ee.jar;
${jboss.deploy}/server/default/lib/jboss-jaxrpc.jar;
${jboss.deploy}/lib/namespace.jar;
${jboss.deploy}/server/default/deploy/jboss-ws4ee.sar/commons-discovery.jar;
${jboss.deploy}/server/default/deploy/jboss-ws4ee.sar/commons-logging.jar;
${jboss.home}/jboss-common.jar
Still im getting the error.
Anyhelp wil be appreciated:
Thanx