download the latest snapshot from the cvs:
check in the Navigator view if eclipse builds the classes under src/main/webapp/WEB-INF/classes
If not, rebuild the project.
adjust the source path if you would like to debug in eclipse.
make sure that your server.xml in <tomcathome>/conf looks like
19.03.2007 11:47:16 org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on http-8080 ... 2007-03-19 11:47:16,781 [main] INFO org.olat.core.servlets.BrasatoServlet - OLAT::INFO ^%^ I1 ^%^ org.olat.core.servlets ^%^ n/a ^%^ n/a ^%^ n/a ^%^ n/a ^%^ n/a ^%^ *** Initializing Brasato servlet 19.03.2007 11:47:17 org.springframework.core.io.support.PathMatchingResourcePatternResolver findPathMatchingResources INFO: Resolved location pattern [classpath*:**/_spring/coreconfig.xml] to resources [file [C:\development\workspace\mavenbrasato\src\main\webapp\WEB-INF\classes\org\olat\core\_spring\coreconfig.xml]] INFO: Creating shared instance of singleton bean 'ch.goodsolutions.services.user.bl.impl.UserSearchBLServiceImpl' ... INFO: Creating shared instance of singleton bean 'ch.goodsolutions.services.user.ui.impl.UserSearchUIServiceImpl' 2007-03-19 11:47:19,015 [main] INFO org.olat.core.service.impl.ServiceRegistryImpl - OLAT::INFO ^%^ I2 ^%^ org.olat.core.service.impl ^%^ n/a ^%^ n/a ^%^ n/a ^%^ n/a ^%^ n/a ^%^ SERVICE OK:ch.goodsolutions.services.user.bl.UserSearchBLService v1.0 description: a service that allows to search for a user 2007-03-19 11:47:19,015 [main] INFO org.olat.core.service.impl.ServiceRegistryImpl - OLAT::INFO ^%^ I3 ^%^ org.olat.core.service.impl ^%^ n/a ^%^ n/a ^%^ n/a ^%^ n/a ^%^ n/a ^%^ SERVICE OK:ch.goodsolutions.services.user.ui.UserSearchUIService v1.0 description: a service that allows to search for a user by offering a search form and a table of matching results to choose from 19.03.2007 11:47:19 org.apache.catalina.core.StandardHost getDeployer INFO: Create Host deployer for direct deployment ( non-jmx ) 19.03.2007 11:47:19 org.apache.coyote.http11.Http11Protocol start INFO: Starting Coyote HTTP/1.1 on http-8080 19.03.2007 11:47:19 org.apache.catalina.startup.Catalina start INFO: Server startup in 3422 ms
A good place to start looking at the code is by setting a breakpoint in class SessionDispatcher.java and follow the debugger.
Or open the class SimpleDemoController.java and set breakpoints to
1. the constructor
2. both event methods
protected void event(UserRequest ureq, Component source, Event event) {
// called when a component fires an event
}
protected void event(UserRequest ureq, Controller source, Event event) {
// called when a subcontroller (e.g. the dialogcontroller) fires an event
}
Check also the developers guide for explanations of the directory structure. And don't miss to walk through the Hello World Example for more information about how to start your first controller with a velocity template and internationalisation.