Wednesday, November 2, 2011

CVS Merge Technique

CVS Merge Technique

1. Get all projects from CVS HEAD.
2. Get branch of project which we want to merge to HEAD.
3. In branch which we want to merge to HEAD , Disconect CVS and select option "Also delete the CVS meta information from file system."
4. Copy files from folder of branch which needs to merged to HEAD and copy to HEAD project folder.
5. Do Team Update in HEAD Project and check in changed files to HEAD.
«

Wednesday, January 13, 2010

jboss xa datasource

When I started creating jboss XA datasource , i started getting errors like Class Not Found 'org.jboss.resource.adapter.jdbc.vendor.OracleXAExceptionFormatter'.

I found the problem , we should use exact file oracle-xa-ds.xml format as specified in jboss-as/docs/examples/jca directory .

When I was missing
Oracle9i
I was getting NoClassFoundError , but as soon as i added metadata type mapping then it worked fine.

I guess jboss should have given some better error message instead of failing in NoClassFoundError , weird.

I used metadata with Oracle 11g and it worked fine.
Thanks

Wednesday, May 20, 2009

Sample script to FTP files

ftp -inv $FTPSERVER << END_SCRIPT
quote USER $FTPUSERNAME
quote PASS $FTPPASSWORD
put ABC*.dat
bye
##quit
END_SCRIPT

Friday, May 8, 2009

Simple Shell Script to iterate through list of files

Simple Shell Script to iterate through list of files and do the stuff.

FILES="TEST*.dat"
for f in $FILES
do
echo "Processing file file $f file..."
process_file $f
done

Friday, April 10, 2009

Using Jython Script to Deploy and undeploy app in WebLogic 10

I have seen some instances where jython script to deploy web application in WebLogic 10.1 does not works.
Here is solution for that , just undeploy application before deploying.
I tested and it works even when application is not deployed or already deployed in WLS 10.1.

Here is part of script.

connect('username','password','adminURL')
edit()
startEdit()

warName='testAppName'
archiveLoc='archiveLocation'
time='timeout'
server= 'targetServer'

stopApplication('appName')
undeploy('appName')
save()
activate(block="true")
edit()
startEdit()
deploy('appName',archiveLocation),server, time)
save()
activate(block="true")
disconnect()

Thursday, March 19, 2009

display tag pagesize issue

I am trying to use display tag pagesize using JSTL, Well Displaytag now works with my Custom property files , I used spring for externalization and it works fine with WLS 10.1. There is issue when we have Controller attribute same as model request scope value.