users@grizzly.java.net

GrizzlyWebServerDeployer - Error Could not deploy war due to ServetletContext

From: Shawn_Pan <xpan_at_cdmtech.com>
Date: Tue, 3 Nov 2009 12:25:38 -0800 (PST)

Dear grizzly developers:

I have a similar problem when using GrizzlyWebServerDeployer to deploy a WAR
that works fine in both Tomcat and Glassfish. GrizzlyWebServerDeployer
throws the following error:
SEVERE: Context initialization failed
org.springframework.beans.factory.BeanDefinitionStoreException: IOException
parsing XML document from ServletContext resource
[/WEB-INF/applicationContext.xml]; nested exception is
java.io.FileNotFoundException: Could not open ServletContext resource
[/WEB-INF/applicationContext.xml]
  at
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:349)
...

This looks like a problem that the Deployer does not deal with the web.xml
correctly, because 'applicationContext.xml' is in the WAR but at a different
location that is specified in the web.xml

I am using GrizzlyWebServerDeployer 1.9.18-e.

The WAR that I used for this experiment is downloaded from here:
http://www.ja-sig.org/downloads/cas/cas-server-3.3-RC3-release.zip
After unzip it, the WAR is under the folder \cas-server-3.3-RC3\modules\

Any help would be thanked whole heatedly :)

Regards, Shawn
-- 
View this message in context: http://old.nabble.com/GrizzlyWebServerDeployer---Error-Could-not-open-ServletContext-tp23986126p26163568.html
Sent from the Grizzly - Users mailing list archive at Nabble.com.