-
1. fileUpload + Websphere 7 in firefox 3.6 don't work
mp911de Feb 25, 2011 1:51 AM (in response to jcknight77)Hi Juan Carlos,
could you post some Output from WebShpere's log and some Code, how you implemented the File-Upload?
Thanks,
Mark
-
2. fileUpload + Websphere 7 in firefox 3.6 don't work
ilya_shaikovsky Feb 25, 2011 3:36 AM (in response to jcknight77)besides things Mark requested please post application descriptor settings also.
-
3. fileUpload + Websphere 7 in firefox 3.6 don't work
jcknight77 Feb 25, 2011 9:00 AM (in response to ilya_shaikovsky)Hi, this is my web.xml
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" version="2.5">
<display-name>superciasWeb</display-name>
<!-- Ruta necesaria para Spring del contexto -->
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value> /WEB-INF/classes/applicationContext.xml </param-value>
</context-param>
<context-param>
<param-name>javax.faces.STATE_SAVING_METHOD</param-name>
<param-value>server</param-value>
</context-param>
<filter>
<display-name>RichFaces Filter</display-name>
<filter-name>richfaces</filter-name>
<filter-class>org.ajax4jsf.Filter</filter-class>
<init-param>
<param-name>createTempFiles</param-name>
<param-value>false</param-value>
</init-param>
<init-param>
<param-name>maxRequestSize</param-name>
<param-value>10000000</param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>richfaces</filter-name>
<servlet-name>Faces Servlet</servlet-name>
<dispatcher>REQUEST</dispatcher>
<dispatcher>FORWARD</dispatcher>
<dispatcher>INCLUDE</dispatcher>
</filter-mapping>
<context-param>
<param-name>org.richfaces.SKIN</param-name>
<param-value>blueSky</param-value>
</context-param>
<context-param>
<param-name>org.richfaces.CONTROL_SKINNING</param-name>
<param-value>enable</param-value>
</context-param>
<!-- Necesario para trabajar con facelet -->
<context-param>
<param-name>javax.faces.DISABLE_FACELET_JSF_VIEWHANDLER</param-name>
<param-value>true</param-value>
</context-param>
<context-param>
<param-name>org.ajax4jsf.VIEW_HANDLERS</param-name>
<param-value>com.sun.facelets.FaceletViewHandler</param-value>
</context-param>
<context-param>
<param-name>javax.faces.DEFAULT_SUFFIX</param-name>
<param-value>.xhtml</param-value>
</context-param>
<!-- Listenet para Spring -->
<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>
<listener>
<listener-class>org.springframework.web.context.request.RequestContextListener</listener-class>
</listener>
<servlet>
<servlet-name>Faces Servlet</servlet-name>
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet>
<servlet-name>Firma</servlet-name>
<servlet-class>ec.gov.supercias.recepbalances.aplicativo.AppletServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>Firma</servlet-name>
<url-pattern>/Firma</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>*.jsf</url-pattern>
</servlet-mapping>
<filter>
<filter-name>seguridad-filtro</filter-name>
<filter-class>ec.gov.supercias.recepbalances.aplicativo.SeguridadFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>seguridad-filtro</filter-name>
<url-pattern>*.jsf</url-pattern>
<dispatcher>REQUEST</dispatcher>
<dispatcher>FORWARD</dispatcher>
</filter-mapping>
<session-config>
<session-timeout>30</session-timeout>
</session-config>
<welcome-file-list>
<welcome-file>index.html</welcome-file>
<welcome-file>index.htm</welcome-file>
<welcome-file>index.jsp</welcome-file>
<welcome-file>index.xhtml</welcome-file>
<welcome-file>index.jsf</welcome-file>
<welcome-file>default.html</welcome-file>
<welcome-file>default.htm</welcome-file>
<welcome-file>default.jsp</welcome-file>
</welcome-file-list>
</web-app>
-
4. fileUpload + Websphere 7 in firefox 3.6 don't work
jcknight77 Feb 25, 2011 2:42 PM (in response to jcknight77) -
5. fileUpload + Websphere 7 in firefox 3.6 don't work
ilya_shaikovsky Feb 28, 2011 6:26 AM (in response to jcknight77)RichFaces filter should be first in chain. But in your case seguridad-filtro will be first as according to servlet specification filters mapped using URL mapping will be befor ones which mapped by servlet name no matter in which order them defined.
-
6. fileUpload + Websphere 7 in firefox 3.6 don't work
jcknight77 Feb 28, 2011 7:35 AM (in response to ilya_shaikovsky)Hi Ilya,
can you show me with a example, how fix this, how i get richfaces filter first in chain?. My knowlegment is not very good about this.
Thank's
-
7. fileUpload + Websphere 7 in firefox 3.6 don't work
ilya_shaikovsky Feb 28, 2011 7:52 AM (in response to jcknight77)change mapping for RF to
<filter-name>richfaces</filter-name>
<url-pattern>*.jsf</url-pattern>
and remove dispatchers. It should be defined as now before all the other filters.
-
8. fileUpload + Websphere 7 in firefox 3.6 don't work
jcknight77 Feb 28, 2011 8:41 AM (in response to ilya_shaikovsky)Hi,
is this ok?
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" version="2.5">
<display-name>superciasWeb</display-name>
<!-- Ruta necesaria para Spring del contexto -->
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value> /WEB-INF/classes/applicationContext.xml </param-value>
</context-param>
<context-param>
<param-name>javax.faces.STATE_SAVING_METHOD</param-name>
<param-value>server</param-value>
</context-param>
<filter>
<display-name>RichFaces Filter</display-name>
<filter-name>richfaces</filter-name>
<filter-class>org.ajax4jsf.Filter</filter-class>
<init-param>
<param-name>createTempFiles</param-name>
<param-value>false</param-value>
</init-param>
<init-param>
<param-name>maxRequestSize</param-name>
<param-value>10000000</param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>richfaces</filter-name>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>*.jsf</url-pattern>
</filter-mapping>
<context-param>
<param-name>org.richfaces.SKIN</param-name>
<param-value>blueSky</param-value>
</context-param>
<context-param>
<param-name>org.richfaces.CONTROL_SKINNING</param-name>
<param-value>enable</param-value>
</context-param>
<!-- Necesario para trabajar con facelet -->
<context-param>
<param-name>javax.faces.DISABLE_FACELET_JSF_VIEWHANDLER</param-name>
<param-value>true</param-value>
</context-param>
<context-param>
<param-name>org.ajax4jsf.VIEW_HANDLERS</param-name>
<param-value>com.sun.facelets.FaceletViewHandler</param-value>
</context-param>
<context-param>
<param-name>javax.faces.DEFAULT_SUFFIX</param-name>
<param-value>.xhtml</param-value>
</context-param>
<!-- Listenet para Spring -->
<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>
<listener>
<listener-class>org.springframework.web.context.request.RequestContextListener</listener-class>
</listener>
<servlet>
<servlet-name>Faces Servlet</servlet-name>
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet>
<servlet-name>Firma</servlet-name>
<servlet-class>ec.gov.supercias.recepbalances.aplicativo.AppletServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>Firma</servlet-name>
<url-pattern>/Firma</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>*.jsf</url-pattern>
</servlet-mapping>
<filter>
<filter-name>seguridad-filtro</filter-name>
<filter-class>ec.gov.supercias.recepbalances.aplicativo.SeguridadFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>seguridad-filtro</filter-name>
<url-pattern>*.jsf</url-pattern>
<dispatcher>REQUEST</dispatcher>
<dispatcher>FORWARD</dispatcher>
</filter-mapping>
<session-config>
<session-timeout>30</session-timeout>
</session-config>
<welcome-file-list>
<welcome-file>index.html</welcome-file>
<welcome-file>index.htm</welcome-file>
<welcome-file>index.jsp</welcome-file>
<welcome-file>index.xhtml</welcome-file>
<welcome-file>index.jsf</welcome-file>
<welcome-file>default.html</welcome-file>
<welcome-file>default.htm</welcome-file>
<welcome-file>default.jsp</welcome-file>
</welcome-file-list>
</web-app>
-
9. fileUpload + Websphere 7 in firefox 3.6 don't work
jcknight77 Feb 28, 2011 10:05 AM (in response to ilya_shaikovsky)Hi, the error "Transfer error" has been fixed with the indications, but not rerender the a4j:mediaOutput. Any suggestion?. i'm not understand what happen.
This is my file adjuntos.xhtml
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:c="http://java.sun.com/jstl/core"
xmlns:a4j="http://richfaces.org/a4j"
xmlns:rich="http://richfaces.org/rich">
<ui:composition template="/common/common.xhtml">
<ui:define name="pageTitle"></ui:define>
<ui:define name="pageHeader">
</ui:define>
<ui:define name="body">
<h:form onsubmit="javascript:Richfaces.showModalPanel('waitModalPanelP');" id="formulario">
<table cellspacing="0" width="100%" >
<tr>
<td align="center" class="tablaBorde">
<h:outputLabel value="#{msgRecurso.lblEncabezadoFormularios}" styleClass="letraTitulo"/><br/>
<h:outputText value="#{msgRecurso.lblInformedeAdministrador}" styleClass="letraTitulo" rendered="#{adjuntosFormBean.encabezado.idTipoDocumento==4}"/>
<h:outputText value="#{msgRecurso.lblInformedeComisario}" styleClass="letraTitulo" rendered="#{adjuntosFormBean.encabezado.idTipoDocumento==5}"/>
<h:outputText value="#{msgRecurso.lblInfomedeAuditoriaExterna}" styleClass="letraTitulo" rendered="#{adjuntosFormBean.encabezado.idTipoDocumento==6}"/>
</td>
<td width="35%" class="tablaBorde" align="center">
<table border="0">
<tr >
<td ><h:outputLabel value="#{msgRecurso.lblSrbEstadoFinancieroEnc_agno }" styleClass="letraTitulo"/> </td>
<td >
<h:outputLabel value="#{adjuntosFormBean.encabezado.anno }" styleClass="letraTitulo"/>
<h:inputHidden id="txtAno" value="#{adjuntosFormBean.encabezado.anno}" />
</td>
<td width="6"></td>
</tr>
</table>
</td>
</tr>
</table>
<rich:panel>
<f:facet name="header">
<h:outputText value="#{msgRecurso.lblSrbNominaCabecera_panelA_titulo_identificacion}" />
</f:facet>
<table align="center" cellspacing="1" width="98%">
<tr >
<td align="left">
<table cellpadding="2" cellspacing="0" >
<tr >
<td class="tablaBorde" width="95"><h:outputLabel value="#{msgRecurso.lblSrbEstadoFinancieroEnc_ruc}" styleClass="letraEncabezado"/> </td>
<td class="tablaBorde" ><h:inputText id="txtRuc" value="#{adjuntosFormBean.encabezado.ruc}" readonly="true" size="50" /> </td>
</tr>
</table>
</td>
<td width="50%" align="right" >
<table cellpadding="2" cellspacing="0">
<tr>
<td class="tablaBorde" width="95" align="left"><h:outputLabel value="#{msgRecurso.lblSrbEstadoFinancieroEnc_expediente}" styleClass="letraEncabezado"/> </td>
<td class="tablaBorde"><h:inputText id="txtExpediente" value="#{adjuntosFormBean.encabezado.idExpediente}" readonly="true" size="50"/> </td>
</tr>
</table>
</td>
</tr>
<tr>
<td align="left" colspan="2">
<table cellpadding="2" cellspacing="0" width="100%">
<tr >
<td class="tablaBorde" width="95"><h:outputLabel value="#{msgRecurso.lblSrbEstadoFinancieroEnc_razonSocial}" styleClass="letraEncabezado" /> </td>
<td class="tablaBorde" > <h:inputText id="txtRazonSocial" value="#{adjuntosFormBean.encabezado.razonSocial}" readonly="true" style="width: 100%"/></td>
</tr>
</table>
</td>
</tr>
</table>
</rich:panel>
<div id="zonamensaje" align="center" class="errorMessages" />
<rich:messages errorClass="errorMessages" infoClass="infoMessages" showDetail="true">
<f:facet name="errorMarker">
<h:graphicImage url="../common/imagenes/mtto/errorValidacion.png"/>
</f:facet>
<f:facet name="infoMarker">
<h:graphicImage url="../common/imagenes/mtto/warning.png"/>
</f:facet>
</rich:messages>
<h:outputLabel value="#{msgRecurso.lblSrbEstadoFinancieroFirmaRegistrada}" rendered="#{adjuntosFormBean.logicaMensajeFirmado}" style="background: url( '../common/imagenes/mtto/warning.png' ) no-repeat;padding-left:15px; " styleClass="infoMessages"/>
<rich:modalPanel id="pnl" left="auto" overlapEmbedObjects="true" resizeable="false" label="hola" keepVisualState="true" >
<f:facet name="header">
<h:outputText value="#{msgRecurso.lblAdjuntosEncabezadoModalRechazo}"/>
</f:facet>
<f:facet name="controls">
<h:panelGroup>
<h:graphicImage value="../common/imagenes/mtto/close.png" styleClass="hidelink" id="hidelink" alt="cerrar"/>
<rich:componentControl for="pnl" attachTo="hidelink" operation="hide" event="onclick"/>
</h:panelGroup>
</f:facet>
<table cellpadding="4" cellspacing="4" align="center">
<tr>
<td >
<h:outputText value="#{msgRecurso.lblAdjuntosModalCausalRechazo}" />
</td>
</tr>
<tr>
<td>
<h:inputTextarea value="#{adjuntosFormBean.encabezado.novedades}" style="width: 100%; background-color: AliceBlue" rows="5" />
</td>
</tr>
<tr align="center">
<td>
<h:commandButton onclick="Richfaces.hideModalPanel('pnl');" value="#{msgRecurso.botonAceptar}" action="#{adjuntosFormBean.enviarRechazar}"/>
</td>
</tr>
</table>
</rich:modalPanel>
<h:panelGrid columns="1" columnClasses="top,top" width="100%">
<rich:fileUpload fileUploadListener="#{adjuntosFormBean.listener}" maxFilesQuantity="#{adjuntosFormBean.maximo}"
id="upload"
immediateUpload="#{adjuntosFormBean.autoUpload}"
acceptedTypes="pdf, xml" allowFlash="true"
doneLabel="${msgRecurso.lblarchivo_adjuntado}"
clearControlLabel="${msgRecurso.lblarchivo_borrar_item}"
clearAllControlLabel="${msgRecurso.lblarchivo_borrar_todo}"
addControlLabel="${msgRecurso.lblarchivo_adjuntar}"
progressLabel="${msgRecurso.lblarchivo_adjuntando}"
stopControlLabel="${msgRecurso.lblarchivo_detener}"
cancelEntryControlLabel="${msgRecurso.lblarchivo_cancelar_item}"
transferErrorLabel="${msgRecurso.lblarchivo_error_transferencia}"
sizeErrorLabel="${msgRecurso.lblarchivo_error_tamanno}"
listHeight="70"
rendered="#{adjuntosFormBean.logicaUpload}"
>
<a4j:support event="onuploadcomplete" reRender="info" />
</rich:fileUpload>
<h:panelGroup id="info">
<rich:panel bodyClass="info">
<f:facet name="header">
<h:outputText value="${msgRecurso.lblarchivo_info}" />
</f:facet>
<h:outputText value="${msgRecurso.lblarchivo_no}" rendered="#{adjuntosFormBean.size==0 }" />
<rich:dataGrid columns="1" value="#{adjuntosFormBean.files}" var="file" rowKeyVar="row" width="100%">
<rich:panel bodyClass="rich-laguna-panel-no-header">
<h:panelGrid columns="2" width="100%">
<a4j:mediaOutput element="object" mimeType="application/pdf" standby="{msgRecurso.lblarchivo_cargando}"
createContent="#{adjuntosFormBean.save}" value="#{row}"
rendered="#{!adjuntosFormBean.logicaMensajeFirmado}"
style="width:100%; height:400px;zindex='-50000'" cacheable="false" type="application/pdf" >
<f:param value="#{adjuntosFormBean.timeStamp}" name="time"/>
<f:param name="wmode" value="opaque" />
<f:param value="transparent" name="wmode"/>
</a4j:mediaOutput><br/>
<h:panelGrid columns="2" rendered="#{!adjuntosFormBean.logicaMensajeFirmado}">
<h:outputText value="${msgRecurso.lblarchivo_nombre}" />
<h:outputText value="#{file.nombre}" />
</h:panelGrid>
</h:panelGrid>
</rich:panel>
</rich:dataGrid>
</rich:panel>
<rich:spacer height="3"/>
<br />
<a4j:commandButton action="#{adjuntosFormBean.clear}" reRender="info, upload" value="${msgRecurso.lblarchivo_borrar}" rendered="#{adjuntosFormBean.size > 0 and adjuntosFormBean.logicaGuardar}" />
</h:panelGroup>
</h:panelGrid>
<br/>
<h:panelGrid columns="2" rendered="#{adjuntosFormBean.logicaFirmar}">
<h:outputText value="#{msgRecurso.lblClaveApplet}" styleClass="letraTitulo"/>
<h:inputSecret id="claveFirma"/>
</h:panelGrid>
<br/>
<table width="30%" >
<tr align="center">
<td><h:commandButton id="cmdAceptar" value="#{msgRecurso.botonGuardar}" rendered="#{adjuntosFormBean.logicaGuardar }" action="#{adjuntosFormBean.enviarGuardar}" /> </td>
<td><h:commandButton id="cmdFirmar" value="#{msgRecurso.botonFirmar}" rendered="#{adjuntosFormBean.logicaFirmar}" action="#{adjuntosFormBean.enviarFirmar}" onclick="if(!ejecutarApplet()){return false;}"/></td>
<td><h:commandButton id="cmdRechazar" value="#{msgRecurso.botonRechazar}" rendered="#{adjuntosFormBean.logicaRechazar}" onclick="Richfaces.showModalPanel('pnl');return false;" /></td>
<td><h:commandButton id="cmdAprobar" value="#{msgRecurso.botonAprobar}" rendered="#{adjuntosFormBean.logicaAprobar}" action="#{adjuntosFormBean.enviarAprobar}"/></td>
</tr>
</table>
</h:form>
<script>
<!--
var errores = "";
var plugins = {
hasAcrobat:function() {
if (!window.ActiveXObject) return false;
try { if (new ActiveXObject('AcroPDF.PDF')) return true;}
catch (e) {}
try { if (new ActiveXObject('PDF.PdfCtrl')) return true;}
catch (e) {}
return false;
}
}
if(navigator.appName == "Microsoft Internet Explorer"){
if (!plugins.hasAcrobat()) {
errores = "<img src='../common/imagenes/mtto/errorValidacion.png'/> Necesita tener instalado o actualizado el plug in de Adobe Acrobat "
}
}else{
if(navigator.plugins ['Adobe Acrobat']== undefined){
errores = "<img src='../common/imagenes/mtto/errorValidacion.png'/> Necesita tener instalado o actualizado el plug in de Adobe Acrobat "
document.getElementById('zonamensaje').innerHTML =errores ;
}
}
document.getElementById('zonamensaje').innerHTML =errores ;
-->
</script>
<applet width="0"
height="0"
codebase="."
code = "Token.class"
archive="lib/proyFirma.jar,lib/bcmail-jdk16-141.jar,lib/bcprov-jdk16-141.jar,lib/Firma.jar"
id="appletFirma"
>
</applet>
<script type="text/javascript">
<!--
function ejecutarApplet(){
try{
var clave = document.getElementById("formulario:claveFirma").value
ejecutar = document.getElementById("appletFirma");
ejecutar.leer();
ejecutar.setClave(clave);
var a = ejecutar.firmar();
return a;
}catch(err)
{
return false;
}
}
//-->
</script>
</ui:define>
</ui:composition>
</html>
-
10. Re: fileUpload + Websphere 7 in firefox 3.6 don't work
ilya_shaikovsky Mar 1, 2011 4:15 AM (in response to jcknight77)adjuntosFormBean - which scope it has? at first make sure that rendered property evaluated as true when mediaoutput should be updated.
-
11. fileUpload + Websphere 7 in firefox 3.6 don't work
jcknight77 Mar 1, 2011 8:33 AM (in response to ilya_shaikovsky)Hi, I put the property rendered="true" and tried again, and WAS 7 does nothing more however in Tomcat works perfect. Looking at firebug generates the response AJAX but the response with WAS not shows the renderer of mediaOutput even the DATA, and in Tomcat if.Response AJAX - Websphere Application Server 7
<?xml version="1.0"?>
<html lang="es_CO" xmlns="http://www.w3.org/1999/xhtml"><head><title></title><link class="component"
href="/superciasWeb/a4j/s/3_3_3.Finalorg/richfaces/renderkit/html/css/basic_both.xcss/DATB/eAF7sqpgb-jyGdIAFrMEaw__
.jsf" rel="stylesheet" type="text/css" /><link class="component" href="/superciasWeb/a4j/s/3_3_3.Finalorg
/richfaces/renderkit/html/css/extended_both.xcss/DATB/eAF7sqpgb-jyGdIAFrMEaw__.jsf" media="rich-extended-skinning"
rel="stylesheet" type="text/css" /><script src="/superciasWeb/a4j/g/3_3_3.Finalorg.ajax4jsf.javascript
.AjaxScript.jsf" type="text/javascript">
</script><script src="/superciasWeb/a4j/g/3_3_3.Finalorg.ajax4jsf.javascript.PrototypeScript.jsf" type
="text/javascript">
</script><script src="/superciasWeb/a4j/g/3_3_3.Finalorg/richfaces/renderkit/html/scripts/utils.js.jsf"
type="text/javascript">
</script><script src="/superciasWeb/a4j/g/3_3_3.Finalorg/richfaces/renderkit/html/scripts/browser_info
.js.jsf" type="text/javascript">
</script><script src="/superciasWeb/a4j/g/3_3_3.Finalorg/richfaces/renderkit/html/scripts/modalPanel
.js.jsf" type="text/javascript">
</script><script src="/superciasWeb/a4j/g/3_3_3.Finalorg/richfaces/renderkit/html/scripts/modalPanelBorders
.js.jsf" type="text/javascript">
</script><link class="component" href="/superciasWeb/a4j/s/3_3_3.Finalorg/richfaces/renderkit/html/css
/modalPanel.xcss/DATB/eAF7sqpgb-jyGdIAFrMEaw__.jsf" rel="stylesheet" type="text/css" /><link class="component"
href="/superciasWeb/a4j/s/3_3_3.Finalcss/panel.xcss/DATB/eAF7sqpgb-jyGdIAFrMEaw__.jsf" rel="stylesheet"
type="text/css" /><link class="component" href="/superciasWeb/a4j/g/3_3_3.Finalorg/richfaces/renderkit
/html/css/msg.css.jsf" rel="stylesheet" type="text/css" /><link class="component" href="/superciasWeb
/a4j/g/3_3_3.Finalorg/richfaces/renderkit/html/css/msgs.css.jsf" rel="stylesheet" type="text/css" />
<script src="/superciasWeb/a4j/g/3_3_3.Finalorg/richfaces/renderkit/html/scripts/available.js.jsf" type
="text/javascript">
</script><script src="/superciasWeb/a4j/g/3_3_3.Finalorg/richfaces/renderkit/html/scripts/jquery/jquery
.js.jsf" type="text/javascript">
</script><script src="/superciasWeb/a4j/g/3_3_3.Finalorg/richfaces/renderkit/html/script/controlUtils
.js.jsf" type="text/javascript">
</script><script src="/superciasWeb/a4j/g/3_3_3.Finalorg/richfaces/renderkit/html/scripts/json/json-dom
.js.jsf" type="text/javascript">
</script><script src="/superciasWeb/a4j/g/3_3_3.Finalorg/richfaces/renderkit/html/js/FileUpload.js.jsf"
type="text/javascript">
</script><script src="/superciasWeb/a4j/g/3_3_3.Finalorg/richfaces/renderkit/html/js/swfobject.js.jsf"
type="text/javascript">
</script><script src="/superciasWeb/a4j/g/3_3_3.Finalorg/richfaces/renderkit/html/js/progressBar.js.jsf"
type="text/javascript">
</script><script src="/superciasWeb/a4j/g/3_3_3.Finalorg/ajax4jsf/javascript/scripts/form.js.jsf" type
="text/javascript">
</script><link class="component" href="/superciasWeb/a4j/s/3_3_3.Finalorg/richfaces/renderkit/html/css
/fileUpload.xcss/DATB/eAF7sqpgb-jyGdIAFrMEaw__.jsf" rel="stylesheet" type="text/css" /><link class="component"
href="/superciasWeb/a4j/s/3_3_3.Finalorg/richfaces/renderkit/html/css/progressBar.xcss/DATB/eAF7sqpgb-jyGdIAFrMEaw__
.jsf" rel="stylesheet" type="text/css" /><link class="component" href="/superciasWeb/a4j/s/3_3_3.Finalcss
/table.xcss/DATB/eAF7sqpgb-jyGdIAFrMEaw__.jsf" rel="stylesheet" type="text/css" /><script src="/superciasWeb
/a4j/g/3_3_3.Finalorg/richfaces/renderkit/html/scripts/skinning.js.jsf" type="text/javascript">
</script><script src="/superciasWeb/menu/JSCookMenu.js" type="text/javascript">
</script><script src="/superciasWeb/menu/theme.js" type="text/javascript">
</script><script src="/superciasWeb/js/jquery.js" type="text/javascript">
</script></head><body><dl id="formulario:j_id47" class="rich-messages" style="display: none;"><dt></dt
></dl><span id="formulario:info"><div class="rich-panel" id="formulario:j_id63"><div class="rich-panel-header"
id="formulario:j_id63_header">Información de archivo adjuntado</div><div class="rich-panel-body info"
id="formulario:j_id63_body">No se ha adjuntado archivo<table class="rich-table" id="formulario:j_id66"
border="0" cellpadding="0" cellspacing="0" width="100%"><colgroup span="1"></colgroup><tbody></tbody
></table></div></div><img alt="" class="rich-spacer" height="3" id="formulario:j_id77" src="/superciasWeb
/a4j/g/3_3_3.Finalimages/spacer.gif.jsf" width="1" /><br /></span> <meta name="Ajax-Update-Ids" content
="formulario:j_id47,formulario:info" /><span id="ajax-view-state"><input type="hidden" name="javax.faces
.ViewState" id="javax.faces.ViewState" value="-9173637145918971035:7812521017492771273" autocomplete
="off" /></span><meta id="Ajax-Response" name="Ajax-Response" content="true" /><meta name="Ajax-Update-Ids"
content="formulario:j_id47,formulario:info" /><span id="ajax-view-state"><input type="hidden" name="javax
.faces.ViewState" id="javax.faces.ViewState" value="-9173637145918971035:7812521017492771273" autocomplete
="off" /></span><meta id="Ajax-Response" name="Ajax-Response" content="true" /></body></html>
Response AJAX - Tomcat
<?xml version="1.0"?>
<html lang="es_CO" xmlns="http://www.w3.org/1999/xhtml"><head><title></title><link class="component"
href="/superciasWeb/a4j/s/3_3_3.Finalorg/richfaces/renderkit/html/css/basic_both.xcss/DATB/eAF7sqpgb-jyGdIAFrMEaw__
.jsf" rel="stylesheet" type="text/css" /><link class="component" href="/superciasWeb/a4j/s/3_3_3.Finalorg
/richfaces/renderkit/html/css/extended_both.xcss/DATB/eAF7sqpgb-jyGdIAFrMEaw__.jsf" media="rich-extended-skinning"
rel="stylesheet" type="text/css" /><script src="/superciasWeb/a4j/g/3_3_3.Finalorg.ajax4jsf.javascript
.AjaxScript.jsf" type="text/javascript">
</script><script src="/superciasWeb/a4j/g/3_3_3.Finalorg.ajax4jsf.javascript.PrototypeScript.jsf" type
="text/javascript">
</script><script src="/superciasWeb/a4j/g/3_3_3.Finalorg/richfaces/renderkit/html/scripts/utils.js.jsf"
type="text/javascript">
</script><script src="/superciasWeb/a4j/g/3_3_3.Finalorg/richfaces/renderkit/html/scripts/browser_info
.js.jsf" type="text/javascript">
</script><script src="/superciasWeb/a4j/g/3_3_3.Finalorg/richfaces/renderkit/html/scripts/modalPanel
.js.jsf" type="text/javascript">
</script><script src="/superciasWeb/a4j/g/3_3_3.Finalorg/richfaces/renderkit/html/scripts/modalPanelBorders
.js.jsf" type="text/javascript">
</script><link class="component" href="/superciasWeb/a4j/s/3_3_3.Finalorg/richfaces/renderkit/html/css
/modalPanel.xcss/DATB/eAF7sqpgb-jyGdIAFrMEaw__.jsf" rel="stylesheet" type="text/css" /><link class="component"
href="/superciasWeb/a4j/s/3_3_3.Finalcss/panel.xcss/DATB/eAF7sqpgb-jyGdIAFrMEaw__.jsf" rel="stylesheet"
type="text/css" /><link class="component" href="/superciasWeb/a4j/g/3_3_3.Finalorg/richfaces/renderkit
/html/css/msg.css.jsf" rel="stylesheet" type="text/css" /><link class="component" href="/superciasWeb
/a4j/g/3_3_3.Finalorg/richfaces/renderkit/html/css/msgs.css.jsf" rel="stylesheet" type="text/css" />
<script src="/superciasWeb/a4j/g/3_3_3.Finalorg/richfaces/renderkit/html/scripts/available.js.jsf" type
="text/javascript">
</script><script src="/superciasWeb/a4j/g/3_3_3.Finalorg/richfaces/renderkit/html/scripts/jquery/jquery
.js.jsf" type="text/javascript">
</script><script src="/superciasWeb/a4j/g/3_3_3.Finalorg/richfaces/renderkit/html/script/controlUtils
.js.jsf" type="text/javascript">
</script><script src="/superciasWeb/a4j/g/3_3_3.Finalorg/richfaces/renderkit/html/scripts/json/json-dom
.js.jsf" type="text/javascript">
</script><script src="/superciasWeb/a4j/g/3_3_3.Finalorg/richfaces/renderkit/html/js/FileUpload.js.jsf"
type="text/javascript">
</script><script src="/superciasWeb/a4j/g/3_3_3.Finalorg/richfaces/renderkit/html/js/swfobject.js.jsf"
type="text/javascript">
</script><script src="/superciasWeb/a4j/g/3_3_3.Finalorg/richfaces/renderkit/html/js/progressBar.js.jsf"
type="text/javascript">
</script><script src="/superciasWeb/a4j/g/3_3_3.Finalorg/ajax4jsf/javascript/scripts/form.js.jsf" type
="text/javascript">
</script><link class="component" href="/superciasWeb/a4j/s/3_3_3.Finalorg/richfaces/renderkit/html/css
/fileUpload.xcss/DATB/eAF7sqpgb-jyGdIAFrMEaw__.jsf" rel="stylesheet" type="text/css" /><link class="component"
href="/superciasWeb/a4j/s/3_3_3.Finalorg/richfaces/renderkit/html/css/progressBar.xcss/DATB/eAF7sqpgb-jyGdIAFrMEaw__
.jsf" rel="stylesheet" type="text/css" /><link class="component" href="/superciasWeb/a4j/s/3_3_3.Finalcss
/table.xcss/DATB/eAF7sqpgb-jyGdIAFrMEaw__.jsf" rel="stylesheet" type="text/css" /><script src="/superciasWeb
/a4j/g/3_3_3.Finalorg/richfaces/renderkit/html/scripts/skinning.js.jsf" type="text/javascript">
</script><script src="/superciasWeb/menu/JSCookMenu.js" type="text/javascript">
</script><script src="/superciasWeb/menu/theme.js" type="text/javascript">
</script><script src="/superciasWeb/js/jquery.js" type="text/javascript">
</script></head><body><dl id="formulario:j_id47" class="rich-messages" style="display: none;"><dt></dt
></dl><span id="formulario:info"><div class="rich-panel" id="formulario:j_id63"><div class="rich-panel-header"
id="formulario:j_id63_header">Información de archivo adjuntado</div><div class="rich-panel-body info"
id="formulario:j_id63_body"><table class="rich-table" id="formulario:j_id66" border="0" cellpadding
="0" cellspacing="0" width="100%"><colgroup span="1"></colgroup><tbody><tr class="rich-table-row"><td
id="formulario:j_id66:0" class="rich-table-cell"><div class="rich-panel" id="formulario:j_id66:0:j_id67"
><div class="rich-panel-body rich-laguna-panel-no-header" id="formulario:j_id66:0:j_id67_body"><table
width="100%"><tbody><tr><td><object id="formulario:j_id66:0:j_id69" data="/superciasWeb/a4j/s/3_3_3
.Finalorg.ajax4jsf.resource.UserResource/n/n/-1248334925/DATA/eAF1Us1r1EAUfxss1i!QroiChbKKgsiESi1KLYrfC-muGCuoILxN3mazJJk4M9kGi4IHLVjwot48FBS81Iue
!BcKXvoXiAgi4kWEXp2Zba0tmNsLv!l9vbf4EwakgGNcRAy7WI51ZZsJkrwQAbFpSeL66nB4WsQXUSGYr3ryhwNbPNgVCEJFF3im
KFMKhrwu9tBNMIvcZqtLgZrwYCuVeaw578FDqHgwmPIwbscUrs4DPUwKskOZay9HDEXJ2hiQZAFPc55pbuYrLXSVJyEJH3skbi19
mHz-6tOUA44H24IEpWxgShs9-ErEWaQ9bJf6TWg5FOzru4y565OIMYnvYyuhiTI38ke1JJNFZg0kpCSjhN3AaIpUh4eXylwnkTHPbA8AlZ0ApYADfdMauhn33l2a
!7oy9syxuOpf3DrT68dP!V-3l88YhHFQs8vIMeiQ0d5MWE!zZG7h7Me7b383jbhpbnDmIOw!NItht8gUl5e5SM8TZsykfgBQCKjesaGZWY3u0tbybvnmt-
!Ds1essM7jKNhr!LGYs2ah8kJpIGGqYLf9bd!215rn5cw1aLimDb0dDHQj7po8KzsqTUbOjY6PHx89cXpkw5FM1v7ns9ZfwJ51rbo-q4jE0JeFNyuP5k45UKlD
!1x05f94ahRpi8STxZfDO158nl-LA38ArTP9qA__.jsf?time=1298985416015&wmode=opaque&wmode=transparent"
style="width:100%; height:400px;zindex='-50000'" type="application/pdf"></object></td><td><br /></td
></tr><tr><td><table><tbody><tr><td>Nombre de archivo</td><td>agenda misiones.pdf</td></tr></tbody><
/table></td></tr></tbody></table></div></div></td></tr></tbody></table></div></div><img alt="" class
="rich-spacer" height="3" id="formulario:j_id77" src="/superciasWeb/a4j/g/3_3_3.Finalimages/spacer.gif
.jsf" width="1" /><br /> <input id="formulario:j_id79" name="formulario:j_id79" onclick="A4J.AJAX.Submit
('formulario',event,{'similarityGroupingId':'formulario:j_id79','parameters':{'formulario:j_id79':'formulario
:j_id79'} } );return false;" value="Borrar adjuntos" type="button" /></span><meta name="Ajax-Update-Ids"
content="formulario:j_id47,formulario:info" /><span id="ajax-view-state"><input type="hidden" name="javax
.faces.ViewState" id="javax.faces.ViewState" value="-8089352150733240433:-4749726663496862737" autocomplete
="off" /></span><meta id="Ajax-Response" name="Ajax-Response" content="true" /><meta name="Ajax-Update-Ids"
content="formulario:j_id47,formulario:info" /><span id="ajax-view-state"><input type="hidden" name="javax
.faces.ViewState" id="javax.faces.ViewState" value="-8089352150733240433:-4749726663496862737" autocomplete
="off" /></span><meta id="Ajax-Response" name="Ajax-Response" content="true" /></body></html>
-
12. fileUpload + Websphere 7 in firefox 3.6 don't work
jcknight77 Mar 1, 2011 8:40 AM (in response to ilya_shaikovsky)The first time i attempted upload a file with WAS 7 i left the following in the log. After i attemmpted upload a file again and nothing happen and show message "Archivo adjuntado" but not rerender the mediaOutput.
[28/02/11 17:37:47:316 COT] FFDC Exception:javax.servlet.ServletException SourceId:com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter ProbeId:82 Reporter:com.ibm.ws.webcontainer.filter.WebAppFilterChain@285b285b
javax.servlet.ServletException: com.ibm.wsspi.webcontainer.ClosedConnectionException: OutputStream encountered error during write
at com.ibm.ws.webcontainer.servlet.FileServletWrapper.service(FileServletWrapper.java:766)
at com.ibm.ws.webcontainer.servlet.FileServletWrapper.service(FileServletWrapper.java:1118)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:104)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java:77)
at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:908)
at com.ibm.ws.webcontainer.filter.WebAppFilterManager.invokeFilters(WebAppFilterManager.java:997)
at com.ibm.ws.webcontainer.servlet.FileServletWrapper.handleRequest(FileServletWrapper.java:530)
at com.ibm.ws.webcontainer.servlet.StaticFileServletWrapperImpl.handleRequest(StaticFileServletWrapperImpl.java:135)
at com.ibm.ws.webcontainer.extension.DefaultExtensionProcessor.handleRequest(DefaultExtensionProcessor.java:853)
at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3826)
at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:276)
at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:931)
at com.ibm.ws.webcontainer.WSWebContainer.handleRequest(WSWebContainer.java:1583)
at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:186)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:445)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewRequest(HttpInboundLink.java:504)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.processRequest(HttpInboundLink.java:301)
at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:83)
at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)
at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)
at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:138)
at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:204)
at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:775)
at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:905)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1563)
Caused by: com.ibm.wsspi.webcontainer.ClosedConnectionException: OutputStream encountered error during write
at com.ibm.ws.webcontainer.channel.WCCByteBufferOutputStream.write(WCCByteBufferOutputStream.java:106)
at com.ibm.ws.webcontainer.srt.SRTOutputStream.write(SRTOutputStream.java:97)
at com.ibm.wsspi.webcontainer.util.BufferedServletOutputStream.writeOut(BufferedServletOutputStream.java:569)
at com.ibm.wsspi.webcontainer.util.BufferedServletOutputStream.write(BufferedServletOutputStream.java:374)
at com.ibm.ws.webcontainer.servlet.FileServletWrapper.writeByBytes(FileServletWrapper.java:991)
at com.ibm.ws.webcontainer.servlet.FileServletWrapper.writeResponseToClient(FileServletWrapper.java:948)
at com.ibm.ws.webcontainer.servlet.FileServletWrapper.service(FileServletWrapper.java:738)
... 25 more
Caused by: java.io.IOException: Async IO operation failed (1), reason: RC: 10053 Se ha anulado una conexión establecida por el software en su equipo host..
at com.ibm.io.async.AsyncLibrary$IOExceptionCache.<init>(AsyncLibrary.java:891)
at com.ibm.io.async.AsyncLibrary$IOExceptionCache.get(AsyncLibrary.java:904)
at com.ibm.io.async.AsyncLibrary.getIOException(AsyncLibrary.java:918)
at com.ibm.io.async.AbstractAsyncChannel.multiIO(AbstractAsyncChannel.java:473)
at com.ibm.io.async.AsyncSocketChannelHelper.write(AsyncSocketChannelHelper.java:478)
at com.ibm.io.async.AsyncSocketChannelHelper.write(AsyncSocketChannelHelper.java:396)
at com.ibm.ws.tcp.channel.impl.AioSocketIOChannel.writeAIO(AioSocketIOChannel.java:282)
at com.ibm.ws.tcp.channel.impl.AioTCPWriteRequestContextImpl.processAsyncWriteRequest(AioTCPWriteRequestContextImpl.java:53)
at com.ibm.ws.tcp.channel.impl.TCPWriteRequestContextImpl.writeInternal(TCPWriteRequestContextImpl.java:382)
at com.ibm.ws.tcp.channel.impl.TCPWriteRequestContextImpl.write(TCPWriteRequestContextImpl.java:353)
at com.ibm.ws.http.channel.impl.HttpServiceContextImpl.asynchWrite(HttpServiceContextImpl.java:2411)
at com.ibm.ws.http.channel.impl.HttpServiceContextImpl.sendOutgoing(HttpServiceContextImpl.java:2198)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundServiceContextImpl.sendResponseBody(HttpInboundServiceContextImpl.java:865)
at com.ibm.ws.webcontainer.channel.WCChannelLink.writeBufferAsynch(WCChannelLink.java:516)
at com.ibm.ws.webcontainer.channel.WCChannelLink.writeBufferResponse(WCChannelLink.java:493)
at com.ibm.ws.webcontainer.channel.WCChannelLink.writeBuffer(WCChannelLink.java:437)
at com.ibm.ws.webcontainer.channel.WCCByteBufferOutputStream.flushWriteBuffer(WCCByteBufferOutputStream.java:406)
at com.ibm.ws.webcontainer.channel.WCCByteBufferOutputStream.checkWriteArray(WCCByteBufferOutputStream.java:378)
at com.ibm.ws.webcontainer.channel.WCCByteBufferOutputStream.write(WCCByteBufferOutputStream.java:111)
... 31 more
Reporter BEGIN:com.ibm.ws.webcontainer.filter.WebAppFilterChain@285b285b
com.ibm.ws.webcontainer.filter.WebAppFilterChain::_filters BEGIN:java.util.ArrayList@28602860
{
}
END:java.util.ArrayList@28602860
com.ibm.ws.webcontainer.filter.WebAppFilterChain::_currentFilterIndex:-1
com.ibm.ws.webcontainer.filter.WebAppFilterChain::_numberOfFilters:0
com.ibm.ws.webcontainer.filter.WebAppFilterChain::requestedServlet BEGIN:com.ibm.ws.webcontainer.servlet.StaticFileServletWrapperImpl@26b826b8
com.ibm.ws.webcontainer.servlet.FileServletWrapper::logger:com.ibm.wsspi.webcontainer.logging.WebContainerLogger@75257525
com.ibm.ws.webcontainer.servlet.FileServletWrapper::CLASS_NAME:com.ibm.ws.webcontainer.servlet.FileServletWrapper
com.ibm.ws.webcontainer.servlet.FileServletWrapper::nls BEGIN:com.ibm.ejs.sm.client.ui.NLS@9b509b5
com.ibm.ejs.sm.client.ui.NLS::tc:com.ibm.ejs.ras.TraceComponent@3bfe3bfe depth limit reached
com.ibm.ejs.sm.client.ui.NLS::messages:null
com.ibm.ejs.sm.client.ui.NLS::baseClassPackage:com.ibm.ejs.resources
com.ibm.ejs.sm.client.ui.NLS::bundleName:com.ibm.ws.webcontainer.resources.Messages
com.ibm.ejs.sm.client.ui.NLS::bundle:com.ibm.ws.webcontainer.resources.Messages_es@21762176 depth limit reached
END:com.ibm.ejs.sm.client.ui.NLS@9b509b5
com.ibm.ws.webcontainer.servlet.FileServletWrapper::notifyInvocationListeners:false
com.ibm.ws.webcontainer.servlet.FileServletWrapper::listeners:null
com.ibm.ws.webcontainer.servlet.FileServletWrapper::lasAccessedTime:-1
com.ibm.ws.webcontainer.servlet.FileServletWrapper::context BEGIN:com.ibm.ws.webcontainer.webapp.WebAppImpl@6c406c40
com.ibm.ws.container.AbstractContainer::name:superciasWeb_war#superciasWeb.war
com.ibm.ws.container.AbstractContainer::isAlive:true
com.ibm.ws.container.AbstractContainer::subElements:null
com.ibm.ws.container.AbstractContainer::attributes:java.util.Collections$SynchronizedMap@6da66da6 depth limit reached
com.ibm.ws.container.AbstractContainer::config:null
com.ibm.ws.webcontainer.core.BaseContainer::commands:java.util.ArrayList@6c736c73 depth limit reached
com.ibm.ws.webcontainer.core.BaseContainer::requestMapper:com.ibm.wsspi.webcontainer.util.URIMapper@6d3f6d3f depth limit reached
com.ibm.ws.webcontainer.core.BaseContainer::parent:com.ibm.ws.webcontainer.webapp.WebGroupImpl@26c026c0 depth limit reached
com.ibm.ws.webcontainer.webapp.WebApp::loginProcessor:null
com.ibm.ws.webcontainer.webapp.WebApp::logoutProcessor:null
com.ibm.ws.webcontainer.webapp.WebApp::collabHelper:com.ibm.ws.webcontainer.collaborator.CollaboratorHelperImpl@689c689c depth limit reached
com.ibm.ws.webcontainer.webapp.WebApp::envObject:com.ibm.ws.util.WSThreadLocal@64d564d5 depth limit reached
com.ibm.ws.webcontainer.webapp.WebApp::perm:com.ibm.websphere.security.WebSphereRuntimePermission@64d864d8 depth limit reached
com.ibm.ws.webcontainer.webapp.WebApp::WELCOME_FILE_LIST:com.ibm.ws.webcontainer.config.WelcomeFileList
com.ibm.ws.webcontainer.webapp.WebApp::JAVAX_SERVLET_ERROR_STATUS_CODE:javax.servlet.error.status_code
com.ibm.ws.webcontainer.webapp.WebApp::DIR_BROWSING_MAPPING:__dirBrowsing__1298932028191
com.ibm.ws.webcontainer.webapp.WebApp::FILTER_PROXY_MAPPING:/__filterProxy__1298932028191
com.ibm.ws.webcontainer.webapp.WebApp::logger:com.ibm.wsspi.webcontainer.logging.WebContainerLogger@15e315e3
com.ibm.ws.webcontainer.webapp.WebApp::CLASS_NAME:com.ibm.ws.webcontainer.webapp.WebApp
com.ibm.ws.webcontainer.webapp.WebApp::loader:com.ibm.ws.classloader.CompoundClassLoader@17a417a4 depth limit reached
com.ibm.ws.webcontainer.webapp.WebApp::facade:com.ibm.wsspi.webcontainer.facade.ServletContextFacade@43924392 depth limit reached
com.ibm.ws.webcontainer.webapp.WebApp::features:java.util.ArrayList@6c7b6c7b depth limit reached
com.ibm.ws.webcontainer.webapp.WebApp::applicationName:superciasWeb_war
com.ibm.ws.webcontainer.webapp.WebApp::config:com.ibm.ws.webcontainer.webapp.WebAppConfigurationImpl@77d477d4 depth limit reached
com.ibm.ws.webcontainer.webapp.WebApp::webExtensionProcessor:com.ibm.ws.webcontainer.extension.WebExtensionProcessorImpl@68c368c3 depth limit reached
com.ibm.ws.webcontainer.webapp.WebApp::production:false
com.ibm.ws.webcontainer.webapp.WebApp::isServlet23:true
com.ibm.ws.webcontainer.webapp.WebApp::contextPath:/superciasWeb
com.ibm.ws.webcontainer.webapp.WebApp::internalServletList:[[Ljava.lang.String;@6c866c86 depth limit reached
com.ibm.ws.webcontainer.webapp.WebApp::BY_NAME_ONLY:/_1298932548769_/
com.ibm.ws.webcontainer.webapp.WebApp::filterManager:com.ibm.ws.webcontainer.filter.WebAppFilterManagerImpl@45094509 depth limit reached
com.ibm.ws.webcontainer.webapp.WebApp::documentRoot:C:\Archivos de programa\IBM\WebSphere\AppServer\profiles\AppSrv01\installedApps\mayasoft-16Node01Cell\superciasWeb_war.ear\superciasWeb.war
com.ibm.ws.webcontainer.webapp.WebApp::SERVLET_API_VERSION:Servlet 2.5
com.ibm.ws.webcontainer.webapp.WebApp::disableServletAuditLogging:0
com.ibm.ws.webcontainer.webapp.WebApp::serverInfo:IBM WebSphere Application Server/7.0
com.ibm.ws.webcontainer.webapp.WebApp::sessionCtx:com.ibm.ws.session.WsSessionContext@610a610a depth limit reached
com.ibm.ws.webcontainer.webapp.WebApp::eventSource:com.ibm.ws.webcontainer.webapp.WebAppEventSource@6cbc6cbc depth limit reached
com.ibm.ws.webcontainer.webapp.WebApp::nls:com.ibm.ejs.sm.client.ui.NLS@70d870d8 depth limit reached
com.ibm.ws.webcontainer.webapp.WebApp::error_nls:com.ibm.ejs.sm.client.ui.NLS@70db70db depth limit reached
com.ibm.ws.webcontainer.webapp.WebApp::sessionListeners:java.util.ArrayList@6ccf6ccf depth limit reached
com.ibm.ws.webcontainer.webapp.WebApp::sessionAttrListeners:java.util.ArrayList@6cda6cda depth limit reached
com.ibm.ws.webcontainer.webapp.WebApp::addedSessionListeners:java.util.ArrayList@6ce56ce5 depth limit reached
com.ibm.ws.webcontainer.webapp.WebApp::addedSessionAttrListeners:java.util.ArrayList@6cf06cf0 depth limit reached
com.ibm.ws.webcontainer.webapp.WebApp::servletContextListeners:java.util.ArrayList@6cfb6cfb depth limit reached
com.ibm.ws.webcontainer.webapp.WebApp::servletContextLAttrListeners:java.util.ArrayList@6d066d06 depth limit reached
com.ibm.ws.webcontainer.webapp.WebApp::servletRequestListeners:java.util.ArrayList@6d116d11 depth limit reached
com.ibm.ws.webcontainer.webapp.WebApp::servletRequestLAttrListeners:java.util.ArrayList@6d1c6d1c depth limit reached
com.ibm.ws.webcontainer.webapp.WebApp::prependSlashToResource:false
com.ibm.ws.webcontainer.webapp.WebApp::destroyed:false
com.ibm.ws.webcontainer.webapp.WebApp::webAppNameSpaceCollab:com.ibm.ws.webcontainer.collaborator.WebAppNameSpaceCollaboratorImpl@68a168a1 depth limit reached
com.ibm.ws.webcontainer.webapp.WebApp::txCollab:com.ibm.ws.webcontainer.collaborator.WebAppTransactionCollaboratorImpl@68a368a3 depth limit reached
com.ibm.ws.webcontainer.webapp.WebApp::sessionActivationListeners:java.util.ArrayList@6d296d29 depth limit reached
com.ibm.ws.webcontainer.webapp.WebApp::sessionBindingListeners:java.util.ArrayList@6d346d34 depth limit reached
com.ibm.ws.webcontainer.webapp.WebApp::scratchdir:null
com.ibm.ws.webcontainer.webapp.WebApp::jspClassLoaderLimit:0
com.ibm.ws.webcontainer.webapp.WebApp::jspClassLoaderExclusionList:null
com.ibm.ws.webcontainer.webapp.WebApp::jspClassLoadersMap:null
com.ibm.ws.webcontainer.webapp.WebApp::jspClassLoaderLimitTrackIF:false
com.ibm.ws.webcontainer.webapp.WebApp::versionID:25
com.ibm.ws.webcontainer.webapp.WebApp::defaultExtProc:com.ibm.ws.webcontainer.extension.DefaultExtensionProcessorImpl@41b241b2 depth limit reached
com.ibm.ws.webcontainer.webapp.WebApp::redirectContextRoot:false
com.ibm.ws.webcontainer.webapp.WebApp::errorExceptionTypeFirst:false
com.ibm.ws.webcontainer.webapp.WebAppImpl::j2eeNameFactory:com.ibm.ejs.csi.J2EENameFactoryImpl@5f7e5f7e depth limit reached
com.ibm.ws.webcontainer.webapp.WebAppImpl::userTransaction:com.ibm.ws.tx.jta.UserTransactionImpl@314e314e depth limit reached
com.ibm.ws.webcontainer.webapp.WebAppImpl::logger:com.ibm.wsspi.webcontainer.logging.WebContainerLogger@15e315e3
com.ibm.ws.webcontainer.webapp.WebAppImpl::CLASS_NAME:com.ibm.ws.webcontainer.webapp.WebAppImpl
com.ibm.ws.webcontainer.webapp.WebAppImpl::javaNameSpaceValue:com.ibm.ws.naming.java.javaNameSpaceImpl@1c4e1c4e depth limit reached
com.ibm.ws.webcontainer.webapp.WebAppImpl::initializationCollaborators:[Lcom.ibm.ws.webcontainer.spiadapter.collaborator.IInitializationCollaborator;@20b220b2 depth limit reached
com.ibm.ws.webcontainer.webapp.WebAppImpl::invocationCollaborators:[Lcom.ibm.ws.webcontainer.spiadapter.collaborator.IInvocationCollaborator;@20c320c3 depth limit reached
com.ibm.ws.webcontainer.webapp.WebAppImpl::moduleMetaData:com.ibm.ws.webcontainer.metadata.WebModuleMetaDataImpl@7c577c57 depth limit reached
com.ibm.ws.webcontainer.webapp.WebAppImpl::javaColonCtxt:javax.naming.InitialContext@4ec34ec3 depth limit reached
com.ibm.ws.webcontainer.webapp.WebAppImpl::webAppCollaboratorConfig:com.ibm.ws.webcontainer.webapp.collaborator.WebAppCollaboratorConfigImpl@7a577a57 depth limit reached
com.ibm.ws.webcontainer.webapp.WebAppImpl::deployedModule:null
com.ibm.ws.webcontainer.webapp.WebAppImpl::webAppCmd:com.ibm.ws.webcontainer.metadata.WebComponentMetaDataImpl@688a688a depth limit reached
com.ibm.ws.webcontainer.webapp.WebAppImpl::activatedMBeanName:javax.management.ObjectName@47724772 depth limit reached
com.ibm.ws.webcontainer.webapp.WebAppImpl::annotationHelperManager:com.ibm.ws.webcontainer.annotation.WASAnnotationHelperManager@20f820f8 depth limit reached
com.ibm.ws.webcontainer.webapp.WebAppImpl::annotationHelper:com.ibm.ws.webcontainer.annotation.WASAnnotationHelper@21112111 depth limit reached
END:com.ibm.ws.webcontainer.webapp.WebAppImpl@6c406c40
com.ibm.ws.webcontainer.servlet.FileServletWrapper::parentProcessor:com.ibm.ws.webcontainer.extension.DefaultExtensionProcessorImpl@41b241b2
com.ibm.ws.webcontainer.servlet.FileServletWrapper::collabHelper:com.ibm.ws.webcontainer.collaborator.CollaboratorHelperImpl@689c689c
com.ibm.ws.webcontainer.servlet.FileServletWrapper::webAppNameSpaceCollab:com.ibm.ws.webcontainer.collaborator.WebAppNameSpaceCollaboratorImpl@68a168a1
com.ibm.ws.webcontainer.servlet.FileServletWrapper::secCollab BEGIN:com.ibm.ws.webcontainer.collaborator.WebAppSecurityCollaboratorImpl@68a668a6
com.ibm.ws.webcontainer.collaborator.WebAppSecurityCollaboratorImpl::securityCollaborator:com.ibm.ws.security.web.NullWebSecurityCollaborator@6ec86ec8 depth limit reached
com.ibm.ws.webcontainer.collaborator.WebAppSecurityCollaboratorImpl::lock:java.lang.Object@298b298b
com.ibm.ws.webcontainer.collaborator.WebAppSecurityCollaboratorImpl::logger:com.ibm.wsspi.webcontainer.logging.WebContainerLogger@7e397e39
com.ibm.ws.webcontainer.collaborator.WebAppSecurityCollaboratorImpl::CLASS_NAME:com.ibm.ws.webcontainer.collaborator.WebAppSecurityCollaboratorImpl
com.ibm.ws.webcontainer.collaborator.WebAppSecurityCollaboratorImpl::_webContextRoot:/superciasWeb
com.ibm.ws.webcontainer.collaborator.WebAppSecurityCollaboratorImpl::_vHostName:default_host
com.ibm.ws.webcontainer.collaborator.WebAppSecurityCollaboratorImpl::webAppConfig:com.ibm.ws.webcontainer.webapp.WebAppConfigurationImpl@77d477d4
END:com.ibm.ws.webcontainer.collaborator.WebAppSecurityCollaboratorImpl@68a668a6
com.ibm.ws.webcontainer.servlet.FileServletWrapper::platformHelper BEGIN:com.ibm.ws.webcontainer.PlatformHelperImpl@533d533d
com.ibm.ws.webcontainer.PlatformHelperImpl::transferToOS:true
com.ibm.ws.webcontainer.PlatformHelperImpl::securityHelper:com.ibm.ws.security.util.ServerIdentityHelper@68ae68ae depth limit reached
END:com.ibm.ws.webcontainer.PlatformHelperImpl@533d533d
com.ibm.ws.webcontainer.servlet.FileServletWrapper::nServicing:0
com.ibm.ws.webcontainer.servlet.FileServletWrapper::isZip:false
com.ibm.ws.webcontainer.servlet.FileServletWrapper::optimizeFileServingSize:0
com.ibm.ws.webcontainer.servlet.FileServletWrapper::evtSource:com.ibm.ws.webcontainer.webapp.WebAppEventSource@6cbc6cbc
com.ibm.ws.webcontainer.servlet.FileServletWrapper::event:null
com.ibm.ws.webcontainer.servlet.FileServletWrapper::wrapperInitialized:false
com.ibm.ws.webcontainer.servlet.FileServletWrapper::servletAndFileName BEGIN:java.lang.StringBuffer@26c526c5
java.lang.StringBuffer::serialVersionUID:3388685877147921107
java.lang.StringBuffer::INITIAL_SIZE:16
java.lang.StringBuffer::count:0
java.lang.StringBuffer::value:[C@26c826c8 depth limit reached
java.lang.StringBuffer::shared:false
END:java.lang.StringBuffer@26c526c5
com.ibm.ws.webcontainer.servlet.FileServletWrapper::sessionSecurityIntegrationEnabled:false
com.ibm.ws.webcontainer.servlet.FileServletWrapper::fileWrapperEvents:false
com.ibm.ws.webcontainer.servlet.FileServletWrapper::fileWrapperEventsLessDetail:false
com.ibm.ws.webcontainer.servlet.StaticFileServletWrapper::file BEGIN:com.ibm.ws.webcontainer.extension.DefaultExtensionProcessor$Java2SecurityFile@247b247b
java.io.File::fs:java.io.WinNTFileSystem@6d586d58 depth limit reached
java.io.File::path:C:\Archivos de programa\IBM\WebSphere\AppServer\profiles\AppSrv01\installedApps\mayasoft-16Node01Cell\superciasWeb_war.ear\superciasWeb.war\presentacion\lib\bcprov-jdk16-141.jar
java.io.File::prefixLength:3
java.io.File::separatorChar:\
java.io.File::separator:\
java.io.File::pathSeparatorChar:;
java.io.File::pathSeparator:;
java.io.File::serialVersionUID:301077366599181567
java.io.File::$assertionsDisabled:true
com.ibm.ws.webcontainer.extension.DefaultExtensionProcessor$Java2SecurityFile::serialVersionUID:1
com.ibm.ws.webcontainer.extension.DefaultExtensionProcessor$Java2SecurityFile::this$0:com.ibm.ws.webcontainer.extension.DefaultExtensionProcessorImpl@41b241b2
END:com.ibm.ws.webcontainer.extension.DefaultExtensionProcessor$Java2SecurityFile@247b247b
com.ibm.ws.webcontainer.servlet.StaticFileServletWrapper::raf:null
com.ibm.ws.webcontainer.servlet.StaticFileServletWrapper::contentLength:1680122
com.ibm.ws.webcontainer.servlet.StaticFileServletWrapperImpl::logger:com.ibm.wsspi.webcontainer.logging.WebContainerLogger@75257525
com.ibm.ws.webcontainer.servlet.StaticFileServletWrapperImpl::CLASS_NAME:com.ibm.ws.webcontainer.servlet.StaticFileServletWrapperImpl
com.ibm.ws.webcontainer.servlet.StaticFileServletWrapperImpl::nls BEGIN:com.ibm.ejs.sm.client.ui.NLS@9b809b8
com.ibm.ejs.sm.client.ui.NLS::tc:com.ibm.ejs.ras.TraceComponent@3bfe3bfe
com.ibm.ejs.sm.client.ui.NLS::messages:null
com.ibm.ejs.sm.client.ui.NLS::baseClassPackage:com.ibm.ejs.resources
com.ibm.ejs.sm.client.ui.NLS::bundleName:com.ibm.ws.webcontainer.resources.Messages
com.ibm.ejs.sm.client.ui.NLS::bundle:com.ibm.ws.webcontainer.resources.Messages_es@21762176
END:com.ibm.ejs.sm.client.ui.NLS@9b809b8
com.ibm.ws.webcontainer.servlet.StaticFileServletWrapperImpl::staticFile:com.ibm.ws.webcontainer.extension.DefaultExtensionProcessor$Java2SecurityFile@247b247b
com.ibm.ws.webcontainer.servlet.StaticFileServletWrapperImpl::exposeWebInfOnDispatch:false
END:com.ibm.ws.webcontainer.servlet.StaticFileServletWrapperImpl@26b826b8
com.ibm.ws.webcontainer.filter.WebAppFilterChain::requestProcessor:null
com.ibm.ws.webcontainer.filter.WebAppFilterChain::_filtersDefined:false
com.ibm.ws.webcontainer.filter.WebAppFilterChain::logger:com.ibm.wsspi.webcontainer.logging.WebContainerLogger@75067506
com.ibm.ws.webcontainer.filter.WebAppFilterChain::CLASS_NAME:com.ibm.ws.webcontainer.filter.WebAppFilterChain
com.ibm.ws.webcontainer.filter.WebAppFilterChain::webapp:com.ibm.ws.webcontainer.webapp.WebAppImpl@6c406c40
END:com.ibm.ws.webcontainer.filter.WebAppFilterChain@285b285b
-
13. fileUpload + Websphere 7 in firefox 3.6 don't work
jcknight77 Mar 1, 2011 11:46 AM (in response to ilya_shaikovsky)this is my adjuntosFormBean.java
package ec.gov.supercias.recepbalances.gestor;
import java.io.Serializable;
import javax.faces.application.FacesMessage;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.ManagedProperty;
import javax.faces.bean.RequestScoped;
import ec.gov.supercias.recepbalances.aplicativo.Mensaje;
import ec.gov.supercias.recepbalances.aplicativo.Persistir;
import ec.gov.supercias.recepbalances.aplicativo.UploadArchivos;
import ec.gov.supercias.recepbalances.commons.EEstadoGeneral;
import ec.gov.supercias.recepbalances.commons.Util;
import ec.gov.supercias.recepbalances.commons.dto.UsuarioDto;
import ec.gov.supercias.recepbalances.commons.xml.GestorXML;
import ec.gov.supercias.recepbalances.persistencia.dto.SrbPresentacionDocsDto;
import ec.gov.supercias.recepbalances.persistencia.dto.SrbPresentacionDocsFirmaDto;
import ec.gov.supercias.recepbalances.servicio.SrbFormulariosSrv;
@ManagedBean(name="adjuntosFormBean")
@RequestScoped
public class AdjuntosFormBean extends UploadArchivos implements Serializable {
/**
*
*/
private static final long serialVersionUID = -8766982007350645263L;
private SrbPresentacionDocsDto encabezado = null;
@ManagedProperty(value = "#{srbFormulariosImplSrv}")
private SrbFormulariosSrv servicioFormularios;
private UsuarioDto usuarioDto = null;
private String opcionMenu = null;
public AdjuntosFormBean() {
setUsuarioDto((UsuarioDto) Persistir.getAtributo("usuario"));
if(usuarioDto == null){
usuarioDto = new UsuarioDto();
}
}
public SrbPresentacionDocsDto getEncabezado() {
String anno = (String) Persistir.getPersistente("anno");
String idTipoDocumento = (String) Persistir.getPersistente("tipoDocumento");
String idPresentacion = (String) Persistir.getPersistente("idPresentacion");
try{
if(encabezado == null){
this.encabezado = (SrbPresentacionDocsDto) Persistir.getAtributo("encabezado");
if(this.encabezado == null && anno != null){
// Trae la presentacion de la DB
this.encabezado = servicioFormularios.getPresentacionDocs(Integer.parseInt(anno), idTipoDocumento, Util.vacio(idPresentacion)? null : Integer.parseInt(idPresentacion));
//Subir a la sesión el XML a firmar
if(encabezado != null){
if(encabezado.getXMLFirnado()!= null){
Persistir.setAtributo("xmlFirma",encabezado.getXMLFirnado());
}else if(encabezado.getArchivoXML() != null){
Persistir.setAtributo("xmlFirma",encabezado.getArchivoXML());
}
}
// Si no existe en la DB, baja los datos de la persistencia
if(this.encabezado.getIdPresentacion() == null){
this.encabezado.setAnno(Integer.parseInt(anno));
this.encabezado.setRuc((String) Persistir.getPersistente("ruc"));
this.encabezado.setRazonSocial((String) Persistir.getPersistente("razonSocial"));
this.encabezado.setIdExpediente(((UsuarioDto) Persistir.getAtributo("usuario")).getIdExpediente());
this.encabezado.setEstado((String) Persistir.getPersistente("estado"));
this.encabezado.setIdTipoDocumento(idTipoDocumento);
this.encabezado.setIdPresentacion(idPresentacion);
this.encabezado.setIndRectificatorio("N");
}
this.encabezado.setDocumentoFirmado(this.validarDocumentoFirmado());
}
Persistir.setAtributo("encabezado", this.encabezado);
}
}
catch (Exception e) {
Mensaje.mostrarMensaje("msgErrorTransaccion",e.toString(),FacesMessage.SEVERITY_ERROR);
e.printStackTrace();
}
return encabezado;
}
public SrbFormulariosSrv getServicioFormularios() {
return servicioFormularios;
}
public void setServicioFormularios(SrbFormulariosSrv servicioFormularios) {
this.servicioFormularios = servicioFormularios;
}
public void setEncabezado(SrbPresentacionDocsDto encabezado) {
this.encabezado = encabezado;
}
public void setUsuarioDto(UsuarioDto usuarioDto) {
this.usuarioDto = usuarioDto;
}
public UsuarioDto getUsuarioDto() {
return usuarioDto;
}
public boolean isLogicaValidar() {
try{
if(this.encabezado != null){
if(EEstadoGeneral.getValor(this.encabezado.getEstado()).equals(EEstadoGeneral.INGRESADO)){
return true;
}
}
}
catch (Exception e) {
Mensaje.mostrarMensaje("msgErrorTransaccion",e.toString(),FacesMessage.SEVERITY_ERROR);
e.printStackTrace();
}
return false;
}
public boolean isLogicaGuardar() {
try{
if(this.encabezado != null){
if(EEstadoGeneral.getValor(this.encabezado.getEstado()).equals(EEstadoGeneral.INGRESADO) || EEstadoGeneral.getValor(this.encabezado.getEstado()).equals(EEstadoGeneral.NO_ENTREGADO) || EEstadoGeneral.getValor(this.encabezado.getEstado()).equals(EEstadoGeneral.ENTREGADO) ){
return true;
}
}
}
catch (Exception e) {
Mensaje.mostrarMensaje("msgErrorTransaccion",e.toString(),FacesMessage.SEVERITY_ERROR);
e.printStackTrace();
}
return false;
}
public boolean isLogicaFirmar() {
try{
if(this.encabezado != null){
if(EEstadoGeneral.getValor(this.encabezado.getEstado()).equals(EEstadoGeneral.PENDIENTE_FIRMA) && !this.encabezado.getDocumentoFirmado()){
return true;
}
}
}
catch (Exception e) {
Mensaje.mostrarMensaje("msgErrorTransaccion",e.toString(),FacesMessage.SEVERITY_ERROR);
e.printStackTrace();
}
return false;
}
public boolean isLogicaAprobar() {
try{
if(Persistir.getAtributo("opcionMenu") != null){
this.opcionMenu = (String) Persistir.getAtributo("opcionMenu");
}else{
this.opcionMenu = "";
}
if(this.encabezado != null){
if(EEstadoGeneral.getValor(this.encabezado.getEstado()).equals(EEstadoGeneral.PENDIENTE_APROBACION) &&
(this.opcionMenu.equals("aprob_rectificatorio") || this.opcionMenu.equals("aprob_informe"))){
return true;
}
}
}
catch (Exception e) {
Mensaje.mostrarMensaje("msgErrorTransaccion",e.toString(),FacesMessage.SEVERITY_ERROR);
e.printStackTrace();
}
return false;
}
public boolean isLogicaRechazar() {
try{
if(Persistir.getAtributo("opcionMenu") != null){
this.opcionMenu = (String) Persistir.getAtributo("opcionMenu");
}else{
this.opcionMenu = "";
}
if(this.encabezado != null){
if(EEstadoGeneral.getValor(this.encabezado.getEstado()).equals(EEstadoGeneral.PENDIENTE_APROBACION) &&
(this.opcionMenu.equals("aprob_rectificatorio") || this.opcionMenu.equals("aprob_informe"))){
return true;
}
}
}
catch (Exception e) {
Mensaje.mostrarMensaje("msgErrorTransaccion",e.toString(),FacesMessage.SEVERITY_ERROR);
e.printStackTrace();
}
return false;
}
public boolean isLogicaMensajeFirmado() {
try{
if(this.encabezado != null){
if(EEstadoGeneral.getValor(this.encabezado.getEstado()).equals(EEstadoGeneral.PENDIENTE_FIRMA) && this.encabezado.getDocumentoFirmado()){
return true;
}
}
}
catch (Exception e) {
Mensaje.mostrarMensaje("msgErrorTransaccion",e.toString(),FacesMessage.SEVERITY_ERROR);
e.printStackTrace();
}
return false;
}
public boolean isLogicaUpload() {
try{
if(this.encabezado != null){
if(EEstadoGeneral.getValor(this.encabezado.getEstado()).equals(EEstadoGeneral.NO_ENTREGADO) || EEstadoGeneral.getValor(this.encabezado.getEstado()).equals(EEstadoGeneral.INGRESADO) ){
return true;
}
return false;
}
}
catch (Exception e) {
Mensaje.mostrarMensaje("msgErrorTransaccion",e.toString(),FacesMessage.SEVERITY_ERROR);
e.printStackTrace();
}
return true;
}
public String enviarGuardar() {
SrbPresentacionDocsDto srbPresentacionDocsDto = null;
if(encabezado == null){
this.encabezado = (SrbPresentacionDocsDto) Persistir.getAtributo("encabezado");
}
try {
//Genera el Xml
byte [] xmlFirmar = GestorXML.generarXML(GestorXML.dto2Xml(encabezado));
encabezado.setArchivoXML(xmlFirmar);
Persistir.setAtributo("xmlFirmar",xmlFirmar);
if(encabezado.getIdPresentacion() != null && !encabezado.getIdPresentacion().equals("")){
servicioFormularios.actualizaPresentacionDocs(encabezado, usuarioDto, null);
Persistir.setAtributo("encabezado", this.encabezado);
}
else{
srbPresentacionDocsDto = new SrbPresentacionDocsDto();
srbPresentacionDocsDto = servicioFormularios.insertaPresentacionDocs(encabezado,usuarioDto);
encabezado.setIdPresentacion(srbPresentacionDocsDto.getIdPresentacion().toString());
}
Persistir.setAtributo("encabezado", this.encabezado);
Mensaje.mostrarMensaje("msgDocumentoGuardado","",FacesMessage.SEVERITY_INFO);
}
catch (Exception e) {
Mensaje.mostrarMensaje("msgErrorTransaccion",e.toString(),FacesMessage.SEVERITY_ERROR);
e.printStackTrace();
}
return "adjuntos?faces-redirect=true";
}
public String enviarProcesar(){
String nuevoEstado = null;
if(encabezado == null){
this.encabezado = (SrbPresentacionDocsDto) Persistir.getAtributo("encabezado");
}
try {
nuevoEstado = servicioFormularios.actualizaEstadoPresentacionDocs(Integer.valueOf(this.encabezado.getIdPresentacion()), false, usuarioDto, false, true, null,false).get(0);
this.encabezado.setEstado(nuevoEstado);
Persistir.setAtributo("encabezado", this.encabezado);
} catch (Exception e) {
Mensaje.mostrarMensaje("msgErrorTransaccion",e.toString(),FacesMessage.SEVERITY_ERROR);
e.printStackTrace();
}
Persistir.setPersistente("idExpediente", this.encabezado.getIdExpediente());
Persistir.setPersistente("ruc",this.encabezado.getRuc());
Persistir.setPersistente("razonSocial", this.encabezado.getRazonSocial());
return "estadogeneral?faces-redirect=true";
}
public String enviarFirmar(){
String nuevoEstado = null;
if(encabezado == null){
this.encabezado = (SrbPresentacionDocsDto) Persistir.getAtributo("encabezado");
}
try {
byte [] xmlFirmar = (byte[]) Persistir.getAtributo("xmlFirmarRespuesta");
this.encabezado.setXMLFirnado(xmlFirmar);
servicioFormularios.actualizaPresentacionDocs(encabezado, usuarioDto,null);
Persistir.setAtributo("xmlFirmar",xmlFirmar);
nuevoEstado = servicioFormularios.actualizaEstadoPresentacionDocs(Integer.valueOf(this.encabezado.getIdPresentacion()), false, usuarioDto, false, true, null,false).get(0);
this.encabezado.setEstado(nuevoEstado);
this.encabezado.setDocumentoFirmado(true);
Persistir.setAtributo("encabezado", this.encabezado);
} catch (Exception e) {
Mensaje.mostrarMensaje("msgErrorTransaccion",e.toString(),FacesMessage.SEVERITY_ERROR);
e.printStackTrace();
}
if(EEstadoGeneral.getValor(this.encabezado.getEstado()).equals(EEstadoGeneral.ENTREGADO)){
Persistir.setPersistente("idExpediente", this.encabezado.getIdExpediente());
Persistir.setPersistente("ruc",this.encabezado.getRuc());
Persistir.setPersistente("razonSocial", this.encabezado.getRazonSocial());
return "estadogeneral?faces-redirect=true";
}
return "adjuntos?faces-redirect=true";
}
public String enviarAprobar(){
String nuevoEstado = null;
if(encabezado == null){
this.encabezado = (SrbPresentacionDocsDto) Persistir.getAtributo("encabezado");
}
try {
servicioFormularios.actualizaEstadoPresentacionDocs(Integer.valueOf(this.encabezado.getIdPresentacion()), true, usuarioDto, false, true, null,false);
this.encabezado.setEstado(nuevoEstado);
Persistir.setAtributo("encabezado", this.encabezado);
} catch (Exception e) {
Mensaje.mostrarMensaje("msgErrorTransaccion",e.toString(),FacesMessage.SEVERITY_ERROR);
e.printStackTrace();
}
return "consultadocumentos?faces-redirect=true";
}
public String enviarRechazar(){
String nuevoEstado = null;
if(encabezado == null){
this.encabezado = (SrbPresentacionDocsDto) Persistir.getAtributo("encabezado");
}
try {
servicioFormularios.actualizaEstadoPresentacionDocs(Integer.valueOf(this.encabezado.getIdPresentacion()), false, usuarioDto, false, true, this.encabezado.getNovedades(),false);
this.encabezado.setEstado(nuevoEstado);
Persistir.setAtributo("encabezado", this.encabezado);
} catch (Exception e) {
Mensaje.mostrarMensaje("msgErrorTransaccion",e.toString(),FacesMessage.SEVERITY_ERROR);
e.printStackTrace();
}
return "consultadocumentos?faces-redirect=true";
}
/**
* Metodo que busca si en la lista de firmas de la presentacion, se encuetran la del susuario logueado
* @return
*/
public Boolean validarDocumentoFirmado(){
try{
if(!this.encabezado.getListaFirmas().isEmpty())
for(SrbPresentacionDocsFirmaDto obj : this.encabezado.getListaFirmas()){
if(obj.getIdRol().toString().equals(usuarioDto.getIdRol())){
return true;
}
}
}
catch (Exception e) {
Mensaje.mostrarMensaje("msgErrorTransaccion",e.toString(),FacesMessage.SEVERITY_ERROR);
e.printStackTrace();
}
return false;
}
}
And this is my UploadArchivos.java
package ec.gov.supercias.recepbalances.aplicativo;
import java.io.OutputStream;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import javax.faces.application.FacesMessage;
import javax.faces.event.PhaseId;
import org.richfaces.event.UploadEvent;
import org.richfaces.model.UploadItem;
public class UploadArchivos implements Serializable{
/**
*
*/
private static final long serialVersionUID = -1033722362450306606L;
private List<FileItem> files = new ArrayList<FileItem>();
private int maximo = 1;
private boolean autoUpload = true;
private boolean useFlash = true;
public UploadArchivos() {
}
public long getTimeStamp(){
return System.currentTimeMillis();
}
@SuppressWarnings("unchecked")
public List<FileItem> getFiles() {
this.files = this.files == null || this.files.isEmpty() ? (List<FileItem>) Persistir.getAtributo("listaArchivos") : this.files;
if(this.files == null){
this.files = new ArrayList<FileItem>();
}
Persistir.setAtributo("listaArchivos", files);
return files;
}
public void setFiles(ArrayList<FileItem> files) {
this.files = files;
}
public int getMaximo() {
return maximo;
}
public void setMaximo(int uploadsAvailable) {
this.maximo = uploadsAvailable;
}
public boolean isAutoUpload() {
return autoUpload;
}
public void setAutoUpload(boolean autoUpload) {
this.autoUpload = autoUpload;
}
public boolean isUseFlash() {
return useFlash;
}
public void setUseFlash(boolean useFlash) {
this.useFlash = useFlash;
}
public int getSize() {
if (getFiles().size()>0){
return getFiles().size();
}
return 0;
}
public void save(OutputStream stream, Object object) {
try{
stream.write(getFiles().get((Integer)object).getData());
}
catch (Exception e) {
}
}
public String clear() {
files.clear();
setMaximo(5);
return null;
}
public void listener(UploadEvent event) throws Exception{
try {
PhaseId phaseId = event.getPhaseId();
if (phaseId.equals(PhaseId.ANY_PHASE))
{
event.setPhaseId(PhaseId.UPDATE_MODEL_VALUES);
event.queue();
}
else if (phaseId.equals(PhaseId.UPDATE_MODEL_VALUES))
{
UploadItem item = event.getUploadItem();
FileItem file = new FileItem();
file.setLongitud(item.getData().length);
file.setNombre(item.getFileName());
file.setData(item.getData());
files.add(file);
Persistir.setAtributo("listaArchivos", files);
maximo--;
}
} catch (Exception e) {
Mensaje.mostrarMensaje("msgErrorTransaccion",e.toString(),FacesMessage.SEVERITY_ERROR);
}
}
}
-
14. fileUpload + Websphere 7 in firefox 3.6 don't work
ilya_shaikovsky Mar 2, 2011 5:56 AM (in response to jcknight77)for now really have no idea and need to review more or get some fresh look from the community. Your save action looks ok.. And b.t.w. do not see RichFaces filter and any of the classes invocations in the exception stack at all..