Hi Scott,

if I am right, he is looking for the file "testFile-5.psml" in the directory "X:\cvs\jakarta-jetspeed-2\portal\test\testdata\psml\user\cachetest" ?

The file is there, not write protected and another test, a "marven clean" with a following "maven war" failed again. I tested it three times .. If you take a look at the TestFileCache.txt, it seems that the testFile-5.psml was loaded?? (i never worked with junit, so i´m not shure ..)

Regards,
Felix


Weaver, Scott wrote:


Hi Felix,

I looked at line 159 in TestFileCache, that assertion fails because one of the documents couldn't be retrieved from the cache. Try running the test again (if you haven't already). If it fails again try a "maven clean" from the /portal directory and run the test again.


Hth,
*================================* | Scott T Weaver |
| <[EMAIL PROTECTED]> | | Apache Jetspeed Portal Project |
| Apache Pluto Portlet Container |
*================================*




-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 18, 2003 8:54 AM
To: Jetspeed Users List
Subject: Re: Jetspeed2 compile problem -> Testcase: testLoadCache FAILED

Ups .. there is another error while try to compile "procedure 2" in the
step "build jetspeed portal".

When I try -> $J2_HOME/portal maven war

Testcase: testLoadCache took 10,004 sec
   FAILED
null
junit.framework.AssertionFailedError
   at
org.apache.jetspeed.cache.file.TestFileCache.testLoadCache(TestFileCache.j
ava:159)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
39)
   at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorIm
pl.java:25)


maven: ..... ..... [junit] Tests run: 6, Failures: 0, Errors: 0, Time elapsed: 7,11 sec [junit] Running org.apache.jetspeed.services.registry.TestRegistry [junit] Tests run: 9, Failures: 0, Errors: 0, Time elapsed: 12,277 sec [junit] Running org.apache.jetspeed.tools.pamanager.TestPortletDescriptor [junit] Tests run: 2, Failures: 0, Errors: 0, Time elapsed: 7,36 sec

BUILD FAILED
File...... file:/C:/Dokumente und
Einstellungen/felix/.maven/plugins/maven-test-plugin-1.4/
Element... fail
Line...... 130
Column.... 54
There were test failures.
Total time: 1 minutes 44 seconds
Finished at: Tue Nov 18 14:39:06 CET 2003




Well this time I tested with English, it passed.
Changed my system's locale to German, and the test passed.
Try again


--------------------------------------------------------------------- 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]








<?xml version="1.0" encoding="iso-8859-1"?>
<portlets id="100" xmlns="http://xml.apache.org/jetspeed/2000/psml";>
    <metainfo>
      <title>Default Jetspeed Page</title>
    </metainfo>

  <control name="TabControl"/>

  <controller name="CardPortletController">
    <parameter name="parameter" value="pane"/>
  </controller>

  <skin name="orange-grey"/>

  <portlets id="101">
    <controller name="RowController">
      <parameter name="sizes" value="66%,34%"/>
    </controller>

    <metainfo>
      <title>Home Page</title>
    </metainfo>

    <portlets id="102">
      <entry id="103" parent="JetspeedContent"/>
    </portlets>

    <portlets id="104">
      <entry id="105" parent="Jetspeed"/>
      <entry id="106" parent="Welcome"/>
    </portlets>

  </portlets>

  <portlets id="107">
    <metainfo>
      <title>RSS</title>
    </metainfo>

    <portlets id="108">
      <control name="TabControl"/>
      <controller name="CardPortletController">
        <parameter name="defaultcard" value="0"/>
        <parameter name="parameter" value="channel"/>
        <parameter name="ruler-size" value="0"/>
      </controller>      

      <entry id="109" parent="http://jakarta.apache.org/jetspeed/channels/jetspeed.rss";>
        <control name="ClearPortletControl"/>
      </entry>

      <entry id="110" parent="http://jakarta.apache.org/jetspeed/channels/turbine.rss";>
        <control name="ClearPortletControl"/>
      </entry>

      <entry id="111" parent="http://www.mozilla.org/news.rdf";>
        <control name="ClearPortletControl"/>
        <parameter name="itemdisplayed" value="5"/>
      </entry>

      <entry id="112" parent="http://www.apacheweek.com/issues/apacheweek-headlines.xml";>
        <control name="ClearPortletControl"/>
        <parameter name="showtitle" value="false"/>
        <parameter name="showdescription" value="false"/>
      </entry>

      <entry id="113" parent="http://www.xmlhack.com/rsscat.php";>
        <control name="ClearPortletControl"/>
      </entry>

      <entry id="123" parent="BBCFrontPage">
        <control name="ClearPortletControl"/>
      </entry>

    </portlets>
  </portlets>

  <portlets id="114">
    <controller name="TwoColumns"/>

    <metainfo>
      <title>Dynamic</title>
    </metainfo>

    <portlets id="115">
      <entry id="116" parent="JetspeedContent"/>
      <layout>
      	<property name="row" value="0"/>
      	<property name="column" value="0"/>
      </layout>
    </portlets>

    <portlets id="117">
      <entry id="118" parent="HelloVelocity"/>
      <layout>
      	<property name="row" value="0"/>
      	<property name="column" value="1"/>
      </layout>
    </portlets>

    <portlets id="119">
      <entry id="120" parent="HelloVelocityCached"/>
      <entry id="808" parent="InstanceExample">
          <parameter name="country" value="Brazil"/>
      </entry>
      <entry id="809" parent="InstanceExample">
          <parameter name="country" value="Germany"/>
      </entry>
      <layout>
      	<property name="row" value="1"/>
      	<property name="column" value="1"/>
      </layout>
    </portlets>

    <portlets id="121">
      <entry id="122" parent="HelloJSP"/>
      <layout>
      	<property name="row" value="1"/>
      	<property name="column" value="0"/>
      </layout>
    </portlets>
    
  </portlets>
</portlets>
Testsuite: org.apache.jetspeed.cache.file.TestFileCache
Tests run: 1, Failures: 1, Errors: 0, Time elapsed: 4,477 sec
------------- Standard Output ---------------
 INFO: Creating portlet container...
JMX locked by operation init
JMX released by operation init
testFile-17.psml
testFile-22.psml
testFile-30.psml
testFile-5.psml
testFile-14.psml
testFile-23.psml
testFile-8.psml
testFile-20.psml
testFile-24.psml
testFile-15.psml
testFile-3.psml
testFile-18.psml
testFile-19.psml
testFile-4.psml
testFile-9.psml
testFile-26.psml
testFile-7.psml
testFile-28.psml
testFile-29.psml
testFile-11.psml
testFile-27.psml
testFile-12.psml
testFile-2.psml
testFile-21.psml
testFile-25.psml
default.psml
testFile-13.psml
testFile-10.psml
testFile-16.psml
testFile-1.psml
testFile-6.psml
entry is evicting: testFile-17.psml
entry is evicting: testFile-22.psml
entry is evicting: testFile-14.psml
entry is evicting: testFile-23.psml
entry is evicting: testFile-20.psml
entry is evicting: testFile-24.psml
entry is evicting: testFile-15.psml
entry is evicting: testFile-18.psml
entry is evicting: testFile-19.psml
entry is evicting: testFile-11.psml
entry is evicting: testFile-12.psml
testFile-30.psml
testFile-5.psml
testFile-8.psml
testFile-3.psml
testFile-4.psml
testFile-9.psml
testFile-26.psml
testFile-7.psml
testFile-28.psml
testFile-29.psml
testFile-27.psml
testFile-2.psml
testFile-21.psml
testFile-25.psml
default.psml
testFile-13.psml
testFile-10.psml
testFile-16.psml
testFile-1.psml
testFile-6.psml
JMX locked by operation shutdown
stopping RMI registry
JMX released by operation shutdown
------------- ---------------- ---------------
------------- Standard Error -----------------
0 [main] INFO jetspeed.Jetspeed  - Jetspeed environment attempting to initialize 
portal Engine...
------------- ---------------- ---------------

Testcase: testLoadCache took 4,206 sec
        FAILED
null
junit.framework.AssertionFailedError
        at 
org.apache.jetspeed.cache.file.TestFileCache.testLoadCache(TestFileCache.java:159)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

Testcase: testLoadCache
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to