-->
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.  [ 8 posts ] 
Author Message
 Post subject: hibern8ide exits immediately, no error given
PostPosted: Thu Jan 29, 2004 6:32 pm 
Regular
Regular

Joined: Wed Dec 31, 2003 4:26 am
Posts: 108
Location: Berkeley, CA
I'm running hibern8ide (or trying to) from an ant build.xml file.

Code:
   <path id="hibern8ide.class.path">
       <path refid="hibernate.lib.class.path" />
      <fileset dir="${ext.lib.dir}">
         <include name="*.jar"/>
      </fileset>
      <path location="${HIBERN8IDE_HOME}/lib/pf-joi-full.jar" />
      <path location="${HIBERN8IDE_HOME}/hibern8ide.jar" />
   </path>

   <target name="hibern8ide"
      description="Launch the hibern8ide.">
      <java classname="net.sf.hibern8ide.Hibern8IDE"
         classpathref="hibern8ide.class.path"/>
   </target>

Where hibernate.lib.class.path is used for all things hibernate (e.g., every jar in hibernate, but nothing from the hibernate extensions).

hibern8ide launches and closes immediately with no error or other message!

help, please!!


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jan 29, 2004 10:00 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 7:19 pm
Posts: 2364
Location: Brisbane, Australia
Have a look at the tools example we did for JAOO. It has working examples of most of the tools.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Feb 01, 2004 3:46 am 
Regular
Regular

Joined: Wed Dec 31, 2003 4:26 am
Posts: 108
Location: Berkeley, CA
david wrote:
Have a look at the tools example we did for JAOO. It has working examples of most of the tools.


A pointer to those (e.g., a URL) would be appreciated.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Feb 01, 2004 9:43 am 
Hibernate Team
Hibernate Team

Joined: Tue Sep 09, 2003 2:10 pm
Posts: 3246
Location: Passau, Germany
http://www.hibernate.org/159.html I think


Top
 Profile  
 
 Post subject:
PostPosted: Sun Feb 01, 2004 8:39 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 7:19 pm
Posts: 2364
Location: Brisbane, Australia
This last link in the above page. :-)


Top
 Profile  
 
 Post subject:
PostPosted: Mon Feb 02, 2004 8:44 pm 
Regular
Regular

Joined: Wed Dec 31, 2003 4:26 am
Posts: 108
Location: Berkeley, CA
gloeglm wrote:


I think this is a mis-direct. It has no mention of Hibern8IDE ... the tool in question. I already have hbm2java, et. al. working. But Hibern8IDE just craps out.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Feb 02, 2004 9:54 pm 
Expert
Expert

Joined: Thu Jan 08, 2004 6:17 pm
Posts: 278
I don't know about Hibern8IDE, but I have debugged a bunch of similar Ant issues. Did you run with ant -debug? Did you echo the exact classpath? Can you try to get Ant to print out the command line it is trying to execute in your task?

Generally the problem is that Ant is doing something subtly different than what you think it is doing. Or else perhaps you need fork="true" to get it to spawn Hibern8IDE in a different VM. There may be other issues with trying to run independently-threaded GUI apps from within Ant.

You might be better off just writing a batch file to launch Hibern8IDE :-) It's a bit odd to be launching an interactive application from inside Ant, which is generally a batch-oriented tool....

Cheers!
Rob


Top
 Profile  
 
 Post subject: Solved.
PostPosted: Tue Feb 03, 2004 7:12 pm 
Regular
Regular

Joined: Wed Dec 31, 2003 4:26 am
Posts: 108
Location: Berkeley, CA
Yes, you were right, it was an issue with ANT. Fixing a classpath typo and setting fork="true" solved it.

As to using Ant as a launcher, I find it very convenient for development tools. I launch middlegen that way. It is nice to have all the classpaths (typos not-withstanding) that relate to a development environment nicely contained in one place.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 8 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.