[ 
https://issues.apache.org/jira/browse/SLING-1794?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12913451#action_12913451
 ] 

Andreas Kuckartz commented on SLING-1794:
-----------------------------------------

Now I get lots of other failed tests (for "mvn -s /dev/null clean install"):

  
testIndex(org.apache.sling.launchpad.webapp.integrationtest.InitialContentTest)
  
testRootRedirectProperty(org.apache.sling.launchpad.webapp.integrationtest.InitialContentTest)
  
testInitialContentA(org.apache.sling.launchpad.webapp.integrationtest.InitialContentTest)
  
testInitialContentB(org.apache.sling.launchpad.webapp.integrationtest.InitialContentTest)
  
testWebServerRoot(org.apache.sling.launchpad.webapp.integrationtest.HttpPingTest)
  testCounters(org.apache.sling.launchpad.webapp.integrationtest.FiltersTest)
  
testForcedLogin(org.apache.sling.launchpad.webapp.integrationtest.login.AuthRequestLoginTest)

org.apache.sling.launchpad.testing.TestAll.txt begins with these lines (I did 
not find a specific log file for 
org.apache.sling.launchpad.webapp.integrationtest.InitialContentTest):

-------------------------------------------------------------------------------
Test set: org.apache.sling.launchpad.testing.TestAll
-------------------------------------------------------------------------------
Tests run: 382, Failures: 7, Errors: 0, Skipped: 0, Time elapsed: 310.095 sec 
<<< FAILURE!
testIndex(org.apache.sling.launchpad.webapp.integrationtest.InitialContentTest) 
 Time elapsed: 0.051 sec  <<< FAILURE!
junit.framework.AssertionFailedError: Expected status 200 for 
http://localhost:38786/index.html (content=<!DOCTYPE HTML PUBLIC "-//IETF//DTD 
HTML 2.0//EN">
<html>
<head>
<title>404 No resource found</title>
</head>
<body>
<h1>No resource found (404)</h1>
<p>The requested URL /index.html resulted in an error in 
org.apache.sling.servlets.resolver.internal.defaults.DefaultErrorHandlerServlet.</p>
<h3>Request Progress:</h3>
<pre>
      0 (2010-09-22 09:41:03) TIMER_START{Request Processing}
      0 (2010-09-22 09:41:03) COMMENT timer_end format is {&lt;elapsed 
msec&gt;,&lt;timer name&gt;} &lt;optional message&gt;
      0 (2010-09-22 09:41:03) LOG Method=GET, PathInfo=/index.html
      0 (2010-09-22 09:41:03) TIMER_START{ResourceResolution}
     21 (2010-09-22 09:41:03) TIMER_END{21,ResourceResolution} URI=/index.html 
resolves to Resource=NonExistingResource, path=/index.html
     21 (2010-09-22 09:41:03) LOG Resource Path Info: SlingRequestPathInfo: 
path='/index.html', selectorString='null', extension='html', suffix='null'
     21 (2010-09-22 09:41:03) TIMER_START{ServletResolution}
     21 (2010-09-22 09:41:03) TIMER_START{resolveServlet(NonExistingResource, 
path=/index.html)}
     23 (2010-09-22 09:41:03) TIMER_END{2,resolveServlet(NonExistingResource, 
path=/index.html)} Using servlet org.apache.sling.servlets.get.DefaultGetServlet
     23 (2010-09-22 09:41:03) TIMER_END{2,ServletResolution} URI=/index.html 
handled by Servlet=org.apache.sling.servlets.get.DefaultGetServlet
     23 (2010-09-22 09:41:03) LOG Applying Requestfilters
     23 (2010-09-22 09:41:03) LOG Calling filter: 
org.apache.sling.engine.impl.debug.RequestProgressTrackerLogFilter
     23 (2010-09-22 09:41:03) LOG Calling filter: 
org.apache.sling.launchpad.testservices.filters.NoPropertyFilter
     23 (2010-09-22 09:41:03) LOG Calling filter: 
org.apache.sling.launchpad.testservices.filters.SlingFilter
     23 (2010-09-22 09:41:03) 
TIMER_START{org.apache.sling.servlets.get.DefaultGetServlet#0}
     23 (2010-09-22 09:41:03) 
TIMER_END{0,org.apache.sling.servlets.get.DefaultGetServlet#0}
     23 (2010-09-22 09:41:03) TIMER_START{handleError:status=404}
     24 (2010-09-22 09:41:03) TIMER_END{1,handleError:status=404} Using handler 
org.apache.sling.servlets.resolver.internal.defaults.DefaultErrorHandlerServlet
     24 (2010-09-22 09:41:03) TIMER_END{24,Request Processing} Dumping 
SlingRequestProgressTracker Entries
</pre>
<hr>
<address>ApacheSling/2.1 (Java HotSpot(TM) 64-Bit Server VM 1.6.0_21; Linux 
2.6.32-trunk-amd64 amd64)</address>
</body>
</html>
) expected:<200> but was:<404>
        at junit.framework.Assert.fail(Assert.java:47)
...

---

BTW: The log produced by
$ mvn -Dtest=ConfigInstallTest install
did not seem to be very helpful:

andr...@lenny:~/sling$ mvn -Dtest=ConfigInstallTest install
[INFO] Scanning for projects...
[INFO] Reactor build order: 
[INFO]   Apache Sling (Parent)
[INFO]   Apache Sling Maven Plugin to create Jackrabbit OCM descriptors
[INFO]   Apache Sling API
[INFO]   Apache Sling Scripting Implementation API
[INFO]   Apache Sling Dynamic Class Loader Support
[INFO]   Apache Sling Scripting JSP Support
[INFO]   Apache Sling Maven Plugin for Compiling JSP Sources into Bundles
[INFO]   Apache Sling Repository API Bundle
[INFO]   Apache Sling Commons OSGi support
[INFO]   Apache Sling Adapter Manager Implementation
[INFO]   Apache Sling Testing Utilities
[INFO]   Apache Sling JSON Library
[INFO]   Apache Sling Maven Plugin for Supporting Bundle Development
[INFO]   Apache Sling Launchpad Base
[INFO]   Apache Sling Launchpad Maven Plugin
[INFO]   Sling Launchpad Standalone Archetype
[INFO]   Sling Launchpad Webapp Archetype
[INFO]   Sling Resources Archetype
[INFO]   Sling Servlet Archetype
[INFO]   Apache Sling OSGi LogService Implementation
[INFO]   Apache Sling MIME type mapping support
[INFO]   Apache Sling Thread Support
[INFO]   Apache Sling Scheduler Support
[INFO]   Apache Sling Authentication Service
[INFO]   Apache Sling JCR Base Bundle
[INFO]   Apache Sling Jackrabbit Embedded Repository
[INFO]   Apache Sling OpenID Authentication
[INFO]   Apache Sling Form Based Authentication Handler
[INFO]   Apache Sling Authentication Selector
[INFO]   Apache Sling Settings
[INFO]   Apache Sling Engine Implementation
[INFO]   Apache Sling JCR ClassLoader
[INFO]   Apache Sling Initial Content Loader
[INFO]   Apache Sling JCR Resource Resolver
[INFO]   Apache Sling Default POST Servlets
[INFO]   Apache Sling Jackrabbit UserManager Support
[INFO]   Apache Sling Jackrabbit JSR-283 Access Control Manager Support
[INFO]   Apache Sling Object Content Mapping
[INFO]   Apache Sling Simple WebDAV Access to repositories
[INFO]   Apache Sling DavEx Access to repositories
[INFO]   Apache Sling JCR WebConsole Bundle
[INFO]   Apache Sling Servlet Resolver
[INFO]   Apache Sling Default GET Servlets
[INFO]   Apache Sling Scripting Core implementation
[INFO]   Apache Sling Scripting JavaScript Support
[INFO]   Apache Sling JSP Tag Library
[INFO]   Apache Sling Bundle Resource Provider
[INFO]   Apache Sling Event Support
[INFO]   Apache Sling Filesystem Resource Provider
[INFO]   Apache Sling Thread Dumper
[INFO]   Apache Sling Web Console Branding
[INFO]   Apache Sling Web Console Security Provider
[INFO]   Apache Sling Groovy Extensions
[INFO]   Apache Sling Explorer
[INFO]   Apache Sling Installer
[INFO]   Apache Sling File Installer
[INFO]   Apache Sling JCR Installer
[INFO]   Apache Sling Installer Integration Tests
[INFO]   Apache Sling Launchpad Content
[INFO]   Apache Sling Launchpad Application Builder
[INFO]   Apache Sling Launchpad Testing Services
[INFO]   Apache Sling Launchpad Testing Services WAR
[INFO]   Apache Sling Integration Tests
[INFO]   Apache Sling Launchpad Testing
[INFO]   Apache Sling (Builder)
[INFO] ------------------------------------------------------------------------
[INFO] Building Apache Sling (Parent)
[INFO]    task-segment: [install]
[INFO] ------------------------------------------------------------------------
[INFO] [enforcer:enforce {execution: enforce-java}]
[INFO] Setting property: classpath.resource.loader.class => 
'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'.
[INFO] Setting property: velocimacro.messages.on => 'false'.
[INFO] Setting property: resource.loader => 'classpath'.
[INFO] Setting property: resource.manager.logwhenfound => 'false'.
[INFO] [remote-resources:process {execution: default}]
[INFO] [antrun:run {execution: default}]
[INFO] Executing tasks
     [echo] **************** WARNING (SLING-443/SLING-1782) 
******************************
     [echo] On most platforms, you'll get OutOfMemoryErrors when building 
unless you set
     [echo] on 32bit platforms: MAVEN_OPTS="-Xmx256M -XX:MaxPermSize=256M", see 
SLING-443
     [echo] on 64bit platforms: MAVEN_OPTS="-Xmx512M -XX:MaxPermSize=512M", see 
SLING-1782
     [echo] 
******************************************************************************
[INFO] Executed tasks
[INFO] [site:attach-descriptor {execution: default-attach-descriptor}]
[INFO] Preparing source:jar
[WARNING] Removing: jar from forked lifecycle, to prevent recursive invocation.
[INFO] [enforcer:enforce {execution: enforce-java}]
[INFO] [source:jar {execution: attach-sources}]
[INFO] [ianal:verify-legal-files {execution: default}]
[INFO] [install:install {execution: default-install}]
[INFO] Installing /home/andreas/sling/parent/pom.xml to 
/home/andreas/.m2/repository/org/apache/sling/sling/10-SNAPSHOT/sling-10-SNAPSHOT.pom
[INFO] ------------------------------------------------------------------------
[INFO] Building Apache Sling Maven Plugin to create Jackrabbit OCM descriptors
[INFO]    task-segment: [install]
[INFO] ------------------------------------------------------------------------
[INFO] [enforcer:enforce {execution: enforce-java}]
[INFO] [plugin:descriptor {execution: default-descriptor}]
[INFO] Using 'UTF-8' encoding to read mojo metadata.
[INFO] Applying mojo extractor for language: java
[INFO] Mojo extractor for language: java found 1 mojo descriptors.
[INFO] Applying mojo extractor for language: bsh
[INFO] Mojo extractor for language: bsh found 0 mojo descriptors.
[INFO] [remote-resources:process {execution: default}]
[INFO] [resources:resources {execution: default-resources}]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 0 resource
[INFO] Copying 3 resources
[INFO] [antrun:run {execution: default}]
[INFO] Executing tasks
     [echo] ********************** WARNING (SLING-443) 
**********************************
     [echo] On most platforms, you'll get OutOfMemoryErrors when building 
unless you set
     [echo] MAVEN_OPTS="-Xmx256M -XX:MaxPermSize=128M", see SLING-443.
     [echo] 
*****************************************************************************
[INFO] Executed tasks
[INFO] [compiler:compile {execution: default-compile}]
[INFO] Nothing to compile - all classes are up to date
[INFO] [resources:testResources {execution: default-testResources}]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory 
/home/andreas/sling/maven/maven-jcrocm-plugin/src/test/resources
[INFO] Copying 3 resources
[INFO] [compiler:testCompile {execution: default-testCompile}]
[INFO] No sources to compile
[INFO] [surefire:test {execution: default-test}]
[INFO] Surefire report directory: 
/home/andreas/sling/maven/maven-jcrocm-plugin/target/surefire-reports

-------------------------------------------------------
 T E S T S
-------------------------------------------------------
There are no tests to run.

Results :

Tests run: 0, Failures: 0, Errors: 0, Skipped: 0

[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] No tests were executed!  (Set -DfailIfNoTests=false to ignore this 
error.)


> ConfigInstallTest fails: Config must be removed once ConfigurationAdmin 
> restarts: Configuration is still present
> ----------------------------------------------------------------------------------------------------------------
>
>                 Key: SLING-1794
>                 URL: https://issues.apache.org/jira/browse/SLING-1794
>             Project: Sling
>          Issue Type: Bug
>          Components: Installer
>            Reporter: Andreas Kuckartz
>            Priority: Critical
>
> -------------------------------------------------------------------------------
> Test set: org.apache.sling.installer.it.ConfigInstallTest
> -------------------------------------------------------------------------------
> Tests run: 3, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 17.044 sec 
> <<< FAILURE!
> testDeferredConfigInstall 
> [felix](org.apache.sling.installer.it.ConfigInstallTest)  Time elapsed: 
> 10.072 sec  <<< FAILURE!
> java.lang.AssertionError: Config must be removed once ConfigurationAdmin 
> restarts: Configuration is still present 
> (ConfigInstallTest.deferred.1285097628299)
>         at org.junit.Assert.fail(Assert.java:74)
>         at 
> org.apache.sling.installer.it.OsgiInstallerTestBase.waitForConfiguration(OsgiInstallerTestBase.java:246)
>         at 
> org.apache.sling.installer.it.ConfigInstallTest.testDeferredConfigInstall(ConfigInstallTest.java:149)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>         at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:597)
>         at 
> org.ops4j.pax.exam.junit.extender.impl.internal.CallableTestMethodImpl.injectContextAndInvoke(CallableTestMethodImpl.java:143)
>         at 
> org.ops4j.pax.exam.junit.extender.impl.internal.CallableTestMethodImpl.call(CallableTestMethodImpl.java:105)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>         at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:597)
>         at 
> org.ops4j.pax.exam.rbc.internal.RemoteBundleContextImpl.remoteCall(RemoteBundleContextImpl.java:80)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>         at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:597)
>         at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:305)
>         at sun.rmi.transport.Transport$1.run(Transport.java:159)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at sun.rmi.transport.Transport.serviceCall(Transport.java:155)
>         at 
> sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535)
>         at 
> sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790)
>         at 
> sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649)
>         at 
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>         at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>         at java.lang.Thread.run(Thread.java:619)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to