Configuring Datasource on Weblogic Server

Precondition: We will create a Data Source using PostgresSQL. In order to test it you will have to install Postgres  and keep and instance running on port-5460. We also need to keep the Postgres-driver in the domain/lib folder. Steps to Create a Data Source: Step 1: Expand Services link Domain

Continue reading »

WLST Script to rotate server log file

You can use the script below to rotate server log files using WLST connect('weblogic','weblogic123','t3://localhost:7001') serverRuntime() cd('LogRuntime/AdminServer') cmo.forceLogRotation() print 'Log file rotated'

Continue reading »

WLST Script to start and stop Datasource

  Script to start Datasource connect('weblogic','weblogic123','t3://localhost:7001') domainRuntime() cd('ServerRuntimes/AdminServer/JDBCServiceRuntime/AdminServer/JDBCDataSourceRuntimeMBeans/PegaRULES') objArray = jarray.array([], java.lang.Object) strArray = jarray.array([], java.lang.String) invoke('start', objArray, strArray) exit() Script to stop Datasource connect('weblogic','weblogic123','t3://localhost:7001') domainRuntime() cd('ServerRuntimes/AdminServer/JDBCServiceRuntime/AdminServer/JDBCDataSourceRuntimeMBeans/PegaRULES') objArray = jarray.array([], java.lang.Object) strArray = jarray.array([], java.lang.String) invoke('shutdown', objArray, strArray) exit()

Continue reading »

steps to create datasource in Jboss eap

You need to create oracle\jdbc\main folder under modules and keep the module.xml and ojdbc6.jar there   module.xml   <?xml version="1.0" encoding="UTF-8"?> <module xmlns="urn:jboss:module:1.0" name="oracle.jdbc"> <resources> <resource-root path="ojdbc6.jar"/> </resources> <dependencies> <module name="javax.api"/> <module name="javax.transaction.api"/> </dependencies> </module> In standlone.xml / domain.xml you need to add the datasource and driver entry <datasource jndi-name="java:jboss/datasources/OracleDS"

Continue reading »

Memory Leak Overview

Continue reading »

Deploying Tuxedo 12c JCA Adapter rar file in Weblogic server 11g

Step 1: Download JCA adapter rar file from oracle site. Step2:  Unzip the rar file into a folder.     Step3:  Under extracted folder, we have com.oracle.tuxedo.TuxedoAdapter rar fie is there. Copy that one and place it outside of extracted folder and remove extracted and zip folder.   Step 4

Continue reading »

Solving NoClassDefFoundError using the classloader analysis tool (CAT)

javax.servlet.ServletException: java.lang.NoClassDefFoundError: Application was failing to find an application class. Using jarscan we searched the jars containing this class from the middleware home. The jars were present in the domain lib. We also checked the classpath in the startWeblogic.cmd and setDomainEnv.cmd to check if direct references were present in the

Continue reading »

trimDirectiveWhitespaces not working?

You need to change the web-app version to 2.5  as previous version does not support JSP 2.1. Weblogic server enforces the jsp version mentioned in the web-app of the web.xml.   It should be like this. <web-app xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.5" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_5.xsd">   I have uploaded a sample application which

Continue reading »