[Building Sakai] Need help in JSF, Spring, Hibernate tool

classic Classic list List threaded Threaded
5 messages Options
Khan Khan
Reply | Threaded
Open this post in threaded view
|

[Building Sakai] Need help in JSF, Spring, Hibernate tool

Dear All

I have developed a JSF tool by renaming and updating sakai syllabus tool, everything was working fine, but when I changed   <artifactId>sakai-syllabus-api</artifactId> to sakai-testing-api then I faced following error.

note: I have updated all other modules dependencies which depend upon it e., sakai-testing-impl, sakai-testing-hbm etc. it compiles without any error but at run time I face following error

Before changing artifactId following were location of jar files
1. tool: webapp
2. hbm: shared\lib
3. pack: components
4. help: shared\lib
5. impl: components\sakai-syllabus-pack\WEB-INF\lib
api: shared\lib

After changing  artifactId following were location of jar files 
1. tool: webapp
2. hbm: shared\lib
3. pack: components
4. help: shared\lib
5. impl: components\sakai-syllabus-pack\WEB-INF\lib
api: shared\lib

6. api: components\sakai-syllabus-pack\WEB-INF\lib
this file was additionally added

Tomcat  time error:
org.sakaiproject.portal.api.PortalHandlerException: org.sakaiproject.tool.api.ToolException: org.apache.jasper.JasperException: javax.faces.el.EvaluationException: javax.faces.FacesException: javax.faces.FacesException: Error performing conversion of value 'org.sakaiproject.component.app.exam.TestDaoImpl@17f2e85' of type 'class $Proxy63' to type 'interface org.sakaiproject.api.app.exam.TestDao' for managed bean 'TestingTool'.
    at org.sakaiproject.portal.charon.SkinnableCharonPortal.doGet(SkinnableCharonPortal.java:894)
caused by: org.sakaiproject.tool.api.ToolException: org.apache.jasper.JasperException: javax.faces.el.EvaluationException: javax.faces.FacesException: javax.faces.FacesException: Error performing conversion of value 'org.sakaiproject.component.app.exam.TestDaoImpl@17f2e85' of type 'class $Proxy63' to type 'interface org.sakaiproject.api.app.exam.TestDao' for managed bean 'TestingTool'.
    at org.sakaiproject.portal.charon.SkinnableCharonPortal.forwardTool(SkinnableCharonPortal.java:1483)
caused by: org.apache.jasper.JasperException: javax.faces.el.EvaluationException: javax.faces.FacesException: javax.faces.FacesException: Error performing conversion of value 'org.sakaiproject.component.app.exam.TestDaoImpl@17f2e85' of type 'class $Proxy63' to type 'interface org.sakaiproject.api.app.exam.TestDao' for managed bean 'TestingTool'.
    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:470)
caused by: javax.faces.el.EvaluationException: javax.faces.FacesException: javax.faces.FacesException: Error performing conversion of value 'org.sakaiproject.component.app.exam.TestDaoImpl@17f2e85' of type 'class $Proxy63' to type 'interface org.sakaiproject.api.app.exam.TestDao' for managed bean 'TestingTool'.
    at com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:143)
caused by: javax.faces.FacesException: javax.faces.FacesException: Error performing conversion of value 'org.sakaiproject.component.app.exam.TestDaoImpl@17f2e85' of type 'class $Proxy63' to type 'interface org.sakaiproject.api.app.exam.TestDao' for managed bean 'QnetTool'.
    at com.sun.faces.el.VariableResolverImpl.resolveVariable(VariableResolverImpl.java:97)
caused by: javax.faces.FacesException: Error performing conversion of value 'org.sakaiproject.component.app.exam.TestDaoImpl@17f2e85' of type 'class $Proxy63' to type 'interface org.sakaiproject.api.app.exam.TestDao' for managed bean 'QnetTool'.
    at com.sun.faces.config.ManagedBeanFactory.getConvertedValueConsideringPrimitives(ManagedBeanFactory.java:885)
    at com.sun.faces.config.ManagedBeanFactory.setPropertiesIntoBean(ManagedBeanFactory.java:575)
    at com.sun.faces.config.ManagedBeanFactory.newInstance(ManagedBeanFactory.java:253)
    at com.sun.faces.application.ApplicationAssociate.createAndMaybeStoreManagedBeans(ApplicationAssociate.java:282)
    at com.sun.faces.el.VariableResolverImpl.resolveVariable(VariableResolverImpl.java:97)
    at org.sakaiproject.jsf.app.SakaiVariableResolver.resolveVariable(SakaiVariableResolver.java:76)
    at com.sun.faces.el.impl.NamedValue.evaluate(NamedValue.java:145)
    at com.sun.faces.el.impl.ComplexValue.evaluate(ComplexValue.java:166)
    at com.sun.faces.el.impl.ExpressionEvaluatorImpl.evaluate(ExpressionEvaluatorImpl.java:263)
    at com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:160)
    at com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:143)
    at javax.faces.component.UIComponentBase$AttributesMap.get(UIComponentBase.java:1397)
    at org.sakaiproject.jsf.exam.QnetIfNotRender.encodeBegin(QnetIfNotRender.java:43)
    at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:703)
    at javax.faces.webapp.UIComponentTag.encodeBegin(UIComponentTag.java:613)
    at javax.faces.webapp.UIComponentTag.doEndTag(UIComponentTag.java:565)
    at org.apache.jsp.exam.main_jsp._jspx_meth_syllabus_005fqnet_005fifnot_005f0(main_jsp.java:539)
    at org.apache.jsp.exam.main_jsp._jspx_meth_h_005fform_005f0(main_jsp.java:268)
    at org.apache.jsp.exam.main_jsp._jspx_meth_sakai_005fview_005fcontent_005f0(main_jsp.java:220)
    at org.apache.jsp.exam.main_jsp._jspx_meth_sakai_005fview_005fcontainer_005f0(main_jsp.java:186)
    at org.apache.jsp.exam.main_jsp._jspx_meth_f_005fview_005f0(main_jsp.java:153)
    at org.apache.jsp.exam.main_jsp._jspService(main_jsp.java:101)
    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
    at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:749)
    at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:487)
    at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:412)
    at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:339)
    at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:346)
    at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:152)
    at org.sakaiproject.jsf.app.SakaiViewHandler.renderView(SakaiViewHandler.java:159)
    at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:107)
    at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:268)
    at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:137)
    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:214)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
    at org.sakaiproject.util.RequestFilter.doFilter(RequestFilter.java:634)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
    at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:749)
    at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:487)
    at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:412)
    at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:339)
    at org.sakaiproject.tool.exam.QnetFilePickerServlet.dispatch(QnetFilePickerServlet.java:158)
    at org.sakaiproject.jsf.util.JsfTool.doGet(JsfTool.java:241)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
    at org.sakaiproject.util.RequestFilter.doFilter(RequestFilter.java:634)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
    at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:749)
    at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:487)
    at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:379)
    at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:339)
    at org.sakaiproject.tool.impl.ActiveToolComponent$MyActiveTool.forward(ActiveToolComponent.java:511)
    at org.sakaiproject.portal.charon.SkinnableCharonPortal.forwardTool(SkinnableCharonPortal.java:1483)
    at org.sakaiproject.portal.charon.handlers.ToolHandler.doTool(ToolHandler.java:213)
    at org.sakaiproject.portal.charon.handlers.ToolHandler.doGet(ToolHandler.java:96)
    at org.sakaiproject.portal.charon.SkinnableCharonPortal.doGet(SkinnableCharonPortal.java:894)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
    at org.sakaiproject.util.RequestFilter.doFilter(RequestFilter.java:695)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
    at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
    at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:947)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
    at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1009)
    at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
    at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:312)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
    at java.lang.Thread.run(Thread.java:619)




