[Mav-user] NoClassDefFoundError and I have all the right jar files

2010-04-22 Thread Angela Day
Thanks for the idea. I tried lowering the jdom, with no success. Any other suggestions would be really appreciated.Thanks,Angela DayNational Autism Association of Central Texashttp://www.naacentraltexas.orgFrom: Angela Day akc...@yahoo.comTo: mav-user@lists.sourceforge.netSent: Wed, April 21, 2010 3:40:44 PMSubject: NoClassDefFoundError and I have all the right jar files
   I am getting the following error when I try to run my
 applicationjavax.servlet.ServletException: Servlet.init() for servlet dispatcher threw exception	org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)	org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)	org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:873)	org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)	org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)	org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)	org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
	java.lang.Thread.run(Thread.java:595)root cause java.lang.NoClassDefFoundError
	org.infohazard.maverick.flow.Loader.loadDocument(Loader.java:140)	org.infohazard.maverick.flow.Loader.init(Loader.java:88)	org.infohazard.maverick.Dispatcher.reloadConfig(Dispatcher.java:239)	tdhca.maverick.Dispatcher.reloadConfig(Dispatcher.java:287)	org.infohazard.maverick.Dispatcher.init(Dispatcher.java:159)	tdhca.maverick.Dispatcher.init(Dispatcher.java:309)	javax.servlet.GenericServlet.init(GenericServlet.java:212)	org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)	org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)	org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:873)	org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)	org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
	org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)	org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)	java.lang.Thread.run(Thread.java:595)I am running:Torque 3.3Java 1.5Maverick 2.2.4Ant 1.8.0Velocity 1.3Tomcat 5.5.28Eclipse 3.5.1JSP 1.2JDOM 1.1.1commonts_logging 1.1jdom 1.1.1commons-beanutils 1.7.0commons-collections 3.2Any help you can give would be greatly appreciated!Thanks,Angela DayNational Autism Association of Central Texashttp://www.naacentraltexas.org
   
--
___
%(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] NoClassDefFoundError and I have all the right jar files

2010-04-22 Thread Jeff Schnitzer
Without knowing what's in your modified Maverick jar, it's impossible for
anyone to help :-(

Find out what's at line 140 of Loader.java.  Decompile the code with JD in
Eclipse if you have to.

Jeff

On Thu, Apr 22, 2010 at 8:24 AM, Angela Day akc...@yahoo.com wrote:

 Thanks for the idea.  I tried lowering the jdom, with no success.   Any
 other suggestions would be really appreciated.

 Thanks,

 Angela Day

 National Autism Association of Central Texas

 http://www.naacentraltexas.org




 --
 *From:* Angela Day akc...@yahoo.com
 *To:* mav-user@lists.sourceforge.net
 *Sent:* Wed, April 21, 2010 3:40:44 PM
 *Subject:* NoClassDefFoundError and I have all the right jar files




 I am getting the following error when I try to run my application

 javax.servlet.ServletException: Servlet.init() for servlet dispatcher threw 
 exception
   
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
   
 org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
   
 org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:873)
   
 org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
   org.apache.tomcat.util.net 
 http://org.apache.tomcat.util.net.PoolTcpEndpoint.pro.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
   org.apache.tomcat.util.net 
 http://org.apache.tomcat.util.net.LeaderFollowerWorkerThread.ru.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
   
 org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)

   java.lang.Thread.run(Thread.java:595)

 *root cause*

 java.lang.NoClassDefFoundError

   org.infohazard.maverick.flow.Loader.loadDocument(Loader.java:140)
   org.infohazard.maverick.flow.Loader.init(Loader.java:88)
   org.infohazard.maverick.Dispatcher.reloadConfig(Dispatcher.java:239)
   tdhca.maverick.Dispatcher.reloadConfig(Dispatcher.java:287)
   org.infohazard.maverick.Dispatcher.init(Dispatcher.java:159)
   tdhca.maverick.Dispatcher.init(Dispatcher.java:309)
   javax.servlet.GenericServlet.init(GenericServlet.java:212)
   
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
   
 org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
   
 org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:873)
   
 org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
   
 org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)

   
 org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
   
 org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
   java.lang.Thread.run(Thread.java:595)


 I am running:

 Torque 3.3
 Java 1.5
 Maverick 2.2.4
 Ant 1.8.0
 Velocity 1.3
 Tomcat 5.5.28
 Eclipse 3.5.1
 JSP 1.2
 JDOM 1.1.1
 commonts_logging 1.1
 jdom 1.1.1
 commons-beanutils 1.7.0
 commons-collections 3.2

 Any help you can give would be greatly appreciated!

 Thanks,


 Angela Day

 National Autism Association of Central Texas

 http://www.naacentraltexas.org








 --

 ___
 %(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/

--
___
%(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] NoClassDefFoundError and I have all the right jar files

2010-04-22 Thread Eelco Hillenius
Are there more logs you can share? Anything that points to what class it is
trying to locate? I don't work with Tomcat often, but remember that
sometimes things get scattered throughout multiple logs.

Eelco

On Thu, Apr 22, 2010 at 8:24 AM, Angela Day akc...@yahoo.com wrote:

 Thanks for the idea.  I tried lowering the jdom, with no success.   Any
 other suggestions would be really appreciated.

 Thanks,

 Angela Day

 National Autism Association of Central Texas

 http://www.naacentraltexas.org




 --
 *From:* Angela Day akc...@yahoo.com
 *To:* mav-user@lists.sourceforge.net
 *Sent:* Wed, April 21, 2010 3:40:44 PM
 *Subject:* NoClassDefFoundError and I have all the right jar files




 I am getting the following error when I try to run my application

 javax.servlet.ServletException: Servlet.init() for servlet dispatcher threw 
 exception
   
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
   
 org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)

   
 org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:873)
   
 org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
   org.apache.tomcat.util.net 
 http://org.apache.tomcat.util.net.PoolTcpEndpoint.pro.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)

   org.apache.tomcat.util.net 
 http://org.apache.tomcat.util.net.LeaderFollowerWorkerThread.ru.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
   
 org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)


   java.lang.Thread.run(Thread.java:595)

 *root cause*

 java.lang.NoClassDefFoundError

   org.infohazard.maverick.flow.Loader.loadDocument(Loader.java:140)
   org.infohazard.maverick.flow.Loader.init(Loader.java:88)
   org.infohazard.maverick.Dispatcher.reloadConfig(Dispatcher.java:239)
   tdhca.maverick.Dispatcher.reloadConfig(Dispatcher.java:287)

   org.infohazard.maverick.Dispatcher.init(Dispatcher.java:159)
   tdhca.maverick.Dispatcher.init(Dispatcher.java:309)
   javax.servlet.GenericServlet.init(GenericServlet.java:212)
   
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)

   
 org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
   
 org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:873)
   
 org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)

   
 org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)

   
 org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
   
 org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
   java.lang.Thread.run(Thread.java:595)


 I am running:

 Torque 3.3
 Java 1.5
 Maverick 2.2.4
 Ant 1.8.0
 Velocity 1.3
 Tomcat 5.5.28
 Eclipse 3.5.1
 JSP 1.2
 JDOM 1.1.1
 commonts_logging 1.1
 jdom 1.1.1
 commons-beanutils 1.7.0
 commons-collections 3.2

 Any help you can give would be greatly appreciated!

 Thanks,


 Angela Day

 National Autism Association of Central Texas

 http://www.naacentraltexas.org








 --

 ___
 %(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/

--
___
%(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/

[Mav-user] NoClassDefFoundError and I have all the right jar files

2010-04-22 Thread Angela Day
I didn't change maverick.  Just pulled in the jar file, that is all.  I am 
using it as-is  maverick.  The log file doesn't have any error messages but 
stops just before reading the maverick file.

Here is the log file:
851304 2010-04-22 10:31:55,585 [http-8080-Processor23] DEBUG 
tdhca.maverick.Dispatcher  - Database is DEV
851304 2010-04-22 10:31:55,585 [http-8080-Processor23] INFO  
org.infohazard.maverick.Dispatcher  - Starting configuration load
851304 2010-04-22 10:31:55,585 [http-8080-Processor23] INFO  
org.infohazard.maverick.Dispatcher  - Loading config from 
jndi:/localhost/alligator/WEB-INF/alligator-maverick.xml
851381 2010-04-22 10:31:55,662 [http-8080-Processor23] INFO  
org.infohazard.maverick.flow.MasterFactory  - Transform factory for document 
is org.infohazard.maverick.transform.DocumentTransformFactory
851381 2010-04-22 10:31:55,662 [http-8080-Processor23] INFO  
org.infohazard.maverick.flow.MasterFactory  - Transform factory for xslt is 
org.infohazard.maverick.transform.XSLTransformFactory
851381 2010-04-22 10:31:55,662 [http-8080-Processor23] INFO  
org.infohazard.maverick.flow.MasterFactory  - View factory for document is 
org.infohazard.maverick.view.DocumentViewFactory
851381 2010-04-22 10:31:55,662 [http-8080-Processor23] INFO  
org.infohazard.maverick.flow.MasterFactory  - View factory for redirect is 
org.infohazard.maverick.view.RedirectViewFactory
851381 2010-04-22 10:31:55,662 [http-8080-Processor23] INFO  
org.infohazard.maverick.flow.MasterFactory  - View factory for trivial is 
org.infohazard.maverick.view.TrivialViewFactory
851381 2010-04-22 10:31:55,662 [http-8080-Processor23] INFO  
org.infohazard.maverick.flow.MasterFactory  - View factory for null is 
org.infohazard.maverick.view.NullViewFactory

Here is the maverick.xml file
?xml version=1.0?
!--
$Id: alligator-maverick.xml,v 1.250 2009/11/02 21:07:53 eturner Exp $
 --
 
maverick version=2.0 default-view-type=document
views
view id=default type=redirect path=PostLogin.m/
view id=error path=common/error.vm/
/views
commands

!-- login, logout and change password commands --

command name=Login
controller class=tdhca.common.ctl.Login/
view name=error path=/common/login.vm
param name=title value=Login/
param name=focus value=userId/
/view
view name=default type=redirect ref=default/
view name=success type=null/
/command

command name=Logout
controller class=tdhca.common.ctl.Logout/
view name=success type=redirect ref=default
param name=title value=Logout/
/view
/command

command name=PermissionDenied
controller class=tdhca.admin.ctl.PermissionDenied/
view name=success path=/common/permissionDenied.vm/
/command

command name=ChangePassword
controller class=tdhca.common.ctl.ChangePassword/
view name=error path=/common/changePassword.vm
param name=title value=Change Password/
param name=focus value=oldPassword/
param name=system value=contract/
/view
view name=default type=redirect ref=default/
view name=success path=/common/message.vm
param name=title value=Change Password/
/view
/command

command name=FundSourceList
controller class=tdhca.alligator.ctl.FundSourceList/
view name=success path=/fundsource/overview.vm
param name=title value=Fund Source List/
/view
/command
command name=FundTree
controller class=tdhca.alligator.ctl.FundTree/
view name=success path=/shared/tree.vm
param name=title value=Fund Hierarchy/
/view
/command
command name=FundSourceContext
controller class=tdhca.alligator.ctl.FundSourceTransaction/
view name=success path=/fundsource/transactionStep1.vm
param name=title value=Fund Source Transaction/   
 
/view
view name=error path=/fundsource/transactionStep1.vm
param name=title value=Error - Fund Source Transaction/   
 
/view
/command
command name=FundSourcePrepareTransaction
controller class=tdhca.alligator.ctl.FundSourceTransaction/
view name=success path=/fundsource/transactionStep2.vm
param name=title value=Fund Source Transaction - Step 2/  
  
/view
view name=error path=/fundsource/transactionStep1.vm
param name=title value=/
/view
/command
...   
   

Re: [Mav-user] NoClassDefFoundError and I have all the right jar files

2010-04-22 Thread Jeff Schnitzer
There is considerable mystery here, because the NoClassDefFoundError
in your stack trace was clearly thrown out of Loader.java line 140.
This is not a valid line of code.  You can see for yourself, line 140
is a comment:

http://mav.cvs.sourceforge.net/viewvc/mav/maverick/src/java/org/infohazard/maverick/flow/Loader.java?revision=1.17view=markup

I don't know how to explain this inconsistency, but I can tell you how
I would solve your problem:

Install the JD plugin for Eclipse:

http://java.decompiler.free.fr/

You simply open the Loader class using the Type finder and you will
see the decompiled source code annotated with line numbers.  You can
see what is *actually* at line #140 and that will hopefully provide
further clue as to what classes are missing.

Jeff

On Thu, Apr 22, 2010 at 9:50 AM, Angela Day akc...@yahoo.com wrote:
 I didn't change maverick.  Just pulled in the jar file, that is all.  I am
 using it as-is  maverick.  The log file doesn't have any error messages but
 stops just before reading the maverick file.

 Here is the log file:
 851304 2010-04-22 10:31:55,585 [http-8080-Processor23] DEBUG
 tdhca.maverick.Dispatcher  - Database is DEV
 851304 2010-04-22 10:31:55,585 [http-8080-Processor23] INFO
 org.infohazard.maverick.Dispatcher  - Starting configuration load
 851304 2010-04-22 10:31:55,585 [http-8080-Processor23] INFO
 org.infohazard.maverick.Dispatcher  - Loading config from
 jndi:/localhost/alligator/WEB-INF/alligator-maverick.xml
 851381 2010-04-22 10:31:55,662 [http-8080-Processor23] INFO
 org.infohazard.maverick.flow.MasterFactory  - Transform factory for
 document is org.infohazard.maverick.transform.DocumentTransformFactory
 851381 2010-04-22 10:31:55,662 [http-8080-Processor23] INFO
 org.infohazard.maverick.flow.MasterFactory  - Transform factory for xslt
 is org.infohazard.maverick.transform.XSLTransformFactory
 851381 2010-04-22 10:31:55,662 [http-8080-Processor23] INFO
 org.infohazard.maverick.flow.MasterFactory  - View factory for document is
 org.infohazard.maverick.view.DocumentViewFactory
 851381 2010-04-22 10:31:55,662 [http-8080-Processor23] INFO
 org.infohazard.maverick.flow.MasterFactory  - View factory for redirect is
 org.infohazard.maverick.view.RedirectViewFactory
 851381 2010-04-22 10:31:55,662 [http-8080-Processor23] INFO
 org.infohazard.maverick.flow.MasterFactory  - View factory for trivial is
 org.infohazard.maverick.view.TrivialViewFactory
 851381 2010-04-22 10:31:55,662 [http-8080-Processor23] INFO
 org.infohazard.maverick.flow.MasterFactory  - View factory for null is
 org.infohazard.maverick.view.NullViewFactory

 Here is the maverick.xml file
 ?xml version=1.0?
 !--
     $Id: alligator-maverick.xml,v 1.250 2009/11/02 21:07:53 eturner Exp $
  --

 maverick version=2.0 default-view-type=document
     views
         view id=default type=redirect path=PostLogin.m/
         view id=error path=common/error.vm/
     /views
     commands

         !-- login, logout and change password commands --

         command name=Login
             controller class=tdhca.common.ctl.Login/
             view name=error path=/common/login.vm
                 param name=title value=Login/
                 param name=focus value=userId/
             /view
             view name=default type=redirect ref=default/
             view name=success type=null/
         /command

         command name=Logout
             controller class=tdhca.common.ctl.Logout/
             view name=success type=redirect ref=default
                 param name=title value=Logout/
             /view
         /command

         command name=PermissionDenied
             controller class=tdhca.admin.ctl.PermissionDenied/
             view name=success path=/common/permissionDenied.vm/
         /command

         command name=ChangePassword
             controller class=tdhca.common.ctl.ChangePassword/
             view name=error path=/common/changePassword.vm
                 param name=title value=Change Password/
                 param name=focus value=oldPassword/
                 param name=system value=contract/
             /view
             view name=default type=redirect ref=default/
             view name=success path=/common/message.vm
                 param name=title value=Change Password/
             /view
         /command

         command name=FundSourceList
             controller class=tdhca.alligator.ctl.FundSourceList/
             view name=success path=/fundsource/overview.vm
                 param name=title value=Fund Source List/

             /view
         /command
         command name=FundTree
             controller class=tdhca.alligator.ctl.FundTree/
             view name=success path=/shared/tree.vm
                 param name=title value=Fund Hierarchy/
             /view
         /command
         command name=FundSourceContext
             controller class=tdhca.alligator.ctl.FundSourceTransaction/
             view name=success 

Re: [Mav-user] NoClassDefFoundError and I have all the right jar files

2010-04-22 Thread Eelco Hillenius
Any chance you might have another maverick jar in your class path somehow?

Eelco

--
___
%(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/


[Mav-user] NoClassDefFoundError and I have all the right jar files

2010-04-22 Thread Angela Day
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 */   

[Mav-user] NoClassDefFoundError and I have all the right jar files

2010-04-22 Thread Angela Day
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: mav-user-requ...@lists.sourceforge.net 
mav-user-requ...@lists.sourceforge.net
To: mav-user@lists.sourceforge.net
Sent: Thu, April 22, 2010 3:39:37 PM
Subject: Mav-user Digest, Vol 2, Issue 6

Send Mav-user mailing list submissions to
mav-user@lists.sourceforge.net

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
mav-user-requ...@lists.sourceforge.net

You can reach the person managing the list at
mav-user-ow...@lists.sourceforge.net

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 jarfiles
  (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 eelco.hillen...@gmail.com
Subject: Re: [Mav-user] NoClassDefFoundError and I have all the right
jarfiles
To: Discussion about using the maverick MVC framework
mav-user@lists.sourceforge.net
Message-ID:
m2vceb609d81004221036tb4ca5048lbafc77f3202e6...@mail.gmail.com
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 akc...@yahoo.com
Subject: [Mav-user] NoClassDefFoundError and I have all the right jar
files
To: mav-user@lists.sourceforge.net
Message-ID: 419446.72756...@web33302.mail.mud.yahoo.com
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

Re: [Mav-user] NoClassDefFoundError and I have all the right jar files

2010-04-21 Thread Jeff Schnitzer
Well this is a blast from the past.

It's hard to tell what's going on here since the reported line number
(Loader:140) doesn't actually point at real code.  Have you customized the
Maverick source?

Clearly there is something missing on the classpath.  Perhaps JDOM had an
incompatible change... try the 0.9 version?

Jeff

On Wed, Apr 21, 2010 at 1:40 PM, Angela Day akc...@yahoo.com wrote:

  I am getting the following error when I try to run my application

 javax.servlet.ServletException: Servlet.init() for servlet dispatcher threw 
 exception
   
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
   
 org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
   
 org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:873)
   
 org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
   
 org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
   
 org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
   
 org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
   java.lang.Thread.run(Thread.java:595)

 *root cause*

 java.lang.NoClassDefFoundError

   org.infohazard.maverick.flow.Loader.loadDocument(Loader.java:140)
   org.infohazard.maverick.flow.Loader.init(Loader.java:88)
   org.infohazard.maverick.Dispatcher.reloadConfig(Dispatcher.java:239)
   tdhca.maverick.Dispatcher.reloadConfig(Dispatcher.java:287)
   org.infohazard.maverick.Dispatcher.init(Dispatcher.java:159)
   tdhca.maverick.Dispatcher.init(Dispatcher.java:309)
   javax.servlet.GenericServlet.init(GenericServlet.java:212)
   
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
   
 org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
   
 org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:873)
   
 org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
   
 org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)

   
 org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
   
 org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
   java.lang.Thread.run(Thread.java:595)


 I am running:

 Torque 3.3
 Java 1.5
 Maverick 2.2.4
 Ant 1.8.0
 Velocity 1.3
 Tomcat 5.5.28
 Eclipse 3.5.1
 JSP 1.2
 JDOM 1.1.1
 commonts_logging 1.1
 jdom 1.1.1
 commons-beanutils 1.7.0
 commons-collections 3.2

 Any help you can give would be greatly appreciated!

 Thanks,


 Angela Day

 National Autism Association of Central Texas

 http://www.naacentraltexas.org





 --

 ___
 %(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/

--
___
%(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/