나는 자바에 앱을 가지고, 나는 전쟁 파일을 만든 내가는 WebSphere 8.0에 업로드하지만 응용 프로그램을 실행할 때 WebSphere는이 보여줍니다 Screenshot of errorswebsphere 8.0에서 환경을 변경하는 방법은 무엇입니까?
이러한 오류 참조에 :
<%
int proceso = (Integer) request.getAttribute("proceso");
String id = (String) request.getAttribute("id");
int user = (Integer) request.getAttribute("user");
String ruta = (String) request.getAttribute("ruta");
String carpeta = (String) request.getAttribute("carpetaServer");
String budgetId = (String) request.getAttribute("budgetId");
List<String> encabezado = (List<String>) request.getAttribute("encabezado");
List<Combo> secciones = (List<Combo>) request.getAttribute("secciones");
List<Combo> imagenes = (List<Combo>) request.getAttribute("imagenes");
%>
을 그래서 문제가 뭔지 모르겠다 자바 1.6을 사용합니다. 나는 jre 버전이라고 생각하지만 어떤 버전이 사용 중인지 찾을 수 없었다. 스피어의
************ Start Display Current Environment ************
WebSphere Platform 8.0.0.0 [BASE 8.0.0.0 n1118.03] running with process name XMBX248PCNode03Cell\XMBX248PCNode03\server1 and process id 7404
Host Operating System is Windows 7, version 6.1
Java version = 1.6.0, Java Compiler = j9jit26, Java VM name = IBM J9 VM
was.install.root = C:\Program Files (x86)\IBM\WebSphere8\AppServer
user.install.root = C:\Program Files (x86)\IBM\WebSphere8\AppServer\profiles\AppSrv01
Java Home = C:\Program Files (x86)\IBM\WebSphere8\AppServer\java\jre
ws.ext.dirs = C:\Program Files (x86)\IBM\WebSphere8\AppServer/java/lib;C:\Program Files (x86)\IBM\WebSphere8\AppServer\profiles\AppSrv01/classes;C:\Program Files (x86)\IBM\WebSphere8\AppServer/classes;C:\Program Files (x86)\IBM\WebSphere8\AppServer/lib;C:\Program Files (x86)\IBM\WebSphere8\AppServer/installedChannels;C:\Program Files (x86)\IBM\WebSphere8\AppServer/lib/ext;C:\Program Files (x86)\IBM\WebSphere8\AppServer/web/help;C:\Program Files (x86)\IBM\WebSphere8\AppServer/deploytool/itp/plugins/com.ibm.etools.ejbdeploy/runtime
Classpath = C:\Program Files (x86)\IBM\WebSphere8\AppServer\profiles\AppSrv01/properties;C:\Program Files (x86)\IBM\WebSphere8\AppServer/properties;C:\Program Files (x86)\IBM\WebSphere8\AppServer/lib/startup.jar;C:\Program Files (x86)\IBM\WebSphere8\AppServer/lib/bootstrap.jar;C:\Program Files (x86)\IBM\WebSphere8\AppServer/lib/jsf-nls.jar;C:\Program Files (x86)\IBM\WebSphere8\AppServer/lib/lmproxy.jar;C:\Program Files (x86)\IBM\WebSphere8\AppServer/lib/urlprotocols.jar;C:\Program Files (x86)\IBM\WebSphere8\AppServer/deploytool/itp/batchboot.jar;C:\Program Files (x86)\IBM\WebSphere8\AppServer/deploytool/itp/batch2.jar;C:\Program Files (x86)\IBM\WebSphere8\AppServer/java/lib/tools.jar
Java Library path = C:\Program Files (x86)\IBM\WebSphere8\AppServer/lib/native/win/x86_64/;C:\Program Files (x86)\IBM\WebSphere8\AppServer\java\jre\bin\default;C:\Program Files (x86)\IBM\WebSphere8\AppServer\java\jre\bin;.;C:\Program Files (x86)\IBM\WebSphere8\AppServer\lib\native\win\x86_64;C:\Program Files (x86)\IBM\WebSphere8\AppServer\bin;C:\Program Files (x86)\IBM\WebSphere8\AppServer\java\bin;C:\Program Files (x86)\IBM\WebSphere8\AppServer\java\jre\bin;C:\ProgramData\Oracle\Java\javapath;C:\oracle\ora92\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Program Files (x86)\IBM\Informix\Client-SDK\bin;C:\Program Files (x86)\ibm\gsk7\bin;C:\Program Files (x86)\ibm\gsk7\lib;C:\Bitnami\subversion-1.8.16-0\subversion\bin;C:\Program Files\TortoiseSVN\bin;C:\maven\bin;C:\Program Files\Java\jdk1.7.0_79\bin;C:\apache-tomcat-7.0.81\bin;;
Orb Version = IBM Java ORB build orb626fp1-20110419.00
버전 :
SystemOut.log는이 보여 Version Websphere 8.0
스크린 샷의 오류는 코드가 Java 5 (또는 그 이상)로 표시되지 않음을 분명히 나타냅니다. 어떻게 전쟁 파일을 만들고 있습니까? "사전 컴파일 된 JSP"옵션을 선택 했습니까? – dbreaux
(Integer to int "unboxing")은 요청에서 속성을 찾을 수없는 경우 NullPointerException을 throw 할 수 있음을 알고 있습니다. – dbreaux
예, websphere에서 JSP 사전 컴파일 옵션을 선택했습니다. 그러나 그것의 ok, 나는 전쟁 successfuly를 배치했다. 넷빈즈에서는 clean과 build 옵션이 jre7을 사용 했으므로 컴파일 옵션과 작동에서 jdk 6으로 변경되었습니다. – Gesser