Examples of CactusRuntimeException


Examples of org.apache.cactus.integration.api.exceptions.CactusRuntimeException

        int responseCode = -1;
        do
        {
            if ((System.currentTimeMillis() - startTime) > this.timeout)
            {
                throw new CactusRuntimeException("Failed to start the container after "
                    + "more than [" + this.timeout + "] ms. Trying to connect "
                    + "to the [" + this.testURL + "] test URL yielded a ["
                    + responseCode + "] error code. Please run in debug mode "
                    + "for more details about the error.");
            }
View Full Code Here

Examples of org.apache.cactus.integration.api.exceptions.CactusRuntimeException

        {
            Thread.sleep(theMs);
        }
        catch (InterruptedException e)
        {
            throw new CactusRuntimeException("Interruption during sleep", e);
        }
    }
View Full Code Here

Examples of org.apache.cactus.integration.api.exceptions.CactusRuntimeException

            deployable.setJspRedirectorMapping(
                parseJspRedirectorMapping(deployable.getWarArchive()));
        }
        catch (IOException e)
        {
            throw new CactusRuntimeException("Failed to parse deployment descriptor "
                + "for WAR file [" + theDeployableFile + "].", e);
        }
        catch (ParserConfigurationException e)
        {
            throw new CactusRuntimeException("Failed to parse deployment descriptor "
                + "for WAR file [" + theDeployableFile + "].", e);
        }
        catch (SAXException e)
        {
            throw new CactusRuntimeException("Failed to parse deployment descriptor "
                + "for WAR file [" + theDeployableFile + "].", e);
        }
        catch (JDOMException e)
        {
            throw new CactusRuntimeException("Failed to parse deployment descriptor "
                + "for WAR file [" + theDeployableFile + "].", e);
        }
       
        return deployable;
    }  
View Full Code Here

Examples of org.apache.cactus.integration.api.exceptions.CactusRuntimeException

            EarArchive earArchive = new DefaultEarArchive(
                new FileInputStream(theDeployableFile));
            String webUri = getUriOfCactifiedWebModule(earArchive);
            if (webUri == null)
            {
                throw new CactusRuntimeException("Could not find cactified web "
                    + "module in the [" + theDeployableFile + "] EAR.");
            }

            WarArchive warArchive = earArchive.getWebModule(webUri);
            if (warArchive == null)
            {
                throw new CactusRuntimeException("Could not find the WAR [" + webUri
                    + "] in the [" + theDeployableFile + "] EAR.");
            }
           
            deployable.setWarArchive(warArchive);
            deployable.setTestContext(parseTestContext(earArchive, webUri));
            deployable.setServletRedirectorMapping(
                WarParser.parseServletRedirectorMapping(
                    deployable.getWarArchive()));
            deployable.setFilterRedirectorMapping(
                WarParser.parseFilterRedirectorMapping(
                    deployable.getWarArchive()));
            deployable.setJspRedirectorMapping(
                WarParser.parseJspRedirectorMapping(
                    deployable.getWarArchive()));
        }
        catch (IOException e)
        {
            throw new CactusRuntimeException("Failed to parse deployment descriptor "
                + "for EAR file [" + theDeployableFile + "].", e);
        }
        catch (ParserConfigurationException e)
        {
            throw new CactusRuntimeException("Failed to parse deployment descriptor "
                + "for EAR file [" + theDeployableFile + "].", e);
        }
        catch (SAXException e)
        {
            throw new CactusRuntimeException("Failed to parse deployment descriptor "
                + "for EAR file [" + theDeployableFile + "].", e);
        }
        catch (JDOMException e)
        {
            throw new CactusRuntimeException("Failed to parse deployment descriptor "
                + "for EAR file [" + theDeployableFile + "].", e);
        }
       
        return deployable;
    }  
View Full Code Here

Examples of org.apache.cactus.integration.api.exceptions.CactusRuntimeException

            .getWebModuleContextRoot(theWebUri);
        if (context == null)
        {
            // The application.xml does not define a <context-root> element.
            // This is wrong!
            throw new CactusRuntimeException("Your application.xml must define a "
                + "<context-root> element in the <web> module definition.");
        }

        // Remove leading "/" if there is one.
        if (context.startsWith("/"))
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.