[jboss-user] [JBossWS] - Failed to set value - argument type mismatch

2007-01-11 Thread hugin78
Hallo
In my wsdl file I have a type with enumerations. I have one operation that 
returns an instance of the type - This one is working fine. I then have another 
that take an instance of the type as argument and this one fails with the 
exception:


  | 2007-01-11 16:09:03,253 WARN  
[org.jboss.webservice.metadata.jaxrpcmapping.JavaWsdlMapping] Cannot find 
jaxrpc-mapping for type: {http://ws.facade.as2007.wmdata.com/jaws}CarType
  | 2007-01-11 16:09:03,253 WARN  
[org.jboss.webservice.metadata.jaxrpcmapping.JavaWsdlMapping] Cannot find 
jaxrpc-mapping for type: {http://ws.facade.as2007.wmdata.com/jaws}getCar
  | 2007-01-11 16:09:03,253 WARN  
[org.jboss.webservice.metadata.jaxrpcmapping.JavaWsdlMapping] Cannot find 
jaxrpc-mapping for type: {http://ws.facade.as2007.wmdata.com/jaws}getCarResponse
  | 2007-01-11 16:09:03,253 WARN  
[org.jboss.webservice.metadata.jaxrpcmapping.JavaWsdlMapping] Cannot find 
jaxrpc-mapping for type: {http://ws.facade.as2007.wmdata.com/jaws}setCar
  | 2007-01-11 16:09:03,253 WARN  
[org.jboss.webservice.metadata.jaxrpcmapping.JavaWsdlMapping] Cannot find 
jaxrpc-mapping for type: {http://ws.facade.as2007.wmdata.com/jaws}setCarResponse
  | 2007-01-11 16:09:03,253 WARN  [org.jboss.ws.jaxb.SchemaBindingBuilder] Type 
definition not found in schema: {http://ws.facade.as2007.wmdata.com/jaws}CarType
  | 2007-01-11 16:09:03,253 WARN  [org.jboss.ws.jaxb.SchemaBindingBuilder] 
Cannot obtain type binding for: {http://ws.facade.as2007.wmdata.com/jaws}CarType
  | 2007-01-11 16:09:03,253 ERROR[org.jboss.ws.jaxrpc.SOAPFaultExceptionHelper] 
SOAP request exception
  | javax.xml.rpc.JAXRPCException: org.jboss.ws.binding.BindingException: 
javax.xml.bind.JAXBException: Failed to parse source: Failed to set value 
[EMAIL PROTECTED] using setter setColor on [EMAIL PROTECTED] 
(toString=com.wmdata.as2007.xml.jaxbbindings.CarTy
  | [EMAIL PROTECTED]) : argument type mismatch
  |  - with linked exception:
  | [org.jboss.xb.binding.JBossXBException: Failed to parse source: Failed to 
set value [EMAIL PROTECTED] using setter setColor on [EMAIL PROTECTED] ([EMAIL 
PROTECTED]) : argument type mismatch]
  | at 
org.jboss.ws.soap.SOAPContentElement.getObjectValue(SOAPContentElement.java:307)
  | at 
org.jboss.ws.binding.EndpointInvocation.transformPayloadValue(EndpointInvocation.java:233)
  | at 
org.jboss.ws.binding.EndpointInvocation.getRequestParamValue(EndpointInvocation.java:103)
  | at 
org.jboss.ws.binding.EndpointInvocation.getRequestPayload(EndpointInvocation.java:117)
  | at 
org.jboss.ws.server.ServiceEndpointInvokerEJB3.invokeServiceEndpoint(ServiceEndpointInvokerEJB3.java:106)
  | at 
org.jboss.ws.server.ServiceEndpointInvoker.invoke(ServiceEndpointInvoker.java:118)
  | at 
org.jboss.ws.server.ServiceEndpoint.handleRequest(ServiceEndpoint.java:234)
  | at 
org.jboss.ws.server.ServiceEndpointServlet.doPost(ServiceEndpointServlet.java:120)
  | at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
  | at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
  | at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
  | at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
  | at 
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
  | at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
  | at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
  | at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
  | at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
  | at 
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
  | at 
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
  | at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
  | at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
  | at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
  | at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
  | at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
  | at 
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
  | at 
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
  | at 
org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
  | at java.lang.Thread.run(Thread.java:595)
  | Caused by: org.jboss.ws.binding.BindingException: 
javax.xml.bind.JAX

[jboss-user] [JBossWS] - Re: Failed to set value - argument type mismatch

2007-01-11 Thread hugin78
Thank you very much Thomas

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4000696
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - problem streaming data to a blob on an sqlserver

2007-02-11 Thread hugin78
I have an entity with a lob value:

  |@Lob
  | public byte[] getData() {
  | return data;
  | }
  | 

I have a large amount of data that Iretrieve in small parts from the database, 
convert it to xml and stream it to the blobfield.



  |public void insertData() throws Exception {
  |   Context ctx = new InitialContext();
  |   DataSource ds = (DataSource) ctx.lookup("java:/UdtraekDS");
  |   Connection connection = ds.getConnection();  
  | 
  |   try {
  |if (connection != null) {
  | String readStatementBlobStreamOracle= "select 
data from as_udtraek where name = ?  for update";
  |String readStatementBlobStreamSQLServer = "select 
data from as_udtraek (UPDLOCK) where name = ?";
  | // Select sql depends on the database
  |String sql = Util.isOracle() ? 
readStatementBlobStreamOracle : readStatementBlobStreamSQLServer;
  |   
  | PreparedStatement ps = 
connection.prepareStatement(sql);
  | ps.setString(1, "allekatalogydelser.xml"); 
  | 
  | ResultSet res = ps.executeQuery();
  | if (res.next()) {
  |  Blob val = res.getBlob(1);
  |  OutputStream outputStream = 
val.setBinaryStream(1);
  |  logger.info("Writing data to blob");
  |  // Lots of data will be generated here and 
written to the outputstream
  |   
  |  // For test
  |  outputStream.write("testing".getBytes());
  | 
  |  outputStream.flush();
  |  outputStream.close();
  | }
  | 
  | res.close();
  | ps.close();
  |}
  |   } catch (Exception e) {
  |logger.error(1, e);
  |   } finally {
  |try {
  | connection.close();
  |} catch (SQLException e) {
  | logger.warn("could not close the connection", e);
  |}
  |   }
  |   }
  | 

In the example above I retrieve the existing AS_UDTRAEK entity with the name 
"allekatalogydelser.xml? and write the text ?testing? to the blobfield. This 
works perfectly well with an oracle db but with a Microsoft SQL server 9 no 
data is written to the blob and no exception is thrown. 

Can anyone tell me what I'm doing wrong.

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4014846
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBossWS] - Not registered: jboss.ws:service=ServiceRefHandler

2007-04-19 Thread hugin78
I have downloaded jboss-4.2.0.CR1 and patched it with jbossws-1.2.0.SP1.  When 
I start the server I get a lot of warnings in the log with ServideRefHandler:



  | 2007-04-19 14:58:09,503 WARN  
[org.jboss.metadata.serviceref.ServiceRefHandlerFactory] Not registered: 
jboss.ws:service=ServiceRefHandler

What am I missing

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4039135
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBossWS] - Problem importing multiple schema from the same namespace

2007-04-20 Thread hugin78
In my WS I use @WebService with the wsdlLocation. In my wsdl I have a type that 
use two external elements from the same namespace 

  | http://rep.oio.dk/ebxml/xml/schemas/dkcc/2005/03/15/"; 
schemaLocation="http://rep.oio.dk/ebxml/xml/schemas/dkcc/2005/03/15/DKCC_DistrictSubdivisionIdentifier.xsd"/>
  | http://rep.oio.dk/ebxml/xml/schemas/dkcc/2005/03/15/"; 
schemaLocation="http://rep.oio.dk/ebxml/xml/schemas/dkcc/2005/03/15/DKCC_PostCodeIdentifier.xsd"/>
  | 
  | 
  | 
  | 
  | 
  | 
  | 

When I deploy the application the following is written in the log:



  | 2007-04-19 14:58:25,881 ERROR 
[org.jboss.ws.metadata.wsdl.xmlschema.JBossXSErrorHandler] 
JBossWS_rep.oio.dk_wmdata.dk_as2007_schemas_2006_11_20_29281.xsd[domain:http://www.w3.org/TR/xml-schema-1]::[key=src-resolve]::Message=src-resolve:
 Cannot resolve the name 'ebxml:PostCodeIdentifier' to a(n) 'element 
declaration' component.
  | 


It seems that it only reads the first import in the namespace as there are no 
problems with DistrictSubdivisionIdentifier. 

Even though it shows errors in the log it returns the elements as described 
though.

What am I doing wrong





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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4039137
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBossWS] - Re: Not registered: jboss.ws:service=ServiceRefHandler

2007-05-08 Thread hugin78
Upgrading to Jboss 4.2 CR2 solved the problem

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4043913
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user