SLeD&Coppercore

Help
2007-05-25
2013-04-09
  • Hi,
    I want to use SLeD Player. When I copy sled2.war to D:\coppercore_ccrt_3.1\ccrt\jboss-4.0.4.GA\server\default\deploy everything works perfect. However when I want to run it using coppercore which I have compiled myself I get:

    exception

    javax.servlet.ServletException: Servlet execution threw an exception
    org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)

    root cause

    java.lang.NoClassDefFoundError: org/coppercore/ccsi/Dispatcher
    org.sled.system.LDConnectionJava.recreateDispatcher(LDConnectionJava.java:50)
    org.sled.system.LDConnectionJava.<init>(LDConnectionJava.java:37)
    sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
    sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
    java.lang.reflect.Constructor.newInstance(Constructor.java:494)
    java.lang.Class.newInstance0(Class.java:350)
    java.lang.Class.newInstance(Class.java:303)
    org.sled.admin.LoginAction.execute(LoginAction.java:33)
    org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:419)
    org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:224)
    org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)
    org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
    org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)

    How could I solve this problem? Ive checked the ccrt folder and it looks more or less like "my" self compiled coppercore.

     
    • Ok Ive found the solution:)
      In file jboss-4.0.4.GA\server\default\deploy\jbossweb-tomcat55.sar\META-INF\jboss-service.xml the line:

      <attribute name="UseJBossWebLoader">true</attribute>

      must be set to true.

       
      • Juliette White
        Juliette White
        2007-05-29

        Glad you managed to sort it out! I'm afraid we're not really supporting Sled actively any longer as we don't have any funding these days - though if we can answer something easily than we will of course.

        Juliette

         
    • Hello,
      I want to run SleD and Coppercore on different JBoss installations on the same computer to try web service interfaces.
      Ive installed JBoss, changed jboss-service.xml in \server\default\deploy\jbossweb-tomcat55.sar\META-INF so that it says <attribute name="Java2ClassLoadingCompliance"> true</attribute> 
      <attribute name ="UseJBossWebLoader">true </attribute>,

      changed sled-config.properties in \sled\WEB-INF\classes

      # protocol, domain name and port of this server
      server.url=http://localhost:18080

      # url to the CCSI engine 
      engine.url=http://localhost:8080

      # url to dispatcher in the ccsi integration module
      ccsi.dispatcher.url = http://localhost:8080/ccsi/services/Dispatcher

      # class types to be used for java connection 
      # (when CopperCore & CCSI on same machine as Sled)
      #class.ld.connection = org.sled.system.LDConnectionJava
      #class.search.connection = org.sled.search.SearchConnectionJava
      #class.qti.connection = org.sled.qti.QTIConnectionJava
      #class.authentication.connection = org.sled.login.AuthenticationConnectionJava
      #class.forum.connection = org.sled.forum.ForumConnectionJava
      #class.eportfolio.connection = org.sled.eportfolio.EPortfolioConnectionJava

      # class types to be used for web services connection 
      # (when CopperCore & CCSI on remote machine to Sled)
      class.ld.connection = org.sled.system.LDConnectionWebService
      class.search.connection = org.sled.search.SearchConnectionWebService
      class.qti.connection = org.sled.qti.QTIConnectionWebService
      class.authentication.connection = org.sled.login.AuthenticationConnectionWebService
      class.forum.connection = org.sled.forum.ForumConnectionWebService
      class.eportfolio.connection = org.sled.eportfolio.EPortfolioConnectionWebService

      # location of the uploaded files, must be the same as in coppercore.properties
      engine.fileuploadlocation = data/userdata/

      # session timeout (in seconds)
      engine.session.timeout = 3600

      # url to xsl directory
      render.xsl.url = http://localhost:18080/sled/includes/xsl/
      render.xml.declaration = http://localhost:18080/sled/includes/xmlDeclaration.txt

      # xsl files for non-player rendering 
      render.xsl.getuols = sled_uols.xsl

      render.xsl.search.results = search/results.xsl

      render.xsl.forum.formatthread = forum/formatthread.xsl
      render.xsl.forum.displaythreads = forum/displaythreads.xsl
      render.xsl.forum.displaythread = forum/displaythread.xsl
      render.xsl.forum.displaymessage = forum/displaymessage.xsl
      render.xsl.forum.reply = forum/reply.xsl

      render.xsl.admin.editrunform = admin/editrunform.xsl
      render.xsl.admin.createrunform = admin/addrunform.xsl

      render.xsl.eportfolio.view_cv = eportfolio/viewcv.xsl
      render.xsl.eportfolio.view_diary = eportfolio/viewdiary.xsl
      render.xsl.eportfolio.add_diary = eportfolio/adddiary.xsl

      # admin 
      admin.password = sledpass

      # whether or not to check the password when someone logs in
      # this is currently set to check against the password 
      # required by the forum system
      login.checkpassword = 0

      and copied sled.war to deploy folder.
      After browsing http://localhost:18080/sled/ and writing Password in Admin Pages I get

      description The server encountered an internal error () that prevented it from fulfilling this request.

      exception

      org.apache.jasper.JasperException: org/coppercore/ccsi/Dispatcher
      org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:512)
      org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377)
      org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
      org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
      org.sled.admin.AdminFilter.doFilter(AdminFilter.java:37)
      org.sled.system.HeaderFooterFilter.doFilter(HeaderFooterFilter.java:36)
      org.sled.system.LoginFilter.doFilter(LoginFilter.java:40)
      org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1063)
      org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesRequestProcessor.java:263)
      org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:386)
      org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(TilesRequestProcessor.java:318)
      org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:229)
      org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)
      org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
      org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)

      root cause

      javax.servlet.ServletException: org/coppercore/ccsi/Dispatcher
      org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:843)
      org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:776)
      org.apache.jsp.includes.adminheader_jsp._jspService(adminheader_jsp.java:66)
      org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
      org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:334)
      org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
      org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
      org.sled.admin.AdminFilter.doFilter(AdminFilter.java:37)
      org.sled.system.HeaderFooterFilter.doFilter(HeaderFooterFilter.java:36)
      org.sled.system.LoginFilter.doFilter(LoginFilter.java:40)
      org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1063)
      org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesRequestProcessor.java:263)
      org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:386)
      org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(TilesRequestProcessor.java:318)
      org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:229)
      org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)
      org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
      org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)

      root cause

      java.lang.NoClassDefFoundError: org/coppercore/ccsi/Dispatcher
      org.sled.system.LDConnectionJava.recreateDispatcher(LDConnectionJava.java:50)
      org.sled.system.LDConnectionJava.<init>(LDConnectionJava.java:37)
      org.sled.admin.AdminMenuAction.getMenu(AdminMenuAction.java:32)
      org.apache.jsp.includes.adminheader_jsp._jspService(adminheader_jsp.java:53)
      org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
      org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:334)
      org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
      org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
      org.sled.admin.AdminFilter.doFilter(AdminFilter.java:37)
      org.sled.system.HeaderFooterFilter.doFilter(HeaderFooterFilter.java:36)
      org.sled.system.LoginFilter.doFilter(LoginFilter.java:40)
      org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1063)
      org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesRequestProcessor.java:263)
      org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:386)
      org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(TilesRequestProcessor.java:318)
      org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:229)
      org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)
      org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
      org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)

      I wonder why it writes these two lines

      org.sled.system.LDConnectionJava.recreateDispatcher(LDConnectionJava.java:50)
      org.sled.system.LDConnectionJava.<init>(LDConnectionJava.java:37)

      when I specified in sled-config.properties that it should use

      class.ld.connection = org.sled.system.LDConnectionWebService