sbelt wrote:
> 
> I have used the latest CVS to create a Jetspeed.war. I have moved the file
> into the /webapps folder of tomcat 4.0 (Catalina). I get the following
> exception:
> 
> Horrible Exception: org.apache.turbine.services.InitializationException:
> Turbine::init(ServletConfig) - The Turbine Resources File -
> '/usr/local/jakarta-tomcat-4.0/bin/./../webapps/jetspeed./WEB-INF/conf/Turbi
> neResources.properties' does not exist. Please create it or change the
> 'properties' Init Parameter Value to a file name that exists and contains
> the TurbineResources.
> 

If you look at the path searched, there's a 
"webapps/jetspeed./WEB-INF/" 
                 ^
which is probably meant to be 
"webapps/jetspeed/./WEB-INF/"

Looking at the code (org.apache.turbine.util.ServletUtils), it looks
like the getRealPath("/") returned by Catalina has no trailing slash 
whereas the one returned by Tomcat has one.

Workaround: try using "/WEB-INF/conf/TurbineResources.properties" in the web.xml
Better solution:
- check if Catalina behavior is servlet 2.2 compliant and fix it if it's not
- patch the ServletUtils code which is broken in handling a lot of cases
  (I have this in my TODO list but if someone beats me to it, you're welcome)

--
Raphaël Luta - [EMAIL PROTECTED]
Vivendi Universal Networks - Services Manager / Paris


--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/[email protected]/>
List Help?:          [EMAIL PROTECTED]

Reply via email to