You do not have permission to access / schema / beans / spring-beans-3.1.xsd on this server

I am using spring structure in one of my applications. So far, it has worked fine. But this morning, when I tried to run my application, it threw errors so that it was not possible to initialize the spring framework. So I tried to load the xsd files in the browser, but in vain because it showed me the forbidden page. And the page contains " You do not have permission to access / schema / beans / spring-beans-3.0.xsd on this server . I even tried to download 3.1 xsd, 2.5 xsd, but I could not get access to any of them and showing same error page.

I know I have to download xsd and put them in my classpath, but I didn’t, and now I got it.

Can someone help me with this? Or if any body has 3.0 xsd, can you please pass it on to me.

I need the following xsds:

  • spring - beans -3.0.xsd
  • spring -context-3.0.xsd
  • spring -mvc-3.0.xsd

and xsds, which are called by the above inside.

Thanks to everyone.

+2
source share
4 answers

XSD files are included in Spring JAR files, so you already have them. For example, spring -context-3.0.xsd is located inside spring -context.jar, in the package org/springframework/context/config . spring - beans.xsd is in the spring - beans.jar package ( org/springframework/beans/factory/xml ), and I will leave the search as an exercise for the reader.

+3
source

I had the same problem, it seems like public schemes on the Internet are not available. I found those spring - beans -2.5.0.xsd and saved them in my application directory.

I changed the layout of the circuit to use xsd along the path that I gave it, for example. (WEB-INF / XML / spring - beans -2.5.0.xsd)

http://www.springframework.org/schema/beans/spring-beans-2.5.0.xsd

to

WEB-INF / XML / spring - beans -2.5.0.xsd

and it fixed him.

+1
source

Social scheme is not available. It has been restored. I don’t know where to look for the status, but it works now.

+1
source

Today I faced the same problem. The problem was that the XSD and Spring library versions on the class path were incompatible (3.0 versus 2.5.5 in my case). I fixed the XSD versions in my Spring XML and now works fine

0
source

Source: https://habr.com/ru/post/955418/


All Articles