Ignore:
Timestamp:
Sep 2, 2015, 5:09:21 PM (9 years ago)
Author:
antonioaraujob <aaraujo@…>
Branches:
master
Children:
d732178
Parents:
ca297b6
Message:

Agregada nueva versión de la biblioteca digidoc4j que permite firmar más de dos archivos (DataFile?) en un contenedor BDOC.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • murachi/src/main/java/ve/gob/cenditel/murachi/MurachiRESTWS.java

    rca297b6 r0beb353  
    8989import ee.sk.digidoc.SignedDoc;
    9090import ee.sk.digidoc.factory.DigiDocGenFactory;
     91import eu.europa.ec.markt.dss.exception.DSSException;
    9192
    9293import javax.servlet.http.HttpServletRequest;
     
    125126       
    126127        // debe colocarse la barra al final de la ruta
    127         private static final String SERVER_UPLOAD_LOCATION_FOLDER = "/tmp/murachi/";
     128        //private static final String SERVER_UPLOAD_LOCATION_FOLDER = "/tmp/murachi/";
     129        private static final String SERVER_UPLOAD_LOCATION_FOLDER = "/var/lib/tomcat7/murachiWorkingDirectory/";
     130       
    128131       
    129132        private static final String SHA256_MESSAGE_DIGEST = "SHA256";
     
    389392                                // deserializar el contenedor
    390393                                c = deserialize(SERVER_UPLOAD_LOCATION_FOLDER + fileName + "-serialized.bin");
     394                               
    391395                                logger.debug("  deserializado contenedor: " + SERVER_UPLOAD_LOCATION_FOLDER + fileName + "-serialized.bin");
    392396                               
     
    41134117                        jsonError.put("error", e.getMessage());
    41144118                        return Response.status(500).entity(jsonError).build();                         
     4119                } catch (DSSException e) {
     4120                        JSONObject jsonError = new JSONObject();
     4121                       
     4122                        System.out.println("DSSException e: " + e.getMessage());
     4123                        logger.error("error: " + e.getMessage());
     4124                                                       
     4125                        jsonError.put("error", e.getMessage());
     4126                        return Response.status(500).entity(jsonError).build();
    41154127                }
    41164128                               
Note: See TracChangeset for help on using the changeset viewer.