Winstone 0.9.5:
I get an exception upon start up, but the servlet still
seems to work, so this isn't critical, but if I'm doing
something wrong, I'd like to know about it.
Command line:
--webroot=C:\PSN\web --httpPort=8089 --prefix=/psn
--realmClassName=winstone.realm.FileRealm
--fileRealm.configFile=C:\PSN\users.xml
users.xml:
<users>
<username="admin" password="admin"
roles="admin,manager" />
<username="tomcat" password="tomcat" roles="tomcat" />
<username="role1" password="tomcat" roles="role1" />
</users>
[Winstone 2006/08/29 13:26:44] - WARNING:
Non-XML-Schema-compliant parser detected. Servlet spec
<= 2.3 supported
[Winstone 2006/08/29 13:26:44] - Authentication
disabled - couldn't load authentication handler:
winstone.auth.BasicAuthenticationHandler or realm:
winstone.realm.FileRealm
java.lang.reflect.InvocationTargetException
at
sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at
java.lang.reflect.Constructor.newInstance(Constructor.java:494)
at
winstone.WebAppConfiguration.<init>(WebAppConfiguration.java:677)
at
winstone.HostConfiguration.initWebApp(HostConfiguration.java:131)
at
winstone.HostConfiguration.<init>(HostConfiguration.java:73)
at winstone.HostGroup.initHost(HostGroup.java:85)
at winstone.HostGroup.<init>(HostGroup.java:45)
at winstone.Launcher.<init>(Launcher.java:194)
at winstone.Launcher.main(Launcher.java:389)
Caused by: java.util.MissingResourceException: Can't
find resource for bundle
java.util.PropertyResourceBundle, key
FileRealm.WebXMLParseError
at
java.util.ResourceBundle.getObject(ResourceBundle.java:325)
at
java.util.ResourceBundle.getString(ResourceBundle.java:285)
at
winstone.WinstoneResourceBundle.getString(WinstoneResourceBundle.java:40)
at
winstone.realm.FileRealm.parseStreamToXML(FileRealm.java:133)
at winstone.realm.FileRealm.<init>(FileRealm.java:65)
... 11 more
my e-mail addres is: sgarbarini@sciforma.com
Logged In: NO
I apologize. I just figured out that my users.xml file is
formatted wrong.
Thanks for a great little servlet container!
Logged In: YES
user_id=716353
sgarbarini,
Thanks for this. What you've found here is a bug that is
covering the real error so you can't see what it is. I've
fixed the covering bug in CVS (missing property key in the
resource bundle). If you try with a build of the CVS
version, it should tell you what the problem is.
From the place the error was thrown, I suspect it's an
invalid XML file. The XML parser part through the error.
If the XML is valid, it could also be a DTD or something
that is not resolvable. Hopefully the fixed version in CVS
will give a better description of what the error is.
Please feel free to re-open this and post the error
message if the error is not obvious.
Thanks again.
Logged In: YES
user_id=716353
Whoops - sorry, didn't see the second message. Glad it
worked out, and thanks for pointing out the covering bug.