Hi Jeff-
from my experience ClassNot FoundException can happen when
1)the class is not found by any of the CL's on any CLASSPATH *not physically 
there*
2)You've come upon the dreaded class signature change
e.g. 
void fu(bar)
becomes
bar fu(bar)
OR
void fu(void)
becomes
void fu(bar)

from my experience there is no easy way to remedy this without rebuilding..I 
would suggest on a fresh disk
install and config the target JDK/JVM/JRE
re-install JBOSS (to use the new JDK/JVM/JRE)
recompile and or rebuild all dependent projects (using target JDK/JVM/JRE)
re-deploy the newly built dependent jars to JBOSS
logging/commond-digester/XML-parses using target JDK/JVM/JRE..(leave no stone 
unturned)
recompile/rebuild your webapp using target JDK/JVM/JRE
re-deploy the newly built war/ear webapp to JBOSS 

In DI (dependecy injection) scenarios
I've seen this happen when a factory builds new (bean) classes but the Factory 
doesnt have the correct template (usually XSL template) for the target 
JDK/JVM/JRE

maybe the TC developers want to weigh in....
Martin 

______________________________________________ 
Disclaimer and confidentiality note 
Everything in this e-mail and any attachments relates to the official business 
of Sender. This transmission is of a confidential nature and Sender does not 
endorse distribution to any party other than intended recipient. Sender does 
not necessarily endorse content contained within this transmission. 


> Date: Fri, 29 Aug 2008 10:57:36 -0500
> From: [EMAIL PROTECTED]
> To: [EMAIL PROTECTED]
> Subject: Re: ClassNotFoundException when moving from Java 1.5 to 1.6
> 
> On Thu, Aug 28, 2008 at 3:21 PM, Jeff <[EMAIL PROTECTED]> wrote:
> > I have an app currently running on Tomcat 5.5.26/CentOS
> > 4.6/jre1.5.0_16. This configuration is working just fine. But if I run
> > Tomcat with jre1.6.0_07, my application gets a ClassNotFoundException
> > when I try to use it. The application starts up OK, but throws the
> > exception upon first use. If I restart Tomcat under Java 5, all is
> > well again. I am changing nothing but the symlink /usr/java/default
> > when I switch Java versions.
> >
> > The class in question is packaged in WEB-INF/lib/mylib.jar.
> >
> > No doubt of great importance is that the instance of the class is used
> > as a field in an object being returned from a call to a JBoss 4.2.2
> > EJB session bean on a remote server. JBoss is running under
> > jre1.5.0_14. So is this simply a serialization compatibility problem?
> > Then why am I getting ClassNotFound instead of an unmarshalling error?
> > The class files on both Tomcat and JBoss are the same (compiled once,
> > packaged twice).
> >
> > Leaving no stone unturned, I installed Java 6 on the development JBoss
> > system and configured JBoss to use it, but Tomcat (under Java 6) still
> > gives me ClassNotFoundException. The JBoss server reports no errors.
> >
> > The classes are actually compiled with 1.4 so there should not be any
> > code compatibility problems.
> >
> > So why is Tomcat not finding my classes in WEB-INF/lib when running
> > under Java 6?
> 
> <snip>
> 
> I repackaged the war file putting the troublesome class package under
> WEB-INF/classes instead of in a jar file under WEB-INF/lib. Same
> problem. Again, it works fine when Tomcat is running with jre 1.5, but
> I get the embedded ClassNotFoundException under jre 1.6.
> 
> -- 
> Jeff
> 
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

_________________________________________________________________
Talk to your Yahoo! Friends via Windows Live Messenger.  Find out how.
http://www.windowslive.com/explore/messenger?ocid=TXT_TAGLM_WL_messenger_yahoo_082008

Reply via email to