incubator-jspwiki-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Harry Metske <harry.met...@gmail.com>
Subject Re: Winstone/CDDL
Date Thu, 26 Mar 2009 21:25:15 GMT
A couple of things are failing :

First, in the test version of web.xml I forgot to remove the DAV stuff,
causing a NoClassDeffoundError. (I will patch that)
Second, a couple of log.error statements in WikiEngine have the wrong
(number of) parameters, so we don't get proper diagnostic output (I will
patch that)
Third, see stacktrace and log below, an NPE occurs in
StripesURLConstructor.initialize() because
engine.getServletContext().getAttribute(
WikiRuntimeConfiguration.STRIPES_CONFIGURATION ) returns a null.
Looking at the log I find the order a bit strange, we see Stripes
initializing, then the NPE, more Stripes initialization and later we see
initialization of WikiRuntimeConfiguration (if that would have happened
first, the NPE would not have occurred )

time is up now....

Janne, hope to speak to you tomorrow, I have a couple of questions, one of
them is "per se" :-)






     [echo] Shutting down Jetty (if it is up).
      [get] Getting: http://localhost:19041/
      [get] To: /tmp/webtests/shutdown.log
      [get] Error getting http://localhost:19041/ to
/tmp/webtests/shutdown.log
     [echo] Starting Jetty.
     [java] log4j: Trying to find [log4j.properties] using context
classloader
AntClassLoader[/home/metskem/workspace/JSPWiki/build/JSPWiki.jar:/home/metskem/workspace/JSPWiki/build/JSPWiki-tests.jar:/usr/lib/jvm/java-1.5.0-sun-1.5.0.16/lib/tools.jar:/home/metskem/workspace/JSPWiki/src/WebContent/WEB-INF/lib/activation.jar:/home/metskem/workspace/JSPWiki/src/WebContent/WEB-INF/lib/akismet-java-1.02.jar:/home/metskem/workspace/JSPWiki/src/WebContent/WEB-INF/lib/commons-codec-1.3.jar:/home/metskem/workspace/JSPWiki/src/WebContent/WEB-INF/lib/commons-fileupload-1.2.1.jar:/home/metskem/workspace/JSPWiki/src/WebContent/WEB-INF/lib/commons-httpclient-3.0.1.jar:/home/metskem/workspace/JSPWiki/src/WebContent/WEB-INF/lib/commons-io-1.4.jar:/home/metskem/workspace/JSPWiki/src/WebContent/WEB-INF/lib/commons-lang-2.3.jar:/home/metskem/workspace/JSPWiki/src/WebContent/WEB-INF/lib/ecs.jar:/home/metskem/workspace/JSPWiki/src/WebContent/WEB-INF/lib/freshcookies-security-0.60.jar:/home/metskem/workspace/JSPWiki/src/WebContent/WEB-INF/lib/jabsorb-1.3.jar:/home/metskem/workspace/JSPWiki/src/WebContent/WEB-INF/lib/jakarta-tablibs-standard-1.1.2.jar:/home/metskem/workspace/JSPWiki/src/WebContent/WEB-INF/lib/jakarta-taglibs-jstl-1.1.2.jar:/home/metskem/workspace/JSPWiki/src/WebContent/WEB-INF/lib/jaxen.jar:/home/metskem/workspace/JSPWiki/src/WebContent/WEB-INF/lib/jcl-over-slf4j-1.5.6.jar:/home/metskem/workspace/JSPWiki/src/WebContent/WEB-INF/lib/jcr-1.0.jar:/home/metskem/workspace/JSPWiki/src/WebContent/WEB-INF/lib/jdom.jar:/home/metskem/workspace/JSPWiki/src/WebContent/WEB-INF/lib/jrcs-diff.jar:/home/metskem/workspace/JSPWiki/src/WebContent/WEB-INF/lib/jsp-api.jar:/home/metskem/workspace/JSPWiki/src/WebContent/WEB-INF/lib/jul-to-slf4j-1.5.6.jar:/home/metskem/workspace/JSPWiki/src/WebContent/WEB-INF/lib/log4j-1.2.14.jar:/home/metskem/workspace/JSPWiki/src/WebContent/WEB-INF/lib/lucene-highlighter.jar:/home/metskem/workspace/JSPWiki/src/WebContent/WEB-INF/lib/lucene.jar:/home/metskem/workspace/JSPWiki/src/WebContent/WEB-INF/lib/mail.jar:/home/metskem/workspace/JSPWiki/src/WebContent/WEB-INF/lib/nekohtml.jar:/home/metskem/workspace/JSPWiki/src/WebContent/WEB-INF/lib/oscache.jar:/home/metskem/workspace/JSPWiki/src/WebContent/WEB-INF/lib/priha-0.1.15.jar:/home/metskem/workspace/JSPWiki/src/WebContent/WEB-INF/lib/sandler.jar:/home/metskem/workspace/JSPWiki/src/WebContent/WEB-INF/lib/servlet-api.jar:/home/metskem/workspace/JSPWiki/src/WebContent/WEB-INF/lib/slf4j-api-1.5.6.jar:/home/metskem/workspace/JSPWiki/src/WebContent/WEB-INF/lib/slf4j-log4j12-1.5.6.jar:/home/metskem/workspace/JSPWiki/src/WebContent/WEB-INF/lib/stripes-1.5.1.jar:/home/metskem/workspace/JSPWiki/src/WebContent/WEB-INF/lib/xmlrpc.jar:/home/metskem/workspace/JSPWiki/tests/lib/commons-el-1.0.jar:/home/metskem/workspace/JSPWiki/tests/lib/custom_rhino.jar:/home/metskem/workspace/JSPWiki/tests/lib/hsqldb.jar:/home/metskem/workspace/JSPWiki/tests/lib/jasper-compiler-5.5.25.jar:/home/metskem/workspace/JSPWiki/tests/lib/jasper-runtime-5.5.25.jar:/home/metskem/workspace/JSPWiki/tests/lib/jetty-jmx-5.1.14.jar:/home/metskem/workspace/JSPWiki/tests/lib/jetty-plus-5.1.14.jar:/home/metskem/workspace/JSPWiki/tests/lib/jetty-servlet-5.1.14.jar:/home/metskem/workspace/JSPWiki/tests/lib/junit.jar:/home/metskem/workspace/JSPWiki/tests/lib/selenium-java-client-driver-1.0b2.jar:/home/metskem/workspace/JSPWiki/tests/lib/selenium-server-1.0b2.jar:/home/metskem/workspace/JSPWiki/tests/lib/xercesImpl-2.6.2.jar:/home/metskem/workspace/JSPWiki/tests/lib/xml-apis-1.0.b2.jar:/home/metskem/workspace/JSPWiki/tests/lib/yuicompressor-2.3.3.jar:/home/metskem/workspace/JSPWiki/src/WebContent/WEB-INF/classes:/home/metskem/workspace/JSPWiki/tests/etc].
     [java] log4j: Using URL