_______________________________________________
sakai-dev mailing list
[hidden email]
http://collab.sakaiproject.org/mailman/listinfo/sakai-dev

TO UNSUBSCRIBE: send email to [hidden email] with a subject of "unsubscribe"
Aaron Zeckoski-3 Aaron Zeckoski-3
Reply | Threaded
Open this post in threaded view
|

Re: [Building Sakai] Need help in JSF, Spring, Hibernate tool

Check out the tips on this page:
https://confluence.sakaiproject.org/display/BOOT/Sakai+app+and+tool+naming+tips

I think you have an id that is misaligned.

That said, I would really strongly recommend NOT creating a tool in
JSF or based on an existing JSF tool.
-AZ

On Thu, May 29, 2014 at 3:29 PM, Khan <[hidden email]> wrote:

> Dear All
>
> I have developed a JSF tool by renaming and updating sakai syllabus tool,
> everything was working fine, but when I changed
> <artifactId>sakai-syllabus-api</artifactId> to sakai-testing-api then I
> faced following error.
>
> note: I have updated all other modules dependencies which depend upon it e.,
> sakai-testing-impl, sakai-testing-hbm etc. it compiles without any error but
> at run time I face following error
>
> Before changing artifactId following were location of jar files
> 1. tool: webapp
> 2. hbm: shared\lib
> 3. pack: components
> 4. help: shared\lib
> 5. impl: components\sakai-syllabus-pack\WEB-INF\lib
> api: shared\lib
>
> After changing  artifactId following were location of jar files
> 1. tool: webapp
> 2. hbm: shared\lib
> 3. pack: components
> 4. help: shared\lib
> 5. impl: components\sakai-syllabus-pack\WEB-INF\lib
> api: shared\lib
>
> 6. api: components\sakai-syllabus-pack\WEB-INF\lib
> this file was additionally added
>
> Tomcat  time error:
> org.sakaiproject.portal.api.PortalHandlerException:
> org.sakaiproject.tool.api.ToolException: org.apache.jasper.JasperException:
> javax.faces.el.EvaluationException: javax.faces.FacesException:
> javax.faces.FacesException: Error performing conversion of value
> 'org.sakaiproject.component.app.exam.TestDaoImpl@17f2e85' of type 'class
> $Proxy63' to type 'interface org.sakaiproject.api.app.exam.TestDao' for
> managed bean 'TestingTool'.
>     at
> org.sakaiproject.portal.charon.SkinnableCharonPortal.doGet(SkinnableCharonPortal.java:894)
> caused by: org.sakaiproject.tool.api.ToolException:
> org.apache.jasper.JasperException: javax.faces.el.EvaluationException:
> javax.faces.FacesException: javax.faces.FacesException: Error performing
> conversion of value
> 'org.sakaiproject.component.app.exam.TestDaoImpl@17f2e85' of type 'class
> $Proxy63' to type 'interface org.sakaiproject.api.app.exam.TestDao' for
> managed bean 'TestingTool'.
>     at
> org.sakaiproject.portal.charon.SkinnableCharonPortal.forwardTool(SkinnableCharonPortal.java:1483)
> caused by: org.apache.jasper.JasperException:
> javax.faces.el.EvaluationException: javax.faces.FacesException:
> javax.faces.FacesException: Error performing conversion of value
> 'org.sakaiproject.component.app.exam.TestDaoImpl@17f2e85' of type 'class
> $Proxy63' to type 'interface org.sakaiproject.api.app.exam.TestDao' for
> managed bean 'TestingTool'.
>     at
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:470)
> caused by: javax.faces.el.EvaluationException: javax.faces.FacesException:
> javax.faces.FacesException: Error performing conversion of value
> 'org.sakaiproject.component.app.exam.TestDaoImpl@17f2e85' of type 'class
> $Proxy63' to type 'interface org.sakaiproject.api.app.exam.TestDao' for
> managed bean 'TestingTool'.
>     at com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:143)
> caused by: javax.faces.FacesException: javax.faces.FacesException: Error
> performing conversion of value
> 'org.sakaiproject.component.app.exam.TestDaoImpl@17f2e85' of type 'class
> $Proxy63' to type 'interface org.sakaiproject.api.app.exam.TestDao' for
> managed bean 'QnetTool'.
>     at
> com.sun.faces.el.VariableResolverImpl.resolveVariable(VariableResolverImpl.java:97)
> caused by: javax.faces.FacesException: Error performing conversion of value
> 'org.sakaiproject.component.app.exam.TestDaoImpl@17f2e85' of type 'class
> $Proxy63' to type 'interface org.sakaiproject.api.app.exam.TestDao' for
> managed bean 'QnetTool'.
>     at
> com.sun.faces.config.ManagedBeanFactory.getConvertedValueConsideringPrimitives(ManagedBeanFactory.java:885)
>     at
> com.sun.faces.config.ManagedBeanFactory.setPropertiesIntoBean(ManagedBeanFactory.java:575)
>     at
> com.sun.faces.config.ManagedBeanFactory.newInstance(ManagedBeanFactory.java:253)
>     at
> com.sun.faces.application.ApplicationAssociate.createAndMaybeStoreManagedBeans(ApplicationAssociate.java:282)
>     at
> com.sun.faces.el.VariableResolverImpl.resolveVariable(VariableResolverImpl.java:97)
>     at
> org.sakaiproject.jsf.app.SakaiVariableResolver.resolveVariable(SakaiVariableResolver.java:76)
>     at com.sun.faces.el.impl.NamedValue.evaluate(NamedValue.java:145)
>     at com.sun.faces.el.impl.ComplexValue.evaluate(ComplexValue.java:166)
>     at
> com.sun.faces.el.impl.ExpressionEvaluatorImpl.evaluate(ExpressionEvaluatorImpl.java:263)
>     at com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:160)
>     at com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:143)
>     at
> javax.faces.component.UIComponentBase$AttributesMap.get(UIComponentBase.java:1397)
>     at
> org.sakaiproject.jsf.exam.QnetIfNotRender.encodeBegin(QnetIfNotRender.java:43)
>     at
> javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:703)
>     at
> javax.faces.webapp.UIComponentTag.encodeBegin(UIComponentTag.java:613)
>     at javax.faces.webapp.UIComponentTag.doEndTag(UIComponentTag.java:565)
>     at
> org.apache.jsp.exam.main_jsp._jspx_meth_syllabus_005fqnet_005fifnot_005f0(main_jsp.java:539)
>     at
> org.apache.jsp.exam.main_jsp._jspx_meth_h_005fform_005f0(main_jsp.java:268)
>     at
> org.apache.jsp.exam.main_jsp._jspx_meth_sakai_005fview_005fcontent_005f0(main_jsp.java:220)
>     at
> org.apache.jsp.exam.main_jsp._jspx_meth_sakai_005fview_005fcontainer_005f0(main_jsp.java:186)
>     at
> org.apache.jsp.exam.main_jsp._jspx_meth_f_005fview_005f0(main_jsp.java:153)
>     at org.apache.jsp.exam.main_jsp._jspService(main_jsp.java:101)
>     at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
>     at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
>     at
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)
>     at
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
>     at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
>     at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
>     at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
>     at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
>     at
> org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:749)
>     at
> org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:487)
>     at
> org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:412)
>     at
> org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:339)
>     at
> com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:346)
>     at
> com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:152)
>     at
> org.sakaiproject.jsf.app.SakaiViewHandler.renderView(SakaiViewHandler.java:159)
>     at
> com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:107)
>     at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:268)
>     at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:137)
>     at javax.faces.webapp.FacesServlet.service(FacesServlet.java:214)
>     at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
>     at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
>     at org.sakaiproject.util.RequestFilter.doFilter(RequestFilter.java:634)
>     at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
>     at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
>     at
> org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:749)
>     at
> org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:487)
>     at
> org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:412)
>     at
> org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:339)
>     at
> org.sakaiproject.tool.exam.QnetFilePickerServlet.dispatch(QnetFilePickerServlet.java:158)
>     at org.sakaiproject.jsf.util.JsfTool.doGet(JsfTool.java:241)
>     at javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
>     at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
>     at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
>     at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
>     at org.sakaiproject.util.RequestFilter.doFilter(RequestFilter.java:634)
>     at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
>     at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
>     at
> org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:749)
>     at
> org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:487)
>     at
> org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:379)
>     at
> org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:339)
>     at
> org.sakaiproject.tool.impl.ActiveToolComponent$MyActiveTool.forward(ActiveToolComponent.java:511)
>     at
> org.sakaiproject.portal.charon.SkinnableCharonPortal.forwardTool(SkinnableCharonPortal.java:1483)
>     at
> org.sakaiproject.portal.charon.handlers.ToolHandler.doTool(ToolHandler.java:213)
>     at
> org.sakaiproject.portal.charon.handlers.ToolHandler.doGet(ToolHandler.java:96)
>     at
> org.sakaiproject.portal.charon.SkinnableCharonPortal.doGet(SkinnableCharonPortal.java:894)
>     at javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
>     at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
>     at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
>     at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
>     at org.sakaiproject.util.RequestFilter.doFilter(RequestFilter.java:695)
>     at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
>     at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
>     at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
>     at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
>     at
> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
>     at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
>     at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
>     at
> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:947)
>     at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
>     at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
>     at
> org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1009)
>     at
> org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
>     at
> org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:312)
>     at
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>     at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>     at java.lang.Thread.run(Thread.java:619)
>
>
>
>
> _______________________________________________
> sakai-dev mailing list
> [hidden email]
> http://collab.sakaiproject.org/mailman/listinfo/sakai-dev
>
> TO UNSUBSCRIBE: send email to [hidden email]
> with a subject of "unsubscribe"



