Help on Stateful Web Service

2011-04-14 Thread solecjj
Hi Guys,

I am using JBoss 6 Final with this example
http://weblogs.java.net/blog/kohsuke/archive/2006/10/stateful_web_se.html

But I have below error message:

Caused by: org.apache.ws.commons.schema.XmlSchemaException: Unable to locate
imported document at 'http://www.w3.org/2006/03/addressing/ws-addr.xsd',
relative to 'schema1.xsd'.
at
org.apache.cxf.catalog.CatalogXmlSchemaURIResolver.resolveEntity(CatalogXmlSchemaURIResolver.java:83)
[:2.3.1]
at
org.apache.ws.commons.schema.SchemaBuilder.resolveXmlSchema(SchemaBuilder.java:1872)
[:6.0.0.Final]
at
org.apache.ws.commons.schema.SchemaBuilder.handleImport(SchemaBuilder.java:1615)
[:6.0.0.Final]
at
org.apache.ws.commons.schema.SchemaBuilder.handleXmlSchemaElement(SchemaBuilder.java:224)
[:6.0.0.Final]
at 
org.apache.ws.commons.schema.SchemaBuilder.build(SchemaBuilder.java:121)
[:6.0.0.Final]
at
org.apache.ws.commons.schema.XmlSchemaCollection.read(XmlSchemaCollection.java:509)
[:6.0.0.Final]
at
org.apache.ws.commons.schema.XmlSchemaCollection.read(XmlSchemaCollection.java:493)
[:6.0.0.Final]
at
org.apache.cxf.common.xmlschema.SchemaCollection.read(SchemaCollection.java:167)
[:2.3.1]
at
org.apache.cxf.databinding.AbstractDataBinding.addSchemaDocument(AbstractDataBinding.java:177)
[:2.3.1]
at 
org.apache.cxf.jaxb.JAXBDataBinding.initialize(JAXBDataBinding.java:398)
[:2.3.1]
at
org.apache.cxf.service.factory.AbstractServiceFactoryBean.initializeDataBindings(AbstractServiceFactoryBean.java:86)
[:2.3.1]
at
org.apache.cxf.service.factory.ReflectionServiceFactoryBean.buildServiceFromClass(ReflectionServiceFactoryBean.java:442)
[:2.3.1]
at
org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.buildServiceFromClass(JaxWsServiceFactoryBean.java:680)
[:2.3.1]
at
org.apache.cxf.service.factory.ReflectionServiceFactoryBean.initializeServiceModel(ReflectionServiceFactoryBean.java:505)
[:2.3.1]
at
org.apache.cxf.service.factory.ReflectionServiceFactoryBean.create(ReflectionServiceFactoryBean.java:242)
[:2.3.1]
at
org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.create(JaxWsServiceFactoryBean.java:202)
[:2.3.1]
at
org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpoint(AbstractWSDLBasedEndpointFactory.java:101)
[:2.3.1]
at
org.apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:148)
[:2.3.1]
at
org.apache.cxf.jaxws.JaxWsServerFactoryBean.create(JaxWsServerFactoryBean.java:183)
[:2.3.1]
at org.apache.cxf.jaxws.EndpointImpl.getServer(EndpointImpl.java:407)
[:2.3.1]
at org.apache.cxf.jaxws.EndpointImpl.doPublish(EndpointImpl.java:314)
[:2.3.1]

I have done as suggested here and still encounter the same error
:http://cxf.547215.n5.nabble.com/CXF-callback-sample-error-always-retrieve-remote-schema-td560815.html.
 
As the catalog configured, system will try to load /schemas/wsdl/ws-addr.xsd
from classpath , but in which jar file?
Also if the configuration of jax-ws-catalog.xml effectived , error message
should tell me can not find from classpath instead of http right ?

Can anyone help me out , thx in advance?

Justin
 

--
View this message in context: 
http://cxf.547215.n5.nabble.com/Help-on-Stateful-Web-Service-tp4302443p4302443.html
Sent from the cxf-issues mailing list archive at Nabble.com.


Re: CXF client and WAS 7 issue classcast exception

2011-04-14 Thread nick
Hi thanmalv,


  I run into exactly same problem as you have and know it's class loader
problem.  I've tried to set class loader order 'parent last' but not help. 
Can you help telling what you did?

Thanks a lot.

Nick.


--
View this message in context: 
http://cxf.547215.n5.nabble.com/CXF-client-and-WAS-7-issue-classcast-exception-tp4258948p4303906.html
Sent from the cxf-issues mailing list archive at Nabble.com.


[jira] [Commented] (CXF-3451) Can CXF support multiple response?

2011-04-14 Thread Freeman Fang (JIRA)

[ 
https://issues.apache.org/jira/browse/CXF-3451?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13020199#comment-13020199
 ] 

Freeman Fang commented on CXF-3451:
---

append discussion from mailinglist about this question for future visitor 
reference
http://cxf.547215.n5.nabble.com/Can-CXF-support-multiple-response-td4297170.html

> Can CXF support multiple response?
> --
>
> Key: CXF-3451
> URL: https://issues.apache.org/jira/browse/CXF-3451
> Project: CXF
>  Issue Type: New Feature
>  Components: Core, Service Model
>Reporter: David Liu
>
>   Currently, one CXF Jaxws service can only return one Response message to 
> each Request. However, there are some use case that we want one request have 
> multiple response messages. E.g. my service gets a request, and then, it 
> replies 3 response messages to a JMS queue. 
>   Can CXF support multiple response message for this kind of use case?
> David

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira