When I run JSF
web application from Eclipse IDE
, I cannot find directory(myjsfapp). I know that application will deploy at <tomcat home>/webapps
directory.
That's why, I print out the real-path
from my program as below.
Object context = FacesContext.getCurrentInstance().getExternalContext().getContext();
String systemPath = ((ServletContext) context).getRealPath("/");
System.out.println(systemPath);
Real Path is
<my-workspace>\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\myjsfapp\
Why myjsfapp
don't deploy at <tomcat home>/webapps
? How can I do to deploy at that directory