[SOLVED] Last phase for my RecSys and integration problem

User: "hattan"
New Altair Community Member
Updated by Jocelyn
Hi

I have build chain of process in RapidMiner GUI for my RecommendationSystem .

now I'm trying to build a simple webpage interface for users,but I need to execute Rapidminer's chain of processes within submitting
after inserting the User data into my DB which I build my process to read from it.

which webpage language or tool give me the ability to run java within submitting or do you suggest me any other way run rapidminer process within page submitting ?!


an other problem is that I'm getting exception from netbeans


run:
Jan 25, 2012 11:08:15 PM com.rapid_i.Launcher ensureRapidMinerHomeSet
INFO: Property rapidminer.home is not set. Guessing.
Jan 25, 2012 11:08:15 PM com.rapid_i.Launcher ensureRapidMinerHomeSet
INFO: Trying parent directory of 'C:\Program Files\Rapid-I\RapidMiner5\lib\launcher.jar'...gotcha!
Jan 25, 2012 11:08:15 PM com.rapid_i.Launcher ensureRapidMinerHomeSet
INFO: Trying parent directory of 'C:\Program Files\Rapid-I\RapidMiner5\lib\rapidminer.jar'...gotcha!
Jan 25, 2012 11:08:15 PM com.rapidminer.tools.ParameterService init
INFO: Reading configuration resource com/rapidminer/resources/rapidminerrc.
Jan 25, 2012 11:08:17 PM com.rapidminer.parameter.ParameterTypePassword decryptPassword
WARNING: Password in XML file looks like unencrypted plain text.
Jan 25, 2012 11:08:21 PM com.rapidminer.tools.plugin.Plugin registerOperators
INFO: No operator descriptor specified for plugin Community. Trying plugin initializtation class com.rapidminer.community.CommunityPluginInit.
Jan 25, 2012 11:08:21 PM com.rapidminer.tools.plugin.Plugin registerOperators
WARNING: No operator descriptor defined for: Community
Jan 25, 2012 11:08:21 PM com.rapidminer.tools.jdbc.JDBCProperties <init>
WARNING: Missing database driver class name for 'ODBC Bridge (e.g. Access)'
Jan 25, 2012 11:08:21 PM com.rapidminer.tools.jdbc.JDBCProperties registerDrivers
INFO: JDBC driver ca.ingres.jdbc.IngresDriver not found. Probably the driver is not installed.
Jan 25, 2012 11:08:21 PM com.rapidminer.tools.jdbc.JDBCProperties registerDrivers
INFO: JDBC driver oracle.jdbc.driver.OracleDriver not found. Probably the driver is not installed.
Exception in thread "main" com.rapidminer.repository.RepositoryException: Requested repository psf does not exist.
at com.rapidminer.repository.RepositoryManager.getRepository(RepositoryManager.java:189)
at com.rapidminer.repository.RepositoryLocation.getRepository(RepositoryLocation.java:143)
at com.rapidminer.repository.RepositoryLocation.locateEntry(RepositoryLocation.java:166)
at ProcessCreator.ProcessCreator.main(ProcessCreator.java:21)
Java Result: 1
BUILD SUCCESSFUL (total time: 7 seconds)



here is my code:


package ProcessCreator;
import com.rapidminer.Process;
import com.rapidminer.RapidMiner;
import com.rapidminer.RapidMiner.ExecutionMode;
import com.rapidminer.example.ExampleSet;
import com.rapidminer.operator.IOContainer;
import com.rapidminer.repository.ProcessEntry;
import com.rapidminer.repository.RepositoryLocation;
public class ProcessCreator {
     
      public static void main(String args[]) throws Exception {
// this initializes RapidMiner with your repositories available
RapidMiner.setExecutionMode(ExecutionMode.COMMAND_LINE);
RapidMiner.init();

// loads the process from the repository
RepositoryLocation pLoc = new RepositoryLocation("//psf/Home/Documents/Universty 2007-2012/W7 rapidminer repositry/clustering/Adventure.rmp");
ProcessEntry pEntry = (ProcessEntry) pLoc.locateEntry();
String processXML = pEntry.retrieveXML();
Process myProcess = new Process(processXML);


IOContainer ioResult = myProcess.run();

// use the result(s) as needed, for example if your process just returns one ExampleSet, use this:
if (ioResult.getElementAt(0) instanceof ExampleSet) {
ExampleSet resultSet = (ExampleSet)ioResult.getElementAt(0);
}}}



Please how can I fix it? and what do you recommend me for my webpage interface?

much of appreciation

Regards

Hattan

Find more posts tagged with