portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mark Orciuch" <mark_orci...@ngsltd.com>
Subject Problem running junit tests on Win2K
Date Tue, 17 Sep 2002 21:22:22 GMT
I am having problems running "unittest" build target under Win2K. I get the
following stacktrace:

unittest:
    [junit] Running org.apache.jetspeed.services.psmlmanager.TestMarshalPsml
    [junit] java.io.FileNotFoundException:
null/WEB-INF/conf/TurbineResources.properties (The system cannot find the
path specified)

    [junit]     at java.io.FileInputStream.open(Native Method)
    [junit]     at java.io.FileInputStream.<init>(FileInputStream.java:68)
    [junit]     at
org.apache.stratum.configuration.PropertiesConfiguration.<init>(Unknown
Source)
    [junit]     at
org.apache.turbine.services.resources.TurbineResourceService.init(TurbineRes
ourceService.java:166)
    [junit]     at
org.apache.turbine.services.resources.TurbineResourceService.init(TurbineRes
ourceService.java:127)
    [junit]     at
org.apache.turbine.services.BaseInitableBroker.initClass(BaseInitableBroker.
java, Compiled Code)
    [junit]     at
org.apache.turbine.services.BaseServiceBroker.initService(BaseServiceBroker.
java:141)
    [junit]     at
org.apache.turbine.services.TurbineServices.initPrimaryServices(TurbineServi
ces.java:181)
    [junit]     at org.apache.turbine.Turbine.init(Turbine.java:231)
    [junit]     at
org.apache.turbine.util.TurbineConfig.init(TurbineConfig.java:175)
    [junit]     at
org.apache.jetspeed.services.psmlmanager.TestMarshalPsml.<clinit>(TestMarsha
lPsml.java:506)
    [junit] (!) NOTICE: init
    [junit] (!) NOTICE: ServiceBroker: LoggingService enabled.
    [junit]     at java.lang.Class.forName0(Native Method)
    [junit]     at java.lang.Class.forName(Class.java:124)
    [junit]     at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.<init>(JUnitTes
tRunner.java:237)
    [junit]     at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.<init>(JUnitTes
tRunner.java:210)
    [junit]     at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestR
unner.java, Compiled Code)
    [junit] (!) NOTICE: Turbine: init() failed:
org.apache.turbine.services.InitializationException: Can't load file
null/WEB-INF/co
nf/TurbineResources.properties
    [junit]     at
org.apache.turbine.services.resources.TurbineResourceService.init(TurbineRes
ourceService.java:171)
    [junit]     at
org.apache.turbine.services.resources.TurbineResourceService.init(TurbineRes
ourceService.java:127)
    [junit]     at
org.apache.turbine.services.BaseInitableBroker.initClass(BaseInitableBroker.
java, Compiled Code)
    [junit]     at
org.apache.turbine.services.BaseServiceBroker.initService(BaseServiceBroker.
java:141)
    [junit]     at
org.apache.turbine.services.TurbineServices.initPrimaryServices(TurbineServi
ces.java:181)
    [junit]     at org.apache.turbine.Turbine.init(Turbine.java:231)
    [junit]     at
org.apache.turbine.util.TurbineConfig.init(TurbineConfig.java:175)
    [junit]     at
org.apache.jetspeed.services.psmlmanager.TestMarshalPsml.<clinit>(TestMarsha
lPsml.java:506)
    [junit]     at java.lang.Class.forName0(Native Method)
    [junit]     at java.lang.Class.forName(Class.java:124)
    [junit]     at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.<init>(JUnitTes
tRunner.java:237)
    [junit]     at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.<init>(JUnitTes
tRunner.java:210)
    [junit]     at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestR
unner.java, Compiled Code)

    [junit] Tests run: 1, Failures: 1, Errors: 0, Time elapsed: 0.22 sec
    [junit] Testsuite:
org.apache.jetspeed.services.psmlmanager.TestMarshalPsml
    [junit] Tests run: 1, Failures: 1, Errors: 0, Time elapsed: 0.22 sec
    [junit] ------------- Standard Output ---------------
    [junit] Testing marshalling of PSML on base *** IdentityElement ***
    [junit] ------------- ---------------- ---------------
    [junit] ------------- Standard Error -----------------
    [junit] PSML Mapping not found or not a file or unreadable:
    [junit] ------------- ---------------- ---------------

    [junit] Testcase: testMarshalPsml took 0.21 sec
    [junit]     FAILED
    [junit] PSML Mapping not found or not a file or unreadable:
    [junit] junit.framework.AssertionFailedError: PSML Mapping not found or
not a file or unreadable:
    [junit]     at
org.apache.jetspeed.services.psmlmanager.TestMarshalPsml.testMarshalPsml(Tes
tMarshalPsml.java, Compiled Code)

    [junit] Testcase: testMarshalPsml

Funny thing is that the same works fine under Linux. Did anyone experience
similar problem? Please, help!!!

Best regards,

Mark C. Orciuch
Next Generation Solutions, Ltd.
e-Mail: mark_orciuch@ngsltd.com
web: http://www.ngsltd.com


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


Mime
View raw message