Menu

Problem:Struts-Polls v2.4.2 work with MySQL?

Help
daisy ng
2003-12-20
2003-12-27
  • daisy ng

    daisy ng - 2003-12-20

    I have some problem while running this Project,
    I can run it well when I use Castor-XML
    plug-in . However, when I follow the readme to replacing the Castor-XML
    plug-in with the hibernate plug-in. I got the following error message.
    "HTTP Status 503 - Servlet action is currently unavailable"
    Could anyone can teach me how to solve my problems?

     
    • Jorge de Castro

      Jorge de Castro - 2003-12-27

      Make sure you comment all references to the Castor-XML plug-in properly, or remove them from the struts-config. Most people forget that.
      Make sure your MySQL server is running on port 3306 or edit WEB-INF/classes/hibernate.properties with the port number where your MySQL server is running.
      Last but not least, ensure you created all the database tables on MySQL.
      I can send you a sample struts-config.xml file ready to use with hibernate. I think the one on the .war has the hibernate plugin commented, so you need only to remove the Castor and comment out hibernate.

      For the following versions I'll be using Spring and its bean managed config and persistence services, which will make everything much easier.

      Hope this helps and if not, email me with a more detailed stacktrace.

      Cheers
      jorge

       

Log in to post a comment.