Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

ClassNotFoundException  RSS feed

 
Isaac Ferguson
Ranch Hand
Posts: 1054
3
Java Netbeans IDE Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi @ll,

I am making test with very simple Webservices, this one is resisting to work

I have this web.xml



Se ejecuta desde el browser:



Error:



It looks prety obvious, but ....

The structure is like this:




Any idea, please?
 
Tim Moores
Saloon Keeper
Posts: 3512
77
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

java.lang.ClassNotFoundException: Controller.WebServiceController

There seems to be a disconnect somewhere - note the uppercase C in the package name. Check all directories, source files and config files for a misspelled package name.
 
Isaac Ferguson
Ranch Hand
Posts: 1054
3
Java Netbeans IDE Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes I made it already...by nothing looks misspelled
 
Isaac Ferguson
Ranch Hand
Posts: 1054
3
Java Netbeans IDE Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok I foun the error it was an strange caracter line 4JJJo , which was not evident in the .java file but in the the compiler. I created a new file and pasted the whole code there. Now it works.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!