我正在使用 Weblogic server 12.1.2、JSF 2、Mojarra 2.2.4,并且我在页面中有下一个代码:
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://xmlns.jcp.org/jsf/html"
xmlns:f="http://xmlns.jcp.org/jsf/core"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:p="http://primefaces.org/ui"
xmlns:c="http://java.sun.com/jsp/jstl/core">
<f:metadata>
<f:viewAction action="#{sessionBean.solicitud()}" />
</f:metadata>
<h:body>
Solicitud: '#{param.id}'
From: '#{param.from}'
<br />
</h:body>
</html>
SessionBean 有下一个方法:
public String solicitud() {
System.out.println("\n12\n");
Long id = getRequestParam("id") != null ? Long.valueOf(getRequestParam("id")) : 0;
String from = getRequestParam("from") != null ? getRequestParam("from") : "";
System.out.println("*********** PASA POR AQUI 1 ***********************");
if(id != null && id > 0){
if(StringUtils.isNotBlank(from) && from.equals("informes")){
System.out.println("*********** PASA POR AQUI 2 ***********************");
return solicitud.cargarSolicitudInforme(id);
}
else{
System.out.println("*********** PASA POR AQUI 4 ***********************");
return solicitud.cargarSolicitud(id);
}
}
else{
System.out.println("*********** PASA POR AQUI 6 ***********************");
return home();
}
}
我将命名空间 xmlns: http://java.sun.com/jsf/core更改为 xmlns: http://xmlns.jcp.org/jsf/core
如果我在 VMware vFabric tc Server v2.5 上运行此应用程序,该应用程序运行正常,但如果我在 Weblogic 服务器上运行它,日志不会显示错误跟踪,但该方法永远不会执行。
我究竟做错了什么?
谢谢。