000020007 - Compiling an EJB with RSA ClearTrust protection

Document created by RSA Customer Support Employee on Jun 16, 2016Last modified by RSA Customer Support Employee on Apr 21, 2017
Version 2Show Document
  • View in full screen mode

Article Content

Article Number000020007
Applies ToBEA WebLogic 6.1
JBuilder 6
JBuilder 7
RSA ClearTrust 5.0
EJBC
IssueCompiling an EJB with RSA ClearTrust protection
"quickstart2.ejbgrpx":  ......< CLASSPATH ENTRIES >....  weblogic.ejbc -keepgenerated -compiler C:/JBuilder6/bin/bcjW C:/Code/Java/quickstart2/quickstart2.jar.jar C:/Code/Java/quickstart2/quickstart2.jar
"quickstart2.ejbgrpx": Spaces in the classpath may cause WebLogic EJBC utility to produce fatal compile errors.
"quickstart2.ejbgrpx": <11/11/2002 11:53:06> <Warning> <EJB> <EJB Deployment: Teller has a class quickstart2.TellerBean which is in the classpath. This class should only be located in the ejb-jar file.>
"quickstart2.ejbgrpx": <11/11/2002 11:53:06> <Warning> <EJB> <EJB Deployment: Teller has a class quickstart2.TellerHome which is in the classpath. This class should only be located in the ejb-jar file.>
"quickstart2.ejbgrpx": <11/11/2002 11:53:06> <Warning> <EJB> <EJB Deployment: Teller has a class quickstart2.Teller which is in the classpath. This class should only be located in the ejb-jar file.>
"quickstart2.ejbgrpx": ERROR: Error from ejbc: ERROR: The classes which ejbc generated from your home and remote interfaces cannot be loaded.  Please ensure that you have set the -d option to a writeable directory.
"quickstart2.ejbgrpx": ERROR: ejbc found errors
Without the ClearTrust code, the EJB compiles and deploys correctly
With the inclusion of the ClearTrust code (as described on page 47 of the Agent Installation and Configuration Guide) and the associated library setting to include the ClearTrust libraries, the EJB compilation fails with the above errors
ResolutionThis is a known problem with Borland JBuilder and BEA WebLogic, where the symptom is brought to light by the introduction of the ClearTrust code but is not responsible for it. The initial warning about spaces in the CLASSPATH identifies the problem, although it is just a warning at this point it is the direct cause of the subsequent errors.

The Borland knowledgebase has a number of articles which relate to the problem. See JBuilder 4 Enterprise: WebLogic: compilation / rebuild fails with ejbc error and Diagnosing WebLogic EJBC problems in JBuilder 7

One important factor is (as described by Borland) is a problem with spaces in the CLASSPATH, since the WebLogic ejbc command cannot accept quoted spaces. When configuring the ClearTrust jar files, do not configure the path to be "C:\Program Files\RSA\ClearTrust .......". Instead, copy the ClearTrust WebLogic Agent jar files to a directory following the older Microsoft 8.3 naming convention and use this location for building your CLASSPATH.
Legacy Article IDa13836

Attachments

    Outcomes