PU packaging and deployment

Hi

I have the following packaging for a processing unit:

processor
             -- com
             -- lib
             -- META-INF
-- shared-lib

shared-lib contains a common jar which has the following:
    common.jar
          -- spring/context-dao.xml
-- other classes

the pu.xml contains the entry:

<import resource="classpath:/spring/context-dao.xml"/>

When I try to deploy the processor via the UI I get the exception:

Exception : java.io.FileNotFoundException : class path resource spring/context-dao.xml cannot be opened because it does not exist at org.springframework.core.io.ClassPathResource.getInputStream(ClassPathResource.java:142) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:336) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:310) at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:143) at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:178) at or

Would it be possible if someone could advise me on what I am doing wrong. I am using maven plugin to package the PU (mvn clean compile package).

The other thing I have a server properties file which I don't want to package with the PU but would like to put it in the gigaspaces distribution, is it possible if i can put the properties file in the config directory? is this dir part of the classpath?

Thanks

This thread was imported from the previous forum.
For your reference, the original is available here

asked 2008-11-18 07:24:39 -0600

amin1977 gravatar image

updated 2013-08-08 09:52:00 -0600

jaissefsfex gravatar image
edit retag flag offensive close merge delete