09-05-2012 08:08 AM
Hello,
I am installing a CSP 9.4 + Starter Edition 3.0.2 in a lab environment. (Windows 2008 R2 + SQL Server)
I am on a fresh install. Everything went fine (portal OK) until I try to add the REX Adapter to the CSP.
(I am at the page 3-2 of the SE302 documentation)
when I run the java -classpath command on the rex.xml file I get an error.
Here is my command line: (ran as a one line command)
java -classpath newscale_adu.jar;newscale_ddlrunner.jar;newscale_drivers.jar;newscale_security.jar;castor-0.9.5.4.jar;xercesImpl.jar;xml-apis.jar;commons-logging-1.0.4.jar;newscale_core.jar;com.newscale.deployer.util.JDBCUtility SqlServer myserver:1433;DatabaseName=RequestCenter DbNameUnused RCUser mypass C:\sources\rex\deploy\rex.xml
And here is the output:
Exception in thread "main" java.lang.NoClassDefFoundError: SqlServer
Caused by: java.lang.ClassNotFoundException: SqlServer
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
Could not find the main class: SqlServer. Program will exit.
Does somebody knows why I get this message?
Is it a type error from me?
Best regards,
09-06-2012 06:40 AM
Solved: the typo is in the documentation.
There is a space before the jdbcutility word:
java -classpath newscale_adu.jar;newscale_ddlrunner.jar;newscale_drivers.jar;newscale_security.jar;castor-0.9.5.4.jar;xercesImpl.jar;xml-apis.jar;commons-logging-1.0.4.jar;newscale_core.jar; com.newscale.deployer.util.JDBCUtility SqlServer myserver:1433;DatabaseName=RequestCenter DbNameUnused RCUser mypass C:\sources\rex\deploy\rex.xml
It would be great if the doc is more precise, knowing that most of the install is performed by hand.
Best regards,
David
11-23-2012 01:30 AM
David,
So what is the correct syntax of the command? because i had the same error too
Really appreciate for the help.
Thanks
Hendy
11-23-2012 01:59 AM
Hi Wendy,
I replaced the spaces by [SPACE] in my notepad, so it gives something like that
java[SPACE][SPACE]-classpath[SPACE][SPACE]newscale_adu.jar;newscale_ddlrunner.jar;newscale_drivers.jar;newscale_security.jar;castor-0.9.5.4.jar;xercesImpl.jar;xml-apis.jar;commons-logging-1.0.4.jar;newscale_core.jar;[SPACE]com.newscale.deployer.util.JDBCUtility[SPACE][SPACE]SqlServer[SPACE]myserver:1433;DatabaseName=RequestCenter[SPACE]DbNameUnused[SPACE]RCUser[SPACE][SPACE]mypass[SPACE]C:\sources\rex\deploy\rex.xml
Best regards,
David
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide