karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Achim Nierbeck (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (KARAF-3909) Starting the osgi feature using the org.ops4j.pax.web.cfg does not work as expected.
Date Sat, 15 Aug 2015 17:05:46 GMT

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

Achim Nierbeck commented on KARAF-3909:
---------------------------------------

this won't work, because both your bundle and the dependency to pax-web are installed within
the same feature definition. 
With Karaf 4 and the new feature resolver you can make sure the feature is fully installed
prior to your own bundles: 

{code}
<feature name='service-war' version='0.0.1-SNAPSHOT' description="service-war">
<feature>spring-ajsc</feature> 
<feature>dme2-jars</feature> 
<feature>att-camel-jars</feature> 
<feature>camel-cxf-2.15.2</feature> 
<feature>camel-2.15.2</feature>
<feature prerequisite="true">war</feature> 
<bundle>file:${ajsc.repo.dir}/ajsc-jars/ajscwar/${project.version}/ajscwar-${project.version}.war</bundle>

</feature>
{code}

> Starting the osgi feature using the org.ops4j.pax.web.cfg does not work as expected.
> ------------------------------------------------------------------------------------
>
>                 Key: KARAF-3909
>                 URL: https://issues.apache.org/jira/browse/KARAF-3909
>             Project: Karaf
>          Issue Type: Bug
>    Affects Versions: 3.0.3
>            Reporter: Amit Patel
>            Priority: Blocker
>
> When we install the osgi feature using the org.ops4j.pax.web.cfg. we are getting below
exception but when we try to install the same feature though Karaf command prompt it works
fine. Let me know what we are missing. we will provide you more info if you need. 
> Note:If we  install and uninstall the feature it works fine. it does work on first installation
and we using also groovy and java code.
>  
> It is bloker for us because we deploy the application on multiple nodes and we don't
want to install the feature using the Karaf command prompt. Our production node does not have
internet access. 
> custom feature file.
> ==================
> <feature name='service-war' version='0.0.1-SNAPSHOT' description="service-war">
> 	     <feature>spring-ajsc</feature> 
> 	     <feature>dme2-jars</feature> 
> 	     <feature>att-camel-jars</feature> 
> 	     <feature>camel-cxf-2.15.2</feature> 
> 	     <feature>camel-2.15.2</feature>
> 		 <feature>war</feature> 
> 		<bundle>file:${ajsc.repo.dir}/ajsc-jars/ajscwar/${project.version}/ajscwar-${project.version}.war</bundle>

> </feature> 
> ERROR
> ===========
> 01.359 [pool-4-thread-1] ERROR org.springframework.web.servlet.DispatcherServlet - Context
initialization failed
> org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 1 in XML
document from ServletContext resource [/WEB-INF/spring-servlet.xml] is invalid; nested exception
is org.xml.sax.SAXParseException; systemId: http://cso.att.com/FAQs/URLFiltering/ProxyWarning.html;
lineNumber: 1; columnNumber: 63; White spaces are required between publicId and systemId.
>         at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:396)
[org.springframework.beans:3.2.4.RELEASE]
>         at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:334)
[org.springframework.beans:3.2.4.RELEASE]
>         at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:302)
[org.springframework.beans:3.2.4.RELEASE]
>         at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message