Monday, 27 February 2012
Monday, 13 February 2012
Enable debugging in Websphere Application Server 7.0 ND
Generally ,debugging is one of the most handy things to have in a Application Server and as such easy to enable.
I had a pretty tough time for WAS 7.0 when I went through the conventional way of adding debug properties to the Java args. The server literally gave up and refused to start.
After a bit of googling and reading the detailed WAS documentation,I realised it was simpler to do so in Websphere than in many of the other simpler application servers
Here are the steps :
1)Log on to the IBM Websphere Administrative console.This typically runs on the ports 9060(unsecure) and 9443(secure)
2)Navigate to Servers->Server Types->WebSphere application Servers-><application server>
3)Click the WAS instance on which you want to enable debugging.
4)In the configuration tab,scroll down to the Additional Properties
5)Click on "Debugging Service"
6)Check the "Enable service at server startup" checkbox.
7)Click on Apply and click Review to review your changes
8)Check the "Synchronize changes with Nodes" checkbox (unless Automatic synchronization is enabled)
9)Click the Save button
10)Once the Synchromization is complete (This might take a few seconds) ,click OK and then restart the WAS instance .
11)Now you are all set to fire debug requests on the JVM debug port (as specified in the Debugging service page.Default is 7777)
I had a pretty tough time for WAS 7.0 when I went through the conventional way of adding debug properties to the Java args. The server literally gave up and refused to start.
After a bit of googling and reading the detailed WAS documentation,I realised it was simpler to do so in Websphere than in many of the other simpler application servers
Here are the steps :
1)Log on to the IBM Websphere Administrative console.This typically runs on the ports 9060(unsecure) and 9443(secure)
2)Navigate to Servers->Server Types->WebSphere application Servers-><application server>
3)Click the WAS instance on which you want to enable debugging.
4)In the configuration tab,scroll down to the Additional Properties
5)Click on "Debugging Service"
6)Check the "Enable service at server startup" checkbox.
7)Click on Apply and click Review to review your changes
8)Check the "Synchronize changes with Nodes" checkbox (unless Automatic synchronization is enabled)
9)Click the Save button
10)Once the Synchromization is complete (This might take a few seconds) ,click OK and then restart the WAS instance .
11)Now you are all set to fire debug requests on the JVM debug port (as specified in the Debugging service page.Default is 7777)
Labels: 7777, Debug, Debugging Service, IBM, ND, tips_tricks_traps, WAS, Websphere
Sunday, 22 January 2012
ColdFusion IceBreaker #3: Configuring Websphere Application Server (WAS) with OpenOffice to support ColdFusion (CF) tagcfdocument
Configuring Websphere Application Server (WAS) with OpenOffice to support ColdFusion (CF) tag cfdocument.
Websphere Application Server (WAS) is considered a fairly typical application sever considering its complex topology and various flavours.
This post is in continuation to the previous one which spoke of OpenOffice Configuration on JBOSS on Lion
Here I shall detail how to configure the same in Websphere Application Server 7.0 ND (WAS) using IBM HTTP Server as the web sever.
The process is rather simple if you consider the amount of time and effort taken on other servers
1)Goto WAS Integrated Console
2)Goto Servers->Websphere Application Servers->server1
server1 is the default websphere application server created for a profile.Please use the the server on which you have deployed your ColdFusion Zeus application.For my purpose,I have used server1 and have deployed my ColdFusion ear on this server.
3)Click server1
4)On the Configuration tab of server1 , look for Java and Process Management.This can be found under Server Infrastructre section.Click "Java and Process Management"
5)Click "Process definition " from the Java and Process Management sub section
6)On the Configuration tab , look for Additional Properties.Under Additional Properties , you will find a Java Virtual Machine link.Click it.
7)Place your links in Classpath text box using semi colon as the delimiter.For Example :
C:\<was -deployement-directory>\AppServer\profiles\<profile-name>\installedApps\<cell-name>\Adobe_ColdFusion_Zeus.ear\cfusion.war\WEB-INF\cfusion\lib\oosdk\lib\juh.jar; C:\<was -deployement-directory>\AppServer\profiles\<profile-name>\installedApps\<cell-name> \Adobe_ColdFusion_Zeus.ear\cfusion.war\WEB-INF\cfusion\lib\oosdk\lib\jurt.jar C:\<was -deployement-directory>\AppServer\profiles\<profile-name>\installedApps\<cell-name> \Adobe_ColdFusion_Zeus.ear\cfusion.war\WEB-INF\cfusion\lib\oosdk\lib\ridl.jar; C:\<was -deployement-directory>\AppServer\profiles\<profile-name>\installedApps\<cell-name> \Adobe_ColdFusion_Zeus.ear\cfusion.war\WEB-INF\cfusion\lib\oosdk\lib\unoil.jar; C:\<was -deployement-directory>\AppServer\profiles\<profile-name>\installedApps\<cell-name> \Adobe_ColdFusion_Zeus.ear\cfusion.war\WEB-INF\cfusion\lib\oosdk\classes
8)Restart your WAS server and you are good to go
Websphere Application Server (WAS) is considered a fairly typical application sever considering its complex topology and various flavours.
This post is in continuation to the previous one which spoke of OpenOffice Configuration on JBOSS on Lion
Here I shall detail how to configure the same in Websphere Application Server 7.0 ND (WAS) using IBM HTTP Server as the web sever.
The process is rather simple if you consider the amount of time and effort taken on other servers
1)Goto WAS Integrated Console
2)Goto Servers->Websphere Application Servers->server1
server1 is the default websphere application server created for a profile.Please use the the server on which you have deployed your ColdFusion Zeus application.For my purpose,I have used server1 and have deployed my ColdFusion ear on this server.
3)Click server1
4)On the Configuration tab of server1 , look for Java and Process Management.This can be found under Server Infrastructre section.Click "Java and Process Management"
5)Click "Process definition " from the Java and Process Management sub section
6)On the Configuration tab , look for Additional Properties.Under Additional Properties , you will find a Java Virtual Machine link.Click it.
7)Place your links in Classpath text box using semi colon as the delimiter.For Example :
C:\<was -deployement-directory>\AppServer\profiles\<profile-name>\installedApps\<cell-name>\Adobe_ColdFusion_Zeus.ear\cfusion.war\WEB-INF\cfusion\lib\oosdk\lib\juh.jar; C:\<was -deployement-directory>\AppServer\profiles\<profile-name>\installedApps\<cell-name> \Adobe_ColdFusion_Zeus.ear\cfusion.war\WEB-INF\cfusion\lib\oosdk\lib\jurt.jar C:\<was -deployement-directory>\AppServer\profiles\<profile-name>\installedApps\<cell-name> \Adobe_ColdFusion_Zeus.ear\cfusion.war\WEB-INF\cfusion\lib\oosdk\lib\ridl.jar; C:\<was -deployement-directory>\AppServer\profiles\<profile-name>\installedApps\<cell-name> \Adobe_ColdFusion_Zeus.ear\cfusion.war\WEB-INF\cfusion\lib\oosdk\lib\unoil.jar; C:\<was -deployement-directory>\AppServer\profiles\<profile-name>\installedApps\<cell-name> \Adobe_ColdFusion_Zeus.ear\cfusion.war\WEB-INF\cfusion\lib\oosdk\classes
8)Restart your WAS server and you are good to go
Labels: cfdocument, CFML, ColdFusion, OpenOffice, WAS, Websphere
Wednesday, 23 November 2011
ColdFusion IceBreaker #2: Configuring JBoss in OSX Lion with OpenOffice to support cfdocument
ColdFusion empowers users to deploy it as a EAR/WAR file in their existing Application Server (J2EE config) and all the CF features can be used along with the benefits offered by the Application Server.
The <cfdocument> tag in ColdFusion lets you convert your word document to PDF and powerpoint presentations to PDF/HTML format and in some of its use cases , uses OpenOffice (About OpenOffice)
If OpenOffice is installed before ColdFusion is installed on your machine then ColdFusion detects the presence of OpenOffice and adds the location of OpenOffice to ColdFusion Administrator->Server Settings->Document
However,when deployed as a EAR/WAR, and despite detecting the OpenOffice location ,the OpenOffice library jars need to be added to the server configuration files manually before Openoffice can be used through <cfdocument>.
A quick link for the know-it-all :ColdFusion : Configuring OpenOffice for J2EE servers
Below are mentioned a few steps for installing JBOSS on Mac OSX Lion and configuring OpenOffice on it.
1)Download OpenOffice for OSX .The zip file would download to the /Downloads folder on your mounted device
2)Unzip the file using Archive Utility and install OpenOffice
3)In some cases,it is shown as a device under the mounted device.Drag and drop the OpenOffice.org app to /Applications folder.Info will say /Applications/OpenOffice.org.app.This will have the folder Contents.
4)Install JBOSS.Simply download the zip file,place it in a temporary location and unzip it
Eg: /Applications/JBOSS_MAC/jboss-6.1.0.Final/
JBOSS is now installed
This would now have the following folder structure:
copyright.txt
README.txt
LICENSE.txt
jar-versions.xml
common
client
lib
docs
server
logs
bin
5)Install ColdFusion as an EAR.Use the installer to create an ear file and expand it (java -xvf) to generate cfusion.war,META-INF and rds.war.Expand cfusion.war and rds.war.
This should now have the following folder structure:
/Applications/JBOSS_MAC/jboss-6.1.0.Final/server/default/deploy/cfusion.ear/cfusion.war/WEB-INF etc
/Applications/JBOSS_MAC/jboss-6.1.0.Final/server/default/deploy/cfusion.ear/rds.war/
/Applications/JBOSS_MAC/jboss-6.1.0.Final/server/default/deploy/cfusion.ear/META-INF/
6)Check the presence of the OpenOffice library jars in
/Applications/JBOSS_MAC/jboss-6.1.0.Final/server/default/deploy/cfusion.ear/cfusion.war/WEBINF/cfusion/lib/oosdk/
This should now have the following folder structure:
classes
lib
lib folder should contain the following jars
-juh.jar
-jurt.jar
-ridl.jar
-unoil.jar
7)Now,add these to the java paths of JBOSS as follows:
7.1) Goto /Applications/JBOSS_MAC/jboss-6.1.0.Final/bin
7.2) Edit run.conf
7.3) Add the locations to java.class.path
Eg:
JAVA_OPTS="-Xms128m -Xmx512m -XX:MaxPermSize=256m -Dorg.jboss.resolver.warning=true -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Djava.class.path=/Applications/JBOSS_MAC/jboss-6.1.0.Final/server/default/deploy/cfusion.ear/cfusion.war/WEB-INF/cfusion/lib/oosdk/classes:/Applications/JBOSS_MAC/jboss-6.1.0.Final/server/default/deploy/cfusion.ear/cfusion.war/WEB-INF/cfusion/lib/oosdk/lib:/Applications/JBOSS_MAC/jboss-6.1.0.Final/server/default/deploy/cfusion.ear/cfusion.war/WEB-INF/cfusion/lib"
7.4) Edit run.sh
7.5) Add the locations to JBOSS_CLASSPATH
Eg:
export JBOSS_CLASSPATH="$JBOSS_CLASSPATH:/Applications/JBOSS_MAC/jboss-6.1.0.Final/server/default/deploy/cfusion.ear/cfusion.war/WEB-INF/cfusion/lib/oosdk/classes:/Applications/JBOSS_MAC/jboss-6.1.0.Final/server/default/deploy/cfusion.ear/cfusion.war/WEB-INF/cfusion/lib/oosdk/lib/juh.jar:/Applications/JBOSS_MAC/jboss-6.1.0.Final/server/default/deploy/cfusion.ear/cfusion.war/WEB-INF/cfusion/lib/oosdk/lib/jurt.jar:/Applications/JBOSS_MAC/jboss-6.1.0.Final/server/default/deploy/cfusion.ear/cfusion.war/WEB-INF/cfusion/lib/oosdk/lib/ridljar:/Applications/JBOSS_MAC/jboss-6.1.0.Final/server/default/deploy/cfusion.ear/cfusion.war/WEB-INF/cfusion/lib/oosdk/lib/unoil.jar:/Applications/JBOSS_MAC/jboss-6.1.0.Final/server/default/deploy/cfusion.ear/cfusion.war/WEB-INF/cfusion/lib"
8)Use sudo ./run.sh -b 0.0.0.0 to start your server
This will enable other IPs to access your ColdFusion Application
9)Login to ColdFusion Administrator->Server Settings->Document.Check the OpenOffice installation directory.
10)Try to run a simple <cfdocument> example
<cfdocument format="pdf" srcfile="<path_to_word_doc>" filename="<path_to_destination_with_file_name>" overwrite="true">
</cfdocument>
View your pdf file.
Labels: Adobe, CF, cfdocument, CFML, ColdFusion, jboss, OpenOffice, OSX
Thursday, 10 November 2011
Viny N's photostream
Viny N's photostream on Flickr.
And here is the photostream ...Labels: 1100D, 18-55mm, 50mm, bokeh, Brigade, canon, canon 1100D, Diwali, Happy Diwali, mypicroll
Subscribe to:
Posts (Atom)
















