The spring support has gotten to the point where I made one simple web
service and deploy it by using Spring. I committed all the changes and
published 1.0-SNAPSHOT jar in the java.net m2 repository.
You can get the sample web application from
https://jax-ws-commons.dev.java.net/source/browse/jax-ws-commons/trunk/spring/test-app/
Let me know if there's anything we can do better.
Mohan K R wrote:
> Kohsuke,
> Thanks. I will test it.
>
> Yes, I did build it myself.
>
> Mohan
>
> On 12/12/06, Kohsuke Kawaguchi <Kohsuke.Kawaguchi_at_sun.com> wrote:
>>
>> Mohan K R wrote:
>> > Hi,
>> > I followed exactly the instructions on enabling spring support, but it
>> > appears the schema extensions are not picked up when I
>> > deploy in tomcat 5.5. I am using spring 2.0, xbean-spring 2.7. I did
>> double
>> > check that the jars are there in WEB-INF/lib (esp-
>> > cially xbean-srping) and also checked that spring-1.0-SNAPSHOT had the
>> > proper META-INF tree. This is what I get
>> > as stack trace:
>>
>> Thanks for the report. I checked the binary and it seems like wrong
>> META-INF/spring.handlers and META-INF/spring.schemas are packaged.
>>
>> Fix committed.
>>
>> Where did you get the binary? Did you build it by yourself? If you can
>> test it again, that would be really great.
>>
>>
>> > org.springframework.beans.factory.BeanDefinitionStoreException: Line 13
>> in
>> > XML document from ServletContext resource
>> [/WEB-INF/applicationContext.xml]
>> > is invalid; nested exception is org.xml.sax.SAXParseException:
>> > cvc-complex-type.2.4.c: The matching wildcard is strict, but no
>> declaration
>> > can be found for element 'wss:bindings'.
>> > Caused by:
>> > org.xml.sax.SAXParseException: cvc-complex-type.2.4.c: The matching
>> wildcard
>> > is strict, but no declaration can be found for element 'wss:bindings'.
>> > at
>> >
>> com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException
>> > (ErrorHandlerWrapper.java:236)
>> > at
>> com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error
>> > (ErrorHandlerWrapper.java:172)
>> > at
>> > com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(
>> > XMLErrorReporter.java:382)
>> > at
>> > com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(
>> > XMLErrorReporter.java:316)
>> > at
>> >
>> com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator$XSIErrorReporter.reportError
>> > (XMLSchemaValidator.java:429)
>> > at
>> >
>> com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.reportSchemaError
>> > (XMLSchemaValidator.java:3185)
>> > at
>> >
>> com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.handleStartElement
>> > (XMLSchemaValidator.java:1955)
>> > at
>> >
>> com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.startElement
>> (
>> > XMLSchemaValidator.java:705)
>> > at
>> >
>> com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement
>> > (XMLNSDocumentScannerImpl.java:330)
>> > at
>> >
>> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch
>> > (XMLDocumentFragmentScannerImpl.java:1693)
>> > at
>> >
>> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument
>> > (XMLDocumentFragmentScannerImpl.java:368)
>> > at
>> > com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(
>> > XML11Configuration.java:834)
>> > at
>> > com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(
>> > XML11Configuration.java:764)
>> > at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(
>> > XMLParser.java:148)
>> > at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(
>> > DOMParser.java:250)
>> > at
>> com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse
>> > (DocumentBuilderImpl.java:292)
>> > at
>> > org.springframework.beans.factory.xml.DefaultDocumentLoader.loadDocument
>> (
>> > DefaultDocumentLoader.java:77)
>> > at
>> >
>> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions
>> > (XmlBeanDefinitionReader.java:405)
>> > at
>> >
>> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions
>> > (XmlBeanDefinitionReader.java:357)
>> > at
>> >
>> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions
>> > (XmlBeanDefinitionReader.java:334)
>> > at
>> >
>> org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions
>> > (AbstractBeanDefinitionReader.java:126)
>> > at
>> >
>> org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions
>> > (AbstractBeanDefinitionReader.java:142)
>> > at
>> >
>> org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions
>> > (XmlWebApplicationContext.java:123)
>> > at
>> >
>> org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions
>> > (XmlWebApplicationContext.java:91)
>> > at
>> >
>> org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory
>> > (AbstractRefreshableApplicationContext.java:94)
>> > at
>> > org.springframework.context.support.AbstractApplicationContext.refresh(
>> > AbstractApplicationContext.java:294)
>> > at
>> >
>> org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh
>> > (AbstractRefreshableWebApplicationContext.java:156)
>> > at
>> >
>> org.springframework.web.context.ContextLoader.createWebApplicationContext(
>> > ContextLoader.java:246)
>> > at
>> > org.springframework.web.context.ContextLoader.initWebApplicationContext(
>> > ContextLoader.java:184)
>> > at
>> > org.springframework.web.context.ContextLoaderListener.contextInitialized
>> (
>> > ContextLoaderListener.java:49)
>> > at org.apache.catalina.core.StandardContext.listenerStart(
>> > StandardContext.java:3763)
>> > at org.apache.catalina.core.StandardContext.start(
>> > StandardContext.java:4211)
>> > at org.apache.catalina.startup.HostConfig.checkResources(
>> > HostConfig.java:1089)
>> > at org.apache.catalina.startup.HostConfig.check(HostConfig.java
>> > :1187)
>> > at org.apache.catalina.startup.HostConfig.lifecycleEvent(
>> > HostConfig.java:292)
>> > at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(
>> > LifecycleSupport.java:119)
>> > at org.apache.catalina.core.ContainerBase.backgroundProcess(
>> > ContainerBase.java:1305)
--
Kohsuke Kawaguchi
Sun Microsystems kohsuke.kawaguchi_at_sun.com