--
Aaron Zeckoski - Software Architect - http://tinyurl.com/azprofile
_______________________________________________
sakai-dev mailing list
[hidden email]
http://collab.sakaiproject.org/mailman/listinfo/sakai-dev

TO UNSUBSCRIBE: send email to [hidden email] with a subject of "unsubscribe"
Khan Khan
Reply | Threaded
Open this post in threaded view
|

Re: [Building Sakai] Need help in JSF, Spring, Hibernate tool

In reply to this post by Khan
Dear Aaron Zeckoski 

I am following same name convention which you mentioned, everything was working fine after renaming but I faced error only when I changed artifictID of API module. I renamed all modules one by one, and restarted tomcat after changing name and run example/tool in tomcat, I did not face any issue, but in last when I renamed artifictID of API module then faced error mentioned in previous email..

Thanks



On Friday, May 30, 2014 12:29 AM, Khan <[hidden email]> wrote:


Dear All

I have developed a JSF tool by renaming and updating sakai syllabus tool, everything was working fine, but when I changed   <artifactId>sakai-syllabus-api</artifactId> to sakai-testing-api then I faced following error.

note: I have updated all other modules dependencies which depend upon it e., sakai-testing-impl, sakai-testing-hbm etc. it compiles without any error but at run time I face following error

Before changing artifactId following were location of jar files
1. tool: webapp
2. hbm: shared\lib
3. pack: components
4. help: shared\lib
5. impl: components\sakai-syllabus-pack\WEB-INF\lib
api: shared\lib

After changing  artifactId following were location of jar files 
1. tool: webapp
2. hbm: shared\lib
3. pack: components
4. help: shared\lib
5. impl: components\sakai-syllabus-pack\WEB-INF\lib
api: shared\lib

6. api: components\sakai-syllabus-pack\WEB-INF\lib
this file was additionally added

Tomcat  time error:
org.sakaiproject.portal.api.PortalHandlerException: org.sakaiproject.tool.api.ToolException: org.apache.jasper.JasperException: javax.faces.el.EvaluationException: javax.faces.FacesException: javax.faces.FacesException: Error performing conversion of value 'org.sakaiproject.component.app.exam.TestDaoImpl@17f2e85' of type 'class $Proxy63' to type 'interface org.sakaiproject.api.app.exam.TestDao' for managed bean 'TestingTool'.
    at org.sakaiproject.portal.charon.SkinnableCharonPortal.doGet(SkinnableCharonPortal.java:894)
caused by: org.sakaiproject.tool.api.ToolException: org.apache.jasper.JasperException: javax.faces.el.EvaluationException: javax.faces.FacesException: javax.faces.FacesException: Error performing conversion of value 'org.sakaiproject.component.app.exam.TestDaoImpl@17f2e85' of type 'class $Proxy63' to type 'interface org.sakaiproject.api.app.exam.TestDao' for managed bean 'TestingTool'.
    at org.sakaiproject.portal.charon.SkinnableCharonPortal.forwardTool(SkinnableCharonPortal.java:1483)
caused by: org.apache.jasper.JasperException: javax.faces.el.EvaluationException: javax.faces.FacesException: javax.faces.FacesException: Error performing conversion of value 'org.sakaiproject.component.app.exam.TestDaoImpl@17f2e85' of type 'class $Proxy63' to type 'interface org.sakaiproject.api.app.exam.TestDao' for managed bean 'TestingTool'.
    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:470)
caused by: javax.faces.el.EvaluationException: javax.faces.FacesException: javax.faces.FacesException: Error performing conversion of value 'org.sakaiproject.component.app.exam.TestDaoImpl@17f2e85' of type 'class $Proxy63' to type 'interface org.sakaiproject.api.app.exam.TestDao' for managed bean 'TestingTool'.
    at com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:143)
caused by: javax.faces.FacesException: javax.faces.FacesException: Error performing conversion of value 'org.sakaiproject.component.app.exam.TestDaoImpl@17f2e85' of type 'class $Proxy63' to type 'interface org.sakaiproject.api.app.exam.TestDao' for managed bean 'QnetTool'.
    at com.sun.faces.el.VariableResolverImpl.resolveVariable(VariableResolverImpl.java:97)
caused by: javax.faces.FacesException: Error performing conversion of value 'org.sakaiproject.component.app.exam.TestDaoImpl@17f2e85' of type 'class $Proxy63' to type 'interface org.sakaiproject.api.app.exam.TestDao' for managed bean 'QnetTool'.
    at com.sun.faces.config.ManagedBeanFactory.getConvertedValueConsideringPrimitives(ManagedBeanFactory.java:885)
    at com.sun.faces.config.ManagedBeanFactory.setPropertiesIntoBean(ManagedBeanFactory.java:575)
    at com.sun.faces.config.ManagedBeanFactory.newInstance(ManagedBeanFactory.java:253)
    at com.sun.faces.application.ApplicationAssociate.createAndMaybeStoreManagedBeans(ApplicationAssociate.java:282)
    at com.sun.faces.el.VariableResolverImpl.resolveVariable(VariableResolverImpl.java:97)
    at org.sakaiproject.jsf.app.SakaiVariableResolver.resolveVariable(SakaiVariableResolver.java:76)
    at com.sun.faces.el.impl.NamedValue.evaluate(NamedValue.java:145)
    at com.sun.faces.el.impl.ComplexValue.evaluate(ComplexValue.java:166)
    at com.sun.faces.el.impl.ExpressionEvaluatorImpl.evaluate(ExpressionEvaluatorImpl.java:263)
    at com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:160)
    at com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:143)
    at javax.faces.component.UIComponentBase$AttributesMap.get(UIComponentBase.java:1397)
    at org.sakaiproject.jsf.exam.QnetIfNotRender.encodeBegin(QnetIfNotRender.java:43)
    at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:703)
    at javax.faces.webapp.UIComponentTag.encodeBegin(UIComponentTag.java:613)
    at javax.faces.webapp.UIComponentTag.doEndTag(UIComponentTag.java:565)
    at org.apache.jsp.exam.main_jsp._jspx_meth_syllabus_005fqnet_005fifnot_005f0(main_jsp.java:539)
    at org.apache.jsp.exam.main_jsp._jspx_meth_h_005fform_005f0(main_jsp.java:268)
    at org.apache.jsp.exam.main_jsp._jspx_meth_sakai_005fview_005fcontent_005f0(main_jsp.java:220)
    at org.apache.jsp.exam.main_jsp._jspx_meth_sakai_005fview_005fcontainer_005f0(main_jsp.java:186)
    at org.apache.jsp.exam.main_jsp._jspx_meth_f_005fview_005f0(main_jsp.java:153)
    at org.apache.jsp.exam.main_jsp._jspService(main_jsp.java:101)
    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
    at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:749)
    at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:487)
    at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:412)
    at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:339)
    at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:346)
    at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:152)
    at org.sakaiproject.jsf.app.SakaiViewHandler.renderView(SakaiViewHandler.java:159)
    at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:107)
    at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:268)
    at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:137)
    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:214)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
    at org.sakaiproject.util.RequestFilter.doFilter(RequestFilter.java:634)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
    at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:749)
    at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:487)
    at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:412)
    at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:339)
    at org.sakaiproject.tool.exam.QnetFilePickerServlet.dispatch(QnetFilePickerServlet.java:158)
    at org.sakaiproject.jsf.util.JsfTool.doGet(JsfTool.java:241)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
    at org.sakaiproject.util.RequestFilter.doFilter(RequestFilter.java:634)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
    at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:749)
    at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:487)
    at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:379)
    at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:339)
    at org.sakaiproject.tool.impl.ActiveToolComponent$MyActiveTool.forward(ActiveToolComponent.java:511)
    at org.sakaiproject.portal.charon.SkinnableCharonPortal.forwardTool(SkinnableCharonPortal.java:1483)
    at org.sakaiproject.portal.charon.handlers.ToolHandler.doTool(ToolHandler.java:213)
    at org.sakaiproject.portal.charon.handlers.ToolHandler.doGet(ToolHandler.java:96)
    at org.sakaiproject.portal.charon.SkinnableCharonPortal.doGet(SkinnableCharonPortal.java:894)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
    at org.sakaiproject.util.RequestFilter.doFilter(RequestFilter.java:695)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
    at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
    at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:947)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
    at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1009)
    at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
    at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:312)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
    at java.lang.Thread.run(Thread.java:619)






