K
K
Konstantin17062017-01-25 23:25:13
Spring
Konstantin1706, 2017-01-25 23:25:13

HTTP Status 500 - Servlet.init() on deployment, what's wrong?

When deploying, I get the following error with status 500:

java.lang.IllegalArgumentException: The resource path [/../webapp/WEB-INF/spring/appServlet/servlet-context.xml] has been normalized to [null] which is not valid

For what reason could this happen? Did I misconfigure servlet-context?
As I understand it, the file did not pass validation.
<?xml version="1.0" encoding="UTF-8"?>
<beans:beans xmlns="http://www.springframework.org/schema/mvc"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             xmlns:beans="http://www.springframework.org/schema/beans"
             xmlns:context="http://www.springframework.org/schema/context"
             xsi:schemaLocation="http://www.springframework.org/schema/mvc
                http://www.springframework.org/schema/mvc/spring-mvc.xsd
                http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
                http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd">

    <context:component-scan base-package="ru.goestowork" />

    <beans:bean class="org.springframework.web.servlet.view.InternalResourceViewResolver" >
        <beans:property name="prefix" value="/WEB-INF/views/" />
        <beans:property name="suffix" value=".jspx" />
    </beans:bean>

    <resources mapping="/resources/**" location="/resources/" />
    <annotation-driven />
</beans:beans>

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question