Options

Problem init rapid miner

sergiu781sergiu781 Member Posts: 3 Contributor I
edited November 2018 in Help
Hello I`m new in RapidMiner and I try to integrate with a java web application, in this application I want to call a static method who will initiate the rapid miner and then it loads a rmp file.


static public void check(String _fileToCheck) throws Exception {

        System.setProperty("rapidminer.home", "C:/Program Files/Rapid-I/RapidMiner5");
        try {
            RapidMiner.init();
            RapidMiner.readProcessFile(new File(_fileToCheck));
        } catch (InstantiationException ex) {
            ex.printStackTrace();
        } catch (IllegalAccessException ex) {
            ex.printStackTrace();
        } catch (XMLException ex) {
            ex.printStackTrace();
        } catch (IOException ex) {
            ex.printStackTrace();
        } catch (Exception ex) {
            ex.printStackTrace();
        }
    }
when the init method is run the tomcat console shows the this 3 line and nothing happens the cursor just jump over the rest of the method (check)
no error is listed after I restart the tomcat 6 server i have a classNotFoundException. How can I resolve the problem. I use RapidMiner 5 and Netbeans IDE Please, .... Help...

2010-03-14 22:34:43 CONFIG: Locale not specified explicitly. Set default locale to US. (RapidMiner.init())
2010-03-14 22:34:44 CONFIG: Initializing I18N (RapidMiner.splashMessage())
2010-03-14 22:34:44 CONFIG: Ensuring RapidMiner Home is set (RapidMiner.splashMessage())

java.lang.ClassNotFoundException: com.rapid_i.Launcher
        at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1484)
        at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1329)
        at com.rapidminer.tools.ParameterService.ensureRapidMinerHomeSet(ParameterService.java:63)
        at com.rapidminer.RapidMiner.init(RapidMiner.java:373)
        at rapidminer.checkRmp.check(checkRmp.java:19)
        at Controllers.admin.processes.cProcess.doPost(cProcess.java:90)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at filters.administrator.doFilter(administrator.java:75)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at filters.SecurityFilter.doFilter(SecurityFilter.java:64)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
        at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:859)
        at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:579)
        at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1555)
        at java.lang.Thread.run(Thread.java:619)
please help i think this is a bug because I do not have in RapidMiner (5.0) class the static var PROPERTY_RAPIDMINER_HOME but is define in src files. ....

Answers

  • Options
    landland RapidMiner Certified Analyst, RapidMiner Certified Expert, Member Posts: 2,531 Unicorn
    Hi,
    I think you didn't configure the class path correctly.  It seems to me, that the src_generated and src_launcher directories or RapidMiner aren't part of the class patch.

    Greetings,
      Sebastian
Sign In or Register to comment.