| View previous topic :: View next topic |
| Author |
Message |
kblackwell
Joined: 04 Aug 2011 Posts: 2
|
Posted: Thu Aug 04, 2011 9:16 pm Post subject: Running scheduler under Linux |
|
|
I've searched around, but I am not finding clear directions on getting the Scheduler to work under linux. I've tried both applications.
[root@apatar Apatar]# ./scheduling.sh
Exception in thread "main" java.lang.NoClassDefFoundError: setting=boot2noApex/properties
Caused by: java.lang.ClassNotFoundException: setting=boot2noApex.properties
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:319)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
at java.lang.ClassLoader.loadClass(ClassLoader.java:264)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:332)
Could not find the main class: setting=boot2noApex.properties. Program will exit.
[root@apatar Apatar]# ./scheduling_noApex.sh
Exception in thread "main" java.lang.NoClassDefFoundError: setting=boot2noApex/properties
Caused by: java.lang.ClassNotFoundException: setting=boot2noApex.properties
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:319)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
at java.lang.ClassLoader.loadClass(ClassLoader.java:264)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:332)
Could not find the main class: setting=boot2noApex.properties. Program will exit.
This is a dir listing of the Apatar directory where those files to exists.
drwxrwxr-x. 6 kblackwell kblackwell 4096 Aug 4 13:17 .
drwxr-xr-x. 3 kblackwell kblackwell 4096 Aug 4 12:02 ..
-rw-rw-r--. 1 kblackwell kblackwell 27202996 Aug 4 11:57 apatar_latest.tar.gz
-rw-r--r--. 1 kblackwell kblackwell 299 Mar 15 03:59 application.bat
-rw-r--r--. 1 kblackwell kblackwell 171 Mar 15 03:59 application_noApex.bat
-rw-r--r--. 1 kblackwell kblackwell 173 Mar 15 03:59 application_noApex.sh
-rwxr-xr-x. 1 kblackwell kblackwell 178 Mar 15 03:59 application.sh
-rw-rw-r--. 1 kblackwell kblackwell 810 Aug 4 15:47 appsettings.xml
-rw-r--r--. 1 kblackwell kblackwell 85 Mar 15 03:59 boot1noApex.properties
-rw-r--r--. 1 kblackwell kblackwell 84 Mar 15 03:59 boot1.properties
-rw-r--r--. 1 kblackwell kblackwell 110 Mar 15 03:59 boot2noApex.properties
-rw-r--r--. 1 kblackwell kblackwell 110 Mar 15 03:59 boot2.properties
-rw-rw-r--. 1 kblackwell kblackwell 47200876 Aug 4 15:47 debug_output.txt
-rw-rw-r--. 1 kblackwell kblackwell 376 Aug 4 13:13 derby.log
-rw-rw-r--. 1 kblackwell kblackwell 6558 Aug 4 15:47 error_output.txt
-rw-r--r--. 1 kblackwell kblackwell 4405 Mar 15 03:59 gadgethelp.properties
drwxr-xr-x. 2 kblackwell kblackwell 4096 Aug 4 12:03 lib
-rw-r--r--. 1 kblackwell kblackwell 15363 Mar 15 03:59 LICENSE.txt
-rw-r--r--. 1 kblackwell kblackwell 1094 Mar 15 03:59 log4j.properties
drwxr-xr-x. 2 kblackwell kblackwell 4096 Mar 15 03:59 logs
-rw-r--r--. 1 kblackwell kblackwell 3638 Mar 15 03:59 main.ico
drwxr-xr-x. 5 kblackwell kblackwell 4096 Mar 15 03:59 plugins
-rw-r--r--. 1 kblackwell kblackwell 144 Mar 15 03:59 proxy.properties
-rw-r--r--. 1 kblackwell kblackwell 643 Mar 15 03:59 README.txt
-rw-r--r--. 1 kblackwell kblackwell 894 Mar 15 03:59 schedule.ico
-rw-r--r--. 1 kblackwell kblackwell 151 Mar 15 03:59 scheduling.bat
-rw-r--r--. 1 kblackwell kblackwell 157 Mar 15 03:59 scheduling_noApex.bat
-rwxr-xr-x. 1 kblackwell kblackwell 176 Mar 15 03:59 scheduling_noApex.sh
-rwxr-xr-x. 1 kblackwell kblackwell 176 Mar 15 03:59 scheduling.sh
-rw-r--r--. 1 kblackwell kblackwell 75008 Mar 15 03:59 Service.svc.xml.wsdl.xml.xml
drwxrwxr-x. 3 kblackwell kblackwell 4096 Aug 4 12:09 tempdb
-rw-r--r--. 1 kblackwell kblackwell 19444 Mar 15 03:59 WhatsNew.txt
-rw-r--r--. 1 kblackwell kblackwell 387 Mar 15 03:59 wsit-client.xml
Any solutions? Do I have a permission issue? What's the best recommended way to run it under Linux/ |
|
| Back to top |
|
 |
apeart
Joined: 31 May 2011 Posts: 5
|
Posted: Wed Nov 09, 2011 4:31 pm Post subject: Running scheduler under Linux |
|
|
I'm getting the exact same exception when attempting to run ./scheduling_noApex.sh in CentOS with Gnome UI.
Does anyone have any ideas on how to resolve this issue? |
|
| Back to top |
|
 |
myliu99
Joined: 24 Aug 2012 Posts: 2
|
Posted: Wed Sep 12, 2012 7:16 pm Post subject: Resolutions? |
|
|
| Does anyone has updates or ideas on fixing this issue? I'm having the exactly same problem. HELP!! |
|
| Back to top |
|
 |
apeart
Joined: 31 May 2011 Posts: 5
|
Posted: Wed Sep 12, 2012 7:26 pm Post subject: Running scheduler under Linux |
|
|
| I had to abandon running Apatar under Linux and build a Windows XP environment to handle scheduled jobs. Definitely put a monkey wrench into my app's architecture. |
|
| Back to top |
|
 |
myliu99
Joined: 24 Aug 2012 Posts: 2
|
Posted: Tue Oct 02, 2012 9:45 pm Post subject: A solution is found |
|
|
Like to contribute to this community.
So after a couple of weeks of trying, fixing and reinstalling, finally found a solution.
In short sentence, the problem is the 64 bit linux with 64 bit JRE. Don't install 64 bit JRE but 32 bit! I had to remove 64 bit JRE completely, installed 32 bit, now it works perfect. Strangely, with 64 bit java, the application itself runs fine but the scheduler will not wrong, that's probably get me so confused and walked down the wrong path.
Hope this helps you. |
|
| Back to top |
|
 |
|