NoClassDefFoundError and I have all the right jar files
Angela Day <[email protected]> Thu, 22 Apr 2010 13:54:24 -0700 (PDT)
| Newsgroups | gmane.comp.web.maverick.general |
|---|---|
| Message-ID | <[email protected]> |
--===============1987812781962120321== Content-Type: multipart/alternative; boundary="0-2099606752-1271969664=:81360" --0-2099606752-1271969664=:81360 Content-Type: text/plain; charset=us-ascii That was it. Under webapps, I still had both copies of maverick jars. I was so focused on JDOM, I didn't think to look for two copies of maverick. I had looked for that in the lib directory in my source, but didn't think to look under webapps. Thanks for your help everyone. Angela Day National Autism Association of Central Texas http://www.naacentraltexas.org ________________________________ From: "[email protected]" <[email protected]> To: [email protected] Sent: Thu, April 22, 2010 3:39:37 PM Subject: Mav-user Digest, Vol 2, Issue 6 Send Mav-user mailing list submissions to [email protected] To subscribe or unsubscribe via the World Wide Web, visit https://lists.sourceforge.net/lists/listinfo/mav-user or, via email, send a message with subject or body 'help' to [email protected] You can reach the person managing the list at [email protected] When replying, please edit your Subject line so it is more specific than "Re: Contents of Mav-user digest..." Today's Topics: 1. Re: NoClassDefFoundError and I have all the right jar files (Eelco Hillenius) 2. NoClassDefFoundError and I have all the right jar files (Angela Day) ---------------------------------------------------------------------- Message: 1 Date: Thu, 22 Apr 2010 10:36:01 -0700 From: Eelco Hillenius <[email protected]> Subject: Re: [Mav-user] NoClassDefFoundError and I have all the right jar files To: Discussion about using the maverick MVC framework <[email protected]> Message-ID: <[email protected]> Content-Type: text/plain; charset=ISO-8859-1 Any chance you might have another maverick jar in your class path somehow? Eelco ------------------------------ Message: 2 Date: Thu, 22 Apr 2010 13:39:29 -0700 (PDT) From: Angela Day <[email protected]> Subject: [Mav-user] NoClassDefFoundError and I have all the right jar files To: [email protected] Message-ID: <[email protected]> Content-Type: text/plain; charset="us-ascii" It looks like it is failing on a call to a jdom Document or Element but I have jdom in the lib directory with maverick and everything else. Element and Document are definitely classes in the jar file. I am really stuck. It is failing on line 140. I would really appreciate some more ideas. What am I missing? Thanks, Angela /* */ package org.infohazard.maverick.flow; /* */ /* */ import java.util.HashMap; /* */ import java.util.Iterator; /* */ import java.util.List; /* */ import java.util.Map; /* */ import javax.servlet.ServletConfig; /* */ import org.apache.commons.logging.Log; /* */ import org.apache.commons.logging.LogFactory; /* */ import org.infohazard.maverick.transform.DocumentTransformFactory; /* */ import org.infohazard.maverick.transform.XSLTransformFactory; /* */ import org.infohazard.maverick.util.XML; /* */ import org.infohazard.maverick.view.DocumentViewFactory; /* */ import org.infohazard.maverick.view.NullViewFactory; /* */ import org.infohazard.maverick.view.RedirectViewFactory; /* */ import org.infohazard.maverick.view.TrivialViewFactory; /* */ import org.jdom.Document; /* */ import org.jdom.Element; /* */ /* */ public class Loader /* */ { /* */ protected static final String TAG_MODULES = "modules"; /* */ protected static final String TAG_VIEWFACTORY = "view-factory"; /* */ protected static final String TAG_CONTROLLERFACTORY = "controller-factory"; /* */ protected static final String TAG_TRANSFORMFACTORY = "transform-factory"; /* */ protected static final String TAG_SHUNTFACTORY = "shunt-factory"; /* */ protected static final String ATTR_PROVIDER = "provider"; /* */ protected static final String TAG_COMMANDS = "commands"; /* */ protected static final String TAG_COMMAND = "command"; /* */ protected static final String ATTR_COMMAND_NAME = "name"; /* */ protected static final String TAG_VIEWS = "views"; /* */ protected static final String PARAM_DEFAULT_VIEW_TYPE = "default-view-type"; /* */ protected static final String PARAM_DEFAULT_TRANSFORM_TYPE = "default-transform-type"; /* 57 */ private static Log log = LogFactory.getLog(Loader.class); /* */ /* 60 */ protected Map commands = new HashMap(); /* */ protected ServletConfig servletCfg; /* */ protected MasterFactory masterFact; /* */ protected ViewRegistry viewReg; /* */ protected CommandFactory commandFact; /* */ /* */ public Loader(Document doc, ServletConfig dispatcherConfig) /* */ throws ConfigException /* */ { /* 82 */ this.servletCfg = dispatcherConfig; /* 83 */ this.masterFact = new MasterFactory(dispatcherConfig); /* */ /* 87 */ this.viewReg = new ViewRegistrySimple(this.masterFact); /* 88 */ this.commandFact = new CommandFactory(this.viewReg); /* */ /* 90 */ setupCoreModules(); /* */ /* 92 */ loadDocument(doc); /* */ } /* */ /* */ public Map getCommands() /* */ { /* 101 */ return this.commands; /* */ } /* */ /* */ protected void setupCoreModules() /* */ throws ConfigException /* */ { /* 111 */ TransformFactory docTrans = new DocumentTransformFactory(); /* 112 */ docTrans.init(null, this.servletCfg); /* 113 */ this.masterFact.defineTransformFactory("document", docTrans); /* */ /* 115 */ TransformFactory xsltTrans = new XSLTransformFactory(); /* 116 */ xsltTrans.init(null, this.servletCfg); /* 117 */ this.masterFact.defineTransformFactory("xslt", xsltTrans); /* */ /* 120 */ ViewFactory document = new DocumentViewFactory(); /* 121 */ document.init(null, this.servletCfg); /* 122 */ this.masterFact.defineViewFactory("document", document); /* */ /* 124 */ ViewFactory redirect = new RedirectViewFactory(); /* 125 */ redirect.init(null, this.servletCfg); /* 126 */ this.masterFact.defineViewFactory("redirect", redirect); /* */ /* 128 */ ViewFactory trivial = new TrivialViewFactory(); /* 129 */ trivial.init(null, this.servletCfg); /* 130 */ this.masterFact.defineViewFactory("trivial", trivial); /* */ /* 132 */ ViewFactory nullViewFact = new NullViewFactory(); /* 133 */ nullViewFact.init(null, this.servletCfg); /* 134 */ this.masterFact.defineViewFactory("null", nullViewFact); /* */ } /* */ /* */ protected void loadDocument(Document doc) /* */ throws ConfigException /* */ { /* 144 */ Element root = doc.getRootElement(); /* */ /* 147 */ String defaultTransformType = XML.getValue(root, "default-transform-type"); /* 148 */ if (defaultTransformType != null) { /* 149 */ this.masterFact.setDefaultTransformType(defaultTransformType); /* */ } /* */ /* 152 */ String defaultViewType = XML.getValue(root, "default-view-type"); /* 153 */ if (defaultViewType != null) { /* 154 */ this.masterFact.setDefaultViewType(defaultViewType); /* */ } /* */ /* 158 */ Iterator allModulesIt = root.getChildren("modules").iterator(); /* 159 */ while (allModulesIt.hasNext()) /* */ { /* 161 */ Element modules = (Element)allModulesIt.next(); /* 162 */ loadModules(modules); /* */ } /* */ /* 166 */ Iterator allViewsIt = root.getChildren("views").iterator(); /* 167 */ while (allViewsIt.hasNext()) /* */ { /* 169 */ Element viewsNode = (Element)allViewsIt.next(); /* 170 */ this.viewReg.defineGlobalViews(viewsNode); /* */ } /* */ /* 174 */ Iterator allCommandsIt = root.getChildren("commands").iterator(); /* 175 */ while (allCommandsIt.hasNext()) /* */ { /* 177 */ Element commandsNode = (Element)allCommandsIt.next(); /* */ /* 179 */ Iterator commandIt = commandsNode.getChildren("command").iterator(); /* 180 */ while (commandIt.hasNext()) /* */ { /* 182 */ Element commandNode = (Element)commandIt.next(); /* */ /* 184 */ String commandName = commandNode.getAttributeValue("name"); /* */ /* 186 */ log.info("Creating command: " + commandName); /* */ /* 188 */ Command cmd = this.commandFact.createCommand(commandNode); /* */ /* 190 */ this.commands.put(commandName, cmd); /* */ } /* */ } /* */ } /* */ /* */ protected void loadModules(Element modulesNode) /* */ throws ConfigException /* */ { /* 202 */ ClassLoader classLoader = Thread.currentThread().getContextClassLoader(); /* 203 */ if (classLoader == null) /* */ { /* 205 */ classLoader = DefaultControllerFactory.class.getClassLoader(); /* */ } /* */ /* 209 */ this.masterFact.defineTransformFactories(modulesNode.getChildren("transform-factory")); /* 210 */ this.masterFact.defineViewFactories(modulesNode.getChildren("view-factory")); /* */ /* 212 */ Element shuntFactoryNode = modulesNode.getChild("shunt-factory"); /* 213 */ if (shuntFactoryNode != null) /* */ { /* 215 */ String providerName = shuntFactoryNode.getAttributeValue("provider"); /* */ /* 217 */ if (providerName == null) { /* 218 */ throw new ConfigException("Not a valid shunt factory node: " + XML.toString(shuntFactoryNode)); /* */ } /* */ /* */ ShuntFactory instance; /* */ try /* */ { /* 225 */ Class providerClass = classLoader.loadClass(providerName); /* 226 */ instance = (ShuntFactory)providerClass.newInstance(); /* */ } /* */ catch (Exception ex) /* */ { /* 230 */ throw new ConfigException("Unable to define shunt factory " + providerName, ex); /* */ } /* */ /* 234 */ log.info("Using shunt factory " + providerName); /* */ /* 236 */ instance.init(shuntFactoryNode, this.servletCfg); /* */ /* 239 */ this.viewReg = new ViewRegistryShunted(this.masterFact, instance); /* 240 */ this.commandFact.setViewRegistry(this.viewReg); /* */ } /* 242 */ Element controllerFactoryNode = modulesNode.getChild("controller-factory"); /* 243 */ if (controllerFactoryNode == null) /* */ return; /* 245 */ String providerName = controllerFactoryNode.getAttributeValue("provider"); /* */ /* 247 */ if (providerName == null) { /* 248 */ throw new ConfigException("Not a valid controller factory node: " + XML.toString(controllerFactoryNode)); /* */ } /* */ /* */ ControllerFactory instance; /* */ try /* */ { /* 255 */ Class providerClass = classLoader.loadClass(providerName); /* 256 */ instance = (ControllerFactory)providerClass.newInstance(); /* */ } /* */ catch (Exception ex) /* */ { /* 260 */ throw new ConfigException("Unable to define controller factory " + providerName, ex); /* */ } /* */ /* 264 */ log.info("Using controller factory " + providerName); /* */ /* 267 */ instance.init(controllerFactoryNode, this.servletCfg); /* */ /* 269 */ this.commandFact.setControllerFactory(instance); /* */ } /* */ } /* Location: C:\workspace\contract\lib\maverick-2.2.4.jar * Qualified Name: org.infohazard.maverick.flow.Loader * Java Class Version: 5 (49.0) * JD-Core Version: 0.5.3 -------------- next part -------------- An HTML attachment was scrubbed... ------------------------------ ------------------------------------------------------------------------------ ------------------------------ _______________________________________________ Mav-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mav-user End of Mav-user Digest, Vol 2, Issue 6 ************************************** --0-2099606752-1271969664=:81360 Content-Type: text/html; charset=us-ascii <html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:bookman old style,new york,times,serif;font-size:12pt">That was it. Under webapps, I still had both copies of maverick jars. I was so focused on JDOM, I didn't think to look for two copies of maverick. I had looked for that in the lib directory in my source, but didn't think to look under webapps.<br><br>Thanks for your help everyone.<br><div> </div><p><font color="#007f40" face="arial, helvetica, sans-serif" size="3">Angela Day</font></p><p><font color="#007f40" face="arial, helvetica, sans-serif" size="3">National Autism Association of Central Texas<br></font></p><p><font color="#007f40" face="arial, helvetica, sans-serif" size="3"><span><a target="_blank" href ="http://www.naacentraltexas.org">http://www.naacentraltexas.org</a></span></font></p><p><font size="3"><br></font></p><p></p><div><br></div><div style="font-family: bookman old style,new york,times,serif; font-size: 12pt;"><br><div style="font-family: arial,helvetica,sans-serif; font-size: 12pt;"><font face="Tahoma" size="2"><hr size="1"><b><span style="font-weight: bold;">From:</span></b> "[email protected]" <[email protected]><br><b><span style="font-weight: bold;">To:</span></b> [email protected]<br><b><span style="font-weight: bold;">Sent:</span></b> Thu, April 22, 2010 3:39:37 PM<br><b><span style="font-weight: bold;">Subject:</span></b> Mav-user Digest, Vol 2, Issue 6<br></font><br> Send Mav-user mailing list submissions to<br> <a ymailto="mailto:[email protected]" href="mailto:[email protected]">[email protected]</a><br><br>To subscribe or unsubscribe via the World Wide Web, visit<br> <a href="https://lists.sourceforge.net/lists/listinfo/mav-user" target="_blank">https://lists.sourceforge.net/lists/listinfo/mav-user</a><br>or, via email, send a message with subject or body 'help' to<br> <a ymailto="mailto:[email protected]" href="mailto:[email protected]">[email protected]</a><br><br>You can reach the person managing the list at<br> <a ymailto="mailto:[email protected]" href="m ailto:[email protected]">[email protected]</a><br><br>When replying, please edit your Subject line so it is more specific<br>than "Re: Contents of Mav-user digest..."<br><br><br>Today's Topics:<br><br> 1. Re: NoClassDefFoundError and I have all the right jar files<br> (Eelco Hillenius)<br> 2. NoClassDefFoundError and I have all the right jar files<br> (Angela Day)<br><br><br>----------------------------------------------------------------------<br><br>Message: 1<br>Date: Thu, 22 Apr 2010 10:36:01 -0700<br>From: Eelco Hillenius <<a ymailto="mailto:[email protected]" href="mailto:[email protected]">[email protected]</a>><br>Subject: Re: [Mav-user] NoClassDefFoundError and I have all the right<br> jar files<br>To: Discussion about using the maverick MVC framework<br>   ; <<a ymailto="mailto:[email protected]" href="mailto:[email protected]">[email protected]</a>><br>Message-ID:<br> <<a ymailto="mailto:[email protected]" href="mailto:[email protected]">[email protected]</a>><br>Content-Type: text/plain; charset=ISO-8859-1<br><br>Any chance you might have another maverick jar in your class path somehow?<br><br>Eelco<br><br><br><br>------------------------------<br><br>Message: 2<br>Date: Thu, 22 Apr 2010 13:39:29 -0700 (PDT)<br>From: Angela Day <<a ymailto="mailto:[email protected]" href="mailto:[email protected]">[email protected]</a>><br>Subject: [Mav-user] NoClassDefFoundError and I have all the right jar <br> files<br>To: <a ymailto="mailto:[email protected]" href="mailto:[email protected]">[email protected]</a><br>Message-ID: <<a ymailto="mailto:[email protected]" href="mailto:[email protected]">[email protected]</a>><br>Content-Type: text/plain; charset="us-ascii"<br><br>It looks like it is failing on a call to a jdom Document or Element but I have jdom in the lib directory with maverick and everything else. Element and Document are definitely classes in the jar file. I am really stuck. It is failing on line 140. I would really appreciate some more ideas. What am I missing?<br>Thanks,<br>Angela<br><br>/* */ package org.infohazard.maverick.flow;<br>/* */ <br>/* */ import java.util.HashMap;<br>/* */ import java.util.Iterator;<br>/* */ import java.util.List;<br>/* */ import java.util.Map;<br>/* */ import javax.servlet.ServletConfig;<br>/* */ import org.apache.commons.logging.Log;<br>/* */ import org.apache.commons.logging.LogFactory;<br>/* */ import org.infohazard.maverick.transform.DocumentTransformFactory;<br>/* */ import org.infohazard.maverick.transform.XSLTransformFactory;<br>/* */ import org.infohazard.maverick.util.XML;<br>/* */ import org.infohazard.maverick.view.DocumentViewFactory;<br>/* */ import org.infohazard.maverick.view.NullViewFactory;<br>/* */ import org.infohazard.maverick.view.RedirectViewFactory;<br>/* */ import org.infohazard.maverick.view.TrivialViewFactory;<br>/* */ import org.jdom.D ocument;<br>/* */ import org.jdom.Element;<br>/* */ <br>/* */ public class Loader<br>/* */ {<br>/* */ protected static final String TAG_MODULES = "modules";<br>/* */ protected static final String TAG_VIEWFACTORY = "view-factory";<br>/* */ protected static final String TAG_CONTROLLERFACTORY = "controller-factory";<br>/* */ protected static final String TAG_TRANSFORMFACTORY = "transform-factory";<br>/* */ protected static final String TAG_SHUNTFACTORY = "shunt-factory";<br>/* */ protected static final String ATTR_PROVIDER = "provider";<br>/* */ protected static final String TAG_COMMANDS = "commands";<br>/* */ protected static final String TAG_COMMAND = "command";<br>/* */ protected static final String ATTR_COMMAND_N AME = "name";<br>/* */ protected static final String TAG_VIEWS = "views";<br>/* */ protected static final String PARAM_DEFAULT_VIEW_TYPE = "default-view-type";<br>/* */ protected static final String PARAM_DEFAULT_TRANSFORM_TYPE = "default-transform-type";<br>/* 57 */ private static Log log = LogFactory.getLog(Loader.class);<br>/* */ <br>/* 60 */ protected Map commands = new HashMap();<br>/* */ protected ServletConfig servletCfg;<br>/* */ protected MasterFactory masterFact;<br>/* */ protected ViewRegistry viewReg;<br>/* */ protected CommandFactory commandFact;<br>/* */ <br>/* */ public Loader(Document doc, ServletConfig dispatcherConfig)<br>/* */ throws ConfigException<br>/* */  ; {<br>/* 82 */ this.servletCfg = dispatcherConfig;<br>/* 83 */ this.masterFact = new MasterFactory(dispatcherConfig);<br>/* */ <br>/* 87 */ this.viewReg = new ViewRegistrySimple(this.masterFact);<br>/* 88 */ this.commandFact = new CommandFactory(this.viewReg);<br>/* */ <br>/* 90 */ setupCoreModules();<br>/* */ <br>/* 92 */ loadDocument(doc);<br>/* */ }<br>/* */ <br>/* */ public Map getCommands()<br>/* */ {<br>/* 101 */ return this.commands;<br>/* */ }<br>/* */ <br>/* */ protected void setupCoreModules()<br>/* */ throws ConfigException<br>/* */ {<br>/* 111 */&n bsp; TransformFactory docTrans = new DocumentTransformFactory();<br>/* 112 */ docTrans.init(null, this.servletCfg);<br>/* 113 */ this.masterFact.defineTransformFactory("document", docTrans);<br>/* */ <br>/* 115 */ TransformFactory xsltTrans = new XSLTransformFactory();<br>/* 116 */ xsltTrans.init(null, this.servletCfg);<br>/* 117 */ this.masterFact.defineTransformFactory("xslt", xsltTrans);<br>/* */ <br>/* 120 */ ViewFactory document = new DocumentViewFactory();<br>/* 121 */ document.init(null, this.servletCfg);<br>/* 122 */ this.masterFact.defineViewFactory("document", document);<br>/* */ <br>/* 124 */ ViewFactory redirect = new RedirectViewFactory();<br>/* 125 */ redirect.init(null, this.servletCfg);<br>/* 126 */ this.masterFact.defineViewFactory(" redirect", redirect);<br>/* */ <br>/* 128 */ ViewFactory trivial = new TrivialViewFactory();<br>/* 129 */ trivial.init(null, this.servletCfg);<br>/* 130 */ this.masterFact.defineViewFactory("trivial", trivial);<br>/* */ <br>/* 132 */ ViewFactory nullViewFact = new NullViewFactory();<br>/* 133 */ nullViewFact.init(null, this.servletCfg);<br>/* 134 */ this.masterFact.defineViewFactory("null", nullViewFact);<br>/* */ }<br>/* */ <br>/* */ protected void loadDocument(Document doc)<br>/* */ throws ConfigException<br>/* */ {<br>/* 144 */ Element root = doc.getRootElement();<br>/* */ <br>/* 147 */ String defaultTransformType = XML.getValue(root, "default-transform-type");<br>/* 148 */ if (def aultTransformType != null) {<br>/* 149 */ this.masterFact.setDefaultTransformType(defaultTransformType);<br>/* */ }<br>/* */ <br>/* 152 */ String defaultViewType = XML.getValue(root, "default-view-type");<br>/* 153 */ if (defaultViewType != null) {<br>/* 154 */ this.masterFact.setDefaultViewType(defaultViewType);<br>/* */ }<br>/* */ <br>/* 158 */ Iterator allModulesIt = root.getChildren("modules").iterator();<br>/* 159 */ while (allModulesIt.hasNext())<br>/* */ {<br>/* 161 */ Element modules = (Element)allModulesIt.next();<br>/* 162 */ loadModules(modules);<br>/* */ }<br>/* */ <br>/* 166 */ Iterator allViewsIt = root.getChildren("views").iterator ();<br>/* 167 */ while (allViewsIt.hasNext())<br>/* */ {<br>/* 169 */ Element viewsNode = (Element)allViewsIt.next();<br>/* 170 */ this.viewReg.defineGlobalViews(viewsNode);<br>/* */ }<br>/* */ <br>/* 174 */ Iterator allCommandsIt = root.getChildren("commands").iterator();<br>/* 175 */ while (allCommandsIt.hasNext())<br>/* */ {<br>/* 177 */ Element commandsNode = (Element)allCommandsIt.next();<br>/* */ <br>/* 179 */ Iterator commandIt = commandsNode.getChildren("command").iterator();<br>/* 180 */ while (commandIt.hasNext())<br>/* */ {<br>/* 182 */ Element commandNode = (Element)commandIt.next();<br>/* */ <br> /* 184 */ String commandName = commandNode.getAttributeValue("name");<br>/* */ <br>/* 186 */ <a target="_blank" href="http://log.info">log.info</a>("Creating command: " + commandName);<br>/* */ <br>/* 188 */ Command cmd = this.commandFact.createCommand(commandNode);<br>/* */ <br>/* 190 */ this.commands.put(commandName, cmd);<br>/* */ }<br>/* */ }<br>/* */ }<br>/* */ <br>/* */ protected void loadModules(Element modulesNode)<br>/* */ throws ConfigException<br>/* */ {<br>/* 202 */ ClassLoader classLoader = Thread.currentThread().getContextClassLoader();<br>/* 203 */ if (classLoader == null)<br>/* &n bsp; */ {<br>/* 205 */ classLoader = DefaultControllerFactory.class.getClassLoader();<br>/* */ }<br>/* */ <br>/* 209 */ this.masterFact.defineTransformFactories(modulesNode.getChildren("transform-factory"));<br>/* 210 */ this.masterFact.defineViewFactories(modulesNode.getChildren("view-factory"));<br>/* */ <br>/* 212 */ Element shuntFactoryNode = modulesNode.getChild("shunt-factory");<br>/* 213 */ if (shuntFactoryNode != null)<br>/* */ {<br>/* 215 */ String providerName = shuntFactoryNode.getAttributeValue("provider");<br>/* */ <br>/* 217 */ if (providerName == null) {<br>/* 218 */ throw new ConfigException("Not a valid shunt factory node: " + XML.toString(shuntFactoryNode));<br>/*&n bsp; */ }<br>/* */ <br>/* */ ShuntFactory instance;<br>/* */ try<br>/* */ {<br>/* 225 */ Class providerClass = classLoader.loadClass(providerName);<br>/* 226 */ instance = (ShuntFactory)providerClass.newInstance();<br>/* */ }<br>/* */ catch (Exception ex)<br>/* */ {<br>/* 230 */ throw new ConfigException("Unable to define shunt factory " + providerName, ex);<br>/* */ }<br>/* */ <br>/* 234 */ log.info("Using shunt factory " + providerName);<br>/* */ <br>/* 236 */ instance.init(shuntFactoryNode, this.servletCfg);<br>/*& nbsp; */ <br>/* 239 */ this.viewReg = new ViewRegistryShunted(this.masterFact, instance);<br>/* 240 */ this.commandFact.setViewRegistry(this.viewReg);<br>/* */ }<br>/* 242 */ Element controllerFactoryNode = modulesNode.getChild("controller-factory");<br>/* 243 */ if (controllerFactoryNode == null)<br>/* */ return;<br>/* 245 */ String providerName = controllerFactoryNode.getAttributeValue("provider");<br>/* */ <br>/* 247 */ if (providerName == null) {<br>/* 248 */ throw new ConfigException("Not a valid controller factory node: " + XML.toString(controllerFactoryNode));<br>/* */ }<br>/* */ <br>/* */ ControllerFactory instance;<br>/* */ try<br>/* */ {<br>/* 255 */ Class providerClass = classLoader.loadClass(providerName);<br>/* 256 */ instance = (ControllerFactory)providerClass.newInstance();<br>/* */ }<br>/* */ catch (Exception ex)<br>/* */ {<br>/* 260 */ throw new ConfigException("Unable to define controller factory " + providerName, ex);<br>/* */ }<br>/* */ <br>/* 264 */ log.info("Using controller factory " + providerName);<br>/* */ <br>/* 267 */ instance.init(controllerFactoryNode, this.servletCfg);<br>/* */ <br>/* 269 */ this.commandFact.setControllerFactory(instance);<br>/* */ }<br>/* */ }<br><br>/* Location: C:\workspace\contract\ lib\maverick-2.2.4.jar<br> * Qualified Name: org.infohazard.maverick.flow.Loader<br> * Java Class Version: 5 (49.0)<br> * JD-Core Version: 0.5.3<br>-------------- next part --------------<br>An HTML attachment was scrubbed...<br><br>------------------------------<br><br>------------------------------------------------------------------------------<br><br><br>------------------------------<br><br>_______________________________________________<br>Mav-user mailing list<br><a ymailto="mailto:[email protected]" href="mailto:[email protected]">[email protected]</a><br><a href="https://lists.sourceforge.net/lists/listinfo/mav-user" target="_blank">https://lists.sourceforge.net/lists/listinfo/mav-user</a><br><br><br>End of Mav-user Digest, Vol 2, Issue 6<br>**************************************<br></div></div> </div></body></html> --0-2099606752-1271969664=:81360-- --===============1987812781962120321== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------------ --===============1987812781962120321== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ %(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/ --===============1987812781962120321==--