Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Spring 2 and JPA

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I completed this tutorial on Spring 2 and JPA.
http://www-128.ibm.com/developerworks/edu/j-dw-java-spring2-i.html?S_TACT=105AGX59&S_CMP=HP-GR&ca=dgr-jw17Spring2-JPA

I�m not able to deploy the application to Tomcat 5 though. The error I�m getting is as below.

SEVERE: �Servlet /Spring2Web threw load() exception

java.lang.ClassCastException: org.springframework.web.servlet.DispatcherServlet cannot be cast to javax.servlet.Servlet�

SEVERE: Servlet /Spring2Web threw load() exception

java.lang.ClassCastException: org.apache.jasper.servlet.JspServlet cannot be cast to javax.servlet.Servlet

I have added the class loader in context.xml as suggested in the tutorial.

<Loader loaderClass="org.springframework.instrument.classloading.tomcat.TomcatInstrumentableClassLoader"/>

I have also configured this listener in web.xml

<listener-class>
org.springframework.web.context.ContextLoaderListener
</listener-class>

Please let me know if I�m missing something.

Thanks,
Sandhya
[ May 15, 2007: Message edited by: Sandhya Narayanan ]
 
He's dead Jim. Grab his tricorder. I'll get his wallet and this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic