Jump to:
| Project: | Recommender API |
| Version: | 7.x-4.x-dev |
| Component: | Documentation |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed (fixed) |
Issue Summary
I will be using a spare server for my recommender server. There is very little to no documentation on how to alter the run.sh file to point to another server. Im getting the
./run.sh
Exception in thread "main" java.lang.NoClassDefFoundError: org/drupal/project/recommender/RecommenderApp
Caused by: java.lang.ClassNotFoundException: org.drupal.project.recommender.RecommenderApp
at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
Could not find the main class: org.drupal.project.recommender.RecommenderApp. Program will exit.
Maybe we could have an example run.sh file that shows a seperate recommender server.
Comments
#1
Hmm I'm using the same server and ran into the same error as described above.
Did you get yours to work in same server?
#2
I did get this working... Here is my run.sh
recommender directory is at ~/recommender...so its /home/xxx/recommender
Run.sh
config.properties
#3
Hmmm sorry it was my bad.
Somehow the Java isnt loading Apache Commons libraries from async_command module.
Had to hardcode the paths.
Thanks!
#4
Thanks for the report. I'll try to make better documentation in the next version.
I'll consider this problem as "fixed", right? If the problem still persists, please re-open the issue again.
#5
#6
Automatically closed -- issue fixed for 2 weeks with no activity.