You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Claus Bogner <bo...@isogmbh.de> on 2006/06/16 15:54:51 UTC
Problems with listener-configuration in web.xml for Spring-Integration
Hi,
I configured the web.xml of my tapestry application for integration with
struts like that:
<?xml version="1.0"?>
<web-app xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/TR/xmlschema-1/"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
version="2.4">
<display-name>crm</display-name>
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>/WEB-INF/applicationContext*.xml</param-value>
</context-param>
<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</liste
ner-class>
</listener>
<servlet>
<servlet-name>crm</servlet-name>
<servlet-class>org.apache.tapestry.ApplicationServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>crm</servlet-name>
<url-pattern>/app</url-pattern>
</servlet-mapping>
</web-app>
The spring integration in my application works fine. But I have other
applications installed in my Tomcat (for example a simple
HelloWorld-Application) that does NOT use any Spring context. All
applications without a Spring integration cause an exception during startup
of Tomcat when I modify the web.xml with the <listener>-part as described
above:
4345 [main] INFO org.apache.catalina.core.StandardHostDeployer - Processing
Co
ntext configuration file URL
file:D:\ACRM\tools\Tomcat\conf\Catalina\localhost\H
elloWorld.xml
**********************************************************
org.apache.hivemind.ApplicationRuntimeException: Could not locate the Spring
app
lication context. Most likely, you did not initialize a
ContextLoaderListener in
side your web.xml deployment descriptor.
Does anyone know why the entry in the web.xml-file of my
Tapestry/Spring-application has an implication for the other application?
How can I avoid that?
Thanks,
Claus
Claus Bogner - Dipl.Inf. (FH), M.Sc. (Univ.)
Projektmanagement Touristik
ISO Software Systeme
Eichendorffstr. 29
90491 Nürnberg
Deutschland
Tel. : +49 / 911 - 99594-0
Fax : +49 / 911 - 99594-129
mailto:claus.bogner@isogmbh.de
http://www.isogmbh.de <http://www.isogmbh.de/>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org