0

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

Cœur
  • 37,241
  • 25
  • 195
  • 267
Zaw Than oo
  • 9,651
  • 13
  • 83
  • 131

1 Answers1

1

I get one solution, change the path for vm argument at Edit lunch configuration properties of Eclipse.

-Dwtp.deploy="D:\dev\eclipse\hwak-framework\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps"

I also get another reference

Zaw Than oo
  • 9,651
  • 13
  • 83
  • 131