I am going to look at emulating the VFS functionallity within J2 itself
as it appears VFS itself does not really work very for what we are using
it for. There really isn't a lot we use in VFS so it shouldn't take me
more than a day.
Jeremy Ford wrote:
Testcase:
testDeploy(org.apache.jetspeed.deployment.TestSimpleDeployment): FAILED
HW_App was not removed from the registry.
junit.framework.AssertionFailedError: HW_App was not removed from the
registry.
at
org.apache.jetspeed.deployment.TestSimpleDeployment.verifyDemoAppDeleted(TestSimpleDeployment.java:233)
at
org.apache.jetspeed.deployment.TestSimpleDeployment.testDeploy(TestSimpleDeployment.java:192)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
From: "Scott T. Weaver" <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: Re: [J2] TestSimpleDeployment Failing
Date: Tue, 06 Jul 2004 12:36:57 -0400
Is it just the assertion failing or is an exception thrown when
deleting the directory?
Jeremy Ford wrote:
Test still failed. The filesystem for the jar is probably still open
even though the cache was cleared.
Jeremy Ford
[EMAIL PROTECTED]
From: Scott T Weaver <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: RE: [J2] TestSimpleDeployment Failing
Date: Tue, 06 Jul 2004 10:35:55 -0400
I just committed changes that specifically remove deployment
FileObjects
from the FileSystemManager both in VFSDeploymentObject.close() and in
copyDeployables().
Jeremy,
Would you mind updating and running the tests again?
Thanks,
--
******************************************
* Scott T. Weaver *
* <[EMAIL PROTECTED]> *
* <http://www.einnovation.com> *
* -------------------------------------- *
* Apache Jetspeed Enterprise Portal *
* Apache Pluto Portlet Container *
* *
* OpenEditPro, Website Content Mangement *
* <http://www.openeditpro.com> *
******************************************
On Tue, 2004-07-06 at 01:06, Jeremy Ford wrote:
> I dived into this and I still don't know what to do about it.
Maybje Scott
> will know more. Here's what I've found so far:
>
> During the TestSimpleDeployment, a JarFileSystem is created based
off of the
> demo.war. This file system contains an open jarfile. If one
closes the
> file system, this will close the jarfile, thus allowing you to
delete the
> file. However, if you close the file system, you cannot redeploy
the same
> app because of a cache in VFS which still points to the now
closed file
> system.
>
> This explicitly closes a file system:
>
> ((VfsComponent)fileObj.getFileSystem()).close();
>
> but, leaves it in the FileSystemManager cache.
>
> There is a method on the manager that once can use to free up
resources. I
> think this is the preferred method. It is called by:
>
> ((DefaultFileSystemManager)fsManager).freeUnusedResources();
>
> However, the file system keeps a count off accesses to the
resources within
> the file system. It will not release sources if the number of
access is
> greater than zero. You can decrease the number of access by
calling close
> on the objects that you access. I modified the code to call
close, but this
> did not solve the problem. Within the test, there is a method called
> copyDeployables. This method uses a VFS method (copyFrom) to copy
the files
> necessary for the test to run. During this, the number of
accesses are
> increased by VFS's own methods. The number never decreases
because they do
> not call close (or anything that might decrease the access #).
>
> Basically, I can get parts of the test to work, but I can't get
the whole
> test to run. I'm not sure that the FSManager that is used for
copying
> should be used for the J2 deployment test. I've tried to create a
brand new
> FSManager at the start of the TestDeploy, but, during the course
of the run,
> the second attempt to delete the demo.war will fail instead of
the first.
>
>
>
> Jeremy Ford
> [EMAIL PROTECTED]
>
>
> -----Original Message-----
> From: David Sean Taylor [mailto:[EMAIL PROTECTED]
> Sent: Monday, July 05, 2004 11:46 AM
> To: Jetspeed Developers List
> Subject: Re: [J2] TestSimpleDeployment Failing
>
> The test fails on Windows, succeeds on Linux
>
> For now I exclude test here in order to build until I can find some
> time to find the resource leak
> I believe this unit test isolates the un-deploy issue on Windows
> (un-deploy fails on Windows, succeeds on Linux)
>
> On Jul 5, 2004, at 9:37 AM, David Le Strat wrote:
>
> > Is any else having the same issue.
> > TestSimpleDeployment is failing with the latest head.
> >
> > Regards,
> >
> > David.
> >
> > Testcase:
> > testDeploy(org.apache.jetspeed.deployment.TestSimpleDeployment):
> > FAILED
> > HW_App was not removed from the registry.
> > junit.framework.AssertionFailedError: HW_App was not
> > removed from the registry.
> > at
> >
org.apache.jetspeed.deployment.TestSimpleDeployment.verifyDemoAppDelete
> > d(TestSimpleDeployment.java:233)
> > at
> >
org.apache.jetspeed.deployment.TestSimpleDeployment.testDeploy(TestSimp
> > leDeployment.java:192)
> > at
> > sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> > Method)
> > at
> >
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.ja
> > va:39)
> > at
> >
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesso
> > rImpl.java:25)
> >
> >
> >
> >
> > __________________________________
> > Do you Yahoo!?
> > Yahoo! Mail - You care about security. So do we.
> > http://promotions.yahoo.com/new_mail
> >
> >
---------------------------------------------------------------------
> > To unsubscribe, e-mail:
[EMAIL PROTECTED]
> > For additional commands, e-mail:
[EMAIL PROTECTED]
> >
> >
>
> --
> David Sean Taylor
> Bluesunrise Software
> [EMAIL PROTECTED]
> [office] +01 707 773-4646
> [mobile] +01 707 529 9194
>
>
>
>
---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail:
[EMAIL PROTECTED]
>
>
>
---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail:
[EMAIL PROTECTED]
_________________________________________________________________
Get fast, reliable Internet access with MSN 9 Dial-up – now 2 months
FREE! http://join.msn.click-url.com/go/onm00200361ave/direct/01/
--
******************************************
* Scott T. Weaver *
* <[EMAIL PROTECTED]> *
* <http://www.einnovation.com> *
* -------------------------------------- *
* Apache Jetspeed Enterprise Portal *
* Apache Pluto Portlet Container *
* *
* OpenEditPro, Website Content Mangement *
* <http://www.openeditpro.com> *
******************************************
_________________________________________________________________
Get tips for maintaining your PC, notebook accessories and reviews in
Technology 101. http://special.msn.com/tech/technology101.armx
--
******************************************
* Scott T. Weaver *
* <[EMAIL PROTECTED]> *
* <http://www.einnovation.com> *
* -------------------------------------- *
* Apache Jetspeed Enterprise Portal *
* Apache Pluto Portlet Container *
* *
* OpenEditPro, Website Content Mangement *
* <http://www.openeditpro.com> *
******************************************
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]