|
Problem(Abstract) |
You are running the JspBatchCompiler through either telnet
or a non-graphical display. When you try to connect to a repositiory with
security enabled, you receive the "Cannot connect to repository when
running JspBatchCompiler" error message. |
|
|
|
Resolving the
problem |
This error has been identified in the following
situations:
- Global security is enabled.
- You are attempting to run the script from a telnet window.
This method enables the JspBatchCompiler to pass the security check
without attempting to prompt for a user ID and password.
To avoid the "Cannot connect to repository when running
JspBatchCompiler" error message, make the following modifications:
1. Copy the three files as shown in the following tables:
Copy:
|
/opt/WebSphere/AppServer/bin/JspBatchCompiler.sh |
To:
|
/opt/WebSphere/AppServer/bin/JspBatchCompilerSec.sh |
Copy:
|
/opt/WebSphere/AppServer/bin/setupCmdLine.sh |
To:
|
/opt/WebSphere/AppServer/bin/setupCmdLineSec.sh |
Copy:
|
/opt/WebSphere/AppServer/properties/sas.client.props |
To:
|
/opt/WebSphere/AppServer/properties/sas.jspclient.props |
2. Edit the files that you created by completing the following steps:
A. In the JspBatchCompilerSec.sh file, edit the following line:
Change:
|
$binDir/setupCmdLine.sh |
To:
|
$binDir/setupCmdLineSec.sh |
B. In the setupCmdLineSec.sh file, edit the following line:
Change:
|
CLIENTSAS=-Dcom.ibm.CORBA.ConfigURL=
'file:$WAS_HOME/properties/sas.client.props' |
To:
|
CLIENTSAS=-Dcom.ibm.CORBA.ConfigURL=
'file:$WAS_HOME/properties/sas.jspclient.props' |
C. In the sas.jspclient.props file, edit the following line:
Change:
|
com.ibm.CORBA.loginSource=prompt |
To:
|
com.ibm.CORBA.loginSource=properties |
Also, add your user ID and password to the following 2 lines:
com.ibm.CORBA.loginUserid=your_Userid
com.ibm.CORBA.loginPassword=your_Password
3. Optional: If you want to encrypt the new
sas.jspclient.props file, run the following commands:
/opt/WebSphere/AppServer/bin/PropFilePasswordEncoder.sh
/opt/WebSphere/AppServer/properties/sas.jspclient.props -SAS
Enter the previous lines on one line. Note: Make sure that
you verify that the correct permissions are set for the
new files. You are now ready to run the JspBatchCompilerSec.sh
script. |
|
|
|
|
Cross Reference information |
Segment |
Product |
Component |
Platform |
Version |
Edition |
Application Servers |
Runtimes for Java Technology |
Java SDK |
|
|
|
|
|
|