Re: [Winstone-devel] reloading using winstone-0.9.9
Status: Beta
Brought to you by:
rickknowles
From: Rick K. <ri...@kn...> - 2007-11-15 09:22:16
|
liuhualiang, Please try adding "preferredClassLoader=java.net.URLClassLoader" into your winstone properties file. This is a workaround for a known bug that I'm not sure how to fix yet. This will disable class reloading, which is affected by the bug I mentioned. Sorry, Rick 柳 華良 wrote: > Hi,everyone > I'm liuhualiang,I'm a new user of winstone ,winstone is Great! > When using it ,If found that the function of class reload sometimes > don't work well, > sometimes error occurs as the following , > [Winstone 2007/11/15 10:50:38] - Class OOOOOO.class changed at Thu Nov > 15 10:50:38 JST 2007 (old date Wed Oct 24 16:58:11 JST 2007) - reloading > [Winstone 2007/11/15 10:50:43] - Error initializing web application: > prefix [] > java.lang.ClassCastException > at > javax.xml.parsers.DocumentBuilderFactory.newInstance(DocumentBuilderFactory.java:93) > at winstone.WebXmlParser.getBaseDBF(WebXmlParser.java:130) > at winstone.WebXmlParser.parseStreamToXML(WebXmlParser.java:48) > at winstone.HostConfiguration.initWebApp(HostConfiguration.java:119) > at winstone.HostConfiguration.reloadWebApp(HostConfiguration.java:192) > at > winstone.WebAppConfiguration.resetClassLoader(WebAppConfiguration.java:1211) > at > winstone.classLoader.ReloadingClassLoader.run(ReloadingClassLoader.java:160) > at java.lang.Thread.run(Thread.java:534) > my setting file is as following : > # paths > commonLibFolder=lib > #logfile=winstone.log > #webappsDir=main > webroot=main > # setup server > httpPort=80 > #httpsPort=443 > useJNDI=true > handlerCountStartup=10 > debug=5 > Best regards > liuhualiang > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > ------------------------------------------------------------------------ > > _______________________________________________ > Winstone-devel mailing list > Win...@li... > https://lists.sourceforge.net/lists/listinfo/winstone-devel > |