Menu

#24 Windows 2000 fix

open
nobody
general (15)
5
2002-04-29
2002-04-29
No

In my attempts to get this program going on windows
2000 I got past the first error as follows:
---start--error--message-one---
- 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 ... Error parsing WebMail
configuration file!
org.xml.sax.SAXParseException: File "C:\Program
Files\Apache Tomcat 4.0\webapps\
webmail\lib\xml\sysdata.dtd" not found.
at
org.apache.xerces.framework.XMLParser.reportError
(XMLParser.java:1062
)
at
org.apache.xerces.readers.DefaultEntityHandler.startRea
dingFromExtern
alEntity(DefaultEntityHandler.java:775)
---end--error--message--one---

what I have to do was to change the line in webmail.xml
to read:
<!DOCTYPE SYSDATA SYSTEM "C:\Program Files\Apache
Tomcat 4.0\webapps\webmail\lib\xml\sysdata.dtd">

this is only a temporary fix because after the first
run the program changes that line back by adding in
the string "C:". So I have to do that every time.

Next once I don't get the first error I can get to the
first log in screen. After putting in my login
information I get a second error that I can't figure
out a work around for. It is as follows:
---start--error--message-two---

at java.lang.Thread.run(Thread.java:536)
net.wastl.webmail.exceptions.CreateUserDataException:
User configuration templat
e (C:\Program Files\Apache Tomcat 4.0
\webapps\webmail\lib\xml\userdata.xml) exis
ts but could not be parsed
at
net.wastl.webmail.storage.simple.SimpleStorage.createUs
erData(SimpleS
torage.java:219)
at
net.wastl.webmail.storage.simple.SimpleStorage.getUserD
ata(SimpleStor
age.java:287)
at
net.wastl.webmail.server.WebMailSession.doInit
(WebMailSession.java:15
5)
---end--error--message--two---

Also, after I get to the login screen at that point
the "C:" is added to the webmail.xml file so I go in
and reset that by removing "C:".

Lastly, a bit of information you might need is that on
the second error some error text is printed to the
browser screen. It is as follows:

exception

javax.servlet.ServletException: Error: Invalid class
for input text
at
net.wastl.webmail.server.WebMailServlet.service
(WebMailServlet.java:373)
at
org.apache.catalina.core.ApplicationFilterChain.interna
lDoFilter(ApplicationFilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilte
r(ApplicationFilterChain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke
(StandardWrapperValve.java:243)
at
org.apache.catalina.core.StandardPipeline.invokeNext
(StandardPipeline.java:566)

<SNIP>

root cause

java.lang.IllegalArgumentException: Invalid class for
input text
at gnu.regexp.RE.makeCharIndexed(RE.java:1126)
at gnu.regexp.RE.getAllMatches(RE.java:748)
at gnu.regexp.RE.getAllMatches(RE.java:722)
at net.wastl.webmail.ui.html.HTMLErrorMessage.
(HTMLErrorMessage.java:57)
at
net.wastl.webmail.server.ToplevelURLHandler.handleExcep
tion(ToplevelURLHandler.java:88)
at
net.wastl.webmail.server.WebMailServlet.service
(WebMailServlet.java:297)
at
org.apache.catalina.core.ApplicationFilterChain.interna
lDoFilter(ApplicationFilterChain.java:247)

<SNIP>

It seems to be not to far from working on 2000. It
just needs a little tweaking. I am eager to put it to
use when this is all worked out. From the screen
shots it looks very impressive!

Keep up the great work.

Thanks,
Jason Stracner

P.S.
I don't mind doing some
more testing for you if
needed. :-)

Discussion

  • Nobody/Anonymous

    Logged In: NO

    I am at the exact same point with the "invalid class for input"
    error. All else seems to work.

    BTW I also "fixed" the one problem with the sysdata.dtd in
    webmail.xml (C:\), but it also replaces the text on my
    implematation:
    Win2k SP2
    JDK1.4
    Tomcat3.3.1

     
  • Roberto Leibman

    Roberto Leibman - 2002-06-02

    Logged In: YES
    user_id=232067

    Just a quick note: me too! Please look into this!

     
  • Roberto Leibman

    Roberto Leibman - 2002-06-03

    Logged In: YES
    user_id=232067

    Just a quick note: me too! Please look into this!

     
  • Christian SENET

    Christian SENET - 2002-06-13

    Logged In: YES
    user_id=559439

    me too ! at tomcat starting time, the parsing error disappears by replacing:
    (see <!DOCTYPE ...> line in data\webmail.xml)
    c:\your_tomcat_home\webapps\webmail\lib\xml\sysdata.dtd
    with
    \your_tomcat_home\webapps\webmail\lib\xml\sysdata.dtd
    or
    c:\your_tomcat_home\webapps\webmail\lib\xml\sysdata.dtd
    or
    file://c:\your_tomcat_home\webapps\webmail\lib\xml\sysdata.dtd

    but it isn't sufficient, because another parsing error remains, even if admin login seems to work ... here's the state I
    am in now, when a new user tries to log in (see your data\webmail.log file):

    [13 juin 2002 12:08:14] - INFO - WebMail: New Session (t065mrjer1)
    [13 juin 2002 12:08:15] - INFO - POPAuthentication: user joe authenticated successfully (pop host:
    pop.joemachine.fr).
    [13 juin 2002 12:08:15] - INFO - UserConfig: Creating user configuration for joe
    [13 juin 2002 12:08:15] - WARNING - SimpleStorage: User configuration template
    (C:\replace_with_tomcat_homedir\webapps\webmail\lib\xml\userdata.xml) exists but could not be parsed

    and at a RESULT, your web browser goes to Error: 500 state in this case ....

    ... wait and see ... ???

    Christian

     
  • Nobody/Anonymous

    Logged In: NO

    I am also at the exact same point with this installation.

    I noticed that the error dissappears when I create a folder in
    the webmail\data folder for my server. Then webmail trys to
    read the configuration from <user>.xml.

    This leads me to believe that it's not an error with the
    userdata.xml file, but an error in the parsing system itself.

    System:
    Windows 2000 Professional SP2
    Apache Tomcat 3.3.1
    J2SDK 1.4
    Apache 1.3.26
    Webmail 0.78

    Kevin

     
  • Leonard Sitongia

    Logged In: YES
    user_id=620875

    Please download and try the new release to see if it will fix the
    problem you have reported.

    Thank you!

     
  • Nobody/Anonymous

    Logged In: NO

    The problem is cause by using:

    file://

    instead of

    file:/

    when URLs are created.

     

Log in to post a comment.

MongoDB Logo MongoDB