Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Classloader issues moving richfaces jars to jboss 4.2.3.

 
sanju dharma
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am using Jboss 4.2.3 "all" configuration. For legal purposes, I want to move richfaces jars into server rather than as part of my EAR. But I have serveral classloader issues. It would be great help if you can help. Here are important points.
1 - I have jboss-app.xml present in EAR's META-INF directory with my own name for -loader-repository-
2- I have tried moving richfaces jars into several places into the server including ../all/lib, ../all/deploy/jboss-web.deployer/jsflibs etc.
3- I originally wrapped all jsf related stuff into my EAR and had disabled Jboss jsf by changing jboss-web.deployer configuration . I still have it disabled because i want my own jsf (richfaces) and not jboss-jsf.


I have been able to deploy the application without errors by changing my web.xml etc. But when i enter URL of my application, my jsp fails with following error. It doesnt look like the JSF libs i have moved to server can see right JSTL library. I have tried upgrading jstl.jar to jstl-1.2.jar in jboss-web.deployer directory, also tried to have this jar in jsf-libs.

12:48:08,015 ERROR [[jsp]] Servlet.service() for servlet jsp threw exception
org.apache.jasper.JasperException: /includes/header.jspf(16,22) #{..} is not allowed in template text
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:102)
at org.apache.jasper.compiler.Validator$ValidateVisitor.visit(Validator.java:711)
at org.apache.jasper.compiler.Node$ELExpression.accept(Node.java:935)
at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2338)
at org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2388)
at org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2394)
at org.apache.jasper.compiler.Node$Root.accept(Node.java:489)
at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2338)
at org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2388)
at org.apache.jasper.compiler.Validator$ValidateVisitor.visit(Validator.java:521)
at org.apache.jasper.compiler.Node$IncludeDirective.accept(Node.java:638)
at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2338)
at org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2388)
at org.apache.jasper.compiler.Validator$ValidateVisitor.visit(Validator.java:748)
at org.apache.jasper.compiler.Node$UninterpretedTag.accept(Node.java:1223)
at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2338)
at org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2388)
at org.apache.jasper.compiler.Validator$ValidateVisitor.visit(Validator.java:748)
at org.apache.jasper.compiler.Node$UninterpretedTag.accept(Node.java:1223)
at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2338)
at org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2388)
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Not sure if this will work, but it is what I would try first. The existing JSF libraries are at server/all/deploy/jboss-web.deploy/jsf-libs. I would remove the files in the directory and place the ruchfaces JARs into that directory.
 
sanju dharma
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Peter for reply. But i have done this already. I have moved (replaced, because i dont need jboss jsf) all the richfaces jars in jsf-libs. I have no idea why my jsp fails because of old version of jstl. I have no old version jstl anywhere in the server.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic