giovanni, can you perform the same test you did before in the client app
and verify the JDK version and XML parser?
Excuse me for the delay, but I've finally understand what do You mean
when You saw to modify HttpServerImpl.
I've just created a new jar called 'apache-httpd.jar' which contain
the modified version of HttpServerImpl and I've put this jar into
'Tomcat/webapps/apache-httpd/WEB-INF/lib', replacing the original jar.
In catalina's log file, if I insert
'System.err.println("XML API: " +
org.apache.muse.util.xml.XmlUtils.createDocument().getClass());'
into initialize() method in HttpServerImpl, I've printed this message:
INFO: XML API: class org.apache.xerces.dom.DocumentImpl
Summing up:
- if I modify 'HttpServerTestApp' under
'muse-2.1.0\samples\apache-httpd\src\...',
inserting 'System.err.println("XML API: " +
org.apache.muse.util.xml.XmlUtils.createDocument().getClass());',
I saw this: XML API: class org.apache.xerces.dom.DocumentImpl
- if I modify initialize() 'HttpServerImpl' under
''Tomcat/webapps/apache-httpd/WEB-INF/lib/apache-httpd.jar',
I saw this: XML API: class org.apache.xerces.dom.DocumentImpl
Ok ?
Excusme for my wrong understanding.
The stack trace, client side, is always:
**********************************************
java.lang.NullPointerException
at
org.apache.muse.core.serializer.xstream.XStreamSerializer$JavaFieldConverter.realClass(XStreamSerializer.java:211)
at
com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:18)
at
com.thoughtworks.xstream.mapper.CachingMapper.realClass(CachingMapper.java:28)
at
com.thoughtworks.xstream.core.TreeUnmarshaller.start(TreeUnmarshaller.java:95)
at
com.thoughtworks.xstream.core.ReferenceByXPathMarshallingStrategy.unmarshal(ReferenceByXPathMarshallingStrategy.java:12)
at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:521)
at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:500)
at
org.apache.muse.core.serializer.xstream.XStreamSerializer.fromXML(XStreamSerializer.java:125)
at
org.apache.muse.ws.resource.properties.impl.WsrpUtils.convertToObjects(WsrpUtils.java:128)
at
org.apache.muse.ws.resource.remote.WsResourceClient.getPropertyAsObject(WsResourceClient.java:127)
at
org.apache.muse.test.http.remote.HttpServerClient.getSupportedLanguage(HttpServerClient.java:87)
at
org.apache.muse.test.http.testapp.HttpServerTestApp.main(HttpServerTestApp.java:93)
**********************************************
Giovanni