This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes JSP and the fly likes The JSTL Expression for bean method used in jsp file works for Tomcat v7, but fails in JBoss. Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » JSP
Reply Bookmark "The JSTL Expression for bean method used in jsp file works for Tomcat v7, but fails in JBoss." Watch "The JSTL Expression for bean method used in jsp file works for Tomcat v7, but fails in JBoss." New topic
Author

The JSTL Expression for bean method used in jsp file works for Tomcat v7, but fails in JBoss.

Sandeep Gabhale
Greenhorn

Joined: Nov 10, 2008
Posts: 12

Hi All,

Below is the JSP file code which works fine in Tomcat v7, but fails in JBoss 5.1.0 server.
The method
getContactBridge
for which it gives error!
I've also added the jstl.jar, jsp-api, servlet-api and ojdbc6.jar.





The error message is
[org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/Nucleus_ManageDB].[jsp]] (http-127.0.0.1-8080-2) Servlet.service() for servlet jsp threw exception
org.apache.jasper.JasperException: /jsp/CfgAreaType.jsp(14,5) The function getContactBridge must be used with a prefix when a default namespace is not specified
at org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:40)
at org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407)
at org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:148)
at org.apache.jasper.compiler.Validator$ValidateVisitor$1FVVisitor.visit(Validator.java:1478)
at org.apache.jasper.compiler.ELNode$Function.accept(ELNode.java:129)
at org.apache.jasper.compiler.ELNode$Nodes.visit(ELNode.java:200)
at org.apache.jasper.compiler.ELNode$Visitor.visit(ELNode.java:242)
at org.apache.jasper.compiler.ELNode$Root.accept(ELNode.java:56)
at org.apache.jasper.compiler.ELNode$Nodes.visit(ELNode.java:200)
at org.apache.jasper.compiler.Validator$ValidateVisitor.validateFunctions(Validator.java:1503)
at org.apache.jasper.compiler.Validator$ValidateVisitor.checkXmlAttributes(Validator.java:1140)
at org.apache.jasper.compiler.Validator$ValidateVisitor.visit(Validator.java:820)
at org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1530)
at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2359)
at org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2409)
at org.apache.jasper.compiler.Validator$ValidateVisitor.visit(Validator.java:635)
at org.apache.jasper.compiler.Node$UseBean.accept(Node.java:1178)
at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2359)
at org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2409)
at org.apache.jasper.compiler.Validator$ValidateVisitor.visit(Validator.java:839)
at org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1530)
at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2359)
at org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2409)
at org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2415)
at org.apache.jasper.compiler.Node$Root.accept(Node.java:495)
at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2359)
at org.apache.jasper.compiler.Validator.validateExDirectives(Validator.java:1735)
at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:184)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:333)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:313)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:300)
at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:585)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:312)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:322)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:249)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:183)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:95)
at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)
at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:598)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:451)
at java.lang.Thread.run(Thread.java:619)

Quick reply is highly appreciated.


--
Sandeep
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56213
    
  13

Sandeep Gabhale wrote:I've also added the jstl.jar, jsp-api, servlet-api and ojdbc6.jar.

If by this you mean that you have moved or copied jsp-api and servelt-api to WEB-INF/lib, remove them. They will cause nothing but trouble there. The container provides these, not you!


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
Sandeep Gabhale
Greenhorn

Joined: Nov 10, 2008
Posts: 12

Bear Bibeault wrote:
Sandeep Gabhale wrote:I've also added the jstl.jar, jsp-api, servlet-api and ojdbc6.jar.

If by this you mean that you have moved or copied jsp-api and servelt-api to WEB-INF/lib, remove them. They will cause nothing but trouble there. The container provides these, not you!


Your right Bear, but even after removing the above mentioned jars didn't helped..

It would be great if you could guide me with the above mention issue.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: The JSTL Expression for bean method used in jsp file works for Tomcat v7, but fails in JBoss.
 
Similar Threads
What's wrong with El function.
TLD/EL "The function *** cannot be located with the specified prefix"
HF S&J 389 Question
Whats Wrong?
getting variable value