WSO2 Governance Registry 4.5.3 Web app mode - wso2

Can any one tell me how to run wso2 governance registry 4.5.3 in web app mode rather running it in stand alone mode ? I have successfully built the source code and I want to know exactly how I can run in web app mode so that I can debug it in the eclipse ??

If what you want is to debug the source code all you have to do is start the WSO2 Governance registry with debug enabled when starting the server this can be done by starting the server with the following command.
sh wso2server.sh debug 8000
And you can remotely debug the server through an IDE like eclipse or Idea with port 8000 or some other port number you wish to use.
EDIT: Regarding running WSO2 governance registry in web app mode take a look at this blog post which explains how WSO2 carbon can be run as a web app might help you
[1]http://pradeepfernando.blogspot.com/2012/09/running-wso2-carbon-as-web-app-apache.html

First you have to setup debug configurations in your IDE which is can be learn using this wso2 article
Then start the BPS server script with debug option as follows.
<bps_home>/bin/wso2server.sh -debug 5005
After you start the server you will get this message:
Listening for transport dt_socket at address: 5005
Then start debugging from your IDE!
This is the debug configuration I used:

Related

Visual Studio 2017 Enterprise, IIS 10, Windows Server 2016, Web Deploy 5 Error: "Make sure that Web Deploy is installed"

I installed IIS, Started Web Management Service, and Installed Web Platform Installer, checked the port, windows firewall is not enabled, shut down and started up, but still get the error that web deploy isn't installed when I try to publish with Web deploY in Visual Studio. What other configuration can I check to get the Web Deploy to complete?
Visual Studio 2017 Enterprise, IIS 10, Windows Server 2016, Web Deploy 5, ASP.net 4.6
Could not connect to the remote computer ("aspnet-dev"). On the remote computer, make sure that Web Deploy is installed and that the required process ("Web Management Service") is started. Learn more at: http://go.microsoft.com/fwlink/?LinkId=221672#ERROR_DESTINATION_NOT_REACHABLE. The remote server returned an error: (404) Not Found
Could not connect to the remote computer ("aspnet-dev"). On the remote computer, make sure that Web Deploy is installed and that the required process ("Web Management Service") is started. Learn more at: http://go.microsoft.com/fwlink/?LinkId=221672#ERROR_DESTINATION_NOT_REACHABLE. The remote server returned an error: (404) Not Found
According to your error message, it seems you used the wrong server address. The web deploy could find the remote server("aspnet-dev").
Could you please tell me which server named "aspnet-dev"? On your current server or remote server?
If you just want to publish the web application to current server (VS is installed in the IIS server) ,I suggest you could firstly open the current IIS management console to make sure you have used the right server name and IIS web applicatio name.
Like below:
Then I suggest you could open the Web Platform Installer to check you have installed the web deploy.
If you want to publish the web application to remote server (VS isn't installed in the IIS server), I suggest you could use the server's IP address or domain instead of the server name like below:
https://yourhostname:8172/
Besides, I suggest you could refer to below article to generate the web deploy publish setting and use it to publish the web application to remote server.
https://learn.microsoft.com/en-us/visualstudio/deployment/tutorial-import-publish-settings-iis?view=vs-2017
More details about how to use web deploy to publish web application to remote server ,I suggest you could refer to below article:
https://learn.microsoft.com/en-us/aspnet/web-forms/overview/deployment/configuring-server-environments-for-web-deployment/configuring-a-web-server-for-web-deploy-publishing-web-deploy-handler

How to start WAS liberty profile server in remote debug mode.

I need to start my liberty profile in remote debug mode. Want to know if that is possible? If yes need pointers on how to achieve that.
server debug [servername]
This will start the server in the foreground in debug mode. You can then connect a debugger to the debug port (default: 7777). There're more details on the options for the server command in the Knowledge Centre.
Alternatively, if you're using WebSphere Developer Tools for Eclipse, you can right-click on the server in the servers view and select Debug which will start the server in debug mode and attach the eclipse debugger.
You can use the WebSphere Developer Tools for Eclipse to debug applications on remote servers. Create the remote server and select the "Enable the server to start remotely" option in the server wizard so that you can then restart the remote server in debug mode.
For instructions on how to set up a remote server in WDT see http://www.ibm.com/support/knowledgecenter/SSAW57_8.5.5/com.ibm.websphere.wlp.nd.multiplatform.doc/ae/t_creating_remote_server.html
Here's a doc about debugging apps on a server as well
http://www.ibm.com/support/knowledgecenter/SSAW57_8.5.5/com.ibm.websphere.wdt.doc/topics/tdebug.htm?lang=en

Is it possible to run WSO2 ESB in Openshift?

We are trying to create a WSO2 ESB cartridge to run on Openshift but haven't had much success yet. Is it even possible to run WSO2 ESB on Openshift or do we have to rely on Fuse ESB? Happy to run WSO2 either through cartridge option or just an EAR file if that's possible.
I was trying to install WSO2 ESB in an Openshift DIY cartridge. But I'm getting an port binding issue. The nasty thing is the message does not say which port it is unable to be bind into.
Please let me know if you passed this stage while trying to deploy WSO2 ESB in Openshift.
[esb3-yasas.rhcloud.com bin]> sh wso2server.sh
Starting WSO2 Carbon (in unsupported JDK) [ERROR] CARBON is
supported only on JDK 1.6 and 1.7 JAVA_HOME environment variable is
set to
/var/lib/openshift/57dca6070c1e66b48000003c/app-root/data/java/jdk1.8.0_45/
CARBON_HOME environment variable is set to
/var/lib/openshift/57dca6070c1e66b48000003c/app-root/data/esb Java
HotSpot(TM) 64-Bit Server VM warning: ignoring option
MaxPermSize=256m; support was removed in 8.0 Error: Exception thrown
by the agent : java.rmi.server.ExportException: Port already in use:
0; nested exception is:
java.net.BindException: Permission denied
Snapshot
Thanks !

Profiling Mule Container and Application using JProfiler

I am trying to profile Mule ESB apps deployed on a mule container(CE v3.4) using Jprofiler but have been unsuccessful this far.
My Mule server is running remotely on a linux 64 bit server and the jprofiler is running on my local windows machine. I am trying to remotely connect the jprofiler running on my local windows machine to the Mule server running remotely on a linux server, but till now I have failed to connect the local running jprofiler to the remotely running Mule server.
Has somebody done this before? What are the steps to be followed to connect my jprofiler running locally to Mule server running remotely on some different server?
Thanks and Regards
Jai
Add these lines to conf/wrapper.conf:
wrapper.java.additional.4=-Dcom.sun.management.jmxremote.port=9999
wrapper.java.additional.5=-Dcom.sun.management.jmxremote.authenticate=false
wrapper.java.additional.6=-Dcom.sun.management.jmxremote.ssl=false
and connect your profiler to port 9999

can wso2 carbon 4.1 run as a web app (war)?

I'm limited to what applications I can deploy in my environment, however, standard WAR files are usually not a problem.
Can carbon 4.1.0 run as a web app?
This link describes how it can be done for carbon 3.2.2. Are these steps still valid for 4.1.0?
According to the answer in this link some functionality is limited in webapp mode for 3.2.2. What functionality is limited if 4.1.0 is deployed in webapp mode?
EDIT:
A webapp-mode folder is available in $CARBON_HOME
C:\Users\snowc\Desktop\wso2carbon-4.1.0>type webapp-mode\README.txt
Running WSO2 Carbon in Webapp mode
-------------------------------------
Standalone mode is the recommended way of running All WSO2 Carbon products. However you have the
option of running WSO2 Carbon products in Webapp mode (hosted as a web-app in an application
server).
1. The 'WEB-INF' directory contains the webapp archive
2. The 'bundles' directory contains the additional jars that needs, during the web-app mode
deployment.
Please refer the WSO2 Carbon documentation for step-by-step guide on web-app mode deployment of the
product.
"Can carbon 4.1.0 run as a web app?"
No, we stopped supporting webapp deployment in later 4.x.x carbon versions