cancel
Showing results for 
Search instead for 
Did you mean: 

[3.0 Beta War] Alfresco Share Needs Commons-el

rbergstrom
Champ in-the-making
Champ in-the-making
Hello All:

I just finished installing the 3.0 Beta wars on Tomcat 6.0 and Postgresql.  Other than the Tomcat 6 caveats posted elsewhere, you will need to download Apache's Commons EL jar [1] and place it in Tomcat's "lib" directory.  Otherwise, the share.war will fail to deploy with the following exception:


org.apache.catalina.core.StandardContext listenerStart
SEVERE: Exception sending context initialized event to listener instance of clas
s org.apache.myfaces.webapp.StartupServletContextListener
java.lang.NoClassDefFoundError: org/apache/commons/el/Logger

// RAB

[1] http://commons.apache.org/el/
4 REPLIES 4

tonytony
Champ in-the-making
Champ in-the-making
Thanks, this is why nothing was working for me… I wish I could give you a point , but you are the original poster and I am replying.

ediez
Champ in-the-making
Champ in-the-making
Hi,


I'm going through the same issue and was trying to download these libraries from the Apache website but the 'downloads' (http://commons.apache.org/downloads/download_el.cgi) link seems to be unavailable.

Do you guys know where I can get these libraries from?

Thanks a lot.

ediez
Champ in-the-making
Champ in-the-making
I found some jars on the internet and added them to the lib folder. These are the ones I've added:

commons-el.jar
el-api.jar
el-ri.jar

However, still getting these errors on the log:

2008-11-18 08:31:23.885::WARN:  /alfresco/faces/jsp/login.jsp
javax.faces.FacesException: java.lang.NoSuchMethodError: javax.el.ExpressionFactory.newInstance()Ljavax/el/ExpressionFac
tory;
        at org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:425)
        at org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspViewHandlerImpl.java:211)
        at org.apache.myfaces.lifecycle.RenderResponseExecutor.execute(RenderResponseExecutor.java:41)
        at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:132)
        at javax.faces.webapp.FacesServlet.service(FacesServlet.java:140)
        at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
        at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1097)
        at org.alfresco.web.app.servlet.AuthenticationFilter.doFilter(AuthenticationFilter.java:94)
        at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1088)
        at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:360)
        at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
        at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
        at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:729)
        at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
        at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:206)
        at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
        at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
        at org.mortbay.jetty.Server.handle(Server.java:324)
        at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505)
        at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:843)
        at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:647)
        at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:205)
        at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
        at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395)
        at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:488)
Caused by: javax.servlet.ServletException: java.lang.NoSuchMethodError: javax.el.ExpressionFactory.newInstance()Ljavax/e
l/ExpressionFactory;
        at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:384)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
        at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
        at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:362)
        at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
        at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
        at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:729)
        at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
        at org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:285)
        at org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:126)
        at org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:419)
        … 24 more
Caused by: java.lang.NoSuchMethodError: javax.el.ExpressionFactory.newInstance()Ljavax/el/ExpressionFactory;
        at org.apache.jasper.compiler.JspUtil.getExpressionFactory(JspUtil.java:1166)
        at org.apache.jasper.compiler.JspUtil.validateExpressions(JspUtil.java:628)
        at org.apache.jasper.compiler.Validator$ValidateVisitor.getJspAttribute(Validator.java:1341)
        at org.apache.jasper.compiler.Validator$ValidateVisitor.checkXmlAttributes(Validator.java:1117)
        at org.apache.jasper.compiler.Validator$ValidateVisitor.visit(Validator.java:834)
        at org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1482)
        at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2257)
        at org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2307)
        at org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2313)
        at org.apache.jasper.compiler.Node$Root.accept(Node.java:481)
        at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2257)
        at org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2307)
        at org.apache.jasper.compiler.Validator$ValidateVisitor.visit(Validator.java:525)
        at org.apache.jasper.compiler.Node$IncludeDirective.accept(Node.java:630)
        at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2257)
        at org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2307)
        at org.apache.jasper.compiler.Validator$ValidateVisitor.visit(Validator.java:854)
        at org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1482)
        at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2257)
        at org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2307)
        at org.apache.jasper.compiler.Validator$ValidateVisitor.visit(Validator.java:854)
        at org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1482)
        at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2257)
        at org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2307)
        at org.apache.jasper.compiler.Validator$ValidateVisitor.visit(Validator.java:854)
        at org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1482)
        at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2257)
        at org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2307)
        at org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2313)
        at org.apache.jasper.compiler.Node$Root.accept(Node.java:481)
        at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2257)
        at org.apache.jasper.compiler.Validator.validate(Validator.java:1837)
        at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:195)
        at org.apache.jasper.compiler.Compiler.compile(Compiler.java:409)
        at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:592)
        at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:344)
        at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:470)
        at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:364)
        … 34 more

ediez
Champ in-the-making
Champ in-the-making
Hi,

I've been checking the Apache website and it's still down.

Does anybody know any other site where I can download these libraries from?

Thanks,