David H. DeWolf wrote: > Looks like you don't have the castor mapping file in your classpath. > I'm not an eclipse user so I can't tell you what to do to add it into > your project.
and Nico Max wrote: > Make sure that the 'portlet.xml' is on the classpath at runtime. The > simplest way to achieve this is to have this file in the Java source path > as Eclipse copies all resources automatically into the build dir when > compiling. Thank you! That was just enough clue to solve the first problem. It turns out that the maven-created Eclipse project file did not include src/conf in the source build path. Adding that allows the pluto-descriptors unit tests to run "all green". (Used Eclipse: Project -> Properties -> Java buils path -> source) ... I've also identified that the "Cannot find class junit.framework.testcase on the build path" problems were caused (unsurprisingly) by the junit jar not being on the classpath. Adding junit in the Maven repo to the classpath for "testuite" and "pluto-deploy" projects, I now get "no tests found". Which leaves me wondering: are there any unit tests for the portal container as a whole, or are the manual browser-driven tests the whole story? Is pluto-descriptors really the only module with unit tests? Stepping back, are there any documents that describe how the various sub-projects relate to each other. I've found the architecture documents give a high-level view, but nothing that really helps me to identify how the various source modules relate to this. Are there any pointers or overview documents anywhere that I've overlooked? What I am hoping to do is use the Pluto container, and adapt the portal wrapper and other components, to create an automated test environment for WSRP developments. As such, I'd like to replace the HTTP front-end with a test driver, and portlet implementations to provide appropriate responses. I see there are some pieces in testsuite/src/java/org/apache/pluto/portalImpl/portlet/test that might provide some help with the latter. I think I'd be looking to replace the servlet logic in or about portal/src/java/org/apache/pluto/portalImpl for the former, but there are many modules here whose purpose is not immediately apparent. Any further pointers would be appreciated. #g -- Graham Klyne For email: http://www.ninebynine.org/#Contact
