| Building Virgo Kernel on Windows (7) [message #648424] |
Wed, 12 January 2011 15:44  |
Peter ardfj Messages: 19 Registered: July 2009 |
Junior Member |
|
|
Hi,
I would like to start experimenting with the Virgo kernel code. I am, however, having difficulties building the kernel on my Windows 7 machine. The build fails during the deployer tests. It would be really nice to have a working build to make sure I don't break anything with my modifications. It is not just the latest version that fails. As a matter of fact, I have never managed to build the kernel, although I have followed the instructions on the wiki page.
The following is the end of the log output from the build. I've attached the complete log file for the DeployerLogMessageTests.
Is the build supposed to work in a Windows environment?
[exec] [junit] ------------- ---------------- ---------------
[exec] [junit] Testcase: malformedApplicationContext(org.eclipse.virgo.kernel.deployer.test.DeployerLogMessageTests): Caused an ERROR
[exec] [junit] Unexpected exception, expected<org.eclipse.virgo.kernel.deployer.core.DeploymentException> but was<java.lang.AssertionError>
[exec] [junit] java.lang.Exception: Unexpected exception, expected<org.eclipse.virgo.kernel.deployer.core.DeploymentException> but was<java.lang.AssertionError>
[exec] [junit] at org.eclipse.virgo.test.framework.OsgiTestRunner.run(OsgiTestRunner.java:74)
[exec] [junit] at org.eclipse.virgo.kernel.deployer.test.DeployerLogMessageTests.malformedApplicationContext(DeployerLogMessageTests.java:110)
[exec] [junit]
[exec] [junit]
[exec]
[exec] BUILD FAILED
[exec] C:\work\src\osgi\virgo.20110109\org.eclipse.virgo.kernel\virgo-build\common\quality.xml:50: The following error occurred while executing this line:
[exec] C:\work\src\osgi\virgo.20110109\org.eclipse.virgo.kernel\virgo-build\common\quality.xml:208: Tests failed
[exec]
[exec] Total time: 3 minutes 26 seconds
[subant] Leaving directory: C:\work\src\osgi\virgo.20110109\org.eclipse.virgo.kernel\org.eclipse.virgo.kernel.deployer.test
BUILD FAILED
C:\work\src\osgi\virgo.20110109\org.eclipse.virgo.kernel\virgo-build\multi-bundle\quality.xml:46: The following error occurred while executing this line:
C:\work\src\osgi\virgo.20110109\org.eclipse.virgo.kernel\virgo-build\multi-bundle\common.xml:166: The following error occurred while executing this line:
C:\work\src\osgi\virgo.20110109\org.eclipse.virgo.kernel\virgo-build\common\common.xml:175: exec returned: 1
Total time: 13 minutes 57 seconds
best regards, Peter
|
|
|
| Re: Building Virgo Kernel on Windows (7) [message #648434 is a reply to message #648424] |
Wed, 12 January 2011 17:15   |
Borislav Kapukaranov Messages: 80 Registered: September 2010 |
Member |
|
|
Hi Peter,
I've never seen that error before. I just ran the build+tests procedure on Windows 7 and this testcase passed just fine. I got some failures but they were caused because of the very restrictive settings on my firewall, so i guess these cases would otherwise pass.
In the past i also had trouble building the kernel on Windows. The reason back then was that my old machine was lacking resources - when building Virgo now, i can see the java process consume no less than ~1.5 Gigs of memory.
It could be that you are facing the same problem here.
Is this test always failing or it is a sporadic event?
In order to check that you can try first building the kernel with "ant clean clean-integration jar" and the go to the folder with the deployer tests and execute "ant test" from it - that will run only the deployer's tests so it might consume less resources and go further the testcase chain without failures.
Anyway if you just want to produce a build of Virgo's kernel packaged as a distribution you can try "ant clean clean-integration jar package" - but that would only guarantee you that the compilation is successful.
You can also run the tests with "ant -Dci.build=true clean clean-integration test" this way the execution will proceed even if there are some test failures. The build will always be successful but keep in mind to check the "<virgo.kernel.home>\build-kernel\target\test-results\html\index.html " for errors after the run.
That's all i can think of at the moment. Get back to us if you have more trouble with the build.
Best Regards
Borislav
[Updated on: Wed, 12 January 2011 18:44] Report message to a moderator
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.01701 seconds