Subject: Re: Struts Validator NoClassDefFoundError From: "Pim" <[EMAIL PROTECTED]> === Hi Craig,
Check the version of the validator. Use the version 20020114, it's the latest on Davids site. I had similar problems, this was caused because I used version 0.5 Pim "Craig Raw" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]... > Hi, > > I am using the Struts Validator in my webapp but encounter the following > error on each page that tries to use it. > > java.lang.NoClassDefFoundError: > org/apache/struts/validator/action/ValidatorForm > at java.lang.ClassLoader.defineClass0(Native Method) > at java.lang.ClassLoader.defineClass(ClassLoader.java:509) > .... > > My WEB-INF/lib has the following jars > commons-beanutils.jar > commons-collections.jar > commons-digester.jar > jakarta-regexp-1.2.jar > struts.jar > struts-validator.jar > tiles.jar > > The ValidatorForm is thus clearly in the webapp classpath. > I have read this may be because of the ValidatorForm class appearing > twice on my system classpath, but this does not seem to be the case. My > system classpath on JBoss is: > > c:\Java\j2sdk1.4.0/lib/tools.jar > run.jar > ../lib/crimson.jar > /C:/var/jboss/log/ > /C:/var/jboss/lib/ext/activation.jar > /C:/var/jboss/lib/ext/castor-0.9.1.jar > /C:/var/jboss/lib/ext/gnu-regexp-1.0.8.jar > /C:/var/jboss/lib/ext/hsql.jar > > /C:/var/jboss/lib/ext/idb.jar > /C:/var/jboss/lib/ext/jboss-j2ee.jar > /C:/var/jboss/lib/ext/jboss-management.jar > /C:/var/jboss/lib/ext/jboss.jar > /C:/var/jboss/lib/ext/jbosscx.jar > /C:/var/jboss/lib/ext/jbossmq.jar > /C:/var/jboss/lib/ext/jbosspool.jar > /C:/var/jboss/lib/ext/jbosssx.jar > /C:/var/jboss/lib/ext/jetty-service.jar > > /C:/var/jboss/lib/ext/jmxtools.jar > /C:/var/jboss/lib/ext/jndi.jar > /C:/var/jboss/lib/ext/jnpserver.jar > /C:/var/jboss/lib/ext/jpl-util-0_5b.jar > /C:/var/jboss/lib/ext/log4j.jar > /C:/var/jboss/lib/ext/mail.jar > /C:/var/jboss/lib/ext/mysql.jar > /C:/var/jboss/lib/ext/oswego-concurrent.jar > /C:/var/jboss/lib/ext/ots-jts_1.0.jar > /C:/var/jboss/lib/ext/tomcat-service.jar > /C:/var/jboss/lib/ext/tyrex-0.9.8.5.jar > > /C:/var/jboss/tmp/ > /C:/var/jboss/db/ > /C:/var/tomcat/lib/ant.jar > /C:/var/tomcat/lib/jasper.jar > /C:/var/tomcat/lib/servlet.jar > /C:/var/tomcat/lib/tools.jar > /C:/var/tomcat/lib/webserver.jar > > > The example war that came with the Validator seems to work fine, so it > must be a local issue to my deployment. > > Any ideas? > > Craig > > > > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>