aspose file tools*
The moose likes JBoss/WildFly and the fly likes Classloader issues moving richfaces jars to jboss 4.2.3. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of JavaScript Promises Essentials this week in the JavaScript forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Classloader issues moving richfaces jars to jboss 4.2.3." Watch "Classloader issues moving richfaces jars to jboss 4.2.3." New topic
Author

Classloader issues moving richfaces jars to jboss 4.2.3.

sanju dharma
Ranch Hand

Joined: Oct 19, 2000
Posts: 45
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

Joined: May 14, 2008
Posts: 5842
    
    7

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.


JBoss In Action
sanju dharma
Ranch Hand

Joined: Oct 19, 2000
Posts: 45
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Classloader issues moving richfaces jars to jboss 4.2.3.