java - WAR on tomcat cannot find deploy.jar in jre -
i have deployed application on tomcat war file. @ 1 point using urlencoder com.sun.deploy.net encode http parameters.
message = urlencoder.encode(message);
this compiles fine. deployed application tries access method receive
java.lang.classnotfoundexception: com.sun.deploy.net.urlencoder
why that? understand urlencoder class belongs deploy.jar
of jre since java 1.3 (i using 1.7) tomcat doesn't seem find ...
what have do?
i being incredibly stupid
it should have been
import java.net.urlencoder;
rather import com.sun.deploy.net.urlencoder;
plain wrong. works, of course!
Comments
Post a Comment