cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with SDK CustomLogin

itsmanish
Champ in-the-making
Champ in-the-making
Hi,

I am trying to deploy SDK CustomLogin jsp sample in Tomcat and receiving some errors.

I followed  Integrated deployment approach as mentioned in "http://wiki.alfresco.com/wiki/Packaging_And_Deploying_Extensions".

I have SDK properly installed in Eclipse 3.2(Database - MySQL) and able to run FirstJCR client and FirstFoundation client.

Following are the steps i followed to deploy CustomLogin jsp sample:
0. Included a simple line <%– hello –%> in jsp.
1. Copied Alfresco.war in sample root directory.
2. Ran ant file "build.xml" against the target "integrate-extension".
3. Alfresco.war was updated properly with the custom jsp files.
4. Copy pasted war file at point 3 to tomcat deploy directory.
5. Started tomcat server.

I am unable to see the login page with the following error

—————————Error in —————————–
javax.faces.FacesException: Bean: org.alfresco.sample.CustomLoginBean, property: languages
caused by:
org.apache.jasper.JasperException: Bean: org.alfresco.sample.CustomLoginBean, property: languages
caused by:
javax.faces.el.PropertyNotFoundException: Bean: org.alfresco.sample.CustomLoginBean, property: languages

Hide Details

javax.faces.FacesException: Bean: org.alfresco.sample.CustomLoginBean, property: languages
at org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:421)
at org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspViewHandlerImpl.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(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.alfresco.web.app.servlet.AuthenticationFilter.doFilter(AuthenticationFilter.java:94)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:868)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:663)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:595)
Caused by: org.apache.jasper.JasperException: Bean: org.alfresco.sample.CustomLoginBean, property: languages
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:370)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
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(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463)
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398)
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
at org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:415)
… 20 more
Return to application
————————— End error in browser——————————–


Anyone who can throw some light on it?
Help will be highly appreciated.

Thanks and Regards,
ItsManish
5 REPLIES 5

itsmanish
Champ in-the-making
Champ in-the-making
Btw, i am using Alfresco 2.0

itsmanish
Champ in-the-making
Champ in-the-making
According to the stacktrace, i could figure out that a nullpointer exception has been thrown in LoginBean class.

Looks like the preferences object reference is coming null where Alfresco is trying to retrieve language in the logout method.

String language = preferences.getLanguage();

Any hints?

Thanks,
itsmanish

itsmanish
Champ in-the-making
Champ in-the-making
Its ok guys,

I found solution to the problem.

Request mods to close this thread  Smiley Very Happy

herr_je
Champ in-the-making
Champ in-the-making
Hello,

I've the same problem … but no idea to solve the problem  Smiley Sad  … Can s.b. help me?

Thx

aitbenmouh
Champ in-the-making
Champ in-the-making
Can you give us your build.xml ?