Package java.util.logging

Examples of java.util.logging.Logger.warning()


                    if (perm instanceof FilePermission && perm.getActions().equals("read")) {
                        log.warning("Reading " + perm.getName() + " is not permitted. See \"per context logging\" in the default catalina.policy file.");
                    }
                    else {
                        log.warning("Reading logging.properties is not permitted in some context. See \"per context logging\" in the default catalina.policy file.");
                        log.warning("Original error was: " + ace.getMessage());
                    }
                }
            }
        }
        if ((is == null) && (classLoader == ClassLoader.getSystemClassLoader())) {
View Full Code Here


         */
        Map<String, File> assetMap = HelpDeployer.getFileMap();
        File root = assetMap.get(moduleName);
        if (root == null) {
            /* Log an error and return an error response */
            logger.warning("[HELP] Unable to locate module " + moduleName);
            ResponseBuilder rb = Response.status(Response.Status.BAD_REQUEST);
            return rb.build();
        }
       
        File file = new File(root, path);
View Full Code Here

        }
       
        File file = new File(root, path);
        if (file.exists() == false || file.isDirectory() == true) {
            /* Write an error to the log and return */
            logger.warning("[HELP] Unable to locate resource " + path +
                    " in module " + moduleName);
            ResponseBuilder rb = Response.status(Response.Status.BAD_REQUEST);
            return rb.build();
        }
       
View Full Code Here

            try {
                FileUtils.cleanDirectory(root);
                return true;
            } catch (java.io.IOException excp) {
                /* If we cannot delete the existing directory, this is fatal */
                logger.warning("[MODULES] MAKE CLEAN Failed " +  excp.toString());
                return false;
            }
        }
       
        /* Now go ahead and recreate the directory */
 
View Full Code Here

       
        /* Now go ahead and recreate the directory */
        try {
            root.mkdir();
        } catch (java.lang.SecurityException excp) {
            logger.warning("[MODULES] MAKE CLEAN Failed " + excp.toString());
            return false;
        }
        return true;
    }
   
View Full Code Here

        /* Fetch the module from the module manager */
        ModuleManager manager = ModuleManager.getModuleManager();
        Module module = manager.getInstalledModules().get(moduleName);
        if (module == null) {
            /* Log an error and return an error response */
            logger.warning("ModuleManager: unable to locate module " + moduleName);
            ResponseBuilder rb = Response.status(Response.Status.BAD_REQUEST);
            return rb.build();
        }
       
        /* Check to see that the module info exists -- it's really bad if it doesn't */
 
View Full Code Here

       
        /* Check to see that the module info exists -- it's really bad if it doesn't */
        ModuleInfo moduleInfo = module.getInfo();
        if (moduleInfo == null) {
            /* Log an error and return an error response */
            logger.warning("ModuleManager: unable to locate module info: " + moduleName);
            ResponseBuilder rb = Response.status(Response.Status.BAD_REQUEST);
            return rb.build();
        }
       
        /* Write the XML encoding to a writer and return it */
 
View Full Code Here

            moduleInfo.encode(sw);
            ResponseBuilder rb = Response.ok(sw.toString());
            return rb.build();
        } catch (javax.xml.bind.JAXBException excp) {
            /* Log an error and return an error response */
            logger.warning("ModuleManager: unable to encode module info " + moduleName);
            ResponseBuilder rb = Response.status(Response.Status.BAD_REQUEST);
            return rb.build();
        }
    }
}
View Full Code Here

         * response.
         */
        WFSManager wfsm = WFSManager.getWFSManager();
        WFS wfs = wfsm.getWFS(wfsName);
        if (wfs == null) {
            logger.warning("Unable to find WFS with name " + wfsName);
            ResponseBuilder rb = Response.status(Response.Status.BAD_REQUEST);
            return rb.build();
        }
       
        /* Fetch the root directory, check if null, but should never be */
 
View Full Code Here

        }
       
        /* Fetch the root directory, check if null, but should never be */
        WFSCellDirectory dir = wfs.getRootDirectory();
        if (dir == null) {
            logger.warning("WFSManager: Unable to find WFS root with name " + wfsName);
            ResponseBuilder rb = Response.status(Response.Status.BAD_REQUEST);
            return rb.build();
        }
       
        /*
 
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.