rapid miner integration with java web application

udaykumar
udaykumar New Altair Community Member
edited November 5 in Community Q&A
Hi sir

I want integrate rapid miner and  java web application .Please help me regarding this.

i have tried already with jsp but rapid miner is not initializing and is showing error as


org.apache.jasper.JasperException: An exception occurred processing JSP page /index.jsp at line 62

59:   
60:          System.setProperty("rapidminer.home", "C:\\Program Files\\Rapid-I\\RapidMiner5");
61:          //RapidMiner.init();
62:          RapidMiner.init();
63:          out.println("Connected to rapid miner");
64:        }
65:        catch (Exception e)


Stacktrace:
  org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:510)
  org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:401)
  org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
  org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
  javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
  org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:393)

root cause

javax.servlet.ServletException: java.lang.NoClassDefFoundError: com/rapid_i/Launcher
  org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:862)
  org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:791)
  org.apache.jsp.index_jsp._jspService(index_jsp.java:175)
  org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
  javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
  org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377)
  org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
  org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
  javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
  org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:393)

root cause

java.lang.NoClassDefFoundError: com/rapid_i/Launcher
  com.rapidminer.tools.ParameterService.ensureRapidMinerHomeSet(ParameterService.java:505)
  com.rapidminer.RapidMiner.init(RapidMiner.java:533)
  org.apache.jsp.index_jsp._jspService(index_jsp.java:116)
  org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
  javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
  org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377)
  org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
  org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
  javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
  org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:393)

note The full stack trace of the root cause is available in the Apache Tomcat/6.0.29 logs.


Please specify the possible mistakes i have made

Answers

  • Marco_Boeck
    Marco_Boeck New Altair Community Member
    Hi,

    looks like there are library jars RapidMiner Studio needs missing on your classpath. Make sure that all .jar files from the RapidMiner/lib folder are present in your web application, otherwise you will run into more NoClassDefFoundErrors later on.

    Regards,
    Marco