[file:/home/metskem/workspace/JSPWiki/src/WebContent/WEB-INF/classes/log4j.properties]
for automatic log4j configuration.
     [java] log4j: Reading configuration from URL
file:/home/metskem/workspace/JSPWiki/src/WebContent/WEB-INF/classes/log4j.properties
     [java] log4j: Parsing for [root] with value=[INFO, stdout].
     [java] log4j: Level token is [INFO].
     [java] log4j: Category root set to INFO
     [java] log4j: Parsing appender named "stdout".
     [java] log4j: Parsing layout options for "stdout".
     [java] log4j: Setting property [conversionPattern] to [%d{ABSOLUTE} %5p
%c{1}:%L - %m%n].
     [java] log4j: End of parsing for "stdout".
     [java] log4j: Setting property [target] to [System.out].
     [java] log4j: Parsed "stdout" options.
     [java] log4j: Parsing for [net.sourceforge.stripes] with value=[info].
     [java] log4j: Level token is [info].
     [java] log4j: Category net.sourceforge.stripes set to INFO
     [java] log4j: Handling log4j.additivity.net.sourceforge.stripes=[null]
     [java] log4j: Finished configuring.
     [java] 22:06:16,618  INFO TestContainer:79 - No JNDI context factory
found; using org.mortbay.jndi.InitialContextFactory.
     [java] 22:06:16,626  INFO TestContainer:79 - Initialized JNDI with
context factory class=null.
     [java] 22:06:16,684  INFO TestContainer:79 - No JNDI java:comp
namespace found; creating it,
     [java] 22:06:16,685  INFO TestContainer:79 - Initialized JNDI java:comp
namespace.=null
     [java] 22:06:16,686  INFO TestContainer:79 - Creating new test
container.
     [java] 22:06:16,766  INFO TestContainer:79 - ...added HTTP listener for
port 10024
     [java] 22:06:16,767  INFO TestContainer:79 - ...added shutdown listener
for port 19041
     [java] 22:06:16,786  INFO TestContainer:79 - Adding context
/test-custom at path
/home/metskem/workspace/JSPWiki/build/webtests/test-custom/webapp
     [java] 22:06:16,870  INFO TestContainer:79 - Adding test webapp
/test-custom for path
/home/metskem/workspace/JSPWiki/build/webtests/test-custom/webapp
     [java] Configured datasources.
     [java] Starting up test container.
     [java] 22:06:16,904  INFO AbstractDataSourceService:209 - Starting
Service DataSourceService
     [java] 22:06:16,906  INFO AbstractDataSourceService:255 - Service
DataSourceService running.
     [java] 22:06:16,907  INFO AbstractDataSourceService:258 - Service
DataSourceService is already running
     [java] 22:06:16,911  INFO HttpServer:684 - Version Jetty/5.1.x
     [java] 22:06:16,927  INFO Credential:60 - Checking Resource aliases
     [java] 22:06:19,902  INFO Container:74 - Started
org.mortbay.jetty.servlet.WebApplicationHandler@60eb0c
     [java] 22:06:19,924  INFO JSPWiki:1134 -  Assigning new engine to
3530676
     [java] 22:06:19,926  INFO JSPWiki:1134 - No jspwiki.propertyfile
defined for this context, using default from /WEB-INF/jspwiki.properties
     [java] 22:06:20,059  INFO JSPWiki:1134 - Loading cascading
properties...
     [java] 22:06:20,060  INFO JSPWiki:1134 -  No cascading properties
defined for this context
     [java] 22:06:20,068  INFO WikiEngine:79 -
*******************************************
     [java] 22:06:20,071  INFO WikiEngine:79 - JSPWiki 3.0.0-svn-86
starting. Whee!
     [java] 22:06:20,074  INFO WikiEngine:79 - Servlet container:
Jetty/5.1.x
     [java] 22:06:20,076  INFO WikiEngine:79 - JSPWiki working directory is
'/home/metskem/workspace/JSPWiki//home/metskem/workspace/JSPWiki/build/webtests/test-custom/workdir'
     [java] 22:06:20,096  INFO ResolverUtil:172 - Scanning for classes in
[/home/metskem/workspace/JSPWiki/build/JSPWiki.jar] matching criteria: is
assignable to WikiActionBean
     [java] 22:06:20,192  INFO ResolverUtil:172 - Scanning for classes in
[/home/metskem/workspace/JSPWiki/build/JSPWiki-tests.jar] matching criteria:
is assignable to WikiActionBean
     [java] 22:06:20,252  INFO ResolverUtil:172 - Scanning for classes in
[/home/metskem/workspace/JSPWiki/build/webtests/test-custom/webapp/WEB-INF/lib/JSPWiki.jar]
matching criteria: is assignable to WikiActionBean
     [java] DEBUGJE: null
     [java] 22:06:20,919 ERROR WikiEngine:55 - Failed to start managers.
java.lang.NullPointerException
     [java] java.lang.NullPointerException
     [java]     at
org.apache.wiki.url.StripesURLConstructor.initialize(StripesURLConstructor.java:178)
     [java]     at
org.apache.wiki.WikiEngine.initialize(WikiEngine.java:529)
     [java]     at org.apache.wiki.WikiEngine.<init>(WikiEngine.java:408)
     [java]     at
org.apache.wiki.WikiEngine.getInstance(WikiEngine.java:349)
     [java]     at
org.apache.wiki.ui.WikiServletFilter.init(WikiServletFilter.java:82)
     [java]     at
org.mortbay.jetty.servlet.FilterHolder.start(FilterHolder.java:71)
     [java]     at
org.mortbay.jetty.servlet.WebApplicationHandler.initializeServlets(WebApplicationHandler.java:310)
     [java]     at
org.mortbay.jetty.servlet.WebApplicationContext.doStart(WebApplicationContext.java:509)
     [java]     at
org.mortbay.jetty.plus.PlusWebAppContext.doStart(PlusWebAppContext.java:149)
     [java]     at org.mortbay.util.Container.start(Container.java:72)
     [java]     at org.mortbay.http.HttpServer.doStart(HttpServer.java:708)
     [java]     at org.mortbay.jetty.plus.Server.doStart(Server.java:153)
     [java]     at org.mortbay.util.Container.start(Container.java:72)
     [java]     at
org.apache.wiki.web.TestContainer.start(TestContainer.java:282)
     [java]     at
org.apache.wiki.web.TestContainer.main(TestContainer.java:136)
     [java]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
     [java]     at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
     [java]     at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
     [java]     at java.lang.reflect.Method.invoke(Method.java:585)
     [java]     at
org.apache.tools.ant.taskdefs.ExecuteJava.run(ExecuteJava.java:217)
     [java]     at
org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:152)
     [java]     at org.apache.tools.ant.taskdefs.Java.run(Java.java:747)
     [java]     at
org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:201)
     [java]     at org.apache.tools.ant.taskdefs.Java.execute(Java.java:104)
     [java]     at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
     [java]     at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown
Source)
     [java]     at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
     [java]     at java.lang.reflect.Method.invoke(Method.java:585)
     [java]     at
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
     [java]     at org.apache.tools.ant.Task.perform(Task.java:348)
     [java]     at
org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:62)
     [java]     at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
     [java]     at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown
Source)
     [java]     at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
     [java]     at java.lang.reflect.Method.invoke(Method.java:585)
     [java]     at
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
     [java]     at org.apache.tools.ant.Task.perform(Task.java:348)
     [java]     at
org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:391)
     [java]     at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
     [java]     at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown
Source)
     [java]     at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
     [java]     at java.lang.reflect.Method.invoke(Method.java:585)
     [java]     at
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
     [java]     at org.apache.tools.ant.Task.perform(Task.java:348)
     [java]     at org.apache.tools.ant.Target.execute(Target.java:357)
     [java]     at org.apache.tools.ant.Target.performTasks(Target.java:385)
     [java]     at
org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329)
     [java]     at
org.apache.tools.ant.Project.executeTarget(Project.java:1298)
     [java]     at
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
     [java]     at
org.eclipse.ant.internal.ui.antsupport.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32)
     [java]     at
org.apache.tools.ant.Project.executeTargets(Project.java:1181)
     [java]     at
org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(InternalAntRunner.java:423)
     [java]     at
org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main(InternalAntRunner.java:137)
     [java] 22:06:20,930  INFO JSPWiki:1134 - JSPWiki: Unable to load and
setup properties from jspwiki.properties. Failed to start managers: null
     [java] 22:06:20,930  INFO JSPWiki:1134 - ERROR: Failed to create a Wiki
engine: JSPWiki: Unable to load and setup properties from
jspwiki.properties. Failed to start managers: null
     [java] 22:06:20,949  INFO ResolverUtil:172 - Scanning for classes in
[/home/metskem/workspace/JSPWiki/build/JSPWiki.jar] matching criteria: is
assignable to Configuration
     [java] 22:06:21,039  INFO ResolverUtil:172 - Scanning for classes in
[/home/metskem/workspace/JSPWiki/build/JSPWiki-tests.jar] matching criteria:
is assignable to Configuration
     [java] 22:06:21,064  INFO ResolverUtil:172 - Scanning for classes in
[/home/metskem/workspace/JSPWiki/build/webtests/test-custom/webapp/WEB-INF/lib/JSPWiki.jar]
matching criteria: is assignable to Configuration
     [java] 22:06:21,128  INFO BootstrapPropertyResolver:172 - Class
implementing/extending Configuration found via auto-discovery:
org.apache.wiki.ui.stripes.WikiRuntimeConfiguration
     [java] 22:06:21,154  INFO ResolverUtil:172 - Scanning for classes in
[/home/metskem/workspace/JSPWiki/build/JSPWiki.jar] matching criteria: is
assignable to ActionResolver
     [java] 22:06:21,217  INFO ResolverUtil:172 - Scanning for classes in
[/home/metskem/workspace/JSPWiki/build/JSPWiki-tests.jar] matching criteria:
is assignable to ActionResolver
     [java] 22:06:21,241  INFO ResolverUtil:172 - Scanning for classes in
[/home/metskem/workspace/JSPWiki/build/webtests/test-custom/webapp/WEB-INF/lib/JSPWiki.jar]
matching criteria: is assignable to ActionResolver
     [java] 22:06:21,330  INFO ResolverUtil:172 - Scanning for classes in
[/home/metskem/workspace/JSPWiki/build/JSPWiki.jar] matching criteria: is
assignable to ActionBean
     [java] 22:06:21,393  INFO ResolverUtil:172 - Scanning for classes in
[/home/metskem/workspace/JSPWiki/build/JSPWiki-tests.jar] matching criteria:
is assignable to ActionBean
     [java] 22:06:21,414  INFO ResolverUtil:172 - Scanning for classes in
[/home/metskem/workspace/JSPWiki/build/webtests/test-custom/webapp/WEB-INF/lib/JSPWiki.jar]
matching criteria: is assignable to ActionBean
     [java] 22:06:21,536  INFO ResolverUtil:172 - Scanning for classes in
[/home/metskem/workspace/JSPWiki/build/JSPWiki.jar] matching criteria: is
assignable to ActionBeanPropertyBinder
     [java] 22:06:21,598  INFO ResolverUtil:172 - Scanning for classes in
[/home/metskem/workspace/JSPWiki/build/JSPWiki-tests.jar] matching criteria:
is assignable to ActionBeanPropertyBinder
     [java] 22:06:21,620  INFO ResolverUtil:172 - Scanning for classes in
[/home/metskem/workspace/JSPWiki/build/webtests/test-custom/webapp/WEB-INF/lib/JSPWiki.jar]
matching criteria: is assignable to ActionBeanPropertyBinder
     [java] 22:06:21,687  INFO ResolverUtil:172 - Scanning for classes in
[/home/metskem/workspace/JSPWiki/build/JSPWiki.jar] matching criteria: is
assignable to ActionBeanContextFactory
     [java] 22:06:21,751  INFO ResolverUtil:172 - Scanning for classes in
[/home/metskem/workspace/JSPWiki/build/JSPWiki-tests.jar] matching criteria:
is assignable to ActionBeanContextFactory
     [java] 22:06:21,772  INFO ResolverUtil:172 - Scanning for classes in
[/home/metskem/workspace/JSPWiki/build/webtests/test-custom/webapp/WEB-INF/lib/JSPWiki.jar]
matching criteria: is assignable to ActionBeanContextFactory
     [java] 22:06:21,835  INFO ResolverUtil:172 - Scanning for classes in
[/home/metskem/workspace/JSPWiki/build/JSPWiki.jar] matching criteria: is
assignable to ActionBeanContext
     [java] 22:06:21,898  INFO ResolverUtil:172 - Scanning for classes in
[/home/metskem/workspace/JSPWiki/build/JSPWiki-tests.jar] matching criteria:
is assignable to ActionBeanContext
     [java] 22:06:21,921  INFO ResolverUtil:172 - Scanning for classes in
[/home/metskem/workspace/JSPWiki/build/webtests/test-custom/webapp/WEB-INF/lib/JSPWiki.jar]
matching criteria: is assignable to ActionBeanContext
     [java] 22:06:21,982  INFO BootstrapPropertyResolver:172 - Class
implementing/extending ActionBeanContext found via auto-discovery:
org.apache.wiki.ui.stripes.WikiActionBeanContext
     [java] 22:06:21,983  INFO DefaultActionBeanContextFactory:172 -
DefaultActionBeanContextFactory will use ActionBeanContext subclass
org.apache.wiki.ui.stripes.WikiActionBeanContext
     [java] 22:06:21,985  INFO ResolverUtil:172 - Scanning for classes in
[/home/metskem/workspace/JSPWiki/build/JSPWiki.jar] matching criteria: is
assignable to TypeConverterFactory
     [java] 22:06:22,047  INFO ResolverUtil:172 - Scanning for classes in
[/home/metskem/workspace/JSPWiki/build/JSPWiki-tests.jar] matching criteria:
is assignable to TypeConverterFactory
     [java] 22:06:22,069  INFO ResolverUtil:172 - Scanning for classes in
[/home/metskem/workspace/JSPWiki/build/webtests/test-custom/webapp/WEB-INF/lib/JSPWiki.jar]
matching criteria: is assignable to TypeConverterFactory
     [java] 22:06:22,157  INFO ResolverUtil:172 - Scanning for classes in
[/home/metskem/workspace/JSPWiki/build/JSPWiki.jar] matching criteria: is
assignable to LocalizationBundleFactory
     [java] 22:06:22,218  INFO ResolverUtil:172 - Scanning for classes in
[/home/metskem/workspace/JSPWiki/build/JSPWiki-tests.jar] matching criteria:
is assignable to LocalizationBundleFactory
     [java] 22:06:22,240  INFO ResolverUtil:172 - Scanning for classes in
[/home/metskem/workspace/JSPWiki/build/webtests/test-custom/webapp/WEB-INF/lib/JSPWiki.jar]
matching criteria: is assignable to LocalizationBundleFactory
     [java] 22:06:22,305  INFO ResolverUtil:172 - Scanning for classes in
[/home/metskem/workspace/JSPWiki/build/JSPWiki.jar] matching criteria: is
assignable to LocalePicker
     [java] 22:06:22,382  INFO ResolverUtil:172 - Scanning for classes in
[/home/metskem/workspace/JSPWiki/build/JSPWiki-tests.jar] matching criteria:
is assignable to LocalePicker
     [java] 22:06:22,404  INFO ResolverUtil:172 - Scanning for classes in
[/home/metskem/workspace/JSPWiki/build/webtests/test-custom/webapp/WEB-INF/lib/JSPWiki.jar]
matching criteria: is assignable to LocalePicker
     [java] 22:06:22,468  INFO ResolverUtil:172 - Scanning for classes in
[/home/metskem/workspace/JSPWiki/build/JSPWiki.jar] matching criteria: is
assignable to FormatterFactory
     [java] 22:06:22,531  INFO ResolverUtil:172 - Scanning for classes in
