karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Lichtin (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (KARAF-5018) Missing files in distribution created by instance:create
Date Sat, 27 May 2017 19:51:04 GMT

    [ https://issues.apache.org/jira/browse/KARAF-5018?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16027576#comment-16027576
] 

Martin Lichtin commented on KARAF-5018:
---------------------------------------

I'm using 4.0.9 and when trying to create an instance, it takes these etc files, but they
all contain the SNAPSHOT version number in it...

For example: https://git-wip-us.apache.org/repos/asf?p=karaf.git;a=blob;f=instance/src/main/resources/org/apache/karaf/instance/resources/etc/distribution.info;h=1d095dbc57aa21e2ebbb4530e4a668383d0fc24f;hb=a6eb281

one can see

{noformat}
karafVersion=4.0.9-SNAPSHOT
{noformat}

This may be the same for 4.1.1 and might explain issue: http://karaf.922171.n3.nabble.com/Problems-creating-instances-in-4-1-1-td4050359.html
which sounds very similar to what I'm seeing with 4.0.9.

Unpacking the karaf.instance.core JAR, I see:

{noformat}
$ grep -r SNAP .
./org/apache/karaf/instance/resources/etc/config.properties: org.apache.karaf.version;version="4.0.9.SNAPSHOT",\
./org/apache/karaf/instance/resources/etc/config.properties: org.apache.karaf.jaas.boot.principal;uses:=javax.security.auth;version="4.0.9.SNAPSHOT",\
./org/apache/karaf/instance/resources/etc/config.properties: org.apache.karaf.jaas.boot;uses:="javax.security.auth,javax.security.auth.callback,javax.security.auth.login,javax.security.auth.spi,org.osgi.framework";version="4.0.9.SNAPSHOT",\
./org/apache/karaf/instance/resources/etc/distribution.info:karafVersion=4.0.9-SNAPSHOT
./org/apache/karaf/instance/resources/etc/org.apache.karaf.features.cfg:    mvn:org.apache.karaf.features/spring/4.0.9-SNAPSHOT/xml/features,
\
./org/apache/karaf/instance/resources/etc/org.apache.karaf.features.cfg:    mvn:org.apache.karaf.features/enterprise/4.0.9-SNAPSHOT/xml/features,
\
./org/apache/karaf/instance/resources/etc/org.apache.karaf.features.cfg:    mvn:org.apache.karaf.features/standard/4.0.9-SNAPSHOT/xml/features,
\
./org/apache/karaf/instance/resources/etc/org.apache.karaf.features.cfg:    mvn:org.apache.karaf.features/framework/4.0.9-SNAPSHOT/xml/features
./org/apache/karaf/instance/resources/etc/profile.cfg:repository.mvn\:org.apache.karaf.features/standard/4.0.9-SNAPSHOT/xml/features
= mvn:org.apache.karaf.features/standard/4.0.9-SNAPSHOT/xml/features
./org/apache/karaf/instance/resources/etc/profile.cfg:repository.mvn\:org.apache.karaf.features/framework/4.0.9-SNAPSHOT/xml/features
= mvn:org.apache.karaf.features/framework/4.0.9-SNAPSHOT/xml/features
./org/apache/karaf/instance/resources/etc/profile.cfg:feature.framework/4.0.9.SNAPSHOT = framework/4.0.9.SNAPSHOT
./org/apache/karaf/instance/resources/etc/profile.cfg:repository.mvn\:org.apache.karaf.features/spring/4.0.9-SNAPSHOT/xml/features
= mvn:org.apache.karaf.features/spring/4.0.9-SNAPSHOT/xml/features
./org/apache/karaf/instance/resources/etc/profile.cfg:repository.mvn\:org.apache.karaf.features/enterprise/4.0.9-SNAPSHOT/xml/features
= mvn:org.apache.karaf.features/enterprise/4.0.9-SNAPSHOT/xml/features
./org/apache/karaf/instance/resources/etc/profile.cfg:bundle.mvn\:org.apache.karaf/demos/4.0.9-SNAPSHOT
= mvn:org.apache.karaf/demos/4.0.9-SNAPSHOT
./org/apache/karaf/instance/resources/etc/startup.properties:mvn\:org.apache.karaf.services/org.apache.karaf.services.eventadmin/4.0.9-SNAPSHOT
= 5
./org/apache/karaf/instance/resources/etc/startup.properties:mvn\:org.apache.karaf.features/org.apache.karaf.features.core/4.0.9-SNAPSHOT
= 15
{noformat}

> Missing files in distribution created by instance:create
> --------------------------------------------------------
>
>                 Key: KARAF-5018
>                 URL: https://issues.apache.org/jira/browse/KARAF-5018
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf-instance
>    Affects Versions: 4.1.0
>            Reporter: Jean-Baptiste Onofré
>            Assignee: Jean-Baptiste Onofré
>            Priority: Critical
>             Fix For: 4.0.9, 4.1.1
>
>
> When creating a node using instance:create -v test-01 I see a number of files are listed
missing even though they are present in the main installation at the etc folder. Here is a
sample output:
> {code}
> Creating new instance on SSH port 8104 and registry port 1102 / RMI server port 44447
at: /opt/apache-karaf-4.1.0/instances/test-01
> Creating dir: /opt/apache-karaf-4.1.0/instances/test-01/bin
> Creating dir: /opt/apache-karaf-4.1.0/instances/test-01/etc
> Creating dir: /opt/apache-karaf-4.1.0/instances/test-01/system
> Creating dir: /opt/apache-karaf-4.1.0/instances/test-01/deploy
> Creating dir: /opt/apache-karaf-4.1.0/instances/test-01/data
> Creating file: /opt/apache-karaf-4.1.0/instances/test-01/etc/all.policy
> Creating file: /opt/apache-karaf-4.1.0/instances/test-01/etc/config.properties
> Creating file: /opt/apache-karaf-4.1.0/instances/test-01/etc/custom.properties
> Creating file: /opt/apache-karaf-4.1.0/instances/test-01/etc/distribution.info
> Creating file: /opt/apache-karaf-4.1.0/instances/test-01/etc/equinox-debug.properties
> Creating file: /opt/apache-karaf-4.1.0/instances/test-01/etc/java.util.logging.properties
> Creating file: /opt/apache-karaf-4.1.0/instances/test-01/etc/jmx.acl.cfg
> 	WARNING: unable to find etc/jmx.acl.cfg
> Creating file: /opt/apache-karaf-4.1.0/instances/test-01/etc/jre.properties
> Creating file: /opt/apache-karaf-4.1.0/instances/test-01/etc/keys.properties
> Creating file: /opt/apache-karaf-4.1.0/instances/test-01/etc/org.apache.felix.fileinstall-deploy.cfg
> Creating file: /opt/apache-karaf-4.1.0/instances/test-01/etc/org.apache.karaf.features.repos.cfg
> 	WARNING: unable to find etc/org.apache.karaf.features.repos.cfg
> Creating file: /opt/apache-karaf-4.1.0/instances/test-01/etc/org.apache.karaf.jaas.cfg
> 	WARNING: unable to find etc/org.apache.karaf.jaas.cfg
> Creating file: /opt/apache-karaf-4.1.0/instances/test-01/etc/org.apache.karaf.kar.cfg
> Creating file: /opt/apache-karaf-4.1.0/instances/test-01/etc/org.apache.karaf.log.cfg
> 	WARNING: unable to find etc/org.apache.karaf.log.cfg
> Creating file: /opt/apache-karaf-4.1.0/instances/test-01/etc/org.ops4j.pax.logging.cfg
> Creating file: /opt/apache-karaf-4.1.0/instances/test-01/etc/org.ops4j.pax.url.mvn.cfg
> Creating file: /opt/apache-karaf-4.1.0/instances/test-01/etc/shell.init.script
> Creating file: /opt/apache-karaf-4.1.0/instances/test-01/etc/users.properties
> Creating file: /opt/apache-karaf-4.1.0/instances/test-01/etc/org.apache.karaf.features.cfg
> Creating file: /opt/apache-karaf-4.1.0/instances/test-01/etc/system.properties
> Creating file: /opt/apache-karaf-4.1.0/instances/test-01/etc/org.apache.karaf.shell.cfg
> Creating file: /opt/apache-karaf-4.1.0/instances/test-01/etc/org.apache.karaf.management.cfg
> Creating file: /opt/apache-karaf-4.1.0/instances/test-01/bin/karaf
> Creating file: /opt/apache-karaf-4.1.0/instances/test-01/bin/start
> Creating file: /opt/apache-karaf-4.1.0/instances/test-01/bin/stop
> Creating file: /opt/apache-karaf-4.1.0/instances/test-01/bin/karaf.bat
> Creating file: /opt/apache-karaf-4.1.0/instances/test-01/bin/start.bat
> Creating file: /opt/apache-karaf-4.1.0/instances/test-01/bin/stop.bat
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message