Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7896473
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T07:54:13+00:00 2026-06-03T07:54:13+00:00

I have set up Tapestry 5 project and all went fine, until I deployed

  • 0

I have set up Tapestry 5 project and all went fine, until I deployed Hibernate. I have created hibernate.xml file and

<hibernate-configuration>
<session-factory>

    <property name="dialect">org.hibernate.dialect.MySQLDialect</property>
    <property name="connection.driver_class">com.mysql.jdbc.Driver</property>
    <property name="connection.url">jdbc:mysql://localhost/project</property>
    <property name="connection.username">root</property>
    <property name="connection.password">password12</property>
    <property name="connection.pool_size">5</property>

    <!-- Print SQL to stdout. -->
    <property name="show_sql">true</property>
    <property name="format_sql">true</property>
    <property name="use_sql_comments">true</property>
    <property name="generate_statistics">true</property>
            <property name="hibernate.archive.autodetection">class, hbm</property>

    <property name="hibernate.transaction.flush_before_completion">true</property>

    <!-- Mapping files TODO: Classify those mappings in exact order and define the relations between them in entities some time later on.-->
            <mapping class="rs.project.com.entities.Fruit"/>
            <mapping class="rs.project.com.entities.Article"/>

</session-factory>

and it’s OK as far as the implementation of it is concerned. However when I deploy the app it defines me some other config, which can be seen on my trace log, and uses some other xml file, based on the mappings it shows me on the log, and it’s about some completely different project I used a while ago. The thing is I can’t see what’s causing such a behavior, and I am really frustrated. I am using Tomcat Apache Catalina and MySQL for Hibernate. Also, I did some research and found out that persistance.xml file is being used in my project.properties which is kinda strange.

   persistence.xml.dir=${conf.dir}

Driver for connecting my app to MySQL is jdbc.mysql.driver.So my goal is to possibly define the matter that causes such behavior here with you, and to solve it.

Thanks in advance for your answers.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T07:54:15+00:00Added an answer on June 3, 2026 at 7:54 am

    If your tomcat log is referring to a different project, maybe your context declaration is not right?

    Check your contexts directory (for me it’s $Tomcat_home\conf\Catalina\localhost) or the Server.xml (if that’s what you’re using). Make sure that the context file in the contexts directory is pointing to the right directory/project. This error has happened to me before when a previous project had the same context-name as my current one.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have set up some custom symfony project-level settings in the file config/project.yml following
I have set up an environment which should run my azure-project locally. It begins
I have set up VisualSvn Server, created a repository and added Visual Studio solution
I have set up the spellchecker for the example installation configuration that comes with
I have set up a dynamic web project in Eclipse with a Tomcat 5.5
I have set up a git repository on my server. Created a new user
I have set up a WCF service that will accept both JSON and XML
I have set up a openVPN tunnel using the following server side configuration: port
I have set of widgets and I am adding all the widgets on the
I have set the FlushMode property on an NHibernate session to FlushMode.Never, but when

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.