 |
SoftTree Technologies
Technical Support Forums
|
|
Author |
Message |
Leo
Joined: 11 Jul 2008 Posts: 17
|
|
Cteate new temlate |
|
Hello,
i created a new template on scheduler directory 24x7_Scheduler/Template/ftp.ini and started the scheduler as master under linux shell but i can't see the new template, just the /Test group/Test template
Version 4.1 build 255
JVM Version 1.4.2_16-b05
Any ideas?
|
|
Fri Jul 11, 2008 3:53 am |
|
 |
SysOp
Site Admin
Joined: 26 Nov 2006 Posts: 7949
|
|
|
|
You need to add this template to the system preferences. Here is how
1. Open preferences.xml file in any text or XML editor. Note the number in the second line of the file "root id=[some number]"
2. Locate the following text
3. Copy and paste this text <object> ... </object> section just below the closing tag </object>.
4. In the pasted text replace "Test template" with the descriptive name you want ot use for the new template. Change file name test_template.ini to ftp.ini
5. Very important: replace number in object id="8" line with the number in the second line of the file and then increment the number in the second line by 1
6. Save changes.
The result should look like below
Start scheduler and your template reference will appear in the system tree and will be available for creating new jobs
|
|
Fri Jul 11, 2008 9:24 am |
|
 |
Leo
Joined: 11 Jul 2008 Posts: 17
|
|
|
|
it doesn't work i got the following exception
2008-07-11 15:51:27,651 [main] ERROR com.softtreetech.jscheduler.business.jobtemplates.JobTemplateSetImpl - java.lang.NullPointerException
Java Version j2re1.4.2_16
master.sh
#!/bin/sh
export JAVA_HOME=/usr/java/j2re1.4.2_16
if [ -f $JAVA_HOME/bin/java ] ; then
if [ "$1" = "nogui" ] || [ "$2" = "nogui" ] || [ "$1" = "/JOBFILE" ]; then
$JAVA_HOME/bin/java -Xms64m -Xmx96m -jar jscheduler.jar $1 $2
else
$JAVA_HOME/bin/java -Xms64m -Xmx96m -jar jscheduler.jar $1 $2 &
fi
else
echo JAVA_HOME must be set to JDK or JRE 1.4.x or later distribution directory
exit 0
fi
|
|
Fri Jul 11, 2008 9:54 am |
|
 |
Leo
Joined: 11 Jul 2008 Posts: 17
|
|
|
|
example
<object>
<property>
<object>
<property>
<property>
</object>
<object>
<property>
<property>
</object>
|
|
Fri Jul 11, 2008 9:56 am |
|
 |
SysOp
Site Admin
Joined: 26 Nov 2006 Posts: 7949
|
|
|
|
Did you set the id number correctly and incremented the id number in the second line? I used 45 just an example, the actual number could be different in your file.
|
|
Fri Jul 11, 2008 10:49 am |
|
 |
Leo
Joined: 11 Jul 2008 Posts: 17
|
|
|
Mon Jul 14, 2008 1:42 am |
|
 |
SysOp
Site Admin
Joined: 26 Nov 2006 Posts: 7949
|
|
|
|
This looks like you have copied id 45 from my example, while you need to set it to the number from the second line and increment the number in the second line by 1.
|
|
Mon Jul 14, 2008 2:35 am |
|
 |
Leo
Joined: 11 Jul 2008 Posts: 17
|
|
|
|
Yes, I erroneously took the screenshot when I experimentally changed it, sorry. But with the correct (I think) id=28, the results are still the same. Even if I don't add an entry but merely change the entry for the test template to my template (I changed name and path), the result is still the same, he just shows the test template, nothing more. From my point of view he just don't seem to care what I enter, he displays the test template and nothing more.
The strange thing: when I add a new template group, the group itself will be shown in the tree view, but again, no entry of any template. This is getting weird
|
|
Mon Jul 14, 2008 3:25 am |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|