Dear Wiki user, You have subscribed to a wiki page or wiki category on "Shale Wiki" for change notification.
The following page has been changed by Hermod Opstvedt: http://wiki.apache.org/shale/ShaleAndClayTutorial ------------------------------------------------------------------------------ After running this command a couple of files and a directory will be created, that is need for Eclipse. Your layout should look something like this: - attachement:shaleclaydir.jpg + attachment:shaleclaydir.jpg Start Eclipse and open a workspace that points to C:\My projects\ShaleClay (or wherever you chose as a workspace for this project) @@ -47, +47 @@ Choose âFile->Importâ. In the next dialog select "General-Exisiting projects into workspace" - attachement:shaleclaydir2.jpg + attachment:shaleclaydir2.jpg You should the get the following: - attachement:shaleclaydir3.jpg + attachment:shaleclaydir3.jpg In the field "Select root directory" enter the name of you workspace or use the âBrowse..â button to navigate to it. Eclipse should now list all available projects. Select the ShaleClay project and hit the âFinishâ button. You may see a red cross on your projectname if you have not defined the maven classpath variable âM2_REPOâ. You ca add it under "Window-preferences" and then "Java-Build Path-Classpath Variables" - attachement:shaleclay4.jpg + attachment:shaleclay4.jpg Press the "New..." button. In the next dialog type inn M2_REPO in the name field and in the âPath:â field you enter the path to your local Maven2 repository. Press "Ok" and "Ok" again in the next dialog. - attachement:shaleclay5.jpg + attachment:shaleclay5.jpg Eclipse will then inform you that it has to rebuild the workspace. Press the "Yes" button. If you still have a re cross after it has recompiled, check the default Java version in Eclipse. If you have Java5 as standard the cause is the compiler-level is mismatched with what Maven set when it generated the project. Go to the problems view, right click on the message and choose âQuick Fixâ - attachement:shaleclay6.jpg + attachment:shaleclay6.jpg Select "Change Java compiler level to 1.4" and press âOkâ. Your project should now compile ok. Now comes the time to look at the project it self and how it is organized. If you expand your project it should look something like this: - attachement:shaleclay7.jpg + attachment:shaleclay7.jpg In the Java sourcefolder (src/main/java) under the packagename you provided you should find two classes: Person og TestVC. @@ -92, +92 @@ In the folder âWEB-INFâ we find all the important configurationfiles. - attachement:shaleclay8.jpg + attachment:shaleclay8.jpg Lets take a closer look at these, starting with web.xml where we find these important declarations: