I've got a problem with my WebMail.
First, I'm using Tomcat 4.0. Is 4.1 a requirement? In the
INSTALL file, I see "Apache Tomcat, preferably >= 4.1,".
What does preferably means ?
Second, I dropped webmail.war in the "webapps"
directory and a small problem appear as soon as I try
http://myhost/webmail/index.jsp (or admin.jsp):
I've got a 500 internal error with the following Exception:
java.lang.ClassCastException
at javax.xml.parsers.DocumentBuilderFactory.
newInstance(DocumentBuilderFactory.java:93)
at org.apache.jasper.parser.ParserUtils.
parseXMLDocument(ParserUtils.java:183)
at org.apache.jasper.compiler.TldLocationsCache.
processWebDotXml(TldLocationsCache.java:165)
at org.apache.jasper.compiler.TldLocationsCache.
(TldLocationsCache.java:138)
at org.apache.jasper.EmbededServletOptions.
(EmbededServletOptions.java:345)
at org.apache.jasper.servlet.JspServlet.init(JspServlet.
java:266)
at org.apache.catalina.core.StandardWrapper.
load(StandardWrapper.java:852)
at org.apache.catalina.core.StandardWrapper.
allocate(StandardWrapper.java:615)
at org.apache.catalina.core.StandardWrapperValve.
invoke(StandardWrapperValve.java:214)
at org.apache.catalina.core.StandardPipeline.
invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.
invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.
invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardContextValve.
invoke(StandardContextValve.java:201)
at org.apache.catalina.core.StandardPipeline.
invokeNext(StandardPipeline.java:566)
at org.apache.catalina.valves.CertificatesValve.
invoke(CertificatesValve.java:246)
at org.apache.catalina.core.StandardPipeline.
invokeNext(StandardPipeline.java:564)
at org.apache.catalina.core.StandardPipeline.
invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.
invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardContext.
invoke(StandardContext.java:2343)
at org.apache.catalina.core.StandardHostValve.
invoke(StandardHostValve.java:164)
at org.apache.catalina.core.StandardPipeline.
invokeNext(StandardPipeline.java:566)
at org.apache.catalina.valves.ErrorDispatcherValve.
invoke(ErrorDispatcherValve.java:170)
at org.apache.catalina.core.StandardPipeline.
invokeNext(StandardPipeline.java:564)
at org.apache.catalina.valves.ErrorReportValve.
invoke(ErrorReportValve.java:170)
at org.apache.catalina.core.StandardPipeline.
invokeNext(StandardPipeline.java:564)
at org.apache.catalina.valves.AccessLogValve.
invoke(AccessLogValve.java:468)
at org.apache.catalina.core.StandardPipeline.
invokeNext(StandardPipeline.java:564)
at org.apache.catalina.core.StandardPipeline.
invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.
invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardEngineValve.
invoke(StandardEngineValve.java:174)
at org.apache.catalina.core.StandardPipeline.
invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.
invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.
invoke(ContainerBase.java:943)
at org.apache.catalina.connector.http.HttpProcessor.
process(HttpProcessor.java:1012)
at org.apache.catalina.connector.http.HttpProcessor.
run(HttpProcessor.java:1107)
at java.lang.Thread.run(Thread.java:536)
Logged In: YES
user_id=530082
Just some more comments:
Using j2sdk 1.4.1_02 & j2ee 1.3.1
Logged In: YES
user_id=530082
Ok, so I finally did bite the bullet and installed Tomcat 4.1.27
The problem seems to be due to the fact that I'm running in
w2k, not in *nix. The error message was basically: "No
protocol: %DTDDIR%/sysdata.dtd" (see below for more details)
.
I just edited manually webmail.xml and changed the DTD url to
a valid http URL (on a public folder of my other instance of
tomcat) and everything started fine. The webmail.xml was
then overriden with the new URL being "file://D:
\Server\jakarta-tomcat-4.1.
27\webapps\webmail\lib\xml\sysdata.dtd"...
Here is the Stack trace:
webmail.default.locale.language: en
webmail.plugins: About:AdminPlugin:ChallengeHandler:
Composer:ErrorHandler:FileAt
tacher:FolderList:FolderSetup:NavBar:ImageHandler:
LogoutSession:MailboxList:Pass
ThroughPlugin:SendMessage:ShowMessage:ShowMIME:
UserSetup:WebMailHelp:WebMailTitl
e
webmail.imagebase: /webmail/lib/templates
webmail.storage: net.wastl.webmail.storage.simple.
SimpleStorage
webmail.default.theme: bibop
webmail.log.facility: net.wastl.webmail.logger.ServletLogger
webmail.default.locale.country: US
webmail.basepath: /webmail/WebMail
webmail.authenticators: IMAPAuthenticator:POPAuthenticator:
OTPAuthenticator:Simp
leAuthenticator:UnixAuthenticator
WebMail/Java Server v0.7.10 going up...
Initalizing...
- Checking Java Virtual Machine ...
* Version: 1.4.1_02 ... ok.
* Operating System: Windows 2000/x86 5.0 ... warning.
WebMail was only tested
on Solaris, HP-UX and Linux and may cause problems on your
platform.
* User name: Administrator ... ok.
* WebMail System Properties: ok!
* Setting DTD-path in webmail.xml ... done!
- Configuration Scheme Handler ... done!
- Default Locale: English (United States)
- Default Theme: bibop
- Initializing WebMail Authenticator Plugins ...
* registered authenticator plugin "IMAPAuthenticator"
* registered authenticator plugin "POPAuthenticator"
* registered authenticator plugin "OTPAuthenticator"
* registered authenticator plugin "SimpleAuthenticator"
* registered authenticator plugin "UnixAuthenticator"
done!
- Storage API (null) and Configuration ...
* Configuration ... LOG(1): SimpleStorage: Failed to load
WebMail configuratio
n file. Reason: no protocol: %DTDDIR%/sysdata.dtd
java.net.MalformedURLException: no protocol: %DTDDIR%
/sysdata.dtd
at java.net.URL.<init>(URL.java:579)
at java.net.URL.<init>(URL.java:476)