[Mav-user] Can't get dispatcher to work
Up for a blast from the past? I am trying to run a very basic web app using Maverick mostly to learn about the MVC framework. However, I am currently stymied by an error that I keep getting. The dispatcher refuses to load. This is the error: java.lang.ClassNotFoundException: org.jdom.JDOMException Full stack trace: http://pastebin.com/Sv4bs4r1 I get this error on both Tomcat 6 and Tomcat 4.1.30, with both JDom 1.0 and the latest version. I have maverick.jar in my WEB-INF/lib folder and I have the library added to my build path. Here are snippets from my maverick.xml and web.xml, respectively: views view id=MyView path=home.jsp /view /views commands command name=cmd controller class=controllers.MyController/ view name=success path=success.jsp / view name=error path=failure.jsp / /command servlet display-nameMaverick Dispatcher/display-name servlet-namedispatcher/servlet-name servlet-classorg.infohazard.maverick.Dispatcher/servlet-class load-on-startup2/load-on-startup /servlet servlet-mapping servlet-namedispatcher/servlet-name url-pattern*.m/url-pattern /servlet-mapping If anyone can help I'd greatly appreciate it. -- Try before you buy = See our experts in action! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-dev2___ %(real_name)s mailing list %(real_name)s@%(host_name)s %(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s Archives are available at http://www.mail-archive.com/mav-user%40lists.sourceforge.net/
Re: [Mav-user] Can't get dispatcher to work
Well this is indeed a blast from the past! You seem to be missing jdom.jar from your classpath as well. There will be a version in your maverick distribution, or you can find the latest version here: http://www.jdom.org/ Are you actually contemplating Maverick or just doing research? Maverick is pretty dated, especially in an ajax-driven world. Post-Maverick I ended up developing http://tagonist.tigris.org/, which does most of what I needed from Maverick but in 500 lines of code... and now I use http://code.google.com/p/htmleasy/ + Cambridge for basic html rendering, although that tends to be fairly simple given that most data is rendered by javascript/ajax. Jeff On Mon, Jan 30, 2012 at 11:39 AM, Steven McGrew s...@urbancode.com wrote: Up for a blast from the past? I am trying to run a very basic web app using Maverick mostly to learn about the MVC framework. However, I am currently stymied by an error that I keep getting. The dispatcher refuses to load. This is the error: java.lang.ClassNotFoundException: org.jdom.JDOMException Full stack trace: http://pastebin.com/Sv4bs4r1 I get this error on both Tomcat 6 and Tomcat 4.1.30, with both JDom 1.0 and the latest version. I have maverick.jar in my WEB-INF/lib folder and I have the library added to my build path. Here are snippets from my maverick.xml and web.xml, respectively: views view id=MyView path=home.jsp /view /views commands command name=cmd controller class=controllers.MyController/ view name=success path=success.jsp / view name=error path=failure.jsp / /command servlet display-nameMaverick Dispatcher/display-name servlet-namedispatcher/servlet-name servlet-classorg.infohazard.maverick.Dispatcher/servlet-class load-on-startup2/load-on-startup /servlet servlet-mapping servlet-namedispatcher/servlet-name url-pattern*.m/url-pattern /servlet-mapping If anyone can help I'd greatly appreciate it. -- Try before you buy = See our experts in action! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-dev2 ___ %(real_name)s mailing list %(real_name)s@%(host_name)s %(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s Archives are available at http://www.mail-archive.com/mav-user%40lists.sourceforge.net/ -- Try before you buy = See our experts in action! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-dev2 ___ %(real_name)s mailing list %(real_name)s@%(host_name)s %(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s Archives are available at http://www.mail-archive.com/mav-user%40lists.sourceforge.net/
Re: [Mav-user] Can't get dispatcher to work
Well this is indeed a blast from the past! You seem to be missing jdom.jar from your classpath as well. There will be a version in your maverick distribution, or you can find the latest version here: http://www.jdom.org/ Also, sometimes you can have class path issues if you have duplicate jars with different versions in your class path, so I'd check for that as well. Finally, Tomcat can be funky when it comes to where you put these jars, so you may have to play around with putting it (only) in WEB-INF/lib or one of the Tomcat shared directories. Are you actually contemplating Maverick or just doing research? Maverick is pretty dated, especially in an ajax-driven world. Post-Maverick I ended up developing http://tagonist.tigris.org/, which does most of what I needed from Maverick but in 500 lines of code... and now I use http://code.google.com/p/htmleasy/ + Cambridge for basic html rendering, although that tends to be fairly simple given that most data is rendered by javascript/ajax. And my 2c on that is that for years I've used Wicket (and in fact are one of the core contributors) but nowadays stay clear of Java web frameworks altogether. I tend to use just plain HTTP services using Jersey/ JAXRS and JavaScript directly (e.g. using jQuery, though I might throw in a framework like Angular). The only thing left then is something to dispatch requests and handle security. I use Wicket for that, just because I know it well, though you could just use a servlet filter for it or a light framework like HTMLEasy, which seems like an excellent choice. Good luck, Eelco -- Try before you buy = See our experts in action! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-dev2 ___ %(real_name)s mailing list %(real_name)s@%(host_name)s %(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s Archives are available at http://www.mail-archive.com/mav-user%40lists.sourceforge.net/
Re: [Mav-user] Can't get dispatcher to work
I put jdom in my WEB-INF/lib folder as well. I assume that's what you meant? I still got the same error. I guess I could fiddle with the Tomcat shared directories but I'm not terribly optimistic about it. Pretty sure Tomcat already has jdom configured. This is just for research purposes only, to learn about the MVC framework and to teach others about it using a simple example. Since Maverick is lightweight and doesn't have unnecessary bells and whistles I decided to start with it. If I can't fix this relatively fast, then I'll go with tagonist. It looks like it's even better suited to what I want. On Mon, Jan 30, 2012 at 1:39 PM, Eelco Hillenius eelco.hillen...@gmail.comwrote: Well this is indeed a blast from the past! You seem to be missing jdom.jar from your classpath as well. There will be a version in your maverick distribution, or you can find the latest version here: http://www.jdom.org/ Also, sometimes you can have class path issues if you have duplicate jars with different versions in your class path, so I'd check for that as well. Finally, Tomcat can be funky when it comes to where you put these jars, so you may have to play around with putting it (only) in WEB-INF/lib or one of the Tomcat shared directories. Are you actually contemplating Maverick or just doing research? Maverick is pretty dated, especially in an ajax-driven world. Post-Maverick I ended up developing http://tagonist.tigris.org/, which does most of what I needed from Maverick but in 500 lines of code... and now I use http://code.google.com/p/htmleasy/ + Cambridge for basic html rendering, although that tends to be fairly simple given that most data is rendered by javascript/ajax. And my 2c on that is that for years I've used Wicket (and in fact are one of the core contributors) but nowadays stay clear of Java web frameworks altogether. I tend to use just plain HTTP services using Jersey/ JAXRS and JavaScript directly (e.g. using jQuery, though I might throw in a framework like Angular). The only thing left then is something to dispatch requests and handle security. I use Wicket for that, just because I know it well, though you could just use a servlet filter for it or a light framework like HTMLEasy, which seems like an excellent choice. Good luck, Eelco -- Try before you buy = See our experts in action! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-dev2 ___ %(real_name)s mailing list %(real_name)s@%(host_name)s %(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s Archives are available at http://www.mail-archive.com/mav-user%40lists.sourceforge.net/ -- Try before you buy = See our experts in action! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-dev2___ %(real_name)s mailing list %(real_name)s@%(host_name)s %(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s Archives are available at http://www.mail-archive.com/mav-user%40lists.sourceforge.net/