Hello Experts,
I am trying to build the custom web service for CS10 as per Programers Guide in SDK. But the hello world custom oScript generated java source code is not getting compliled I am getting some compile time errors when I run ant's Build script available in SDK templates.
[javac] C:\Siemens\WebServicesSample\java_src\services\com\opentext\livelink\service\hello\HelloWorld_CS.java:8: package com.opentext.ecm.services.kernel does not exist
[javac] import com.opentext.ecm.services.kernel.IService;
[javac] ^
[javac] C:\Siemens\WebServicesSample\java_src\services\com\opentext\livelink\service\hello\HelloWorld_CS.java:9: package com.opentext.ecm.services.kernel does not exist
[javac] import com.opentext.ecm.services.kernel.ServiceDeployException;
[javac] ^
[javac] C:\Siemens\WebServicesSample\java_src\services\com\opentext\livelink\service\hello\HelloWorld_CS.java:10: package com.opentext.ecm.services does not exist
[javac] import com.opentext.ecm.services.ServiceBindException;
[javac] ^
[javac] C:\Siemens\WebServicesSample\java_src\services\com\opentext\livelink\service\hello\HelloWorld_CS.java:11: package com.opentext.ecm.services does not exist
[javac] import com.opentext.ecm.services.ServiceFactory;
[javac] ^
[javac] C:\Siemens\WebServicesSample\java_src\services\com\opentext\livelink\service\hello\HelloWorld_CS.java:12: package com.opentext.livelink.service.core.coreservices does not exist
[javac] import com.opentext.livelink.service.core.coreservices.CoreServicesRequestContext;
[javac] ^
[javac] C:\Siemens\WebServicesSample\java_src\services\com\opentext\livelink\service\hello\HelloWorld_CS.java:13: package com.opentext.livelink.service.core.coreservices does not exist
[javac] import com.opentext.livelink.service.core.coreservices.CoreServicesServiceContext;
[javac] ^
[javac] C:\Siemens\WebServicesSample\java_src\services\com\opentext\livelink\service\hello\HelloWorld_CS.java:17: cannot find symbol
[javac] symbol: class IService
[javac] implements IService
[javac] ^
[javac] C:\Siemens\WebServicesSample\java_src\services\com\opentext\livelink\service\hello\HelloWorld_CS.java:24: cannot find symbol
[javac] symbol : class ServiceDeployException
[javac] location: class com.opentext.livelink.service.hello.HelloWorld_CS
[javac] throws ServiceDeployException
[javac] ^
[javac] C:\Siemens\WebServicesSample\java_src\services\com\opentext\livelink\service\hello\HelloWorld_CS.java:42: cannot find symbol
[javac] symbol : class ServiceDeployException
[javac] location: class com.opentext.livelink.service.hello.HelloWorld_CS
[javac] throws ServiceDeployException
[javac] ^
[javac] C:\Siemens\WebServicesSample\java_src\services\com\opentext\livelink\service\hello\HelloWorld_CS.java:47: cannot find symbol
[javac] symbol : class ServiceDeployException
[javac] location: class com.opentext.livelink.service.hello.HelloWorld_CS
[javac] throws ServiceDeployException
[javac] ^
[javac] C:\Siemens\WebServicesSample\java_src\services\com\opentext\livelink\service\hello\HelloWorld_CS.java:52: cannot find symbol
[javac] symbol : class ServiceDeployException
[javac] location: class com.opentext.livelink.service.hello.HelloWorld_CS
[javac] throws ServiceDeployException
[javac] ^
[javac] C:\Siemens\WebServicesSample\java_src\services\com\opentext\livelink\service\hello\HelloWorld_CS.java:26: cannot find symbol
[javac] symbol : class CoreServicesServiceContext
[javac] location: class com.opentext.livelink.service.hello.HelloWorld_CS
[javac] setServiceContext( new CoreServicesServiceContext() );
[javac] ^
[javac] C:\Siemens\WebServicesSample\java_src\services\com\opentext\livelink\service\hello\HelloWorld_CS.java:27: cannot find symbol
[javac] symbol : class CoreServicesRequestContext
[javac] location: class com.opentext.livelink.service.hello.HelloWorld_CS
[javac] setRequestContext( new CoreServicesRequestContext() );
[javac] ^
[javac] C:\Siemens\WebServicesSample\java_src\services\com\opentext\livelink\service\hello\HelloWorld_CS.java:31: cannot find symbol
[javac] symbol : variable ServiceFactory
[javac] location: class com.opentext.livelink.service.hello.HelloWorld_CS
[javac] ServiceFactory.getBinder().bindService( LES_CONTEXT + SERVICE_NAME, this, false, false );
[javac] ^
[javac] C:\Siemens\WebServicesSample\java_src\services\com\opentext\livelink\service\hello\HelloWorld_CS.java:33: cannot find symbol
[javac] symbol : class ServiceBindException
[javac] location: class com.opentext.livelink.service.hello.HelloWorld_CS
[javac] catch ( ServiceBindException ex )
[javac] ^
[javac] C:\Siemens\WebServicesSample\java_src\services\com\opentext\livelink\service\hello\HelloWorld_CS.java:37: cannot find symbol
[javac] symbol : class ServiceDeployException
[javac] location: class com.opentext.livelink.service.hello.HelloWorld_CS
[javac] throw new ServiceDeployException( msg, ex );
[javac] ^
[javac] 16 errors
I think some of the libs are missing. Can you please help me to getting these Libs.
One more finding the sample code which is provided by OpenText for HelloWOrld sample is not have HelloWorld_CS.Java file so not getting the error.
Thanks and Regards,
Deepak Ingwale