473,394 Members | 1,702 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

javax.servlet.ServletException

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
6 4442
r035198x
13,262 8TB
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
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
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
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
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
r035198x
13,262 8TB
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

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

Similar topics

0
by: Nigel | last post by:
I used jwsdp-1_0 (which comes with Tomcat 1.4.2) and my application runs fine. I have upgraded to Tomcat 1.4.24 (as I do not need the entire jwsdp). I now get the following expception:...
2
by: robert walker | last post by:
hi all, to my webapp named mrf, i have added load-on-startup tag to mrf\WEB-INF\web.xml so i added a snippet like so <servlet> <servlet-name>loadDbProperties</servlet-name>...
1
by: Robert L. | last post by:
How can i install it? I download the j2ee sdk, try to install but nothing is done. is there a way to install only the javax.servlet component in the j2sdk. Thanks
0
by: MJ | last post by:
I am attempting to write a ServletFilter in Java/J2EE that checks if the incoming data is valid according to a schema. If errors occur, I want to return the error list and not proceed down the...
2
by: Arti | last post by:
Hi, I have a .Net application which has to communicate to Servlet on TomCat Server. I am able to send the request but it throws an exception while retrieving the response(Exception:The...
2
by: aselmomathebula | last post by:
Hi people, am new to this forum, i just passed the scjp5.0 and now in for scwcd, i hope this forum helps me. I leave in South Africa. For now am frastrated by this error "package javax.servlet does...
4
by: shaileshkumar | last post by:
hi, when i type javap javax.servlet.Servlet on the command propmpt iam gettting the following error Error:could not find javax.servlet.Servlet plz help me proper instructions to make...
8
by: inpuarg | last post by:
I 'm developing a c# (.net 2.0) windows forms application and in this application i want to connect to a java servlet page (HTTPS) (which is servlet 2.4 and which may be using Web Based SSO Sun...
1
by: mkwg | last post by:
Hi, I wonder if anyone can help with this question. I have a test servlet that simply echoes back XML text that is sent to it, with UTF-8 encoding. Here's the servlet code: public void...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.