Tomcat 6.0 classes on system classpath cannot access the classes from the application?

Put the commons-lang. Jar in the Tomcat /lib directory and remove it from your application's WEB-INF/lib.

I tried it but it doesn't help. I get Caused by: java.lang. ClassNotFoundException: org.apache.commons.logging.

LogFactory on server startup. – tak Aug 12 '10 at 8:47 Sounds like you're missing the Commons logging JAR now, too. Keep adding JARs until the CNF exceptions go away.

– duffymo Aug 12 '10 at 9:27 It was kind of really a tedious job to put all the jars in the commons classpath and even after copying all the jars the application did not work. So I just created my own class. I had no other alternative.

– tak Aug 15 '10 at 13:41 "Really tedious job" - you don't have a long future as a Java programmer. Programming is full of "tedious" tasks that are necessary to do it correctly. Your self-checked solution might "work", but it's not the right way to go.

I'm voting your question and your answer down. – duffymo Aug 15 '10 at 14:04 well why it was a "really tedious job". It was not a small project but a project for one of the banks.

I had almost 15 jars in the systems classpath. As you may know that banks have there own framework. And tomcat was not part of there framework.So what I had to do was to integrate tomcat with this framework.

Commons-lang was part of there framework and also part of the application. Now if I copied all the jars into the commons lib, I would have to copy them always when there was an update of the framework. – tak Aug 15 '10 at 14:26.

I had to create a class com. SerializationUtils and use this class in the application instead of the SerializationUtils from commons-lang. After this fix, everything works fine.

This is just a workaround... – tak Aug 15 '10 at 17:45.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions