Hi Leo, I´m also using glassfish, how do I change the default stax parser?
Thank you, Eduardo On Thu, May 8, 2008 at 3:39 AM, Leo de Blaauw <[EMAIL PROTECTED]> wrote: > Hey, > > We had exactly the same problem when upgrading to the 2.1 release with our > applications running > under glassfish v2.1. The solution we found to be working is to replace the > stax parser that glassfish > uses as default with the woodstox stax parser, since that doesnt validate on > namespaces as a default > it works fine again here. Seems to me from your stacktrace you are > experiencing the same problem. > > Regards, > Leo > > ________________________________ > > Van: vkmohan [mailto:[EMAIL PROTECTED] > Verzonden: do 8-5-2008 3:47 > Aan: [email protected] > Onderwerp: Re: Problem creating WSDL with CXF 2.1 > > > > > > > Got the same exception when i tried to move my Http Web Service from 2.0.5 > into 2.1. > > I had a wsdl first webservice working fine in 2.0.5 but when i moved it to > the new 2.1 got the same exception as Eduardo. The service deploys fine but > when i access the serviceURL it throughs this exception. > > Appreciate any help on how to fix it. > > thank you > Mohan > > > Carlos Eduardo Rodrigues de Almeida wrote: > > > > I have a project that is running with CXF-incubator-2.0.6. I decided > > to upgrade to the new CXF 2.1. > > > > The project is a java first web service integrated with spring. I´m > > able to start the CXFSevlet, list the web services but I´m not able to > > make CXF create the WSDL when I access serviceName?WSDL. > > > > I´ve made a small project that has the same issue: > > > > My web.xml: > > <?xml version="1.0" encoding="UTF-8"?> > > <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > > xmlns="http://java.sun.com/xml/ns/javaee" > > xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" > > xsi:schemaLocation="http://java.sun.com/xml/ns/javaee > > http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID" > > version="2.5"> > > <display-name>Test</display-name> > > > > <context-param> > > <param-name>contextConfigLocation</param-name> > > <param-value> > > WEB-INF/beans.xml > > </param-value> > > </context-param> > > > > <listener> > > <listener-class> > > org.springframework.web.context.ContextLoaderListener > > </listener-class> > > </listener> > > > > <servlet> > > <servlet-name>CXFServlet</servlet-name> > > <servlet-class> > > org.apache.cxf.transport.servlet.CXFServlet > > </servlet-class> > > <load-on-startup>1</load-on-startup> > > </servlet> > > <servlet-mapping> > > <servlet-name>CXFServlet</servlet-name> > > <url-pattern>/Services/*</url-pattern> > > </servlet-mapping> > > </web-app> > > > > > > My beans.xml: > > <beans xmlns="http://www.springframework.org/schema/beans" > > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > > xmlns:jaxws="http://cxf.apache.org/jaxws" > > xsi:schemaLocation=" > > http://www.springframework.org/schema/beans > > http://www.springframework.org/schema/beans/spring-beans.xsd > > http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd"> > > > > <import resource="classpath:META-INF/cxf/cxf.xml" /> > > <import resource="classpath:META-INF/cxf/cxf-extension-soap.xml" /> > > <import resource="classpath:META-INF/cxf/cxf-servlet.xml" /> > > > > <bean id="testServiceTarget" class="test.TestServiceImpl"/> > > > > <jaxws:endpoint > > id="testService" > > implementorClass="test.TestServiceImpl" > > implementor="#testServiceTarget" > > address="/TestService" /> > > > > </beans> > > > > test.TestService: > > > > package test; > > > > import javax.jws.WebMethod; > > import javax.jws.WebService; > > > > @WebService(name="testService", targetNamespace="http://testService > <http://testservice/> ")) > > > > public interface TestService { > > > > @WebMethod > > public void test(); > > } > > > > > > test.TestServiceImpl > > package test; > > > > public class TestServiceImpl implements TestService { > > > > @Override > > public void test() { > > // TODO Auto-generated method stub > > } > > > > } > > > > I´m able to deploy the project. The listing of services is shown in > > http://localhost:8080/Test/Services but I get an exception while tryng > > to get the WSDL in > > http://localhost:8080/Test/Services/TestService?wsdl. > > > > PWC1406: Servlet.service() for servlet CXFServlet threw exception > > org.apache.cxf.transport.http.WSDLQueryException: Exception occurred > > while trying to process > > http://localhost:8080/Test/Services/TestService?wsdl > > at > > > org.apache.cxf.transport.http.WSDLQueryHandler.writeResponse(WSDLQueryHandler > .java:229) > > at > > > org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.j > ava:137) > > at > > > org.apache.cxf.transport.servlet.AbstractCXFServlet.invoke(AbstractCXFServlet > .java:170) > > at > > > org.apache.cxf.transport.servlet.AbstractCXFServlet.doGet(AbstractCXFServlet. > java:152) > > at javax.servlet.http.HttpServlet.service(HttpServlet.java:718) > > at javax.servlet.http.HttpServlet.service(HttpServlet.java:831) > > at > > > org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFil > terChain.java:411) > > at > > > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.jav > a:290) > > at > > > org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextV > alve.java:271) > > at > > > org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.jav > a:202) > > at > > > org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632) > > at > > > org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577) > > at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:94) > > at > > > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:206) > > at > > > org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632) > > at > > > org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577) > > at > > org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:571) > > at > org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1080) > > at > > > org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java: > 150) > > at > > > org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632) > > at > > > org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577) > > at > > org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:571) > > at > org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1080) > > at > > org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:272) > > at > > > com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(D > efaultProcessorTask.java:637) > > at > > > com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(Defau > ltProcessorTask.java:568) > > at > > > com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(Default > ProcessorTask.java:813) > > at > > > com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask > (DefaultReadTask.java:341) > > at > > > com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTa > sk.java:263) > > at > > > com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTa > sk.java:214) > > at > > com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:265) > > at > > > com.sun.enterprise.web.connector.grizzly.ssl.SSLWorkerThread.run(SSLWorkerThr > ead.java:106) > > Caused by: javax.xml.stream.XMLStreamException: NamespaceURI cannot be > > null > > at > > > com.sun.xml.stream.writers.XMLStreamWriterImpl.writeAttribute(XMLStreamWriter > Impl.java:632) > > at > org.apache.cxf.staxutils.StaxUtils.writeElement(StaxUtils.java:520) > > at > org.apache.cxf.staxutils.StaxUtils.writeElement(StaxUtils.java:440) > > at > org.apache.cxf.staxutils.StaxUtils.writeDocument(StaxUtils.java:421) > > at > org.apache.cxf.staxutils.StaxUtils.writeDocument(StaxUtils.java:411) > > at org.apache.cxf.staxutils.StaxUtils.writeNode(StaxUtils.java:560) > > at > > > org.apache.cxf.transport.http.WSDLQueryHandler.writeResponse(WSDLQueryHandler > .java:226) > > ... 31 more > > > > > > Where can I set the NamesapceURI? Any clue? > > > > Thank you, > > Eduardo > > Any clue where the problem is? > > > > > > -- > View this message in context: > http://www.nabble.com/Problem-creating-WSDL-with-CXF-2.1-tp17111174p17117644. > html > Sent from the cxf-user mailing list archive at Nabble.com. > > > >
