facebook

MyEclipse For Spring Scaffolding to MySQL server issues

  1. MyEclipse IDE
  2.  > 
  3. Spring Development
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #308980 Reply

    Eddy
    Participant

    I have a problem that I need a little guidance with. I have created a web project and used the Scaffolding Spring MVC CRUD Application to successfully create my application. The problem is that in the Scaffolding wizard I was prompted to create a connection and needed to supply the path to the “mysql-connector-java-5.1.10-bin.jar” This all worked well I was able to connect to the MySQL db without issue. The problem is that if I deploy the application and start the tomcat server if fails to find the MySQL driver that I supplied during the scaffolding. How do I get MyEclipse to add this driver during deployment? Why does the scaffolding wizard not do this for me?

    thanks

    #308990 Reply

    neyde
    Member

    That’s a bummer. You were soooo close. 🙂

    If I recall correctly, I believe the problem is that we can’t redistribute the MySQL driver due to it’s license. So you have to download it on your own, and then copy the jar file into the WEB-INF/lib folder of your project. Redeploy the application, and you should be good to go.

    #308991 Reply

    Eddy
    Participant

    My point was that if in the wizard I need to supply the path to the connector that I have downloaded then at that point the wizard could do any copying needed of the jar and creating the dependency in the project so that it will be deployed. This would avoid the manual step (a constant source for error).

    #308993 Reply

    neyde
    Member

    That’s an interesting idea. The scaffolding wizard prompts you for a DB connection, and it also let’s you create new connections. The DB connection setup tool/UI is being *called* by the scaffolding wizard, but it isn’t really part of the wizard. We need to see if the connection setup tooling has API for deriving the location of the jar file, so that we can copy into the project.

    Thanks for the suggestion.

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: MyEclipse For Spring Scaffolding to MySQL server issues

You must be logged in to post in the forum log in