Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

tld functions with WebSphere 6.1 problem!

8 views
Skip to first unread message

han...@yahoo.com

unread,
Dec 6, 2006, 8:25:01 AM12/6/06
to
Dear all,

i face this probelm that i deployed war file that contains tld functions but unfortuenatly i have this strange exception appears in the first jsp page that uses tld function:
------------------------------------------------------------------------------
javax.servlet.ServletException: No function is mapped to the name "welcomefunc:getPageDirection"
-------------------------------------------------------------------------------

Anyone has a solution,tip ,idea for help..

Thanks all for being here to support.

han...@yahoo.com

unread,
Dec 7, 2006, 11:26:17 AM12/7/06
to
dear all ,
i think should put the exception complete so here it is:
-------------------------------------------------------------------------------
javax.servlet.ServletException: No function is mapped to the name "welcome:getPageDirection"
at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:660)
at com.ibm._jsp._MenuItem._jspService(_MenuItem.java:162)
at com.ibm.ws.jsp.runtime.HttpJspBase.service(HttpJspBase.java:85)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:966)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:907)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:118)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java:87)
at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:696)
at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:641)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:475)
at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:463)
at com.ibm.wsspi.webcontainer.servlet.GenericServletWrapper.handleRequest(GenericServletWrapper.java:115)
at com.ibm.ws.jsp.webcontainerext.AbstractJSPExtensionServletWrapper.handleRequest(AbstractJSPExtensionServletWrapper.java:168)
at com.ibm.ws.jsp.webcontainerext.AbstractJSPExtensionProcessor.handleRequest(AbstractJSPExtensionProcessor.java:270)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.include(WebAppRequestDispatcher.java:606)
at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:1034)
at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:997)
at com.ibm._jsp._menu._jspService(_menu.java:192)
at com.ibm.ws.jsp.runtime.HttpJspBase.service(HttpJspBase.java:85)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:966)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:907)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:145)
at com.welcomecompany.hi.web.servlet.ECCLoggingFilter.doFilter(ECCLoggingFilter.java:24)
at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:190)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:130)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java:87)
at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:696)
at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:641)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:475)
at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:463)
at com.ibm.wsspi.webcontainer.servlet.GenericServletWrapper.handleRequest(GenericServletWrapper.java:115)
at com.ibm.ws.jsp.webcontainerext.AbstractJSPExtensionServletWrapper.handleRequest(AbstractJSPExtensionServletWrapper.java:168)
at com.ibm.ws.jsp.webcontainerext.AbstractJSPExtensionProcessor.handleRequest(AbstractJSPExtensionProcessor.java:270)
at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3107)
at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:238)
at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:811)
at com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1425)
at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:92)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:465)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:394)
at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:102)
at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:152)
at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:213)
at com.ibm.io.async.AbstractAsyncFuture.fireCompletionActions(AbstractAsyncFuture.java:195)
at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:136)
at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:193)
at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:725)
at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:847)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1498)

------------------------------------------------------------------------------
getPageDirection is a static function and take pageContext as a parmaeter
and i wonder why in Exception stack trace :
at org.apache.jasper.runtime.PageContextImpl.handlePageException
why this is appear any one has any idea ??

www.pulpjava.com

unread,
Dec 8, 2006, 9:53:16 PM12/8/06
to
I'm not sure exactly what the problem is, but I do have a war file that
contains a simple tld and custom tag that does work, and has been
testedon WebSphere 6.1. Maybe it can give you some ideas:

http://www.technicalfacilitation.com/examscam/tf/get.php?link=web

Just look for the creating custom tags link.

Cheers!

-Cameron McKenzie
Author of What is WebSphere? and the SCJA Certification Guide

Free Mock Java Certification Exams: http://www.scja.com
Free Java, J2EE and WebSphere Tutorials: http://www.mcnz.com

oar...@ngs.ru

unread,
Nov 18, 2008, 4:14:30 AM11/18/08
to
I have same problem, did you find any solution?

oz.le...@mobixell.com

unread,
Jun 23, 2009, 3:00:14 AM6/23/09
to
I'm having the same problem as well.
I managed to workaround it in a couple of cases by adding a dummy call to the function at the beginning of the page. After doing that, calling it again in the problematic part is fine. However, I'd like to find a real fix for this.
It should be noted that the relevant JSPs work well when delpoyed on JBoss (4.0.2)
Thanks

oartem

unread,
Oct 21, 2009, 8:18:52 AM10/21/09
to
Hi.
I've found some solution, but by this way we have to change all jsp.

So, error ocurs, when we have such code:
My name is ${lib:getName()}!

If change it to:


My name is ${name}!

Jonny Five

unread,
Nov 25, 2009, 2:09:38 PM11/25/09
to
I am having this problem too. The hotfix #27 did not change anything.

*com.ibm.ws.webcontainer.webapp.WebAppErrorReport*

*No function is mapped to the name "m:jss"*

I found a work-around of calling the function inline EL interpolation first:

+${m:jss('')}+
+ +
+Test+
++

0 new messages