aspose file tools
The moose likes Servlets and the fly likes Mapping clash for ServletWrapper Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Servlets
Reply Bookmark "Mapping clash for ServletWrapper" Watch "Mapping clash for ServletWrapper" New topic
Author

Mapping clash for ServletWrapper

Selva jai
Greenhorn

Joined: Aug 08, 2007
Posts: 6
Hi Friends ,

I got this error at the time of start the server , I am using RAD7 and Websphere 6.1 server , will you please guide me where should I check for clear this issue

This is my Exception message


[8/23/07 9:10:17:495 IST] 0000001b WebApp E Error while adding servlet mapping.

java.lang.Exception: Mapping clash for ServletWrapper[TstServlet:[TstServlet:conway, TstServlet:SLLogin, TstServlet : epload, TstServlet : trServlet, TstServlet:rvdServlet, TstServlet:enpServlet]]: Target ServletWrapper[TstServlet1:[TstServlet1:FGH]] already exists at node /
at com.ibm.ws.util.ClauseNode.add(ClauseNode.java:59)
at com.ibm.ws.util.URIMatcher.put(URIMatcher.java:131)
at com.ibm.ws.util.URIMapper.addMapping(URIMapper.java:47)
at com.ibm.ws.webcontainer.webapp.WebApp.initializeTargetMappings(WebApp.java:450)
at com.ibm.ws.webcontainer.webapp.WebApp.commonInitializationFinish(WebApp.java:275)
at com.ibm.ws.wswebcontainer.webapp.WebApp.initialize(WebApp.java:272)
at com.ibm.ws.wswebcontainer.webapp.WebGroup.addWebApplication(WebGroup.java:88)
at com.ibm.ws.wswebcontainer.VirtualHost.addWebApplication(VirtualHost.java:157)
at com.ibm.ws.wswebcontainer.WebContainer.addWebApp(WebContainer.java:655)
at com.ibm.ws.wswebcontainer.WebContainer.addWebApplication(WebContainer.java:608)
at com.ibm.ws.webcontainer.component.WebContainerImpl.install(WebContainerImpl.java:333)
at com.ibm.ws.webcontainer.component.WebContainerImpl.start(WebContainerImpl.java:549)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:1295)
at com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectStart(DeployedApplicationImpl.java:1129)
at com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModuleImpl.java:567)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.startModule(ApplicationMgrImpl.java:1762)
at com.ibm.ws.runtime.component.ApplicationMgrImpl._startModule(ApplicationMgrImpl.java:1710)
at com.ibm.ws.runtime.component.ApplicationMgrImpl$ApplicationNotifier.classChanged(ApplicationMgrImpl.java:1922)
at com.ibm.ws.classloader.ClassLoaderManager.checkAndNotify(ClassLoaderManager.java:558)
at com.ibm.ws.classloader.ClassLoaderManager.access$000(ClassLoaderManager.java:59)
at com.ibm.ws.classloader.ClassLoaderManager$ReloadTimerTask.alarm(ClassLoaderManager.java:612)
at com.ibm.ejs.util.am._Alarm.run(_Alarm.java:90)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1510)
[ August 22, 2007: Message edited by: Selva jai ]
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13433
You didn't post your mappings?

Looking at:
already exists at node ...

makes me wonder if you have a duplicate mapping.


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples
MarkB
Greenhorn

Joined: Sep 30, 2002
Posts: 2
I know that the original posters may not be interested anymore but I was also getting the same error message.
In looking at the web.xml, I noticed that my servlet had multiple servlet-mapping elements for the same servlet and the url-patterns only differed by a forward slash. See the example below:
<servlet-mapping>
<servlet-name>ServletName</servlet-name>
<url-pattern>entry</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>ServletName</servlet-name>
<url-pattern>/entry</url-pattern>
</servlet-mapping>
During the startup the container saw the above entries as duplicates and threw that exception.
Hope this helps someone, someday.
Bear Bibeault
Author and opinionated walrus
Marshal

Joined: Jan 10, 2002
Posts: 50691

"MarkB", please check your private messages for an important administrative matter.


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
Denis Tunovic
Greenhorn

Joined: May 05, 2008
Posts: 3
I am having the same error. I do use the same url pattern twice mapping to two total different servlets. I am wondering if this is causing the problem.
Please post the solution to this topic.
Srishti Unki
Greenhorn

Joined: Jul 08, 2009
Posts: 1
In web.xml i have the below enteries but it gives the same mapping clash exception
<servlet-mapping>

<servlet-name>assigncorrectspelling</servlet-name>

<url-pattern>/assigncorrectspelling</url-pattern>

</servlet-mapping>

<servlet-mapping>

<servlet-name>assigncorrectspelling1</servlet-name>

<url-pattern>/assigncorrectspelling</url-pattern>

</servlet-mapping>



<servlet>

<servlet-name>assigncorrectspelling</servlet-name>

<display-name>assigncorrectspelling</display-name>

<jsp-file>/jsp/synonymmaintenance/assigncorrectspelling.jsp</jsp-file>

</servlet>

<servlet>

<servlet-name>assigncorrectspelling1</servlet-name>

<display-name>assigncorrectspelling</display-name>

<jsp-file>/jsp/synonymmaintenance/assigncorrectspelling.jsp</jsp-file>

</servlet>


Kindly help
Ajeeth Kumar
Ranch Hand

Joined: Mar 30, 2005
Posts: 56
I am also facing the same error . I cross verified my web.xml and it doesnt have 2 entries for the same servlet, but still it keeps giving the following error. Looks like the entry is present in some archive file within the RSA internal folder...not sure how to get rid of this

 
 
subject: Mapping clash for ServletWrapper
 
Threads others viewed
JDBC Connection problem in RAD6
Struts - NoClassDefFoundError
ServletException in Struts
Mapping clash for ServletWrapper
WebSphere and JSF
developer file tools