You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@velocity.apache.org by "Henning Schmiedehausen (JIRA)" <ji...@apache.org> on 2005/11/13 23:06:22 UTC

[jira] Commented: (VELOCITY-418) FileInputStreams are not being closed so webapps cannot be undeployed.

    [ http://issues.apache.org/jira/browse/VELOCITY-418?page=comments#action_12357547 ] 

Henning Schmiedehausen commented on VELOCITY-418:
-------------------------------------------------

The comment about the ExtendedProperties is very interesting. Can you elaborate a bit more / open a bug report in the Bugzilla for the commons-collections component @ issues.apache.org/bugzilla? Thanks a lot.


> FileInputStreams are not being closed so webapps cannot be undeployed.
> ----------------------------------------------------------------------
>
>          Key: VELOCITY-418
>          URL: http://issues.apache.org/jira/browse/VELOCITY-418
>      Project: Velocity
>         Type: Bug
>     Versions: 1.3-rc1, 1.4, 1.3, 1.3.1, 1.3.1-rc2
>  Environment: Deployed web app in application server. Unable to undeploy because directory cannot be deleted.
>     Reporter: Jason Weinstein
>     Priority: Critical
>      Fix For: 1.5

>
> Deployed web app in application server. Unable to undeploy because directory cannot be deleted.
> Example error:
> Unable to delete: rm: App/App_war/org/apache/velocity/runtime/defaults/directive.properties: Permission denied
> InputStreams are not being closed.
> From RuntimeInstance.java
>     private void initializeDirectives() throws Exception
>     {
>         /*
>          * Initialize the runtime directive table.
>          * This will be used for creating parsers.
>          */
>         runtimeDirectives = new Hashtable();
>         
>         Properties directiveProperties = new Properties();
>         
>         /*
>          * Grab the properties file with the list of directives
>          * that we should initialize.
>          */
>         InputStream inputStream =
>             getClass().getResourceAsStream('/' + DEFAULT_RUNTIME_DIRECTIVES);
>     
>         if (inputStream == null)
>             throw new Exception("Error loading directive.properties! " +
>                                 "Something is very wrong if these properties " +
>                                 "aren't being located. Either your Velocity " +
>                                 "distribution is incomplete or your Velocity " +
>                                 "jar file is corrupted!");
>         
>         directiveProperties.load(inputStream);
> On top of this
> ExtendedProperties.java does not close InputStreams which it opens.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-dev-help@jakarta.apache.org