I have an EAR file containing just a war file. The war file contains one JSP page and one servlet class. The servlet class is in the WEB-INF/classes/com/xxx/yyy.class file inside the war file. Attempting to run the servlet in JBoss-4.0.1sp1 results in a ClassNotFoundException.
Hi there, I also encountered similar problem. I resolved it by reviewing my JAVA_HOME setting and found that it was pointing to an older version of J2EESDK .. After I set it point to my latest J2SESDK i.e. jdk-1_5_0_02 , and restart JBOSS,, the problem has gone.
Not sure if the above can help you.