• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

SpringMVC works with Eclipse/Tomcat, but not jetty?

 
Ranch Hand
Posts: 428
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have a simple SpringMVC app that works when I run it with Eclipse/Tomcat. This version of my Guestbook application does no authentication/authorization.

Since I'd like to automate some integration tests, I thought I would try out "mvn jetty:run".

This works if I use the following in persistence.xml:


However, if I switch to Microsoft SQL Server with this for the persistence.xml:


This works with Eclipse/Tomcat but not "mvn jetty:run". Why?
Here is the error I get from "mvn jetty:run"

So why is Microsoft SQL Server incompatible with Jetty?

Ackk! This is getting downright weird!

So I kept careful notes and used version control to revert back to the version of persistence.xml that was working with Eclipse/Tomcat/MSSQL and restarted eclipse. Now that does not work either. I get this error:

I repeat: this was working and not it is not! The only thing that changed was that I edited the persistence.xml to use MySQL (and that did not work) and then, using RCS version control, reverted back to the copy that used MSSQL and now it is broken with the above error.

Any ideas?
Thanks
Siegfried
 
reply
    Bookmark Topic Watch Topic
  • New Topic