Hi Vishal,
anyway, the features xmlns is not mandatory with Karaf 2.2.1.
I'm not able to identify the incorrect character in your URL.
Do you try:
osgi:install mvn:groupId:artifactId:version
Is this artifact available on a repo defined in the
org.ops4j.pax.url.mvn.repositories or system repo ?
Could you paste the complete stack trace (in data/log/smx.log) ?
Regards
JB
On 06/23/2011 04:31 PM, vbhasin wrote:
Hello JB,
No. Here's a snapshot of my features.xml:
<features>
<feature name="com.dell.vis" version="1.0.0">
<!-- install required available dependencies -->
<feature>cxf-jaxrs</feature>
<feature>camel-jms</feature>
<feature>camel-activemq</feature>
<feature>camel-mail</feature>
<feature>camel-http</feature>
<feature>camel-cxf</feature>
<!-- install required extra dependencies -->
<bundle>mvn:org.springframework/spring-web/3.0.5.RELEASE</bundle>
<bundle>mvn:org.springframework.security/spring-security-core/3.0.5.RELEASE</bundle>
<bundle>mvn:org.springframework.security/spring-security-config/3.0.5.RELEASE</bundle>
<bundle>mvn:org.springframework.security/spring-security-web/3.0.5.RELEASE</bundle>
<bundle>wrap:mvn:org.samba/jcifs/1.3.14</bundle>
<bundle>wrap:mvn:com.jcraft/jsch/0.1.42</bundle>
<bundle>mvn:org.apache.derby/derby/10.5.3.0_1</bundle>
</feature>
</features>
Thanks,
Vishal
From: Jean-Baptiste Onofré [via Karaf]
[mailto:ml-node+3100072-1126678507-410...@n3.nabble.com]
Sent: Thursday, June 23, 2011 9:29 AM
To: Bhasin, Vishal - Dell Team
Subject: Re: Error while deploying features in SMix/Fuse 4.4.0 (which comes
with Karaf 2.2.1)
Hi,
Do you define the xmlns in your features.xml ?
Regards
JB
On 06/23/2011 04:23 PM, vbhasin wrote:
Hello:
I'm working on migrating to SMix/Fuse 4.4.0 from 4.3.0 for an internal
project. Maven build is successful, but when I start Servicemix, I don't see
the features I specified getting installed. While trying to install a
feature thruough shell I get the following exception:
karaf@root> list
START LEVEL 100 , List Threshold: 50
ID State Blueprint Level Name
[ 43] [Active ] [ ] [ 60] features.xml (0.0.0)
karaf@root> osgi:install \-s mvn:com.xxx.yyy/AService/1.0.0-SNAPSHOT
java.net.MalformedURLException: Illegal character in scheme name at index 0:
file:C:/technical/upgrade/Maverick/dist/apache-
servicemix-4.4.0-fuse-00-27/../../repository/
karaf@root>
Here is my org.ops4j.pax.url.mvn.cfg file:
################################################################################
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
################################################################################
#
# If set to true, the following property will not allow any certificate to
be used
# when accessing maven repositories through SSL
#
#org.ops4j.pax.url.mvn.certificateCheck=
#
# Path to the local maven settings file.
# The repositories defined in this file will be automatically added to the
list
# of default repositories if the 'org.ops4j.pax.url.mvn.repositories'
property
# below is not set.
# The following locations are checked for the existence of the settings.xml
file
# * 1. looks for the specified url
# * 2. if not found looks for ${user.home}/.m2/settings.xml
# * 3. if not found looks for ${maven.home}/conf/settings.xml
# * 4. if not found looks for ${M2_HOME}/conf/settings.xml
#
#org.ops4j.pax.url.mvn.settings=
#
# Path to the local maven repository which is used to avoid downloading
# artifacts when they already exist locally.
# The value of this property will be extracted from the settings.xml file
# above, or defaulted to:
# System.getProperty( "user.home" ) + "/.m2/repository"
#
#org.ops4j.pax.url.mvn.localRepository=
#
# Comma separated list of repositories scanned when resolving an artifact.
# Those repositories will be checked before iterating through the
# below list of repositories and even before the local repository
# A repository url can be appended with zero or more of the following flags:
# @snapshots : the repository contains snaphots
# @noreleases : the repository does not contain any released artifacts
#
# The following property value will add the system folder as a repo.
#
org.ops4j.pax.url.mvn.defaultRepositories=file:${karaf.home}/${karaf.default.repository}@snapshots,
file:${karaf.home}/../../repository@snapshots
#
# Comma separated list of repositories scanned when resolving an artifact.
# The default list includes the following repositories:
# http://repo1.maven.org/maven2
# http://repository.ops4j.org/maven2
# To add repositories to the default ones, prepend '+' to the list of
repositories
# to add.
# A repository url can be appended with zero or more of the following flags:
# @snapshots : the repository contains snaphots
# @noreleases : the repository does not contain any released artifacts
#
# The following property value will add the system folder as a repo.
#
#org.ops4j.pax.url.mvn.repositories= \
#
http://repo.fusesource.com/nexus/content/groups/public/org/apache/servicemix/apache-servicemix,
\
# http://repo1.maven.org/maven2, \
#
http://repository.apache.org/content/groups/snapshots-group@snapshots@noreleases,
\
# http://repository.ops4j.org/maven2, \
# http://svn.apache.org/repos/asf/servicemix/m2-repo, \
# http://repository.springsource.com/maven/bundles/release, \
# http://repository.springsource.com/maven/bundles/external
org.ops4j.pax.url.mvn.useFallbackRepositories=false
org.ops4j.pax.url.mvn.proxySupport=true
<<<
What am I missing? Appreciate your help!
Thanks,
Vishal
--
View this message in context:
http://karaf.922171.n3.nabble.com/Error-while-deploying-features-in-SMix-Fuse-4-4-0-which-comes-with-Karaf-2-2-1-tp3100055p3100055.html
Sent from the Karaf - User mailing list archive at Nabble.com.
________________________________
If you reply to this email, your message will be added to the discussion below:
http://karaf.922171.n3.nabble.com/Error-while-deploying-features-in-SMix-Fuse-4-4-0-which-comes-with-Karaf-2-2-1-tp3100055p3100072.html
To unsubscribe from Error while deploying features in SMix/Fuse 4.4.0 (which comes with Karaf
2.2.1), click
here<http://karaf.922171.n3.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=3100055&code=dmlzaGFsX2JoYXNpbkBkZWxsdGVhbS5jb218MzEwMDA1NXwxNTU4Njk2NTk2>.
--
View this message in context:
http://karaf.922171.n3.nabble.com/Error-while-deploying-features-in-SMix-Fuse-4-4-0-which-comes-with-Karaf-2-2-1-tp3100055p3100078.html
Sent from the Karaf - User mailing list archive at Nabble.com.