This time it seems like its just a commons-logging issue - though I
can't remember ever seeing it fail like you show. Make sure you have
commons-logging jars in place and the default
commons-logging.properties in place. The last few axis2 releases have
had log4j as the commons-logging implementation, so you may need the
log4j.jar and log4.properties as well.
BTW, I'm also stuck on xmlbeans. I've done some digging, and hope to get back on it this weekend.
Robert
http://www.braziloutsource.com/On 5/11/06, Sebastian J. Schultheiss <
[EMAIL PROTECTED]> wrote:Hi there,We've tried to go with a new approach and created an ADB version of our
service, since the databinding with xmlbeans seemed to be the problembefore. We are still using a similar WSDL file as before, but now we getan error early on with the ServiceStub initialization. This is our main
class:===public static void main(String[] args) { try { String str ="ASDFANIMAL";
XMLStreamReader x =XMLInputFactory.newInstance().createXMLStreamReader(new StringReader(str)); TextLocServiceStub.PredictLocalizationRequest pdoc =TextLocServiceStub.PredictLocalizationRequest.Factory.parse
(x); TextLocServiceStub sender = newTextLocServiceStub("http://localhost/axis2/services/TextLocService"); TextLocServiceStub.PredictLocalizationResponse
res =sender.predictLocalization(pdoc); System.out.println(res.toString());} catch (Exception e) {e.printStackTrace();}}===
This is our stack trace:===Exception in thread "main" java.lang.ExceptionInInitializerErrorat org.apache.axis2.TextLocServiceStub.(
TextLocServiceStub.java:88)at org.apache.axis2.TextLocServiceStub.(TextLocServiceStub.java:80)at org.apache.axis2.Run.main(Run.java:19)Caused by: org.apache.commons.logging.LogConfigurationException
:org.apache.commons.logging.LogConfigurationException:java.lang.NullPointerException (Caused byjava.lang.NullPointerException) (Caused byorg.apache.commons.logging.LogConfigurationException:java.lang.NullPointerException
(Caused by java.lang.NullPointerException))atorg.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:543)atorg.apache.commons.logging.impl.LogFactoryImpl.getInstance
(LogFactoryImpl.java:235)atorg.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:209)at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:351)at
org.apache.axis2.context.ConfigurationContextFactory.(ConfigurationContextFactory.java:24)... 3 moreCaused by: org.apache.commons.logging.LogConfigurationException:java.lang.NullPointerException
(Caused by java.lang.NullPointerException)atorg.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryImpl.java:397)atorg.apache.commons.logging.impl.LogFactoryImpl.newInstance
(LogFactoryImpl.java:529)... 7 moreCaused by: java.lang.NullPointerExceptionatorg.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryImpl.java:374)... 8 more
===Please let us know if this is something we've done wrong or if there isa general bug in the WSDL2Java code generation part... We somehowweren't able to create a non-RPC style service with it ever since AXIS2
0.95.Thanks,-- Sebi