_______________________________________________
sakai-dev mailing list
[hidden email]
http://collab.sakaiproject.org/mailman/listinfo/sakai-dev

TO UNSUBSCRIBE: send email to [hidden email] with a subject of "unsubscribe"
Cris J Holdorph Cris J Holdorph
Reply | Threaded
Open this post in threaded view
|

Re: [Building Sakai] Need help in JSF, Spring, Hibernate tool

Do you clean out your tomcat before deploying your Sakai code with maven?

This is the command I use to clean out all of the sakai junk from
Tomcat, before I do my deploy.

 From the top level tomcat directory:

/bin/rm -fr webapps/* components/* work/Catalina/localhost
common/lib/sakai-* shared/lib/*

Then I go to my Sakai source tree and run:

mvn sakai:deploy
-Dmaven.tomcat.home=/home/holdorph/projects/tomcat-sakai-7.0.47

If you do not clean stuff out of tomcat, you can have old jars from
previous builds that hang around, especially if you rename things.

---- Cris J H

On 05/29/2014 12:50 PM, Khan wrote:

> Dear Aaron Zeckoski
>
> I am following same name convention which you mentioned, everything was
> working fine after renaming but I faced error only when I changed
> artifictID of API module. I renamed all modules one by one, and
> restarted tomcat after changing name and run example/tool in tomcat, I
> did not face any issue, but in last when I renamed artifictID of API
> module then faced error mentioned in previous email..
>
> Thanks
>
>
>
> On Friday, May 30, 2014 12:29 AM, Khan <[hidden email]> wrote:
>
>
> Dear All
>
> I have developed a JSF tool by renaming and updating sakai syllabus
> tool, everything was working fine, but when I changed
> <artifactId>sakai-syllabus-api</artifactId> to sakai-testing-api then I
> faced following error.
>
> note: I have updated all other modules dependencies which depend upon it
> e., sakai-testing-impl, sakai-testing-hbm etc. it compiles without any
> error but at run time I face following error
>
> Before changing artifactId following were location of jar files
> 1. tool: webapp
> 2. hbm: shared\lib
> 3. pack: components
> 4. help: shared\lib
> 5. impl: components\sakai-syllabus-pack\WEB-INF\lib
> api: shared\lib
>
> After changing artifactId following were location of jar files
> 1. tool: webapp
> 2. hbm: shared\lib
> 3. pack: components
> 4. help: shared\lib
> 5. impl: components\sakai-syllabus-pack\WEB-INF\lib
> api: shared\lib
>
> 6. api: components\sakai-syllabus-pack\WEB-INF\lib
> this file was additionally added
>
> Tomcat  time error:
> org.sakaiproject.portal.api.PortalHandlerException:
> org.sakaiproject.tool.api.ToolException:
> org.apache.jasper.JasperException: javax.faces.el.EvaluationException:
> javax.faces.FacesException: javax.faces.FacesException: Error performing
> conversion of value
> 'org.sakaiproject.component.app.exam.TestDaoImpl@17f2e85' of type 'class
> $Proxy63' to type 'interface org.sakaiproject.api.app.exam.TestDao' for
> managed bean 'TestingTool'.
>      at
> org.sakaiproject.portal.charon.SkinnableCharonPortal.doGet(SkinnableCharonPortal.java:894)
> caused by: org.sakaiproject.tool.api.ToolException:
> org.apache.jasper.JasperException: javax.faces.el.EvaluationException:
> javax.faces.FacesException: javax.faces.FacesException: Error performing
> conversion of value
> 'org.sakaiproject.component.app.exam.TestDaoImpl@17f2e85' of type 'class
> $Proxy63' to type 'interface org.sakaiproject.api.app.exam.TestDao' for
> managed bean 'TestingTool'.
>      at
> org.sakaiproject.portal.charon.SkinnableCharonPortal.forwardTool(SkinnableCharonPortal.java:1483)
> caused by: org.apache.jasper.JasperException:
> javax.faces.el.EvaluationException: javax.faces.FacesException:
> javax.faces.FacesException: Error performing conversion of value
> 'org.sakaiproject.component.app.exam.TestDaoImpl@17f2e85' of type 'class
> $Proxy63' to type 'interface org.sakaiproject.api.app.exam.TestDao' for
> managed bean 'TestingTool'.
>      at
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:470)
> caused by: javax.faces.el.EvaluationException:
> javax.faces.FacesException: javax.faces.FacesException: Error performing
> conversion of value
> 'org.sakaiproject.component.app.exam.TestDaoImpl@17f2e85' of type 'class
> $Proxy63' to type 'interface org.sakaiproject.api.app.exam.TestDao' for
> managed bean 'TestingTool'.
>      at
> com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:143)
> caused by: javax.faces.FacesException: javax.faces.FacesException: Error
> performing conversion of value
> 'org.sakaiproject.component.app.exam.TestDaoImpl@17f2e85' of type 'class
> $Proxy63' to type 'interface org.sakaiproject.api.app.exam.TestDao' for
> managed bean 'QnetTool'.
>      at
> com.sun.faces.el.VariableResolverImpl.resolveVariable(VariableResolverImpl.java:97)
> caused by: javax.faces.FacesException: Error performing conversion of
> value 'org.sakaiproject.component.app.exam.TestDaoImpl@17f2e85' of type
> 'class $Proxy63' to type 'interface
> org.sakaiproject.api.app.exam.TestDao' for managed bean 'QnetTool'.
>      at
> com.sun.faces.config.ManagedBeanFactory.getConvertedValueConsideringPrimitives(ManagedBeanFactory.java:885)
>      at
> com.sun.faces.config.ManagedBeanFactory.setPropertiesIntoBean(ManagedBeanFactory.java:575)
>      at
> com.sun.faces.config.ManagedBeanFactory.newInstance(ManagedBeanFactory.java:253)
>      at
> com.sun.faces.application.ApplicationAssociate.createAndMaybeStoreManagedBeans(ApplicationAssociate.java:282)
>      at
> com.sun.faces.el.VariableResolverImpl.resolveVariable(VariableResolverImpl.java:97)
>      at
> org.sakaiproject.jsf.app.SakaiVariableResolver.resolveVariable(SakaiVariableResolver.java:76)
>      at com.sun.faces.el.impl.NamedValue.evaluate(NamedValue.java:145)
>      at com.sun.faces.el.impl.ComplexValue.evaluate(ComplexValue.java:166)
>      at
> com.sun.faces.el.impl.ExpressionEvaluatorImpl.evaluate(ExpressionEvaluatorImpl.java:263)
>      at
> com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:160)
>      at
> com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:143)
>      at
> javax.faces.component.UIComponentBase$AttributesMap.get(UIComponentBase.java:1397)
>      at
> org.sakaiproject.jsf.exam.QnetIfNotRender.encodeBegin(QnetIfNotRender.java:43)
>      at
> javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:703)
>      at
> javax.faces.webapp.UIComponentTag.encodeBegin(UIComponentTag.java:613)
>      at javax.faces.webapp.UIComponentTag.doEndTag(UIComponentTag.java:565)
>      at
> org.apache.jsp.exam.main_jsp._jspx_meth_syllabus_005fqnet_005fifnot_005f0(main_jsp.java:539)
>      at
> org.apache.jsp.exam.main_jsp._jspx_meth_h_005fform_005f0(main_jsp.java:268)
>      at
> org.apache.jsp.exam.main_jsp._jspx_meth_sakai_005fview_005fcontent_005f0(main_jsp.java:220)
>      at
> org.apache.jsp.exam.main_jsp._jspx_meth_sakai_005fview_005fcontainer_005f0(main_jsp.java:186)
>      at
> org.apache.jsp.exam.main_jsp._jspx_meth_f_005fview_005f0(main_jsp.java:153)
>      at org.apache.jsp.exam.main_jsp._jspService(main_jsp.java:101)
>      at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
>      at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
>      at
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)
>      at
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
>      at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
>      at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
>      at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
>      at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
>      at
> org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:749)
>      at
> org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:487)
>      at
> org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:412)
>      at
> org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:339)
>      at
> com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:346)
>    at
> com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:152)
>      at
> org.sakaiproject.jsf.app.SakaiViewHandler.renderView(SakaiViewHandler.java:159)
>      at
> com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:107)
>      at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:268)
>      at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:137)
>      at javax.faces.webapp.FacesServlet.service(FacesServlet.java:214)
>      at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
>      at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
>      at org.sakaiproject.util.RequestFilter.doFilter(RequestFilter.java:634)
>      at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
>      at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
>      at
> org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:749)
>    at
> org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:487)
>      at
> org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:412)
>      at
> org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:339)
>      at
> org.sakaiproject.tool.exam.QnetFilePickerServlet.dispatch(QnetFilePickerServlet.java:158)
>      at org.sakaiproject.jsf.util.JsfTool.doGet(JsfTool.java:241)
>      at javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
>      at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
>      at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
>      at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
>      at org.sakaiproject.util.RequestFilter.doFilter(RequestFilter.java:634)
>      at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
>      at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
>      at
> org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:749)
>      at
> org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:487)
>      at
> org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:379)
>      at
> org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:339)
>      at
> org.sakaiproject.tool.impl.ActiveToolComponent$MyActiveTool.forward(ActiveToolComponent.java:511)
>      at
> org.sakaiproject.portal.charon.SkinnableCharonPortal.forwardTool(SkinnableCharonPortal.java:1483)
>      at
> org.sakaiproject.portal.charon.handlers.ToolHandler.doTool(ToolHandler.java:213)
>      at
> org.sakaiproject.portal.charon.handlers.ToolHandler.doGet(ToolHandler.java:96)
>      at
> org.sakaiproject.portal.charon.SkinnableCharonPortal.doGet(SkinnableCharonPortal.java:894)
>      at javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
>      at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
>      at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
>      at org.sakaiproject.util.RequestFilter.doFilter(RequestFilter.java:695)
>      at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
>      at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
>      at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
>      at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
>      at
> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
>      at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
>      at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
>      at
> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:947)
>      at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
>      at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
>      at
> org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1009)
>      at
> org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
>      at
> org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:312)
>      at
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>      at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>      at java.lang.Thread.run(Thread.java:619)
>
>
>
>
>
>
>
> _______________________________________________
> sakai-dev mailing list
> [hidden email]
> http://collab.sakaiproject.org/mailman/listinfo/sakai-dev
>
> TO UNSUBSCRIBE: send email to [hidden email] with a subject of "unsubscribe"
>
_______________________________________________
sakai-dev mailing list
[hidden email]
http://collab.sakaiproject.org/mailman/listinfo/sakai-dev

TO UNSUBSCRIBE: send email to [hidden email] with a subject of "unsubscribe"
Khan Khan
Reply | Threaded
Open this post in threaded view
|

Re: [Building Sakai] Need help in JSF, Spring, Hibernate tool

Problem resolved when manually deleted \WEB-INF\lib\sakai-example-api-2.9.3.jar from sakai-example-tool-2.9.3.war and restarted tomcat

Because according to POM.xml of sakai-example-api 

 <packaging>jar</packaging>
  <properties>
    <deploy.target>shared</deploy.target>
  </properties>

it should move to shared/lib instead of sakai-example-tool\WEB-INF\lib\


Anyone can help me how to exclude jar sakai-example-api-2.9.3.jar from sakai-example-tool-2.9.3.war

When I remove following lines from  POM.xml of sakai-example-tool then it is not compiling because all the classes and its declarations are inside this module

    <dependency>
      <groupId>org.sakaiproject</groupId>
      <artifactId>sakai-qarnet-api</artifactId>
      <version>2.9.3</version>
    </dependency>



On Friday, May 30, 2014 12:56 AM, Cris J Holdorph <[hidden email]> wrote:


Do you clean out your tomcat before deploying your Sakai code with maven?

This is the command I use to clean out all of the sakai junk from
Tomcat, before I do my deploy.

From the top level tomcat directory:

/bin/rm -fr webapps/* components/* work/Catalina/localhost
common/lib/sakai-* shared/lib/*

Then I go to my Sakai source tree and run:

mvn sakai:deploy
-Dmaven.tomcat.home=/home/holdorph/projects/tomcat-sakai-7.0.47

If you do not clean stuff out of tomcat, you can have old jars from
previous builds that hang around, especially if you rename things.

---- Cris J H

On 05/29/2014 12:50 PM, Khan wrote:

> Dear Aaron Zeckoski
>
> I am following same name convention which you mentioned, everything was
> working fine after renaming but I faced error only when I changed
> artifictID of API module. I renamed all modules one by one, and
> restarted tomcat after changing name and run example/tool in tomcat, I
> did not face any issue, but in last when I renamed artifictID of API
> module then faced error mentioned in previous email..
>
> Thanks
>
>
>
> On Friday, May 30, 2014 12:29 AM, Khan <[hidden email]> wrote:
>
>
> Dear All
>
> I have developed a JSF tool by renaming and updating sakai syllabus
> tool, everything was working fine, but when I changed
> <artifactId>sakai-syllabus-api</artifactId> to sakai-testing-api then I
> faced following error.
>
> note: I have updated all other modules dependencies which depend upon it
> e., sakai-testing-impl, sakai-testing-hbm etc. it compiles without any
> error but at run time I face following error
>
> Before changing artifactId following were location of jar files
> 1. tool: webapp
> 2. hbm: shared\lib
> 3. pack: components
> 4. help: shared\lib
> 5. impl: components\sakai-syllabus-pack\WEB-INF\lib
> api: shared\lib
>
> After changing artifactId following were location of jar files
> 1. tool: webapp
> 2. hbm: shared\lib
> 3. pack: components
> 4. help: shared\lib
> 5. impl: components\sakai-syllabus-pack\WEB-INF\lib
> api: shared\lib
>
> 6. api: components\sakai-syllabus-pack\WEB-INF\lib
> this file was additionally added
>
> Tomcat  time error:
> org.sakaiproject.portal.api.PortalHandlerException:
> org.sakaiproject.tool.api.ToolException:
> org.apache.jasper.JasperException: javax.faces.el.EvaluationException:
> javax.faces.FacesException: javax.faces.FacesException: Error performing
> conversion of value
> '[hidden email]' of type 'class
> $Proxy63' to type 'interface org.sakaiproject.api.app.exam.TestDao' for
> managed bean 'TestingTool'.
>      at
> org.sakaiproject.portal.charon.SkinnableCharonPortal.doGet(SkinnableCharonPortal.java:894)
> caused by: org.sakaiproject.tool.api.ToolException:
> org.apache.jasper.JasperException: javax.faces.el.EvaluationException:
> javax.faces.FacesException: javax.faces.FacesException: Error performing
> conversion of value
> '[hidden email]' of type 'class
> $Proxy63' to type 'interface org.sakaiproject.api.app.exam.TestDao' for
> managed bean 'TestingTool'.
>      at
> org.sakaiproject.portal.charon.SkinnableCharonPortal.forwardTool(SkinnableCharonPortal.java:1483)
> caused by: org.apache.jasper.JasperException:
> javax.faces.el.EvaluationException: javax.faces.FacesException:
> javax.faces.FacesException: Error performing conversion of value
> '[hidden email]' of type 'class
> $Proxy63' to type 'interface org.sakaiproject.api.app.exam.TestDao' for
> managed bean 'TestingTool'.
>      at
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:470)
> caused by: javax.faces.el.EvaluationException:
> javax.faces.FacesException: javax.faces.FacesException: Error performing
> conversion of value
> '[hidden email]' of type 'class
> $Proxy63' to type 'interface org.sakaiproject.api.app.exam.TestDao' for
> managed bean 'TestingTool'.
>      at
> com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:143)
> caused by: javax.faces.FacesException: javax.faces.FacesException: Error
> performing conversion of value
> '[hidden email]' of type 'class
> $Proxy63' to type 'interface org.sakaiproject.api.app.exam.TestDao' for
> managed bean 'QnetTool'.
>      at
> com.sun.faces.el.VariableResolverImpl.resolveVariable(VariableResolverImpl.java:97)
> caused by: javax.faces.FacesException: Error performing conversion of
> value '[hidden email]' of type
> 'class $Proxy63' to type 'interface
> org.sakaiproject.api.app.exam.TestDao' for managed bean 'QnetTool'.
>      at
> com.sun.faces.config.ManagedBeanFactory.getConvertedValueConsideringPrimitives(ManagedBeanFactory.java:885)
>      at
> com.sun.faces.config.ManagedBeanFactory.setPropertiesIntoBean(ManagedBeanFactory.java:575)
>      at
> com.sun.faces.config.ManagedBeanFactory.newInstance(ManagedBeanFactory.java:253)
>      at
> com.sun.faces.application.ApplicationAssociate.createAndMaybeStoreManagedBeans(ApplicationAssociate.java:282)
>      at
> com.sun.faces.el.VariableResolverImpl.resolveVariable(VariableResolverImpl.java:97)
>      at
> org.sakaiproject.jsf.app.SakaiVariableResolver.resolveVariable(SakaiVariableResolver.java:76)
>      at com.sun.faces.el.impl.NamedValue.evaluate(NamedValue.java:145)
>      at com.sun.faces.el.impl.ComplexValue.evaluate(ComplexValue.java:166)
>      at
> com.sun.faces.el.impl.ExpressionEvaluatorImpl.evaluate(ExpressionEvaluatorImpl.java:263)
>      at
> com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:160)
>      at
> com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:143)
>      at
> javax.faces.component.UIComponentBase$AttributesMap.get(UIComponentBase.java:1397)
>      at
> org.sakaiproject.jsf.exam.QnetIfNotRender.encodeBegin(QnetIfNotRender.java:43)
>      at
> javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:703)
>      at
> javax.faces.webapp.UIComponentTag.encodeBegin(UIComponentTag.java:613)
>      at javax.faces.webapp.UIComponentTag.doEndTag(UIComponentTag.java:565)
>      at
> org.apache.jsp.exam.main_jsp._jspx_meth_syllabus_005fqnet_005fifnot_005f0(main_jsp.java:539)
>      at
> org.apache.jsp.exam.main_jsp._jspx_meth_h_005fform_005f0(main_jsp.java:268)
>      at
> org.apache.jsp.exam.main_jsp._jspx_meth_sakai_005fview_005fcontent_005f0(main_jsp.java:220)
>      at
> org.apache.jsp.exam.main_jsp._jspx_meth_sakai_005fview_005fcontainer_005f0(main_jsp.java:186)
>      at
> org.apache.jsp.exam.main_jsp._jspx_meth_f_005fview_005f0(main_jsp.java:153)
>      at org.apache.jsp.exam.main_jsp._jspService(main_jsp.java:101)
>      at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
>      at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
>      at
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)
>      at
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
>      at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
>      at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
>      at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
>      at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
>      at
> org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:749)
>      at
> org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:487)
>      at
> org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:412)
>      at
> org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:339)
>      at
> com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:346)
>    at
> com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:152)
>      at
> org.sakaiproject.jsf.app.SakaiViewHandler.renderView(SakaiViewHandler.java:159)
>      at
> com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:107)
>      at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:268)
>      at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:137)
>      at javax.faces.webapp.FacesServlet.service(FacesServlet.java:214)
>      at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
>      at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
>      at org.sakaiproject.util.RequestFilter.doFilter(RequestFilter.java:634)
>      at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
>      at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
>      at
> org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:749)
>    at
> org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:487)
>      at
> org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:412)
>      at
> org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:339)
>      at
> org.sakaiproject.tool.exam.QnetFilePickerServlet.dispatch(QnetFilePickerServlet.java:158)
>      at org.sakaiproject.jsf.util.JsfTool.doGet(JsfTool.java:241)
>      at javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
>      at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
>      at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
>      at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
>      at org.sakaiproject.util.RequestFilter.doFilter(RequestFilter.java:634)
>      at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
>      at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
>      at
> org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:749)
>      at
> org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:487)
>      at
> org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:379)
>      at
> org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:339)
>      at
> org.sakaiproject.tool.impl.ActiveToolComponent$MyActiveTool.forward(ActiveToolComponent.java:511)
>      at
> org.sakaiproject.portal.charon.SkinnableCharonPortal.forwardTool(SkinnableCharonPortal.java:1483)
>      at
> org.sakaiproject.portal.charon.handlers.ToolHandler.doTool(ToolHandler.java:213)
>      at
> org.sakaiproject.portal.charon.handlers.ToolHandler.doGet(ToolHandler.java:96)
>      at
> org.sakaiproject.portal.charon.SkinnableCharonPortal.doGet(SkinnableCharonPortal.java:894)
>      at javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
>      at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
>      at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
>      at org.sakaiproject.util.RequestFilter.doFilter(RequestFilter.java:695)
>      at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
>      at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
>      at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
>      at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
>      at
> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
>      at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
>      at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
>      at
> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:947)
>      at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
>      at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
>      at
> org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1009)
>      at
> org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
>      at
> org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:312)
>      at
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>      at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>      at java.lang.Thread.run(Thread.java:619)

>
>
>
>
>
>
>
> _______________________________________________
> sakai-dev mailing list
> [hidden email]
> http://collab.sakaiproject.org/mailman/listinfo/sakai-dev
>
> TO UNSUBSCRIBE: send email to [hidden email] with a subject of "unsubscribe"
>
_______________________________________________
sakai-dev mailing list
[hidden email]
http://collab.sakaiproject.org/mailman/listinfo/sakai-dev

TO UNSUBSCRIBE: send email to [hidden email] with a subject of "unsubscribe"




_______________________________________________
sakai-dev mailing list
[hidden email]
http://collab.sakaiproject.org/mailman/listinfo/sakai-dev

TO UNSUBSCRIBE: send email to [hidden email] with a subject of "unsubscribe"