From: Scott M S. <sco...@at...> - 2002-11-12 18:11:25
|
Its what we consider to be a bug in how Class.forName(String, boolean, ClassLoader) caches information in the VM. The corresponding ClassLoader.loadClass(String) call does not have this behavior so at best its an undocumented behavior difference. xxxxxxxxxxxxxxxxxxxxxxxx Scott Stark Chief Technology Officer JBoss Group, LLC xxxxxxxxxxxxxxxxxxxxxxxx ----- Original Message ----- From: "Robert Martin" <rm...@fi...> To: <jbo...@li...> Sent: Thursday, November 07, 2002 10:25 AM Subject: RE: [JBoss-user] Re: ClassCastException on redeploy of .ear > I had this exact problem, but with an ejb jar instead of an ear. I could > deploy the jar exactly once and it would work fine. After that I could > never redeploy it without it permanently breaking. The only way to fix the > problem was to shut down the server. > > After reading this message, I checked my jar and found that a > jndi.properties file I use for client-side access had sneaked into the file. > The contents of the jndi.properties were valid, but it shouldn't have been > in the jar file. After removing the jndi.properties, everything works fine. > > Question - is the behavior described above a bug or a feature that we were > accidentally misusing? It would seem to be a fairly severe vulnerability in > the server that an errant jndi.properties file in a jar file can permanently > break the server. Any insight? > > Thanks. > > Robert |