如何在websphere 8.0上更改de jre环境?

时间:2017-10-02 22:07:44

标签: java websphere jdk1.6

我在java上有一个应用程序,我创建了war文件,我将它上传到WebSphere 8.0,但是当我运行应用程序时,WebSphere显示了这一点:Screenshot of errors

这些错误引用:

<% 
    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");

%>

我使用java 1.6所以我不知道是什么问题。我猜是jre版本,但我找不到使用哪个版本。

SystemOut.log显示:

************ 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

websphere版本: Version Websphere 8.0

1 个答案:

答案 0 :(得分:0)

您从未对您的应用服务器进行任何维护,因此它是&#34; 0&#34;从2011年开始的代码。我建议应用最新的JDK和应用程序服务器维护,这些维护在第一个存档中出现:

http://www-01.ibm.com/support/docview.wss?uid=swg24042746

虽然您正在使用它,但我建议您升级到8.5.5或9.0版本,因为您发布的8.0版本将在明年停止服务,并且 永远陷入Java 6。