Hi,

I am using Axis in JBoss and would like to know how to configure the java type 
java.sql.Time to xsd:time.
Currently it automatically gets converted into a xsd:dateTime (probably
because java.sql.Time extends java.sql.Date).

On the client side I manage to deal with the problem by providing an own
Deserializer. But I do not know how to configure a Serializer on the
server side, if trying to define one for xsd:date I always receive the
exception:
11:35:39,959 ERROR [MainDeployer] could not start deployment:
file:/D:/jboss-3.2.5/server/default/tmp/deploy/tmp16950codewednesday.ear
-contents/codewednesday.ws
r
org.jboss.deployment.DeploymentException: Could not deploy axis
descriptor.; - nested throwable:
(org.apache.axis.deployment.wsdd.WSDDException: javax.xml.rpc.J
AXRPCException: Null qualified name specified.
javax.xml.rpc.JAXRPCException: Null qualified name specified.
        at
org.apache.axis.encoding.TypeMappingImpl.internalRegister(TypeMappingImp
l.java:273)
        at
org.apache.axis.encoding.TypeMappingImpl.register(TypeMappingImpl.java:2
55)
        at
org.apache.axis.deployment.wsdd.WSDDService.deployTypeMapping(WSDDServic
e.java:560)
        at
org.apache.axis.deployment.wsdd.WSDDService.initTMR(WSDDService.java:267
)
        at
org.apache.axis.deployment.wsdd.WSDDService.(WSDDService.java:247)
        at
org.apache.axis.deployment.wsdd.WSDDDeployment.(WSDDDeployment.jav
a:243)
        at org.jboss.net.axis.Deployment.(Deployment.java:79)
        at
org.jboss.net.axis.server.AxisService.start(AxisService.java:491)
        at
org.jboss.deployment.MainDeployer.start(MainDeployer.java:836)
        at
org.jboss.deployment.MainDeployer.start(MainDeployer.java:828)
        at
org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:645)
        at
org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:608)
        at sun.reflect.GeneratedMethodAccessor17.invoke(Unknown Source)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at
org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.jav
a:60)
        at org.jboss.mx.server.Invocation.dispatch(Invocation.java:61)
        at org.jboss.mx.server.Invocation.dispatch(Invocation.java:53)
        at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
        at
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.jav
a:185)
        at
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
        at
org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
        at $Proxy7.deploy(Unknown Source)
        at
org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentSc
anner.java:304)
        at
org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScan
ner.java:460)
        at
org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doS
can(AbstractDeploymentScanner.java:201)
        at
org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loo
p(AbstractDeploymentScanner.java:212)
        at
org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run
(AbstractDeploymentScanner.java:191)

My typemapping in the webservice.xml looks like this:
                <typeMapping qname="xsd:time" 
                        xmlns:tns="http://www.w3.org/2001/XMLSchema"; 
                        languageSpecificType="java:java.sql.Time" 
        
serializer="com.essencio.codewednesday.axis.TimeSerializerFactory" 
        
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"; />

Thanks for your time and best regards from sunny Black Forest, Germany,
   Mattin


View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3845717#3845717

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3845717


-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
_______________________________________________
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to