cancel
Showing results for 
Search instead for 
Did you mean: 

Error logging into Alfresco 2.0

nyronian
Champ in-the-making
Champ in-the-making
I have installed Alfresco 2.0 and it appears as it starts with no problems.  I get the "guest" page just fine.  Once I click the login I get the following errors in the browser….


javax.faces.FacesException: Bean: org.alfresco.web.bean.LoginBean, property: languages
caused by: org.apache.jasper.JasperException: Bean: org.alfresco.web.bean.LoginBean, property: languages
caused by: javax.faces.el.PropertyNotFoundException: Bean: org.alfresco.web.bean.LoginBean, property: languages

I'm not sure if this is an installation issue or a configuration issue but I can't figure out what is wrong.

This is Alfresco 2.0 community edition with MySQL on a Windows machine.

Thank you in advance.
4 REPLIES 4

berkie
Champ in-the-making
Champ in-the-making
The login page expects the some languages and these are loaded by default in the extension folder. If you deploy the war on a standalone server without default extension folder, this problem arises.

You should create a web-client-config-custom.xml in the extension folder that looks like this:

<alfresco-config>
<!– Example of adding languages to the list in the login page –>
<config evaluator="string-compare" condition="Languages">
<languages>
<language locale="ca_ES">Catalan</language>
<language locale="da_DK">Danish</language>
<language locale="de_DE">German</language>
<language locale="es_ES">Spanish</language>
<language locale="el_GR">Greek</language>
<language locale="fr_FR">French</language>
<language locale="it_IT">Italian</language>
<language locale="ja_JP">Japanese</language>
<language locale="du_NL">Dutch</language>
<language locale="pt_BR">Portuguese (Brazilian)</language>
<language locale="ru_RU">Russian</language>
<language locale="fi_FI">Finnish</language>
<language locale="tr_TR">Turkish</language>
<language locale="zh_CN">Simplified Chinese</language>
</languages>
</config>
</alfresco-config>

You can also add this directly to the war or include the config section directly in the web-client-config.xml

If you really want to use the languages, you should also include the correct resource bundles (messages folder).

nyronian
Champ in-the-making
Champ in-the-making
Thank you so much for your quick response.

I went into the extension folder and renamed the web-client-config-custom.xml.sample to web-client-config-custom.xml.  I noticed the only uncommented part had the xml you specified above. 

I get no errors or warnings on starup but I still get the same error.  Below is the full stack trace:


15:34:04,071 ERROR [[localhost].[/alfresco].[jsp]] Servlet.service() for servlet
jsp threw exception
javax.faces.el.PropertyNotFoundException: Bean: org.alfresco.web.bean.LoginBean,
property: languages
        at org.apache.myfaces.el.PropertyResolverImpl.getPropertyDescriptor(Prop
ertyResolverImpl.java:445)
        at org.apache.myfaces.el.PropertyResolverImpl.getPropertyDescriptor(Prop
ertyResolverImpl.java:416)
        at org.apache.myfaces.el.PropertyResolverImpl.getProperty(PropertyResolv
erImpl.java:379)
        at org.apache.myfaces.el.PropertyResolverImpl.getValue(PropertyResolverI
mpl.java:71)
        at org.apache.myfaces.el.ELParserHelper$MyPropertySuffix.evaluate(ELPars
erHelper.java:532)
        at org.apache.commons.el.ComplexValue.evaluate(ComplexValue.java:145)
        at org.apache.myfaces.el.ValueBindingImpl.getValue(ValueBindingImpl.java
:378)
        at javax.faces.component.UISelectItems.getValue(UISelectItems.java:55)
        at org.apache.myfaces.util.SelectItemsIterator.hasNext(SelectItemsIterat
or.java:103)
        at org.apache.myfaces.renderkit.RendererUtils.internalGetSelectItemList(
RendererUtils.java:485)
        at org.apache.myfaces.renderkit.RendererUtils.getSelectItemList(Renderer
Utils.java:461)
        at org.apache.myfaces.renderkit.html.HtmlRendererUtils.internalRenderSel
