Parallels and Tomcat

Discussion in 'Parallels Desktop for Mac' started by Arnaud, May 16, 2006.

  1. Arnaud

    Arnaud Bit poster

    Messages:
    2
    I'm currently using parallels (win xp) with my macbookpro :cool: . I'm very satify, I have win xp running on one desktop and thanks to virtueDesktops I still have 3 others deskops free for os x with the nice cube transition!
    Everything is cool but i need to work with Tomcat inside parallels because i have to make a struts web app for my university. It doesn't seem to work (when testing a basic servlet or jsp it displays : error http 500/401), i've been trying for 3 days now, any one can help me?
    I really need to setup a nice environment to work on this project (no rebooting like bootcamp...), I love working on os x but working with struts in os x seems a bit cumbersome.
    Thanks in advance, Arnaud.
     
  2. Paul Linden

    Paul Linden Member

    Messages:
    76
    Why are you using XP for Struts development when you have a Unix environment already in OS X?

    Download eclipse into Mac OS X and develop using it. The Tomcat executable for Unix runs seamlessly on OS X without any changes required, but you can build it from source if you want to be really sure it'll work.

    500 responses in my experience are due to errors in the application - for instance a NullPointerException when trying to access a method of a null object will filter up to the page displayed to the user unless you take steps to catch the error. Check the Tomcat logs for errors.

    A 401 response means Not Authorized.

    I don't think any of this is a Parallels problem.

    I have a Linux VM running a Struts webapp with Tomcat - much of which was developed on Mac OS X. I run it in Linux because that's the final destination for my code ... a Linux server, but development on OS X was as easy if not easier than in Linux. Webapp development in Windows XP is an utter pain. Avoid it like the plague.
     
    Last edited: May 16, 2006
  3. Arnaud

    Arnaud Bit poster

    Messages:
    2
    Thanks for the advice. I wanted to use win xp for my struts project because I never used linux (just a bit but not like my friends) : tomcat installation + admin pack on winxp is easy, eclipse also, My SQL, MySql administrator query browser JDBC drivers also.
    But I'm going to try it because I really prefer os x environment, I just can't afford to loose 3 days on the installation.
    The error with tomcat and winxp in parallels is real because no servlet or jsp are working, where as in my pc it works perfectly, even the tomcat's examples are not working.
     

Share This Page