[
https://issues.apache.org/jira/browse/SLING-4412?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14620299#comment-14620299
]
Oliver Lietz commented on SLING-4412:
-------------------------------------
I've enabled [Travis CI|https://travis-ci.org/sling-git/sling/builds] on
[feature/karaf4|https://github.com/sling-git/sling/tree/feature/karaf4] for
only some integration tests because of _{{The log length has exceeded the limit
of 4 Megabytes (...). The build has been terminated.}}_.
The Travis build fails with errors but the build runs fine on my local machine
(multiple times). After committing to Sling's SVN repo I can see _random_ [test
failures on
Jenkins|https://builds.apache.org/job/sling-contrib-1.7/230/testReport/].
Installing some features or [the newly created KAR|SLING-4868] brings Karaf
down:
{noformat}
beat:~ olli$ ./Applications/apache-karaf-4.0.0/bin/start
beat:~ olli$ ssh -p 8101 karaf@localhost
Password authentication
Password:
__ __ ____
/ //_/____ __________ _/ __/
/ ,< / __ `/ ___/ __ `/ /_
/ /| |/ /_/ / / / /_/ / __/
/_/ |_|\__,_/_/ \__,_/_/
Apache Karaf (4.0.0)
Hit '<tab>' for a list of available commands
and '[cmd] --help' for help on a specific command.
Hit 'system:shutdown' to shutdown Karaf.
Hit '<ctrl-d>' or type 'logout' to disconnect shell from current session.
karaf@root()> feature:repo-add
mvn:org.apache.sling/org.apache.sling.launchpad.karaf-features/0.1.1-SNAPSHOT/xml/features
Adding feature url
mvn:org.apache.sling/org.apache.sling.launchpad.karaf-features/0.1.1-SNAPSHOT/xml/features
karaf@root()> feature:install sling-launchpad-jackrabbit-derby
karaf@root()> feature:install sling-launchpad-content
Connection to localhost closed by remote host.
Connection to localhost closed.
beat:~ olli$ ssh -p 8101 karaf@localhost
ssh: connect to host localhost port 8101: Connection refused
beat:~ olli$
{noformat}
Building a [Karaf distribution|SLING-4869] fails with a [resolve
error|OAK-3083]:
{noformat}
[ERROR] Failed to execute goal
org.apache.karaf.tooling:karaf-maven-plugin:4.0.0:assembly (default-assembly)
on project org.apache.sling.launchpad.karaf-distribution: Unable to build
assembly: Unable to resolve root: missing requirement [root] osgi.identity;
osgi.identity=sling-launchpad-oak-tar; type=karaf.feature;
version=0.1.1.SNAPSHOT;
filter:="(&(osgi.identity=sling-launchpad-oak-tar)(type=karaf.feature)(version>=0.1.1.SNAPSHOT))"
[caused by: Unable to resolve sling-launchpad-oak-tar/0.1.1.SNAPSHOT: missing
requirement [sling-launchpad-oak-tar/0.1.1.SNAPSHOT] osgi.identity;
osgi.identity=sling-launchpad-oak; type=karaf.feature;
version="[0.1.1.SNAPSHOT,0.1.1.SNAPSHOT]" [caused by: Unable to resolve
sling-launchpad-oak/0.1.1.SNAPSHOT: missing requirement
[sling-launchpad-oak/0.1.1.SNAPSHOT] osgi.identity;
osgi.identity=sling-jcr-oak; type=karaf.feature;
version="[0.1.1.SNAPSHOT,0.1.1.SNAPSHOT]" [caused by: Unable to resolve
sling-jcr-oak/0.1.1.SNAPSHOT: missing requirement
[sling-jcr-oak/0.1.1.SNAPSHOT] osgi.identity;
osgi.identity=org.apache.sling.jcr.oak.server; type=osgi.bundle;
version="[0.0.2.SNAPSHOT,0.0.2.SNAPSHOT]"; resolution:=mandatory [caused by:
Unable to resolve org.apache.sling.jcr.oak.server/0.0.2.SNAPSHOT: missing
requirement [org.apache.sling.jcr.oak.server/0.0.2.SNAPSHOT]
osgi.wiring.package;
filter:="(&(osgi.wiring.package=org.apache.jackrabbit.oak.spi.security.authentication)(version>=1.0.0)(!(version>=2.0.0)))"
[caused by: Unable to resolve org.apache.jackrabbit.oak-core/1.2.2: missing
requirement [org.apache.jackrabbit.oak-core/1.2.2] osgi.service;
effective:=active;
filter:="(objectClass=org.apache.jackrabbit.core.util.db.ConnectionFactory)"]]]]]
-> [Help 1]
{noformat}
So all in all still very fragile.
> upgrade Karaf to 4.0
> --------------------
>
> Key: SLING-4412
> URL: https://issues.apache.org/jira/browse/SLING-4412
> Project: Sling
> Issue Type: Improvement
> Components: Launchpad
> Reporter: Oliver Lietz
> Assignee: Oliver Lietz
> Fix For: Launchpad Karaf Features 0.2.0, Launchpad Karaf
> Integration Tests 0.2.0
>
> Attachments: SLING-4412.WIP.patch
>
>
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)