[/home/metskem/workspace/JSPWiki/build/JSPWiki-tests.jar] matching criteria:
is assignable to FormatterFactory
     [java] 22:06:22,552  INFO ResolverUtil:172 - Scanning for classes in
[/home/metskem/workspace/JSPWiki/build/webtests/test-custom/webapp/WEB-INF/lib/JSPWiki.jar]
matching criteria: is assignable to FormatterFactory
     [java] 22:06:22,622  INFO ResolverUtil:172 - Scanning for classes in
[/home/metskem/workspace/JSPWiki/build/JSPWiki.jar] matching criteria: is
assignable to TagErrorRendererFactory
     [java] 22:06:22,684  INFO ResolverUtil:172 - Scanning for classes in
[/home/metskem/workspace/JSPWiki/build/JSPWiki-tests.jar] matching criteria:
is assignable to TagErrorRendererFactory
     [java] 22:06:22,705  INFO ResolverUtil:172 - Scanning for classes in
[/home/metskem/workspace/JSPWiki/build/webtests/test-custom/webapp/WEB-INF/lib/JSPWiki.jar]
matching criteria: is assignable to TagErrorRendererFactory
     [java] 22:06:22,770  INFO ResolverUtil:172 - Scanning for classes in
[/home/metskem/workspace/JSPWiki/build/JSPWiki.jar] matching criteria: is
assignable to TagErrorRenderer
     [java] 22:06:22,833  INFO ResolverUtil:172 - Scanning for classes in
[/home/metskem/workspace/JSPWiki/build/JSPWiki-tests.jar] matching criteria:
is assignable to TagErrorRenderer
     [java] 22:06:22,854  INFO ResolverUtil:172 - Scanning for classes in
[/home/metskem/workspace/JSPWiki/build/webtests/test-custom/webapp/WEB-INF/lib/JSPWiki.jar]
matching criteria: is assignable to TagErrorRenderer
     [java] 22:06:22,920  INFO ResolverUtil:172 - Scanning for classes in
[/home/metskem/workspace/JSPWiki/build/JSPWiki.jar] matching criteria: is
assignable to PopulationStrategy
     [java] 22:06:22,982  INFO ResolverUtil:172 - Scanning for classes in
[/home/metskem/workspace/JSPWiki/build/JSPWiki-tests.jar] matching criteria:
is assignable to PopulationStrategy
     [java] 22:06:23,007  INFO ResolverUtil:172 - Scanning for classes in
[/home/metskem/workspace/JSPWiki/build/webtests/test-custom/webapp/WEB-INF/lib/JSPWiki.jar]
matching criteria: is assignable to PopulationStrategy
     [java] 22:06:23,074  INFO BootstrapPropertyResolver:172 - Class
implementing/extending ExceptionHandler found in web.xml:
org.apache.wiki.ui.stripes.WikiExceptionHandler
     [java] 22:06:23,082  INFO ResolverUtil:172 - Scanning for classes in
[/home/metskem/workspace/JSPWiki/build/JSPWiki.jar] matching criteria: is
assignable to MultipartWrapperFactory
     [java] 22:06:23,150  INFO ResolverUtil:172 - Scanning for classes in
[/home/metskem/workspace/JSPWiki/build/JSPWiki-tests.jar] matching criteria:
is assignable to MultipartWrapperFactory
     [java] 22:06:23,173  INFO ResolverUtil:172 - Scanning for classes in
[/home/metskem/workspace/JSPWiki/build/webtests/test-custom/webapp/WEB-INF/lib/JSPWiki.jar]
matching criteria: is assignable to MultipartWrapperFactory
     [java] 22:06:23,242  INFO BootstrapPropertyResolver:172 - Class
implementing/extending MultipartWrapper found in web.xml:
net.sourceforge.stripes.controller.multipart.CommonsMultipartWrapper
     [java] 22:06:23,244  INFO DefaultMultipartWrapperFactory:172 - Using
net.sourceforge.stripes.controller.multipart.CommonsMultipartWrapper as
MultipartWrapper implementation.
     [java] 22:06:23,246  INFO ResolverUtil:172 - Scanning for classes in
[/home/metskem/workspace/JSPWiki/build/JSPWiki.jar] matching criteria: is
assignable to ValidationMetadataProvider
     [java] 22:06:23,309  INFO ResolverUtil:172 - Scanning for classes in
[/home/metskem/workspace/JSPWiki/build/JSPWiki-tests.jar] matching criteria:
is assignable to ValidationMetadataProvider
     [java] 22:06:23,331  INFO ResolverUtil:172 - Scanning for classes in
[/home/metskem/workspace/JSPWiki/build/webtests/test-custom/webapp/WEB-INF/lib/JSPWiki.jar]
matching criteria: is assignable to ValidationMetadataProvider
     [java] 22:06:23,407  INFO ResolverUtil:172 - Scanning for classes in
[/home/metskem/workspace/JSPWiki/build/JSPWiki.jar] matching criteria: is
assignable to Interceptor
     [java] 22:06:23,471  INFO ResolverUtil:172 - Scanning for classes in
[/home/metskem/workspace/JSPWiki/build/JSPWiki-tests.jar] matching criteria:
is assignable to Interceptor
     [java] 22:06:23,493  INFO ResolverUtil:172 - Scanning for classes in
[/home/metskem/workspace/JSPWiki/build/webtests/test-custom/webapp/WEB-INF/lib/JSPWiki.jar]
matching criteria: is assignable to Interceptor
     [java] 22:06:23,568  INFO ResolverUtil:172 - Scanning for classes in
[/home/metskem/workspace/JSPWiki/build/JSPWiki.jar] matching criteria: is
assignable to Formatter
     [java] 22:06:23,630  INFO ResolverUtil:172 - Scanning for classes in
[/home/metskem/workspace/JSPWiki/build/JSPWiki-tests.jar] matching criteria:
is assignable to Formatter
     [java] 22:06:23,653  INFO ResolverUtil:172 - Scanning for classes in
[/home/metskem/workspace/JSPWiki/build/webtests/test-custom/webapp/WEB-INF/lib/JSPWiki.jar]
matching criteria: is assignable to Formatter
     [java] 22:06:23,711  INFO ResolverUtil:172 - Scanning for classes in
[/home/metskem/workspace/JSPWiki/build/JSPWiki.jar] matching criteria: is
assignable to TypeConverter
     [java] 22:06:23,775  INFO ResolverUtil:172 - Scanning for classes in
[/home/metskem/workspace/JSPWiki/build/JSPWiki-tests.jar] matching criteria:
is assignable to TypeConverter
     [java] 22:06:23,797  INFO ResolverUtil:172 - Scanning for classes in
[/home/metskem/workspace/JSPWiki/build/webtests/test-custom/webapp/WEB-INF/lib/JSPWiki.jar]
matching criteria: is assignable to TypeConverter
     [java] 22:06:23,862  INFO WikiRuntimeConfiguration:79 - Attempting to
retrieve WikiEngine.
     [java] 22:06:23,864  INFO WikiRuntimeConfiguration:79 - WikiEngine is
running.
     [java] 22:06:23,865  INFO StripesFilter:172 - Stripes Initialization
Complete. Version: 1.5.1, Build: exported
     [java] 22:06:24,047  INFO SocketListener:204 - Started SocketListener
on 127.0.0.1:10024
     [java] 22:06:24,049  INFO SocketListener:204 - Started SocketListener
on 127.0.0.1:19041
     [java]
org.mortbay.util.MultiException[org.apache.wiki.InternalWikiException: No
wiki engine, check logs.]
     [java]     at org.mortbay.http.HttpServer.doStart(HttpServer.java:686)
     [java]     at org.mortbay.jetty.plus.Server.doStart(Server.java:153)
     [java]     at org.mortbay.util.Container.start(Container.java:72)
     [java]     at
org.apache.wiki.web.TestContainer.start(TestContainer.java:282)
     [java]     at
org.apache.wiki.web.TestContainer.main(TestContainer.java:136)
     [java]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
     [java]     at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
     [java]     at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
     [java]     at java.lang.reflect.Method.invoke(Method.java:585)
     [java]     at
org.apache.tools.ant.taskdefs.ExecuteJava.run(ExecuteJava.java:217)
     [java]     at
org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:152)
     [java]     at org.apache.tools.ant.taskdefs.Java.run(Java.java:747)
     [java]     at
org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:201)
     [java]     at org.apache.tools.ant.taskdefs.Java.execute(Java.java:104)
     [java]     at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
     [java]     at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown
Source)
     [java]     at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
     [java]     at java.lang.reflect.Method.invoke(Method.java:585)
     [java]     at
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
     [java]     at org.apache.tools.ant.Task.perform(Task.java:348)
     [java]     at
org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:62)
     [java]     at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
     [java]     at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown
Source)
     [java]     at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
     [java]     at java.lang.reflect.Method.invoke(Method.java:585)
     [java]     at
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
     [java]     at org.apache.tools.ant.Task.perform(Task.java:348)
     [java]     at
org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:391)
     [java]     at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
     [java]     at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown
Source)
     [java]     at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
     [java]     at java.lang.reflect.Method.invoke(Method.java:585)
     [java]     at
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
     [java]     at org.apache.tools.ant.Task.perform(Task.java:348)
     [java]     at org.apache.tools.ant.Target.execute(Target.java:357)
     [java]     at org.apache.tools.ant.Target.performTasks(Target.java:385)
     [java]     at
org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329)
     [java]     at
org.apache.tools.ant.Project.executeTarget(Project.java:1298)
     [java]     at
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
     [java]     at
org.eclipse.ant.internal.ui.antsupport.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32)
     [java]     at
org.apache.tools.ant.Project.executeTargets(Project.java:1181)
     [java]     at
org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(InternalAntRunner.java:423)
     [java]     at
org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main(InternalAntRunner.java:137)
     [java] org.apache.wiki.InternalWikiException: No wiki engine, check
logs.
     [java]     at
org.apache.wiki.WikiEngine.getInstance(WikiEngine.java:355)
     [java]     at
org.apache.wiki.ui.WikiServletFilter.init(WikiServletFilter.java:82)
     [java]     at
org.mortbay.jetty.servlet.FilterHolder.start(FilterHolder.java:71)
     [java]     at
org.mortbay.jetty.servlet.WebApplicationHandler.initializeServlets(WebApplicationHandler.java:310)
     [java]     at
org.mortbay.jetty.servlet.WebApplicationContext.doStart(WebApplicationContext.java:509)
     [java]     at
org.mortbay.jetty.plus.PlusWebAppContext.doStart(PlusWebAppContext.java:149)
     [java]     at org.mortbay.util.Container.start(Container.java:72)
     [java]     at org.mortbay.http.HttpServer.doStart(HttpServer.java:708)
     [java]     at org.mortbay.jetty.plus.Server.doStart(Server.java:153)
     [java]     at org.mortbay.util.Container.start(Container.java:72)
     [java]     at
org.apache.wiki.web.TestContainer.start(TestContainer.java:282)
     [java]     at
org.apache.wiki.web.TestContainer.main(TestContainer.java:136)
     [java]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
     [java]     at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
     [java]     at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
     [java]     at java.lang.reflect.Method.invoke(Method.java:585)
     [java]     at
org.apache.tools.ant.taskdefs.ExecuteJava.run(ExecuteJava.java:217)
     [java]     at
org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:152)
     [java]     at org.apache.tools.ant.taskdefs.Java.run(Java.java:747)
     [java]     at
org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:201)
     [java]     at org.apache.tools.ant.taskdefs.Java.execute(Java.java:104)
     [java]     at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
     [java]     at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown
