You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@sling.apache.org by Peter Chiochetti <pc...@myzel.net> on 2009/11/07 12:07:47 UTC
build failure
hello,
yesterday building sling svn failed with a "PermGen space" error.
Removing the .m2/repository and trying again, now it fails checking the
webapp war. Please advise how to proceed with this to get a working
launchpad:
[INFO] [war:war]
[INFO] Packaging webapp
[...]
[INFO] [beddedLocalContainer] Jetty 6.x Embedded started on port [8888]
[INFO] [surefire:test {execution: surefire-integration-test}]
[INFO] Surefire report directory:
/home/sling/sling-svn/launchpad/testing/target/surefire-reports
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running
org.apache.sling.launchpad.webapp.integrationtest.servlets.post.PostServletAtDeleteTest
Checking if the required Sling services are started...
(base
URLs=http://localhost:8888/org.apache.sling.launchpad.testing-6-SNAPSHOT
and http://localhost:8888/org.apache.sling.launchpad.testing-6-SNAPSHOT)
### while mvn install waits 60 seconds I got time to read the error with
### lynx http://localhost:8888/org.apache.sling.launchpad.testing-6-SNAPSHOT
HTTP ERROR: 503
Cannot handle requests due to missing Repository
RequestURI=/org.apache.sling.launchpad.testing-6-SNAPSHOT/
Powered by Jetty://
### Then maven receives lots of error messages
Server does not seem to be ready, after 60000 msec, got the following
116
Exceptions:org.apache.sling.commons.testing.integration.HttpStatusCodeException:
Expected status code 302 for POST, got 503,
URL=http://localhost:8888/org.apache.sling.launchpad.testing-6-SNAPSHOT/WaitForSlingStartup/1257591301954
org.apache.sling.commons.testing.integration.HttpStatusCodeException:
Expected status code 302 for POST, got 503,
URL=http://localhost:8888/org.apache.sling.launchpad.testing-6-SNAPSHOT/WaitForSlingStartup/1257591302629
[...]
Tests run: 261, Failures: 261, Errors: 0, Skipped: 0
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] There are test failures.
--
peter
Re: build failure
Posted by Bertrand Delacretaz <bd...@apache.org>.
Hi,
On Mon, Nov 9, 2009 at 3:56 PM, Peter Chiochetti <pc...@myzel.net> wrote:
> ...The ds.factory.enabled property is now set in all sling.properties files.
> Still building svn trunk 834075/834084 fails here. Is that due to the 1082
> issue? This is on a Debian GNU/Linux 5.0 system with Java(TM) SE Runtime
> Environment (build 1.6.0_12-b04)....
...
> 2009-11-09 14:41:32.704::WARN: failed sling
> javax.servlet.ServletException: java.lang.SecurityException: Invalid
> signature file digest for Manifest main attributes
Looks like SLING-830 indeed.
If it's reproducible (and it probably is), feel free to reopen that issue.
As a workaround, building launchpad/webapp outside of the reactor
build (i.e. mvn clean install in launchpad/webapp after doing the full
build) should help, according to SLING-830.
-Bertrand
Re: build failure
Posted by Peter Chiochetti <pc...@myzel.net>.
Am 2009-11-09 15:01, schrieb Bertrand Delacretaz:
> Hi Peter,
>
> I just fixed https://issues.apache.org/jira/browse/SLING-1177 - didn't
> run all tests yet but launchpad webapp and testing should now start
> correctly at least.
>
> On Mon, Nov 9, 2009 at 2:51 PM, Peter Chiochetti<pc...@myzel.net> wrote:
>> ...When I do as stated in the README.txt in launchpad/app - ie. call "mvn -P
>> full clean install" after the build stops in the webapp tests, starting the
>> app with "java -jar target/org.apache.sling.launchpad.app-6-SNAPSHOT.jar"
>> will fail with an
>>
>> Exception in thread "main" java.lang.SecurityException: Invalid signature
>> file digest for Manifest main attributes...
>
> That's a different problem, see http://issues.apache.org/jira/browse/SLING-1082
>
> -Bertrand
The ds.factory.enabled property is now set in all sling.properties
files. Still building svn trunk 834075/834084 fails here. Is that due to
the 1082 issue? This is on a Debian GNU/Linux 5.0 system with Java(TM)
SE Runtime Environment (build 1.6.0_12-b04).
While testing the jetty page
http://localhost:8888/org.apache.sling.launchpad.testing-6-SNAPSHOT now
displays "SERVICE_UNAVAILABLE".
From the log:
[INFO] [beddedLocalContainer] Jetty 6.x Embedded starting...
2009-11-09 14:41:28.128::INFO: Logging to STDERR via
org.mortbay.log.StdErrLog
2009-11-09 14:41:29.515::INFO: jetty-6.1.1rc1
2009-11-09 14:41:30.025::INFO: Extract
jar:file:/home/sling/sling/launchpad/testing/target/org.apache.sling.launchpad.testing-6-SNAPSHOT.war!/
to
/tmp/Jetty_0_0_0_0_8888_org.apache.sling.launchpad.testing-6-SNAPSHOT.war__org_apache_sling_launchpad_testing-6-SNAPSHOT__-m3vabv/webapp
2009-11-09
14:41:32.590:/org.apache.sling.launchpad.testing-6-SNAPSHOT:INFO:
sling: Setting
sling.home=sling/_org.apache.sling.launchpad.testing-6-SNAPSHOT (servlet
context path)
2009-11-09
14:41:32.590:/org.apache.sling.launchpad.testing-6-SNAPSHOT:INFO:
sling: Checking launcher JAR in
sling/_org.apache.sling.launchpad.testing-6-SNAPSHOT
2009-11-09
14:41:32.598:/org.apache.sling.launchpad.testing-6-SNAPSHOT:INFO:
sling: Installed or Updated launcher JAR file from
file:/tmp/Jetty_0_0_0_0_8888_org.apache.sling.launchpad.testing-6-SNAPSHOT.war__org_apache_sling_launchpad_testing-6-SNAPSHOT__-m3vabv/webapp/WEB-INF//resources/org.apache.sling.launchpad.base.jar
2009-11-09 14:41:32.704::WARN: failed sling
javax.servlet.ServletException: java.lang.SecurityException: Invalid
signature file digest for Manifest main attributes
[...]
2009-11-09 14:41:32.709::INFO: Extract
jar:file:/home/sling/sling/launchpad/testing/target/cargo/cargocpc.war!/
to /tmp/Jetty_0_0_0_0_8888_cargocpc.war__cargocpc__rw8xgv/webapp
2009-11-09 14:41:34.074::INFO: Started SelectChannelConnector @
0.0.0.0:8888
[INFO] [beddedLocalContainer] Jetty 6.x Embedded started on port [8888]
[INFO] [surefire:test {execution: surefire-integration-test}]
[INFO] Surefire report directory:
/home/sling/sling/launchpad/testing/target/surefire-reports
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running
org.apache.sling.launchpad.webapp.integrationtest.servlets.post.PostServletAtDeleteTest
Checking if the required Sling services are started...
(base
URLs=http://localhost:8888/org.apache.sling.launchpad.testing-6-SNAPSHOT
and http://localhost:8888/org.apache.sling.launchpad.testing-6-SNAPSHOT)
Server does not seem to be ready, after 60000 msec, got the following
118
Exceptions:org.apache.sling.commons.testing.integration.HttpStatusCodeException:
Expected status code 302 for POST, got 503,
URL=http://localhost:8888/org.apache.sling.launchpad.testing-6-SNAPSHOT/WaitForSlingStartup/1257777698400
org.apache.sling.commons.testing.integration.HttpStatusCodeException:
Expected status code 302 for POST, got 503,
URL=http://localhost:8888/org.apache.sling.launchpad.testing-6-SNAPSHOT/WaitForSlingStartup/1257777699058
--
peter
Re: build failure
Posted by Bertrand Delacretaz <bd...@apache.org>.
Hi Peter,
I just fixed https://issues.apache.org/jira/browse/SLING-1177 - didn't
run all tests yet but launchpad webapp and testing should now start
correctly at least.
On Mon, Nov 9, 2009 at 2:51 PM, Peter Chiochetti <pc...@myzel.net> wrote:
> ...When I do as stated in the README.txt in launchpad/app - ie. call "mvn -P
> full clean install" after the build stops in the webapp tests, starting the
> app with "java -jar target/org.apache.sling.launchpad.app-6-SNAPSHOT.jar"
> will fail with an
>
> Exception in thread "main" java.lang.SecurityException: Invalid signature
> file digest for Manifest main attributes...
That's a different problem, see http://issues.apache.org/jira/browse/SLING-1082
-Bertrand
Re: build failure
Posted by Peter Chiochetti <pc...@myzel.net>.
Am 2009-11-09 13:54, schrieb Bertrand Delacretaz:
>
> I'm seeing the same problem, created
> https://issues.apache.org/jira/browse/SLING-1177 to track it.
>
> launchpad/app seems to work fine, you might want to use that in the meantime.
thank you Bertrand for looking into the problem. In the mean time I
started from zero following
http://sling.apache.org/site/getting-and-building-sling.html to the letter.
When I do as stated in the README.txt in launchpad/app - ie. call "mvn
-P full clean install" after the build stops in the webapp tests,
starting the app with "java -jar
target/org.apache.sling.launchpad.app-6-SNAPSHOT.jar" will fail with an
Exception in thread "main" java.lang.SecurityException: Invalid
signature file digest for Manifest main attributes
It did just create a sling folder with a copy of
org.apache.sling.launchpad.base.jar inside. Above exception happened to
me before during some update, then I had to clean the ~/.m2/repository
to make it work, yet this time, that was empty from the beginning.
--
peter
Re: build failure
Posted by Bertrand Delacretaz <bd...@apache.org>.
Hi Peter,
On Mon, Nov 9, 2009 at 1:12 PM, Peter Chiochetti <pc...@myzel.net> wrote:
> ...when I do a mvn jetty:run in launchpad/webapp lots of files are downloaded
> and the container starts and the result is the same as during the
> build/test: Any access to sling fails due to "missing repository"....
I'm seeing the same problem, created
https://issues.apache.org/jira/browse/SLING-1177 to track it.
launchpad/app seems to work fine, you might want to use that in the meantime.
-Bertrand
Re: build failure
Posted by Peter Chiochetti <pc...@myzel.net>.
Hello,
I still cannot get the build of current svn to run through:
The PermGen space errors in some taglib compilation I worked around with
this command line:
MAVEN_OPTS="-Xmx256m -XX:MaxPermSize=256m" mvn clean install
Still the build fails in the webapp tests: the maven process installs a
temporary sling repository in
sling/_org.apache.sling.launchpad.testing-6-SNAPSHOT and there in
logs/error.log I can see the failing attemps of the tests. There is one
other error in the log:
09.11.2009 10:21:32.069 *ERROR* [FelixStartLevel]
org.apache.sling.jcr.jackrabbit.server
[org.apache.sling.jcr.jackrabbit.server.SlingServerRepository] Component
Factory cannot be configured by factory configuration
maybe this can help tracking down what goes wrong?
when I do a mvn jetty:run in launchpad/webapp lots of files are
downloaded and the container starts and the result is the same as during
the build/test: Any access to sling fails due to "missing repository".
The felix console works fine though, yet setting the repository there
will not help.
--
peter