Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Mapping clash for ServletWrapper  RSS feed

 
Selva jai
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You didn't post your mappings?

Looking at:
already exists at node ...

makes me wonder if you have a duplicate mapping.
 
MarkB
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ninkuma
Marshal
Posts: 66142
141
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"MarkB", please check your private messages for an important administrative matter.
 
Denis Tunovic
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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

 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!