Win a copy of Java Concurrency Live Lessons this week in the Threads forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

class not found  RSS feed

 
xiaohong yu
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have put the clp file in the c:\tomcathome\...and my other .class ,.java files in the other directories,I have write my web.xml ,but when i run the program ,it is said : .class file cant find ,I want to know if I have write the right web.xml,how to write about the .clp file in my web.xml??

<context-param>
<param-name>rulesfile</param-name>
<param-value>pha.clp</param-value>
</context-param>
I think if i should say the package in my class file ?
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What class can't be found?

Also, where do you want to put your clp file?
If you want it to reside outside of your webapp, which I assume you do or you wouldn't be using context params to find it, you'll need to provide the full path to the file.
<param-value>c:\rules\pha.clp</param-value>
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You might get that error if your class in not in a package and/or the JSP does not correctly import the package the class is in.
Bill
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!