Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Problem accessing resources in other depending projects
Problem accessing resources in other depending projects [message #897280] Mon, 23 July 2012 13:39 Go to next message
Franco Giustetto is currently offline Franco GiustettoFriend
Messages: 6
Registered: July 2012
Junior Member
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 [/cache.ccf]
at org.apache.jcs.engine.control.CompositeCacheManager.configure(CompositeCacheManager.java:242)
at org.apache.jcs.engine.control.CompositeCacheManager.configure(CompositeCacheManager.java:194)
at org.apache.jcs.engine.control.CompositeCacheManager.getInstance(CompositeCacheManager.java:122)
at org.apache.jcs.JCS.ensureCacheManager(JCS.java:96)
at org.apache.jcs.JCS.getInstance(JCS.java:64)
...more

and if I exclude avoid instatiatingthis 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 resuouces 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
Franco
Re: Problem accessing resources in other depending projects [message #897289 is a reply to message #897280] Mon, 23 July 2012 13:54 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33216
Registered: July 2009
Senior Member
Franco,

Did you mean to post this on the EMF newsgroup/forum? It looks like it
belongs somewhere else, perhaps the Web Tools newsgroup/forum...


On 23/07/2012 3:39 PM, 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
> [/cache.ccf]
> at
> org.apache.jcs.engine.control.CompositeCacheManager.configure(CompositeCacheManager.java:242)
> at
> org.apache.jcs.engine.control.CompositeCacheManager.configure(CompositeCacheManager.java:194)
> at
> org.apache.jcs.engine.control.CompositeCacheManager.getInstance(CompositeCacheManager.java:122)
> at org.apache.jcs.JCS.ensureCacheManager(JCS.java:96)
> at org.apache.jcs.JCS.getInstance(JCS.java:64)
> ..more
>
> and if I exclude avoid instatiatingthis 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 resuouces 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
> Franco


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Problem accessing resources in other depending projects [message #897299 is a reply to message #897289] Mon, 23 July 2012 14:17 Go to previous message
Franco Giustetto is currently offline Franco GiustettoFriend
Messages: 6
Registered: July 2012
Junior Member
oops! Embarrassed I am definitely a newbie! I will post it in Web Tools newsgroup/forum
Previous Topic:[xcore] Code Snippet ignored with derived and refers references
Next Topic:EMF/XSD invalid xml
Goto Forum:
  


Current Time: Sat Sep 21 17:57:42 GMT 2024

Powered by FUDForum. Page generated in 0.03514 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top