File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Tomcat and the fly likes Problem to run my application Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Problem to run my application" Watch "Problem to run my application" New topic
Author

Problem to run my application

hernan rodriguez
Greenhorn

Joined: Mar 13, 2011
Posts: 14
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

Joined: Oct 25, 2000
Posts: 7292

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.


Make visible what, without you, might perhaps never have been seen.
- Robert Bresson
hernan rodriguez
Greenhorn

Joined: Mar 13, 2011
Posts: 14
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

Joined: Oct 25, 2000
Posts: 7292

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.
 
 
subject: Problem to run my application
 
Similar Threads
Hibernate loads only first element of the collection
Jar conflict or something else?
JSF 1.2 with Facelets 1.2 project deployment issue in JBoss 4.2.3.
How to autharize against Oracle DB with an LDAP Authentication
com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure