Monday, November 8, 2010

Weblogic Errors and Solutions

I have came accross following errors while working on weblogic Server. i have found workaround for the same.


Error :Weblogic.server.ServiceFailureException: Error initializing Embedded LDAP Server -java.lang.ClassCastException:com.octetstring.vde.backend.BackendRoot

Solution : remove ldap folders from /Oracle/Middleware/user_projects/domains/base_domain/servers/AdminServer/data/ and try restarting weblogic servers


Error : com.rsa.jsafe.JSAFE_PaddingException: Could not perform unpadding: invalid pad byte

Solution :

Step 1. Change encrypted passwords to cleartext passwords.

The username/password encryptions can be re-generated for the domain/machine combination by changing the encrypted values to clear text values and rebooting the server.

The files that need to be changed are:

In the domain directory:

boot.properties (boot.properties may not be present. If it's not present, no need to do anything with it)

config.xml

The values in boot.properties will look something like:

username={3DES}pxyIL8dxDy1JnDPs+i3dDA==
password={3DES}pxyIL8dxDy1JnDPs+i3dDA==

Change them to your cleartext username/password like:

username=user1
password=password1

And then the config.xml values will look something like:

PasswordEncrypted="{3DES}pxyIL8dxDy1JnDPs+i3dDA=="CredentialEncrypted="{3DES}944KTXGlE7JuekQFWdG18t2sAaDIBIIudll3xYv8CjU="

Change them to:

Password="password1"
Credential="password2"

You may also have to change the password values in your application-config.xml file, if they exist in there.

Just look for the same {3DES} encryption value that you changed in the config.xml and boot.properties files and change those value(s) to cleartext also,if they exist.

They may or may not exist depending on your application.

Your application-config.xml file is located in the /user_projects/applications//META-INF directory.

For example, the password might look something like:

AdminPassword="{3DES}pxyIL8dxDy1JnDPs+i3dDA=="

Change it to:

AdminPassword="password1"

Make sure you reboot the server after any of these changes.

Step 2. Reset the Embedded LDAP Credential.

If you're receiving the Embedded LDAP JSAFE_PaddingException you'll need to reset the Embedded LDAP Credential in the WebLogic Server Console.

In the console under the domain, go to Security and click on the Embedded LDAP tab.

Set the credential to anything you want and confirm it. Apply the changes and reboot the server.

step 3. Create a new domain on the new machine using the Configuration Wizard.

Step 4. Use the EncryptDomainString Utility to generate the new encrypted passwords.


I hope it'll help you in such situation....

Be happy

Regards,
Ajinkya

No comments:

Post a Comment