-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: JPA and Eclipse RCP
PostPosted: Wed Jan 31, 2007 6:20 am 
Newbie

Joined: Wed Jan 31, 2007 6:18 am
Posts: 2
JPA and Eclipse RCP

I have the following problem.

I have one plugin:
Code:
plugin
- src
- META-INF
   - persistence.xml
   - MANIFEST
- lib
   - libs.jar
   - ....


JPA tries to search all the classpath in the plugin for the
META-INF/persistence.xml, if I start the project out of eclipse,
everything is fine, but if I export the whole thing, this file could not
be found.
As persistence api I use hibernate with JPA.


Am am very tired maybe some could help.
Chris


Top
 Profile  
 
 Post subject: Fetzer Found
PostPosted: Wed Jan 31, 2007 10:06 am 
Newbie

Joined: Wed Jan 31, 2007 6:18 am
Posts: 2
The problem lies in the following code:
I don't know what the code does but if I comment out the line (if ( filters.size() > 0 ) doProcessElements();)
everything works.

Interesting is, that my document is not in an jar (could this be a problem)
But in eclipse it works also without.

Is this maybe a codeoptimization?

Chris


Code:
public class InputStreamZippedJarVisitor extends JarVisitor
   /**
    * Return the matching entries for each filter in the same order the filter where passed
    *
    * @return array of Set of JarVisitor.Entry
    * @throws IOException if something went wrong
    */
   public final Set[] getMatchingEntries() throws IOException {
      if ( !done ) {
         //avoid url access and so on
         //if ( filters.size() > 0 ) doProcessElements();
         done = true;
      }
      return entries;
   }


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.