I'm a java newbie trying to install the sample database service, but I am running into an error. Any insight on why I would be seeing this error would be most helpful.
I have and evaluation copy of Sonic ESB installed on Windows Server 2008 R2, along with SQL Server 2008 R2.
Here's my samples-setup.properties file (with the password redacted):
@SAMPLES_DRIVER_CLASS@=com.sonicsw.jdbc.sqlserver.SQLServerDriver
@SAMPLES_DRIVER_CLASSPATH@=
@SAMPLES_CONNECT_URL@=jdbc:sonic:sqlserver://localhost:1433;DatabaseName=sample
@SAMPLES_USER@=EMUser
@SAMPLES_PASSWORD@=<actual password removed>
I can connect to SQL, via SQL Management Studio, using the specified credentials.
Here's the output when I run samples-setup.bat:
Apache Ant version 1.7.1 compiled on June 27 2008
Buildfile: samples-setup.xml
Detected Java version: 1.6 in: c:\Program Files\java\jre6
Detected OS: Windows Server 2008 R2
parsing buildfile C:\Program Files (x86)\Progress\Sonic\DBService8.0\config\samp
les\samples-setup.xml with URI = file:/C:/Program%20Files%20(x86)/Progress/Sonic
/DBService8.0/config/samples/samples-setup.xml
Project base dir set to: C:\Program Files (x86)\Progress\Sonic\DBService8.0\conf
ig\samples
[antlib:org.apache.tools.ant] Could not load definitions from resource org/apach
e/tools/ant/antlib.xml. It could not be found.
BUILD FAILED
C:\Program Files (x86)\Progress\Sonic\DBService8.0\config\samples\samples-setup.
xml:30: taskdef class com.sonicsw.tools.ant.TestProperty cannot be found
at org.apache.tools.ant.taskdefs.Definer.addDefinition(Definer.java:609)
at org.apache.tools.ant.taskdefs.Definer.execute(Definer.java:228)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.jav
a:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:357)
at org.apache.tools.ant.helper.ProjectHelper2.parse(ProjectHelper2.java:
142)
at org.apache.tools.ant.ProjectHelper.configureProject(ProjectHelper.jav
a:93)
at org.apache.tools.ant.Main.runBuild(Main.java:743)
at org.apache.tools.ant.Main.startAnt(Main.java:217)
at org.apache.tools.ant.Main.start(Main.java:179)
at org.apache.tools.ant.Main.main(Main.java:268)
Caused by: java.lang.ClassNotFoundException: com.sonicsw.tools.ant.TestProperty
at org.apache.tools.ant.AntClassLoader.findClassInComponents(AntClassLoa
der.java:1400)
at org.apache.tools.ant.AntClassLoader.findClass(AntClassLoader.java:134
1)
at org.apache.tools.ant.AntClassLoader.loadClass(AntClassLoader.java:108
8)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at org.apache.tools.ant.taskdefs.Definer.addDefinition(Definer.java:583)
... 15 more
--- Nested Exception ---
java.lang.ClassNotFoundException: com.sonicsw.tools.ant.TestProperty
at org.apache.tools.ant.AntClassLoader.findClassInComponents(AntClassLoa
der.java:1400)
at org.apache.tools.ant.AntClassLoader.findClass(AntClassLoader.java:134
1)
at org.apache.tools.ant.AntClassLoader.loadClass(AntClassLoader.java:108
8)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at org.apache.tools.ant.taskdefs.Definer.addDefinition(Definer.java:583)
at org.apache.tools.ant.taskdefs.Definer.execute(Definer.java:228)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.jav
a:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:357)
at org.apache.tools.ant.helper.ProjectHelper2.parse(ProjectHelper2.java:
142)
at org.apache.tools.ant.ProjectHelper.configureProject(ProjectHelper.jav
a:93)
at org.apache.tools.ant.Main.runBuild(Main.java:743)
at org.apache.tools.ant.Main.startAnt(Main.java:217)
at org.apache.tools.ant.Main.start(Main.java:179)
at org.apache.tools.ant.Main.main(Main.java:268)
Total time: 0 seconds
Try using the attached samples.setup.xml file.