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]

Reply via email to