Source)
     [java]     at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
     [java]     at java.lang.reflect.Method.invoke(Method.java:585)
     [java]     at
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
     [java]     at org.apache.tools.ant.Task.perform(Task.java:348)
     [java]     at
org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:62)
     [java]     at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
     [java]     at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown
Source)
     [java]     at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
     [java]     at java.lang.reflect.Method.invoke(Method.java:585)
     [java]     at
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
     [java]     at org.apache.tools.ant.Task.perform(Task.java:348)
     [java]     at
org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:391)
     [java]     at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
     [java]     at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown
Source)
     [java]     at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
     [java]     at java.lang.reflect.Method.invoke(Method.java:585)
     [java]     at
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
     [java]     at org.apache.tools.ant.Task.perform(Task.java:348)
     [java]     at org.apache.tools.ant.Target.execute(Target.java:357)
     [java]     at org.apache.tools.ant.Target.performTasks(Target.java:385)
     [java]     at
org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329)
     [java]     at
org.apache.tools.ant.Project.executeTarget(Project.java:1298)
     [java]     at
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
     [java]     at
org.eclipse.ant.internal.ui.antsupport.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32)
     [java]     at
org.apache.tools.ant.Project.executeTargets(Project.java:1181)
     [java]     at
org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(InternalAntRunner.java:423)
     [java]     at
org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main(InternalAntRunner.java:137)
     [java] org.apache.wiki.InternalWikiException: No wiki engine, check
logs.
     [java]     at
org.apache.wiki.WikiEngine.getInstance(WikiEngine.java:355)
     [java]     at
org.apache.wiki.ui.WikiServletFilter.init(WikiServletFilter.java:82)
     [java]     at
org.mortbay.jetty.servlet.FilterHolder.start(FilterHolder.java:71)
     [java]     at
org.mortbay.jetty.servlet.WebApplicationHandler.initializeServlets(WebApplicationHandler.java:310)
     [java]     at
org.mortbay.jetty.servlet.WebApplicationContext.doStart(WebApplicationContext.java:509)
     [java]     at
org.mortbay.jetty.plus.PlusWebAppContext.doStart(PlusWebAppContext.java:149)
     [java]     at org.mortbay.util.Container.start(Container.java:72)
     [java]     at org.mortbay.http.HttpServer.doStart(HttpServer.java:708)
     [java]     at org.mortbay.jetty.plus.Server.doStart(Server.java:153)
     [java]     at org.mortbay.util.Container.start(Container.java:72)
     [java]     at
org.apache.wiki.web.TestContainer.start(TestContainer.java:282)
     [java]     at
org.apache.wiki.web.TestContainer.main(TestContainer.java:136)
     [java]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
     [java]     at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
     [java]     at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
     [java]     at java.lang.reflect.Method.invoke(Method.java:585)
     [java]     at
org.apache.tools.ant.taskdefs.ExecuteJava.run(ExecuteJava.java:217)
     [java]     at
org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:152)
     [java]     at org.apache.tools.ant.taskdefs.Java.run(Java.java:747)
     [java]     at
org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:201)
     [java]     at org.apache.tools.ant.taskdefs.Java.execute(Java.java:104)
     [java]     at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
     [java]     at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown
Source)
     [java]     at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
     [java]     at java.lang.reflect.Method.invoke(Method.java:585)
     [java]     at
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
     [java]     at org.apache.tools.ant.Task.perform(Task.java:348)
     [java]     at
org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:62)
     [java]     at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
     [java]     at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown
Source)
     [java]     at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
     [java]     at java.lang.reflect.Method.invoke(Method.java:585)
     [java]     at
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
     [java]     at org.apache.tools.ant.Task.perform(Task.java:348)
     [java]     at
org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:391)
     [java]     at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
     [java]     at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown
Source)
     [java]     at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
     [java]     at java.lang.reflect.Method.invoke(Method.java:585)
     [java]     at
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
     [java]     at org.apache.tools.ant.Task.perform(Task.java:348)
     [java]     at org.apache.tools.ant.Target.execute(Target.java:357)
     [java]     at org.apache.tools.ant.Target.performTasks(Target.java:385)
     [java]     at
org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329)
     [java]     at
org.apache.tools.ant.Project.executeTarget(Project.java:1298)
     [java]     at
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
     [java]     at
org.eclipse.ant.internal.ui.antsupport.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32)
     [java]     at
org.apache.tools.ant.Project.executeTargets(Project.java:1181)
     [java]     at
org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(InternalAntRunner.java:423)
     [java]     at
org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main(InternalAntRunner.java:137)
     [java] Multiple exceptions
     [java] Java Result: 1
     [echo] Running web unit tests for context 'test-custom'.
     [java] Java Result: 1
     [echo] Shutting down Jetty (if it is up).
      [get] Getting: http://localhost:19041/
      [get] To: /tmp/webtests/shutdown.log
      [get] 22:06:24,189  INFO Server:555 - Shutdown hook executing
      [get] 22:06:24,189  INFO Server:565 - Shutdown hook complete


2009/3/26 Andrew Jaquith <andrew.r.jaquith@gmail.com>

