Isuru,
The JNDI url looks invalid to me. It should be something in the line of
jndi://localhost/cxf-library..... assuming 'cxf-library' is the name of the
war file.

AFAIR, part 'jndi' is referred as type binding in JNDI world.

So when you say earlier 'jndi:' is now appearing as '/jndi:', it is quite
possible that recognizing the type got screwed up when OSGification was
introduced.

Reading  'JNDI Services Specification' section in
http://www.osgi.org/Release4/Errata might help?
And also check slide number 13 in
http://www.slideshare.net/bosschaert/whats-newinos-gi42enterprise

May be how CXF should load cxf-servlet.xml needs to be changed. And, I
don't think this is CXF specific. If we have a war file doing same type of
resource loading through JNDI should re-produce the problem.

/sumedha


On Tue, Feb 28, 2012 at 8:44 PM, Isuru Suriarachchi <[email protected]> wrote:

> A simple CXF webapp which was working earlier doesn't work on trunk now.
> Following is the exception. There's an additional '/' in the jndi resource
> it's trying to load. But I'm not sure how this is related to Tomcat
> OSgification. I'm looking into this, but please let me know if anyone has
> an idea about the root cause.
>
> [2012-02-28 19:02:18,958]  INFO
> {org.springframework.web.context.support.XmlWebApplicationContext} -
>  Refreshing Root WebApplicationContext: startup date [Tue Feb 28 19:02:18
> IST 2012]; parent: Root WebApplicationContext
> [2012-02-28 19:02:18,959]  INFO
> {org.springframework.beans.factory.xml.XmlBeanDefinitionReader} -  Loading
> XML bean definitions from ServletContext resource
> [/jndi:/localhost/cxf-library/WEB-INF/cxf-servlet.xml]
> Feb 28, 2012 7:02:18 PM org.apache.catalina.core.ApplicationContext log
> SEVERE: StandardWrapper.Throwable
> org.springframework.beans.factory.BeanDefinitionStoreException:
> IOException parsing XML document from ServletContext resource
> [/jndi:/localhost/cxf-library/WEB-INF/cxf-servlet.xml]; nested exception is
> java.io.FileNotFoundException: Could not open ServletContext resource
> [/jndi:/localhost/cxf-library/WEB-INF/cxf-servlet.xml]
>  at
> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:341)
> at
> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:302)
>  at
> org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:143)
> at
> org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:178)
>  at
> org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:149)
>
> Thanks,
> ~Isuru
>
> --
> Isuru Suriarachchi
> Technical Lead
> WSO2 Inc. http://wso2.com
> email : [email protected]
> blog : http://isurues.wordpress.com/
>
> lean . enterprise . middleware
>
>
> _______________________________________________
> Carbon-dev mailing list
> [email protected]
> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>
>
_______________________________________________
Carbon-dev mailing list
[email protected]
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev

Reply via email to