You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-dev@portals.apache.org by David Le Strat <dl...@yahoo.com> on 2004/07/05 18:37:48 UTC

[J2] TestSimpleDeployment Failing

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.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)



		
__________________________________
Do you Yahoo!?
Yahoo! Mail - You care about security. So do we.
http://promotions.yahoo.com/new_mail

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


RE: [J2] TestSimpleDeployment Failing

Posted by Jeremy Ford <ca...@hotmail.com>.
I dived into this and I still don't know what to do about it.  Maybe 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
jford@apache.org


-----Original Message-----
From: David Sean Taylor [mailto:david@bluesunrise.com] 
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: jetspeed-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org
>
>

--
David Sean Taylor
Bluesunrise Software
david@bluesunrise.com
[office]   +01 707 773-4646
[mobile] +01 707 529 9194



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


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


Re: [J2] Maven Plugin Issues

Posted by Scott T Weaver <sc...@binary-designs.net>.
Hi David,

Try deleting all of the .cache files in .maven/plugins, that may fix
your problem.

On Mon, 2004-07-05 at 13:49, David Le Strat wrote:
> Hello there,
> 
> I am trying to build J2 but keep bumping into:
> 
> BUILD FAILED
> File......
> C:\tools\eclipse\workspace\jakarta-jetspeed-2\maven.xml
> Element... maven:reactor
> Line...... 318
> Column.... 40
> Unable to obtain goal [deploy-plugin] --
> C:\tools\eclipse\workspace\jakarta-jetspeed-2\maven-plugin\maven.xml:52:43:
> <attainGoal> No goal [plugin:deploy]
> Total time: 3 minutes 36 seconds
> Finished at: Mon Jul 05 13:44:30 EDT 2004
> 
> Has anyone any idea what could be the cause of this
> problem?
> 
> I am using the latest head on WinXP with Maven RC3,
> basically following the latest getting started. 
> Between this and a couple broken tests, I am having a
> rough time getting back into J2.  Quite a bit has
> happened in a couple weeks time ;)
> 
> David.
> 
> 
> 
> 		
> __________________________________
> Do you Yahoo!?
> Yahoo! Mail Address AutoComplete - You start. We finish.
> http://promotions.yahoo.com/new_mail
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org
-- 
******************************************
*           Scott T. Weaver              *
*         <we...@apache.org>            *
*     <http://www.einnovation.com>       *   
* -------------------------------------- *
*   Apache Jetspeed Enterprise Portal    *
*     Apache Pluto Portlet Container     *
*                                        *
* OpenEditPro, Website Content Mangement *
*     <http://www.openeditpro.com>       *
******************************************


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


[J2] Maven Plugin Issues

Posted by David Le Strat <dl...@yahoo.com>.
Hello there,

I am trying to build J2 but keep bumping into:

BUILD FAILED
File......
C:\tools\eclipse\workspace\jakarta-jetspeed-2\maven.xml
Element... maven:reactor
Line...... 318
Column.... 40
Unable to obtain goal [deploy-plugin] --
C:\tools\eclipse\workspace\jakarta-jetspeed-2\maven-plugin\maven.xml:52:43:
<attainGoal> No goal [plugin:deploy]
Total time: 3 minutes 36 seconds
Finished at: Mon Jul 05 13:44:30 EDT 2004

Has anyone any idea what could be the cause of this
problem?

I am using the latest head on WinXP with Maven RC3,
basically following the latest getting started. 
Between this and a couple broken tests, I am having a
rough time getting back into J2.  Quite a bit has
happened in a couple weeks time ;)

David.



		
__________________________________
Do you Yahoo!?
Yahoo! Mail Address AutoComplete - You start. We finish.
http://promotions.yahoo.com/new_mail 

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


Re: [J2] TestSimpleDeployment Failing

Posted by David Sean Taylor <da...@bluesunrise.com>.
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: jetspeed-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org
>
>

--
David Sean Taylor
Bluesunrise Software
david@bluesunrise.com
[office]   +01 707 773-4646
[mobile] +01 707 529 9194



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