|Re: Problem accessing resources in other depending projects [message #897328 is a reply to message #897302]
||Mon, 23 July 2012 15:26
| Larry Isaacs
Registered: July 2009
If you right-click on the warning and use "Quick Fix", it will update |
the configuration of the projects so ABSBL will be built into ABSBL.jar
and included in the published Absweb webapp. This is the best GUI way
to create this dependency.
On 7/23/2012 10:23 AM, Franco Giustetto wrote:
> Hello, I'm faced with an access problem of resources located in a
> project different from the main project.
> I working on Eclipse Helios.
> I have a project called Absweb that is (as the name suggest) a JAX-WS
> Web project build over ZK framework.
> This project use controller beans taken from another project (ABSBL
> where BL stay for Business logic) where I can found the cache
> initialization file "cache.ccf"
> again the ABSBL project use POJO from the ABSDB project (where DB stay
> for DataBase) where I can found the SqlConfig.XML files which contains
> definition for MyBatis framework.
> ABSBL and ABSDB are both Java Projects.
> When i build the various projects I get, among others, these warnings....
> Classpath entry /ABSBL will not be exported or published. Runtime
> ClassNotFoundExceptions may result. Classpath entry /ABSBL/bin/cache.ccf
> will not be exported or published. Runtime ClassNotFoundExceptions may
> result. Classpath entry /ABSDB will not be exported or published.
> Runtime ClassNotFoundExceptions may result.
> Classpath entry /ABSDB/src/SqlMapConfig.xml will not be exported or
> published. Runtime ClassNotFoundExceptions may result.
> all throne by Classpath Dependency Validator Message
> This is strange because I try both check and uncheck the "export" flag
> in the "Order and export" properties page without any substantial changes.
> These are warnings, so I could also ignore it, but...
> As soon I start the web application and the Spring container try to
> instantiate one of the ABSBL that contain the following line:
> cache = JCS.getInstance("runValueCache");
> I get an exception that tell me that the cache.ccf file cannot be found.
> here a sample stack trace ( please tell me if you need complete stack
> trace or any other config file)
> java.lang.IllegalStateException: Failed to load properties for name
> at org.apache.jcs.JCS.ensureCacheManager(JCS.java:96)
> at org.apache.jcs.JCS.getInstance(JCS.java:64)
> and if I avoid to instatiate this class by removing it from Spring's
> Application context I get errors as soon I instatiate a class that
> require the SqlMapConfig.xml exported by the ABSDB Jar file...
> That is: it seems that I cannot see any resource exported from my
> projects or better, it seems I cannot export any resouces from my projects.
> This problem drive me crazy because I think I try every possible
> declaration combination without any appreciable result.
> could anybody help me?
> Tahnk you
Powered by FUDForum
. Page generated in 0.10406 seconds