2 Replies Latest reply on Feb 12, 2007 7:00 PM by Rafael Morales

    Sakai and Jboss with embebed tomcat

    Edwin Newbie

      Hello

      I'm working in a Learning Management System, and I want to try with Sakai, but I work in Jboss and I want to deploy in this application server.

      Few day ago I answered a forum in de beginers corner about the deploy on Jboss, nevertheless, I have had some problems when I use the application.

      I did the following:

      - I download the sakai-bin_2-3-0.tar.gz file.
      - Decompress the file
      . In the Sakai directory i found:


      - common/
      - components/
      - licenses/
      - server/
      - shared/
      - webapps/
      - ECLv1.txt


      Now, I put the directories as follows:

      - The WAR files in the webapps in JBOSS_HOME/server/default/deploy (only the files, no the directory)
      - The "components" dir in JBOSS_HOME/server/default/
      - Create a sakai dir in JBOSS_HOME/server/default/
      - Copy the sakai properties in the sakai directory
      - You can found the sakai.properties file in

      /sakai-src/reference/docs/sakai.properties


      - Copy de JARs files of the "common, shared and server" directory in JBOSS_HOME/server/default/lib

      Finally, before to start the server you have to set the environment variable JAVA_OPTS as follows:

      export JAVA_OPTS="-server -Xms512m -Xmx768m -XX:PermSize=128m -XX:MaxPermSize=196m -XX:NewSize=192m -XX:MaxNewSize=384
      m"


      Beginers Corner forum:
      http://www.jboss.com/index.html?module=bb&op=viewtopic&t=100483

      Now
      I have a problem when a I want to see the "Syllabus"

      this is the stacktrace

      
      Technical Details
      
      This information will automatically be included in your bug report.
      
      org.sakaiproject.tool.api.ToolException: Exception in JSP: /syllabus/main.jsp:6
      
      3: <%@ taglib uri="http://sakaiproject.org/jsf/sakai" prefix="sakai" %>
      4: <%@ taglib uri="http://sakaiproject.org/jsf/syllabus" prefix="syllabus" %>
      5: <% response.setContentType("text/html; charset=UTF-8"); %>
      6:
      7:
      8:
      9:
      
      
      Stacktrace:
       at org.sakaiproject.portal.charon.CharonPortal.forwardTool(CharonPortal.java:1632)
      caused by: org.apache.jasper.JasperException: Exception in JSP: /syllabus/main.jsp:6
      
      3: <%@ taglib uri="http://sakaiproject.org/jsf/sakai" prefix="sakai" %>
      4: <%@ taglib uri="http://sakaiproject.org/jsf/syllabus" prefix="syllabus" %>
      5: <% response.setContentType("text/html; charset=UTF-8"); %>
      6:
      7:
      8:
      9:
      
      
      Stacktrace:
       at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:393)
      caused by: java.lang.NullPointerException
       at javax.faces.webapp.UIComponentTag.setupResponseWriter(UIComponentTag.java:615)
       at javax.faces.webapp.UIComponentTag.doStartTag(UIComponentTag.java:217)
       at org.apache.myfaces.taglib.core.ViewTag.doStartTag(ViewTag.java:71)
       at org.apache.jsp.syllabus.main_jsp._jspx_meth_f_view_0(main_jsp.java:143)
       at org.apache.jsp.syllabus.main_jsp._jspService(main_jsp.java:120)
       at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
       at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)
       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:810)
       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 com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:322)
       at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:130)
       at org.sakaiproject.jsf.app.SakaiViewHandler.renderView(SakaiViewHandler.java:137)
       at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87)
       at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
       at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)
       at javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
       at org.sakaiproject.util.RequestFilter.doFilter(RequestFilter.java:501)
       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.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.sakaiproject.tool.syllabus.SyllabusFilePickerServlet.dispatch(SyllabusFilePickerServlet.java:158)
       at org.sakaiproject.jsf.util.JsfTool.doGet(JsfTool.java:241)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
       at org.sakaiproject.util.RequestFilter.doFilter(RequestFilter.java:501)
       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.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
       at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463)
       at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:359)
       at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
       at org.sakaiproject.tool.impl.ActiveToolComponent$MyActiveTool.forward(ActiveToolComponent.java:339)
       at org.sakaiproject.portal.charon.CharonPortal.forwardTool(CharonPortal.java:1632)
       at org.sakaiproject.portal.charon.CharonPortal.doTool(CharonPortal.java:1563)
       at org.sakaiproject.portal.charon.CharonPortal.doGet(CharonPortal.java:380)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
       at org.sakaiproject.util.RequestFilter.doFilter(RequestFilter.java:532)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
       at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
       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.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
       at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
       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:869)
       at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
       at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
       at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
       at java.lang.Thread.run(Thread.java:595)
      
      


      Plase Help Me !!!! ;-(

        • 1. Re: Sakai and Jboss with embebed tomcat
          Edwin Newbie

          Please Help me !!!! ;-(

          • 2. Re: Sakai and Jboss with embebed tomcat
            Rafael Morales Newbie

            Well, I am actually having a similar problem when I try to access Preferences. I am wondering wether there is some crashing in between JBoss and Sakai libraries, since there are a few in common with sligthly different versions.

            Rafael

            Technical Details
            This information will automatically be included in your bug report.
            
            
            org.sakaiproject.tool.api.ToolException
             at org.sakaiproject.portal.charon.CharonPortal.forwardTool(CharonPortal.java:1632)
            caused by: org.apache.jasper.JasperException
             at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:395)
            caused by: java.lang.NullPointerException
             at javax.faces.webapp.UIComponentTag.setupResponseWriter(UIComponentTag.java:929)
             at javax.faces.webapp.UIComponentTag.doStartTag(UIComponentTag.java:310)
             at org.apache.myfaces.taglib.core.ViewTag.doStartTag(ViewTag.java:70)
             at org.apache.jsp.prefs.noti_jsp._jspx_meth_f_view_0(noti_jsp.java:123)
             at org.apache.jsp.prefs.noti_jsp._jspService(noti_jsp.java:98)
             at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
             at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
             at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:334)
             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:810)
             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 com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:322)
             at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:130)
             at org.sakaiproject.jsf.app.SakaiViewHandler.renderView(SakaiViewHandler.java:137)
             at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87)
             at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
             at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)
             at javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)
             at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
             at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
             at org.sakaiproject.util.RequestFilter.doFilter(RequestFilter.java:501)
             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.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.sakaiproject.jsf.util.JsfTool.dispatch(JsfTool.java:221)
             at org.sakaiproject.jsf.util.JsfTool.doGet(JsfTool.java:241)
             at javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
             at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
             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:359)
             at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
             at org.sakaiproject.tool.impl.ActiveToolComponent$MyActiveTool.forward(ActiveToolComponent.java:339)
             at org.sakaiproject.portal.charon.CharonPortal.forwardTool(CharonPortal.java:1632)
             at org.sakaiproject.portal.charon.CharonPortal.doTool(CharonPortal.java:1563)
             at org.sakaiproject.portal.charon.CharonPortal.doGet(CharonPortal.java:380)
             at javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
             at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
             at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
             at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
             at org.sakaiproject.util.RequestFilter.doFilter(RequestFilter.java:532)
             at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
             at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
             at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
             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.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
             at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
             at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
             at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
             at org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
             at org.jboss.web.tomcat.tc5.sso.ClusteredSingleSignOn.invoke(ClusteredSingleSignOn.java:637)
             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:869)
             at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
             at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
             at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
             at java.lang.Thread.run(Thread.java:595)
            
            
            user: 02fb1d09-512d-4bb5-008b-e9dbd1b4683b
            
            usage-session: e7a07b16-c1ce-428b-005c-f81dc073c9fc
            
            time: 12/02/2007 17:56:50