나는 다음과 같은 코드가 내 지역 개발 서버에서 완전히 잘 작동하지만 내가 배포 서버에 업로드 할 때, 난 항상 파일을 찾을 수 없습니다 예외URL은 FileNotFoundException이
String urlStr = "http://" + getContext().getRequest().getServerName() +
getContext().getServletContext().getContextPath() + "test.action";
URL url = new URL(urlStr);
InputStream input = url.openStream(); //Error always occurs here, it gives me the correct URL but it says file not found.
충돌이
누구든지 나를 도울 수 이걸로?
이름 귀하의 응용 프로그램 서버의? –
죄송합니다. 오타였습니다. – user2140338
응용 프로그램 서버가 EatJ 서버입니다. – user2140338