-->
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.  [ 4 posts ] 
Author Message
 Post subject: How to install and run hibernate in tomcat
PostPosted: Thu May 19, 2005 4:31 am 
Newbie

Joined: Thu May 19, 2005 4:18 am
Posts: 1
Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp

Hibernate version:I am new to hibernate and trying to install and run application in tomcat but cant able to configure it properly.i dont want to use ANT . can anyone suggest me a solution.

Mapping documents:

Code between sessionFactory.openSession() and session.close():

Full stack trace of any exception that occurs:

Name and version of the database you are using:

The generated SQL (show_sql=true):

Debug level Hibernate log excerpt:

Thanks,
Tapan


Top
 Profile  
 
 Post subject:
PostPosted: Thu May 19, 2005 6:42 am 
Beginner
Beginner

Joined: Tue May 17, 2005 7:39 am
Posts: 27
Location: Rome, Italy
i have the need to make work tomcat + hibernate, and i just found out how to configure the example bundled with tomcat. i think it's mandatory to use ant with hibernate, correct me if i'm wrong.
Personally, i'd like to develop my application using netbeans but i suppose there is no support for these tools, so i'm looking for new IDE and tools that integrate well with hibernate and tomcat.
If you need help with installing and configuring hibernate, just ask.


Top
 Profile  
 
 Post subject:
PostPosted: Thu May 19, 2005 6:51 am 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
No, its not mandatory to use Ant. Whats wrong with the chapter "Quickstart with Tomcat" you two are ignoring?


Top
 Profile  
 
 Post subject:
PostPosted: Thu May 19, 2005 10:48 am 
Beginner
Beginner

Joined: Tue May 17, 2005 7:39 am
Posts: 27
Location: Rome, Italy
i'm following the quickstart with tomcat and running it with netbeans that has tomcat included: i created a new web application called quickstart, but after i added all the libs needed to the context classpath and the global classpath i try to deploy the application and i get an error that says:

Deployment error: TomcatManager.undeploy invalid TargetModuleID passed. See the messages.log file for details.
C:\Programmi\netbeans-4.0\nb4.0\jakarta-tomcat-5.0.28\webapps\quickstart\nbproject\build-impl.xml:279: org.netbeans.modules.j2ee.deployment.devmodules.api.Deployment$DeploymentException: Deployment error: TomcatManager.undeploy invalid TargetModuleID passed. See the messages.log file for details.
BUILD FAILED (total time: 0 seconds)

i modified the server.xml of tomcat (even if i saw on the tomcat site http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/context.html that "it is NOT recommended to place <Context> elements directly in the server.xml file. Instead, put them in the META-INF/context.xml directory of your WAR file")

maybe i have to do something to let netbeans "see" hibernate?? just a guess


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