By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,426 Members | 3,118 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,426 IT Pros & Developers. It's quick & easy.

javax.servlet.ServletException

P: 18
hi all,
I have wrriten code for a small web application.
From my JSP page i am not able to call the servlet.. its throwing an exception.
"javax.servlet.ServletException: Wrapper cannot find servlet class servlet.IssueTrackerControllerServlet or a class it depends on
org.jboss.web.tomcat.security.CustomPrincipalValve .invoke(CustomPrincipalValve.java:39)
org.jboss.web.tomcat.security.SecurityAssociationV alve.invoke(SecurityAssociationValve.java:159)
org.jboss.web.tomcat.security.JaccContextValve.inv oke(JaccContextValve.java:59)
org.apache.catalina.valves.ErrorReportValve.invoke (ErrorReportValve.java:105)
org.apache.catalina.connector.CoyoteAdapter.servic e(CoyoteAdapter.java:148)
org.apache.coyote.http11.Http11Processor.process(H ttp11Processor.java:856)
org.apache.coyote.http11.Http11Protocol$Http11Conn ectionHandler.processConnection(Http11Protocol.jav a:744)
org.apache.tomcat.util.net.PoolTcpEndpoint.process Socket(PoolTcpEndpoint.java:527)
org.apache.tomcat.util.net.MasterSlaveWorkerThread .run(MasterSlaveWorkerThread.java:112)
java.lang.Thread.run(Thread.java:534)"

my web.xml:::
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.4"
xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
<servlet>
<description>This is the description of my J2EE component</description>
<display-name>This is the display name of my J2EE component</display-name>
<servlet-name>IssueTrackerControllerServlet</servlet-name>
<servlet-class>servlet.IssueTrackerControllerServlet</servlet-class>
</servlet>

<servlet-mapping>
<servlet-name>IssueTrackerControllerServlet</servlet-name>
<url-pattern>/servlet/IssueTrackerControllerServlet</url-pattern>
</servlet-mapping>

</web-app>

Please help me to come out of this problem.. thanks in advance...
Nov 15 '07 #1
Share this Question
Share on Google+
6 Replies


10K+
P: 13,264
hi all,
I have wrriten code for a small web application.
From my JSP page i am not able to call the servlet.. its throwing an exception.
"javax.servlet.ServletException: Wrapper cannot find servlet class servlet.IssueTrackerControllerServlet or a class it depends on
org.jboss.web.tomcat.security.CustomPrincipalValve .invoke(CustomPrincipalValve.java:39)
org.jboss.web.tomcat.security.SecurityAssociationV alve.invoke(SecurityAssociationValve.java:159)
org.jboss.web.tomcat.security.JaccContextValve.inv oke(JaccContextValve.java:59)
org.apache.catalina.valves.ErrorReportValve.invoke (ErrorReportValve.java:105)
org.apache.catalina.connector.CoyoteAdapter.servic e(CoyoteAdapter.java:148)
org.apache.coyote.http11.Http11Processor.process(H ttp11Processor.java:856)
org.apache.coyote.http11.Http11Protocol$Http11Conn ectionHandler.processConnection(Http11Protocol.jav a:744)
org.apache.tomcat.util.net.PoolTcpEndpoint.process Socket(PoolTcpEndpoint.java:527)
org.apache.tomcat.util.net.MasterSlaveWorkerThread .run(MasterSlaveWorkerThread.java:112)
java.lang.Thread.run(Thread.java:534)"

my web.xml:::
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.4"
xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
<servlet>
<description>This is the description of my J2EE component</description>
<display-name>This is the display name of my J2EE component</display-name>
<servlet-name>IssueTrackerControllerServlet</servlet-name>
<servlet-class>servlet.IssueTrackerControllerServlet</servlet-class>
</servlet>

<servlet-mapping>
<servlet-name>IssueTrackerControllerServlet</servlet-name>
<url-pattern>/servlet/IssueTrackerControllerServlet</url-pattern>
</servlet-mapping>

</web-app>

Please help me to come out of this problem.. thanks in advance...
Is there an IssueTrackerControllerServlet.class then in
WEB-INF/servlet/ ?
Nov 15 '07 #2

P: 10
hi all,
I have wrriten code for a small web application.
From my JSP page i am not able to call the servlet.. its throwing an exception.
"javax.servlet.ServletException: Wrapper cannot find servlet class servlet.IssueTrackerControllerServlet or a class it depends on
org.jboss.web.tomcat.security.CustomPrincipalValve .invoke(CustomPrincipalValve.java:39)
org.jboss.web.tomcat.security.SecurityAssociationV alve.invoke(SecurityAssociationValve.java:159)
org.jboss.web.tomcat.security.JaccContextValve.inv oke(JaccContextValve.java:59)
org.apache.catalina.valves.ErrorReportValve.invoke (ErrorReportValve.java:105)
org.apache.catalina.connector.CoyoteAdapter.servic e(CoyoteAdapter.java:148)
org.apache.coyote.http11.Http11Processor.process(H ttp11Processor.java:856)
org.apache.coyote.http11.Http11Protocol$Http11Conn ectionHandler.processConnection(Http11Protocol.jav a:744)
org.apache.tomcat.util.net.PoolTcpEndpoint.process Socket(PoolTcpEndpoint.java:527)
org.apache.tomcat.util.net.MasterSlaveWorkerThread .run(MasterSlaveWorkerThread.java:112)
java.lang.Thread.run(Thread.java:534)"

my web.xml:::
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.4"
xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
<servlet>
<description>This is the description of my J2EE component</description>
<display-name>This is the display name of my J2EE component</display-name>
<servlet-name>IssueTrackerControllerServlet</servlet-name>
<servlet-class>servlet.IssueTrackerControllerServlet</servlet-class>
</servlet>

<servlet-mapping>
<servlet-name>IssueTrackerControllerServlet</servlet-name>
<url-pattern>/servlet/IssueTrackerControllerServlet</url-pattern>
</servlet-mapping>

</web-app>

Please help me to come out of this problem.. thanks in advance...
Give proper path of servlet in WEB.xml .
Nov 15 '07 #3

P: 18
Is there an IssueTrackerControllerServlet.class then in
WEB-INF/servlet/ ?
yeah its there in ::
\WebRoot\WEB-INF\classes\servlet(packagename)\IssueTrackerContr ollerServlet.class
Nov 16 '07 #4

P: 18
Give proper path of servlet in WEB.xml .
Can u plzz ,be bit more detail.. whatat it means "proper path of servlet in web.xml" ???
Nov 16 '07 #5

P: 10
Can u plzz ,be bit more detail.. whatat it means "proper path of servlet in web.xml" ???
tell me..

1) If u hit sevlet independently (by htting URL with out JSP page) then it properly works.

2) give me the code how ur hitting servlet by JSP page.
Nov 19 '07 #6

10K+
P: 13,264
yeah its there in ::
\WebRoot\WEB-INF\classes\servlet(packagename)\IssueTrackerContr ollerServlet.class
Did you read my reply?
In your web.xml you have
<servlet-class>servlet.IssueTrackerControllerServlet</servlet-class>
so you must have the .class file in WEB-INF/servlet/ or change the web.xml to point to the correct folder.
Nov 19 '07 #7

Post your reply

Sign in to post your reply or Sign up for a free account.