9iFS IFS-20100 error -- CLASSPATH is set
I'm migrating my iFS 1.1.9 application to 9iFS. I have updated
my connection code to look like this:
LibraryService ls = LibraryService.findService("IfsDefault");
CleartextCredential cc = new CleartextCredential
("system", "manager");
ConnectOptions co = new ConnectOptions();
co.setLocale(Locale.getDefault());
LibrarySession ifsSession = ls.connect(cc, co);
I am running it with the following command:
java -classpath D:\Projects\Testbed\classes;C:\oracle\ora90
\9ifs\settings;C:\oracle\ora90
\9ifs\lib\repos.jar;C:\oracle\ora90
\9ifs\lib\utils.jar;C:\oracle\ora90
\9ifs\lib\adk.jar;C:\oracle\ora90
\9ifs\lib\email.jar;C:\oracle\ora90
\LIB\xmlparserv2.jar;C:\oracle\ora90
\jdbc\lib\classes12.zip;C:\oracle\ora90\jsp\lib\ojsp.jar test
And I am getting the following error:
oracle.ifs.common.IfsException: IFS-20100: Unable to find
service (IfsDefault)
oracle.ifs.common.IfsException: IFS-20120: Invalid service name
(IfsDefault)
at oracle.ifs.server.S_LibraryService.findService
(S_LibraryService.java:1328)
at oracle.ifs.beans.LibraryService.findService
(LibraryService.java:185)
at test.main(test.java:14)
Line test.java line 14 is:
LibraryService ls = LibraryService.findService("IfsDefault");
C:\oracle\ora90\9ifs\settings\oracle\ifs\server\properties
contains one file: IfsDefault.properties
Any ideas why this is happening?
Also, an error in the developer documentation Table 1-9:
release.jar does not exist in the 9ifs/lib directory so cannot
be in the classpath. Otherwise my classpath is set as
specified.
Andrew