Showing posts with label weblogic server. Show all posts
Showing posts with label weblogic server. Show all posts

Tuesday, 15 May 2012

Ant task to deploy ear file to weblogic server from IDE(Jdeveloper/Eclipse).


Please find steps to deploy ear file weblogic server from IDE.

  • Changes in build.properties file.
    weblogic Deployment properties - Modify as per your weblogic environment
    • weblgoic.deployer.uri=t3://localhost:7001
    • weblogic.admin.user=weblogic
    • weblogic.admin.password=welcome1
    • weblogic.server=SWserver
  • Changes in build.xml file.
  • <property environment="env"/>
    <target name="deploy-weblogic" depends="dist">
    
    <taskdef name="wldeploy"
            classname="weblogic.ant.taskdefs.management.WLDeploy">
      <classpath
      <pathelement location="${env.WL_HOME}\server\lib\weblogic.jar"/> 
      </classpath>
    </taskdef>
    <wldeploy action="deploy" verbose="true" debug="true"
    name="${ear.deployment.name}" source="${deploy.dir}/${ear.file}"
    user="${weblogic.admin.user}" password="${weblogic.admin.password}"
    adminurl="${weblgoic.deployer.uri}" targets="${weblogic.server}"  />
    </target>


How to set up DB2 datasource in weblogic server 11g

Before you create datasource in weblogic server you need to follow few steps .

Get the following jar files

  • db2java.zip
  • db2jcc.jar
  • db2jcc_javax.jar
  • db2jcc_license_cisuz.jar
  • db2jcc_license_cu.jar
  • db2cc_javax.jar
change the setDomainEnv.cmd. file with below changes.

set DB2_DRIVER=../sqllib/java/db2java.zip;../sqllib/java/db2jcc.jar;../sqllib/java/db2jcc_javax.jar;.../sqllib/java/db2jcc_license_cisuz.jar;../sqllib/java/db2jcc_license_cu.jar;../sqllib/java/db2cc_javax.jar;
set CLASSPATH=%CLASSPATH%;%DB2_DRIVER%

Wednesday, 22 June 2011

Remote Debugging in Weblogic Server from JDeveloper11

To configure the remote debugging form JDeveloper to Weblgic Server11g

Following are the steps to be followed.
  • Enable the debugging in Weblogic Server.
  • Configure the JDeveloper for Debugging.
  • Start the debugging.
Enable the debugging in Weblogic Server.
For Windows System:
Go the startWeblogic.cmd file and add the following debugging parameter.
-Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,address=4000,server=y,suspend=n to the JAVA_OPTIONS. 
For Unix System:
Go the startWeblogic.sh file and add the following debugging parameter.
-Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,address=4000,server=y,suspend=n to the JAVA_OPTIONS. 
i.e.
REMOTE_DEBUG_OPTION=-Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,address=4000,server=y,suspend=n
JAVA_OPTIONS=$JAVA_OPTIONS: $REMOTE_DEBUG_OPTION

Change the port no You want to use.
Then start the weblogic Server,after that go to server in admin console then enable the tunneling.

Configure the JDeveloper for Debugging.

1) To go to the specific project and open the Project Properties.  

2) To select the Run/Debug/Profile page and go for Edit.






     
3) To click on the Remote Debugging checkbox to enable remote debugging for this run configuration.

3) To click on the Tool Setting/Debugger/Remote to provide remote server info


      Provide host:usmlrs96.arrow.com
                  Port:8100
      Then click on ok.




Actual debugging of the application


We need to deploy the Application in weblogic server dev box. And put the breakpoint on files you want to debug.
Right-click on the project you want to debug (i.e. AdminUI) and select Start Remote Debugger








                 


f)                To verify the attachment details shown in the Attach to JPDA Debugee and click OK to attach to the
remote debugger.



Click O.K and proceed.

Once connection is established you will see the message like.

Start the debugging.



Hit the url of your project want to debug. We will see break point line will be highlighted given by you.


Following are the debug option



To disconnect click on Terminate button and click on Detach button from pop window.