on 10-02-2016 7:34 AM
This is how I compile my program
"C:\Program Files\Java\jdk1.7.0_45\bin\javac" -cp .;cryptojFIPS.jar LogonToken.java
This works just fine.
Then I try to run the program like this:
C:\Cache\libz>"C:\Program Files\Java\jdk1.7.0_45\bin\java" -cp .;cryptojFIPS.jar;certjFIPS.jar;ssljFIPS.jar;secSAPR3.jar LogonToken --username test --password test123 --output-type url --doc-id ATKhgk7J3CtHizewIfibUQQ --s-id-type CUID --cms-name myBox:6400 --cms-auth-type secEnterprise
Exception in thread "Thread-0" java.lang.NoClassDefFoundError: com/rsa/cryptoj/f/tK (wrong name: com/rsa/cryptoj/f/tk)
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:800)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)
at java.net.URLClassLoader.access$100(URLClassLoader.java:71)
at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
at com.businessobjects.bcm.internal.BcmRsaLib.initialize(BcmRsaLib.java:214)
at com.businessobjects.bcm.internal.BcmRsaLib.<clinit>(BcmRsaLib.java:289)
at com.businessobjects.bcm.BCM.<clinit>(BCM.java:1144)
at com.crystaldecisions.enterprise.ocaframework.BCMInitializer.run(BCMInitializer.java:29)
at java.lang.Thread.run(Thread.java:744)
Exception in thread "main" java.lang.NoClassDefFoundError: Could not initialize class com.businessobjects.bcm.BCM
at com.crystaldecisions.sdk.occa.security.internal.ConfidentialChannelService.establishConfidentialChannel(ConfidentialChannelService.java:175)
at com.crystaldecisions.sdk.occa.security.internal.ConfidentialChannelService.createConfidentialChannel(ConfidentialChannelService.java:145)
at com.crystaldecisions.sdk.occa.security.internal.CCMap.locateCCItem(CCMap.java:63)
at com.crystaldecisions.sdk.occa.security.internal.LogonService.doUserLogon(LogonService.java:845)
at com.crystaldecisions.sdk.occa.security.internal.LogonService.doUserLogon(LogonService.java:805)
at com.crystaldecisions.sdk.occa.security.internal.LogonService.userLogon(LogonService.java:210)
at com.crystaldecisions.sdk.occa.security.internal.SecurityMgr.userLogon(SecurityMgr.java:166)
at com.crystaldecisions.sdk.framework.internal.SessionMgr.logon_aroundBody0(SessionMgr.java:454)
at com.crystaldecisions.sdk.framework.internal.SessionMgr.logon_aroundBody1$advice(SessionMgr.java:512)
at com.crystaldecisions.sdk.framework.internal.SessionMgr.logon(SessionMgr.java:1)
at LogonToken.openDocumentToken(LogonToken.java:107)
at LogonToken.getUrl(LogonToken.java:95)
at LogonToken.main(LogonToken.java:70)
The problem occurs when it reaches the following line
IEnterpriseSession sess = sessionMgr.logon(username, password, cms_name, cms_auth_type);
Any idea why I get this error and what it means?
I did check and the folder
C:\Cache\libz\com\rsa\cryptoj\f
exists. It seems to have no froblem compiling too.
Not sure how your code compiles with only cryptojFIPS.jar.
You should include the below list of jars while compiling your code.
bcm.jar
biarengine.jar
ceaspect.jar
cecore.jar
celib.jar
ceplugins_core.jar
cesession.jar
corbaidl.jar
ebus405.jar
logging.jar
TraceLog.jar
activation.jar
aspectjrt.jar
axiom-api-1.2.13.jar
axiom-impl-1.2.13.jar
axis2-adb-1.6.2.jar
axis2-kernel-1.6.2.jar
axis2.saaj-1.6.2.jar
certjFIPS.jar
com.sap.js.passport.api.jar
commons-logging-1.1.1.jar
cryptojFIPS.jar
derby.jar
freessl201.jar
log4j.jar
ssljFIPS.jar
wsdl4j-1.6.2.jar
XmlSchema-1.4.7.jar
The jars can be found from the installation directory of BuisnessObjects.
C:\Program Files (x86)\SAP Business Objects\SAP BusinessObjects Enterprise XI 4.0\java\lib.
Dependent JAR files are installed in the following directory:
C:\Program Files (x86)\SAP Business Objects\SAP BusinessObjects Enterprise XI 4.0\java\lib\external.
I am able to write a logon code and just run it fine with all the above jars included in my classpath.
Thanks,
Prithvi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.