Hey Leute!
Ich habe versehentlich den "Clean&Build" Button in der Netbeans IDE gedrückt. Es war gerade ein WebProjekt geöffnet, dass nun folgenden Fehler wirft.
Server Logs:
Exception while loading the app : java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: org.apache.catalina.LifecycleException: java.lang.IllegalArgumentException: Bean name must not be empty
Das allein hat mir noch recht wenig geholfen, also habe ich die gesamten Logs durchgeackert, und weit hinten versteckt und nicht hervorgehoben habe ich dann das gefunden:
org.springframework.beans.factory.BeanDefinitionSt oreException: Unexpected exception parsing XML document from ServletContext resource [/WEB-INF/dispatcher-servlet.xml]; nested exception is java.lang.IllegalArgumentException: Bean name must not be empty
Okay, ich weiß nun, dass das Problem in der dispatcher-servlet.xml liegt, aber da kann ich nichts augenscheinlich Falsches finden. Zumal es ja davor zig mal funktioniert hat.
dispatcher-servlet.xml:
[XML]<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://www.springframework.org/schema/p"
xmlns:dwr="http://www.directwebremoting.org/schema/spring-dwr"
xmlns:aop="http://www.springframework.org/schema/aop"
xmlns:context="http://www.springframework.org/schema/context"
xmlns:tx="http://www.springframework.org/schema/tx"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
Index of /schema/aop http://www.springframework.org/schema/aop/spring-aop-3.0.xsd
Index of /schema/tx http://www.springframework.org/schema/tx/spring-tx-3.0.xsd
Index of /schema/context
http://www.springframework.org/schema/context/spring-context-3.0.xsd
Index of /schema/spring-dwr
http://www.directwebremoting.org/schema/spring-dwr-3.0.xsd">
<context:annotation-config />
<context:component-scan base-package="com.aherbsthofer.airlink.web" />
<bean class="org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping" />
<bean class="org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter" />
<bean id="handlerMapping" class="org.springframework.web.servlet.handler.BeanNameUrlHandlerMapping"/>
<!-- DWR Config -->
<dwr:controller id="dwrController" debug="true" />
<bean class="org.springframework.web.servlet.handler.SimpleUrlHandlerMapping">
<property value="true" name="alwaysUseFullPath"></property>
<property name="mappings">
<props>
<prop key="/dwr/**/*">dwrController</prop>
</props>
</property>
</bean>
<!-- DWR gemappte Klassen -->
<bean class="com.aherbsthofer.airlink.service.People" id="People">
<dwr:remote javascript="People">
<dwr:include method="getPeople"/>
<dwr:include method="getMatchingFromLargeCrowd"/>
</dwr:remote>
</bean>
<bean class="com.aherbsthofer.airlink.pseudoController.PostController" id="PostController">
<dwr:remote javascript="PostController">
<dwr:include method="postMessage"/>
</dwr:remote>
</bean>
<bean class="com.aherbsthofer.airlink.service.ExtraPageGenerator" id="ExtraPageGenerator">
<dwr:remote javascript="PageGenerator">
<dwr:include method="getInclude"/>
</dwr:remote>
</bean>
<bean class="com.aherbsthofer.airlink.dao.UserDao" id="userDao">
<dwr:remote javascript="UserDao">
<dwr:include method="createUser"/>
</dwr:remote>
</bean>
<dwr:configuration>
<dwr:convert type="bean" class="com.aherbsthofer.airlink.service.Person" />
<dwr:convert type="bean" class="com.aherbsthofer.airlink.domain.Message" />
</dwr:configuration>
<!-- Spring Config -->
<bean class="org.springframework.web.servlet.mvc.support.ControllerClassNameHandlerMapping"/>
<bean class="org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter" />
<bean id="viewResolver"
class="org.springframework.web.servlet.view.InternalResourceViewResolver"
prefix="/WEB-INF/jsp/"
p:suffix=".jsp" />
<!-- Verhindert Security Fehler mit DWR -->
<dwr:controller>
<dwr:config-param name="crossDomainSessionSecurity" value="false" />
</dwr:controller>
</beans>
[/XML]
Kann mir jemand dabei helfen? Ein leeres Name-Attribut gibt es nicht und keiner der Tags ohne Attribut hat bisher eines verlangt.
Bin am Verzweifeln.
mfG
Tarantoga
Ich habe versehentlich den "Clean&Build" Button in der Netbeans IDE gedrückt. Es war gerade ein WebProjekt geöffnet, dass nun folgenden Fehler wirft.
Server Logs:
Exception while loading the app : java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: org.apache.catalina.LifecycleException: java.lang.IllegalArgumentException: Bean name must not be empty
Das allein hat mir noch recht wenig geholfen, also habe ich die gesamten Logs durchgeackert, und weit hinten versteckt und nicht hervorgehoben habe ich dann das gefunden:
org.springframework.beans.factory.BeanDefinitionSt oreException: Unexpected exception parsing XML document from ServletContext resource [/WEB-INF/dispatcher-servlet.xml]; nested exception is java.lang.IllegalArgumentException: Bean name must not be empty
Okay, ich weiß nun, dass das Problem in der dispatcher-servlet.xml liegt, aber da kann ich nichts augenscheinlich Falsches finden. Zumal es ja davor zig mal funktioniert hat.
dispatcher-servlet.xml:
[XML]<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://www.springframework.org/schema/p"
xmlns:dwr="http://www.directwebremoting.org/schema/spring-dwr"
xmlns:aop="http://www.springframework.org/schema/aop"
xmlns:context="http://www.springframework.org/schema/context"
xmlns:tx="http://www.springframework.org/schema/tx"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
Index of /schema/aop http://www.springframework.org/schema/aop/spring-aop-3.0.xsd
Index of /schema/tx http://www.springframework.org/schema/tx/spring-tx-3.0.xsd
Index of /schema/context
http://www.springframework.org/schema/context/spring-context-3.0.xsd
Index of /schema/spring-dwr
http://www.directwebremoting.org/schema/spring-dwr-3.0.xsd">
<context:annotation-config />
<context:component-scan base-package="com.aherbsthofer.airlink.web" />
<bean class="org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping" />
<bean class="org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter" />
<bean id="handlerMapping" class="org.springframework.web.servlet.handler.BeanNameUrlHandlerMapping"/>
<!-- DWR Config -->
<dwr:controller id="dwrController" debug="true" />
<bean class="org.springframework.web.servlet.handler.SimpleUrlHandlerMapping">
<property value="true" name="alwaysUseFullPath"></property>
<property name="mappings">
<props>
<prop key="/dwr/**/*">dwrController</prop>
</props>
</property>
</bean>
<!-- DWR gemappte Klassen -->
<bean class="com.aherbsthofer.airlink.service.People" id="People">
<dwr:remote javascript="People">
<dwr:include method="getPeople"/>
<dwr:include method="getMatchingFromLargeCrowd"/>
</dwr:remote>
</bean>
<bean class="com.aherbsthofer.airlink.pseudoController.PostController" id="PostController">
<dwr:remote javascript="PostController">
<dwr:include method="postMessage"/>
</dwr:remote>
</bean>
<bean class="com.aherbsthofer.airlink.service.ExtraPageGenerator" id="ExtraPageGenerator">
<dwr:remote javascript="PageGenerator">
<dwr:include method="getInclude"/>
</dwr:remote>
</bean>
<bean class="com.aherbsthofer.airlink.dao.UserDao" id="userDao">
<dwr:remote javascript="UserDao">
<dwr:include method="createUser"/>
</dwr:remote>
</bean>
<dwr:configuration>
<dwr:convert type="bean" class="com.aherbsthofer.airlink.service.Person" />
<dwr:convert type="bean" class="com.aherbsthofer.airlink.domain.Message" />
</dwr:configuration>
<!-- Spring Config -->
<bean class="org.springframework.web.servlet.mvc.support.ControllerClassNameHandlerMapping"/>
<bean class="org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter" />
<bean id="viewResolver"
class="org.springframework.web.servlet.view.InternalResourceViewResolver"
prefix="/WEB-INF/jsp/"
p:suffix=".jsp" />
<!-- Verhindert Security Fehler mit DWR -->
<dwr:controller>
<dwr:config-param name="crossDomainSessionSecurity" value="false" />
</dwr:controller>
</beans>
[/XML]
Kann mir jemand dabei helfen? Ein leeres Name-Attribut gibt es nicht und keiner der Tags ohne Attribut hat bisher eines verlangt.
Bin am Verzweifeln.
mfG
Tarantoga