ect(HtmlRendererUtils.java:272)
        at org.apache.myfaces.renderkit.html.HtmlRendererUtils.renderMenu(HtmlRe
ndererUtils.java:246)
        at org.apache.myfaces.renderkit.html.HtmlMenuRendererBase.encodeEnd(Html
MenuRendererBase.java:54)
        at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:
331)
        at javax.faces.webapp.UIComponentTag.encodeEnd(UIComponentTag.java:349)
        at javax.faces.webapp.UIComponentTag.doEndTag(UIComponentTag.java:253)
        at org.apache.jsp.jsp.login_jsp._jspx_meth_h_selectOneMenu_0(login_jsp.j
ava:558)
        at org.apache.jsp.jsp.login_jsp._jspService(login_jsp.java:259)
        at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
        at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper
.java:332)
        at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:3
14)
        at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:252)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:173)
        at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDisp
atcher.java:672)
        at org.apache.catalina.core.ApplicationDispatcher.processRequest(Applica
tionDispatcher.java:463)
        at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationD
ispatcher.java:398)
        at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDis
patcher.java:301)
        at org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatc
h(ServletExternalContextImpl.java:415)
        at org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspV
iewHandlerImpl.java:234)
        at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:
352)
        at javax.faces.webapp.FacesServlet.service(FacesServlet.java:106)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:252)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:173)
        at org.alfresco.web.app.servlet.AuthenticationFilter.doFilter(Authentica
tionFilter.java:81)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:202)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:173)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
alve.java:213)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
alve.java:178)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
ava:126)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
ava:105)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
ve.java:107)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
a:148)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
:869)
        at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.p
rocessConnection(Http11BaseProtocol.java:664)
        at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpo
int.java:527)
        at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFol
lowerWorkerThread.java:80)
        at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP
ool.java:684)
        at java.lang.Thread.run(Thread.java:595)
15:34:04,087 ERROR [[localhost].[/alfresco].[Faces Servlet]] Servlet.service() f
or servlet Faces Servlet threw exception
javax.faces.FacesException: Bean: org.alfresco.web.bean.LoginBean, property: lan
guages
        at org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatc
h(ServletExternalContextImpl.java:421)
        at org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspV
iewHandlerImpl.java:234)
        at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:
352)
        at javax.faces.webapp.FacesServlet.service(FacesServlet.java:106)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:252)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:173)
        at org.alfresco.web.app.servlet.AuthenticationFilter.doFilter(Authentica
tionFilter.java:81)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:202)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:173)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
alve.java:213)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
alve.java:178)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
ava:126)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
ava:105)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
ve.java:107)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
a:148)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
:869)
        at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.p
rocessConnection(Http11BaseProtocol.java:664)
        at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpo
int.java:527)
        at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFol
lowerWorkerThread.java:80)
        at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP
ool.java:684)
        at java.lang.Thread.run(Thread.java:595)
Caused by: org.apache.jasper.JasperException: Bean: org.alfresco.web.bean.LoginB
ean, property: languages
        at org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspSer
vletWrapper.java:510)
        at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper
.java:393)
        at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:3
14)
        at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:252)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:173)
        at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDisp
atcher.java:672)
        at org.apache.catalina.core.ApplicationDispatcher.processRequest(Applica
tionDispatcher.java:463)
        at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationD
ispatcher.java:398)
        at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDis
patcher.java:301)
        at org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatc
h(ServletExternalContextImpl.java:415)
        … 20 more

nyronian
Champ in-the-making
Champ in-the-making
I finally gave up and reinstalled it bundled with Tomcat and it worked fine.  But someday I am going to need to install it manually into tomcat for production.

Thanks for all your help though.

rgeimer
Champ in-the-making
Champ in-the-making
I had the same error. I was able to fix the problem by simply exploding the war file:

mkdir alfresco
mv alfresco.war alfresco
cd alfresco
jar xvf alfresco.war

After restarting Tomcat, the problem went away.