avalon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hamm...@apache.org
Subject cvs commit: jakarta-avalon-apps/sevak/src/java/org/apache/avalon/apps/sevak/blocks/jetty JettySevak.java
Date Sun, 12 Jan 2003 09:38:16 GMT
hammant     2003/01/12 01:38:15

  Modified:    sevak/src/java/org/apache/avalon/apps/sevak/blocks/jetty
                        JettySevak.java
  Log:
  Better feedback on failing deployment
  
  Revision  Changes    Path
  1.11      +5 -4      jakarta-avalon-apps/sevak/src/java/org/apache/avalon/apps/sevak/blocks/jetty/JettySevak.java
  
  Index: JettySevak.java
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-apps/sevak/src/java/org/apache/avalon/apps/sevak/blocks/jetty/JettySevak.java,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- JettySevak.java	9 Jan 2003 07:42:49 -0000	1.10
  +++ JettySevak.java	12 Jan 2003 09:38:15 -0000	1.11
  @@ -150,17 +150,18 @@
       /**
        * Deploy a webapp
        * @param context the contxct for the webapp
  -     * @param pathToWebAppFolder the pathc to it
  +     * @param pathToWebAppFolder the path to it
        * @throws SevakException if a problem
        */
       public void deploy(String context, File pathToWebAppFolder) throws SevakException
       {
   
  +        String webAppURL = null;
  +
           try
           {
  -            String webAppURL = pathToWebAppFolder.toURL().toString();
  +            webAppURL = pathToWebAppFolder.toURL().toString();
               // This still does not work.
  -//            WebApplicationContext ctx = m_server.addWebApplication(m_hostName, context,
webAppURL);
   
               WebApplicationContext ctx =
                   new SevakWebApplicationContext(m_serviceManager, m_sarRootDir, webAppURL);
  @@ -176,7 +177,7 @@
           }
           catch (Exception e)
           {
  -            throw new SevakException("Problem deploying web application in Jetty", e);
  +            throw new SevakException("Problem deploying web application (" + webAppURL
+ ") in Jetty", e);
           }
       }
   
  
  
  

--
To unsubscribe, e-mail:   <mailto:avalon-cvs-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:avalon-cvs-help@jakarta.apache.org>


Mime
View raw message