File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes com.ibm.servlet.engine webapp. NoTarget ForURIException: No target servlet config Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "com.ibm.servlet.engine webapp. NoTarget ForURIException: No target servlet config" Watch "com.ibm.servlet.engine webapp. NoTarget ForURIException: No target servlet config" New topic
Author

com.ibm.servlet.engine webapp. NoTarget ForURIException: No target servlet config

Singar Vel
Greenhorn

Joined: Aug 22, 2002
Posts: 7
When Iam calling a servlet from my jsp page Iam getting the following error:
com.ibm.servlet. engine. webapp NoTargetFor URIException: No target servlet configured for uri: /comnServlet.
Iam calling the servlet from my jsp page as follows:
<FORM id="w_Testwindow1" METHOD="POST" ACTION="http://ss0247/FIM/servlet/comnServlet" >
public void forwardToJsp(String toJsp, HttpServletRequest req, HttpServletResponse res)
{
System.out.println("***inside forwardtojsp ");
RequestDispatcher rd1;
rd1 = getServletContext().getRequestDispatcher("/"+toJsp);
System.out.println("***After request dispatcher ");

try{
//forward the req to jsp page to be displayed
//// System.out.println("back to wrapper2");
System.out.println("***sing-- b4 forward ");
rd1.forward(req,res);
System.out.println("***sing-- after forward ");
}
catch(Exception e)
{
////log("CATCHING EXCEPTION on FORWARD POINT 1" + e);
System.out.println("The error in forward jsp is due to"+e);
e.printStackTrace();
}
}
After the control goes to the common servlet it fails at rd1.forward(req,res); and it throws the following exception.
com. ibm.servlet. engine.webapp. NoTargetForURIException: No target servlet configured for uri: /comnServlet.
Please get back to me and tell me what am I to do ......
Graham Thorpe
Ranch Hand

Joined: Mar 25, 2002
Posts: 264
Can u tell me Which application Server r u using?
Balaji Loganathan
author and deputy
Bartender

Joined: Jul 13, 2001
Posts: 3150
Check whether the servlet exist at correct classes directory,if not check ur web.xml whether it the servlet mapping for comnServlet is correct.
Regards
Balaji


Spritle Software Blogs
Paul Stevens
Ranch Hand

Joined: May 17, 2001
Posts: 2823
Singar,
Welcome to the JavaRanch! Please adjust your display name to meet
the JavaRanch Naming Policy. You can change it here.
Thanks!
and welcome to the JavaRanch!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: com.ibm.servlet.engine webapp. NoTarget ForURIException: No target servlet config
 
Similar Threads
difference in behaviour of requestDispatcher.forward() in WAS5.0 and WAS6.1
Error Handling
redirect to error page
Cannot forward after response has been committed
forward() and sendRedirect()