glassfish - org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declaration of element 'beans' -


i've built simple spring ws (1.5.9) , i'm trying deploy glassfish v3. unfortunately deployment fails above reason. i've struggled resolve issue myself not able resolve "bean" element.

heres me spring-ws-servlet.xml (bean definitions):

<beans xmlns="http://www.springframework.org/schema/beans"     xmlns:xsi="http://www.w3.org/2001/xmlschema-instance">  ...bean definitions  </beans> 

i've tried schemalocation set spring-beans-3.0.xsd same result.

my war has 1 dependency , spring-ws.

you haven't provided standard collection of schema locations, particularly not required schema location beans schema.

here's 1 of mine:

<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/xmlschema-instance"   xmlns:context="http://www.springframework.org/schema/context"   xmlns:gate="http://gate.ac.uk/ns/spring"   xsi:schemalocation="     http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-2.5.xsd     http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd     http://gate.ac.uk/ns/spring http://gate.ac.uk/ns/spring.xsd     "> </beans> 

Comments

Popular posts from this blog

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

c++ - Compiling static TagLib 1.6.3 libraries for Windows -