This week's book giveaway is in the Agile and Other Processes forum.
We're giving away four copies of The Little Book of Impediments (e-book only) and have Tom Perry on-line!
See this thread for details.
Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

to run web-app

 
dolly shah
Ranch Hand
Posts: 383
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have made one tag related web app from the HFSJ book from chapter:9. My application can deploy but its not running, it says "javax.servlet.ServletException: java.lang.NoClassDefFoundError: com/example/web/Advicor (wrong name: Advicor)". I made "Advicor" named class instead of "AdvisorTagHandler". I put that in a proper directory then why it gives me this error.
Anyone had a same problem like me to run web app, please help me.
 
Marc Peabody
pie sneak
Sheriff
Posts: 4727
Mac Ruby VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What do you mean by "can deploy"? Do you simply mean that your classes compiled? You say it's in the proper directory - what is the proper directory?

For it to find your Advicor (which sounds like a medication ) class, you must have in your application: WEB-INF/classes/com/example/web/Advicor.class

Is that exactly what you have?
 
dolly shah
Ranch Hand
Posts: 383
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yeah,my class is in WEB-INF/classes/com/example/web/Advicor.class.
deploy means mt class compiles.
 
Marc Peabody
pie sneak
Sheriff
Posts: 4727
Mac Ruby VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Wait a second, the AdvisorTagHandler class has a package name of foo, not com.example!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic