Posts

Showing posts from November, 2011

Deploy different ears without admin console-Fast way of Deploying EAR to Weblogic

Traditional Way Normally in Weblogic for deploying a new ear,the process most of us follows are ,In short,login to Weblogic Admin Console,go to 'Deployments',click 'Lock and Edit', click 'Install' button, navigate to the respectieve path where your EAR is residing,select the appropriate deployment mode,then finally click 'Finish' button. Here the first step opening the admin console and login with the credentials itself is a time consuming process so as the other steps. Instead follow the steps below for easy deployment. Easy Deployment This requires a little tweak in the  config.xml file,idea is to specify in  config.xml files  which ear you need to deploy,Weblogic Server will read the Config file and looks for  an EAR in the  location  specified in the config file,great!!! ,then if found,it waits for nothing it will go ahead with the usual Server startup,picks the EAR,starts the modules specified in the EAR, installs the EAR to the Server

atg.service.jdbc.MonitoredDataSource vs atg.nucleus.JNDIReference

Monitored DataSource This is the default class used by ATG for configuring datasources,Most of the out of the box repositories in ATG uses  this in combination with JTDataSource component. JNDIReference For working with Weblogic Server,you need to override the old style of relying MonitoredDataSource,it makes life difficult if we have multiple repositories pointing to multipe datasources,configuring each repositories in this way is a tedious task, instead replace the old class with atg.nucleus.JNDIReference,so now the repositories   is pointing to the datasource which is specified by the JNDIName in the   JTDataSource component,which in turn points to the   Datasources configured in Weblogic Server identified with the JNDI name. eg: $class=atg.nucleus.JNDIReference JNDIName=abc_ds where abc_ds is the JNDI name in which you have configured the datasource in Weblogic Server. See how to alter a datasource quickly/easy -> Alter Datasource Quickly

DUseSunHttpHandler=true weblogic.net.http.SOAPHttpsURLConnection Weblogic/Java HttpHandler issues

Verify the issue is happening due to the error throwing  from the weblogic class  SOAPHttpsURLConnection,then you need to inform the Application Server which handler implementation you need to use.  add the following option to JAVA_OPTIONS in   setDomainEnv.sh/setDomainEnv.cmd  on Unix/Windows.   -DUseSunHttpHandler=true.  eg:  set JAVA_PROPERTIES=%JAVA_PROPERTIES% %WLP_JAVA_PROPERTIES%  set JAVA_OPTIONS=%JAVA_OPTIONS% %JAVA_PROPERTIES% -  DUseSunHttpHandler=true -Dwlw.iterativeDev=%iterativeDevFlag% -  Dwlw.testConsole=%testConsoleFlag% -Dwlw.logErrorsToConsole=%  logErrorsToConsoleFlag%  This setting tells WebLogic to use the Sun's https Handler   implementation rather than the WebLogic one.  So after this,it will use the  class HttpsURLConnection from the  javax package.   See Also   SSL Handshake error   java.lang.RuntimePermission modifyThread

Change encrypted password - Add Password Propert y-to Weblogic Data Source Files

While configuring datasources weblogic defaultly stored the password in encrypted format inside the datasource files.But this will make the developers job   difficult in case if he want to change the password property directly through files. eg: <properties>       <property>         <name>user</name>         <value>test</value>       </property>     </properties> <password-encrypted>{3SFG}/kMKUSVmft+uzUsiXxpMNPw==</password-encrypted> But we have an easy way to accomplish this by adding the property which has a name and value pair like below. eg: <properties>       <property>         <name>user</name>         <value>test</value>       </property>       <property>         <name>password</name>         <value>testapp</value>       </property>  </properties> Now you know how to edit this file to suit your needs. Done !! Se

Switch Weblogic Datasources quickly to connect different databases

Generally while configuring Datasources,especially changing the Username and Password for the datasources,Modifying the url of the datasource so as to establish connection to different databases in different environments like (Development,System Testing to verify a defect etc) will surely become a  tedious task if we rely  admin console each time to make these changes. There is an easy way to accomplish this,Assuming you already have a datasource configured for your Development purpose(connected to devdb),Now you need to connect to different datasource/database  to test a defect in different environment,say in System Test environment(connected to systestdb). Open your datasource files with a wordpad or notepad, located inside C:\bea\user_projects\domains\xxx_domain\config\jdbc folder, keep a back up of your old datasource file,now modify the datasource url,user name and password etc with respect to your environment(System test).Restart the  Weblogic Server. Now you can see your

Issues Opening ATG Control Center(ACC) - Not Resolving Host Name

This summary is not available. Please click here to view the post.

Modifying Registry keys for Standalone ATG Control Center

This can be done by editing the Registry Key.But take proper care in doing so. Go to the Start Menu->Run-type regedit then go to [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\DNSClient] You will see an entry 'SearchList' if not add an entry for that,in  the data field of 'SearchList' enter the host name to be resolved. eg: -> SearchList="xxx.com,xxx.org.net" Now exit from Registry Editor.Run the command ipconfig/flushdns from your Command Window. After this ,Open your  standalone ACC. You will be prompted with  a dialog box which asks for, ”some files need to be downloaded from the Dynamo server To run this program successfully.Proceed with download ?" Click Yes and you will be able to Open your ACC .done!! You can see how to modify hosts file for this -> Modifying Windows Hosts file

sun.security.validator.ValidatorException sun.security.provider install SSL Handshake error

This summary is not available. Please click here to view the post.

Unit Test Global Components using ATG Control Center or AdminUI

How fast and easy  to do unit testing for a Global Component ? Lets assume i have not coded my JSP Pages, but for unit testing  i want to  invoke one of the handleMethod(String x,String y) inside my component which is of a Global scope. The easiest way is to write another test method inside the same component, and from there invoke the handleMethod.Make sure you pass the necessary parameters if any required for the original method from your test method. Like something below: public void testHandleMethod() {       String tmp1 = "test";        String tmp2 = "Method";         handleMethod(String tmp1,String tmp2) } Now in your ACC or Component Browser this method will be visible, so that you can invoke the testHandleMethod() directly from there. Note : Your test method must be public        Your test method must not contain any parameters. Now invoke the debugger and record the unit test results !!! Also verify how can we write a unit test cas

Aadhar UID Enrollment Steps made Easier than before

Enrolment Procedure Normally enrollment can be done through all Post Offices on specified dates.You can enroll in other Centers also identified for this.I went to nearby Post Office and done the entire process within half an hour. The enrollment process is very easy,Post Office guys will give you the Enrollment Form Upfront(This Enrollment Form Format might be different in different centres,means format will vary slightly),Fill up the necessary details,while submitting you have to carry  the required documents (Id,Address Proof)'. Its Best if you have a Xerox of DL or Passport which has both ID and Address Proof.So it alone will suffice for both,Other wise you need to provide the necessary Proofs,the list of supportings/Proofs will be displayed in every Post Office,Also there is no need to take  any Originals or Photo  with us at the time of enrollment. Once Verified they will issue a token,With this token you can go ahead and complete the formalities same day prefe

ATG Best practices to shutdown ATG Servers

Image
Always shutdown the Server by executing the shutdown scripts provided by the Weblogic (bea\user_projects\domains\base_domain\bin\stopWeblogic.cmd ). But the server will wait for the open session,open transaction to release ,and it will take some time.There is an option available which you can use and legitimately shutdown the Weblogic Server quickly. Add the 'force' option Open bea\user_projects\domains\base_domain\bin\stopWeblogic.cmd Modify the line to include the "force' option. this will be immediate and will suspend all the application process. You can also see how to Shutdown Weblogic Server while ACC is running   

Start ACC Faster or Different ways of starting ACC

There are 3 different ways to start ACC(ATG Control Center). 1.  Open your Component Brower,here you have an option to start      ACC in same or different VM.Choose the appropriate option      to start the ACC. 2.  You can Start it from the Desktop Start Menu.      Click Start-Programs-ATGX.X->Tools->ATG Control Center 3. Create a short cut in the Desktop/Taskbar which points to     C:\ATG\ATG9.0\home\bin\startACC.bat     The last way is faster compared to     the other two,as it opens the ACC(ATG Control Center)     in a single click.    You can also see how to shutdown weblogic while ACC is running

Cheating/Fraud at Advaith hyundai Service Center- bad service experience hyundai service center bangalore jp nagar

Address: 56, 1st Main Road, Saraki Industrial Layout, 3rd Phase, J.P Nagar , Bangalore- 560078 , Karnataka Landmark: Behind Teja Networks. i want to narrate a bad customer experience from this service center it would be less if i mention this incident as a height of irresponsibility i had given service of my car last week,.i was assigned a service executive Mr Bala.he appeared gentle but turned out to be a casual/irresponsible guy. i went to take delivery of vehicle,and found that they changed the   floor rubber mats,mine was thick rubber mats and they changed with s ome other car's mats which is of a old thin syntethic type,luckily  i found out this immediatly and told to the executive,he  told me that its misplaced and the person has gone, when he comes next time for servicing  we will replace this.how can he say something like this ????do i need to wait till he comes and live with this old mats ?? its really a painful experience for any customer. i got angry  as what will