This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem to run my application

 
hernan rodriguez
Greenhorn
Posts: 14
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I was building my application using Spring 2.5, Hibernate 3, Tomcat 7 and MySQL (I use xampp, that include mysql). I run the application on my computer and all works fine... the problem arise when I try to run the application on another computer. I install Tomcat 7 and Mysql (only Mysql server, not xampp) and though the connection is established, it seem not to work because Hibernate doesn't create the tables, the error message says: "table project.product doesn't exists...".

Here's the Apache logs:



I made another test. I try installing Tomcat 6 instead of tomcat 7, and when i tried to run my app comes up the 404 error (resource is not available). What's wrong with my application? I'm very disappointed with this...

Here's the logs:



Here's the code of spring-context.xml:



Let me know if you need more code than the provided above.

Thanks in advance.
 
Michael Ernest
High Plains Drifter
Sheriff
Posts: 7292
Netbeans IDE VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here's the first error that occurs in the log dumps you posted:



So I would start by determining why your application believes this table does not exist.
 
hernan rodriguez
Greenhorn
Posts: 14
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Michael Ernest wrote:Here's the first error that occurs in the log dumps you posted:



So I would start by determining why your application believes this table does not exist.


I know, but I can't understand why it works using Xampp mysql server but not using only Mysql server downloaded directly from Mysql web site (http://dev.mysql.com/downloads/mysql/).
Likewise, I can not understand why it doesn't work with Tomcat 6 (404 error), I put the logs in the second code snippet and I don't see any error message in logs.
 
Michael Ernest
High Plains Drifter
Sheriff
Posts: 7292
Netbeans IDE VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Chances are it's a difference in configuration between the two -- no way for me to tell from the logs alone. I recently went through an exercise to switch a NetBeans app from MySQL to Java Derby, and it was not as trivial as I thought it might be.

Your case should be simpler, but I would not expect one deployment of MySQL to be perfectly consistent with another out of the box.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic