AnsweredAssumed Answered

need advice for building jsf project with alfresco

Question asked by mmrs on Dec 18, 2008
Latest reply on Dec 18, 2008 by t.broyer
hi all
I want to build a project dealing with alfresco repository, starting with login page and other required authentication services,
so what is the best  way i can do that with alfresco?? basically i tried to build a jsf login page that interfaces interacting with repository
i used some jar file that allow me to authenticate, create, and edit users. the jar file alone works fine, but when i use it in my login page it doesn't !!
and the following exception appear :

SEVERE: #{crcLogin.login}: javax.faces.el.EvaluationException: java.lang.NoClassDefFoundError: com/deltamatics/crc/services/AlfUserServices
javax.faces.FacesException: #{crcLogin.login}: javax.faces.el.EvaluationException: java.lang.NoClassDefFoundError: com/deltamatics/crc/services/AlfUserServices
   at com.sun.faces.application.ActionListenerImpl.processAction(
   at javax.faces.component.UICommand.broadcast(
   at javax.faces.component.UIViewRoot.broadcastEvents(
   at javax.faces.component.UIViewRoot.processApplication(
   at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(
   at com.sun.faces.lifecycle.LifecycleImpl.phase(
   at com.sun.faces.lifecycle.LifecycleImpl.execute(
   at javax.faces.webapp.FacesServlet.service(
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(
   at org.apache.catalina.core.StandardWrapperValve.invoke(
   at org.apache.catalina.core.StandardContextValve.invoke(
   at org.apache.catalina.core.StandardHostValve.invoke(
   at org.apache.catalina.valves.ErrorReportValve.invoke(
   at org.apache.catalina.core.StandardEngineValve.invoke(
   at org.apache.catalina.connector.CoyoteAdapter.service(
   at org.apache.coyote.http11.Http11Processor.process(
   at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(
   at org.apache.tomcat.util.threads.ThreadPool$
   at Source)
Caused by: javax.faces.el.EvaluationException: java.lang.NoClassDefFoundError: com/deltamatics/crc/services/AlfUserServices
   at com.sun.faces.el.MethodBindingImpl.invoke(
   at com.sun.faces.application.ActionListenerImpl.processAction(
   … 21 more
the package "com/deltamatics/crc/services/AlfUserServices" exist in the jar file and contains all the classes i need.
i dont know y it gives NoClassDefFoundError since i imported that jars and the eclips can see its classes ?!
i try to fix it but at the end i think that this approch is wrong; because the jar file is dealling with alfresco repository from the inside (i think). 
the processes here is out of the box and i read that web script is suitable for such a case, so can i use it to build my project ??
i appreciate any advice, explanation or correction here.
thnx in advance