wso2 : Access to package? - wso2

How can i access to a package?
I need to use this package in my class for using Mbean.
org.wso2.carbon.server.admin.service
where can i download it?

It is in the carbon kernel module.You can find the libraries in any of wso2 products.
eg: wso2AS.
Check the home\repository\components\plugins folder

You can download org.wso2.carbon.server.admin.service dependency jars from
http://dist.wso2.org/maven2/org/wso2/carbon/org.wso2.carbon.server.admin/
Please download jar based on required dependency version

Related

The correct order to rebuild the WSO2 repositories on my local computer

I want to rebuild the WSO2 EI from source code on Git repository. But I do not know how to start this job. I have already sent an email to dev#wso2.org to get advice for along time. But I have not received any information from them yet.
I also downloaded and rebuilt the carbon-commons repository tag that was used for the WSO2 AS 5.3.0 release successfully. But I do not know what is the tag of WSO2 EI from the carbon repository?
(following this reference link: https://docs.wso2.com/display/Carbon4411/Working+with+the+Source+Code)
Could you give me some advice to do this job quickly ?
You can build the EI pack by cloning product-ei repository from the Github and checkout to the relevant tag. All WSO2 related dependencies are hosted in WSO2 nexus repository. Therefore you don't need to build dependent repositories. You can build EI project without running test cases by simply running "mvn clean install -Dmaven.test.skip=true".
If you need to do a code change for dependent repository, then you can do the necessary changes in relevant dependent repository and build the repositories in following order.
For example, If you need to do a code change to the Synapse, first you need to build the Synapse. Then build Carbon-mediation project with updated Synapse version. Finally build EI with latest synapse and carbon-mediation version.

WSO2 API Manager 2.1.0 source code

I'm trying to find the correct version of the source code for the API Manager 2.1.0.
Version of the apimgt package in APIM 2.1.0 pack is 6.1.66, But it cannot find in the Git repository.
Please provide the link for the correct version.
https://github.com/wso2/carbon-apimgt/tree/v6.1.66
This is already there. But you won't get this in tag search on github.

How to install wso2 products on pure wso2 carbon

My requirement is need to install (ESB,Application Server,Data Service Server,Api Manager,BAM) on pure wso2 carbon 4.2.0.
Is it possible to install all these products on Carbon?
I want to install multiple products on same carbon instance . I downloaded the P2_REPO from this site http://wso2.com/projects/carbon/provisioning-wso2-carbon-with-equinox-p2 and tried feature installation using UI,but it is not allowing me.
Can anyone tell me the best possible way to do this. I want multiple products on same carbon
Your soon reply will be highly appreciated
This can be easily install features through UI following this documentation, https://docs.wso2.org/display/Carbon420/Installing+Features+via+the+UI
It will be easy for you to go by product by product rather than selecting all feature group at once.
Download wso2 manually in direct wso website either deb or rpm package
a)check command: whereis wso2
b) move wso2 folder to /opt directory
/opt/wso2/wso2am/2.6.0/repository/conf/api-manager.xml
a)check and add the domain in gatewayendpoint
b)https://xxxxxxxxxx
disable comment line below
http://${carbon.local.ip}:${http.nio.port},https://${carbon.local.ip}:${https.nio.port}-->
/opt/wso2/wso2am/2.6.0/repository/conf/carbon.xml
a) Add below line hostname
uncomment www.wso2.org
xxxxxxx
xxxxxxxxxx
start with below command
JAVA_HOME=/path/jdk1.8.0_192 /path/wso2am-2.6.0/bin/wso2server.sh &
Reference mutual ssl:
https://docs.wso2.com/display/AM210/Mutual+SSL+Support+for+API+Gateway

WSO2 ESB 4.6.0 classpath issue: httpclient classes cannot be found

On WSO2ESB 4.6.0, I want to deploy a service that depends on redmine-java-api version 1.23. When I look at maven dependencies of the library, I see it requires httpclient 4.2. Although, I put httpclient jar in $ESB_HOME/repository/components/lib folder, I get the exception:
java.lang.ClassNotFoundException: org.apache.http.impl.conn.PoolingClientConnectionManager.
Inside the jar, there is a package named org.apache.http.impl.conn and that package contains the class definition of PoolingClientConnectionManager.
I cannot figure out the problem. What could be the possible solution?
I am not sure about the exact solution. But there is httpclient jar file that is shipped with WSO2ESB by default. I think, it is httpclient 4.1.X jar that does not contain the "PoolingClientConnectionManager" class. In OSGI run time, this jar file may set as the dependency for redmine-java-api (not your httplclient 4.2) However you can get some idea... by starting the WSO2ESB with OSGI console.
sh wso2server.sh -DosgiConsole
Using OSGI console, you check what are the jar files that "org.apache.http.impl.conn" package has been exposed to the OSGI run time of the WSO2ESB. And also it would list down the all the bundles which use the given package. Please use following command.
packages org.apache.http.impl.conn
Have you import the package in MANIFEST.INF file of the bundle ?

Ivy/gant include BlazeDS jars that aren`t in a public repo and have no version

Ive been trying to figure out the best way to include the BlazeDS jars in my Gant/Ivy build.
Ive been unable to find a public repo for these jars and Im new to ivy. Obviously with Maven youd just do a local maven install to your local repo. Whats the best way to do something similar with Ivy? Do I have to create a separate Ivy.xml file for each jar and then use Ivy Publish or is their another way?
Also does anyone know a public repo where the BlazeDS Jars are available
Just discovered if you use Spring BlazeDS Inetgration project and include its dependency in ivy it`ll pull in the Flex jars from Spring Bundle repository.