Details
-
Fix
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
1.3.3
-
None
-
None
Description
In order to work the java class which implements the job needs to be in the standard package or in a root package (but not in a sub-package).
E.G.
<script language = "java"
java_class = "sos.JavaCompileTest"><![CDATA[
package sos;
import sos.spooler.Job_impl;
public class JavaCompileTest extends Job_impl {
public boolean spooler_process()
{ spooler_log.info("Hello World!"); return false; }}]]></script>
works, wheras
<script language = "java"
java_class = "sos.test.JavaCompileTest"><![CDATA[
package sos.test;
import sos.spooler.Job_impl;
public class JavaCompileTest extends Job_impl {
public boolean spooler_process() { spooler_log.info("Hello World!"); return false; }
}]]></script>
doesnt' work.
16:27:28.531 scheduler 0 3436.BB0 672.113MB SCHEDULER-934 Compiling Java source: "javac" -g -classpath C:\DOKUME~1\ANDREA~1\LOKALE~1\Temp\scheduler\scheduler.al\java;c:/scheduler.al/lib\activation.jar;c:/scheduler.al/lib\commons-net-1.2.2.jar;c:/scheduler.al/lib\db2jcc.jar;c:/scheduler.al/lib\db2jcc_license_cu.jar;c:/scheduler.al/lib\ganymed-ssh2.jar;c:/scheduler.al/lib\jaybird-full-2.0.1.jar;c:/scheduler.al/lib\jaybird-full-2.1.1.jar;c:/scheduler.al/lib\jdom.jar;c:/scheduler.al/lib\mail.jar;c:/scheduler.al/lib\msbase.jar;c:/scheduler.al/lib\mssqlserver.jar;c:/scheduler.al/l...
16:27:28.546 scheduler 16 3436.BB0 672.113MB system "javac" -g -classpath C:\DOKUME~1\ANDREA~1\LOKALE~1\Temp\scheduler\scheduler.al\java;c:/scheduler.al/lib\activation.jar;c:/scheduler.al/lib\commons-net-1.2.2.jar;c:/scheduler.al/lib\db2jcc.jar;c:/scheduler.al/lib\db2jcc_license_cu.jar;c:/scheduler.al/lib\ganymed-ssh2.jar;c:/scheduler.al/lib\jaybird-full-2.0.1.jar;c:/scheduler.al/lib\jaybird-full-2.1.1.jar;c:/scheduler.al/lib\jdom.jar;c:/scheduler.al/lib\mail.jar;c:/scheduler.al/lib\msbase.jar;c:/scheduler.al/lib\mssqlserver.jar;c:/scheduler.al/lib\msutil.jar;c:/scheduler.al/lib\mysql-connector-java-3.1.10-bin.jar;c:/scheduler.al/lib\ojdbc14.jar;c:/scheduler.al/lib\org.apache.commons.jar;c:/scheduler.al/lib\postgresql-8.1-404.jdbc3.jar;c:/scheduler.al/lib\scheduler-editor.jar;c:/scheduler.al/lib\smtp.jar;c:/scheduler.al/lib\sos.connection.jar;c:/scheduler.al/lib\sos.documentfactory.jar;c:/scheduler.al/lib\sos.ehp.job.jar;c:/scheduler.al/lib\sos.ehp.object.jar;c:/scheduler.al/lib\sos.ehp.session.jar;c:/scheduler.al/lib\sos.hostware.jar;c:/scheduler.al/lib\sos.mail.jar;c:/scheduler.al/lib\sos.net.jar;c:/scheduler.al/lib\sos.scheduler.jar;c:/scheduler.al/lib\sos.settings.jar;c:/scheduler.al/lib\sos.spooler.jar;c:/scheduler.al/lib\sos.stacks.jar;c:/scheduler.al/lib\sos.stresstest.jar;c:/scheduler.al/lib\sos.user.jar;c:/scheduler.al/lib\sos.util.jar;c:/scheduler.al/lib\sos.workflow.jar;c:/scheduler.al/lib\sos.xml.jar;c:/scheduler.al/lib\swt.jar;c:/scheduler.al/lib\xalan.jar;c:/scheduler.al/lib\xercesImpl.jar;c:/scheduler.al/lib\xml-apis.jar C:\DOKUME~1\ANDREA~1\LOKALE~1\Temp\scheduler\scheduler.al\java\sos/test/JavaCompileTest.java 2>C:\DOKUME~1\ANDREA~1\LOKALE~1\Temp\sos214.tmp >C:\DOKUME~1\ANDREA~1\LOKALE~1\Temp\sos215.tmp
16:27:29.453 scheduler 906 3436.BB0 672.250MB open("C:\DOKUME~1\ANDREA~1\LOKALE~1\Temp\sos214.tmp") => 4
16:27:29.453 scheduler 0 3436.BB0 672.250MB close(4) C:\DOKUME~1\ANDREA~1\LOKALE~1\Temp\sos214.tmp
16:27:29.453 scheduler 0 3436.BB0 672.250MB open("C:\DOKUME~1\ANDREA~1\LOKALE~1\Temp\sos215.tmp") => 4
16:27:29.453 scheduler 0 3436.BB0 672.250MB close(4) C:\DOKUME~1\ANDREA~1\LOKALE~1\Temp\sos215.tmp
16:27:29.453 scheduler 0 3436.BB0 672.250MB [ERROR Z-4005 System command returns exit code 1: "javac" -g -classpath C:\DOKUME~1\ANDREA~1\LOKALE~1\Temp\scheduler\scheduler.al\java;c:/scheduler.al/lib\activation.jar;c:/scheduler.al/lib\commons-net-1.2.2.jar;c:/scheduler.al/lib\db2jcc.jar;c:/scheduler.al/lib\db2jcc_license_cu.jar;c:/scheduler.al/lib\ganymed-ssh2.jar;c:/scheduler.al/lib\jaybird-full-2.0.1.jar;c:/scheduler.al/lib\jaybird-full-2.1.1.jar;c:/scheduler.al/lib\jdom.jar;c:/scheduler.al/lib\mail.jar;c:/scheduler.al/lib\msbase.jar;c:/scheduler.al/lib\mssqlserver.jar;c:/scheduler.al/l...]
16:27:29.453 scheduler 0 3436.BB0 672.250MB [ERROR Z-4005 System command returns exit code 1: "javac" -g -classpath C:\DOKUME~1\ANDREA~1\LOKALE~1\Temp\scheduler\scheduler.al\java;c:/scheduler.al/lib\activation.jar;c:/scheduler.al/lib\commons-net-1.2.2.jar;c:/scheduler.al/lib\db2jcc.jar;c:/scheduler.al/lib\db2jcc_license_cu.jar;c:/scheduler.al/lib\ganymed-ssh2.jar;c:/scheduler.al/lib\jaybird-full-2.0.1.jar;c:/scheduler.al/lib\jaybird-full-2.1.1.jar;c:/scheduler.al/lib\jdom.jar;c:/scheduler.al/lib\mail.jar;c:/scheduler.al/lib\msbase.jar;c:/scheduler.al/lib\mssqlserver.jar;c:/scheduler.al/l...]
16:27:29.453 scheduler 0 3436.BB0 672.250MB unlink("C:\DOKUME~1\ANDREA~1\LOKALE~1\Temp\sos215.tmp")
16:27:29.453 scheduler 0 3436.BB0 672.250MB unlink("C:\DOKUME~1\ANDREA~1\LOKALE~1\Temp\sos214.tmp")
16:27:29.453 scheduler 0 3436.BB0 672.250MB C:\DOKUME~1\ANDREA~1\LOKALE~1\Temp\scheduler\scheduler.al\java\sos/test/JavaCompileTest.java:6: class JavaCompileTest is public, should be declared in a file named JavaCompileTest.java
16:27:29.453 scheduler 0 3436.BB0 672.250MB public class JavaCompileTest extends Job_impl {
16:27:29.453 scheduler 0 3436.BB0 672.250MB ^
16:27:29.453 scheduler 0 3436.BB0 672.250MB 1 error