> That would be great! Please take a look at it, if you wouldn't mind.
>
> I don't actually know why it doesn't work. Part of the problem is that we
> don't wrap Throwables in WikiExceptions, so there is no way to know why
> WikiEngine won't start unless you bust out the debugger.
>
> Jetty is tied to Selenium -- we are using the embedded 5.1 classes included
> inside the Selemium server jar. Then I added the "plus" jar and a few
> others.
>
> Both 2.8.1 and the trunk are affected.
>
> Any insights you could provide would be appreciated. Thanks.
>
> Andrew
>
>
> On Mar 26, 2009, at 9:18, Siegfried Goeschl <siegfried.goeschl@it20one.at>
> wrote:
>
>  Hi Andrew,
>>
>> a few notes along the line
>>
>> +) I recently wrote a plain vanilla Jetty integration (see
>> http://turbine.apache.org/fulcrum/fulcrum-jetty/index.html)
>> +) based on Fulcrum I'm also able to run Jetty within a JUnit test case
>> (for webservice tests)
>>
>> So I think fixing the TestContainer is possible
>>
>> +) what is the actual problem with Jetty
>> +) is Selenium tied to Jetty 5 in any way
>> +) which JSPWiki version is affected 2.8.1 or trunk?
>>
>> If you don't mind I have a quick look at it ...
>>
>> BTW
>>
>> Andrew Jaquith wrote:
>>
>>> Sorry, I should have been a little more clear. The problem isn't with
>>> Jetty per se. The problem is with TestContainer... the embedded Jetty
>>> launcher class I wrote. It just doesn't work, and I can't figure out
>>> how to fix it. When I first wrote TestContainer, I spent only enough
>>> time writing it to make it work minimally. Then something broke it. I
>>> do not have the time or energy to fix it.
>>>
>>> Remember how we got to this point: we use Jetty for the webtests
>>> because parts of Jetty are included in the Selenium-RC jar. There's
>>> enough of Jetty there that it can set up a little server for proxying
>>> requests to Selenium-RC server. At the time, my reasoning was, "well
>>> we've already got part of Jetty already included with Selenium. How
>>> hard could it be to add in a few other JARs and write enough code to
>>> get it to run as an embedded web container? All we we need to do is
>>> write a launcher that configures support for executing JSPs,
>>> authentication, and JNDI objects. How hard could THAT be?"
>>>
>>> It turns out, pretty hard. TestContainer has to wire all that "other"
>>> stuff up programmatically -- precisely because we don't want or need
>>> to include the entire Jetty stack in the JSPWiki distro. It wasn't
>>> simple to write because there's very little documentation. Even worse,
>>> we had to use Jetty 5.1 because that's what Selenium uses. But Jetty
>>> is now at version 7, meaning the one we use in our test harness is
>>> damned ancient.
>>>
>>> By contrast, Winstone is much, much simpler. It doesn't need any other
>>> jars other than the JSP compiler & runtime, which we already ship. And
>>> it executes from the command line with just a few switches. For our
>>> purposes, it means we don't need to be writing custom code for
>>> embedding Jetty to run web tests. This is a good thing -- it's just
>>> one less peripheral thing that can break, and it mean we don't have to
>>> be chained to an ancient web container for testing.
>>>
>>> As for commons-logging, we "shouldn't" need to run it, I agree. At the
>>> moment the only way Winstone will run is if we include it. But perhaps
>>> someone who's more expert at logging can help me with this.
>>>
>>> Again -- to be clear. Jetty isn't the problem. It's with our
>>> TestContainer embedded servlet container launcher.
>>>
>>> Andrew.
>>>
>>> On 3/26/09, Janne Jalkanen <janne.jalkanen@ecyrd.com> wrote:
>>>
>>>  Yeah, I'm wondering about that too.  If we can't run on Jetty, isn't
>>>> that a really big problem for our general servlet compatibility?
>>>>
>>>> We should not need commons-logging.jar.  SLF4J should be able to take
>>>> care of it (since it contains commons-logging emulation).
>>>>
>>>> There are some limitations to including CDDL-licensed works, and
>>>> without looking at Winstone it's hard to say whether they apply or
>>>> not. http://www.apache.org/legal/3party.html
>>>>
>>>> /Janne
>>>>
>>>> On 26 Mar 2009, at 08:14, Harry Metske wrote:
>>>>
>>>>
>>>>  Andrew,
>>>>>
>>>>> just for my understanding, what is wrong with Jetty that makes our
>>>>> webunit
>>>>> tests fail ?
>>>>>
>>>>> (and I agree that CDDL License should be ok, since we have more of
>>>>> them
>>>>> already)
>>>>> Harry
>>>>>
>>>>>
>>>>> 2009/3/26 Andrew Jaquith <andrew.r.jaquith@gmail.com>
>>>>>
>>>>>
>>>>>  Janne and all --
>>>>>>
>>>>>> The web unit tests are bothering me again. Specifically, the fact
>>>>>> that
>>>>>> we can't run them means we aren't getting good visibility to problems
>>>>>> like the container login issue mentioned on the -user list. So I
want
>>>>>> to fix them. Again.
>>>>>>
>>>>>> I've gotten fed up with the bother of fixing the particular part
of
>>>>>> our web unit tests that are broken -- the embedded Jetty container
>>>>>> that starts the test webapps. Fortunately I found an alternative
>>>>>> webapp container, Winstone, that does exactly what we need. It's
>>>>>> simple to run (can be done at the command line), and best of all
it's
>>>>>> TINY. Total additional size is 320k, plus the commons-logging-api
jar
>>>>>> (52k), which for some reason it needs. On the other side, I *think*
>>>>>> we
>>>>>> could get rid of the jetty-* jars in test (240k in total), which
>>>>>> means
>>>>>> the net addition is about 80k.
>>>>>>
>>>>>> I think this is worth doing. I'd like to back-port this to 2.8 so
we
>>>>>> can fix the tests there, too. The best part is that this should
>>>>>> actually work, in the sense that it means we don't have to worry
>>>>>> about
>>>>>> maintaining TestContainer, which was only meant to be good enough
to
>>>>>> barely function. And at the moment it doesn't.
>>>>>>
>>>>>> The only question is, is the CDDL ok? It looks like it probably is,
>>>>>> since we have a license notice for it in docs already.
>>>>>>
>>>>>> Andrew
>>>>>>
>>>>>>
>>>>>>
>>>>
>>>
>>>
>>>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message