Showing posts with label Weblogic. Show all posts
Showing posts with label Weblogic. Show all posts

Wednesday, June 15, 2011

Too many open files in Linux systems when running FMW applications

This is the most common issue with linux system & you may notice the error message like 'Too many open files' while running SOA or WebCenter or OSB servers.

The solutions is to,

Edit /etc/security/limits.conf file & add below
<user> soft nofile 4096
<user> hard nofile 4096


Note - Replace <user> with actual os user name.
 

If you want to apply the above to all the user, then
* soft nofile 4096
* hard nofile 4096

Edit the /etc/pam.d/system-auth, and add this entry:
session required /lib/security/$ISA/pam_limits.so

Edit /etc/pam.d/login and add the below:
session required pam_limits.so

Adding "session required pam_limits.so" to /etc/pam.d/login and /etc/pam.d/sshd

Edit /etc/sysctl.conf file and put following line so that after reboot the setting will remain as it is:
# vi /etc/sysctl.conf
Append a config directive as follows:
fs.file-max = 100000

Try "sysctl -p" as root or Restart your machine.

After this change open a new terminal and issue ulimit -a.

Tuesday, June 14, 2011

If startManagedWeblogic.sh soa_server fails in 11g SOA

Problem:

When starting managed server for soa_server, the following error is shown in the console.

Enter username to boot WebLogic server:admin
<Jul 21, 2009 6:34:46 PM EDT> <Error> <Security> <BEA-090783> <Server is Running in Development Mode and Native Library(terminalio) to read the password securely from commandline is not found.> 
<Jul 21, 2009 6:34:46 PM EDT> <Notice> <WebLogicServer> <BEA-000388> <JVM called WLS shutdown hook. The server will force shutdown now> 
<Jul 21, 2009 6:34:46 PM EDT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to FORCE_SHUTTING_DOWN> 

Solution:-

Set environment variable as below.

JAVA_OPTIONS=-Dweblogic.management.allowPasswordEcho=true

Thursday, June 9, 2011

Database as Custom Authentication Provider in Weblogic

Login/Logout Implementation

Security Implementation between ADF and SOA

After creating ADF application, follow the below link to configure security.



Once you are done with security setup with ADF, we need to configure keystore for weblogic domain.


Make sure that you have default-keystore.jks copied to $MW_HOME/user_projects/domains/<domain_name>/config/fmwconfig/

Now run the wlst.sh from $MW_HOME/oracle_common/common/bin/wlst.sh.

wls:/offline> connect()

Please enter your username [weblogic]
:weblogic

Please enter your password [weblogic] :

Please enter your server
URL [t3://localhost:7001] :t3://localhost:7101

Connecting to
t3://localhost:7101 with userid weblogic ...

Successfully connected to Admin
Server 'DefaultServer' that belongs to domain 'DefaultDomain'.

Warning: An insecure protocol was used to connect to the

server. To ensure
on-the-wire security, the SSL port or

Admin port should be used instead.

wls:/DefaultDomain/serverConfig>

wls:/DefaultDomain/serverConfig> createCred(map="oracle.wsm.security", key="keystore-csf-key", user="owsm", password="welcome1", desc="Keystore key")
wls:/DefaultDomain/serverConfig> createCred(map="oracle.wsm.security", key="enc-csf-key", user="orakey", password="welcome1", desc="Encryption key")
wls:/DefaultDomain/serverConfig> createCred(map="oracle.wsm.security", key="sign-csf-key", user="orakey", password="welcome1", desc="Signing key")


If the credentials for keystore-csf-key, enc-csf-key and sign-csf-key already exist and their password is anything other than welcome1, update them, using the updateCred command, as shown below:

wls:/DefaultDomain/serverConfig> updateCred(map="oracle.wsm.security", key="keystore-csf-key", user="owsm", password="welcome1", desc="Keystore key")
wls:/DefaultDomain/serverConfig> updateCred(map="oracle.wsm.security", key="enc-csf-key", user="orakey", password="welcome1", desc="Encryption key")
wls:/DefaultDomain/serverConfig> updateCred(map="oracle.wsm.security", key="sign-csf-key", user="orakey", password="welcome1", desc="Signing key")

I am assuming that we are using single weblogic domain to test integration between ADF and SOA.

Restart both admin and soa server. You are ready to test!

Tuesday, June 7, 2011

Templates to choose for the weblogic domain

When we are create domain for specific technology, we always get confused to select the additional libraries in domain configuration wizard.

Follow the below link to know what jars should be included: