You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by BugRat Mail System <to...@cortexity.com> on 2000/10/19 07:27:07 UTC
BugRat Report #278 has been filed.
Bug report #278 has just been filed.
You can view the report at the following URL:
<http://znutar.cortexity.com:8888/BugRatViewer/ShowReport/278>
REPORT #278 Details.
Project: Struts
Category: Bug Report
SubCategory: New Bug Report
Class: swbug
State: received
Priority: medium
Severity: non-critical
Confidence: public
Environment:
Release: 20001017
JVM Release: all
Operating System: all
OS Release: any
Platform: all
Synopsis:
struts-example will (must!) fail if installed as WAR
Description:
There are two problems with the struts-example WebApplication.
First, the inline javadocs of DatabaseServlet.java
mention the ability to set the 'pathname' of the database
as init-argument. However, the code in DatabaseServlet.init
does only look for 'debug'. This, together with the way
how pathname is implemented, causes the example to fail,
if it is deployed as .war-file. (In this case, the
call to GetRealPath() inside pathname() returns null,
causing the servlet to load from "null/WEB-INF/database.xml"
which of course does not exist.)