[JBossWS] - Re: Handling anyType
by centecbertl
Hi again,
the following patch (against jbossws 1.0.3) is a buggy! hotfix - better call it "hack :-)" which works for me and maybe also for somebody else getting blocked with the problem discussed here:
Description and Known issues:
1. This "hotfix" was done in a hurry without analysing the architecture and implementeaion of jbossws. It just adds without any checking the xmlns:xsi namespace to every single soap element which might go to
the Deserializer.
2. It is not checked whether the xmlns:xsi attribute is already there or worse pointing to a different name space already! - Clients providing a different xmlns:xsi uril will get bugged out!
| Index: src/main/java/org/jboss/ws/soap/DOMEnvelopeBuilder.java
| ===================================================================
| --- src/main/java/org/jboss/ws/soap/DOMEnvelopeBuilder.java (revision 942)
| +++ src/main/java/org/jboss/ws/soap/DOMEnvelopeBuilder.java (working copy)
| @@ -266,6 +266,7 @@
|
| private static void redeclareNamespace(Element element)
| {
| + element.setAttribute("xmlns:xsi", "http://www.w3.org/2001/XMLSchema-instance");
| if(element.getPrefix()== null)
| element.setAttribute("xmlns", element.getNamespaceURI());
| else
|
|
Use with care and have fun,
Bertl
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3971404#3971404
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3971404
19 years, 7 months
[JBossWS] - WS install errors
by at7000ft
Did a clean install of jboss-4.0.4GA on default configuration and verified that jboss starts correctly, then added the JBossWS1.0.3 components. When starting jboss I get screens full of error messages starting with:
14:52:27,058 ERROR [MainDeployer] Could not create deployment: file:/D:/jboss-4.0.4/server/defa
ult/deploy/META-INF/jboss-service.xml
org.jboss.deployment.DeploymentException: Trying to install an already registered mbean: jboss.
ws:service=WebServiceClientDeployer
And then multiples of errors like this:
14:52:32,094 ERROR [AbstractKernelController] Error installing to Described: name=ServiceEndpoi
ntDeployer state=Not Installed mode=Manual requiredState=Create
java.lang.ClassNotFoundException: No ClassLoaders found for: org.jboss.ws.deployment.ServiceEnd
pointDeployer
I did another clean install setup with the ejb3 configuration with the same results. However the jbossws console still comes up. Is this normal?
Thanks
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3971396#3971396
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3971396
19 years, 7 months