[ 
https://issues.apache.org/jira/browse/KARAF-3909?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Amit Patel updated KARAF-3909:
------------------------------
    Description: 
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 install and uninstall the feature it works fine. 


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

  was:
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. 




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


> 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 install and uninstall the feature it works fine. 
> 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)

Reply via email to