This week's book giveaway is in the Agile and other Processes forum. We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line! See this thread for details.
/jboss/server/default/deploy/m�hin.war --> this is a directory. /jboss/server/default/deploy/m�hin.war/admin.html /jboss/server/default/deploy/m�hin.war/WEB-INF/web.xml /jboss/server/default/deploy/m�hin.war/WEB-INF/classes/util/t1.cla�ss /jboss/server/default/deploy/m�hin.war/WEB-INF/classes/util/t2.cla�ss /jboss/server/default/deploy/m�hin.war/WEB-INF/classes/util/p�6.class /jboss/server/default/deploy/m�hin.war/WEB-INF/classes/util/p�9.class
------------------------------�------------------------------�------- javax.servlet.ServletException�: Wrapper cannot find servlet class util.t2 or a class it depends on
My WEB.XML file is: ------------------------------�------------------------------�------- <web-app> <servlet> <servlet-name>t1</servlet-name�> <servlet-class>util.t1</servlet-cla�ss> </servlet> <servlet> <servlet-name>t2</servlet-name�> <servlet-class>util.t2</servlet-cla�ss> </servlet> <servlet> <servlet-name>p6</servlet-name�> <servlet-class>util.p6</servlet-cla�ss> </servlet> <servlet> <servlet-name>p9</servlet-name�> <servlet-class>util.p9</servlet-cla�ss> </servlet> <servlet-mapping> <servlet-name>t1</servlet-name�> <url-pattern>/t1/*</url-patter�n> </servlet-mapping> <servlet-mapping> <servlet-name>t2</servlet-name�> <url-pattern>/t2/*</url-patter�n> </servlet-mapping> <servlet-mapping> <servlet-name>p6</servlet-name�> <url-pattern>/p6/*</url-patter�n> </servlet-mapping> <servlet-mapping> <servlet-name>p9</servlet-name�> <url-pattern>/p9/*</url-patter�n> </servlet-mapping> ------------------------------�------------------------------�------- NOTE: t1.java, t2.java, p6.java and p9.java have "package util" in their declarations...
FACTS: My CLASSPATH contains SERVLET.JAR, TOOLS.JAR and WEB-INF/classes etc...
Also: I have RECOMPILED all the CLASS files and have it under .. /deploy/mhin.war/WEB-INF/classes/util/*.class
These are my imports in ALL my JAVA FILES... --------------------------------------------------------------- package util; import java.io.*; import java.util.*; import java.lang.Runtime; import java.lang.String; import javax.servlet.*; import javax.servlet.http.*; import com.oreilly.servlet.MultipartRequest; ---------------------------------------------------------------
I have put the JAR of Oreiley Packae under WEB-INF/lib/cos.jar
Any related information on this owuld be appreciated...
Questions: Are all the classes in the right directory? Am I using the right FQDN? Fully Qualified Domain Name? in my WEB.XML? Any other hints/ relevant informaiton would be appreciated...
It looks like the class fails to load (causing the 'not found') due to your security settings. I'm not aware of the JBoss specifics, but it looks like it is starting with a security manager and this security manager doesn't allow the codebase in you app to access the filesystem, which is required by the Oreilly cos stuff.
2 options: 1) find out how to disable the security manager when starting JBoss (not recommended but much easier) 2) find out how to allow file access rights to your web app. (harder but safer)
Dave
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to
run our stuff on 16 servers instead of 3.