Hi R�gine, Thursday, April 21, 2005, 12:24:02 PM, you wrote:
R> After building a project using AndroMDA, hibernate & java R> cartridges, Maven and importing it into java. Do I need hibernate R> ti be install inorder to use it or the dependencies in the cor and R> app project.xml files are enough to use the hibernate language R> syntax? (because I have not install hibernate but I have put the R> hibernate.jar on the classpath and I have the message the jar file R> has no source to attache attachment to it ) this message only means that you don't have the source files of Hibernate installed so that Eclipse cannot open them. See the Eclipse docs about how to associate a source .ZIP file to a JAR file. R> Due to this .jar message (I suppose) my .xml are not being read. No, this should not be the reason. Maybe you should also include all the 3rd party jar file that Hibernate needs, for example c3p0.jar, cglib.jar and so on. See http://www.hibernate.org/152.html for more info. A good place to check is also the file "lib/README.txt" in the Hibernate distribution. R> I am also having a warning that no appenders could be found for the R> logger(net.sf.hibernate.cfg.Environment) and I am ask to initialize R> the log4j system properly(how can I do it and where? Should create R> a log4j.properties? This means I need to install hibernate or?) When do you get that message? At runtime of your Hibernate app? Then, you should read the basic pages about log4j at http://logging.apache.org/log4j/docs/manual.html You will see this sample code there: import com.foo.Bar; // Import log4j classes. import org.apache.log4j.Logger; import org.apache.log4j.BasicConfigurator; public class MyApp { // Define a static logger variable so that it references the // Logger instance named "MyApp". static Logger logger = Logger.getLogger(MyApp.class); public static void main(String[] args) { // Set up a simple configuration that logs on the console. BasicConfigurator.configure(); logger.info("Entering application."); Bar bar = new Bar(); bar.doIt(); logger.info("Exiting application."); } } The "BasicConfigurator.configure()" does the trick. R> Can someone give me some tips how to go around it. R> Thanks, R�gine. Done. Cheers... Matthias --- Matthias Bohlen "Consulting that helps project teams to succeed..." Internet: http://www.mbohlen.de/ [EMAIL PROTECTED] ------------------------------------------------------- This SF.Net email is sponsored by: New Crystal Reports XI. Version 11 adds new functionality designed to reduce time involved in creating, integrating, and deploying reporting solutions. Free runtime info, new features, or free trial, at: http://www.businessobjects.com/devxi/728 _______________________________________________ Andromda-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/andromda-user
