Re: Struts Validator NoClassDefFoundError

2002-03-08 Thread @Basebeans.com

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]




Re: Struts Validator NoClassDefFoundError

2002-03-07 Thread David Winterfeldt

What version of the Struts Validator are you using? 
Package names were changed at some point from
com.wintecinc.struts.* to
org.apache.struts.validator.* (1/14/2002).  When this
was done, most of the validator was moved to the
Jakarta Commons Validator
(http://jakarta.apache.org/commons).  I would double
check the files/package names in the jar you have.

David

--- Craig Raw [EMAIL PROTECTED] wrote:
 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]
 


__
Do You Yahoo!?
Try FREE Yahoo! Mail - the world's greatest free email!
http://mail.yahoo.com/

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: Struts Validator NoClassDefFoundError

2002-03-07 Thread Craig Raw

I am using the commons-validator.jar from the Jakarta site. (Sorry,
missed this out when typing the contents of my WEB-INF/lib).

Since I only used the Validator for the first time after its movement to
Commons project, I doubt I have any old com.wintecinc.struts classes
around.

Craig

-Original Message-
From: David Winterfeldt [mailto:[EMAIL PROTECTED]] 
Sent: 07 March 2002 07:41 PM
To: Struts Users Mailing List
Subject: Re: Struts Validator NoClassDefFoundError

What version of the Struts Validator are you using? 
Package names were changed at some point from
com.wintecinc.struts.* to
org.apache.struts.validator.* (1/14/2002).  When this
was done, most of the validator was moved to the
Jakarta Commons Validator
(http://jakarta.apache.org/commons).  I would double
check the files/package names in the jar you have.

David

--- Craig Raw [EMAIL PROTECTED] wrote:
 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]
 


__
Do You Yahoo!?
Try FREE Yahoo! Mail - the world's greatest free email!
http://mail.yahoo.com/

--
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]