cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Announcements

1040
Views
0
Helpful
3
Replies
davidregourd
Beginner

REX Adapter install error in CSP 9.4

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,

3 REPLIES 3
davidregourd
Beginner

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


David,

So what is the correct syntax of the command? because i had the same error too

Really appreciate for the help.

Thanks

Hendy

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