[Dev] WSO2 Committers += Kosala Herath

2019-08-26 Thread Muhammed Shariq
Hi folks,

It's my pleasure to introduce Kosala as a WSO2 committer. He has been voted
in as a WSO2 committer in recognition of his invaluable contribution,
dedication and commitment to the company.

Congratulations Kosala, keep up the good work!

-- 
M. S. M. Shariq | Technical Lead | WSO2 Inc.
(m) +94777202225 | (e) sha...@wso2.com

___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] WSO2 Committers += Nihla Akram

2019-07-24 Thread Muhammed Shariq
Hi folks,

It's my pleasure to introduce Nihla as a WSO2 committer. She has been voted
in as a WSO2 committer in recognition of her invaluable contribution,
dedication and commitment to the company.

Congratulations Nihla, keep up the good work!

-- 
M. S. M. Shariq | Technical Lead | WSO2 Inc.
(m) +94777202225 | (e) sha...@wso2.com

___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Avro mapper not working with SP

2019-04-26 Thread Muhammed Shariq
Folks,

Shafana is on maternity leave, so i don't think she'll be able to look into
this.


On Fri, Apr 26, 2019 at 9:43 PM Ramindu De Silva  wrote:

> Hi Shafana,
>
> Any update on this?
>
> Best Regards,
> Ramindu.
>
> On Thu, Apr 25, 2019 at 10:28 PM Ramindu De Silva 
> wrote:
>
>> Hi Shafana,
>>
>> I tried the following step in the "PublishKafkaInCustomAvroFormat" sample.
>>
>> Navigate to {ConfluentHome} and start the schema registry node using,
>> bin/schema-registry-start ./etc/schema-registry/schema-registry.properties
>>
>> And it resulted me with the following.
>>
>> Ramindus-MacBook-Pro:confluent-5.2.1 ramindu$ bin/schema-registry-start
>> ./etc/schema-registry/schema-registry.properties
>> [2019-04-25 22:10:21,661] INFO SchemaRegistryConfig values:
>> resource.extension.class = []
>> metric.reporters = []
>> kafkastore.sasl.kerberos.kinit.cmd = /usr/bin/kinit
>> response.mediatype.default = application/vnd.schemaregistry.v1+json
>> resource.extension.classes = []
>> kafkastore.ssl.trustmanager.algorithm = PKIX
>> inter.instance.protocol = http
>> authentication.realm =
>> ssl.keystore.type = JKS
>> kafkastore.topic = _schemas
>> metrics.jmx.prefix = kafka.schema.registry
>> kafkastore.ssl.enabled.protocols = TLSv1.2,TLSv1.1,TLSv1
>> kafkastore.topic.replication.factor = 3
>> ssl.truststore.password = [hidden]
>> kafkastore.timeout.ms = 500
>> host.name = localhost
>> kafkastore.bootstrap.servers = []
>> schema.registry.zk.namespace = schema_registry
>> kafkastore.sasl.kerberos.ticket.renew.window.factor = 0.8
>> kafkastore.sasl.kerberos.service.name =
>> schema.registry.resource.extension.class = []
>> ssl.endpoint.identification.algorithm =
>> compression.enable = true
>> kafkastore.ssl.truststore.type = JKS
>> avro.compatibility.level = backward
>> kafkastore.ssl.protocol = TLS
>> kafkastore.ssl.provider =
>> kafkastore.ssl.truststore.location =
>> response.mediatype.preferred = [application/vnd.schemaregistry.v1+json,
>> application/vnd.schemaregistry+json, application/json]
>> kafkastore.ssl.keystore.type = JKS
>> authentication.skip.paths = []
>> ssl.truststore.type = JKS
>> websocket.servlet.initializor.classes = []
>> kafkastore.ssl.truststore.password = [hidden]
>> access.control.allow.origin =
>> ssl.truststore.location =
>> ssl.keystore.password = [hidden]
>> port = 8081
>> access.control.allow.headers =
>> kafkastore.ssl.keystore.location =
>> metrics.tag.map = {}
>> master.eligibility = true
>> ssl.client.auth = false
>> kafkastore.ssl.keystore.password = [hidden]
>> rest.servlet.initializor.classes = []
>> websocket.path.prefix = /ws
>> kafkastore.security.protocol = PLAINTEXT
>> ssl.trustmanager.algorithm =
>> authentication.method = NONE
>> request.logger.name = io.confluent.rest-utils.requests
>> ssl.key.password = [hidden]
>> kafkastore.zk.session.timeout.ms = 3
>> kafkastore.sasl.mechanism = GSSAPI
>> kafkastore.sasl.kerberos.ticket.renew.jitter = 0.05
>> kafkastore.ssl.key.password = [hidden]
>> zookeeper.set.acl = false
>> schema.registry.inter.instance.protocol =
>> authentication.roles = [*]
>> metrics.num.samples = 2
>> ssl.protocol = TLS
>> schema.registry.group.id = schema-registry
>> kafkastore.ssl.keymanager.algorithm = SunX509
>> kafkastore.connection.url = localhost:2181
>> debug = false
>> listeners = [http://0.0.0.0:8081]
>> kafkastore.group.id =
>> ssl.provider =
>> ssl.enabled.protocols = []
>> shutdown.graceful.ms = 1000
>> ssl.keystore.location =
>> resource.static.locations = []
>> ssl.cipher.suites = []
>> kafkastore.ssl.endpoint.identification.algorithm =
>> mode.mutability = false
>> kafkastore.ssl.cipher.suites =
>> access.control.allow.methods =
>> kafkastore.sasl.kerberos.min.time.before.relogin = 6
>> ssl.keymanager.algorithm =
>> metrics.sample.window.ms = 3
>> kafkastore.init.timeout.ms = 6
>>  (io.confluent.kafka.schemaregistry.rest.SchemaRegistryConfig:179)
>> [2019-04-25 22:10:21,717] INFO Logging initialized @629ms to
>> org.eclipse.jetty.util.log.Slf4jLog (org.eclipse.jetty.util.log:193)
>> [2019-04-25 22:10:22,725] INFO Created schema registry namespace
>> localhost:2181 /schema_registry
>> (io.confluent.kafka.schemaregistry.rest.SchemaRegistryConfig:709)
>> [2019-04-25 22:10:22,852] INFO Initializing KafkaStore with broker
>> endpoints: PLAINTEXT://localhost:9092
>> (io.confluent.kafka.schemaregistry.storage.KafkaStore:105)
>> [2019-04-25 22:10:23,105] INFO Creating schemas topic _schemas
>> (io.confluent.kafka.schemaregistry.storage.KafkaStore:190)
>> [2019-04-25 22:10:23,107] WARN Creating the schema topic _schemas using a
>> replication factor of 1, which is less than the desired one of 3. If this
>> is a production environment, it's crucial to add more brokers and increase
>> the replication factor of the topic.
>> (io.confluent.kafka.schemaregistry.storage.KafkaStore:200)
>> [2019-04-25 22:10:23,116] ERROR Error starting the schema registry
>> (io.confluent.kafka.schemaregistry.rest.SchemaRegistryRestApplication:67)
>> 

[Dev] WSO2 Docker and Docker Compose Resources Released!

2018-02-15 Thread Muhammed Shariq
WSO2 Installation Experience team is pleased to announce the release of
WSO2 Docker resources for following products.

   - WSO2 API Manager 2.1.0
   - WSO2 Identity Server 5.4.1
   - WSO2 Enterprise Integrator 6.1.1
   - WSO2 Stream Processor 4.0.0

Released Artifacts:

   - WSO2 Enterprise Integrator -
   https://github.com/wso2/docker-ei/releases/tag/v6.1.1.3
   - WSO2 API Manager -
   https://github.com/wso2/docker-apim/releases/tag/v2.1.0.3
   - WSO2 Identity Server -
   https://github.com/wso2/docker-is/releases/tag/v5.4.1.2
   - WSO2 Stream Processor -
   https://github.com/wso2/docker-sp/releases/tag/v4.0.0.1


Issues:

   - WSO2 Enterprise Integrator - https://github.com/wso2/docker-ei/issues
   - WSO2 API Manager - https://github.com/wso2/docker-apim/issues
   - WSO2 Identity Server - https://github.com/wso2/docker-is/issues
   - WSO2 Stream Processor - https://github.com/wso2/docker-sp/issues


*How You Can Contribute*

Join our mailing list and correspond with the developers directly.

   - Developer List: dev@wso2.org
   - User List: u...@wso2.org

*Reporting Issues*

We encourage you to report issues and documentation faults regarding WSO2
Docker resources through respective repositories by creating issues.

Thank you!

WSO2 Installation Experience Team.

-- 
Thanks,
Shariq
Associate Technical Lead
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [VOTE] Release WSO2 Carbon Kernel 4.4.17 RC4

2017-08-17 Thread Muhammed Shariq
Hi,

This is the 4th release candidate of WSO2 Carbon Kernel 4.4.17.

This release fixes the following issues:
https://github.com/wso2/carbon-kernel/milestone/15?closed=1

Please download and test your products with Kernel 4.4.17 RC4 and vote. The
vote will be open for 72 hours or as long as needed.

Maven staging repository:
*https://maven.wso2.org/nexus/content/repositories/orgwso2carbon-1191/
*

The tag to be voted upon:
*https://github.com/wso2/carbon-kernel/releases/tag/v4.4.17-rc4
*

[ ] Broken - Do not release (explain why)
[ ] Stable  - Go ahead and release

--
Thank you,
Platform Team.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Disabling hostname verification on Kernel 4.4.17-SNAPSHOT

2017-08-16 Thread Muhammed Shariq
On Wed, Aug 16, 2017 at 11:45 PM, Kishanthan Thangarajah <
kishant...@wso2.com> wrote:

>
>
> On Wed, Aug 16, 2017 at 9:48 PM, Nuwandi Wickramasinghe  > wrote:
>
>> Hi all,
>>
>> With the latest IS pack built with kernel 4.4.17-SNAPSHOT, we can
>> successfully turn off the hostname verification with
>> *-Dhttpclient.hostnameVerifier=AllowAll*.
>>
>
> What was the original issue? Farasath has followed the same steps (IS with
> 4.4.17-SNAPSHOT) and mentioned that the above property was not working
> according to the mail above.
>
>
>> Need to do some code changes from Identity Server side to make the newly
>> introduced property effective for some components.
>>
>
> What are the code changes? This property is only used in httpclient coming
> from kernel. So why changes are required at IS side?
>

Prior to kernel 4.4.17 there was a property
*-Dorg.wso2.ignoreHostnameVerification=true
*that was used to disable hostname verification. IINM, the issue here is
some components use this property to disable hostname verification, but
since it's that property has been removed since 4.4.17 that might be
causing some issue, so they are investigating on IS side.

Nuwandi / Fara - correct me if I am wrong.

>
>
>> Since no improvement is needed from kernel side, can we please go ahead
>> with the kernel 4.4.17 release?
>>
>> *-Dhttpclient.hostnameVerifier *is only applicable since 4.4.17, but our
>> documentation says it's applicable from 4.4.10 ([1]). Better to fix the
>> documentation as well. Reopened [2] since the doc need to be corrected.
>>
>> [1] https://docs.wso2.com/display/ADMIN44x/Enabling+HostName+Verification
>> [2] https://wso2.org/jira/browse/DOCUMENTATION-4071
>>
>> thanks
>> Nuwandi
>>
>> On Wed, Aug 16, 2017 at 5:39 PM, Farasath Ahamed 
>> wrote:
>>
>>>
>>>
>>>
>>> On Tue, Aug 15, 2017 at 8:22 PM, Farasath Ahamed 
>>> wrote:
>>>
 Tested with Kernel 4.4.16, -Dhttpclient.hostnameVerifier=AllowAll
 parameter is honoured and worked fine.

>>>
>>> I had an offline discussion with Chandana and Thusitha and go to know
>>> that *-Dhttpclient.hostnameVerifier=AllowAll* is not supported in
>>> kernel as of now (upto 4.4.16) and will be supported in 4.4.17.  Therefore
>>> my earlier conclusion saying that kernel 4.4.16 parameter is honoured is
>>> incorrect. But our documentation says that we support this from 4.4.11
>>> which need to be corrected immediately :)
>>>
>>> But going throught the startup script we do have a parameter
>>> *-Dorg.wso2.ignoreHostnameVerification=true* in kernel 4.4.16. Did a
>>> quick search and this parameter was used in Kernel 4.4.6 to disable
>>> hostname verification. Therefore I think that is how I was able to get my
>>> scenario working with a hostname without changing certs (ie. turn off
>>> hostname verification).
>>>
>>> But even though we have the necessary fixes to support 
>>> *-Dhttpclient.hostnameVerifier=AllowAll
>>> *in kernel 4.4.17 with commons-httpclient_3.1.0.wso2v6 orbit it doesn't
>>> seem to honour the *-Dhttpclient.hostnameVerifier *parameter.
>>>
>>> I did a quick debug with commons-httpclient_3.1.0.wso2v6 and the method
>>> to verify hostname[1] was never hit :(
>>>
>>>
>>> [1] https://github.com/wso2/wso2-commons-httpclient/blob/v3.
>>> 1.0-wso2v6/commons-httpclient/src/main/java/org/apache/commo
>>> ns/httpclient/protocol/SSLProtocolSocketFactory.java#L286
>>>
>>>

 Farasath Ahamed
 Software Engineer, WSO2 Inc.; http://wso2.com
 Mobile: +94777603866
 Blog: blog.farazath.com
 Twitter: @farazath619 
 



 On Tue, Aug 15, 2017 at 7:58 PM, Harsha Thirimanna 
 wrote:

>
>
> On 15 Aug 2017 7:43 pm, "Farasath Ahamed"  wrote:
>
> Tried to do $subject following [1] on a IS 5.4.0-SNAPSHOT pack with
> kernel 4.4.17-SNAPSHOT. I still see hostname validation errors after
> running the server with,
> -Dhttpclient.hostnameVerifier=AllowAll
>
>
> You don't get this error with the IS pack with kernal 4.4.16 ? Could
> you please check that Farasath ?
> Then we can isolate this.
>
>
>
> [2017-08-15 19:36:52,561] ERROR 
> {org.apache.catalina.core.StandardWrapperValve}
> -  Servlet.service() for servlet [default] in context with path
> [/authenticationendpoint] threw exception
> java.io.IOException: javax.net.ssl.SSLHandshakeException:
> java.security.cert.CertificateException: No name matching idp.wso2.com
> found
> at org.apache.jasper.servlet.JspServletWrapper.service(JspServl
> etWrapper.java:467)
> at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServl
> et.java:395)
> at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:339)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
> at 

[Dev] [UUF] Implementing CSRF protection for UUF Apps, require modification to existing Apps.

2017-02-06 Thread Muhammed Shariq
Hi folks,

In order to implement CSRF prevention in UUF, we have introduced a cookie
named CSRFTOKEN which gets created when creating an authenticated session.
We have created a helper, {{csrfToken}} helper [1], that can be used to
submit the CSRFTOKEN cookie value as a hidden filed when submitting a form.

If there are form that doesn't require CSRF protection, like the login
form, you can skip skip those request URI's by adding them to the security
config in app.yaml as follows,




*security:  csrfIgnoreUris:- /http-form- /file-upload*


Note that you will have to either add the {{csrfToken}} helper or update
the ignore URI's as shown above or the existing forms will fail with the
next UUF release.

Also, the security config section in app.yaml has been changed as follows,

security:
  csrfIgnoreUris: []
  xssIgnoreUris: []


Basically, we have gotten rid of the previous configuration which had "
*xssPatterns*" and "*xssPatterns*" and introduced the arrays "
*csrfIgnoreUris*" and "*xssIgnoreUris*" [4].

Refer to PR [2] and [3] for more details.

[1] - https://github.com/wso2/carbon-uuf/pull/146
[2] - https://github.com/wso2/carbon-uuf/pull/188
[3] - https://github.com/wso2/carbon-uuf-maven-tools/pull/54
[4] - https://github.com/wso2/carbon-uuf-maven-tools/issues/53


-- 
Thanks,
Shariq
Associate Technical Lead
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Fwd: Why re-write User class? Why re-wrap RealmService?

2017-02-01 Thread Muhammed Shariq
On Wed, Feb 1, 2017 at 1:10 AM, KasunG Gajasinghe  wrote:

> Hi Manu,
>
> #1. Because UUF's #createSession function expects an instance
> of org.wso2.carbon.uuf.spi.auth.User not org.wso2.carbon.identity.mgt.User
> .
>
> But, this is actually an improvement that we need to do. UUF should
> either use org.wso2.carbon.identity.mgt.User or an extended class. We
> should not have two User objects. *@UUF team*, what are you thoughts on
> this?
>

If we do this, UUF will have a dependency to identity related components,
that's not a good design IMO.



>
>
> #2. The reason is to have a balance between Nashorn js code and Java code.
> If we eliminate this client service class, then we have to move the code to
> Nashorn js. So, this does not result in less code. Having a client class is
> preferable since Java execution is faster and developers are more familiar
> with that.
>
> On Tue, Jan 31, 2017 at 8:31 PM, Danushka Fernando 
> wrote:
>
>> I guess the idea was to write an api layer for web app which will call
>> backend services and get all the data and do all the processing and return
>> data sets that can directly be used in the frond end / UUF application. If
>> there are no security reasons, +1 to remove the Middle man.
>>
>> [1] https://sourcemaking.com/refactoring/smells/middle-man
>>
>> Thanks & Regards
>> Danushka Fernando
>> Senior Software Engineer
>> WSO2 inc. http://wso2.com/
>> Mobile : +94716332729 <071%20633%202729>
>>
>> On Tue, Jan 31, 2017 at 8:14 PM, Manuranga Perera  wrote:
>>
>>>
>>> -- Forwarded message --
>>> From: Manuranga Perera 
>>> Date: Tue, Jan 31, 2017 at 2:44 PM
>>> Subject: Why re-write User class? Why re-wrap RealmService?
>>> To: Kasun Gajasinghe , Indunil Upeksha Rathnayake <
>>> indu...@wso2.com>, Danushka Fernando , Ayesha
>>> Dissanayaka 
>>> Cc: Kishanthan Thangarajah , Rasika Perera <
>>> rasi...@wso2.com>, Shariq Muhammed , Shan Mahanama <
>>> sh...@wso2.com>, Sajith Ariyarathna 
>>>
>>>
>>> 1) Why have we written org.wso2.is.portal.user.client.api.bean.UUFUser
>>> instead of just reusing org.wso2.carbon.identity.mgt.User ?
>>>
>>>
>>> 2) Even better, is there anything stopping us from directly calling
>>> RealmService OSGi service from the UUF js (eg: for list users) instead
>>> going through IdentityStoreClientServiceImpl wrapper.
>>>
>>> Less code the better.
>>>
>>> --
>>> With regards,
>>> *Manu*ranga Perera.
>>>
>>> phone : 071 7 70 20 50
>>> mail : m...@wso2.com
>>>
>>>
>>>
>>> --
>>> With regards,
>>> *Manu*ranga Perera.
>>>
>>> phone : 071 7 70 20 50
>>> mail : m...@wso2.com
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
>
> *Kasun Gajasinghe*Associate Technical Lead, WSO2 Inc.
> email: kasung AT spamfree wso2.com
> linked-in: http://lk.linkedin.com/in/gajasinghe
> blog: http://kasunbg.org
> phone: +1 650-745-4499 <(650)%20745-4499>, 77 678 0813
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Thanks,
Shariq
Associate Technical Lead
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [UUF] Feature request - Print a custom message in console on startup.

2017-01-16 Thread Muhammed Shariq
Hi Manu,

We have implemented something similar in [1] where we print the URI's of
the available apps which I believe address your requirement as well.

The need for such a log would be to notify that the app has been deployed
successfully and to get the app url. On the other hand, the app developer
shouldn't need to worry about the message that's printed in the console
IMO, so I feel, the fix we've done for [1] is sufficient.

[1] - https://github.com/wso2/carbon-uuf/issues/136

On Tue, Jan 17, 2017 at 12:11 AM, Manuranga Perera  wrote:

> $subject
>
> app.yaml
>   welcomeMessage: "{{config.appName}} started at {{appUrl}}
>
>
>
> --
> With regards,
> *Manu*ranga Perera.
>
> phone : 071 7 70 20 50
> mail : m...@wso2.com
>



-- 
Thanks,
Shariq
Associate Technical Lead
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Architecture] [Carbon5] JSON syntax for config files?

2013-03-13 Thread Muhammed Shariq
On Tue, Mar 12, 2013 at 8:32 PM, Senaka Fernando sen...@wso2.com wrote:

 Hi Azeez,

 More than docs, we need to consider the user experience aspect. People are
 using these things in real production environments. Some have scripted
 their deployments. How much of an effort is it to move from XML to JSON in
 that sense? I think that's not straightforward. Also, we use XML all over
 the place. Ex:- Synapse Config, Registry Handlers, Lifecycles, Endpoints -
 basically everything configuration across every single component is XML.
 Unless everything becomes JSON, the users have to train themselves to do
 two things. So, what looks cool to us does not look so cool to everybody.
 So, its not just kernel that we need to think about, its the whole
 platform. Unless we have a platform-wide move, I'm -0 for this.


I agree with Senaka too. User experience is going to be an issue once
dev-ops try to migrate from C4 to C5. For example we have a customer who
experienced issue while migrating to C4 simply because we had split our
config files and also moved them to different directories etc. This becomes
more complicated with Stratos setup where dev-ops have written scripts etc
to automate deployment. Obviously there will be changes in configs but
moving from xml to JSON is too much of a leap IMO .. Also we cannot add
comments in JSON based config files (if I am not mistaken), plus even a
JSON based config file is going to look clattered once we introduce nested
configurations.!


 Also, based on the last internal discussion on this, Paul said, Plain
 JSON is worse than plain XML, IIRC. I thought we agreed for configuration
 files like the LB model in that discussion, but again that would mean
 custom parsers, custom work, and adoption across the entire platform.

 Thanks,
 Senaka.

 On Tue, Mar 12, 2013 at 6:38 AM, Afkham Azeez az...@wso2.com wrote:

 I agree on the points everybody has mentioned in support of XML in config
 files.

 But it seems that most people still don't understand that Carbon 5 is
 going to be a major shift. We are removing the Axis2 dependency from the
 kernel, and minifying the kernel. Lots of things starting from some package
 structures will be changed. Docs will need updating. From Carbon 4.0 to 5.0
 is going to be a major leap.

 Azeez


 On Tue, Mar 12, 2013 at 6:53 PM, Maninda Edirisooriya 
 mani...@wso2.comwrote:

 I think JSON is more human readable than XML, as it is cleaner than XML.
 (I may be wrong as I am familiar with JavaScript) And as Nuwan said we will
 not get the Everything JSON feeling. But many web developers will be much
 familiar with JSON than XML as Jaggery and JavaScript are JSON based. But
 there is still a major XML dependancy, that is web services. As all the web
 services are still comes with XML, JSON Everyware story will not be
 complete. So I prefer moving to SOAP based web services to REST/JSON based
 system rather than changing configs from XML to JSON. The reason is current
 XML configs has no major problem and changing it will course lot of bugs
 and support issues. We can postpone this until XML becomes a unpopular
 language which will not happen in near future. Until that we can work on
 changing message protocols from XML/AXIOM to REST/JSON and improve the
 performance and simplicity of the implementation in ESB and AS.


 *Maninda Edirisooriya*
 Software Engineer
 *WSO2, Inc.
 *lean.enterprise.middleware.

 *Blog* : http://maninda.blogspot.com/
 *Phone* : +94 777603226


 On Tue, Mar 12, 2013 at 4:45 PM, Sagara Gunathunga sag...@wso2.comwrote:



 On Tue, Mar 12, 2013 at 12:41 PM, Afkham Azeez az...@wso2.com wrote:

 Folks,
 I am starting a new thread to see how everybody feels about using JSON
 syntax for the config files wer are using. I personally feel that it looks
 elegant, and very easy to edit with vi. Also, we don't do any schema
 validation of our config files, and the config file structures are simple,
 so JSON could be more appropriate.

 Thoughts?



  I'm -0  on this change.

 Other than user friendliness  do we have any significant customer
 related issue to fix by changing  configuration files into JSON ? If not we
 should target to solve significant C4 issues first.  As some people
 mentioned  this needs great amount of documentation and migration tools,  I
 don't believe it's a good idea to do this at the beginning of C5.

 Thanks !





 --
 *Afkham Azeez*
 Director of Architecture; WSO2, Inc.; http://wso2.com
 Member; Apache Software Foundation; http://www.apache.org/
 * http://www.apache.org/**
 email: **az...@wso2.com* az...@wso2.com* cell: +94 77 3320919
 blog: **http://blog.afkham.org* http://blog.afkham.org*
 twitter: 
 **http://twitter.com/afkham_azeez*http://twitter.com/afkham_azeez
 *
 linked-in: **http://lk.linkedin.com/in/afkhamazeez*
 *
 *
 *Lean . Enterprise . Middleware*

 ___
 Architecture mailing list
 architect...@wso2.org
 

Re: [Dev] Contribute Patches/Bug fixes

2013-03-08 Thread Muhammed Shariq
Hi Kevin,

First of thanks for analyzing the issue in detail and coming back with the
fixes. Of course we would be more than happy to accept patches for any bugs
you encounter :) You can provide patches through our bug tracker [1] and an
engineer from relevant team will verify the fix and commit it to the trunk.

Since this is a fix for ESB you can raise an issue in ESB project [2] and
attach the patch there. Note that you will have to register in Oxygen Tank
in order to be able to login to Jira.

[1] - https://wso2.org/jira/secure/Dashboard.jspa
[2] - https://wso2.org/jira/browse/ESBJAVA
[3] - http://wso2.org/

On Wed, Mar 6, 2013 at 10:18 PM, Kevin Sewell kevin.w.sew...@gmail.comwrote:

 Hi Guys,

 Sorry if this not the right channel but I was wondering what the procedure
 is to contribute patches and bug fixes.

 I have been experiencing a Heisenbug on the wso2esb 4.6.0 / stratos 1.6.0.

 It appears that the buggy code is in
 org.wso2.carbon.proxyadmin.ProxyServiceDeployer.init(ConfigurationContext
 configCtx). The while loop is waiting for the MediationPersistenceManager
 to be initialized and I assume is supposed to retry 10 times which should
 be *while(mpm == null  retry  10)* . However, the conditional states 
 *while(mpm
 == null || retry  10).* Which causes two problems, one very trivial, the
 other not so much.

 1) The while loop will always execute ten times
 2) The MediationPersistenceManager is initialised in
 org.wso2.carbon.mediation.initializer.multitenancy.TenantServiceBusInitializer
 and
 the order in which TenantServiceBusInitializer or
 ProxyAdminServiceComponent (or any other Axis2ConfigurationContextObserver)
 gets invoked via
 org.wso2.carbon.core.multitenancy.utils.TenantAxisUtils.createTenantConfigurationContext(ConfigurationContext
 mainConfigCtx, String tenantDomain) is non-deterministic (from what I can
 see).

 The problem here is that when the
 TenantServiceBusInitializer.createdConfigurationContext(ConfigurationContext
 configContext) is set to be invoked after
 ProxyAdminServiceComponent..createdConfigurationContext(ConfigurationContext
 configContext), due to the ordering of the array of services returned by
 the org.osgi.util.tracker.ServiceTracker, the loop in
 org.wso2.carbon.proxyadmin.ProxyServiceDeployer.init(ConfigurationContext
 configCtx) never completes and TenantServiceBusInitializer.
 createdConfigurationContext(ConfigurationContext configContext) is never
 invoked.

 The user will then experience an exception when trying to access any of
 the synapse component UIs because of a NullPointer thrown when the
 associated Admin classes try to obtain a lock via
 AbstractServiceBusAdmin.getLock()

 Many thanks,
 Kevin

 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev




-- 
Thanks,
Shariq.
Phone: +94 777 202 225
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Build failed in trunk with clean repo

2013-03-05 Thread Muhammed Shariq
Hi KasunG,

I tried building with the updated orbit and still I am getting build
failures .. the issue is that its pointing to the wrong parent pom ?!

 parent
groupIdorg.wso2.carbon/groupId
*artifactIdorbit-parent/artifactId*
version4.1.0/version
*relativePath../../pom.xml/relativePath*
 /parent


On Mon, Mar 4, 2013 at 12:58 PM, Kasun Gajasinghe kas...@wso2.com wrote:


 I have added the svn externals to orbit trunk. So, there's no need to
 build 4.1.0 orbit branch anymore. Please take an update in orbit *trunk*,
 and build it before building kernel and platform.


 On Mon, Mar 4, 2013 at 11:49 AM, Supun Malinga sup...@wso2.com wrote:

 Hi,

 Since most folks who are starting to build trunk get confused of this we
 will add orbit 4.1.0 bundles as externals to the orbit trunk, for the
 moment. After orbit 4.1.0 is released, we will remove the external.
 Also right now wadl-core is duplicated in both trunk and branch. Either
 upgrade the trunk version or remove the trunk wadl-core and add an external
 from the branch.

 thanks,


 On Sun, Mar 3, 2013 at 6:12 PM, Kasun Gajasinghe kas...@wso2.com wrote:

 Hi Eranda,




 On Sun, Mar 3, 2013 at 6:00 PM, Eranda Sooriyabandara 
 era...@wso2.comwrote:

 Hi all,
 What you guys suggest was a workaround and it is fundamentally wrong.
 Isn't it? One who checking out and build the trunk also need to checkout
 the 4.1.0 branch and build. Anyway since we don't have people who work with
 trunk, no trouble.


 There will be a little annoyance until we do the 4.1.0 release which is
 due in less than two weeks. When it's released, we will be hosting the
 orbit bundles in wso2 nexus maven repo. After that, you do not have to
 build the 4.1.0 orbit branch.

 We have only maintained 4.1.0 orbit branch, and haven't worked on orbit
 trunk. This isn't really a workaround rather an annoyance until the
 release. Hope you understand.


 thanks
 Eranda


 On Sun, Mar 3, 2013 at 4:09 PM, Supun Malinga sup...@wso2.com wrote:

 Hi,

 First of all, there is no orbit trunk as for the moment. There is a
 svn dir. but that pretty much outdated. Since we need some orbit bundles
 for the 4.1.0 release, we decided to directly create orbit 4.1.0 branch
 instead of orbit trunk. So if you are building trunk, please keep in mind
 there is no orbit trunk at the moment, and the trunk is dependent on the
 4.1.0 orbit branch. Guess that'a fair enough. And if this still concerns,
 we shld be able to release the orbit 4.1.0 now.

 thanks,


 On Sun, Mar 3, 2013 at 3:52 PM, Sagara Gunathunga sag...@wso2.comwrote:



 On Sun, Mar 3, 2013 at 2:50 PM, Dileepa Jayakody dile...@wso2.comwrote:



 On Sun, Mar 3, 2013 at 11:00 AM, Eranda Sooriyabandara 
 era...@wso2.com wrote:

 Hi Dileepa,


 Yes, the tomcat 7.0.34.wso2v1 bundle is not added to trunk. it's in
 4.1.0 branch, and we haven't released it yet. So for the moment we'll 
 have
 to build (only) orbit 4.1.0 branch before building trunk.


 Normally we branch from trunk. What I have felt here is on the
 other way around. When creating the 4.1.0 branch the code what you
 mentioned missing should be there in the orbit trunk. Isn't it what 
 should
 be?


 Yes, I think the reason is orbit 4.1.0 branch has being created
 separately without merging from orbit trunk, hence the new tomcat orbit
 version is not there in trunk. Perhaps we should
 merge the 4.1.0 orbits to trunk.


 Yes, That was the reason.




 @Kishanthan,
 was there any specific reason to add the new tomcat bundles to 4.1.0
 branch and not trunk?maybe we can commit them to trunk to avoid build
 failures?


 There is no specific reason, please go ahead and merge to the trunk.

 Thanks !



 Thanks,
 Dileepa


 thanks
 Eranda

 *
 *




 --
 Dileepa Jayakody,
 Software Engineer, WSO2 Inc.
 Lean . Enterprise . Middleware

 Mobile : +94777-857616

 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev




 --
 Sagara Gunathunga

 Technical Lead; WSO2, Inc.;  http://wso2.com
 V.P Apache Web Services ;  http://ws.apache.org/
 Blog ;  http://ssagara.blogspot.com

 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev




 --
 Supun Malinga,

 Software Engineer,
 WSO2 Inc.
 http://wso2.com
 http://wso2.org
 email - sup...@wso2.com sup...@wso2.com
 mobile - 071 56 91 321

 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev




 --
 *Eranda Sooriyabandara
 *Software Engineer;
 Integration Technologies Team;
 WSO2 Inc.; http://wso2.com

 *
 *

 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev




 --
 *Kasun Gajasinghe*
 Software Engineer;
 Development Technologies Team, WSO2 Inc.; http://wso2.com ,
 *email: **kasung AT spamfree wso2.com** cell: **+94 (77) 678-0813*
 

Re: [Dev] Stratos problem?

2013-02-17 Thread Muhammed Shariq
On Sun, Feb 17, 2013 at 3:32 PM, Kasun Perera kas...@opensource.lk wrote:


 I was able to sort out the problems with webapp and it's working fine now.
 Thank you very much Amila,Prabath and specially Shariq for the support
 that you have given me to sort out the problems.


That's great news ..! :)


 Thanks

 On Thu, Feb 14, 2013 at 10:46 AM, Sanjiva Weerawarana 
 sanj...@opensource.lk wrote:

 Kasun is this working now?


 On Mon, Feb 11, 2013 at 10:39 AM, Muhammed Shariq sha...@wso2.comwrote:

 Hi,

 On Mon, Feb 11, 2013 at 9:18 AM, Kasun Perera kas...@opensource.lkwrote:

 H Amila

 I have activated the the Storage Server, and now I can see the list of
 databases.
 But when I click on manage link on a perticuler database, it direct me
 to the Attach database users page.
  From my previous experience this should direct me to the page where I
 can login to the database and run SQL queries?
 I tried to create a new database but the result was same as above
 mentioned


 The DB explorer is in the Data Services Server .. you can find it under
 Tools - Database Explorer in the Data Services Server and execute your
 queries ...


 The exception occurs when trying to login for the webapp -- I think
 this is still a problem of database connectivity ?Can you suggest any work
 around?


 Can you send us any exceptions you are seeing so we can further
 investigate ..?


 BTW- Sometimes I'm experiencing some weird behavior on stratoes live
 It gives me Authentication Failure when I'm trying to login for Data
 Service Server and Storage server
 When I click some link instead of going to that page it start
 downloading the page. e.g when I click upload web application it start
 downloading the upload.jsp page.


 The pages being downloaded is an issue we also experience in Google
 Chrome .. you can use Firefox for the moment and it should work fine .


 Thanks


 On Sun, Feb 10, 2013 at 1:19 PM, Amila Maha Arachchi 
 ami...@wso2.comwrote:

 Hi Kasun,

 On Sun, Feb 10, 2013 at 12:22 PM, Kasun Perera 
 kas...@opensource.lkwrote:



 On Sun, Feb 10, 2013 at 10:55 AM, Amila Maha Arachchi 
 ami...@wso2.com wrote:

  When we access your webapp, we can see it loading fine the styles.


 Yes this is due to changes I did on Friday!
 We had common JSP segment files header.jspf footer.jspf and
 I merged them with the login page on Friday in-order to see whether it
 works. So basically login was loading with fine styles since Friday.

 But I still can't see our MySql databases inside the Data Service
 Server interface. Is this same for your testing tenants?  I have another
 testing tenant and situation is same; I can see the databases there too.


 Yes, this is the expected behaviour. Your database will be found in
 https://storage.stratoslive.wso2.com (Our new storage server
 product). So, if you login to your tenant and go to above URL, you will 
 see
 it under the databases section (this was earlier included in Data Service
 Server and now it is removed from it and included in Storage Server).

 *Note:

 You might not be able to login to storage server in your first
 attempt. First, you need to go to Stratos Manager (
 https://stratoslive.wso2.com) - Configure - Services. There you
 will see the available services and then you need to activate the Storage
 Server for your tenant. After that you will be able to login to it (this 
 is
 because this is a new addition to our product stack). *

 I have tested this for my personal apps which were using old
 databases. I'll try your app as well.


 One other thing- Please upload our .war file to your testing tenant
 and see whether it works

 https://docs.google.com/file/d/0B5A0W5SUykQqY0luNVpGSi1vTVU/edit?usp=sharing

 Thanks




 Most probably your app is trying some privileged operations in
 StratosLive. We'll work with Kasun on resolving them too. Most probably
 there will need a little code change I guess. We'll work on this on 
 Monday.

 Regards,
 Amila.


 On Sun, Feb 10, 2013 at 9:26 AM, Louiqa Raschid 
 lou...@umiacs.umd.edu wrote:


  Hi,
 Sorry about the late response. Yes I did verify with an old
 tenant of mine too after Prabath confirmed that the migration fix was
 complete .. now the DB user migration issue is fixed ..
 Thanks Prabath for looking into it :)


 Our app is still not working but this is probably because Kasun
 needs to
 do some post-migration work?
 http://appserver.stratoslive.**wso2.com/t/karsha.opensource.**
 lk/webapps/KarshaAnnotate/**loginhttp://appserver.stratoslive.wso2.com/t/karsha.opensource.lk/webapps/KarshaAnnotate/login

 I understand that we are not tenants with an SLA but ... I think
 that there should have been some warnings sent to all tenants before 
 these
 migrations happened?

 Louiqa




 --
 *Amila Maharachchi*
 Technical Lead
 Member, Management Committee - Cloud  Platform TG
 WSO2, Inc.; http://wso2.com

 Blog: http://maharachchi.blogspot.com
 Mobile: +94719371446




 --
 Regards

 Kasun Perera




 --
 *Amila Maharachchi

Re: [Dev] Stratos problem?

2013-02-14 Thread Muhammed Shariq
On Thu, Feb 14, 2013 at 12:18 PM, Kasun Perera kas...@opensource.lk wrote:

 Hi Shariq

 SLive AS Monitor - System Logs dosen't list any errors.

 BTW does SLive AS Monitor - System Logs under my tenant list logs
 related to others too?
 I can see a logs like 
 2013-02-13 22:35:19,047 Loaded tenant test1.chamara.com in 4524 ms
 

No it shouldn't will check on it.


 Any Ideas why i'm getting this on terminal when security manger enabled?

 JAVA_HOME environment variable is set to /usr/lib/jvm/java-6-sun-1.6.0.26
 CARBON_HOME environment variable is set to
 /home/kasun/Documents/wso2as-5.0.1
 Property pattern javax.net.ssl.trustStore is restricted for tenant code.
 Property pattern javax.net.ssl.trustStorePassword is restricted for tenant
 code.
 Property pattern denied.system.properties is restricted for tenant code.
 java.security.AccessControlException
  - klass: 'java/security/AccessControlException'


You need to sign all the jars in the distro when starting with security
manager .. you can used to attached script to do so ,, if your on windows
you might
have to modify the script accordingly ..


 Thanks

 On Thu, Feb 14, 2013 at 11:26 AM, Muhammed Shariq sha...@wso2.com wrote:

 Hi,

 We had an issue with regard to the DB user migration which we fixed
 during the last weekend it self, then I by going through Kasun's code I
 figured that he was using a wrong library which further prevented the app
 from working ..

 It seems Kasun is working on Windows and is unable to enable security
 manager and test his app using the server.sh i provided .. Kasun can you go
 to SLive AS Monitor - System Logs and check if there are any errors .. ?!


 On Thu, Feb 14, 2013 at 10:46 AM, Sanjiva Weerawarana 
 sanj...@opensource.lk wrote:

 Kasun is this working now?


 On Mon, Feb 11, 2013 at 10:39 AM, Muhammed Shariq sha...@wso2.comwrote:

 Hi,

 On Mon, Feb 11, 2013 at 9:18 AM, Kasun Perera kas...@opensource.lkwrote:

 H Amila

 I have activated the the Storage Server, and now I can see the list of
 databases.
 But when I click on manage link on a perticuler database, it direct me
 to the Attach database users page.
  From my previous experience this should direct me to the page where I
 can login to the database and run SQL queries?
 I tried to create a new database but the result was same as above
 mentioned


 The DB explorer is in the Data Services Server .. you can find it under
 Tools - Database Explorer in the Data Services Server and execute your
 queries ...


 The exception occurs when trying to login for the webapp -- I think
 this is still a problem of database connectivity ?Can you suggest any work
 around?


 Can you send us any exceptions you are seeing so we can further
 investigate ..?


 BTW- Sometimes I'm experiencing some weird behavior on stratoes live
 It gives me Authentication Failure when I'm trying to login for
 Data Service Server and Storage server
 When I click some link instead of going to that page it start
 downloading the page. e.g when I click upload web application it start
 downloading the upload.jsp page.


 The pages being downloaded is an issue we also experience in Google
 Chrome .. you can use Firefox for the moment and it should work fine .


 Thanks


 On Sun, Feb 10, 2013 at 1:19 PM, Amila Maha Arachchi 
 ami...@wso2.comwrote:

 Hi Kasun,

 On Sun, Feb 10, 2013 at 12:22 PM, Kasun Perera 
 kas...@opensource.lkwrote:



 On Sun, Feb 10, 2013 at 10:55 AM, Amila Maha Arachchi 
 ami...@wso2.com wrote:

  When we access your webapp, we can see it loading fine the styles.


 Yes this is due to changes I did on Friday!
 We had common JSP segment files header.jspf footer.jspf and
 I merged them with the login page on Friday in-order to see whether it
 works. So basically login was loading with fine styles since Friday.

 But I still can't see our MySql databases inside the Data Service
 Server interface. Is this same for your testing tenants?  I have another
 testing tenant and situation is same; I can see the databases there too.


 Yes, this is the expected behaviour. Your database will be found in
 https://storage.stratoslive.wso2.com (Our new storage server
 product). So, if you login to your tenant and go to above URL, you will 
 see
 it under the databases section (this was earlier included in Data Service
 Server and now it is removed from it and included in Storage Server).

 *Note:

 You might not be able to login to storage server in your first
 attempt. First, you need to go to Stratos Manager (
 https://stratoslive.wso2.com) - Configure - Services. There you
 will see the available services and then you need to activate the Storage
 Server for your tenant. After that you will be able to login to it (this 
 is
 because this is a new addition to our product stack). *

 I have tested this for my personal apps which were using old
 databases. I'll try your app as well.


 One other thing- Please upload our .war file to your testing tenant
 and see whether it works

 https

Re: [Dev] Stratos problem?

2013-02-14 Thread Muhammed Shariq
On Thu, Feb 14, 2013 at 1:40 PM, Kasun Perera kas...@opensource.lk wrote:

 This is some other problem happened, I noticed it now.

 When I upload a .WAR file seems it goes in to another tenet
 Although my tenant is 
 /t/karsha.opensource.lk/https://management.appserver.stratoslive.wso2.com/t/karsha.opensource.lk/carbon/webapp-list/webapp_info.jsp?webappFileName=KarshaMarkUp.warwebappState=allhostName=appserver.stratoslive.wso2.comhttpPort=80webappType=webapp
  MainApplications
 list shows me it's under 
 /t/test1.chamara.com/webapps/KarshaAnnotatehttps://management.appserver.stratoslive.wso2.com/t/karsha.opensource.lk/carbon/webapp-list/webapp_info.jsp?webappFileName=KarshaAnnotate.warwebappState=allhostName=appserver.stratoslive.wso2.comhttpPort=80webappType=webapp

 (Some other .WAR files are in correct context)
 It may not related to my libraries issue, but that's not normal behavior ?


This is not the normal behavior plus I cannot access the webapp on the
test1.* context .. can you share a working version of the webapp and let me
know how
to reproduce the dead page what you were talking about .?!

 --
 Regards

 Kasun Perera

 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev




-- 
Thanks,
Shariq.
Phone: +94 777 202 225
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Stratos problem?

2013-02-13 Thread Muhammed Shariq
Hi,

We had an issue with regard to the DB user migration which we fixed during
the last weekend it self, then I by going through Kasun's code I figured
that he was using a wrong library which further prevented the app from
working ..

It seems Kasun is working on Windows and is unable to enable security
manager and test his app using the server.sh i provided .. Kasun can you go
to SLive AS Monitor - System Logs and check if there are any errors .. ?!

On Thu, Feb 14, 2013 at 10:46 AM, Sanjiva Weerawarana sanj...@opensource.lk
 wrote:

 Kasun is this working now?


 On Mon, Feb 11, 2013 at 10:39 AM, Muhammed Shariq sha...@wso2.com wrote:

 Hi,

 On Mon, Feb 11, 2013 at 9:18 AM, Kasun Perera kas...@opensource.lkwrote:

 H Amila

 I have activated the the Storage Server, and now I can see the list of
 databases.
 But when I click on manage link on a perticuler database, it direct me
 to the Attach database users page.
  From my previous experience this should direct me to the page where I
 can login to the database and run SQL queries?
 I tried to create a new database but the result was same as above
 mentioned


 The DB explorer is in the Data Services Server .. you can find it under
 Tools - Database Explorer in the Data Services Server and execute your
 queries ...


 The exception occurs when trying to login for the webapp -- I think
 this is still a problem of database connectivity ?Can you suggest any work
 around?


 Can you send us any exceptions you are seeing so we can further
 investigate ..?


 BTW- Sometimes I'm experiencing some weird behavior on stratoes live
 It gives me Authentication Failure when I'm trying to login for Data
 Service Server and Storage server
 When I click some link instead of going to that page it start
 downloading the page. e.g when I click upload web application it start
 downloading the upload.jsp page.


 The pages being downloaded is an issue we also experience in Google
 Chrome .. you can use Firefox for the moment and it should work fine .


 Thanks


 On Sun, Feb 10, 2013 at 1:19 PM, Amila Maha Arachchi ami...@wso2.comwrote:

 Hi Kasun,

 On Sun, Feb 10, 2013 at 12:22 PM, Kasun Perera kas...@opensource.lkwrote:



 On Sun, Feb 10, 2013 at 10:55 AM, Amila Maha Arachchi ami...@wso2.com
  wrote:

  When we access your webapp, we can see it loading fine the styles.


 Yes this is due to changes I did on Friday!
 We had common JSP segment files header.jspf footer.jspf and
 I merged them with the login page on Friday in-order to see whether it
 works. So basically login was loading with fine styles since Friday.

 But I still can't see our MySql databases inside the Data Service
 Server interface. Is this same for your testing tenants?  I have another
 testing tenant and situation is same; I can see the databases there too.


 Yes, this is the expected behaviour. Your database will be found in
 https://storage.stratoslive.wso2.com (Our new storage server product).
 So, if you login to your tenant and go to above URL, you will see it under
 the databases section (this was earlier included in Data Service Server and
 now it is removed from it and included in Storage Server).

 *Note:

 You might not be able to login to storage server in your first attempt.
 First, you need to go to Stratos Manager (https://stratoslive.wso2.com)
 - Configure - Services. There you will see the available services and
 then you need to activate the Storage Server for your tenant. After that
 you will be able to login to it (this is because this is a new addition to
 our product stack). *

 I have tested this for my personal apps which were using old databases.
 I'll try your app as well.


 One other thing- Please upload our .war file to your testing tenant
 and see whether it works

 https://docs.google.com/file/d/0B5A0W5SUykQqY0luNVpGSi1vTVU/edit?usp=sharing

 Thanks




 Most probably your app is trying some privileged operations in
 StratosLive. We'll work with Kasun on resolving them too. Most probably
 there will need a little code change I guess. We'll work on this on 
 Monday.

 Regards,
 Amila.


 On Sun, Feb 10, 2013 at 9:26 AM, Louiqa Raschid 
 lou...@umiacs.umd.edu wrote:


  Hi,
 Sorry about the late response. Yes I did verify with an old tenant
 of mine too after Prabath confirmed that the migration fix was 
 complete ..
 now the DB user migration issue is fixed ..
 Thanks Prabath for looking into it :)


 Our app is still not working but this is probably because Kasun
 needs to
 do some post-migration work?
 http://appserver.stratoslive.**wso2.com/t/karsha.opensource.**
 lk/webapps/KarshaAnnotate/**loginhttp://appserver.stratoslive.wso2.com/t/karsha.opensource.lk/webapps/KarshaAnnotate/login

 I understand that we are not tenants with an SLA but ... I think
 that there should have been some warnings sent to all tenants before 
 these
 migrations happened?

 Louiqa




 --
 *Amila Maharachchi*
 Technical Lead
 Member, Management Committee - Cloud  Platform TG
 WSO2, Inc.; http

Re: [Dev] Test Compilation Failure on project org.wso2.carbon.apimgt.impl

2013-02-12 Thread Muhammed Shariq
Guys,

Please have a look .. :)

On Tue, Feb 12, 2013 at 6:12 PM, Geeth Munasinghe ge...@wso2.com wrote:

 Hi

 [INFO] BUILD FAILURE
 [INFO]
 
 [INFO] Total time: 20:20.765s
 [INFO] Finished at: Tue Feb 12 18:07:41 IST 2013
 [INFO] Final Memory: 1444M/1772M
 [INFO]
 
 [ERROR] Failed to execute goal
 org.apache.maven.plugins:maven-compiler-plugin:2.3.1:testCompile
 (default-testCompile) on project org.wso2.carbon.apimgt.impl: Compilation
 failure: Compilation failure:
 [ERROR]
 /home/geeth/workspace/releases/as-5.1.0/platform/trunk/components/apimgt/org.wso2.carbon.apimgt.impl/src/test/java/org/wso2/carbon/apimgt/impl/dao/test/TestRealmService.java:[27,7]
 org.wso2.carbon.apimgt.impl.dao.test.TestRealmService is not abstract and
 does not override abstract method clearCachedUserRealm(int) in
 org.wso2.carbon.user.core.service.RealmService
 [ERROR]
 [ERROR]
 /home/geeth/workspace/releases/as-5.1.0/platform/trunk/components/apimgt/org.wso2.carbon.apimgt.impl/src/test/java/org/wso2/carbon/apimgt/impl/dao/test/TestTenantManager.java:[25,7]
 org.wso2.carbon.apimgt.impl.dao.test.TestTenantManager is not abstract and
 does not override abstract method
 getAllTenantDomainStrOfUser(java.lang.String) in
 org.wso2.carbon.user.api.TenantManager
 [ERROR] - [Help 1]
 [ERROR]
 [ERROR] To see the full stack trace of the errors, re-run Maven with the
 -e switch.
 [ERROR] Re-run Maven using the -X switch to enable full debug logging.
 [ERROR]
 [ERROR] For more information about the errors and possible solutions,
 please read the following articles:
 [ERROR] [Help 1]
 http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
 [ERROR]
 [ERROR] After correcting the problems, you can resume the build with the
 command
 [ERROR]   mvn goals -rf :org.wso2.carbon.apimgt.impl


 Thanks
 Geeth

 *G. K. S. Munasinghe
 *
 *Software Engineer,*
 *App Server Team,*
 *WSO2, Inc. http://wso2.com *
 *lean.enterprise.middleware.*
 *
 *
 email: ge...@wso2.com
 phone:(+94) 777911226

 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev




-- 
Thanks,
Shariq.
Phone: +94 777 202 225
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Fwd: Test Failures on project org.wso2.carbon.databridge.persistence.cassandra

2013-02-12 Thread Muhammed Shariq
Please have a look ..

On Tue, Feb 12, 2013 at 6:30 PM, Geeth Munasinghe ge...@wso2.com wrote:

 Hi

 Please ignore the previous mail without proper subject




 Results :

 Failed tests:
 insertEventsFromTwoVersions(org.wso2.carbon.databridge.persistence.cassandra.CassandraDefnStoreTest):
 expected:4 but was:2

 deleteStreamDefinitionAndId(org.wso2.carbon.databridge.persistence.cassandra.CassandraDefnStoreTest):
 expected:4 but was:2

 Tests run: 16, Failures: 2, Errors: 0, Skipped: 0






 [INFO] BUILD FAILURE
 [INFO]
 
 [INFO] Total time: 5:25.152s
 [INFO] Finished at: Tue Feb 12 18:20:47 IST 2013
 [INFO] Final Memory: 860M/1565M
 [INFO]
 
 [ERROR] Failed to execute goal
 org.apache.maven.plugins:maven-surefire-plugin:2.12:test (default-test) on
 project org.wso2.carbon.databridge.persistence.cassandra: There are test
 failures.
 [ERROR]
 [ERROR] Please refer to
 /home/geeth/workspace/releases/as-5.1.0/platform/trunk/components/data-bridge/org.wso2.carbon.databridge.persistence.cassandra/target/surefire-reports
 for the individual test results.
 [ERROR] - [Help 1]
 [ERROR]
 [ERROR] To see the full stack trace of the errors, re-run Maven with the
 -e switch.
 [ERROR] Re-run Maven using the -X switch to enable full debug logging.
 [ERROR]
 [ERROR] For more information about the errors and possible solutions,
 please read the following articles:
 [ERROR] [Help 1]
 http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException


 Please find the sure fire reports attached with

 Thanks



 *G. K. S. Munasinghe
 *
 *Software Engineer,*
 *App Server Team,*
 *WSO2, Inc. http://wso2.com *
 *lean.enterprise.middleware.*
 *
 *
 email: ge...@wso2.com
 phone:(+94) 777911226


 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev




-- 
Thanks,
Shariq.
Phone: +94 777 202 225
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Stratos problem?

2013-02-10 Thread Muhammed Shariq
Hi,

On Mon, Feb 11, 2013 at 9:18 AM, Kasun Perera kas...@opensource.lk wrote:

 H Amila

 I have activated the the Storage Server, and now I can see the list of
 databases.
 But when I click on manage link on a perticuler database, it direct me to
 the Attach database users page.
  From my previous experience this should direct me to the page where I can
 login to the database and run SQL queries?
 I tried to create a new database but the result was same as above mentioned


The DB explorer is in the Data Services Server .. you can find it under
Tools - Database Explorer in the Data Services Server and execute your
queries ...


 The exception occurs when trying to login for the webapp -- I think this
 is still a problem of database connectivity ?Can you suggest any work
 around?


Can you send us any exceptions you are seeing so we can further investigate
..?


 BTW- Sometimes I'm experiencing some weird behavior on stratoes live
 It gives me Authentication Failure when I'm trying to login for Data
 Service Server and Storage server
 When I click some link instead of going to that page it start downloading
 the page. e.g when I click upload web application it start downloading the
 upload.jsp page.


The pages being downloaded is an issue we also experience in Google Chrome
.. you can use Firefox for the moment and it should work fine .


 Thanks


 On Sun, Feb 10, 2013 at 1:19 PM, Amila Maha Arachchi ami...@wso2.comwrote:

 Hi Kasun,

 On Sun, Feb 10, 2013 at 12:22 PM, Kasun Perera kas...@opensource.lkwrote:



 On Sun, Feb 10, 2013 at 10:55 AM, Amila Maha Arachchi 
 ami...@wso2.comwrote:

  When we access your webapp, we can see it loading fine the styles.


 Yes this is due to changes I did on Friday!
 We had common JSP segment files header.jspf footer.jspf and I merged
 them with the login page on Friday in-order to see whether it works. So
 basically login was loading with fine styles since Friday.

 But I still can't see our MySql databases inside the Data Service Server
 interface. Is this same for your testing tenants?  I have another testing
 tenant and situation is same; I can see the databases there too.


 Yes, this is the expected behaviour. Your database will be found in
 https://storage.stratoslive.wso2.com (Our new storage server product).
 So, if you login to your tenant and go to above URL, you will see it under
 the databases section (this was earlier included in Data Service Server and
 now it is removed from it and included in Storage Server).

 *Note:

 You might not be able to login to storage server in your first attempt.
 First, you need to go to Stratos Manager (https://stratoslive.wso2.com)
 - Configure - Services. There you will see the available services and
 then you need to activate the Storage Server for your tenant. After that
 you will be able to login to it (this is because this is a new addition to
 our product stack). *

 I have tested this for my personal apps which were using old databases.
 I'll try your app as well.


 One other thing- Please upload our .war file to your testing tenant and
 see whether it works

 https://docs.google.com/file/d/0B5A0W5SUykQqY0luNVpGSi1vTVU/edit?usp=sharing

 Thanks




 Most probably your app is trying some privileged operations in
 StratosLive. We'll work with Kasun on resolving them too. Most probably
 there will need a little code change I guess. We'll work on this on Monday.

 Regards,
 Amila.


 On Sun, Feb 10, 2013 at 9:26 AM, Louiqa Raschid 
 lou...@umiacs.umd.eduwrote:


  Hi,
 Sorry about the late response. Yes I did verify with an old tenant
 of mine too after Prabath confirmed that the migration fix was complete 
 ..
 now the DB user migration issue is fixed ..
 Thanks Prabath for looking into it :)


 Our app is still not working but this is probably because Kasun needs
 to
 do some post-migration work?
 http://appserver.stratoslive.**wso2.com/t/karsha.opensource.**
 lk/webapps/KarshaAnnotate/**loginhttp://appserver.stratoslive.wso2.com/t/karsha.opensource.lk/webapps/KarshaAnnotate/login

 I understand that we are not tenants with an SLA but ... I think that
 there should have been some warnings sent to all tenants before these
 migrations happened?

 Louiqa




 --
 *Amila Maharachchi*
 Technical Lead
 Member, Management Committee - Cloud  Platform TG
 WSO2, Inc.; http://wso2.com

 Blog: http://maharachchi.blogspot.com
 Mobile: +94719371446




 --
 Regards

 Kasun Perera




 --
 *Amila Maharachchi*
 Technical Lead
 Member, Management Committee - Cloud  Platform TG
 WSO2, Inc.; http://wso2.com

 Blog: http://maharachchi.blogspot.com
 Mobile: +94719371446




 --
 Regards

 Kasun Perera




-- 
Thanks,
Shariq.
Phone: +94 777 202 225
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Stratos problem?

2013-02-10 Thread Muhammed Shariq
On Mon, Feb 11, 2013 at 11:24 AM, Kasun Perera kas...@opensource.lk wrote:

 Hi Shariq

 Thanks for pointing the DB explorer, and I'll use Firefox.

 Here's the exception that I'm getting. http://paste.org/61234

 As I mentioned previously it runs fine in my local wso2stratos-as-1.5.2,
 by connecting to the live-database. So debugging doesn't help me to find
 any error.


The issue you are seeing is because we have enabled Security Manager in our
setup. Security Manager prevents tenant code from doing privileged
operations such as class loading, writing to the file system etc. In your
code, it seems ConnectionPool.getConnection() methods is causing the
security exception ..

I have attached a sample webapp here with that is using RSS .. can you
use BasicDataSource approach as seen in the DBManager.java class and try ..
this should get rid of the security exception you are seeing ..


 Here is our app, may be you can try it in testing tenant-

 https://docs.google.com/file/d/0B5A0W5SUykQqSHpJTnM0TWxUWE0/edit?usp=sharing

 Thanks





 On Mon, Feb 11, 2013 at 10:39 AM, Muhammed Shariq sha...@wso2.com wrote:

 Hi,

 On Mon, Feb 11, 2013 at 9:18 AM, Kasun Perera kas...@opensource.lkwrote:

 H Amila

 I have activated the the Storage Server, and now I can see the list of
 databases.
 But when I click on manage link on a perticuler database, it direct me
 to the Attach database users page.
  From my previous experience this should direct me to the page where I
 can login to the database and run SQL queries?
 I tried to create a new database but the result was same as above
 mentioned


 The DB explorer is in the Data Services Server .. you can find it under
 Tools - Database Explorer in the Data Services Server and execute your
 queries ...


 The exception occurs when trying to login for the webapp -- I think
 this is still a problem of database connectivity ?Can you suggest any work
 around?


 Can you send us any exceptions you are seeing so we can further
 investigate ..?


 BTW- Sometimes I'm experiencing some weird behavior on stratoes live
 It gives me Authentication Failure when I'm trying to login for Data
 Service Server and Storage server
 When I click some link instead of going to that page it start
 downloading the page. e.g when I click upload web application it start
 downloading the upload.jsp page.


 The pages being downloaded is an issue we also experience in Google
 Chrome .. you can use Firefox for the moment and it should work fine .


 Thanks


 On Sun, Feb 10, 2013 at 1:19 PM, Amila Maha Arachchi ami...@wso2.comwrote:

 Hi Kasun,

 On Sun, Feb 10, 2013 at 12:22 PM, Kasun Perera kas...@opensource.lkwrote:



 On Sun, Feb 10, 2013 at 10:55 AM, Amila Maha Arachchi ami...@wso2.com
  wrote:

  When we access your webapp, we can see it loading fine the styles.


 Yes this is due to changes I did on Friday!
 We had common JSP segment files header.jspf footer.jspf and
 I merged them with the login page on Friday in-order to see whether it
 works. So basically login was loading with fine styles since Friday.

 But I still can't see our MySql databases inside the Data Service
 Server interface. Is this same for your testing tenants?  I have another
 testing tenant and situation is same; I can see the databases there too.


 Yes, this is the expected behaviour. Your database will be found in
 https://storage.stratoslive.wso2.com (Our new storage server product).
 So, if you login to your tenant and go to above URL, you will see it under
 the databases section (this was earlier included in Data Service Server and
 now it is removed from it and included in Storage Server).

 *Note:

 You might not be able to login to storage server in your first attempt.
 First, you need to go to Stratos Manager (https://stratoslive.wso2.com)
 - Configure - Services. There you will see the available services and
 then you need to activate the Storage Server for your tenant. After that
 you will be able to login to it (this is because this is a new addition to
 our product stack). *

 I have tested this for my personal apps which were using old databases.
 I'll try your app as well.


 One other thing- Please upload our .war file to your testing tenant
 and see whether it works

 https://docs.google.com/file/d/0B5A0W5SUykQqY0luNVpGSi1vTVU/edit?usp=sharing

 Thanks




 Most probably your app is trying some privileged operations in
 StratosLive. We'll work with Kasun on resolving them too. Most probably
 there will need a little code change I guess. We'll work on this on 
 Monday.

 Regards,
 Amila.


 On Sun, Feb 10, 2013 at 9:26 AM, Louiqa Raschid 
 lou...@umiacs.umd.edu wrote:


  Hi,
 Sorry about the late response. Yes I did verify with an old tenant
 of mine too after Prabath confirmed that the migration fix was 
 complete ..
 now the DB user migration issue is fixed ..
 Thanks Prabath for looking into it :)


 Our app is still not working but this is probably because Kasun
 needs to
 do some post-migration work

Re: [Dev] Stratos problem?

2013-02-09 Thread Muhammed Shariq
Hi,

Sorry about the late response. Yes I did verify with an old tenant of mine
too after Prabath confirmed that the migration fix was complete .. now the
DB user migration issue is fixed .. Thanks Prabath for looking into it :)

On Sat, Feb 9, 2013 at 10:36 PM, Amila Maharachchi ami...@wso2.com wrote:

 Thanks Prabath.

 Kasun, we'll further verify this on Monday. We'll check your app and some
 other apps and let you know.

 Sent from my iPad

 On Feb 9, 2013, at 10:32 PM, Prabath Abeysekera praba...@wso2.com wrote:

 Hi,

 On Sat, Feb 9, 2013 at 10:20 PM, Amila Maharachchi ami...@wso2.comwrote:

 Yes, Shariq and Prabath is working on fixing this. We are treating this
 as a Level1 issue and working on it. Prabath, can you please provide an
 update on this?


 The is already done and communicated to Shariq. Now it should be possible
 to connect to the existing user created databases with appropriate
 credentials. Please let us know if you run into any further issues on
 database connectivity.



 Sent from my iPad

 On Feb 9, 2013, at 7:44 PM, Kasun Perera kas...@opensource.lk wrote:



 On Sat, Feb 9, 2013 at 8:28 AM, Sanjiva Weerawarana 
 sanj...@opensource.lk wrote:

 Amila any news about this? What is the problem?


 Shariq was looking on to this lately. From the info that I have received
 from him, there had been a DB migration from MySql 5.1 to 5.5 and user
 permissions have not been migrated properly.

 Thanks



 This is a blocker for Karsha project.

 Sanjiva.


 On Mon, Feb 4, 2013 at 4:09 PM, Amila Maha Arachchi ami...@wso2.comwrote:

 Hi Kasun,

 Our storage server was unresponsive and we have brought it back now.
 Please check whether your database is visible there. We'll further look
 into your webapp issues.

 Regards,
 AmilaM.


 On Mon, Feb 4, 2013 at 2:47 PM, Amila Maha Arachchi ami...@wso2.comwrote:

 Hi Kasun,

 Thanks for providing the requested info. I'll look into this and
 provide an update to you.

 Regards,
 Amila.


 On Mon, Feb 4, 2013 at 1:59 PM, Kasun Perera kas...@opensource.lkwrote:

 Hi Amila

  These are the info. related to our application.

 1. Your tenant domain


 our tenant domain is -karsha.opensource.lk


 2. What is the web application you have deployed in AppServer


 We were having  jsp/servelet web applications (they use external
 libraries like apache-lucene, stanford-parser etc).
 The web applications were connected to the MySql database, created in
 the data service server. (connecting through url = jdbc:mysql://
 rss1.stratoslive.wso2.com/karshaannotate_2_karsha_opensource_lk )

 3. Nature of your web application and what are the failures you see
 when accessing it.


 It allows users to login, upload PDF documents to the database, Get
 uploaded documents markup and annotate the text in those documents,
 calculate similarity of documents using lucene.

 Failures
 1)
 This is the URL to one of the application.
 http://appserver.stratoslive.**wso2.com/t/karsha.opensource.**
 lk/webapps/KarshaAnnotate/**loginhttp://appserver.stratoslive.wso2.com/t/karsha.opensource.lk/webapps/KarshaAnnotate/login
 username/passwd-admin/admin

 The UI's were gone and it simply displays the text boxes and button.
 When you login it displays the error massage Resource not available

 2) Instead of Data Service Server, the new stratoes interface
 displays Data Services and Storage Server Services.

  I hope our previous mysql database should be in the  Storage Server
 Services  but I can't login to the this server it displays this
 error page

 No data received
 Unable to load the webpage because the server sent no data.
 Here are some suggestions:
 Reload this webpage later.
 Error 324 (net::ERR_EMPTY_RESPONSE): The server closed the connection
 without sending any data.

 I can access the stratoes database locally.

 Please let me know if you need further info.

 Thanks


 I'll look into this once I get the above information.

 Regards,
 Amila.

 On Mon, Feb 4, 2013 at 9:08 AM, Kasun Perera 
 kas...@opensource.lkwrote:



 On Mon, Feb 4, 2013 at 7:18 AM, Louiqa Raschid 
 lou...@umiacs.umd.edu wrote:


 I tried to access the service on Sunday night February 3.
 Got this error.

 No data received
 Unable to load the webpage because the server sent no data.
 Here are some suggestions:
 Reload this webpage later.
 Error 324 (net::ERR_EMPTY_RESPONSE): The server closed the
 connection without sending any data.


 Yes, I'm getting this error too on stratoes live app server, I cant
 access data service server also. Our web applications running on 
 stratoes
 live are corrupted and don't work properly now.

 I can see there are some changes to stratoes live interfaces, there
 was a maintenance to server recently if i'm right? May be this caused 
 the
 problems that we are experiencing?

 Coping the the wso2-dev.

 --
 Regards

 Kasun Perera

 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev




 --
 *Amila 

Re: [Dev] Stratos problem?

2013-02-05 Thread Muhammed Shariq
Hi Kasun,

I am looking into the issue now .. are you doing any modifications to the
webapp, deploying / deleting the app right now .. ?! It would be great if
you could deploy a stable version of the app or share the app with us so we
could test it under your tenant ..

On Wed, Feb 6, 2013 at 10:07 AM, Kasun Perera kas...@opensource.lk wrote:

 Hi Amila

 On Wed, Feb 6, 2013 at 9:19 AM, Amila Maha Arachchi ami...@wso2.comwrote:

 Hi Kasun,

 Sorry for the late reply. Database should appear in WSO2 Storage 
 Serverhttps://storage.stratoslive.wso2.com
 .


 Well, I cant see the Storage Server on the Cloud Services list now, here
 is username and password to tenent
 Username- kas...@karsha.opensource.lk
 passwd- Haknrr4k


 Regarding your webapplication, can you try removing the existing app and
 deploying a new app again?


 I did upload the webapp again. It but shows the following error massage,
 (Web app works fine with my both local tomcat and statoes servers) . Not
 sure what to do?

 type Status report

 message /t/karsha.opensource.lk/webapps/KarshaAnnotate/

 description The requested resource (/t/
 karsha.opensource.lk/webapps/KarshaAnnotate/) is not available.


 Thanks





 On Tue, Feb 5, 2013 at 10:06 AM, Kasun Perera kas...@opensource.lkwrote:

  Hi  Amila

 On Mon, Feb 4, 2013 at 4:09 PM, Amila Maha Arachchi ami...@wso2.comwrote:

 Our storage server was unresponsive and we have brought it back now.
 Please check whether your database is visible there. We'll further look
 into your webapp issues.


 On Data Services I can't see the databases yet.

 Did you find any reason why webapp is not working?
 If this happened only to our tenent, may be I should upload a new .WAR
 file of the web application and see whether it works ?

 Thanks

 --
 Regards

 Kasun Perera




 --
 *Amila Maharachchi*
 Technical Lead
 Member, Management Committee - Cloud  Platform TG
 WSO2, Inc.; http://wso2.com

 Blog: http://maharachchi.blogspot.com
 Mobile: +94719371446




 --
 Regards

 Kasun Perera

 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev




-- 
Thanks,
Shariq.
Phone: +94 777 202 225
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Bamboo-Build] WSO2 Carbon 4.0.x Platform 4.0.6 #130 has FAILED. Change made by buddhikac.

2013-01-27 Thread Muhammed Shariq
Hi Maheshika,

Again the build is failing because it cannot update .. it seems the working
copy is locked .. can we stop any plans that in progress and clean up the
working directory manually and try running bamboo .. ?! Wouldn't be a bad
idea to always clean before checking out ..

On Mon, Jan 28, 2013 at 7:39 AM, Bamboo cbuil...@wso2.org wrote:

  [image: Failed]  WSO2 Carbon 
 4.0.xhttp://wso2.org/bamboo/browse/WCB001/› Platform
 4.0.6 http://wso2.org/bamboo/browse/WCB001-PLA006/ › 
 #130http://wso2.org/bamboo/browse/WCB001-PLA006-130/
 failed

 Changes by buddhikac http://wso2.org/bamboo/browse/author/buddhikac

 No failed tests found, a possible compilation error.
Responsible No one is responsible for this build.
Failing Jobs http://wso2.org/bamboo/browse/WCB001-PLA006-130/ Job
 Duration Tests[image: Failed]  Default 
 Jobhttp://wso2.org/bamboo/browse/WCB001-PLA006-JOB1-130/ (Default
 Stage)  Unknown  No tests found  
 Logshttp://wso2.org/bamboo/browse/WCB001-PLA006-JOB1-130/log|
 Artifacts http://wso2.org/bamboo/browse/WCB001-PLA006-JOB1-130/artifact 
 Code
 Changes http://wso2.org/bamboo/browse/WCB001-PLA006-130/commit/  View
 full change detailshttp://wso2.org/bamboo/browse/WCB001-PLA006-130/commit/
 buddhikac http://wso2.org/bamboo/browse/author/buddhikac
 Moving data bridge receiver thrift 4.0.6 to 4.0.7.
  154011 View Online http://wso2.org/bamboo/browse/WCB001-PLA006-130
 | Add 
 Commentshttp://wso2.org/bamboo/browse/WCB001-PLA006-130?commentMode=true

 This message was sent by Atlassian Bamboo http://wso2.org/bamboo.

 If you wish to stop receiving these emails edit your user 
 profilehttp://wso2.org/bamboo/profile/userNotifications.actionor notify
 your administrator http://wso2.org/bamboo/viewAdministrators.action.

 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev




-- 
Thanks,
Shariq.
Phone: +94 777 202 225
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Bamboo-Build] WSO2 Carbon 4.0.x Platform 4.0.6 #86 has FAILED. Change made by 11 authors.

2013-01-22 Thread Muhammed Shariq
Hi,

Checking this build log as well as some old once, the building is failing
while checking out .. do we need to check out all the time .. shouldn't
updating be sufficient .. ?! It says *Working directory is empty*, looks
like some issue in config or ways its setup .. full log is at [1]

imple 22-Jan-2013 02:21:01 Working directory
'/home/bamboo/Bamboo-3.4/source-repository/build-dir/WCB001-PLA006-JOB1' is
empty. Checking out SVN URL '
https://svn.wso2.org/repos/wso2/carbon/platform/branches/4.0.0'

error   22-Jan-2013 03:43:49Error occurred while running Task 'Checkout
Default Repository(1)'. This build will fail. Caused by:
error   22-Jan-2013 03:43:49java.lang.RuntimeException:
com.atlassian.bamboo.repository.RepositoryException: Failed to
checkout source code to revision '153776' for
https://svn.wso2.org/repos/wso2/carbon/platform/branches/4.0.0
error   22-Jan-2013 03:43:49at
com.atlassian.bamboo.executor.RetryingTaskExecutor.rerun(RetryingTaskExecutor.java:132)
error   22-Jan-2013 03:43:49at
com.atlassian.bamboo.executor.RetryingTaskExecutor.runTask(RetryingTaskExecutor.java:88)
error   22-Jan-2013 03:43:49at
com.atlassian.bamboo.executor.RetryingTaskExecutor.retry(RetryingTaskExecutor.java:191)
error   22-Jan-2013 03:43:49at
com.atlassian.bamboo.executor.RetryingTaskExecutor.retry(RetryingTaskExecutor.java:176)
error   22-Jan-2013 03:43:49at
com.atlassian.bamboo.plugins.vcs.task.VcsCheckoutTask.execute(VcsCheckoutTask.java:109)
error   22-Jan-2013 03:43:49at
com.atlassian.bamboo.task.TaskExecutorImpl.executeTasks(TaskExecutorImpl.java:180)
error   22-Jan-2013 03:43:49at
com.atlassian.bamboo.task.TaskExecutorImpl.executePreparationTasks(TaskExecutorImpl.java:68)
error   22-Jan-2013 03:43:49at
com.atlassian.bamboo.build.pipeline.tasks.PrepareBuildTask.call(PrepareBuildTask.java:68)
error   22-Jan-2013 03:43:49at
com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent.build(DefaultBuildAgent.java:206)
error   22-Jan-2013 03:43:49at
com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl.waitAndPerformBuild(BuildAgentControllerImpl.java:103)
error   22-Jan-2013 03:43:49at
com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent$1.run(DefaultBuildAgent.java:111)
error   22-Jan-2013 03:43:49at
com.atlassian.bamboo.build.pipeline.concurrent.NamedThreadFactory$2.run(NamedThreadFactory.java:52)
error   22-Jan-2013 03:43:49at java.lang.Thread.run(Thread.java:662)
error   22-Jan-2013 03:43:49Caused by:
com.atlassian.bamboo.repository.RepositoryException: Failed to
checkout source code to revision '153776' for
https://svn.wso2.org/repos/wso2/carbon/platform/branches/4.0.0
error   22-Jan-2013 03:43:49at
com.atlassian.bamboo.repository.svn.SvnRepository.checkout(SvnRepository.java:1156)
error   22-Jan-2013 03:43:49at
com.atlassian.bamboo.repository.svn.SvnRepository.checkout(SvnRepository.java:1178)
error   22-Jan-2013 03:43:49at
com.atlassian.bamboo.repository.svn.SvnRepository.retrieveSourceCodeWithException(SvnRepository.java:708)
error   22-Jan-2013 03:43:49at
com.atlassian.bamboo.repository.svn.SvnRepository.retrieveSourceCodeWithCleanup(SvnRepository.java:642)
error   22-Jan-2013 03:43:49at
com.atlassian.bamboo.repository.svn.SvnRepository.retrieveSourceCode(SvnRepository.java:584)
error   22-Jan-2013 03:43:49at
com.atlassian.bamboo.plugins.vcs.task.VcsCheckoutTask.fillWorkingDirFromVcs(VcsCheckoutTask.java:180)
error   22-Jan-2013 03:43:49at
com.atlassian.bamboo.plugins.vcs.task.VcsCheckoutTask.access$100(VcsCheckoutTask.java:46)
error   22-Jan-2013 03:43:49at
com.atlassian.bamboo.plugins.vcs.task.VcsCheckoutTask$1.call(VcsCheckoutTask.java:114)
error   22-Jan-2013 03:43:49at
com.atlassian.bamboo.plugins.vcs.task.VcsCheckoutTask$1.call(VcsCheckoutTask.java:110)
error   22-Jan-2013 03:43:49at
com.atlassian.bamboo.executor.RetryingTaskExecutor.rerun(RetryingTaskExecutor.java:108)
error   22-Jan-2013 03:43:49... 12 more
error   22-Jan-2013 03:43:49Caused by:
com.atlassian.bamboo.repository.svn.ExternalsLockException: svn:
E17: URL 
'https://svn.wso2.org/repos/wso2/carbon/kernel/trunk/distribution/kernel/carbon-home/repository/resources'
at revision 153,837 doesn't exist
error   22-Jan-2013 03:43:49at
com.atlassian.bamboo.repository.svn.UpdateEventHandler.handleEvent(UpdateEventHandler.java:87)
error   22-Jan-2013 03:43:49at
org.tmatesoft.svn.core.internal.wc2.SvnOperationRunner.handleEvent(SvnOperationRunner.java:57)
error   22-Jan-2013 03:43:49at
org.tmatesoft.svn.core.internal.wc2.SvnOperationRunner.handleEvent(SvnOperationRunner.java:62)
error   22-Jan-2013 03:43:49at

Re: [Dev] [Bamboo-Build] WSO2 Carbon 4.0.x Platform 4.0.6 #86 has FAILED. Change made by 11 authors.

2013-01-22 Thread Muhammed Shariq
On Wed, Jan 23, 2013 at 8:05 AM, Maheshika Goonetilleke
mahesh...@wso2.comwrote:

 Hi Shariq

 Yes, Updating is sufficient. That is how the plans were configured prior
 to the build failures.


Well I feel the correct model should be to update and build .. if there are
failures in that model we should try to investigate and fix those .. can
you recall what the issues were ?!


 This could be due to *unavailability of disk space*, therefore I have
 deleted the old artifacts  working directory in the bamboo machine for
 both the builds.


Deleting is only a temporary measure, disk space is going to be an issue
every once in a while .. plus checking out the entire branch each time is
going to take forever ..!





 On Tue, Jan 22, 2013 at 6:10 PM, Muhammed Shariq sha...@wso2.com wrote:

 Hi,

 Checking this build log as well as some old once, the building is failing
 while checking out .. do we need to check out all the time .. shouldn't
 updating be sufficient .. ?! It says *Working directory is empty*, looks
 like some issue in config or ways its setup .. full log is at [1]

 imple 22-Jan-2013 02:21:01 Working directory
 '/home/bamboo/Bamboo-3.4/source-repository/build-dir/WCB001-PLA006-JOB1' is
 empty. Checking out SVN URL '
 https://svn.wso2.org/repos/wso2/carbon/platform/branches/4.0.0'

 error22-Jan-2013 03:43:49Error occurred while running Task 
 'Checkout Default Repository(1)'. This build will fail. Caused by:
 error22-Jan-2013 03:43:49java.lang.RuntimeException: 
 com.atlassian.bamboo.repository.RepositoryException: Failed to checkout 
 source code to revision '153776' for 
 https://svn.wso2.org/repos/wso2/carbon/platform/branches/4.0.0
 error22-Jan-2013 03:43:49at 
 com.atlassian.bamboo.executor.RetryingTaskExecutor.rerun(RetryingTaskExecutor.java:132)
 error22-Jan-2013 03:43:49at 
 com.atlassian.bamboo.executor.RetryingTaskExecutor.runTask(RetryingTaskExecutor.java:88)
 error22-Jan-2013 03:43:49at 
 com.atlassian.bamboo.executor.RetryingTaskExecutor.retry(RetryingTaskExecutor.java:191)
 error22-Jan-2013 03:43:49at 
 com.atlassian.bamboo.executor.RetryingTaskExecutor.retry(RetryingTaskExecutor.java:176)
 error22-Jan-2013 03:43:49at 
 com.atlassian.bamboo.plugins.vcs.task.VcsCheckoutTask.execute(VcsCheckoutTask.java:109)
 error22-Jan-2013 03:43:49at 
 com.atlassian.bamboo.task.TaskExecutorImpl.executeTasks(TaskExecutorImpl.java:180)
 error22-Jan-2013 03:43:49at 
 com.atlassian.bamboo.task.TaskExecutorImpl.executePreparationTasks(TaskExecutorImpl.java:68)
 error22-Jan-2013 03:43:49at 
 com.atlassian.bamboo.build.pipeline.tasks.PrepareBuildTask.call(PrepareBuildTask.java:68)
 error22-Jan-2013 03:43:49at 
 com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent.build(DefaultBuildAgent.java:206)
 error22-Jan-2013 03:43:49at 
 com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl.waitAndPerformBuild(BuildAgentControllerImpl.java:103)
 error22-Jan-2013 03:43:49at 
 com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent$1.run(DefaultBuildAgent.java:111)
 error22-Jan-2013 03:43:49at 
 com.atlassian.bamboo.build.pipeline.concurrent.NamedThreadFactory$2.run(NamedThreadFactory.java:52)
 error22-Jan-2013 03:43:49at 
 java.lang.Thread.run(Thread.java:662)
 error22-Jan-2013 03:43:49Caused by: 
 com.atlassian.bamboo.repository.RepositoryException: Failed to checkout 
 source code to revision '153776' for 
 https://svn.wso2.org/repos/wso2/carbon/platform/branches/4.0.0
 error22-Jan-2013 03:43:49at 
 com.atlassian.bamboo.repository.svn.SvnRepository.checkout(SvnRepository.java:1156)
 error22-Jan-2013 03:43:49at 
 com.atlassian.bamboo.repository.svn.SvnRepository.checkout(SvnRepository.java:1178)
 error22-Jan-2013 03:43:49at 
 com.atlassian.bamboo.repository.svn.SvnRepository.retrieveSourceCodeWithException(SvnRepository.java:708)
 error22-Jan-2013 03:43:49at 
 com.atlassian.bamboo.repository.svn.SvnRepository.retrieveSourceCodeWithCleanup(SvnRepository.java:642)
 error22-Jan-2013 03:43:49at 
 com.atlassian.bamboo.repository.svn.SvnRepository.retrieveSourceCode(SvnRepository.java:584)
 error22-Jan-2013 03:43:49at 
 com.atlassian.bamboo.plugins.vcs.task.VcsCheckoutTask.fillWorkingDirFromVcs(VcsCheckoutTask.java:180)
 error22-Jan-2013 03:43:49at 
 com.atlassian.bamboo.plugins.vcs.task.VcsCheckoutTask.access$100(VcsCheckoutTask.java:46)
 error22-Jan-2013 03:43:49at 
 com.atlassian.bamboo.plugins.vcs.task.VcsCheckoutTask$1.call(VcsCheckoutTask.java:114)
 error22-Jan-2013 03:43:49at 
 com.atlassian.bamboo.plugins.vcs.task.VcsCheckoutTask$1.call

Re: [Dev] [Stratos2] Can two tenants use same cartridge alias?

2013-01-22 Thread Muhammed Shariq
On Wed, Jan 23, 2013 at 10:26 AM, Lakmal Warusawithana lak...@wso2.comwrote:

 This is NOT a limitation. Its the design. Two users cant use same email
 address!!!. Right. Think like that. So error message should guide user that
 alias already taken by another tenant.  Alias is the unique name given
 for particular user. Don't forget design decisions.


I raised the same question a few days ago .. so its a design decision then
no issue :) .. But I feel is we can qualify the alias to include the tenant
domain, then this issue wouldn't arise (cz a tenant is an isolated space
and within his space the alias is not used!), but then again the url is
going to be ugly .. so better to update the docs to reflect the behavior
...



 On Wed, Jan 23, 2013 at 10:14 AM, Nirmal Fernando nir...@wso2.com wrote:




 On Wed, Jan 23, 2013 at 9:59 AM, Lahiru Sandaruwan lahi...@wso2.comwrote:




 On Wed, Jan 23, 2013 at 9:27 AM, Nirmal Fernando nir...@wso2.comwrote:




 On Wed, Jan 23, 2013 at 9:05 AM, Lahiru Sandaruwan lahi...@wso2.comwrote:




 On Wed, Jan 23, 2013 at 8:44 AM, Nirmal Fernando nir...@wso2.comwrote:


 On Jan 23, 2013 8:28 AM, Lahiru Sandaruwan lahi...@wso2.com
 wrote:
 
 
 
 
  On Wed, Jan 23, 2013 at 5:56 AM, Ramith Jayasinghe ram...@wso2.com
 wrote:
 
  Hi,
   is the $subject possible?
   Cli tool gave me an error while trying to use same alias from two
 instances:
   for sample (from CLI tool)
 subscribe php sampleapp2
 
  Error message thrown at CLI command:
 
  Cartridge subscribe failure
  Error while subscribing the cartridge php
 
  Can not. because,
  Two tenants cannot use same alias for same cartridge type(PHP).

 Out of my mind, I don't see a reason for this. AFAIR our git repo url
 template allows this. What prevents us allowing this?

 We create an unique clustering domain with the alias.
  e.g. alias is  wordpress. Then ELB access url will be 
 wordpress.php.slive.com.

 So two tenants cannot have same.


 I see an usability issue here. Cause if I'm the tenant, I've no idea
 about the aliases that other tenants have used on a cartridge.
 And here we have a typical user in Ramith, who's finding it difficult
 to figure out an alias for his tenant.

 Agree. also if a tenant can use same alias for different cartridge
 types.
 eg. wso2 can get wso2.php.slive.com and wso2.jetty.slive.com


 I think with this we can live with, since the user knows the aliases he
 used.


 But we have limitations.

 Thanks.



 Thanks.

  Also a tenant cannot use same alias for different cartridges of
 that tenant.
  That means you only can use the same alias to different cartridge
 types of different tenants.
 
  BTW. We have improved the cli error messages now. You will get the
 update.
 
  Thanks.
 
 
 
 
  --
  Ramith Jayasinghe
  Technical Lead
  WSO2 Inc., http://wso2.com
  lean.enterprise.middleware
 
  E: ram...@wso2.com
  P: +1 (469) 583-2035
 
 
  ___
  Dev mailing list
  Dev@wso2.org
  http://wso2.org/cgi-bin/mailman/listinfo/dev
 
 
 
 
  --
  --
  Lahiru Sandaruwan
  Software Engineer,
  Cloud Team,
 
  WSO2 Inc., http://wso2.com
  lean.enterprise.middleware
 
  email: lahi...@wso2.com cell: (+94) 773 325 954
  blog: http://lahiruwrites.blogspot.com/
  twitter: http://twitter.com/lahirus
  linked-in: http://lk.linkedin.com/pub/lahiru-sandaruwan/16/153/146
 
 
  ___
  Dev mailing list
  Dev@wso2.org
  http://wso2.org/cgi-bin/mailman/listinfo/dev
 




 --
 --
 Lahiru Sandaruwan
 Software Engineer,
 Cloud Team,
 WSO2 Inc., http://wso2.com
 lean.enterprise.middleware

 email: lahi...@wso2.com cell: (+94) 773 325 954
 blog: http://lahiruwrites.blogspot.com/
 twitter: http://twitter.com/lahirus
 linked-in: http://lk.linkedin.com/pub/lahiru-sandaruwan/16/153/146
 http://wso2con.com/




 --

 Thanks  regards,
 Nirmal

 Software Engineer- Platform Technologies Team, WSO2 Inc.
 Mobile: +94715779733
 Blog: http://nirmalfdo.blogspot.com/

 http://nirmalfdo.blogspot.com/




 --
 --
 Lahiru Sandaruwan
 Software Engineer,
 Cloud Team,
 WSO2 Inc., http://wso2.com
 lean.enterprise.middleware

 email: lahi...@wso2.com cell: (+94) 773 325 954
 blog: http://lahiruwrites.blogspot.com/
 twitter: http://twitter.com/lahirus
 linked-in: http://lk.linkedin.com/pub/lahiru-sandaruwan/16/153/146
 http://wso2con.com/




 --

 Thanks  regards,
 Nirmal

 Software Engineer- Platform Technologies Team, WSO2 Inc.
 Mobile: +94715779733
 Blog: http://nirmalfdo.blogspot.com/

 http://nirmalfdo.blogspot.com/




 --
 Lakmal Warusawithana
 Software Architect; WSO2 Inc.
 Mobile : +94714289692


 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev




-- 
Thanks,
Shariq.
Phone: +94 777 202 225
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] PrivilegedCarbonContext.getThreadLocalCarbonContext().getUsername() returns 'null'

2013-01-11 Thread Muhammed Shariq
Hi Dulanja,

Use the patch attached herewith instead .. (patch_v1.diff)

On Fri, Jan 11, 2013 at 12:34 PM, Muhammed Shariq sha...@wso2.com wrote:

 On Thu, Jan 10, 2013 at 10:25 AM, Afkham Azeez az...@wso2.com wrote:



 On Thu, Jan 10, 2013 at 10:14 AM, Muhammed Shariq sha...@wso2.comwrote:

 On Thu, Jan 10, 2013 at 10:01 AM, Afkham Azeez az...@wso2.com wrote:

 However, in cases where you are sure that the ThreadLocal CC is
 available, you must use getThreadLocalCarbonContext because that method is
 much more efficient than getCarbonContext. What I feel is, we should ensure
 that every thread contains the ThreadLocal CC, which means we will no
 longer need the getCurrentContext method. At that point, from
 getCurrentContext, we will just call getThreadLocalCarbonContext.


 This is what SInthuja did sometime ago (giving priority to the
 ThreadLocal CC), but the caused some issue as Senaka explained in his
 detailed mail .. Also I was trying to recall why I did some  changes in
 CarbonTomcatValve, and that too was fixing the same issue (username being
 null!), I fixed it by setting the username to the CC from the session, this
 also was causing a perf issue cz of the getSession() gets called for every
 request ..! Guess we need to look into the use of CC api in a bit more
 detail ..


 You fix was probably the right one. The problem should be unnecessarily
 accessing the session. Instead, what you could have done was, when someone
 called getUserName, at that point, get the session, and retrieve the
 username  set it as an attribute in the CC. In subsequent calls to the the
 same CC, you could simply return that attribute.


 Yup at the moment it getUsername() simply returns what is assigned, if its
 null it doesn't try to fetch it. Also I I guess
 getThreadLocalCarbonContext() and getCarbonContext should have the
 same behavior isn't it?! And we should be able to use the ThreadLocal CC at
 anytime .. (at the moment this is not possible, we had to revert the patch
 that gave priority to thread local CC!) ..

 What we are doing in CarbonContext.getCUrrentContext() is give priority to
 MessageContext, since message context have all the information it gets
 populated (AFAIU :)) .. ThreadLocal CC is the last option and I guess it
 doesn't have all the information (cz MessageContext  ConfigurationContext
 happens to be null) .. so in that case we should populate those null fields
 .. hope what I am saying makes sense, thought I had it figured at the time
 but it seems a lil blur again!

 However for this particular case I have prepared a patch that tried to
 fetch username from the session within MessageContext .. so again if
 MessageContext is null username is gonna be null. Please have a look and
 check if it is correct ...

 @Dulanja - can you apply the attached path to carbon.utils and use the
 ThreadLocal CC and see if your getting the correct username ?!




 Azeez

 On Wed, Jan 9, 2013 at 4:19 PM, Dimuthu Leelarathne 
 dimut...@wso2.comwrote:

 Hi Dulanja,

 It is correct to use CurrentCarbonContext instead of
 ThreadLocalCarbonContext. You can read the mail titled UserRegistry sends
 null to JDBCAuthorizationManager from archives.  Basically this is the
 code that finds you the correct  CurrentCarbonContext. So correct thing is
 to first get CarbonContext from MessageContext and if it is not available
 try the TreadLocal one.

 public static CarbonContextDataHolder getCurrentCarbonContextHolder() {
 try {
 MessageContext messageContext =
 MessageContext.getCurrentMessageContext();
 if (messageContext != null) {
 return getCurrentCarbonContextHolder(messageContext);
 } else {
 return
 getCurrentCarbonContextHolder((ConfigurationContext) null);
 }
 } catch (NullPointerException ignore) {
 // This is thrown when the message context is not
 initialized
 // So return the Threadlocal
  return getThreadLocalCarbonContextHolder();
 } catch (NoClassDefFoundError ignore) {
 // There can be situations where the CarbonContext is
 accessed, when there is no Axis2
 // library on the classpath.
 return getThreadLocalCarbonContextHolder();
 }
 }

 thanks,
 dimuthu


 On Wed, Jan 9, 2013 at 2:15 PM, Dulanja Liyanage dula...@wso2.comwrote:

 Hi,

 Appreciate if you can guide me whether it's safe/appropriate to use
 the CurrentContext rather than the ThreadLocalCarbonContext, to get the
 username and tenant domain.

 I'm not much knowledgeable about the design, but I feel using it will
 be plastering the root cause.

 Thanks,
 Dulanja

 On Wed, Jan 9, 2013 at 12:18 PM, Dulanja Liyanage 
 dula...@wso2.comwrote:

 Hi Shariq,

 I did as you suggested and now the username is available.

 What I'm not sure is how appropriate/safe this is.

 Thanks for the help.

 Regards,
 Dulanja


 On Tue, Jan 8, 2013 at 6:17 PM, Dulanja Liyanage 
 dula

Re: [Dev] PrivilegedCarbonContext.getThreadLocalCarbonContext().getUsername() returns 'null'

2013-01-10 Thread Muhammed Shariq
On Thu, Jan 10, 2013 at 10:25 AM, Afkham Azeez az...@wso2.com wrote:



 On Thu, Jan 10, 2013 at 10:14 AM, Muhammed Shariq sha...@wso2.com wrote:

 On Thu, Jan 10, 2013 at 10:01 AM, Afkham Azeez az...@wso2.com wrote:

 However, in cases where you are sure that the ThreadLocal CC is
 available, you must use getThreadLocalCarbonContext because that method is
 much more efficient than getCarbonContext. What I feel is, we should ensure
 that every thread contains the ThreadLocal CC, which means we will no
 longer need the getCurrentContext method. At that point, from
 getCurrentContext, we will just call getThreadLocalCarbonContext.


 This is what SInthuja did sometime ago (giving priority to the
 ThreadLocal CC), but the caused some issue as Senaka explained in his
 detailed mail .. Also I was trying to recall why I did some  changes in
 CarbonTomcatValve, and that too was fixing the same issue (username being
 null!), I fixed it by setting the username to the CC from the session, this
 also was causing a perf issue cz of the getSession() gets called for every
 request ..! Guess we need to look into the use of CC api in a bit more
 detail ..


 You fix was probably the right one. The problem should be unnecessarily
 accessing the session. Instead, what you could have done was, when someone
 called getUserName, at that point, get the session, and retrieve the
 username  set it as an attribute in the CC. In subsequent calls to the the
 same CC, you could simply return that attribute.


Yup at the moment it getUsername() simply returns what is assigned, if its
null it doesn't try to fetch it. Also I I guess
getThreadLocalCarbonContext() and getCarbonContext should have the
same behavior isn't it?! And we should be able to use the ThreadLocal CC at
anytime .. (at the moment this is not possible, we had to revert the patch
that gave priority to thread local CC!) ..

What we are doing in CarbonContext.getCUrrentContext() is give priority to
MessageContext, since message context have all the information it gets
populated (AFAIU :)) .. ThreadLocal CC is the last option and I guess it
doesn't have all the information (cz MessageContext  ConfigurationContext
happens to be null) .. so in that case we should populate those null fields
.. hope what I am saying makes sense, thought I had it figured at the time
but it seems a lil blur again!

However for this particular case I have prepared a patch that tried to
fetch username from the session within MessageContext .. so again if
MessageContext is null username is gonna be null. Please have a look and
check if it is correct ...

@Dulanja - can you apply the attached path to carbon.utils and use the
ThreadLocal CC and see if your getting the correct username ?!




 Azeez

 On Wed, Jan 9, 2013 at 4:19 PM, Dimuthu Leelarathne 
 dimut...@wso2.comwrote:

 Hi Dulanja,

 It is correct to use CurrentCarbonContext instead of
 ThreadLocalCarbonContext. You can read the mail titled UserRegistry sends
 null to JDBCAuthorizationManager from archives.  Basically this is the
 code that finds you the correct  CurrentCarbonContext. So correct thing is
 to first get CarbonContext from MessageContext and if it is not available
 try the TreadLocal one.

 public static CarbonContextDataHolder getCurrentCarbonContextHolder() {
 try {
 MessageContext messageContext =
 MessageContext.getCurrentMessageContext();
 if (messageContext != null) {
 return getCurrentCarbonContextHolder(messageContext);
 } else {
 return
 getCurrentCarbonContextHolder((ConfigurationContext) null);
 }
 } catch (NullPointerException ignore) {
 // This is thrown when the message context is not
 initialized
 // So return the Threadlocal
  return getThreadLocalCarbonContextHolder();
 } catch (NoClassDefFoundError ignore) {
 // There can be situations where the CarbonContext is
 accessed, when there is no Axis2
 // library on the classpath.
 return getThreadLocalCarbonContextHolder();
 }
 }

 thanks,
 dimuthu


 On Wed, Jan 9, 2013 at 2:15 PM, Dulanja Liyanage dula...@wso2.comwrote:

 Hi,

 Appreciate if you can guide me whether it's safe/appropriate to use
 the CurrentContext rather than the ThreadLocalCarbonContext, to get the
 username and tenant domain.

 I'm not much knowledgeable about the design, but I feel using it will
 be plastering the root cause.

 Thanks,
 Dulanja

 On Wed, Jan 9, 2013 at 12:18 PM, Dulanja Liyanage dula...@wso2.comwrote:

 Hi Shariq,

 I did as you suggested and now the username is available.

 What I'm not sure is how appropriate/safe this is.

 Thanks for the help.

 Regards,
 Dulanja


 On Tue, Jan 8, 2013 at 6:17 PM, Dulanja Liyanage dula...@wso2.comwrote:

 Hi Shariq,

 I will try that. Thanks!

 Dulanja


 On Tue, Jan 8, 2013 at 6:12 PM, Muhammed Shariq sha...@wso2.comwrote:

 Hi,

 This looks like

Re: [Dev] PrivilegedCarbonContext.getThreadLocalCarbonContext().getUsername() returns 'null'

2013-01-09 Thread Muhammed Shariq
On Thu, Jan 10, 2013 at 10:01 AM, Afkham Azeez az...@wso2.com wrote:

 However, in cases where you are sure that the ThreadLocal CC is available,
 you must use getThreadLocalCarbonContext because that method is much more
 efficient than getCarbonContext. What I feel is, we should ensure that
 every thread contains the ThreadLocal CC, which means we will no longer
 need the getCurrentContext method. At that point, from getCurrentContext,
 we will just call getThreadLocalCarbonContext.


This is what SInthuja did sometime ago (giving priority to the ThreadLocal
CC), but the caused some issue as Senaka explained in his detailed mail ..
Also I was trying to recall why I did some  changes in CarbonTomcatValve,
and that too was fixing the same issue (username being null!), I fixed it
by setting the username to the CC from the session, this also was causing a
perf issue cz of the getSession() gets called for every request ..! Guess
we need to look into the use of CC api in a bit more detail ..


 Azeez

 On Wed, Jan 9, 2013 at 4:19 PM, Dimuthu Leelarathne dimut...@wso2.comwrote:

 Hi Dulanja,

 It is correct to use CurrentCarbonContext instead of
 ThreadLocalCarbonContext. You can read the mail titled UserRegistry sends
 null to JDBCAuthorizationManager from archives.  Basically this is the
 code that finds you the correct  CurrentCarbonContext. So correct thing is
 to first get CarbonContext from MessageContext and if it is not available
 try the TreadLocal one.

 public static CarbonContextDataHolder getCurrentCarbonContextHolder() {
 try {
 MessageContext messageContext =
 MessageContext.getCurrentMessageContext();
 if (messageContext != null) {
 return getCurrentCarbonContextHolder(messageContext);
 } else {
 return
 getCurrentCarbonContextHolder((ConfigurationContext) null);
 }
 } catch (NullPointerException ignore) {
 // This is thrown when the message context is not initialized
 // So return the Threadlocal
  return getThreadLocalCarbonContextHolder();
 } catch (NoClassDefFoundError ignore) {
 // There can be situations where the CarbonContext is
 accessed, when there is no Axis2
 // library on the classpath.
 return getThreadLocalCarbonContextHolder();
 }
 }

 thanks,
 dimuthu


 On Wed, Jan 9, 2013 at 2:15 PM, Dulanja Liyanage dula...@wso2.comwrote:

 Hi,

 Appreciate if you can guide me whether it's safe/appropriate to use
 the CurrentContext rather than the ThreadLocalCarbonContext, to get the
 username and tenant domain.

 I'm not much knowledgeable about the design, but I feel using it will be
 plastering the root cause.

 Thanks,
 Dulanja

 On Wed, Jan 9, 2013 at 12:18 PM, Dulanja Liyanage dula...@wso2.comwrote:

 Hi Shariq,

 I did as you suggested and now the username is available.

 What I'm not sure is how appropriate/safe this is.

 Thanks for the help.

 Regards,
 Dulanja


 On Tue, Jan 8, 2013 at 6:17 PM, Dulanja Liyanage dula...@wso2.comwrote:

 Hi Shariq,

 I will try that. Thanks!

 Dulanja


 On Tue, Jan 8, 2013 at 6:12 PM, Muhammed Shariq sha...@wso2.comwrote:

 Hi,

 This looks like an issue I encountered sometime back. We had to
 revert the fixes I did in TomcatValve cz it was causing some other issue 
 ..
 Can you try CarbonContext.getCurrentContext.getUsername() and see what
 happens .. AFAIR its getUsername simple does a return .. we should fix it
 to check if username is null and if so set it properly .. usually that is
 the behavior but there are some  edge cases it seem ...

 On Tue, Jan 8, 2013 at 3:53 PM, Dulanja Liyanage dula...@wso2.comwrote:

 Hi,

 I'm testing IS 4.1.0 running on Carbon 4.0.6. While debugging an
 issue, I encountered the $subject.

 I logged in as 'admin', so, the username should return as such. But
 it returns 'null'.

 However the
 PrivilegedCarbonContext.getThreadLocalCarbonContext().getTenantDomain()
 returns 'carbon.super' as expected.

 I'm still debugging this and trying to figure out how CarbonContext
 works in threads. If someone is already aware of a reason/solution for 
 this
 it will save time. :)

 Thanks!
 Dulanja

 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev




 --
 Thanks,
 Shariq.
 Phone: +94 777 202 225





 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev



 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev




 --
 *Afkham Azeez*
 Director of Architecture; WSO2, Inc.; http://wso2.com
 Member; Apache Software Foundation; http://www.apache.org/
 * http://www.apache.org/**
 email: **az...@wso2.com* az...@wso2.com* cell: +94 77 3320919
 blog: **http://blog.afkham.org* http://blog.afkham.org*
 twitter: **http://twitter.com

Re: [Dev] PrivilegedCarbonContext.getThreadLocalCarbonContext().getUsername() returns 'null'

2013-01-08 Thread Muhammed Shariq
Hi,

This looks like an issue I encountered sometime back. We had to revert the
fixes I did in TomcatValve cz it was causing some other issue .. Can you
try CarbonContext.getCurrentContext.getUsername() and see what happens ..
AFAIR its getUsername simple does a return .. we should fix it to check if
username is null and if so set it properly .. usually that is the behavior
but there are some  edge cases it seem ...

On Tue, Jan 8, 2013 at 3:53 PM, Dulanja Liyanage dula...@wso2.com wrote:

 Hi,

 I'm testing IS 4.1.0 running on Carbon 4.0.6. While debugging an issue, I
 encountered the $subject.

 I logged in as 'admin', so, the username should return as such. But it
 returns 'null'.

 However the
 PrivilegedCarbonContext.getThreadLocalCarbonContext().getTenantDomain()
 returns 'carbon.super' as expected.

 I'm still debugging this and trying to figure out how CarbonContext works
 in threads. If someone is already aware of a reason/solution for this it
 will save time. :)

 Thanks!
 Dulanja

 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev




-- 
Thanks,
Shariq.
Phone: +94 777 202 225
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Could not find artifact org.wso2.carbon:org.wso2.carbon.identity.sts.store:jar:4.0.5 in wso2-nexus

2013-01-02 Thread Muhammed Shariq
Hi,

I checked in the patch release pom and org.wso2.carbon.identity.sts.store
is not listed in the patch-release pom, so its not deployed in the repo ..

[1] -
https://svn.wso2.org/repos/wso2/carbon/platform/branches/4.0.0/patch-releases/4.0.5/components/pom.xml

On Thu, Jan 3, 2013 at 8:36 AM, Janaka Ranabahu jan...@wso2.com wrote:

 org.wso2.carbon.identity.sts.store




-- 
Thanks,
Shariq.
Phone: +94 777 202 225
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] WSO2 Stratos 1.6.0 Released!

2012-12-20 Thread Muhammed Shariq
*WSO2 Stratos 1.6.0 Released!
*
*WSO2 Stratos team is pleased to announce the release of version 1.6.0 of
WSO2 Stratos.
*
Home page: http://wso2.com/cloud/stratos/

WSO2 Stratos is a complete cloud middleware platform for implementing an
enterprise service-oriented architecture (SOA). WSO2 Stratos is open source
and is available under Apache license. It is built on top of and extends
WSO2 Carbon, the award-winning, comprehensive, concise, lean enterprise
middleware platform.

With WSO2 Stratos, IT professionals have a fully hosted
platform-as-a-service (PaaS) for rapidly building and deploying services
and composite applications, with instant provisioning capability. WSO2
Stratos delivers on the promise of cloud computing with a complete,
enterprise middleware platform for delivering applications that can run on,
and integrate with, any combination of private clouds, public clouds and
on-premise systems. WSO2 Stratos is equipped with features for auto-scaling
and single sign-on, as well as enhanced functionality for automatic
activity monitoring, usage metering, and centralized governance and
identity management.

An open source product, WSO2 Stratos is available under the Apache Software
License (v2.0) . This includes all of the extra integration and management
functionality as well.

*New Features In This Release*

   - Service Aware Dynamic Load Balancing - Improved load balancing and
   auto-scaling.
   - Subversion backed deployment artifacts storage improvements.
   - Local transport improvements.
   - Tenant aware logging backed by WSO2 BA.
   - Ability to facilitate billing upon tenant registration.
   - Improved billing and metering backed by WSO2 BAM2.
   - Ghost deployer improvements.
   - Stratos Manager can now act as a Single Sign On (SSO) provider.


WSO2 Stratos comes with all of the WSO2 Carbon based products available as
cloud services

   - WSO2 Application Server
   - WSO2 Data Services Server
   - WSO2 Identity Server
   - WSO2 Governance Server
   - WSO2 Business Activity Monitor
   - WSO2 Business Process Server
   - WSO2 Business Rules Server
   - WSO2 Enterprise Service Bus
   - WSO2 Message Broker
   - WSO2 Complex Event Processing Server
   - WSO2 Cloud Gateway
   - WSO2 Storage Server
   - WSO2 Task Server


*Key Features*

   - Auto-scaling capabilities. WSO2 Stratos automatically adjusts the use
   of cloud resources to meet increased or decreased demand.
   - Single sign-on functionality. Users only need to sign on once to
   access all WSO2 Stratos services that they are authorized to use.
   - Enhanced automatic activity monitoring. Activity monitoring is
   available in real time, so there is no time gap between data collection and
   the availability of data for monitoring.
   - Enhanced usage metering. Metering is automated so that every operation
   by tenant users will be monitored and recorded. The metering information
   can be used for billing and for offering constrained access for certain
   services.
   - Enhanced centralized governance and identity management. All the
   resources of all Stratos services can be monitored and governed from a
   single point - from WSO2 Stratos governance. When a modification, such as
   changing a security policy, or changing the keystore, is done from a single
   place, it is immediately visible to all other services. In addition to
   that, all services share a single user store. When a user is added from a
   service, that new user can immediately access all other services available
   for the tenant.
   - Tenant aware logging. Tenants can view their logs in order to monitor
   the status of the deployed services of and applications. It is also helpful
   for debugging purposes.
   - Data-as-a-Service Data-as-a-service offers storage for tenant's
   application data. In this release of Stratos, we offer two built-in storage
   options. WSO2 RSS (Relational Storage Service)  CSS (Cassandra Storage
   Service). RSS allows creating tenant specific MySQL databases instances and
   CSS allows creating column family based storage. In addition, one can use
   other RDBMS engines to store data as well.

*Downloads*
   The Stratos local setup can be downloaded at
http://wso2.com/cloud/stratos/

*Reporting Problems*
  Issues can be reported using the public JIRA available at
https://wso2.org/jira/browse/STRATOS

*Contact us
*  WSO2 Stratos team can be contacted via the mailing list - WSO2
Developer Mailing List dev@wso2.org

*Forum*
  WSO2 participates in community support for the products using the
excellent QA site stackoverflow.com with tags WSO2, Stratos etc.

*Support*
  As a fully open source solution WSO2 Stratos does not require any
licensing fees. WSO2 offers a range of service and support options,
including evaluation support, CloudStart(SM) consulting program,
development support, and production support.

For additional support information please refer to http://wso2.com/support/

Thank you for your 

Re: [Dev] Possibly Memory Leak - Each Service Call Creating a HTTP Session

2012-12-16 Thread Muhammed Shariq
On Sun, Dec 16, 2012 at 12:30 AM, Afkham Azeez az...@wso2.com wrote:



 On Sat, Dec 15, 2012 at 6:40 PM, Muhammed Shariq sha...@wso2.com wrote:

 On Sat, Dec 15, 2012 at 6:31 PM, Afkham Azeez az...@wso2.com wrote:



 On Sat, Dec 15, 2012 at 4:40 PM, Anjana Fernando anj...@wso2.comwrote:

 Hi,

 I was doing a load test on DSS, and noticed that there is a constant
 memory growth in it, and it keeps growing with the request count. And when
 stopped, after some time, a considerable amount of memory is being freed at
 once. I profiled the code and checked by running echo service (just to make
 sure it is not a data services issue), and saw that, an HTTP session is
 created for each of the calls coming into the Carbon server. Basically this
 is happening in the CarbonContextCreatorValve (v4.0.5),
 initCarbonContext method, line 80. Basically it does a
 request.getSession(), where it will create an HTTP session, if there isn't
 one already there.


 Most probably this is a new bug introduced by Shariq's recent fix to set
 the username in the CarbonContext. Code should not unnecessarily call
 request.getSession()


 Yes I added this call to get set the username to CC as we found that the
 username was not getting set .. I'll change it to getSession(false) and
 handle the null situation ..


 If you profile, you may be able to see a drop in performance due to the
 unnecessary call to getSession(false) for each and every request. Most
 things related to populating the CarbonContext have to be deferred to the
 last moment until they are really needed, like the case of the
 GhostRegistry.


+1 .. this has been reverted .. sorry about the troubles caused ..!!



-- 
Thanks,
Shariq.
Phone: +94 777 202 225
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] UserRegistry sends null to JDBCAuthorizationManager

2012-12-16 Thread Muhammed Shariq
Hi Senaka,

Thanks for the detailed explanation .. lesson learnt - don't ever mess with
the CarbonContext! :D ... (was fun studying the code base and messing with
it nonetheless ;) .. )

On Sat, Dec 15, 2012 at 10:40 PM, Senaka Fernando sen...@wso2.com wrote:

 equence. The current sequence assumes that *null == currentCarbonContext*
 will happen at times, when the CarbonContext should not exist on the
 thread, which will then return the one on the




-- 
Thanks,
Shariq.
Phone: +94 777 202 225
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] p2-profile build failure .

2012-12-14 Thread Muhammed Shariq
[INFO]

[INFO] BUILD FAILURE
[INFO]

[INFO] Total time: 1.448s
[INFO] Finished at: Fri Dec 14 05:00:41 PST 2012
[INFO] Final Memory: 7M/119M
[INFO]

[ERROR] Failed to execute goal
org.wso2.maven:carbon-p2-plugin:1.5.1:p2-repo-gen (2-p2-repo-generation) on
project wso2carbon-feature-repository: Error occured when processing the
Feature Artifact:
org.wso2.governance:org.wso2.governance.styles.feature:${greg.version.453}:
ERROR: Could not transfer artifact
org.wso2.governance:org.wso2.governance.styles.feature:zip:${greg.version.453}
from/to wso2-nexus (http://maven.wso2.org/nexus/content/groups/wso2-public/):
IllegalArgumentException
[ERROR]
org.wso2.governance:org.wso2.governance.styles.feature:zip:${greg.version.453}
[ERROR]
[ERROR] from the specified remote repositories:
[ERROR] wso2-nexus (http://maven.wso2.org/nexus/content/groups/wso2-public/,
releases=true, snapshots=true),
[ERROR] central (http://repo.maven.apache.org/maven2, releases=true,
snapshots=false): Illegal character in path at index 111:
http://maven.wso2.org/nexus/content/groups/wso2-public/org/wso2/governance/org.wso2.governance.styles.feature/${greg.version.453}/org.wso2.governance.styles.feature-${greg.version.453}.zip
[ERROR] - [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e
switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions,
please read the following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException


-- 
Thanks,
Shariq.
Phone: +94 777 202 225
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Blocker] carbon.core-AdminServiceUtil-getSystemRegistry() returns null

2012-12-13 Thread Muhammed Shariq
On Thu, Dec 13, 2012 at 4:53 PM, Hasini Gunasinghe has...@wso2.com wrote:

 Hi,

 The deprecated method in the $subject is called when accessing OpenID page
 of IS which throws a null pointer exception.

 Any idea why the above method is returning null? This worked perfectly
 with carbon 4.0.3..?

 Inside the above method, it executes the following which is the cause
 for returning null:


 CarbonContext.getCurrentContext().getRegistry(RegistryType.SYSTEM_CONFIGURATION);


Is the tenant information in the CarbonContext correct, check what the
tenantId is .. ? Previously CC was simply returning the ST registry
regardless of the tenant, so before you would always get the ST registry.
Make sure the tenant information is correct in the CC when retrieving
registry ..


 Thanks,
 Hasini.

 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev




-- 
Thanks,
Shariq.
Phone: +94 777 202 225
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Kernel test failures in PersistenceManagerTest

2012-12-13 Thread Muhammed Shariq
Hi Dileepa,

This test is still failing in builder3

On Thu, Dec 13, 2012 at 12:09 PM, Dileepa Jayakody dile...@wso2.com wrote:

 Yes Krishantha I committed the changes to carbon.core 4.0.5 in r151291.
 Could it be because bamboo source not updated to latest for the last build?

 Thanks,
 Dileepa


 On Thu, Dec 13, 2012 at 11:39 AM, Krishantha Samaraweera 
 krishan...@wso2.com wrote:

 Hi Dileepa,

 Last bamboo kernel build[1] also failed due to following failures. Did
 you commit the fixes to branch?

 build 12-Dec-2012 21:00:49 Tests in error:

 build12-Dec-2012 21:00:49  
 testNewServiceGroupAddition(org.wso2.carbon.core.test.persistence.PersistenceManagerTest)
 build12-Dec-2012 21:00:49  
 testSetServiceGroupProperty(org.wso2.carbon.core.test.persistence.PersistenceManagerTest)
 build12-Dec-2012 21:00:49  
 testNewServiceAddition(org.wso2.carbon.core.test.persistence.PersistenceManagerTest)
 build12-Dec-2012 21:00:49  
 testServiceProperty(org.wso2.carbon.core.test.persistence.PersistenceManagerTest)
 build12-Dec-2012 21:00:49  
 testUpdateServiceGroupParameter(org.wso2.carbon.core.test.persistence.PersistenceManagerTest)
 build12-Dec-2012 21:00:49  
 testUpdateServiceParameter(org.wso2.carbon.core.test.persistence.PersistenceManagerTest)
 build12-Dec-2012 21:00:49  
 testNewModuleAddition(org.wso2.carbon.core.test.persistence.PersistenceManagerTest)
 build12-Dec-2012 21:00:49  
 testNewModuleNullVersionAddition(org.wso2.carbon.core.test.persistence.PersistenceManagerTest)
 build12-Dec-2012 21:00:49  
 testModuleParameterUpdate(org.wso2.carbon.core.test.persistence.PersistenceManagerTest)
 build12-Dec-2012 21:00:49  
 testDeleteService(org.wso2.carbon.core.test.persistence.PersistenceManagerTest)
 build12-Dec-2012 21:00:49  
 testRemoveServiceParam(org.wso2.carbon.core.test.persistence.PersistenceManagerTest)
 build12-Dec-2012 21:00:49  
 testDeleteServiceGroup(org.wso2.carbon.core.test.persistence.PersistenceManagerTest)
 build12-Dec-2012 21:00:49  
 testRemoveModule(org.wso2.carbon.core.test.persistence.PersistenceManagerTest)
 build12-Dec-2012 21:00:49  
 testengageModuleForService(org.wso2.carbon.core.test.persistence.PersistenceManagerTest)
 build12-Dec-2012 21:00:49  
 testGetResourcePath1(org.wso2.carbon.core.test.persistence.PersistenceUtilsTest)
 build12-Dec-2012 21:00:49  
 testGetResourcePath3(org.wso2.carbon.core.test.persistence.PersistenceUtilsTest)
 build12-Dec-2012 21:00:49
 build12-Dec-2012 21:00:49Tests run: 23, Failures: 0, Errors: 16, 
 Skipped: 0
 build12-Dec-2012 21:00:49

 Thanks,
 Krishantha

 [1]
 http://wso2.org/bamboo/download/WCB001-KER005-JOB1/build_logs/WCB001-KER005-JOB1-54.log

  On Wed, Dec 12, 2012 at 1:40 PM, Dileepa Jayakody dile...@wso2.comwrote:

 fixed in 151291, by initializing super-tenant flow for
 PersistenceUtilsTest and PersistenceManagerTest.

 The reason the tests were failing was, tenantId is not initialized (-1)
 when Registry instance is created from CarbonContext.getRegistry(). Now the
 tenantId is set to superTenantID in the test's setup flow.

 Thanks,
 Dileepa


 On Tue, Dec 11, 2012 at 10:27 AM, Dileepa Jayakody dile...@wso2.comwrote:

 I will look into this


 On Tue, Dec 11, 2012 at 10:17 AM, Muhammed Shariq sha...@wso2.comwrote:

 Hi,

 We need to get this test passing ASAP .. can someone have a look
 please ?!

 On Mon, Dec 10, 2012 at 11:19 AM, Dinusha Senanayaka dinu...@wso2.com
  wrote:

 Build ran with the r150786. Surefire reports are attached herewith..

 Regards,
 Dinusha.

 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev




 --
 Thanks,
 Shariq.
 Phone: +94 777 202 225




 --
 Dileepa Jayakody,
 Software Engineer, WSO2 Inc.
 Lean . Enterprise . Middleware

 Mobile : +94777-857616




 --
 Dileepa Jayakody,
 Software Engineer, WSO2 Inc.
 Lean . Enterprise . Middleware

 Mobile : +94777-857616


 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev





 --
 Dileepa Jayakody,
 Software Engineer, WSO2 Inc.
 Lean . Enterprise . Middleware

 Mobile : +94777-857616




-- 
Thanks,
Shariq.
Phone: +94 777 202 225
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Kernel test failures in PersistenceManagerTest

2012-12-13 Thread Muhammed Shariq
, the tests should be passing.

 Thanks,
 Dileepa


 On Thu, Dec 13, 2012 at 6:22 PM, Dileepa Jayakody dile...@wso2.comwrote:



 On Thu, Dec 13, 2012 at 6:15 PM, Muhammed Shariq sha...@wso2.comwrote:

  Hi Dileepa,

 This test is still failing in builder3
 Looking into it.

 On Thu, Dec 13, 2012 at 12:09 PM, Dileepa Jayakody dile...@wso2.com
  wrote:

 Yes Krishantha I committed the changes to carbon.core 4.0.5 in
 r151291.
 Could it be because bamboo source not updated to latest for the
 last build?

 Thanks,
 Dileepa


 On Thu, Dec 13, 2012 at 11:39 AM, Krishantha Samaraweera 
 krishan...@wso2.com wrote:

 Hi Dileepa,

 Last bamboo kernel build[1] also failed due to following failures.
 Did you commit the fixes to branch?

 build 12-Dec-2012 21:00:49 Tests in error:

 build 12-Dec-2012 21:00:49  
 testNewServiceGroupAddition(org.wso2.carbon.core.test.persistence.PersistenceManagerTest)
 build 12-Dec-2012 21:00:49  
 testSetServiceGroupProperty(org.wso2.carbon.core.test.persistence.PersistenceManagerTest)
 build 12-Dec-2012 21:00:49  
 testNewServiceAddition(org.wso2.carbon.core.test.persistence.PersistenceManagerTest)
 build 12-Dec-2012 21:00:49  
 testServiceProperty(org.wso2.carbon.core.test.persistence.PersistenceManagerTest)
 build 12-Dec-2012 21:00:49  
 testUpdateServiceGroupParameter(org.wso2.carbon.core.test.persistence.PersistenceManagerTest)
 build 12-Dec-2012 21:00:49  
 testUpdateServiceParameter(org.wso2.carbon.core.test.persistence.PersistenceManagerTest)
 build 12-Dec-2012 21:00:49  
 testNewModuleAddition(org.wso2.carbon.core.test.persistence.PersistenceManagerTest)
 build 12-Dec-2012 21:00:49  
 testNewModuleNullVersionAddition(org.wso2.carbon.core.test.persistence.PersistenceManagerTest)
 build 12-Dec-2012 21:00:49  
 testModuleParameterUpdate(org.wso2.carbon.core.test.persistence.PersistenceManagerTest)
 build 12-Dec-2012 21:00:49  
 testDeleteService(org.wso2.carbon.core.test.persistence.PersistenceManagerTest)
 build 12-Dec-2012 21:00:49  
 testRemoveServiceParam(org.wso2.carbon.core.test.persistence.PersistenceManagerTest)
 build 12-Dec-2012 21:00:49  
 testDeleteServiceGroup(org.wso2.carbon.core.test.persistence.PersistenceManagerTest)
 build 12-Dec-2012 21:00:49  
 testRemoveModule(org.wso2.carbon.core.test.persistence.PersistenceManagerTest)
 build 12-Dec-2012 21:00:49  
 testengageModuleForService(org.wso2.carbon.core.test.persistence.PersistenceManagerTest)
 build 12-Dec-2012 21:00:49  
 testGetResourcePath1(org.wso2.carbon.core.test.persistence.PersistenceUtilsTest)
 build 12-Dec-2012 21:00:49  
 testGetResourcePath3(org.wso2.carbon.core.test.persistence.PersistenceUtilsTest)
 build 12-Dec-2012 21:00:49
 build 12-Dec-2012 21:00:49Tests run: 23, Failures: 0, Errors: 16, 
 Skipped: 0
 build 12-Dec-2012 21:00:49

 Thanks,
 Krishantha

 [1]
 http://wso2.org/bamboo/download/WCB001-KER005-JOB1/build_logs/WCB001-KER005-JOB1-54.log

  On Wed, Dec 12, 2012 at 1:40 PM, Dileepa Jayakody 
 dile...@wso2.com wrote:

 fixed in 151291, by initializing super-tenant flow for
 PersistenceUtilsTest and PersistenceManagerTest.

 The reason the tests were failing was, tenantId is not
 initialized (-1) when Registry instance is created from
 CarbonContext.getRegistry(). Now the tenantId is set to 
 superTenantID in
 the test's setup flow.

 Thanks,
 Dileepa


 On Tue, Dec 11, 2012 at 10:27 AM, Dileepa Jayakody 
 dile...@wso2.com wrote:

 I will look into this


 On Tue, Dec 11, 2012 at 10:17 AM, Muhammed Shariq 
 sha...@wso2.com wrote:

 Hi,

 We need to get this test passing ASAP .. can someone have a
 look please ?!

 On Mon, Dec 10, 2012 at 11:19 AM, Dinusha Senanayaka 
 dinu...@wso2.com wrote:

 Build ran with the r150786. Surefire reports are attached
 herewith..

 Regards,
 Dinusha.

 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev




 --
 Thanks,
 Shariq.
 Phone: +94 777 202 225




 --
 Dileepa Jayakody,
 Software Engineer, WSO2 Inc.
 Lean . Enterprise . Middleware

 Mobile : +94777-857616




 --
 Dileepa Jayakody,
 Software Engineer, WSO2 Inc.
 Lean . Enterprise . Middleware

 Mobile : +94777-857616


 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev





 --
 Dileepa Jayakody,
 Software Engineer, WSO2 Inc.
 Lean . Enterprise . Middleware

 Mobile : +94777-857616




 --
 Thanks,
 Shariq.
 Phone: +94 777 202 225




 --
 Dileepa Jayakody,
 Software Engineer, WSO2 Inc.
 Lean . Enterprise . Middleware

 Mobile : +94777-857616




 --
 Dileepa Jayakody,
 Software Engineer, WSO2 Inc.
 Lean . Enterprise . Middleware

 Mobile : +94777-857616


 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev




 --
 *Pradeep Fernando*
 Member, Management Committee - Platform  Cloud Technologies
 Senior Software

Re: [Dev] ESB doc gen build failures

2012-12-11 Thread Muhammed Shariq
BAM folks,

Please have a look and fix it ASAP .. ?!

On Wed, Dec 12, 2012 at 7:42 AM, Kasun Indrasiri ka...@wso2.com wrote:

 Maninda, can we fix this ASAP.


 On Tue, Dec 11, 2012 at 11:40 PM, Isuru Udana isu...@wso2.com wrote:

 I am getting the following build failure again due to errors in bam
 mediator docs.

 [INFO] BUILD FAILURE
 [INFO]
 
 [INFO] Total time: 2:10.797s
 [INFO] Finished at: Tue Dec 11 23:03:05 IST 2012
 [INFO] Final Memory: 61M/567M
 [INFO]
 
 [ERROR] Failed to execute goal
 org.apache.maven.plugins:maven-site-plugin:3.0:site (default) on project
 wso2esb: Error during page generation: Error parsing
 '/home/wso2/carbon/platform/4.0.0/products/esb/4.6.0/modules/distribution/src/site/xdoc/bam-mediator-config/docs/userguide.xml':
 line [38] Error parsing the model: end tag name /li must be the same as
 start tag br from line 38 (position: START_TAG seen .../strong\n
  menu.brbr/li... @38:27) - [Help 1]
 [ERROR]


 On Thu, Nov 22, 2012 at 10:56 PM, Senaka Fernando sen...@wso2.comwrote:

 Hi Pradeep,

 Not sure about ESB, but G-Reg etc does the Doc Generation to build the
 Java API documentation. That is something that cannot be replaced by the
 wiki docs.

 Thanks,
 Senaka.


 On Thu, Nov 22, 2012 at 10:28 PM, Muhammed Shariq sha...@wso2.comwrote:

 On Thu, Nov 22, 2012 at 9:27 PM, Pradeep Fernando prad...@wso2.comwrote:

 why we are maintaining maven based docs , while doing wiki based docs ?


 I have no idea .. fixed in order to get the ESB pack building :)


 --Pradeep


 On Thu, Nov 22, 2012 at 7:55 PM, Muhammed Shariq sha...@wso2.comwrote:

 Fixed this ..


 On Thu, Nov 22, 2012 at 6:07 PM, Kasun Indrasiri ka...@wso2.comwrote:

 Introduced by the newly added BAM mediator. Please fix it.

 On Thu, Nov 22, 2012 at 4:01 PM, Amila Maha Arachchi 
 ami...@wso2.com wrote:

 Hi,

 There are doc gen build errors in ESB. Pls fix them.

 Regards,
 AmilaM.

 --
 *Amila Maharachchi*
 Technical Lead
 Member, Management Committee - Cloud  Platform TG
 WSO2, Inc.; http://wso2.com

 Blog: http://maharachchi.blogspot.com
 Mobile: +94719371446



 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev




 --
 Kasun Indrasiri
 Associate Technical Lead
 WSO2, Inc.; http://wso2.com
 lean.enterprise.middleware

 cell: +94 71 536 4128
 Blog : http://kasunpanorama.blogspot.com/

 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev




 --
 Thanks,
 Shariq.
 Phone: +94 777 202 225


 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev




 --
 Pradeep Fernando
 Senior Software Engineer
 Member, Management Committee - Platform  Cloud Technologies
 WSO2 Inc; http://wso2.com/

 blog: http://pradeepfernando.blogspot.com/
 m: +94776603662




 --
 Thanks,
 Shariq.
 Phone: +94 777 202 225


 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev




 --
 *Senaka Fernando*
 Member - Integration Technologies Management Committee;
 Technical Lead; WSO2 Inc.; http://wso2.com*
 Member; Apache Software Foundation; http://apache.org

 E-mail: senaka AT wso2.com
 **P: +1 408 754 7388; ext: 51736*; *M: +94 77 322 1818
 Linked-In: http://linkedin.com/in/senakafernando

 *Lean . Enterprise . Middleware


 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev




 --
 *Isuru Udana*
 *
  *
 *
 Software Engineer
 *
 Integration Technologies Team, WSO2 Inc.; http://wso2.com
 email: isu...@wso2.com cell: +94 77 3791887
 blog: http://mytecheye.blogspot.com/
 twitter: http://twitter.com/isudana


 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev




 --
 Kasun Indrasiri
 Associate Technical Lead
 WSO2, Inc.; http://wso2.com
 lean.enterprise.middleware

 cell: +94 71 536 4128
 Blog : http://kasunpanorama.blogspot.com/

 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev




-- 
Thanks,
Shariq.
Phone: +94 777 202 225
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Kernel test failures in PersistenceManagerTest

2012-12-10 Thread Muhammed Shariq
Hi,

We need to get this test passing ASAP .. can someone have a look please ?!

On Mon, Dec 10, 2012 at 11:19 AM, Dinusha Senanayaka dinu...@wso2.comwrote:

 Build ran with the r150786. Surefire reports are attached herewith..

 Regards,
 Dinusha.

 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev




-- 
Thanks,
Shariq.
Phone: +94 777 202 225
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Build failure in IS p2 profile .. please fix!

2012-12-09 Thread Muhammed Shariq
Installation failed.
Cannot complete the install because one or more required items could not be
found.
 Software being installed: Identity User Profiles Feature 4.0.5
(org.wso2.carbon.identity.user.profile.feature.group 4.0.5)
 Missing requirement: Identity User Profiles UI Feature 4.0.5
(org.wso2.carbon.identity.user.profile.ui.feature.group 4.0.5) requires
'org.wso2.carbon.identity.core.ui.feature.group [4.0.5,4.1.0)' but it could
not be found
 Cannot satisfy dependency:
  From: Identity User Profiles Feature 4.0.5
(org.wso2.carbon.identity.user.profile.feature.group 4.0.5)
  To: org.wso2.carbon.identity.user.profile.ui.feature.group [4.0.5]
Application failed, log file location:
/home/wso2/.m2/repository/org/eclipse/tycho/tycho-p2-runtime/0.13.0/eclipse/configuration/1355118181596.log

[INFO]



-- 
Thanks,
Shariq.
Phone: +94 777 202 225
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Build error - org.wso2.carbon.mediator.fastXSLT .. please fix asap ..

2012-12-05 Thread Muhammed Shariq
[INFO] WSO2 Carbon - Patch releases - components - Aggregator Module
 SKIPPED
[INFO]

[INFO] BUILD FAILURE
[INFO]

[INFO] Total time: 1:07.561s
[INFO] Finished at: Wed Dec 05 07:00:33 PST 2012
[INFO] Final Memory: 350M/1575M
[INFO]

[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile
(default-compile) on project org.wso2.carbon.mediator.fastXSLT: Compilation
failure: Compilation failure:
[ERROR]
/home/wso2/4.0.5-release/platform/4.0.0/components/mediators/fastXSLT/org.wso2.carbon.mediator.fastXSLT/4.0.5/src/main/java/org/wso2/carbon/mediator/fastXSLT/FastXSLTMediator.java:[188,48]
cannot find symbol
[ERROR] symbol  : method resetOutputStream()
[ERROR] location: class org.apache.synapse.transport.passthru.Pipe
[ERROR]
/home/wso2/4.0.5-release/platform/4.0.0/components/mediators/fastXSLT/org.wso2.carbon.mediator.fastXSLT/4.0.5/src/main/java/org/wso2/carbon/mediator/fastXSLT/FastXSLTMediator.java:[204,21]
cannot find symbol
[ERROR] symbol  : method
builldMessage(org.apache.axis2.context.MessageContext,boolean,java.io.BufferedInputStream)
[ERROR] location: class
org.apache.synapse.transport.passthru.util.RelayUtils
[ERROR] - [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e
switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions,
please read the following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the
command
[ERROR]   mvn goals -rf :org.wso2.carbon.mediator.fastXSLT


-- 
Thanks,
Shariq.
Phone: +94 777 202 225
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Build error - org.wso2.carbon.mediator.fastXSLT .. please fix asap ..

2012-12-05 Thread Muhammed Shariq
This was an issue in my local checkout .. please ignore ..

On Wed, Dec 5, 2012 at 8:34 PM, Muhammed Shariq sha...@wso2.com wrote:

 [INFO] WSO2 Carbon - Patch releases - components - Aggregator Module
  SKIPPED
 [INFO]
 
 [INFO] BUILD FAILURE
 [INFO]
 
 [INFO] Total time: 1:07.561s
 [INFO] Finished at: Wed Dec 05 07:00:33 PST 2012
 [INFO] Final Memory: 350M/1575M
 [INFO]
 
 [ERROR] Failed to execute goal
 org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile
 (default-compile) on project org.wso2.carbon.mediator.fastXSLT: Compilation
 failure: Compilation failure:
 [ERROR]
 /home/wso2/4.0.5-release/platform/4.0.0/components/mediators/fastXSLT/org.wso2.carbon.mediator.fastXSLT/4.0.5/src/main/java/org/wso2/carbon/mediator/fastXSLT/FastXSLTMediator.java:[188,48]
 cannot find symbol
 [ERROR] symbol  : method resetOutputStream()
 [ERROR] location: class org.apache.synapse.transport.passthru.Pipe
 [ERROR]
 /home/wso2/4.0.5-release/platform/4.0.0/components/mediators/fastXSLT/org.wso2.carbon.mediator.fastXSLT/4.0.5/src/main/java/org/wso2/carbon/mediator/fastXSLT/FastXSLTMediator.java:[204,21]
 cannot find symbol
 [ERROR] symbol  : method
 builldMessage(org.apache.axis2.context.MessageContext,boolean,java.io.BufferedInputStream)
 [ERROR] location: class
 org.apache.synapse.transport.passthru.util.RelayUtils
 [ERROR] - [Help 1]
 [ERROR]
 [ERROR] To see the full stack trace of the errors, re-run Maven with the
 -e switch.
 [ERROR] Re-run Maven using the -X switch to enable full debug logging.
 [ERROR]
 [ERROR] For more information about the errors and possible solutions,
 please read the following articles:
 [ERROR] [Help 1]
 http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
 [ERROR]
 [ERROR] After correcting the problems, you can resume the build with the
 command
 [ERROR]   mvn goals -rf :org.wso2.carbon.mediator.fastXSLT


 --
 Thanks,
 Shariq.
 Phone: +94 777 202 225




-- 
Thanks,
Shariq.
Phone: +94 777 202 225
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Can't login from non-admn user.

2012-12-05 Thread Muhammed Shariq
On Wed, Dec 5, 2012 at 1:23 PM, Evanthika Amarasiri evanth...@wso2.comwrote:

 Created [1] to track the issue.

 [1] - https://wso2.org/jira/browse/CARBON-14019


This issue is fixed ...


 Regards,
 Evanthika

 On Wed, Dec 5, 2012 at 8:14 AM, Evanthika Amarasiri evanth...@wso2.comwrote:

 Just tried with a AS pack downloaded from [1]. My user has only 
 *login*permission and I was able to log in from that user. What permission 
 did you
 have for this user?
  However if login attempt fails (incorrect username/password, I get an
 error page as shown in the screenshot)

 [image: Inline image 1]

 [1] - http://builder3.us1.wso2.org/builds/04-Dec-2012/

 Regards,
 Evanthika

 On Wed, Dec 5, 2012 at 12:05 AM, Subash Chaturanga sub...@wso2.comwrote:



 On Tue, Dec 4, 2012 at 11:53 PM, Ajith Vitharana aji...@wso2.comwrote:

 Hi all,

 I can't login to latest packs using non-admin user.
 I'm getting following WARN at back end console.

 WARN {org.wso2.carbon.core.services.util.CarbonAuthenticationUtil} -
  Failed Administrator login attempt 'ajith[-1234]' at [2012-12-04
 23:47:29,427+0530]

 Please see the attached image.


  I am getting the same issue in the latest greg build. Does any other
 products faced the same issue ?


 Thanks
 Ajith
 --
 Ajith Vitharana.
 WSO2 Inc. - http://wso2.org
 Email  :  aji...@wso2.com
 Mobile : +94772217350



 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev




 --

 Subash Chaturanga
 Software Engineer
 WSO2 Inc. http://wso2.com

 email - sub...@wso2.com
 phone - 077 2225922




 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev




-- 
Thanks,
Shariq.
Phone: +94 777 202 225
Screenshot.png___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] IS p2-profile gen error .. please fix ..

2012-12-04 Thread Muhammed Shariq
Installing org.wso2.carbon.registry.contentsearch.feature.group 4.0.2.
Installation failed.
Cannot complete the install because of a conflicting dependency.
 Software being installed: Identity OAuth Feature 4.0.5
(org.wso2.carbon.identity.oauth.feature.group 4.0.5)
 Software being installed: Identity SCIM Feature 4.0.5
(org.wso2.carbon.identity.scim.feature.group 4.0.5)
 Only one of the following can be installed at once:
  WSO2 Carbon - Webapp Management Core Feature 4.0.2
(org.wso2.carbon.webapp.mgt.server.feature.jar 4.0.2)
  WSO2 Carbon - Webapp Management Core Feature 4.0.5
(org.wso2.carbon.webapp.mgt.server.feature.jar 4.0.5)
 Cannot satisfy dependency:
  From: Identity OAuth Feature 4.0.5
(org.wso2.carbon.identity.oauth.feature.group 4.0.5)
  To: org.wso2.carbon.identity.oauth.ui.feature.group [4.0.5]
 Cannot satisfy dependency:
  From: Identity OAuth UI Feature 4.0.5
(org.wso2.carbon.identity.oauth.ui.feature.group 4.0.5)
  To: org.wso2.carbon.webapp.mgt.server.feature.group [4.0.5]
 Cannot satisfy dependency:
  From: Identity SCIM Feature 4.0.5
(org.wso2.carbon.identity.scim.feature.group 4.0.5)
  To: org.wso2.carbon.identity.scim.provider.feature.group [4.0.3]
 Cannot satisfy dependency:
  From: WSO2 Carbon - SCIM - Service Provider Feature 4.0.3
(org.wso2.carbon.identity.scim.provider.feature.group 4.0.3)
  To: org.wso2.carbon.webapp.mgt.server.feature.group [4.0.2]
 Cannot satisfy dependency:
  From: WSO2 Carbon - Webapp Management Core Feature 4.0.2
(org.wso2.carbon.webapp.mgt.server.feature.group 4.0.2)
  To: org.wso2.carbon.webapp.mgt.server.feature.jar [4.0.2]
 Cannot satisfy dependency:
  From: WSO2 Carbon - Webapp Management Core Feature 4.0.5
(org.wso2.carbon.webapp.mgt.server.feature.group 4.0.5)
  To: org.wso2.carbon.webapp.mgt.server.feature.jar [4.0.5]
Application failed, log file location:
/home/wso2/.m2/repository/org/eclipse/tycho/tycho-p2-runtime/0.13.0/eclipse/configuration/1354624457460.log


-- 
Thanks,
Shariq.
Phone: +94 777 202 225
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Build failure - org.wso2.carbon.mediators.ui.feature in branch .. please fix ..

2012-12-04 Thread Muhammed Shariq
[WARNING] The POM for org.apache.bsf:bsf-all:jar:3.0 is invalid, transitive
dependencies (if any) will not be available, enable debug logging for more
details
[INFO]

[INFO] BUILD FAILURE
[INFO]

[INFO] Total time: 1.722s
[INFO] Finished at: Tue Dec 04 05:49:28 PST 2012
[INFO] Final Memory: 16M/215M
[INFO]

[ERROR] Failed to execute goal on project
org.wso2.carbon.mediators.ui.feature: Could not resolve dependencies for
project org.wso2.carbon:org.wso2.carbon.mediators.ui.feature:pom:4.0.5:
Failed to collect dependencies for
[org.wso2.carbon:org.wso2.carbon.mediator.aggregate.ui:jar:4.0.0 (compile),
org.wso2.carbon:org.wso2.carbon.mediator.drop.ui:jar:4.0.0 (compile),
org.wso2.carbon:org.wso2.carbon.mediator.cache.ui:jar:4.0.0 (compile),
org.wso2.carbon:org.wso2.carbon.mediator.callout.ui:jar:4.0.1 (compile),
org.wso2.carbon:org.wso2.carbon.mediator.calltemplate.ui:jar:4.0.1
(compile), org.wso2.carbon:org.wso2.carbon.mediator.clazz.ui:jar:4.0.0
(compile), org.wso2.carbon:org.wso2.carbon.mediator.target.ui:jar:4.0.0
(compile), org.wso2.carbon:org.wso2.carbon.mediator.clone.ui:jar:4.0.0
(compile), org.wso2.carbon:org.wso2.carbon.mediator.command.ui:jar:4.0.0
(compile), org.wso2.carbon:org.wso2.carbon.mediator.dblookup.ui:jar:4.0.5
(compile), org.wso2.carbon:org.wso2.carbon.mediator.dbreport.ui:jar:4.0.0
(compile),
org.wso2.carbon:org.wso2.carbon.mediator.entitlement.ui:jar:4.0.2
(compile), org.wso2.carbon:org.wso2.carbon.mediator.event.ui:jar:4.0.1
(compile), org.wso2.carbon:org.wso2.carbon.mediator.fault.ui:jar:4.0.1
(compile), org.wso2.carbon:org.wso2.carbon.mediator.filter.ui:jar:4.0.0
(compile), org.wso2.carbon:org.wso2.carbon.mediator.header.ui:jar:4.0.1
(compile), org.wso2.carbon:org.wso2.carbon.mediator.in.ui:jar:4.0.0
(compile), org.wso2.carbon:org.wso2.carbon.mediator.iterate.ui:jar:4.0.0
(compile), org.wso2.carbon:org.wso2.carbon.mediator.log.ui:jar:4.0.1
(compile), org.wso2.carbon:org.wso2.carbon.mediator.oauth.ui:jar:4.0.1
(compile), org.wso2.carbon:org.wso2.carbon.mediator.out.ui:jar:4.0.0
(compile), org.wso2.carbon:org.wso2.carbon.mediator.property.ui:jar:4.0.0
(compile), org.wso2.carbon:org.wso2.carbon.mediator.rmsequence.ui:jar:4.0.0
(compile), org.wso2.carbon:org.wso2.carbon.mediator.rule.ui:jar:4.0.0
(compile), org.wso2.carbon:org.wso2.carbon.mediator.script.ui:jar:4.0.1
(compile), org.wso2.carbon:org.wso2.carbon.mediator.send.ui:jar:4.0.0
(compile), org.wso2.carbon:org.wso2.carbon.mediator.spring.ui:jar:4.0.0
(compile), org.wso2.carbon:org.wso2.carbon.mediator.switch.ui:jar:4.0.0
(compile), org.wso2.carbon:org.wso2.carbon.mediator.store.ui:jar:4.0.0
(compile), org.wso2.carbon:org.wso2.carbon.mediator.throttle.ui:jar:4.0.0
(compile),
org.wso2.carbon:org.wso2.carbon.mediator.transaction.ui:jar:4.0.0
(compile), org.wso2.carbon:org.wso2.carbon.mediator.uiless.ui:jar:4.0.0
(compile), org.wso2.carbon:org.wso2.carbon.mediator.sequence.ui:jar:4.0.0
(compile), org.wso2.carbon:org.wso2.carbon.mediator.validate.ui:jar:4.0.0
(compile), org.wso2.carbon:org.wso2.carbon.mediator.xquery.ui:jar:4.0.0
(compile), org.wso2.carbon:org.wso2.carbon.mediator.xslt.ui:jar:4.0.0
(compile), org.wso2.carbon:org.wso2.carbon.mediator.enqueue.ui:jar:4.0.0
(compile), org.wso2.carbon:org.wso2.carbon.mediator.enrich.ui:jar:4.0.0
(compile),
org.wso2.carbon:org.wso2.carbon.mediator.conditionalrouter.ui:jar:4.0.0
(compile), org.wso2.carbon:org.wso2.carbon.mediator.urlrewrite.ui:jar:4.0.0
(compile),
org.wso2.carbon:org.wso2.carbon.mediators.command.admin.stub:jar:4.0.0
(compile),
org.wso2.carbon:org.wso2.carbon.mediators.event.admin.stub:jar:4.0.0
(compile), org.wso2.carbon:org.wso2.carbon.proxyadmin.stub:jar:4.0.0
(compile),
org.wso2.carbon:org.wso2.carbon.mediators.clazz.admin.stub:jar:4.0.0
(compile),
org.wso2.carbon:org.wso2.carbon.mediation.templates.stub:jar:4.0.0
(compile),
org.wso2.carbon:org.wso2.carbon.mediator.payloadfactory.ui:jar:4.0.1
(compile), org.wso2.carbon:org.wso2.carbon.mediator.ejb.ui:jar:4.0.0
(compile), org.wso2.carbon:org.wso2.carbon.mediator.bean.ui:jar:4.0.0
(compile), org.wso2.carbon:org.wso2.carbon.mediator.fastXSLT.ui:jar:4.0.5
(compile)]: Failed to read artifact descriptor for
org.wso2.carbon:org.wso2.carbon.mediator.fastXSLT.ui:jar:4.0.5: Failure to
find org.wso2.carbon:fastXSLT-mediator:pom:4.0.0 in
http://maven.wso2.org/nexus/content/groups/wso2-public/ was cached in the
local repository, resolution will not be reattempted until the update
interval of wso2-nexus has elapsed or updates are forced - [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e
switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions,
please read the following articles:

[Dev] G-Reg build failure .. please fix!

2012-11-28 Thread Muhammed Shariq
[INFO]

[INFO] BUILD FAILURE
[INFO]

[INFO] Total time: 22:49.877s
[INFO] Finished at: Wed Nov 28 00:18:22 PST 2012
[INFO] Final Memory: 599M/1802M
[INFO]

[ERROR] Failed to execute goal
org.wso2.maven:carbon-p2-plugin:1.5:p2-repo-gen (2-p2-repo-generation) on
project governace-profile-gen: ERROR: Could not find artifact
org.wso2.carbon:org.wso2.carbon.reporting.server.feature:zip:4.0.5 in
wso2-nexus (http://maven.wso2.org/nexus/content/groups/wso2-public/)
[ERROR]
[ERROR] Try downloading the file manually from the project website.
[ERROR]
[ERROR] Then, install it using the command:
[ERROR] mvn install:install-file -DgroupId=org.wso2.carbon
-DartifactId=org.wso2.carbon.reporting.server.feature -Dversion=4.0.5
-Dpackaging=zip -Dfile=/path/to/file
[ERROR]
[ERROR] Alternatively, if you host your own repository you can deploy the
file there:
[ERROR] mvn deploy:deploy-file -DgroupId=org.wso2.carbon
-DartifactId=org.wso2.carbon.reporting.server.feature -Dversion=4.0.5
-Dpackaging=zip -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
[ERROR]
[ERROR]
[ERROR] org.wso2.carbon:org.wso2.carbon.reporting.server.feature:zip:4.0.5
[ERROR]


-- 
Thanks,
Shariq.
Phone: +94 777 202 225
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] G-Reg build failure .. please fix!

2012-11-28 Thread Muhammed Shariq
On Wed, Nov 28, 2012 at 3:12 PM, Subash Chaturanga sub...@wso2.com wrote:

 Fixed in 149624 and 149625.


Thanks!



 On Wed, Nov 28, 2012 at 3:02 PM, Subash Chaturanga sub...@wso2.comwrote:

 I am looking in to this. Will reply once verified.


 On Wed, Nov 28, 2012 at 2:00 PM, Muhammed Shariq sha...@wso2.com wrote:

 [INFO]
 
 [INFO] BUILD FAILURE
 [INFO]
 
 [INFO] Total time: 22:49.877s
 [INFO] Finished at: Wed Nov 28 00:18:22 PST 2012
 [INFO] Final Memory: 599M/1802M
 [INFO]
 
 [ERROR] Failed to execute goal
 org.wso2.maven:carbon-p2-plugin:1.5:p2-repo-gen (2-p2-repo-generation) on
 project governace-profile-gen: ERROR: Could not find artifact
 org.wso2.carbon:org.wso2.carbon.reporting.server.feature:zip:4.0.5 in
 wso2-nexus (http://maven.wso2.org/nexus/content/groups/wso2-public/)
 [ERROR]
 [ERROR] Try downloading the file manually from the project website.
 [ERROR]
 [ERROR] Then, install it using the command:
 [ERROR] mvn install:install-file -DgroupId=org.wso2.carbon
 -DartifactId=org.wso2.carbon.reporting.server.feature -Dversion=4.0.5
 -Dpackaging=zip -Dfile=/path/to/file
 [ERROR]
 [ERROR] Alternatively, if you host your own repository you can deploy
 the file there:
 [ERROR] mvn deploy:deploy-file -DgroupId=org.wso2.carbon
 -DartifactId=org.wso2.carbon.reporting.server.feature -Dversion=4.0.5
 -Dpackaging=zip -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
 [ERROR]
 [ERROR]
 [ERROR]
 org.wso2.carbon:org.wso2.carbon.reporting.server.feature:zip:4.0.5
 [ERROR]


 --
 Thanks,
 Shariq.
 Phone: +94 777 202 225




 --

 Subash Chaturanga
 Software Engineer
 WSO2 Inc. http://wso2.com

 email - sub...@wso2.com
 phone - 077 2225922




 --

 Subash Chaturanga
 Software Engineer
 WSO2 Inc. http://wso2.com

 email - sub...@wso2.com
 phone - 077 2225922




-- 
Thanks,
Shariq.
Phone: +94 777 202 225
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Error when building synapse on clean repo ...

2012-11-28 Thread Muhammed Shariq
[INFO]

[INFO] BUILD FAILURE
[INFO]

[INFO] Total time: 10.726s
[INFO] Finished at: Wed Nov 28 11:31:46 PST 2012
[INFO] Final Memory: 20M/134M
[INFO]

[ERROR] Failed to execute goal on project Apache-Synapse: Could not resolve
dependencies for project
org.apache.synapse:Apache-Synapse:pom:2.1.1-wso2v1: Failed to collect
dependencies for [jline:jline:jar:0.9.94 (provided),
org.apache.axis2:axis2-transport-local:jar:1.6.1-wso2v7 (test),
org.apache.axis2:axis2-kernel:jar:1.6.1-wso2v7 (compile),
org.apache.axis2:axis2-adb:jar:1.6.1-wso2v7 (compile),
org.apache.axis2:axis2-clustering:jar:1.6.1-wso2v7 (compile),
org.apache.axis2:axis2-mtompolicy:jar:1.6.1-wso2v7 (compile),
org.apache.neethi:neethi:jar:2.0.4-wso2v2 (compile),
org.apache.sandesha2:sandesha2-core:jar:1.6.1-wso2v1 (compile),
commons-logging:commons-logging:jar:1.1.1 (compile),
org.slf4j:slf4j-log4j12:jar:1.5.6 (compile), junit:junit:jar:3.8.2 (test),
xmlunit:xmlunit:jar:1.1 (test), org.apache.derby:derby:jar:10.4.2.0 (test),
xalan:xalan:jar:2.7.1 (compile), xerces:xercesImpl:jar:2.8.1 (compile),
rhino:js:jar:1.6R5 (compile), commons-dbcp:commons-dbcp:jar:1.2.2
(compile), commons-pool:commons-pool:jar:1.3 (compile),
org.apache.bcel:bcel:jar:5.2 (compile),
jakarta-regexp:jakarta-regexp:jar:1.4 (compile), java-cup:java-cup:jar:0.0
(compile), JLex:JLex:jar:0.0 (compile),
commons-collections:commons-collections:jar:3.2.1 (compile),
org.quartz-scheduler:quartz:jar:2.1.1 (compile), net.sf.saxon:saxon:jar:8.9
(compile), net.sf.saxon:saxon-dom:jar:8.9 (compile),
net.sf.saxon:saxon-xqj:jar:8.9 (compile), commons-cli:commons-cli:jar:1.0
(compile), commons-lang:commons-lang:jar:2.4 (test),
org.wso2.uri.template:wso2-uri-templates:jar:1.6.2 (compile),
org.wso2.caching:wso2caching-core:jar:4.0.2 (compile),
org.wso2.eventing:wso2eventing-api:jar:2.1 (compile)]: Failed to read
artifact descriptor for org.apache.axis2:axis2-saaj:jar:1.6.1-wso2v7: Could
not transfer artifact org.apache.axis2:axis2-saaj:pom:1.6.1-wso2v7 from/to
wso2-maven2-repository-snapshot (http://dist.wso2.org/snapshots/maven2): No
connector available to access repository wso2-maven2-repository-snapshot (
http://dist.wso2.org/snapshots/maven2) of type legacy using the available
factories WagonRepositoryConnectorFactory - [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e
switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions,
please read the following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the
command
[ERROR]   mvn goals -rf :Apache-Synapse


-- 
Thanks,
Shariq.
Phone: +94 777 202 225
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Error when building synapse on clean repo ...

2012-11-28 Thread Muhammed Shariq
Actually this is a false alarm .. please ignore .. sorry about the noise !!
:)


On Thu, Nov 29, 2012 at 1:02 AM, Muhammed Shariq sha...@wso2.com wrote:

 [INFO]
 
 [INFO] BUILD FAILURE
 [INFO]
 
 [INFO] Total time: 10.726s
 [INFO] Finished at: Wed Nov 28 11:31:46 PST 2012
 [INFO] Final Memory: 20M/134M
 [INFO]
 
 [ERROR] Failed to execute goal on project Apache-Synapse: Could not
 resolve dependencies for project
 org.apache.synapse:Apache-Synapse:pom:2.1.1-wso2v1: Failed to collect
 dependencies for [jline:jline:jar:0.9.94 (provided),
 org.apache.axis2:axis2-transport-local:jar:1.6.1-wso2v7 (test),
 org.apache.axis2:axis2-kernel:jar:1.6.1-wso2v7 (compile),
 org.apache.axis2:axis2-adb:jar:1.6.1-wso2v7 (compile),
 org.apache.axis2:axis2-clustering:jar:1.6.1-wso2v7 (compile),
 org.apache.axis2:axis2-mtompolicy:jar:1.6.1-wso2v7 (compile),
 org.apache.neethi:neethi:jar:2.0.4-wso2v2 (compile),
 org.apache.sandesha2:sandesha2-core:jar:1.6.1-wso2v1 (compile),
 commons-logging:commons-logging:jar:1.1.1 (compile),
 org.slf4j:slf4j-log4j12:jar:1.5.6 (compile), junit:junit:jar:3.8.2 (test),
 xmlunit:xmlunit:jar:1.1 (test), org.apache.derby:derby:jar:10.4.2.0 (test),
 xalan:xalan:jar:2.7.1 (compile), xerces:xercesImpl:jar:2.8.1 (compile),
 rhino:js:jar:1.6R5 (compile), commons-dbcp:commons-dbcp:jar:1.2.2
 (compile), commons-pool:commons-pool:jar:1.3 (compile),
 org.apache.bcel:bcel:jar:5.2 (compile),
 jakarta-regexp:jakarta-regexp:jar:1.4 (compile), java-cup:java-cup:jar:0.0
 (compile), JLex:JLex:jar:0.0 (compile),
 commons-collections:commons-collections:jar:3.2.1 (compile),
 org.quartz-scheduler:quartz:jar:2.1.1 (compile), net.sf.saxon:saxon:jar:8.9
 (compile), net.sf.saxon:saxon-dom:jar:8.9 (compile),
 net.sf.saxon:saxon-xqj:jar:8.9 (compile), commons-cli:commons-cli:jar:1.0
 (compile), commons-lang:commons-lang:jar:2.4 (test),
 org.wso2.uri.template:wso2-uri-templates:jar:1.6.2 (compile),
 org.wso2.caching:wso2caching-core:jar:4.0.2 (compile),
 org.wso2.eventing:wso2eventing-api:jar:2.1 (compile)]: Failed to read
 artifact descriptor for org.apache.axis2:axis2-saaj:jar:1.6.1-wso2v7: Could
 not transfer artifact org.apache.axis2:axis2-saaj:pom:1.6.1-wso2v7 from/to
 wso2-maven2-repository-snapshot (http://dist.wso2.org/snapshots/maven2):
 No connector available to access repository wso2-maven2-repository-snapshot
 (http://dist.wso2.org/snapshots/maven2) of type legacy using the
 available factories WagonRepositoryConnectorFactory - [Help 1]
 [ERROR]
 [ERROR] To see the full stack trace of the errors, re-run Maven with the
 -e switch.
 [ERROR] Re-run Maven using the -X switch to enable full debug logging.
 [ERROR]
 [ERROR] For more information about the errors and possible solutions,
 please read the following articles:
 [ERROR] [Help 1]
 http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
 [ERROR]
 [ERROR] After correcting the problems, you can resume the build with the
 command
 [ERROR]   mvn goals -rf :Apache-Synapse


 --
 Thanks,
 Shariq.
 Phone: +94 777 202 225




-- 
Thanks,
Shariq.
Phone: +94 777 202 225
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Change CarbonUILoginUtil to fix STRATOS-2304

2012-11-27 Thread Muhammed Shariq
Hi folks,

I have altered CarbonUILoginUtil class in order to fix [1]. In carbon 3.2.*
branch, in CarbonSecuredHttpContext#handleSecurity() we have altered the
contextPath variable before authenticating the request but in the latest
branch (4.0.*) contextPath is made tenant aware after authenticating. So
prefixing the redirect path with ../../ is wrong and resulted in 404
page. I have fixed this in r149606, please review the commit and verify ...


[1] - https://wso2.org/jira/browse/STRATOS-2304

-- 
Thanks,
Shariq.
Phone: +94 777 202 225
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Build failure - CEP p2-profile ..

2012-11-26 Thread Muhammed Shariq
Hi Suho,

I fixed this error in r149427, please verify the change ..

On Mon, Nov 26, 2012 at 9:54 AM, Muhammed Shariq sha...@wso2.com wrote:

 Please fix asap ...

 Installing org.wso2.carbon.application.deployer.cep.feature.group 4.0.1.
 Installation failed.
 Cannot complete the install because one or more required items could not
 be found.
  Software being installed: WSO2 Carbon - CEP Feature 4.0.2
 (org.wso2.carbon.cep.feature.group 4.0.2)
  Missing requirement: WSO2 Carbon - Data Bridge - REST API Server Feature
 4.0.5 (org.wso2.carbon.databridge.receiver.restapi.server.feature.group
 4.0.5) requires 'org.wso2.carbon.jaxws.webapp.mgt.server.feature.group
 [4.0.2,4.1.0)' but it could not be found
  Cannot satisfy dependency:
   From: WSO2 Carbon - Broker Server Feature 4.0.2
 (org.wso2.carbon.broker.server.feature.group 4.0.2)
   To: org.wso2.carbon.databridge.datareceiver.feature.group [4.0.1,4.1.0)
  Cannot satisfy dependency:
   From: WSO2 Carbon - CEP Feature 4.0.2 (org.wso2.carbon.cep.feature.group
 4.0.2)
   To: org.wso2.carbon.cep.server.feature.group [4.0.2]
  Cannot satisfy dependency:
   From: WSO2 Carbon - CEP Server Feature 4.0.2
 (org.wso2.carbon.cep.server.feature.group 4.0.2)
   To: org.wso2.carbon.broker.server.feature.group [4.0.2,4.1.0)
  Cannot satisfy dependency:
   From: WSO2 Carbon - Data Bridge - Data Receiver Aggregate Feature 4.0.5
 (org.wso2.carbon.databridge.datareceiver.feature.group 4.0.5)
   To: org.wso2.carbon.databridge.receiver.restapi.server.feature.group
 [4.0.5]
 Application failed, log file location:
 /home/wso2/.m2/repository/org/eclipse/tycho/tycho-p2-runtime/0.13.0/eclipse/configuration/1353903811049.log

 [INFO]
 
 [INFO] Reactor Summary:
 [INFO]
 [INFO] WSO2 CEP .. SUCCESS [0.290s]
 [INFO] WSO2 CEP - Style Parent ... SUCCESS [0.025s]
 [INFO] WSO2 CEP - Styles . SUCCESS [2.638s]
 [INFO] WSO2 Stratos CEP - Styles . SUCCESS [0.915s]
 [INFO] WSO2 CEP - Feature Parent . SUCCESS [0.074s]
 [INFO] WSO2 CEP - Features ... SUCCESS [0.006s]
 [INFO] WSO2 CEP - Styles Features  SUCCESS [1.824s]
 [INFO] WSO2 Stratos CEP - Features ... SUCCESS [0.077s]
 [INFO] WSO2 Stratos CEP - Styles Features  SUCCESS [0.421s]
 [INFO] WSO2 Stratos CEP - Dashboard UI ... SUCCESS [7.511s]
 [INFO] WSO2 Stratos CEP - Dashboard UI Features .. SUCCESS [0.124s]
 [INFO] WSO2 CEP - P2 Profile Generation .. FAILURE
 [59.283s]
 [INFO] WSO2 CEP - Distribution ... SKIPPED
 [INFO] WSO2 CEP Integration .. SKIPPED
 [INFO] CEP Integration test module ... SKIPPED
 [INFO]
 
 [INFO] BUILD FAILURE
 [INFO]
 
 [INFO] Total time: 1:14.487s
 [INFO] Finished at: Sun Nov 25 20:23:40 PST 2012
 [INFO] Final Memory: 23M/238M
 [INFO]
 
 [ERROR] Failed to execute goal
 org.wso2.maven:carbon-p2-plugin:1.5:p2-profile-gen
 (3-p2-profile-generation) on project wso2cep-p2-profile: P2 publisher
 return code was 13 - [Help 1]
 [ERROR]
 [ERROR] To see the full stack trace of the errors, re-run Maven with the
 -e switch.
 [ERROR] Re-run Maven using the -X switch to enable full debug logging.
 [ERROR]
 [ERROR] For more information about the errors and possible solutions,
 please read the following articles:
 [ERROR] [Help 1]
 http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
 [ERROR]
 [ERROR] After correcting the problems, you can resume the build with the
 command
 [ERROR]   mvn goals -rf :wso2cep-p2-profile
 wso2@builder3:~/4.0.5-release/platform/4.0.0/products/cep/2.0.1$


 --
 Thanks,
 Shariq.
 Phone: +94 777 202 225




-- 
Thanks,
Shariq.
Phone: +94 777 202 225
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Build break - org.wso2.carbon.apimgt.hostobjects

2012-11-25 Thread Muhammed Shariq
[INFO]

[INFO] BUILD FAILURE
[INFO]

[INFO] Total time: 9:00.827s
[INFO] Finished at: Sun Nov 25 08:40:00 PST 2012
[INFO] Final Memory: 1037M/2190M
[INFO]

[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-compiler-plugin:2.3.1:compile
(default-compile) on project org.wso2.carbon.apimgt.hostobjects:
Compilation failure
[ERROR]
/home/wso2/4.0.5-release/platform/4.0.0/components/apimgt/org.wso2.carbon.apimgt.hostobjects/1.0.5/src/main/java/org/wso2/carbon/apimgt/hostobjects/AssetStoreHostObject.java:[612,47]
cannot find symbol
[ERROR] symbol  : method getMediaType()
[ERROR] location: interface
org.wso2.carbon.governance.api.generic.dataobjects.GenericArtifact
[ERROR] - [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e
switch.


-- 
Thanks,
Shariq.
Phone: +94 777 202 225
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Build failure - org.wso2.carbon.registry.resource.ui

2012-11-25 Thread Muhammed Shariq
$Subject .. I am building from patch release pom .. please fix asap ..

[INFO] Total time: 5:04.450s
[INFO] Finished at: Sun Nov 25 10:03:07 PST 2012
[INFO] Final Memory: 1134M/2057M
[INFO]

[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile
(default-compile) on project org.wso2.carbon.registry.resource.ui:
Compilation failure: Compilation failure:
[ERROR]
/home/wso2/4.0.5-release/platform/4.0.0/components/registry/org.wso2.carbon.registry.resource.ui/4.0.5/src/main/java/org/wso2/carbon/registry/resource/ui/clients/ResourceServiceClient.java:[835,20]
cannot find symbol
[ERROR] symbol  : method getZipWithDependencies(java.lang.String)
[ERROR] location: class
org.wso2.carbon.registry.resource.stub.ResourceAdminServiceStub
[ERROR]
/home/wso2/4.0.5-release/platform/4.0.0/components/registry/org.wso2.carbon.registry.resource.ui/4.0.5/src/main/java/org/wso2/carbon/registry/resource/ui/clients/ResourceServiceClient.java:[845,20]
cannot find symbol
[ERROR] symbol  : method hasAssociations(java.lang.String,java.lang.String)
[ERROR] location: class
org.wso2.carbon.registry.resource.stub.ResourceAdminServiceStub
[ERROR] - [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e
switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions,
please read the following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the
command
[ERROR]   mvn goals -rf :org.wso2.carbon.registry.resource.ui


-- 
Thanks,
Shariq.
Phone: +94 777 202 225
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] More build failures - org.wso2.carbon.dataservices.task.server.feature

2012-11-25 Thread Muhammed Shariq
$Subject .. please fix !!!

[INFO] BUILD FAILURE
[INFO]

[INFO] Total time: 2:55.420s
[INFO] Finished at: Sun Nov 25 10:32:31 PST 2012
[INFO] Final Memory: 421M/1466M
[INFO]

[ERROR] Failed to execute goal
org.wso2.maven:carbon-p2-plugin:1.5:p2-feature-gen (p2-feature-generation)
on project org.wso2.carbon.dataservices.task.server.feature: ERROR: Could
not find artifact
org.wso2.carbon:org.wso2.carbon.ntask.core.feature:zip:4.0.5 in wso2-nexus (
http://maven.wso2.org/nexus/content/groups/wso2-public/)
[ERROR]
[ERROR] Try downloading the file manually from the project website.
[ERROR]
[ERROR] Then, install it using the command:
[ERROR] mvn install:install-file -DgroupId=org.wso2.carbon
-DartifactId=org.wso2.carbon.ntask.core.feature -Dversion=4.0.5
-Dpackaging=zip -Dfile=/path/to/file
[ERROR]
[ERROR] Alternatively, if you host your own repository you can deploy the
file there:
[ERROR] mvn deploy:deploy-file -DgroupId=org.wso2.carbon
-DartifactId=org.wso2.carbon.ntask.core.feature -Dversion=4.0.5
-Dpackaging=zip -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
[ERROR]
[ERROR]
[ERROR] org.wso2.carbon:org.wso2.carbon.ntask.core.feature:zip:4.0.5
[ERROR]
[ERROR] from the specified remote repositories:
[ERROR] wso2-nexus (http://maven.wso2.org/nexus/content/groups/wso2-public/,
releases=true, snapshots=true),
[ERROR] central (http://repo.maven.apache.org/maven2, releases=true,
snapshots=false)
[ERROR] - [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e
switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions,
please read the following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the
command
[ERROR]   mvn goals -rf :org.wso2.carbon.dataservices.task.server.feature


-- 
Thanks,
Shariq.
Phone: +94 777 202 225
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] More build failures - org.wso2.carbon.dataservices.task.server.feature

2012-11-25 Thread Muhammed Shariq
I am building from the patch release pom...
On Nov 26, 2012 6:25 AM, Dinusha Senanayaka dinu...@wso2.com wrote:

 Hi Shariq,

 On Mon, Nov 26, 2012 at 12:04 AM, Muhammed Shariq sha...@wso2.com wrote:

 $Subject .. please fix !!!

 Did you build the ntask/org.wso2.carbon.ntask.core.feature/4.0.5 ?

 Regards,
 Dinusha.


 [INFO] BUILD FAILURE
 [INFO]
 
 [INFO] Total time: 2:55.420s
 [INFO] Finished at: Sun Nov 25 10:32:31 PST 2012
 [INFO] Final Memory: 421M/1466M
 [INFO]
 
 [ERROR] Failed to execute goal
 org.wso2.maven:carbon-p2-plugin:1.5:p2-feature-gen (p2-feature-generation)
 on project org.wso2.carbon.dataservices.task.server.feature: ERROR: Could
 not find artifact
 org.wso2.carbon:org.wso2.carbon.ntask.core.feature:zip:4.0.5 in wso2-nexus (
 http://maven.wso2.org/nexus/content/groups/wso2-public/)
 [ERROR]
 [ERROR] Try downloading the file manually from the project website.
 [ERROR]
 [ERROR] Then, install it using the command:
 [ERROR] mvn install:install-file -DgroupId=org.wso2.carbon
 -DartifactId=org.wso2.carbon.ntask.core.feature -Dversion=4.0.5
 -Dpackaging=zip -Dfile=/path/to/file
 [ERROR]
 [ERROR] Alternatively, if you host your own repository you can deploy the
 file there:
 [ERROR] mvn deploy:deploy-file -DgroupId=org.wso2.carbon
 -DartifactId=org.wso2.carbon.ntask.core.feature -Dversion=4.0.5
 -Dpackaging=zip -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
 [ERROR]
 [ERROR]
 [ERROR] org.wso2.carbon:org.wso2.carbon.ntask.core.feature:zip:4.0.5
 [ERROR]
 [ERROR] from the specified remote repositories:
 [ERROR] wso2-nexus (
 http://maven.wso2.org/nexus/content/groups/wso2-public/, releases=true,
 snapshots=true),
 [ERROR] central (http://repo.maven.apache.org/maven2, releases=true,
 snapshots=false)
 [ERROR] - [Help 1]
 [ERROR]
 [ERROR] To see the full stack trace of the errors, re-run Maven with the
 -e switch.
 [ERROR] Re-run Maven using the -X switch to enable full debug logging.
 [ERROR]
 [ERROR] For more information about the errors and possible solutions,
 please read the following articles:
 [ERROR] [Help 1]
 http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
 [ERROR]
 [ERROR] After correcting the problems, you can resume the build with the
 command
 [ERROR]   mvn goals -rf
 :org.wso2.carbon.dataservices.task.server.feature


 --
 Thanks,
 Shariq.
 Phone: +94 777 202 225



___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Build failure - CEP p2-profile ..

2012-11-25 Thread Muhammed Shariq
Please fix asap ...

Installing org.wso2.carbon.application.deployer.cep.feature.group 4.0.1.
Installation failed.
Cannot complete the install because one or more required items could not be
found.
 Software being installed: WSO2 Carbon - CEP Feature 4.0.2
(org.wso2.carbon.cep.feature.group 4.0.2)
 Missing requirement: WSO2 Carbon - Data Bridge - REST API Server Feature
4.0.5 (org.wso2.carbon.databridge.receiver.restapi.server.feature.group
4.0.5) requires 'org.wso2.carbon.jaxws.webapp.mgt.server.feature.group
[4.0.2,4.1.0)' but it could not be found
 Cannot satisfy dependency:
  From: WSO2 Carbon - Broker Server Feature 4.0.2
(org.wso2.carbon.broker.server.feature.group 4.0.2)
  To: org.wso2.carbon.databridge.datareceiver.feature.group [4.0.1,4.1.0)
 Cannot satisfy dependency:
  From: WSO2 Carbon - CEP Feature 4.0.2 (org.wso2.carbon.cep.feature.group
4.0.2)
  To: org.wso2.carbon.cep.server.feature.group [4.0.2]
 Cannot satisfy dependency:
  From: WSO2 Carbon - CEP Server Feature 4.0.2
(org.wso2.carbon.cep.server.feature.group 4.0.2)
  To: org.wso2.carbon.broker.server.feature.group [4.0.2,4.1.0)
 Cannot satisfy dependency:
  From: WSO2 Carbon - Data Bridge - Data Receiver Aggregate Feature 4.0.5
(org.wso2.carbon.databridge.datareceiver.feature.group 4.0.5)
  To: org.wso2.carbon.databridge.receiver.restapi.server.feature.group
[4.0.5]
Application failed, log file location:
/home/wso2/.m2/repository/org/eclipse/tycho/tycho-p2-runtime/0.13.0/eclipse/configuration/1353903811049.log

[INFO]

[INFO] Reactor Summary:
[INFO]
[INFO] WSO2 CEP .. SUCCESS [0.290s]
[INFO] WSO2 CEP - Style Parent ... SUCCESS [0.025s]
[INFO] WSO2 CEP - Styles . SUCCESS [2.638s]
[INFO] WSO2 Stratos CEP - Styles . SUCCESS [0.915s]
[INFO] WSO2 CEP - Feature Parent . SUCCESS [0.074s]
[INFO] WSO2 CEP - Features ... SUCCESS [0.006s]
[INFO] WSO2 CEP - Styles Features  SUCCESS [1.824s]
[INFO] WSO2 Stratos CEP - Features ... SUCCESS [0.077s]
[INFO] WSO2 Stratos CEP - Styles Features  SUCCESS [0.421s]
[INFO] WSO2 Stratos CEP - Dashboard UI ... SUCCESS [7.511s]
[INFO] WSO2 Stratos CEP - Dashboard UI Features .. SUCCESS [0.124s]
[INFO] WSO2 CEP - P2 Profile Generation .. FAILURE [59.283s]
[INFO] WSO2 CEP - Distribution ... SKIPPED
[INFO] WSO2 CEP Integration .. SKIPPED
[INFO] CEP Integration test module ... SKIPPED
[INFO]

[INFO] BUILD FAILURE
[INFO]

[INFO] Total time: 1:14.487s
[INFO] Finished at: Sun Nov 25 20:23:40 PST 2012
[INFO] Final Memory: 23M/238M
[INFO]

[ERROR] Failed to execute goal
org.wso2.maven:carbon-p2-plugin:1.5:p2-profile-gen
(3-p2-profile-generation) on project wso2cep-p2-profile: P2 publisher
return code was 13 - [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e
switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions,
please read the following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the
command
[ERROR]   mvn goals -rf :wso2cep-p2-profile
wso2@builder3:~/4.0.5-release/platform/4.0.0/products/cep/2.0.1$


-- 
Thanks,
Shariq.
Phone: +94 777 202 225
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] MB - build failure

2012-11-25 Thread Muhammed Shariq
Please fix asap ..

Installation failed.
An error occurred while configuring the installed items
 session context was:(profile=WSO2CarbonProfile,
phase=org.eclipse.equinox.internal.p2.engine.phases.Configure, operand=null
-- [R]org.wso2.carbon.coordination.server.feature.group 4.0.5,
action=org.eclipse.equinox.internal.p2.touchpoint.natives.actions.CopyAction).
 I/O Error while copying
/home/wso2/4.0.5-release/platform/4.0.0/products/mb/2.1.0/modules/p2-profile/target/wso2carbon-core-4.0.5/repository/components/features/org.wso2.carbon.coordination.server_4.0.5/conf/jaas.conf
- see details.
Caused by:  java.io.IOException: Source:
/home/wso2/4.0.5-release/platform/4.0.0/products/mb/2.1.0/modules/p2-profile/target/wso2carbon-core-4.0.5/repository/components/features/org.wso2.carbon.coordination.server_4.0.5/conf/jaas.confdoes
not exists
Application failed, log file location:
/home/wso2/.m2/repository/org/eclipse/tycho/tycho-p2-runtime/0.13.0/eclipse/configuration/1353904931595.log


-- 
Thanks,
Shariq.
Phone: +94 777 202 225
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Error building Task Server - distro

2012-11-25 Thread Muhammed Shariq
[INFO]

[INFO] Reactor Summary:
[INFO]
[INFO] WSO2 Task Server - Aggregator Module .. SUCCESS [0.363s]
[INFO] WSO2 Task Server - Styles Parent .. SUCCESS [0.007s]
[INFO] WSO2 Task Server - Styles . SUCCESS [1.331s]
[INFO] WSO2 Task Server - Features Parent  SUCCESS [0.098s]
[INFO] WSO2 Task Server - Features Aggregator Module . SUCCESS [0.023s]
[INFO] WSO2 Task Server - Styles Features  SUCCESS [0.345s]
[INFO] WSO2 Task Server - P2 Profile Generation .. SUCCESS [15.142s]
[INFO] WSO2 Task Server - Distribution ... FAILURE [7.688s]
[INFO]

[INFO] BUILD FAILURE
[INFO]

[INFO] Total time: 25.640s
[INFO] Finished at: Sun Nov 25 20:47:23 PST 2012
[INFO] Final Memory: 22M/162M
[INFO]

[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-site-plugin:3.0:site (default) on project
wso2ts: Error during page generation: Error parsing
'/home/wso2/4.0.5-release/platform/4.0.0/products/ts/1.0.1/modules/distribution/src/site/xdoc/user_tasks.xml':
line [1] Error parsing the model: IOException: input contained no data
(position: START_DOCUMENT @1:0) caused by: java.io.EOFException: input
contained no data - [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e
switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions,
please read the following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the
command
[ERROR]   mvn goals -rf :wso2ts


-- 
Thanks,
Shariq.
Phone: +94 777 202 225
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] ESB doc gen build failures

2012-11-22 Thread Muhammed Shariq
The following error occurs .. please fix ..

[INFO] Total time: 2:13.841s
[INFO] Finished at: Thu Nov 22 04:24:49 PST 2012
[INFO] Final Memory: 60M/393M
[INFO]

[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-site-plugin:3.0:site (default) on project
wso2esb: Error during page generation: Error parsing
'/home/wso2/4.0.5-release/platform/4.0.0/products/esb/4.6.0/modules/distribution/src/site/xdoc/bammediationstatpub/docs/userguide.xml':
line [45] Error parsing the model: end tag name /li must be the same as
start tag br from line 34 (position: TEXT seen .../ol\n
 /li... @45:18) - [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e
switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions,
please read the following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the
command
[ERROR]   mvn goals -rf :wso2esb


On Thu, Nov 22, 2012 at 4:01 PM, Amila Maha Arachchi ami...@wso2.comwrote:

 Hi,

 There are doc gen build errors in ESB. Pls fix them.

 Regards,
 AmilaM.

 --
 *Amila Maharachchi*
 Technical Lead
 Member, Management Committee - Cloud  Platform TG
 WSO2, Inc.; http://wso2.com

 Blog: http://maharachchi.blogspot.com
 Mobile: +94719371446



 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev




-- 
Thanks,
Shariq.
Phone: +94 777 202 225
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] ESB build failure - Could not find artifact org.wso2.carbon.automation:org.wso2.carbon.automation.api:jar:4.0.5

2012-11-22 Thread Muhammed Shariq
[INFO]

[INFO] BUILD FAILURE
[INFO]

[INFO] Total time: 3:09.168s
[INFO] Finished at: Thu Nov 22 19:10:49 IST 2012
[INFO] Final Memory: 82M/320M
[INFO]

[ERROR] Failed to execute goal on project org.wso2.carbon.esb.tests: Could
not resolve dependencies for project
org.wso2.esb:org.wso2.carbon.esb.tests:jar:4.6.0: The following artifacts
could not be resolved:
org.wso2.carbon.automation:org.wso2.carbon.automation.api:jar:4.0.5,
org.wso2.carbon.automation:org.wso2.carbon.automation.core:jar:4.0.5,
org.wso2.carbon.automation:org.wso2.carbon.automation.utils:jar:4.0.5:
Could not find artifact
org.wso2.carbon.automation:org.wso2.carbon.automation.api:jar:4.0.5 in
wso2-nexus (http://maven.wso2.org/nexus/content/groups/wso2-public/) -
[Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e
switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions,
please read the following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the
command
[ERROR]   mvn goals -rf :org.wso2.carbon.esb.tests


-- 
Thanks,
Shariq.
Phone: +94 777 202 225
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] ESB build failure - Could not find artifact org.wso2.carbon.automation:org.wso2.carbon.automation.api:jar:4.0.5

2012-11-22 Thread Muhammed Shariq
Yup that worked .. thanks!

On Thu, Nov 22, 2012 at 7:45 PM, Nuwan Wimalasekara nuw...@wso2.com wrote:

 Hi Shariq,
 Please build clarity-framework 4.0.5 from [1] first or 4.0.5 patch release
 pom

 Thanks,
 Nuwnaw

 [1]
 https://svn.wso2.org/repos/wso2/carbon/platform/branches/4.0.0/platform-integration/clarity-framework/4.0.5/

 On Thu, Nov 22, 2012 at 7:19 PM, Muhammed Shariq sha...@wso2.com wrote:

 [INFO]
 
 [INFO] BUILD FAILURE
 [INFO]
 
 [INFO] Total time: 3:09.168s
 [INFO] Finished at: Thu Nov 22 19:10:49 IST 2012
 [INFO] Final Memory: 82M/320M
 [INFO]
 
 [ERROR] Failed to execute goal on project org.wso2.carbon.esb.tests:
 Could not resolve dependencies for project
 org.wso2.esb:org.wso2.carbon.esb.tests:jar:4.6.0: The following artifacts
 could not be resolved:
 org.wso2.carbon.automation:org.wso2.carbon.automation.api:jar:4.0.5,
 org.wso2.carbon.automation:org.wso2.carbon.automation.core:jar:4.0.5,
 org.wso2.carbon.automation:org.wso2.carbon.automation.utils:jar:4.0.5:
 Could not find artifact
 org.wso2.carbon.automation:org.wso2.carbon.automation.api:jar:4.0.5 in
 wso2-nexus (http://maven.wso2.org/nexus/content/groups/wso2-public/) -
 [Help 1]
 [ERROR]
 [ERROR] To see the full stack trace of the errors, re-run Maven with the
 -e switch.
 [ERROR] Re-run Maven using the -X switch to enable full debug logging.
 [ERROR]
 [ERROR] For more information about the errors and possible solutions,
 please read the following articles:
 [ERROR] [Help 1]
 http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
 [ERROR]
 [ERROR] After correcting the problems, you can resume the build with the
 command
 [ERROR]   mvn goals -rf :org.wso2.carbon.esb.tests


 --
 Thanks,
 Shariq.
 Phone: +94 777 202 225


 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev




 --
 Nuwan Wimalasekara
 Software Engineer - Test Automation
 WSO2, Inc.: http://wso2.com
 lean. enterprise. middleware

 phone: +94 71 668 4620







-- 
Thanks,
Shariq.
Phone: +94 777 202 225
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] ESB doc gen build failures

2012-11-22 Thread Muhammed Shariq
Fixed this ..

On Thu, Nov 22, 2012 at 6:07 PM, Kasun Indrasiri ka...@wso2.com wrote:

 Introduced by the newly added BAM mediator. Please fix it.

 On Thu, Nov 22, 2012 at 4:01 PM, Amila Maha Arachchi ami...@wso2.comwrote:

 Hi,

 There are doc gen build errors in ESB. Pls fix them.

 Regards,
 AmilaM.

 --
 *Amila Maharachchi*
 Technical Lead
 Member, Management Committee - Cloud  Platform TG
 WSO2, Inc.; http://wso2.com

 Blog: http://maharachchi.blogspot.com
 Mobile: +94719371446



 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev




 --
 Kasun Indrasiri
 Associate Technical Lead
 WSO2, Inc.; http://wso2.com
 lean.enterprise.middleware

 cell: +94 71 536 4128
 Blog : http://kasunpanorama.blogspot.com/

 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev




-- 
Thanks,
Shariq.
Phone: +94 777 202 225
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] ESB doc gen build failures

2012-11-22 Thread Muhammed Shariq
On Thu, Nov 22, 2012 at 9:27 PM, Pradeep Fernando prad...@wso2.com wrote:

 why we are maintaining maven based docs , while doing wiki based docs ?


I have no idea .. fixed in order to get the ESB pack building :)


 --Pradeep


 On Thu, Nov 22, 2012 at 7:55 PM, Muhammed Shariq sha...@wso2.com wrote:

 Fixed this ..


 On Thu, Nov 22, 2012 at 6:07 PM, Kasun Indrasiri ka...@wso2.com wrote:

 Introduced by the newly added BAM mediator. Please fix it.

 On Thu, Nov 22, 2012 at 4:01 PM, Amila Maha Arachchi ami...@wso2.comwrote:

 Hi,

 There are doc gen build errors in ESB. Pls fix them.

 Regards,
 AmilaM.

 --
 *Amila Maharachchi*
 Technical Lead
 Member, Management Committee - Cloud  Platform TG
 WSO2, Inc.; http://wso2.com

 Blog: http://maharachchi.blogspot.com
 Mobile: +94719371446



 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev




 --
 Kasun Indrasiri
 Associate Technical Lead
 WSO2, Inc.; http://wso2.com
 lean.enterprise.middleware

 cell: +94 71 536 4128
 Blog : http://kasunpanorama.blogspot.com/

 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev




 --
 Thanks,
 Shariq.
 Phone: +94 777 202 225


 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev




 --
 Pradeep Fernando
 Senior Software Engineer
 Member, Management Committee - Platform  Cloud Technologies
 WSO2 Inc; http://wso2.com/

 blog: http://pradeepfernando.blogspot.com/
 m: +94776603662




-- 
Thanks,
Shariq.
Phone: +94 777 202 225
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Greg - 4.5.3 build failure .. Please check ..

2012-11-22 Thread Muhammed Shariq
[INFO]

[INFO] BUILD FAILURE
[INFO]

[INFO] Total time: 27.654s
[INFO] Finished at: Thu Nov 22 22:49:44 IST 2012
[INFO] Final Memory: 144M/430M
[INFO]

[ERROR] Failed to execute goal on project
org.wso2.governance.styles.feature: Could not resolve dependencies for
project org.wso2.governance:org.wso2.governance.styles.feature:pom:4.5.3:
The repository system is offline but the artifact
org.wso2.governance:org.wso2.governance.styles.dashboard:jar:4.5.0 is not
available in the local repository. - [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e
switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions,
please read the following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the
command
[ERROR]   mvn goals -rf :org.wso2.governance.styles.feature


-- 
Thanks,
Shariq.
Phone: +94 777 202 225
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Refactoring CarbonContext#getRegistry() to be tenant aware. {[Commits] [Carbon-kernel] svn commit r148829 - carbon/kernel/branches/4.0.0/core/org.wso2.carbon.utils/4.0.5/src/main/java/org/ws

2012-11-22 Thread Muhammed Shariq
On Thu, Nov 22, 2012 at 12:33 AM, Senaka Fernando sen...@wso2.com wrote:

 Hi Shariq,

 In the past, this code was written in a way, that some upstream code will
 actually set stuff to the CarbonContext, but I think that practice. is no
 longer followed. Anyway though we tried to mandate that sometime back, it
 seems to be more natural to do what you've done, because what we have been
 doing is not very maintainable.

 Now, there is a method to retrieve a getConfigUserRegistry(), which will
 return the registry instance of an anonymous user. This is an
 unauthenticated user. When it comes to tenants, we don't quite have the
 same concept and the user name must actually be passed when requesting for
 a registry. Also, in the case of the ST, the anonymous user's registry is
 not what we should be returning from that CarbonContext, but that of the
 logged in user. If a user is not logged in, we can probably return null or
 throw an exception if someone tries to use the CarbonContext. This fact is
 briefly explained in the RegistryService Java API docs.


I've modified the CC code to use the following methods in Registry service
in order to return the appropriate User registries;

- RegistryService#getGovernanceUserRegistry(String userName, int tenantId)
- RegistryService#getConfigUserRegistry(String userName, int tenantId)


 Thanks,
 Senaka.


 On Wed, Nov 21, 2012 at 11:57 PM, Muhammed Shariq sha...@wso2.com wrote:

 Hi folks,

 While debugging some CC related issue, we figured that the CarbonContext
 was not setting the Registry in a tenant aware manner, it was simple
 returning the ST registry as follows,

 - carbonContextDataHolder.getConfigSystemRegistry();
 - carbonContextDataHolder.getConfigUserRegistry();

 I have modified it to return the particular tenant's registries. However
 I couldn't find appropriate methods to in the registryService to obtain
 UserConfig registry and UserGovernance registry, so after a chat with Azeez
 we decided to return null instead of returning the ST registry ..

 GReg folks, how do we retrieve the tenant specific UserConfig and
 UserGovernance registry ?!

 Also please review the commit and holler if there are any concerns /
 issues ..

 -- Forwarded message --
 From: sha...@wso2.com
 Date: Wed, Nov 21, 2012 at 11:21 PM
 Subject: [Commits] [Carbon-kernel] svn commit r148829 -
 carbon/kernel/branches/4.0.0/core/org.wso2.carbon.utils/4.0.5/src/main/java/org/wso2/carbon/context
 To: comm...@wso2.org


 Author: shariq
 Date: Wed Nov 21 23:21:17 2012
 New Revision: 148829
 URL: http://wso2.org/svn/browse/wso2?view=revrevision=148829

 Log:
 Set the correct tenant's registry in CarbonContext.


 Modified:

  
 carbon/kernel/branches/4.0.0/core/org.wso2.carbon.utils/4.0.5/src/main/java/org/wso2/carbon/context/CarbonContext.java

 Modified:
 carbon/kernel/branches/4.0.0/core/org.wso2.carbon.utils/4.0.5/src/main/java/org/wso2/carbon/context/CarbonContext.java
 URL:
 http://wso2.org/svn/browse/wso2/carbon/kernel/branches/4.0.0/core/org.wso2.carbon.utils/4.0.5/src/main/java/org/wso2/carbon/context/CarbonContext.java?rev=148829r1=148828r2=148829view=diff

 ==
 ---
 carbon/kernel/branches/4.0.0/core/org.wso2.carbon.utils/4.0.5/src/main/java/org/wso2/carbon/context/CarbonContext.java
  (original)
 +++
 carbon/kernel/branches/4.0.0/core/org.wso2.carbon.utils/4.0.5/src/main/java/org/wso2/carbon/context/CarbonContext.java
  Wed Nov 21 23:21:17 2012
 @@ -22,10 +22,12 @@
  import net.sf.jsr107cache.CacheManager;
  import org.wso2.carbon.base.CarbonBaseUtils;
  import org.wso2.carbon.context.internal.CarbonContextDataHolder;
 +import org.wso2.carbon.context.internal.OSGiDataHolder;
  import org.wso2.carbon.queuing.CarbonQueue;
  import org.wso2.carbon.queuing.CarbonQueueManager;
  import org.wso2.carbon.registry.api.Registry;
  import org.wso2.carbon.user.api.UserRealm;
 +import org.wso2.carbon.utils.multitenancy.MultitenantConstants;

  import javax.naming.Context;
  import javax.naming.InitialContext;
 @@ -49,6 +51,7 @@
  // cleaner and easy to use API around the CarbonContext holder.

  private CarbonContextDataHolder carbonContextHolder = null;
 +private static OSGiDataHolder dataHolder =
 OSGiDataHolder.getInstance();

  /**
   * Creates a CarbonContext using the given CarbonContext holder as
 its backing instance.
 @@ -127,18 +130,51 @@
   * @return the requested registry instance.
   */
  public Registry getRegistry(RegistryType type) {
 +int tenantId = getTenantId();
  CarbonContextDataHolder carbonContextDataHolder =
 getCarbonContextDataHolder();
 +Registry registry;
  switch (type) {
  case USER_CONFIGURATION:
 -return carbonContextDataHolder.getConfigUserRegistry();
 +// No registry service method to obtain user config
 registry by tenant id ?!
 +return

[Dev] Greg Build failing in builder .. please have a look ..

2012-11-22 Thread Muhammed Shariq
Installing org.wso2.carbon.load.balance.agent.server.feature.group 2.0.0.
Installing org.wso2.carbon.captcha.mgt.server.feature.group 4.0.0.
Installation failed.
Cannot complete the install because one or more required items could not be
found.
 Software being installed: WSO2 Carbon - HumanTask Core Feature 4.0.5
(org.wso2.carbon.humantask.server.feature.group 4.0.5)
 Missing requirement: WSO2 Carbon - HumanTask Core Feature 4.0.5
(org.wso2.carbon.humantask.server.feature.group 4.0.5) requires
'org.wso2.carbon.datasource.server.feature.group [4.0.5,4.1.0)' but it
could not be found
Application failed, log file location:
/home/wso2/.m2/repository/org/eclipse/tycho/tycho-p2-runtime/0.13.0/eclipse/configuration/1353653191807.log

[INFO]

[INFO] Reactor Summary:


-- 
Thanks,
Shariq.
Phone: +94 777 202 225
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Refactoring CarbonContext#getRegistry() to be tenant aware. {[Commits] [Carbon-kernel] svn commit r148829 - carbon/kernel/branches/4.0.0/core/org.wso2.carbon.utils/4.0.5/src/main/java/org/wso2/c

2012-11-21 Thread Muhammed Shariq
Hi folks,

While debugging some CC related issue, we figured that the CarbonContext
was not setting the Registry in a tenant aware manner, it was simple
returning the ST registry as follows,

- carbonContextDataHolder.getConfigSystemRegistry();
- carbonContextDataHolder.getConfigUserRegistry();

I have modified it to return the particular tenant's registries. However I
couldn't find appropriate methods to in the registryService to obtain
UserConfig registry and UserGovernance registry, so after a chat with Azeez
we decided to return null instead of returning the ST registry ..

GReg folks, how do we retrieve the tenant specific UserConfig and
UserGovernance registry ?!

Also please review the commit and holler if there are any concerns / issues
..

-- Forwarded message --
From: sha...@wso2.com
Date: Wed, Nov 21, 2012 at 11:21 PM
Subject: [Commits] [Carbon-kernel] svn commit r148829 -
carbon/kernel/branches/4.0.0/core/org.wso2.carbon.utils/4.0.5/src/main/java/org/wso2/carbon/context
To: comm...@wso2.org


Author: shariq
Date: Wed Nov 21 23:21:17 2012
New Revision: 148829
URL: http://wso2.org/svn/browse/wso2?view=revrevision=148829

Log:
Set the correct tenant's registry in CarbonContext.


Modified:

 
carbon/kernel/branches/4.0.0/core/org.wso2.carbon.utils/4.0.5/src/main/java/org/wso2/carbon/context/CarbonContext.java

Modified:
carbon/kernel/branches/4.0.0/core/org.wso2.carbon.utils/4.0.5/src/main/java/org/wso2/carbon/context/CarbonContext.java
URL:
http://wso2.org/svn/browse/wso2/carbon/kernel/branches/4.0.0/core/org.wso2.carbon.utils/4.0.5/src/main/java/org/wso2/carbon/context/CarbonContext.java?rev=148829r1=148828r2=148829view=diff
==
---
carbon/kernel/branches/4.0.0/core/org.wso2.carbon.utils/4.0.5/src/main/java/org/wso2/carbon/context/CarbonContext.java
 (original)
+++
carbon/kernel/branches/4.0.0/core/org.wso2.carbon.utils/4.0.5/src/main/java/org/wso2/carbon/context/CarbonContext.java
 Wed Nov 21 23:21:17 2012
@@ -22,10 +22,12 @@
 import net.sf.jsr107cache.CacheManager;
 import org.wso2.carbon.base.CarbonBaseUtils;
 import org.wso2.carbon.context.internal.CarbonContextDataHolder;
+import org.wso2.carbon.context.internal.OSGiDataHolder;
 import org.wso2.carbon.queuing.CarbonQueue;
 import org.wso2.carbon.queuing.CarbonQueueManager;
 import org.wso2.carbon.registry.api.Registry;
 import org.wso2.carbon.user.api.UserRealm;
+import org.wso2.carbon.utils.multitenancy.MultitenantConstants;

 import javax.naming.Context;
 import javax.naming.InitialContext;
@@ -49,6 +51,7 @@
 // cleaner and easy to use API around the CarbonContext holder.

 private CarbonContextDataHolder carbonContextHolder = null;
+private static OSGiDataHolder dataHolder =
OSGiDataHolder.getInstance();

 /**
  * Creates a CarbonContext using the given CarbonContext holder as its
backing instance.
@@ -127,18 +130,51 @@
  * @return the requested registry instance.
  */
 public Registry getRegistry(RegistryType type) {
+int tenantId = getTenantId();
 CarbonContextDataHolder carbonContextDataHolder =
getCarbonContextDataHolder();
+Registry registry;
 switch (type) {
 case USER_CONFIGURATION:
-return carbonContextDataHolder.getConfigUserRegistry();
+// No registry service method to obtain user config
registry by tenant id ?!
+return null;
+//return carbonContextDataHolder.getConfigUserRegistry();
 case SYSTEM_CONFIGURATION:
-return carbonContextDataHolder.getConfigSystemRegistry();
+if (tenantId != MultitenantConstants.INVALID_TENANT_ID) {
+try {
+registry =
dataHolder.getRegistryService().getConfigSystemRegistry(tenantId);
+return null;
+} catch (Exception e) {
+// If we can't obtain an instance of the registry,
we'll simply return null. The
+// errors that lead to this situation will be
logged by the Registry Kernel.
+}
+return null;
+}
 case USER_GOVERNANCE:
-return carbonContextDataHolder.getGovernanceUserRegistry();
+// No registry service method to obtain user governance
registry by tenant id ?!
+return null;
+//return
carbonContextDataHolder.getGovernanceUserRegistry();
 case SYSTEM_GOVERNANCE:
-return
carbonContextDataHolder.getGovernanceSystemRegistry();
+if (tenantId != MultitenantConstants.INVALID_TENANT_ID) {
+try {
+registry =
dataHolder.getRegistryService().getGovernanceSystemRegistry(tenantId);
+return registry;
+} catch (Exception e) {
+  

Re: [Dev] Refactoring CarbonContext#getRegistry() to be tenant aware. {[Commits] [Carbon-kernel] svn commit r148829 - carbon/kernel/branches/4.0.0/core/org.wso2.carbon.utils/4.0.5/src/main/java/org/ws

2012-11-21 Thread Muhammed Shariq
On Thu, Nov 22, 2012 at 12:33 AM, Senaka Fernando sen...@wso2.com wrote:

 Hi Shariq,

 In the past, this code was written in a way, that some upstream code will
 actually set stuff to the CarbonContext, but I think that practice. is no
 longer followed. Anyway though we tried to mandate that sometime back, it
 seems to be more natural to do what you've done, because what we have been
 doing is not very maintainable.


Thanks for checking the diff and verifying! Also when I debugged there was
no upstream code setting the appropriate registry, so I had to fix it this
way ...


 Now, there is a method to retrieve a getConfigUserRegistry(), which will
 return the registry instance of an anonymous user. This is an
 unauthenticated user. When it comes to tenants, we don't quite have the
 same concept and the user name must actually be passed when requesting for
 a registry. Also, in the case of the ST, the anonymous user's registry is
 not what we should be returning from that CarbonContext, but that of the
 logged in user. If a user is not logged in, we can probably return null or
 throw an exception if someone tries to use the CarbonContext. This fact is
 briefly explained in the RegistryService Java API docs.

 Thanks,
 Senaka.


 On Wed, Nov 21, 2012 at 11:57 PM, Muhammed Shariq sha...@wso2.com wrote:

 Hi folks,

 While debugging some CC related issue, we figured that the CarbonContext
 was not setting the Registry in a tenant aware manner, it was simple
 returning the ST registry as follows,

 - carbonContextDataHolder.getConfigSystemRegistry();
 - carbonContextDataHolder.getConfigUserRegistry();

 I have modified it to return the particular tenant's registries. However
 I couldn't find appropriate methods to in the registryService to obtain
 UserConfig registry and UserGovernance registry, so after a chat with Azeez
 we decided to return null instead of returning the ST registry ..

 GReg folks, how do we retrieve the tenant specific UserConfig and
 UserGovernance registry ?!

 Also please review the commit and holler if there are any concerns /
 issues ..

 -- Forwarded message --
 From: sha...@wso2.com
 Date: Wed, Nov 21, 2012 at 11:21 PM
 Subject: [Commits] [Carbon-kernel] svn commit r148829 -
 carbon/kernel/branches/4.0.0/core/org.wso2.carbon.utils/4.0.5/src/main/java/org/wso2/carbon/context
 To: comm...@wso2.org


 Author: shariq
 Date: Wed Nov 21 23:21:17 2012
 New Revision: 148829
 URL: http://wso2.org/svn/browse/wso2?view=revrevision=148829

 Log:
 Set the correct tenant's registry in CarbonContext.


 Modified:

  
 carbon/kernel/branches/4.0.0/core/org.wso2.carbon.utils/4.0.5/src/main/java/org/wso2/carbon/context/CarbonContext.java

 Modified:
 carbon/kernel/branches/4.0.0/core/org.wso2.carbon.utils/4.0.5/src/main/java/org/wso2/carbon/context/CarbonContext.java
 URL:
 http://wso2.org/svn/browse/wso2/carbon/kernel/branches/4.0.0/core/org.wso2.carbon.utils/4.0.5/src/main/java/org/wso2/carbon/context/CarbonContext.java?rev=148829r1=148828r2=148829view=diff

 ==
 ---
 carbon/kernel/branches/4.0.0/core/org.wso2.carbon.utils/4.0.5/src/main/java/org/wso2/carbon/context/CarbonContext.java
  (original)
 +++
 carbon/kernel/branches/4.0.0/core/org.wso2.carbon.utils/4.0.5/src/main/java/org/wso2/carbon/context/CarbonContext.java
  Wed Nov 21 23:21:17 2012
 @@ -22,10 +22,12 @@
  import net.sf.jsr107cache.CacheManager;
  import org.wso2.carbon.base.CarbonBaseUtils;
  import org.wso2.carbon.context.internal.CarbonContextDataHolder;
 +import org.wso2.carbon.context.internal.OSGiDataHolder;
  import org.wso2.carbon.queuing.CarbonQueue;
  import org.wso2.carbon.queuing.CarbonQueueManager;
  import org.wso2.carbon.registry.api.Registry;
  import org.wso2.carbon.user.api.UserRealm;
 +import org.wso2.carbon.utils.multitenancy.MultitenantConstants;

  import javax.naming.Context;
  import javax.naming.InitialContext;
 @@ -49,6 +51,7 @@
  // cleaner and easy to use API around the CarbonContext holder.

  private CarbonContextDataHolder carbonContextHolder = null;
 +private static OSGiDataHolder dataHolder =
 OSGiDataHolder.getInstance();

  /**
   * Creates a CarbonContext using the given CarbonContext holder as
 its backing instance.
 @@ -127,18 +130,51 @@
   * @return the requested registry instance.
   */
  public Registry getRegistry(RegistryType type) {
 +int tenantId = getTenantId();
  CarbonContextDataHolder carbonContextDataHolder =
 getCarbonContextDataHolder();
 +Registry registry;
  switch (type) {
  case USER_CONFIGURATION:
 -return carbonContextDataHolder.getConfigUserRegistry();
 +// No registry service method to obtain user config
 registry by tenant id ?!
 +return null;
 +//return carbonContextDataHolder.getConfigUserRegistry();
  case

[Dev] ESB build failure, please fix asap !!

2012-11-20 Thread Muhammed Shariq
Installing org.wso2.carbon.transaction.manager.feature.group 4.0.2.
Installation failed.
Cannot complete the install because of a conflicting dependency.
 Software being installed: WSO2 Carbon - Security Management Feature 4.0.2
(org.wso2.carbon.security.mgt.feature.group 4.0.2)
 Software being installed: WSO2 Carbon - Service Management Feature 4.0.5
(org.wso2.carbon.service.mgt.feature.group 4.0.5)
 Only one of the following can be installed at once:
  WSO2 Carbon - Security Management Core Feature 4.0.2
(org.wso2.carbon.security.mgt.server.feature.jar 4.0.2)
  WSO2 Carbon - Security Management Core Feature 4.0.3
(org.wso2.carbon.security.mgt.server.feature.jar 4.0.3)
 Cannot satisfy dependency:
  From: WSO2 Carbon - Security Management Feature 4.0.2
(org.wso2.carbon.security.mgt.feature.group 4.0.2)
  To: org.wso2.carbon.security.mgt.server.feature.group [4.0.2]
 Cannot satisfy dependency:
  From: WSO2 Carbon - Security Management Core Feature 4.0.2
(org.wso2.carbon.security.mgt.server.feature.group 4.0.2)
  To: org.wso2.carbon.security.mgt.server.feature.jar [4.0.2]
 Cannot satisfy dependency:
  From: WSO2 Carbon - Security Management Core Feature 4.0.3
(org.wso2.carbon.security.mgt.server.feature.group 4.0.3)
  To: org.wso2.carbon.security.mgt.server.feature.jar [4.0.3]
 Cannot satisfy dependency:
  From: WSO2 Carbon - Service Management Feature 4.0.5
(org.wso2.carbon.service.mgt.feature.group 4.0.5)
  To: org.wso2.carbon.service.mgt.server.feature.group [4.0.5]
 Cannot satisfy dependency:
  From: WSO2 Carbon - Service Management Core Feature 4.0.5
(org.wso2.carbon.service.mgt.server.feature.group 4.0.5)
  To: org.wso2.carbon.security.mgt.server.feature.group [4.0.3]
Application failed, log file location:
/home/wso2/.m2/repository/org/eclipse/tycho/tycho-p2-runtime/0.13.0/eclipse/configuration/1353431197904.log


-- 
Thanks,
Shariq.
Phone: +94 777 202 225
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] ESB build failure, please fix asap !!

2012-11-20 Thread Muhammed Shariq
Thanks Dinusha !!

On Tue, Nov 20, 2012 at 11:07 PM, Dinusha Senanayaka dinu...@wso2.comwrote:

 Fixed r148597..

 please refer to the thread [dev]-Please update the 4.0.5 products
 p2-profiles. If your product p2-profile include both
 service.mgt.feature-4.0.5 and security.mgt.feature, then please update the
 security.mgt.feature version to 4.0.3.

 Regards,
 Dinusha.

 On Tue, Nov 20, 2012 at 10:54 PM, Muhammed Shariq sha...@wso2.com wrote:

 Installing org.wso2.carbon.transaction.manager.feature.group 4.0.2.
 Installation failed.
 Cannot complete the install because of a conflicting dependency.
  Software being installed: WSO2 Carbon - Security Management Feature
 4.0.2 (org.wso2.carbon.security.mgt.feature.group 4.0.2)
  Software being installed: WSO2 Carbon - Service Management Feature 4.0.5
 (org.wso2.carbon.service.mgt.feature.group 4.0.5)
  Only one of the following can be installed at once:
   WSO2 Carbon - Security Management Core Feature 4.0.2
 (org.wso2.carbon.security.mgt.server.feature.jar 4.0.2)
   WSO2 Carbon - Security Management Core Feature 4.0.3
 (org.wso2.carbon.security.mgt.server.feature.jar 4.0.3)
  Cannot satisfy dependency:
   From: WSO2 Carbon - Security Management Feature 4.0.2
 (org.wso2.carbon.security.mgt.feature.group 4.0.2)
   To: org.wso2.carbon.security.mgt.server.feature.group [4.0.2]
  Cannot satisfy dependency:
   From: WSO2 Carbon - Security Management Core Feature 4.0.2
 (org.wso2.carbon.security.mgt.server.feature.group 4.0.2)
   To: org.wso2.carbon.security.mgt.server.feature.jar [4.0.2]
  Cannot satisfy dependency:
   From: WSO2 Carbon - Security Management Core Feature 4.0.3
 (org.wso2.carbon.security.mgt.server.feature.group 4.0.3)
   To: org.wso2.carbon.security.mgt.server.feature.jar [4.0.3]
  Cannot satisfy dependency:
   From: WSO2 Carbon - Service Management Feature 4.0.5
 (org.wso2.carbon.service.mgt.feature.group 4.0.5)
   To: org.wso2.carbon.service.mgt.server.feature.group [4.0.5]
  Cannot satisfy dependency:
   From: WSO2 Carbon - Service Management Core Feature 4.0.5
 (org.wso2.carbon.service.mgt.server.feature.group 4.0.5)
   To: org.wso2.carbon.security.mgt.server.feature.group [4.0.3]
 Application failed, log file location:
 /home/wso2/.m2/repository/org/eclipse/tycho/tycho-p2-runtime/0.13.0/eclipse/configuration/1353431197904.log


 --
 Thanks,
 Shariq.
 Phone: +94 777 202 225


 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev





-- 
Thanks,
Shariq.
Phone: +94 777 202 225
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Online build failure in builder

2012-11-19 Thread Muhammed Shariq
[INFO]

[INFO] BUILD FAILURE
[INFO]

[INFO] Total time: 14:00.787s
[INFO] Finished at: Mon Nov 19 23:18:03 PST 2012
[INFO] Final Memory: 268M/879M
[INFO]

[ERROR] Failed to execute goal on project
org.wso2.appserver.integration.tests.integration: Could not resolve
dependencies for project
org.wso2.appserver:org.wso2.appserver.integration.tests.integration:jar:5.0.2:
The following artifacts could not be resolved:
org.wso2.carbon:org.wso2.carbon.org.wso2.appserver.integration.tests.integration.framework:jar:4.0.2,
org.wso2.carbon:org.wso2.carbon.org.wso2.appserver.integration.tests.integration.core:jar:tests:4.0.1:
Could not find artifact
org.wso2.carbon:org.wso2.carbon.org.wso2.appserver.integration.tests.integration.framework:jar:4.0.2
in wso2-nexus (http://maven.wso2.org/nexus/content/groups/wso2-public/) -
[Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e
switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions,
please read the following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the
command
[ERROR]   mvn goals -rf :org.wso2.appserver.integration.tests.integration


-- 
Thanks,
Shariq.
Phone: +94 777 202 225
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] AS 5.0.2 build failure ...

2012-11-17 Thread Muhammed Shariq
Please fix ..

[INFO]

[INFO] BUILD FAILURE
[INFO]

[INFO] Total time: 2:25.546s
[INFO] Finished at: Sat Nov 17 16:12:31 IST 2012
[INFO] Final Memory: 90M/416M
[INFO]

[ERROR] Failed to execute goal on project
org.wso2.stratos.appserver.dashboard.ui: Could not resolve dependencies for
project
org.wso2.appserver:org.wso2.stratos.appserver.dashboard.ui:bundle:2.0.0:
The following artifacts could not be resolved:
org.wso2.carbon:org.wso2.carbon.ui:jar:4.0.5,
org.wso2.carbon:org.wso2.carbon.statistics.ui:jar:4.0.5: The repository
system is offline but the artifact
org.wso2.carbon:org.wso2.carbon.ui:jar:4.0.5 is not available in the local
repository. - [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e
switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions,
please read the following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the
command
[ERROR]   mvn goals -rf :org.wso2.stratos.appserver.dashboard.ui


-- 
Thanks,
Shariq.
Phone: +94 777 202 225
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Missing jar in nexus - org.apache.hadoop:hadoop-core:jar:0.20.203.1-wso2v2

2012-11-16 Thread Muhammed Shariq
Hi Dileepa,

It seems the hadoop-core jar is not being deployed in nexus and I am
getting the following error .. can you please deploy it to the nexus repo
?!

[INFO]

[INFO] BUILD FAILURE
[INFO]

[INFO] Total time: 3.255s
[INFO] Finished at: Fri Nov 16 06:23:03 PST 2012
[INFO] Final Memory: 55M/357M
[INFO]

[ERROR] Failed to execute goal on project
org.wso2.carbon.analytics.hive.server.feature: Could not resolve
dependencies for project
org.wso2.carbon:org.wso2.carbon.analytics.hive.server.feature:pom:4.0.5:
Failure to find org.apache.hadoop:hadoop-core:jar:0.20.203.1-wso2v2 in
http://maven.wso2.org/nexus/content/groups/wso2-public/ was cached in the
local repository, resolution will not be reattempted until the update
interval of wso2-nexus has elapsed or updates are forced - [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e
switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions,
please read the following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException


-- 
Thanks,
Shariq.
Phone: +94 777 202 225
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Carbon Kernel version not upgraded to 4.0.5 in some products ...

2012-11-16 Thread Muhammed Shariq
Thanks Dinusha and Subash .. i have upgraded it in ESB ..

On Fri, Nov 16, 2012 at 5:55 PM, Dinusha Senanayaka dinu...@wso2.comwrote:



 On Fri, Nov 16, 2012 at 5:23 PM, Muhammed Shariq sha...@wso2.com wrote:

 Hi folks,

 Please update the carbon kernel version to 4.0.5 in the following
 products in 4.0.5 branch ...

 1. DSS
 2. TS
 3. ESB
 4. GReg

 Please update version and ack ASAP ...


 Done for TS  DSS.

 Regards,
 Dinusha.


 --
 Thanks,
 Shariq.
 Phone: +94 777 202 225





-- 
Thanks,
Shariq.
Phone: +94 777 202 225
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Compilation failure in throttling.agent

2012-11-15 Thread Muhammed Shariq
On Thu, Nov 15, 2012 at 1:41 PM, Amila De Silva ami...@wso2.com wrote:

 Hi,
 Both the service-stubs/org.wso2.carbon.throttling.agent.stub/4.0.5 and
 platform/4.0.0/components/stratos/throttling/org.wso2.carbon.throttling.agent/
 2.0.5. are at
 147970 after updating. Still I get the same error.

 Pom inside the service-stubs/org.wso2.carbon.throttling.agent.stub/4.0.5
 is missing the version tag. It's after fixing that part, the above
 compilation failure occurred.


Had some local changes that i hadn't committed in the agent stub ..
committed it in r147981 .. please update and build .. sorry about the
confusion .. :)



 On Thu, Nov 15, 2012 at 12:31 PM, Muhammed Shariq sha...@wso2.com wrote:

 Hi,

 Yes the stub is in patch release pom .. please update the stub
 (service-stubs/org.wso2.carbon.throttling.agent.stub/4.0.5) and also update
 the component and try building it .. ?!


 On Thu, Nov 15, 2012 at 12:26 PM, Amila Maha Arachchi ami...@wso2.comwrote:

 Pls check whether you have built throttling agent stub 4.0.5.

 Shariq,

 Did you add it to patch-release pom?


 On Thu, Nov 15, 2012 at 12:16 PM, Amila De Silva ami...@wso2.comwrote:

 Hi,
 Following failure occured when building
 platform/4.0.0/components/stratos/throttling/org.wso2.carbon.throttling.agent/
 2.0.5.

 [INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @
 org.wso2.carbon.throttling.agent ---
 [INFO] Compiling 18 source files to
 /home/amila/checkout/platform/4.0.0/components/stratos/throttling/org.wso2.carbon.throttling.agent/2.0.5/target/classes
 [INFO] -
 [ERROR] COMPILATION ERROR :
 [INFO] -
 [ERROR]
 /home/amila/checkout/platform/4.0.0/components/stratos/throttling/org.wso2.carbon.throttling.agent/2.0.5/src/main/java/org/wso2/carbon/throttling/agent/client/MultitenancyThrottlingServiceClient.java:[59,12]
 executeThrottlingRules() in
 org.wso2.carbon.throttling.agent.stub.services.MultitenancyThrottlingServiceStub
 cannot be applied to (int)
 [INFO] 1 error
 [INFO] -
 [INFO]
 
 [INFO] BUILD FAILURE
 [INFO]
 
 [INFO] Total time: 5.086s
 [INFO] Finished at: Thu Nov 15 12:06:13 IST 2012
 [INFO] Final Memory: 31M/286M
 [INFO]
 
 [ERROR] Failed to execute goal
 org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile
 (default-compile) on project org.wso2.carbon.throttling.agent: Compilation
 failure
 [ERROR]
 /home/amila/checkout/platform/4.0.0/components/stratos/throttling/org.wso2.carbon.throttling.agent/2.0.5/src/main/java/org/wso2/carbon/throttling/agent/client/MultitenancyThrottlingServiceClient.java:[59,12]
 executeThrottlingRules() in
 org.wso2.carbon.throttling.agent.stub.services.MultitenancyThrottlingServiceStub
 cannot be applied to (int)
 [ERROR] - [Help 1]
 [ERROR]
 [ERROR] To see the full stack trace of the errors, re-run Maven with
 the -e switch.
 [ERROR] Re-run Maven using the -X switch to enable full debug logging.
 [ERROR]
 [ERROR] For more information about the errors and possible solutions,
 please read the following articles:
 [ERROR] [Help 1]
 http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException


 Regards,
 AmilaD

 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev




 --
 *Amila Maharachchi*
 Technical Lead
 Member, Management Committee - Cloud  Platform TG
 WSO2, Inc.; http://wso2.com

 Blog: http://maharachchi.blogspot.com
 Mobile: +94719371446





 --
 Thanks,
 Shariq.
 Phone: +94 777 202 225





-- 
Thanks,
Shariq.
Phone: +94 777 202 225
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [BUILD FAILED] WSO2 Carbon 4.0.x Platform_4.0.5 build #5

2012-11-15 Thread Muhammed Shariq
Hi Maheshika,

This error occurs because the following module is listed in the root pom's
builder profile;

moduleplatform-integration/clarity-framework/module

but such a module does not exist .. So I am gonna remove it from the room
builder profile ..

@Automation folks - please add this module back if you branch for 4.0.5 ..

On Thu, Nov 15, 2012 at 5:43 PM, Maheshika Goonetilleke
mahesh...@wso2.comwrote:

 Hi all

 The Platform_4.0.5 build has failed due to the following error;

 15-Nov-2012 03:32:46 [ERROR] The build could not read 1 project - [Help
 1]15-Nov-2012 03:32:46 [ERROR]   15-Nov-2012 03:32:46 [ERROR]   The
 project org.wso2.carbon:platform-patch-releases:4.0.5
 (/home/bamboo/Bamboo-3.4/source-repository/build-dir/WCB001-PLA005-JOB1/patch-releases/4.0.5/pom.xml)
 has 1 error 15-Nov-2012 03:32:46[ERROR] Child module
 /home/bamboo/Bamboo-3.4/source-repository/build-dir/WCB001-PLA005-JOB1/patch-releases/4.0.5/platform-integration/clarity-framework
 of
 /home/bamboo/Bamboo-3.4/source-repository/build-dir/WCB001-PLA005-JOB1/patch-releases/4.0.5/pom.xml
 does not exist 15-Nov-2012 03:32:46 [ERROR]

 Appreciate if this could be rectified.

 http://wso2.org/bamboo/browse/WCB001-PLA005-5/log

 --

 Thanks  Best Regards,

 Maheshika Goonetilleke
 Engineering Process Coordinator
 WSO2 Inc

 www.wso2.com/

 M : 0773 596707




-- 
Thanks,
Shariq.
Phone: +94 777 202 225
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Error executing sql statements in DSS build - 4.0.5 branch ...

2012-11-15 Thread Muhammed Shariq
main:
  [sql] Executing resource:
/home/wso2/4.0.5-release/platform/4.0.0/products/dss/3.0.1/modules/samples/sql/h2/CreateTables2.sql
  [sql] 2 of 2 SQL statements executed successfully
[INFO] Executed tasks
[INFO]
[INFO] --- maven-antrun-plugin:1.7:run (create-rss-database) @ wso2dss ---
[WARNING] Parameter tasks is deprecated, use target instead
[INFO] Executing tasks

main:
  [sql] Executing resource:
/home/wso2/4.0.5-release/platform/4.0.0/products/dss/3.0.1/modules/distribution/src/resources/dbscripts/wso2_rss.sql
  [sql] Failed to execute:   CREATE TABLE RM_USER_DATABASE_PRIVILEGE (
username VARCHAR(16), database_name VARCHAR(128), rss_instance_name
VARCHAR(128), tenant_id INTEGER, select_priv enum('N','Y') NOT NULL,
insert_priv enum('N','Y') NOT NULL, update_priv enum('N','Y') NOT NULL,
delete_priv enum('N','Y') NOT NULL, create_priv enum('N','Y') NOT NULL,
drop_priv enum('N','Y') NOT NULL, grant_priv enum('N','Y') NOT NULL,
references_priv enum('N','Y') NOT NULL, index_priv enum('N','Y') NOT NULL,
alter_priv enum('N','Y') NOT NULL, create_tmp_table_priv enum('N','Y') NOT
NULL, lock_tables_priv enum('N','Y') NOT NULL, create_view enum('N','Y')
NOT NULL, show_view_priv enum('N','Y') NOT NULL, create_routine_priv
enum('N','Y') NOT NULL, alter_routine_priv enum('N','Y') NOT NULL,
execute_priv enum('N','Y') NOT NULL, event_priv enum('N','Y') NOT NULL,
trigger_priv enum('N','Y') NOT NULL, PRIMARY KEY (username, database_name,
rss_instance_name, tenant_id), FOREIGN KEY (username) REFERENCES
RM_DATABASE_USER (username), FOREIGN KEY (database_name) REFERENCES
RM_DATABASE (name), FOREIGN KEY (rss_instance_name) REFERENCES
RM_SERVER_INSTANCE (name)  )
  [sql] org.h2.jdbc.JdbcSQLException: Unknown data type: ENUM; SQL
statement:
  [sql]   CREATE TABLE RM_USER_DATABASE_PRIVILEGE ( username
VARCHAR(16), database_name VARCHAR(128), rss_instance_name VARCHAR(128),
tenant_id INTEGER, select_priv enum('N','Y') NOT NULL, insert_priv
enum('N','Y') NOT NULL, update_priv enum('N','Y') NOT NULL, delete_priv
enum('N','Y') NOT NULL, create_priv enum('N','Y') NOT NULL, drop_priv
enum('N','Y') NOT NULL, grant_priv enum('N','Y') NOT NULL, references_priv
enum('N','Y') NOT NULL, index_priv enum('N','Y') NOT NULL, alter_priv
enum('N','Y') NOT NULL, create_tmp_table_priv enum('N','Y') NOT NULL,
lock_tables_priv enum('N','Y') NOT NULL, create_view enum('N','Y') NOT
NULL, show_view_priv enum('N','Y') NOT NULL, create_routine_priv
enum('N','Y') NOT NULL, alter_routine_priv enum('N','Y') NOT NULL,
execute_priv enum('N','Y') NOT NULL, event_priv enum('N','Y') NOT NULL,
trigger_priv enum('N','Y') NOT NULL, PRIMARY KEY (username, database_name,
rss_instance_name, tenant_id), FOREIGN KEY (username) REFERENCES
RM_DATABASE_USER (username), FOREIGN KEY (database_name) REFERENCES
RM_DATABASE (name), FOREIGN KEY (rss_instance_name) REFERENCES
RM_SERVER_INSTANCE (name)  ) [50004-140]
  [sql] Failed to execute:   CREATE TABLE
RM_DB_PRIVILEGE_TEMPLATE_ENTRY ( template_name VARCHAR(128), tenant_id
INTEGER, select_priv enum('N','Y') NOT NULL, insert_priv enum('N','Y') NOT
NULL, update_priv enum('N','Y') NOT NULL, delete_priv enum('N','Y') NOT
NULL, create_priv enum('N','Y') NOT NULL, drop_priv enum('N','Y') NOT NULL,
grant_priv enum('N','Y') NOT NULL, references_priv enum('N','Y') NOT NULL,
index_priv enum('N','Y') NOT NULL, alter_priv enum('N','Y') NOT NULL,
create_tmp_table_priv enum('N','Y') NOT NULL, lock_tables_priv
enum('N','Y') NOT NULL, create_view enum('N','Y') NOT NULL, show_view_priv
enum('N','Y') NOT NULL, create_routine_priv enum('N','Y') NOT NULL,
alter_routine_priv enum('N','Y') NOT NULL, execute_priv enum('N','Y') NOT
NULL, event_priv enum('N','Y') NOT NULL, trigger_priv enum('N','Y') NOT
NULL, PRIMARY KEY (template_name, tenant_id), FOREIGN KEY (template_name)
REFERENCES RM_DB_PRIVILEGE_TEMPLATE (name) )
  [sql] org.h2.jdbc.JdbcSQLException: Unknown data type: ENUM; SQL
statement:
  [sql]   CREATE TABLE RM_DB_PRIVILEGE_TEMPLATE_ENTRY ( template_name
VARCHAR(128), tenant_id INTEGER, select_priv enum('N','Y') NOT NULL,
insert_priv enum('N','Y') NOT NULL, update_priv enum('N','Y') NOT NULL,
delete_priv enum('N','Y') NOT NULL, create_priv enum('N','Y') NOT NULL,
drop_priv enum('N','Y') NOT NULL, grant_priv enum('N','Y') NOT NULL,
references_priv enum('N','Y') NOT NULL, index_priv enum('N','Y') NOT NULL,
alter_priv enum('N','Y') NOT NULL, create_tmp_table_priv enum('N','Y') NOT
NULL, lock_tables_priv enum('N','Y') NOT NULL, create_view enum('N','Y')
NOT NULL, show_view_priv enum('N','Y') NOT NULL, create_routine_priv
enum('N','Y') NOT NULL, alter_routine_priv enum('N','Y') NOT NULL,
execute_priv enum('N','Y') NOT NULL, event_priv enum('N','Y') NOT NULL,
trigger_priv enum('N','Y') NOT NULL, PRIMARY KEY (template_name,
tenant_id), FOREIGN KEY (template_name) REFERENCES RM_DB_PRIVILEGE_TEMPLATE
(name) ) [50004-140]
  [sql] 7 of 9 SQL statements executed successfully
[INFO] Executed tasks
[INFO]



Re: [Dev] Error executing sql statements in DSS build - 4.0.5 branch ...

2012-11-15 Thread Muhammed Shariq
On Fri, Nov 16, 2012 at 1:42 AM, Dinusha Senanayaka dinu...@wso2.comwrote:

 Hi Shariq,

 I am not getting this error locally. Anyway since we are no longer using
 rss feature with DSS, we can remove this rss-db creation script from DSS.
 ll do the necessary changes.


I happened to notice this in the builder machine . please do the needful!
:)


 Regards,
 Dinusha.


 On Thu, Nov 15, 2012 at 9:55 PM, Muhammed Shariq sha...@wso2.com wrote:

 main:
   [sql] Executing resource:
 /home/wso2/4.0.5-release/platform/4.0.0/products/dss/3.0.1/modules/samples/sql/h2/CreateTables2.sql
   [sql] 2 of 2 SQL statements executed successfully
 [INFO] Executed tasks
 [INFO]
 [INFO] --- maven-antrun-plugin:1.7:run (create-rss-database) @ wso2dss ---
 [WARNING] Parameter tasks is deprecated, use target instead
 [INFO] Executing tasks

 main:
   [sql] Executing resource:
 /home/wso2/4.0.5-release/platform/4.0.0/products/dss/3.0.1/modules/distribution/src/resources/dbscripts/wso2_rss.sql
   [sql] Failed to execute:   CREATE TABLE RM_USER_DATABASE_PRIVILEGE
 ( username VARCHAR(16), database_name VARCHAR(128), rss_instance_name
 VARCHAR(128), tenant_id INTEGER, select_priv enum('N','Y') NOT NULL,
 insert_priv enum('N','Y') NOT NULL, update_priv enum('N','Y') NOT NULL,
 delete_priv enum('N','Y') NOT NULL, create_priv enum('N','Y') NOT NULL,
 drop_priv enum('N','Y') NOT NULL, grant_priv enum('N','Y') NOT NULL,
 references_priv enum('N','Y') NOT NULL, index_priv enum('N','Y') NOT NULL,
 alter_priv enum('N','Y') NOT NULL, create_tmp_table_priv enum('N','Y') NOT
 NULL, lock_tables_priv enum('N','Y') NOT NULL, create_view enum('N','Y')
 NOT NULL, show_view_priv enum('N','Y') NOT NULL, create_routine_priv
 enum('N','Y') NOT NULL, alter_routine_priv enum('N','Y') NOT NULL,
 execute_priv enum('N','Y') NOT NULL, event_priv enum('N','Y') NOT NULL,
 trigger_priv enum('N','Y') NOT NULL, PRIMARY KEY (username, database_name,
 rss_instance_name, tenant_id), FOREIGN KEY (username) REFERENCES
 RM_DATABASE_USER (username), FOREIGN KEY (database_name) REFERENCES
 RM_DATABASE (name), FOREIGN KEY (rss_instance_name) REFERENCES
 RM_SERVER_INSTANCE (name)  )
   [sql] org.h2.jdbc.JdbcSQLException: Unknown data type: ENUM; SQL
 statement:
   [sql]   CREATE TABLE RM_USER_DATABASE_PRIVILEGE ( username
 VARCHAR(16), database_name VARCHAR(128), rss_instance_name VARCHAR(128),
 tenant_id INTEGER, select_priv enum('N','Y') NOT NULL, insert_priv
 enum('N','Y') NOT NULL, update_priv enum('N','Y') NOT NULL, delete_priv
 enum('N','Y') NOT NULL, create_priv enum('N','Y') NOT NULL, drop_priv
 enum('N','Y') NOT NULL, grant_priv enum('N','Y') NOT NULL, references_priv
 enum('N','Y') NOT NULL, index_priv enum('N','Y') NOT NULL, alter_priv
 enum('N','Y') NOT NULL, create_tmp_table_priv enum('N','Y') NOT NULL,
 lock_tables_priv enum('N','Y') NOT NULL, create_view enum('N','Y') NOT
 NULL, show_view_priv enum('N','Y') NOT NULL, create_routine_priv
 enum('N','Y') NOT NULL, alter_routine_priv enum('N','Y') NOT NULL,
 execute_priv enum('N','Y') NOT NULL, event_priv enum('N','Y') NOT NULL,
 trigger_priv enum('N','Y') NOT NULL, PRIMARY KEY (username, database_name,
 rss_instance_name, tenant_id), FOREIGN KEY (username) REFERENCES
 RM_DATABASE_USER (username), FOREIGN KEY (database_name) REFERENCES
 RM_DATABASE (name), FOREIGN KEY (rss_instance_name) REFERENCES
 RM_SERVER_INSTANCE (name)  ) [50004-140]
   [sql] Failed to execute:   CREATE TABLE
 RM_DB_PRIVILEGE_TEMPLATE_ENTRY ( template_name VARCHAR(128), tenant_id
 INTEGER, select_priv enum('N','Y') NOT NULL, insert_priv enum('N','Y') NOT
 NULL, update_priv enum('N','Y') NOT NULL, delete_priv enum('N','Y') NOT
 NULL, create_priv enum('N','Y') NOT NULL, drop_priv enum('N','Y') NOT NULL,
 grant_priv enum('N','Y') NOT NULL, references_priv enum('N','Y') NOT NULL,
 index_priv enum('N','Y') NOT NULL, alter_priv enum('N','Y') NOT NULL,
 create_tmp_table_priv enum('N','Y') NOT NULL, lock_tables_priv
 enum('N','Y') NOT NULL, create_view enum('N','Y') NOT NULL, show_view_priv
 enum('N','Y') NOT NULL, create_routine_priv enum('N','Y') NOT NULL,
 alter_routine_priv enum('N','Y') NOT NULL, execute_priv enum('N','Y') NOT
 NULL, event_priv enum('N','Y') NOT NULL, trigger_priv enum('N','Y') NOT
 NULL, PRIMARY KEY (template_name, tenant_id), FOREIGN KEY (template_name)
 REFERENCES RM_DB_PRIVILEGE_TEMPLATE (name) )
   [sql] org.h2.jdbc.JdbcSQLException: Unknown data type: ENUM; SQL
 statement:
   [sql]   CREATE TABLE RM_DB_PRIVILEGE_TEMPLATE_ENTRY ( template_name
 VARCHAR(128), tenant_id INTEGER, select_priv enum('N','Y') NOT NULL,
 insert_priv enum('N','Y') NOT NULL, update_priv enum('N','Y') NOT NULL,
 delete_priv enum('N','Y') NOT NULL, create_priv enum('N','Y') NOT NULL,
 drop_priv enum('N','Y') NOT NULL, grant_priv enum('N','Y') NOT NULL,
 references_priv enum('N','Y') NOT NULL, index_priv enum('N','Y') NOT NULL,
 alter_priv enum('N','Y') NOT NULL, create_tmp_table_priv enum('N','Y') NOT
 NULL

Re: [Dev] Compilation failure in throttling.agent

2012-11-14 Thread Muhammed Shariq
Hi,

Yes the stub is in patch release pom .. please update the stub
(service-stubs/org.wso2.carbon.throttling.agent.stub/4.0.5) and also update
the component and try building it .. ?!

On Thu, Nov 15, 2012 at 12:26 PM, Amila Maha Arachchi ami...@wso2.comwrote:

 Pls check whether you have built throttling agent stub 4.0.5.

 Shariq,

 Did you add it to patch-release pom?


 On Thu, Nov 15, 2012 at 12:16 PM, Amila De Silva ami...@wso2.com wrote:

 Hi,
 Following failure occured when building
 platform/4.0.0/components/stratos/throttling/org.wso2.carbon.throttling.agent/
 2.0.5.

 [INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @
 org.wso2.carbon.throttling.agent ---
 [INFO] Compiling 18 source files to
 /home/amila/checkout/platform/4.0.0/components/stratos/throttling/org.wso2.carbon.throttling.agent/2.0.5/target/classes
 [INFO] -
 [ERROR] COMPILATION ERROR :
 [INFO] -
 [ERROR]
 /home/amila/checkout/platform/4.0.0/components/stratos/throttling/org.wso2.carbon.throttling.agent/2.0.5/src/main/java/org/wso2/carbon/throttling/agent/client/MultitenancyThrottlingServiceClient.java:[59,12]
 executeThrottlingRules() in
 org.wso2.carbon.throttling.agent.stub.services.MultitenancyThrottlingServiceStub
 cannot be applied to (int)
 [INFO] 1 error
 [INFO] -
 [INFO]
 
 [INFO] BUILD FAILURE
 [INFO]
 
 [INFO] Total time: 5.086s
 [INFO] Finished at: Thu Nov 15 12:06:13 IST 2012
 [INFO] Final Memory: 31M/286M
 [INFO]
 
 [ERROR] Failed to execute goal
 org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile
 (default-compile) on project org.wso2.carbon.throttling.agent: Compilation
 failure
 [ERROR]
 /home/amila/checkout/platform/4.0.0/components/stratos/throttling/org.wso2.carbon.throttling.agent/2.0.5/src/main/java/org/wso2/carbon/throttling/agent/client/MultitenancyThrottlingServiceClient.java:[59,12]
 executeThrottlingRules() in
 org.wso2.carbon.throttling.agent.stub.services.MultitenancyThrottlingServiceStub
 cannot be applied to (int)
 [ERROR] - [Help 1]
 [ERROR]
 [ERROR] To see the full stack trace of the errors, re-run Maven with the
 -e switch.
 [ERROR] Re-run Maven using the -X switch to enable full debug logging.
 [ERROR]
 [ERROR] For more information about the errors and possible solutions,
 please read the following articles:
 [ERROR] [Help 1]
 http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException


 Regards,
 AmilaD

 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev




 --
 *Amila Maharachchi*
 Technical Lead
 Member, Management Committee - Cloud  Platform TG
 WSO2, Inc.; http://wso2.com

 Blog: http://maharachchi.blogspot.com
 Mobile: +94719371446





-- 
Thanks,
Shariq.
Phone: +94 777 202 225
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Architecture] Shall we move JDBC/AD/LDAP UserStoreManagers out of Carbon Kernel ?

2012-10-19 Thread Muhammed Shariq
On Fri, Oct 19, 2012 at 9:16 AM, Afkham Azeez az...@wso2.com wrote:



 On Fri, Oct 19, 2012 at 8:55 AM, Dimuthu Leelarathne dimut...@wso2.comwrote:



 On Thu, Oct 18, 2012 at 2:53 PM, Prabath Siriwardena prab...@wso2.comwrote:



 On Thu, Oct 18, 2012 at 2:50 PM, Samisa Abeysinghe sam...@wso2.comwrote:



 On Thu, Oct 18, 2012 at 2:30 PM, Prabath Siriwardena 
 prab...@wso2.comwrote:

 May be we can do this for C5 - or even before that since this does not
 break any contracts.

 For Kernel - we can have a simple UserStoreManager - which lets the
 admin user log in from the credentials in user-mgt.xml.


 What is the advantage? I guess, being able to improve
 them independent of having to release the kernel?


 Yes... This will help IS to be released in point releases with the same
 Carbon kernel..


 Then I guess IS needs to be released before any other product. Or does
 other other products have only the admin user login?


 The model should be;

 1. Release kernel or depend on a released version of the kernel
 2. Release components - may be a selected subset


In the current component structure isn't it a bit complicated to release a
subset of components. If we want to do this, we should group the
components preferably the products. That way we should be able to release a
set of components and the corresponding product .. WDYT ?!

3. Release products



 thanks,
 dimuthu



 Thanks  regards,
 -Prabath




 WDYT ?

 --
 Thanks  Regards,
 Prabath

 Mobile : +94 71 809 6732

 http://blog.facilelogin.com
 http://RampartFAQ.com


 ___
 Architecture mailing list
 architect...@wso2.org
 https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture

 Thanks,
 Samisa...

 Samisa Abeysinghe
 VP Engineering
 WSO2 Inc.
 http://wso2.com
 http://wso2.org



 ___
 Architecture mailing list
 architect...@wso2.org
 https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture




 --
 Thanks  Regards,
 Prabath

 Mobile : +94 71 809 6732

 http://blog.facilelogin.com
 http://RampartFAQ.com


 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev



 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev




 --
 *Afkham Azeez*
 Director of Architecture; WSO2, Inc.; http://wso2.com
 Member; Apache Software Foundation; http://www.apache.org/
 * http://www.apache.org/**
 email: **az...@wso2.com* az...@wso2.com* cell: +94 77 3320919
 blog: **http://blog.afkham.org* http://blog.afkham.org*
 twitter: **http://twitter.com/afkham_azeez*http://twitter.com/afkham_azeez
 *
 linked-in: **http://lk.linkedin.com/in/afkhamazeez*
 *
 *
 *Lean . Enterprise . Middleware*


 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev




-- 
Thanks,
Shariq.
Phone: +94 777 202 225
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Cannot use Hash index on INNODB engine ?!

2012-10-18 Thread Muhammed Shariq
Hi folks,

While reading on some material on MySql and indexing I came across
$subject. In our DB scripts we use hash indexes with Innodb engine right ?!
According to mysql docs [1];



Some storage engines permit you to specify an index type when creating an
index. The permissible index type values supported by different storage
engines are shown in the following table. Where multiple index types are
listed, the first one is the default when no index type specifier is given.
  Storage Engine Permissible Index Types
InnoDBhttp://dev.mysql.com/doc/refman/5.6/en/innodb-storage-engine.html
BTREE  MyISAMhttp://dev.mysql.com/doc/refman/5.6/en/myisam-storage-engine.html
BTREE  MEMORYhttp://dev.mysql.com/doc/refman/5.6/en/memory-storage-engine.html
/HEAP HASH, BTREE
NDBhttp://dev.mysql.com/doc/refman/5.5/en/mysql-cluster.html
HASH, BTREE (see note in text)

If you specify an index type that is not valid for a given storage engine,
but there is another index type available that the engine can use without
affecting query results, the engine uses the available type. The parser
recognizesRTREE as a type name, but currently this cannot be specified for
any storage engine.
 

According to the second section, I wonder if mysql silently converts the
indexes to BTREE even though we specify it as Hash?! I am totally new to
database indexes so please correct me if I have misunderstood the whole
subject matter :)

[1] - http://dev.mysql.com/doc/refman/5.6/en/create-index.html

-- 
Thanks,
Shariq.
Phone: +94 777 202 225
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Shouldn't we show the product theme for tenants in the standalone product

2012-10-11 Thread Muhammed Shariq
On Thu, Oct 11, 2012 at 12:14 PM, Amila Maha Arachchi ami...@wso2.comwrote:

 Hi all,

 Currently, when the super tenant logs in to a product, he/she sees product
 theme. But when a tenant logs in they see the cloud theme. But if the
 product is running in the standalone mode, shouldn't both users see the
 same product theme? IMO this can lead to several requests for patches in
 the future.

 If you are +1 for this AFAIK we can fix this by deciding which style we
 copy to tenant's registry at the time of tenant creation. And AFAIK we can
 always copy the cloud theme when we are in a cloud deployment. Shariq,
 correct me if I am wrong.


I also personally feel that in standalone mode we should show the product
themes for a tenant, but when the same was raised at the time there was a
suggestion that tenant should have the cloud look and feel so we decided
to continue along that path. Changing it should be a straightforward fix in
bin.xml, rest is taking care of from theme-mgt ..

In terms of a cloud deployment tenant creation (self registration) will be
done at Manager, so we copy the cloud theme to the tenants gov: registry
and theme are populated so there wont be an issue ..



 WDYT?

 Regards,
 AmilaM.

 --
 *Amila Maharachchi*
 Technical Lead
 Member, Management Committee - Cloud  Platform TG
 WSO2, Inc.; http://wso2.com

 Blog: http://maharachchi.blogspot.com
 Mobile: +94719371446



 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev




-- 
Thanks,
Shariq.
Phone: +94 777 202 225
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] AppServer integration test failure

2012-10-09 Thread Muhammed Shariq
Did some debugging and it seems it has been broken by a recent commit to
GhostRegistry, sent another not to dev too .. Eranda please have a look ..

On Tue, Oct 9, 2012 at 1:08 PM, Amila Maha Arachchi ami...@wso2.com wrote:



 On Tue, Oct 9, 2012 at 12:37 PM, Afkham Azeez az...@wso2.com wrote:

 (UserRealm) realmService.getTenantUserRealm(tenantId); is returning null.
 Who is looking into this?


 Dimuthu is looking into this. I did some debugging and noticed
 realmService was returning the realm properly.  It looked like the issue
 was coming from GhostRegistryinit.



 On Tue, Oct 9, 2012 at 12:26 PM, Kishanthan Thangarajah 
 kishant...@wso2.com wrote:



 On Mon, Oct 8, 2012 at 3:51 PM, Amila Maha Arachchi ami...@wso2.comwrote:


 ---
 Test set: TestSuite

 ---
 Tests run: 115, Failures: 1, Errors: 0, Skipped: 0, Time elapsed:
 163.727 sec  FAILURE!
 testWebappDeployement(org.wso2.appserver.integration.tests.TenantWebappDeploymentTestCase)
 Time elapsed: 0.02 sec   FAILURE!
 java.lang.NullPointerException
 at
 org.wso2.appserver.integration.tests.TenantWebappDeploymentTestCase.testWebappDeployement(TenantWebappDeploymentTestCase.java:157)


 This should get fixed once the tenant related login issues get fixed.

 TID: [0] [AS] [2012-10-09 12:08:35,076] ERROR
 {org.wso2.carbon.tomcat.ext.valves.CarbonContextCreatorValve} -  Could not
 handle request: /t/
 test1349764576215.org/webapps/example/carbon/authentication/login.jsp{org.wso2.carbon.tomcat.ext.valves.CarbonContextCreatorValve}
 org.wso2.carbon.registry.core.exceptions.RegistryException: Failed to
 obtain the user realm for tenant: 1.
 at
 org.wso2.carbon.registry.core.session.UserRegistry.init(UserRegistry.java:270)
 at
 org.wso2.carbon.registry.core.session.UserRegistry.init(UserRegistry.java:226)
 at
 org.wso2.carbon.registry.core.session.UserRegistry.init(UserRegistry.java:205)
 at
 org.wso2.carbon.registry.core.ghostregistry.GhostRegistry.init(GhostRegistry.java:54)
 at
 org.wso2.carbon.tomcat.ext.valves.CarbonContextCreatorValve.initCarbonContext(CarbonContextCreatorValve.java:87)
 at
 org.wso2.carbon.tomcat.ext.valves.CarbonContextCreatorValve.invoke(CarbonContextCreatorValve.java:51)
 at
 org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
 at
 org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
 at
 org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1001)
 at
 org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:579)
 at
 org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1653)
  at
 java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
 at
 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
 at java.lang.Thread.run(Thread.java:662)


 Please fix.

 --
 *Amila Maharachchi*
 Technical Lead
 Member, Management Committee - Cloud  Platform TG
 WSO2, Inc.; http://wso2.com

 Blog: http://maharachchi.blogspot.com
 Mobile: +94719371446



 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev




 --
 *Kishanthan Thangarajah*
 Software Engineer,
 Development Technologies Team,
 WSO2, Inc.
 lean.enterprise.middleware

 Mobile - +94773426635
 Blog - *http://kishanthan.wordpress.com*
 Twitter - *http://twitter.com/kishanthan*


 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev




 --
 *Afkham Azeez*
 Director of Architecture; WSO2, Inc.; http://wso2.com
 Member; Apache Software Foundation; http://www.apache.org/
 * http://www.apache.org/**
 email: **az...@wso2.com* az...@wso2.com* cell: +94 77 3320919
 blog: **http://blog.afkham.org* http://blog.afkham.org*
 twitter: **http://twitter.com/afkham_azeez*http://twitter.com/afkham_azeez
 *
 linked-in: **http://lk.linkedin.com/in/afkhamazeez*
 *
 *
 *Lean . Enterprise . Middleware*




 --
 *Amila Maharachchi*
 Technical Lead
 Member, Management Committee - Cloud  Platform TG
 WSO2, Inc.; http://wso2.com

 Blog: http://maharachchi.blogspot.com
 Mobile: +94719371446



 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev




-- 
Thanks,
Shariq.
Phone: +94 777 202 225
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Commits] [Carbon-kernel] svn commit r145003 - carbon/kernel/branches/4.0.0/core/org.wso2.carbon.registry.core/4.0.2/src/main/java/org/wso2/carbon/registry/core/ghostregistry

2012-10-09 Thread Muhammed Shariq
Hi Eranda,

The following commit is breaking tenant login and is a blocker at the
moment. It seems you are setting the RealmService to null explicitly which
is causing the issue .. can you please have a look and fix this ASAP ..

On Sun, Oct 7, 2012 at 5:05 PM, era...@wso2.com wrote:

 Author: eranda
 Date: Sun Oct  7 17:05:55 2012
 New Revision: 145003
 URL: http://wso2.org/svn/browse/wso2?view=revrevision=145003

 Log:
 Fixing WS-Discovery issues

 Modified:

  
 carbon/kernel/branches/4.0.0/core/org.wso2.carbon.registry.core/4.0.2/src/main/java/org/wso2/carbon/registry/core/ghostregistry/GhostRegistry.java

 Modified:
 carbon/kernel/branches/4.0.0/core/org.wso2.carbon.registry.core/4.0.2/src/main/java/org/wso2/carbon/registry/core/ghostregistry/GhostRegistry.java
 URL:
 http://wso2.org/svn/browse/wso2/carbon/kernel/branches/4.0.0/core/org.wso2.carbon.registry.core/4.0.2/src/main/java/org/wso2/carbon/registry/core/ghostregistry/GhostRegistry.java?rev=145003r1=145002r2=145003view=diff

 ==
 ---
 carbon/kernel/branches/4.0.0/core/org.wso2.carbon.registry.core/4.0.2/src/main/java/org/wso2/carbon/registry/core/ghostregistry/GhostRegistry.java
  (original)
 +++
 carbon/kernel/branches/4.0.0/core/org.wso2.carbon.registry.core/4.0.2/src/main/java/org/wso2/carbon/registry/core/ghostregistry/GhostRegistry.java
  Sun Oct  7 17:05:55 2012
 @@ -19,33 +19,26 @@
  package org.wso2.carbon.registry.core.ghostregistry;


 -import java.io.Reader;
 -import java.io.Writer;
 -import java.util.Date;
 -import java.util.Map;
 -
  import org.apache.commons.logging.Log;
  import org.apache.commons.logging.LogFactory;
 +import org.wso2.carbon.CarbonConstants;
  import org.wso2.carbon.context.RegistryType;
  import org.wso2.carbon.registry.api.RegistryService;
 -import org.wso2.carbon.registry.core.Aspect;
 -import org.wso2.carbon.registry.core.Association;
 -import org.wso2.carbon.registry.core.Collection;
 -import org.wso2.carbon.registry.core.Comment;
 -import org.wso2.carbon.registry.core.LogEntry;
 -import org.wso2.carbon.registry.core.LogEntryCollection;
 -import org.wso2.carbon.registry.core.Registry;
 -import org.wso2.carbon.registry.core.Resource;
 -import org.wso2.carbon.registry.core.Tag;
 -import org.wso2.carbon.registry.core.TaggedResourcePath;
 +import org.wso2.carbon.registry.core.*;
  import org.wso2.carbon.registry.core.config.RegistryContext;
  import org.wso2.carbon.registry.core.exceptions.RegistryException;
 +import org.wso2.carbon.registry.core.session.UserRegistry;
 +
 +import java.io.Reader;
 +import java.io.Writer;
 +import java.util.Date;
 +import java.util.Map;

  /**
   * This implements the Ghost lazy loading pattern for the Registry. An
 actual registry instance will
   * not be created until first access.
   */
 -public class GhostRegistry implements Registry {
 +public class GhostRegistry extends UserRegistry{

  private static Log log = LogFactory.getLog(GhostRegistry.class);

 @@ -56,7 +49,10 @@
  private Registry registry;


 -public GhostRegistry(RegistryService registryService, int tenantId,
 RegistryType registryType) {
 +public GhostRegistry(RegistryService registryService, int tenantId,
 RegistryType registryType)
 +throws org.wso2.carbon.registry.api.RegistryException {
 +super(CarbonConstants.REGISTRY_SYSTEM_USERNAME, tenantId,
 +(Registry)registryService.getRegistry(), null, null );
  this.registryService = registryService;
  this.tenantId = tenantId;
  this.registryType = registryType;
 ___
 Commits mailing list
 comm...@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/commits




-- 
Thanks,
Shariq.
Phone: +94 777 202 225
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] data-bridge-config.xml not found error in Manager pack

2012-10-04 Thread Muhammed Shariq
I am getting the following error. From where / which feature is the config
file coming ?!

[2012-10-04 14:37:32,730]  WARN
{net.sf.ehcache.config.ConfigurationFactory} -  No configuration found.
Configuring ehcache from ehcache-failsafe.xml  found in the classpath:
bundleresource://35.fwk1742814727/ehcache-failsafe.xml
[2012-10-04 14:37:33,571] ERROR
{org.wso2.carbon.databridge.core.internal.utils.DataBridgeCoreBuilder} -
 data-bridge-config.xmlcannot be found in the path :
/home/shariq/src/4.0.0-branch/platform/products/manager/2.0.0/modules/distribution/target/wso2stratos-manager-2.0.0/repository/conf/data-bridge/data-bridge-config.xml
java.io.FileNotFoundException:
/home/shariq/src/4.0.0-branch/platform/products/manager/2.0.0/modules/distribution/target/wso2stratos-manager-2.0.0/repository/conf/data-bridge/data-bridge-config.xml
(No such file or directory)
 at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.init(FileInputStream.java:106)
 at
org.wso2.carbon.databridge.core.internal.utils.DataBridgeCoreBuilder.loadConfigXML(DataBridgeCoreBuilder.java:57)
at
org.wso2.carbon.databridge.core.internal.DataBridgeDS.activate(DataBridgeDS.java:65)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
 at
org.eclipse.equinox.internal.ds.model.ServiceComponent.activate(ServiceComponent.java:252)
at
org.eclipse.equinox.internal.ds.model.ServiceComponentProp.activate(ServiceComponentProp.java:146)
 at
org.eclipse.equinox.internal.ds.model.ServiceComponentProp.build(ServiceComponentProp.java:346)
at
org.eclipse.equinox.internal.ds.InstanceProcess.buildComponent(InstanceProcess.java:588)
 at
org.eclipse.equinox.internal.ds.InstanceProcess.buildComponents(InstanceProcess.java:196)
at org.eclipse.equinox.internal.ds.Resolver.getEligible(Resolver.java:328)
 at
org.eclipse.equinox.internal.ds.SCRManager.serviceChanged(SCRManager.java:221)
at
org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:104)
 at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:861)
at
org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
 at
org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)
at
org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEventPrivileged(ServiceRegistry.java:819)
 at
org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEvent(ServiceRegistry.java:771)
at
org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.register(ServiceRegistrationImpl.java:130)
 at
org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.registerService(ServiceRegistry.java:214)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:433)
 at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:451)
at
org.wso2.carbon.identity.authentication.internal.AuthenticationServiceComponent.activate(AuthenticationServiceComponent.java:57)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
 at
org.eclipse.equinox.internal.ds.model.ServiceComponent.activate(ServiceComponent.java:252)
at
org.eclipse.equinox.internal.ds.model.ServiceComponentProp.activate(ServiceComponentProp.java:146)
 at
org.eclipse.equinox.internal.ds.model.ServiceComponentProp.build(ServiceComponentProp.java:346)
at
org.eclipse.equinox.internal.ds.InstanceProcess.buildComponent(InstanceProcess.java:588)
 at
org.eclipse.equinox.internal.ds.InstanceProcess.buildComponents(InstanceProcess.java:196)
at org.eclipse.equinox.internal.ds.Resolver.getEligible(Resolver.java:328)
 at
org.eclipse.equinox.internal.ds.SCRManager.serviceChanged(SCRManager.java:221)
at
org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:104)
 at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:861)
at
org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
 at
org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)
at
org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEventPrivileged(ServiceRegistry.java:819)
 at
org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEvent(ServiceRegistry.java:771)
at
org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.register(ServiceRegistrationImpl.java:130)
 at

Re: [Dev] data-bridge-config.xml not found error in Manager pack

2012-10-04 Thread Muhammed Shariq
Hi Sinthuja,

It seems the  org.wso2.carbon.databridge.core.server.feature has been added
to the publisher feature in the branched 4.0.2. version [1], that's how the
org.wso2.carbon.databridge.core.server_4.0.2.jar ends up in Manager it
seems. Can you please verify if this is correct ?!

[1] -
https://svn.wso2.org/repos/wso2/carbon/platform/branches/4.0.0/features/data-bridge/org.wso2.carbon.databridge.datapublisher.feature/4.0.2/pom.xml

On Thu, Oct 4, 2012 at 3:27 PM, Sinthuja Ragendran sinth...@wso2.comwrote:

 Hi,

 No publisher feature doesn't include data-bridge core feature and that
 doesn't need this file. And for publishing events, only the publisher
 feature is enough.

 For the publisher feature only thrift-agent-config.xml is needed. You may
 need to include the following in the bin.xml to include the
 thrift-agent-config.xml,

  fileSet
 directory

 ../p2-profile-gen/target/wso2carbon-core-${wso2carbon.version}/repository/conf/data-bridge/
 /directory

 outputDirectory${pom.artifactId}-${pom.version}/repository/conf/data-bridge//outputDirectory
 includes
 include**/thrift-agent-config.xml/include
 /includes
 /fileSet

 Thanks,
 Sinthuja.



 On Thu, Oct 4, 2012 at 3:18 PM, Amila Maha Arachchi ami...@wso2.comwrote:

 We have databridge.publisher feature in Manager. Reason for that is we
 have added usage agent to Manager. But we are now considering whether
 usage.agent is required by the Manager (it doesn't host services, but it
 has registry browsing capabilities, so we might want to capture usage data
 related to registry).

 Is this file needed by the publisher feature also? or the publisher
 feature inclodes the core feature I guess.


 On Thu, Oct 4, 2012 at 3:02 PM, Sinthuja Ragendran sinth...@wso2.comwrote:

 Hi,

 This is coming from data-bridge core feature. You may need to add the
 following in the bin.xml,
 file

 source../p2-profile-gen/target/wso2carbon-core-${carbon.version}/repository/conf/data-bridge/data-bridge-config.xml/source

 outputDirectory${pom.artifactId}-${pom.version}/repository/conf/data-bridge/outputDirectory
 filteredtrue/filtered
 fileMode644/fileMode
 /file

 But why the data-bridge feature is included in manager?
 It's used for data receiving in BAM and CEP, but I wonder the purpose of
 data-bridge feature in manager!

 Thanks,
 Sinthuja.


 On Thu, Oct 4, 2012 at 2:42 PM, Muhammed Shariq sha...@wso2.com wrote:

 I am getting the following error. From where / which feature is the
 config file coming ?!

 [2012-10-04 14:37:32,730]  WARN
 {net.sf.ehcache.config.ConfigurationFactory} -  No configuration found.
 Configuring ehcache from ehcache-failsafe.xml  found in the classpath:
 bundleresource://35.fwk1742814727/ehcache-failsafe.xml
 [2012-10-04 14:37:33,571] ERROR
 {org.wso2.carbon.databridge.core.internal.utils.DataBridgeCoreBuilder} -
  data-bridge-config.xmlcannot be found in the path :
 /home/shariq/src/4.0.0-branch/platform/products/manager/2.0.0/modules/distribution/target/wso2stratos-manager-2.0.0/repository/conf/data-bridge/data-bridge-config.xml
 java.io.FileNotFoundException:
 /home/shariq/src/4.0.0-branch/platform/products/manager/2.0.0/modules/distribution/target/wso2stratos-manager-2.0.0/repository/conf/data-bridge/data-bridge-config.xml
 (No such file or directory)
  at java.io.FileInputStream.open(Native Method)
 at java.io.FileInputStream.init(FileInputStream.java:106)
  at
 org.wso2.carbon.databridge.core.internal.utils.DataBridgeCoreBuilder.loadConfigXML(DataBridgeCoreBuilder.java:57)
 at
 org.wso2.carbon.databridge.core.internal.DataBridgeDS.activate(DataBridgeDS.java:65)
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:597)
  at
 org.eclipse.equinox.internal.ds.model.ServiceComponent.activate(ServiceComponent.java:252)
 at
 org.eclipse.equinox.internal.ds.model.ServiceComponentProp.activate(ServiceComponentProp.java:146)
  at
 org.eclipse.equinox.internal.ds.model.ServiceComponentProp.build(ServiceComponentProp.java:346)
 at
 org.eclipse.equinox.internal.ds.InstanceProcess.buildComponent(InstanceProcess.java:588)
  at
 org.eclipse.equinox.internal.ds.InstanceProcess.buildComponents(InstanceProcess.java:196)
 at
 org.eclipse.equinox.internal.ds.Resolver.getEligible(Resolver.java:328)
  at
 org.eclipse.equinox.internal.ds.SCRManager.serviceChanged(SCRManager.java:221)
 at
 org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:104)
  at
 org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:861)
 at
 org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230

[Dev] Make DeploymentSynchronizer optional for WebappManagementServiceComponent ?!

2012-09-25 Thread Muhammed Shariq
Hi,

At the moment the dependency between DepSync and WebbappMgt component is
1-1, shouldn't this be 0-1. For example if we want to deploy a simple
webapp (like tenant dashboard in Manager)  or any such webapp its on
overkill to install the DepSycn feature .. WDYT ?!

-- 
Thanks,
Shariq.
Phone: +94 777 202 225
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Build failure - 4.0.2 branch - org.wso2.carbon.identity.relying.party.ui.feature

2012-09-25 Thread Muhammed Shariq
I reported this another thread as well, there is no relyingpart.stub 4.0.1
at [1], IS folks can you please have a look ?!

[1] -
https://svn.wso2.org/repos/wso2/carbon/platform/branches/4.0.0/service-stubs/org.wso2.carbon.identity.relyingparty.stub

On Wed, Sep 26, 2012 at 10:04 AM, Rajika Kumarasiri raj...@wso2.com wrote:

 ERROR] Failed to execute goal on project
 org.wso2.carbon.identity.relying.party.ui.feature: Could not resolve
 dependencies for project
 org.wso2.carbon:org.wso2.carbon.identity.relying.party.ui.feature:pom:4.0.2:
 Could not find artifact
 org.wso2.carbon:org.wso2.carbon.identity.relyingparty.stub:jar:4.0.1 in
 wso2-nexus (http://maven.wso2.org/nexus/content/groups/wso2-public/) -
 [Help 1]
 [ERROR]
 [ERROR] To see the full stack trace of the errors, re-run Maven with the
 -e switch.
 [ERROR] Re-run Maven using the -X switch to enable full debug logging.
 [ERROR]
 [ERROR] For more information about the errors and possible solutions,
 please read the following articles:
 [ERROR] [Help 1]
 http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
 [rajika@localhost 4.0.2]$ mvn clean install -Dmaven.test.skip=true -rf :
 org.wso2.carbon.identity.re

 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev




-- 
Thanks,
Shariq.
Phone: +94 777 202 225
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Please add samples/shopping-cart-global 2.0.0 jar to repository

2012-09-24 Thread Muhammed Shariq
Hi,

Actually you also need to add shopping-cart-global-2.0.0.zip located at
shopping-cart-global/2.0.0/distribution/

On Mon, Sep 24, 2012 at 1:36 PM, Amila Maha Arachchi ami...@wso2.comwrote:

 Hi Dileepa,

 Can you $Subject? I think this has missed after the 4.0.0 release.

 thanks,
 AmilaM.

 --
 *Amila Maharachchi*
 Technical Lead
 Member, Management Committee - Cloud  Platform TG
 WSO2, Inc.; http://wso2.com

 Blog: http://maharachchi.blogspot.com
 Mobile: +94719371446



 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev




-- 
Thanks,
Shariq.
Phone: +94 777 202 225
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Build error in org.wso2.carbon.identity.provider

2012-09-24 Thread Muhammed Shariq
[INFO]

[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile
(default-compile) on project org.wso2.carbon.identity.provider: Compilation
failure
[ERROR]
/home/shariq/src/4.0.0-branch/platform/components/identity/org.wso2.carbon.identity.provider/4.0.2/src/main/java/org/wso2/carbon/identity/provider/openid/dao/OpenIDRememberMeDAO.java:[158,61]
cannot find symbol
[ERROR] symbol  : variable OPENID_REMEMBER_ME_EXPIRY
[ERROR] location: class org.wso2.carbon.identity.base.IdentityConstants
[ERROR] - [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e
switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions,
please read the following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[ERROR]


-- 
Thanks,
Shariq.
Phone: +94 777 202 225
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Deployment synchronizer build failure

2012-09-24 Thread Muhammed Shariq
Well i was building from patch release pom and got that error .. going in
to the component and building worked .. now i am seeing the following error
.. wonder if its local to me :(

s
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @
org.wso2.carbon.deployment.synchronizer.subversion ---
[INFO] Compiling 5 source files to
/home/shariq/src/4.0.0-branch/platform/components/deployment-synchronizer/org.wso2.carbon.deployment.synchronizer.subversion/4.0.2/target/classes
[INFO] -
[ERROR] COMPILATION ERROR :
[INFO] -
[ERROR]
/home/shariq/src/4.0.0-branch/platform/components/deployment-synchronizer/org.wso2.carbon.deployment.synchronizer.subversion/4.0.2/src/main/java/org/wso2/carbon/deployment/synchronizer/subversion/SVNBasedArtifactRepository.java:[512,48]
cannot find symbol
symbol  : method
update(java.io.File,java.lang.String,org.tigris.subversion.svnclientadapter.SVNRevision,int,boolean,boolean,boolean)
location: interface org.tigris.subversion.svnclientadapter.ISVNClientAdapter
[INFO] 1 error
[INFO] -
[INFO]

[INFO] BUILD FAILURE
[INFO]

[INFO] Total time: 5.511s
[INFO] Finished at: Mon Sep 24 17:28:14 IST 2012
[INFO] Final Memory: 30M/322M
[INFO]

[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile
(default-compile) on project
org.wso2.carbon.deployment.synchronizer.subversion: Compilation failure
[ERROR]
/home/shariq/src/4.0.0-branch/platform/components/deployment-synchronizer/org.wso2.carbon.deployment.synchronizer.subversion/4.0.2/src/main/java/org/wso2/carbon/deployment/synchronizer/subversion/SVNBasedArtifactRepository.java:[512,48]
cannot find symbol
[ERROR] symbol  : method
update(java.io.File,java.lang.String,org.tigris.subversion.svnclientadapter.SVNRevision,int,boolean,boolean,boolean)
[ERROR] location: interface
org.tigris.subversion.svnclientadapter.ISVNClientAdapter
[ERROR] - [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e
switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.


On Mon, Sep 24, 2012 at 5:23 PM, Kishanthan Thangarajah kishant...@wso2.com
 wrote:



 On Mon, Sep 24, 2012 at 5:06 PM, Muhammed Shariq sha...@wso2.com wrote:

 The kernel is upto date ..


 These constants are coming from org.wso2.carbon.utils 4.0.2 bundle. Please
 check that. If its not updated, you have to build again.

 Thanks,
 Kishanthan.


 [ERROR] Failed to execute goal
 org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile
 (default-compile) on project org.wso2.carbon.deployment.synchronizer:
 Compilation failure: Compilation failure:
 [ERROR]
 /home/shariq/src/4.0.0-branch/platform/components/deployment-synchronizer/org.wso2.carbon.deployment.synchronizer/4.0.2/src/main/java/org/wso2/carbon/deployment/synchronizer/internal/DeploymentSynchronizer.java:[317,55]
 cannot find symbol
 [ERROR] symbol  : variable MODULE_METAFILE_HOTDEPLOYMENT_DIR
 [ERROR] location: class org.wso2.carbon.CarbonConstants
 [ERROR]
 /home/shariq/src/4.0.0-branch/platform/components/deployment-synchronizer/org.wso2.carbon.deployment.synchronizer/4.0.2/src/main/java/org/wso2/carbon/deployment/synchronizer/internal/DeploymentSynchronizer.java:[319,67]
 cannot find symbol
 [ERROR] symbol  : variable GHOST_METAFILE_DIR
 [ERROR] location: class org.wso2.carbon.CarbonConstants
 [ERROR] - [Help 1]
 [ERROR]
 [ERROR] To see the full stack trace of the errors, re-run Maven with the
 -e switch.
 [ERROR] Re-run Maven using the -X switch to enable full debug logging.


 --
 Thanks,
 Shariq.
 Phone: +94 777 202 225


 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev




 --
 *Kishanthan Thangarajah*
 Software Engineer,
 Development Technologies Team,
 WSO2, Inc.
 lean.enterprise.middleware

 Mobile - +94773426635
 Blog - *http://kishanthan.wordpress.com*
 Twitter - *http://twitter.com/kishanthan*




-- 
Thanks,
Shariq.
Phone: +94 777 202 225
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Deployment synchronizer build failure

2012-09-24 Thread Muhammed Shariq
Yup seems to be fixed now .. thanks !

On Mon, Sep 24, 2012 at 6:22 PM, Kishanthan Thangarajah kishant...@wso2.com
 wrote:

 Fixed. I have missed one commit to dependencies. Had it locally built.

 Please update dependencies/svnclient, components/deployment-synchronizer,
 features/deployment-synchronizer.

 On Mon, Sep 24, 2012 at 5:30 PM, Muhammed Shariq sha...@wso2.com wrote:

 Well i was building from patch release pom and got that error .. going in
 to the component and building worked .. now i am seeing the following error
 .. wonder if its local to me :(

 s
 [INFO]
 [INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @
 org.wso2.carbon.deployment.synchronizer.subversion ---
 [INFO] Compiling 5 source files to
 /home/shariq/src/4.0.0-branch/platform/components/deployment-synchronizer/org.wso2.carbon.deployment.synchronizer.subversion/4.0.2/target/classes
 [INFO] -
 [ERROR] COMPILATION ERROR :
 [INFO] -
 [ERROR]
 /home/shariq/src/4.0.0-branch/platform/components/deployment-synchronizer/org.wso2.carbon.deployment.synchronizer.subversion/4.0.2/src/main/java/org/wso2/carbon/deployment/synchronizer/subversion/SVNBasedArtifactRepository.java:[512,48]
 cannot find symbol
 symbol  : method
 update(java.io.File,java.lang.String,org.tigris.subversion.svnclientadapter.SVNRevision,int,boolean,boolean,boolean)
 location: interface
 org.tigris.subversion.svnclientadapter.ISVNClientAdapter
 [INFO] 1 error
 [INFO] -
 [INFO]
 
 [INFO] BUILD FAILURE
 [INFO]
 
 [INFO] Total time: 5.511s
 [INFO] Finished at: Mon Sep 24 17:28:14 IST 2012
 [INFO] Final Memory: 30M/322M
 [INFO]
 
 [ERROR] Failed to execute goal
 org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile
 (default-compile) on project
 org.wso2.carbon.deployment.synchronizer.subversion: Compilation failure
 [ERROR]
 /home/shariq/src/4.0.0-branch/platform/components/deployment-synchronizer/org.wso2.carbon.deployment.synchronizer.subversion/4.0.2/src/main/java/org/wso2/carbon/deployment/synchronizer/subversion/SVNBasedArtifactRepository.java:[512,48]
 cannot find symbol
 [ERROR] symbol  : method
 update(java.io.File,java.lang.String,org.tigris.subversion.svnclientadapter.SVNRevision,int,boolean,boolean,boolean)
 [ERROR] location: interface
 org.tigris.subversion.svnclientadapter.ISVNClientAdapter
  [ERROR] - [Help 1]
 [ERROR]
 [ERROR] To see the full stack trace of the errors, re-run Maven with the
 -e switch.
 [ERROR] Re-run Maven using the -X switch to enable full debug logging.


 On Mon, Sep 24, 2012 at 5:23 PM, Kishanthan Thangarajah 
 kishant...@wso2.com wrote:



 On Mon, Sep 24, 2012 at 5:06 PM, Muhammed Shariq sha...@wso2.comwrote:

 The kernel is upto date ..


 These constants are coming from org.wso2.carbon.utils 4.0.2 bundle.
 Please check that. If its not updated, you have to build again.

 Thanks,
 Kishanthan.


 [ERROR] Failed to execute goal
 org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile
 (default-compile) on project org.wso2.carbon.deployment.synchronizer:
 Compilation failure: Compilation failure:
 [ERROR]
 /home/shariq/src/4.0.0-branch/platform/components/deployment-synchronizer/org.wso2.carbon.deployment.synchronizer/4.0.2/src/main/java/org/wso2/carbon/deployment/synchronizer/internal/DeploymentSynchronizer.java:[317,55]
 cannot find symbol
 [ERROR] symbol  : variable MODULE_METAFILE_HOTDEPLOYMENT_DIR
 [ERROR] location: class org.wso2.carbon.CarbonConstants
 [ERROR]
 /home/shariq/src/4.0.0-branch/platform/components/deployment-synchronizer/org.wso2.carbon.deployment.synchronizer/4.0.2/src/main/java/org/wso2/carbon/deployment/synchronizer/internal/DeploymentSynchronizer.java:[319,67]
 cannot find symbol
 [ERROR] symbol  : variable GHOST_METAFILE_DIR
 [ERROR] location: class org.wso2.carbon.CarbonConstants
 [ERROR] - [Help 1]
 [ERROR]
 [ERROR] To see the full stack trace of the errors, re-run Maven with
 the -e switch.
 [ERROR] Re-run Maven using the -X switch to enable full debug logging.


 --
 Thanks,
 Shariq.
 Phone: +94 777 202 225


 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev




 --
 *Kishanthan Thangarajah*
 Software Engineer,
 Development Technologies Team,
 WSO2, Inc.
 lean.enterprise.middleware

 Mobile - +94773426635
 Blog - *http://kishanthan.wordpress.com*
 Twitter - *http://twitter.com/kishanthan*




 --
 Thanks,
 Shariq.
 Phone: +94 777 202 225




 --
 *Kishanthan Thangarajah*
 Software Engineer,
 Development Technologies Team,
 WSO2, Inc.
 lean.enterprise.middleware

 Mobile - +94773426635
 Blog - *http

Re: [Dev] CarbonContext refactoring hackathon

2012-09-10 Thread Muhammed Shariq
On Mon, Sep 10, 2012 at 8:48 PM, Afkham Azeez az...@wso2.com wrote:



 On Mon, Sep 10, 2012 at 8:29 PM, Senaka Fernando sen...@wso2.com wrote:

 +1, I believe that we're already on it, :).

 So Azeez, in the context of the perf improvements, what's the
 CarbonApplicationContext? Can't we replace it with CarbonContext.


 I'm not familiar with CarbonApplicationContext, but the idea is to get rid
 of all the Carbon*Context* classes, and have only CarbonContext, or just
 SupertenantCarbonContext  CarbonContext.


++1 .. So will be removing the CarbonContextHolder* classes as well I hope
:) .. At the moment its so hard to debug CC related issues ...




 Also, are people actually reusing CarbonContext from
 ConfigurationContext, AxisService, MessageContext, HTTPSession etc? or is
 it only thread-local? We can easily refactor if we can find answers to
 these.

 Regards,
 Senaka.


 On Mon, Sep 10, 2012 at 8:25 PM, Pradeep Fernando prad...@wso2.comwrote:

 noted. lets do it.

 --Pradeep




 --
 *Senaka Fernando*
 Member - Integration Technologies Management Committee;
 Technical Lead; WSO2 Inc.; http://wso2.com*
 Member; Apache Software Foundation; http://apache.org

 E-mail: senaka AT wso2.com
 **P: +1 408 754 7388; ext: 51736*; *M: +94 77 322 1818
 Linked-In: http://linkedin.com/in/senakafernando

 *
 Lean . Enterprise . Middleware




 --
 *Afkham Azeez*
 Director of Architecture; WSO2, Inc.; http://wso2.com
 Member; Apache Software Foundation; http://www.apache.org/
 * http://www.apache.org/**
 email: **az...@wso2.com* az...@wso2.com* cell: +94 77 3320919
 blog: **http://blog.afkham.org* http://blog.afkham.org*
 twitter: **http://twitter.com/afkham_azeez*http://twitter.com/afkham_azeez
 *
 linked-in: **http://lk.linkedin.com/in/afkhamazeez*
 *
 *
 *Lean . Enterprise . Middleware*


 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev




-- 
Thanks,
Shariq.
Phone: +94 777 202 225
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Build failure in identity component in trunk.

2012-08-20 Thread Muhammed Shariq
On Mon, Aug 20, 2012 at 11:24 AM, Asela Pathberiya as...@wso2.com wrote:



 On Mon, Aug 20, 2012 at 10:36 AM, Muhammed Shariq sha...@wso2.com wrote:

 Identity folks,

 Any update on this ?!


 Please svn up dependencies and components and try this agian... ?  New
 openid4java version has not been  added to trunk. it is in 4.0.1 branch..
  i just add it.


Ok thanks, will try that!


 Thanks,
 Asela.




 On Sat, Aug 18, 2012 at 4:46 PM, Muhammed Shariq sha...@wso2.com wrote:

 [INFO]
 
 [ERROR] Failed to execute goal
 org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile
 (default-compile) on project org.wso2.carbon.identity.provider: Compilation
 failure
 [ERROR]
 /home/shariq/src/trunk/platform/components/identity/org.wso2.carbon.identity.provider/src/main/java/org/wso2/carbon/identity/provider/openid/cache/AssociationCache.java:[91,46]
 cannot find symbol
 [ERROR] symbol  : constructor
 Association(java.lang.String,java.lang.String,javax.crypto.SecretKey,java.util.Date)
 [ERROR] location: class org.openid4java.association.Association
 [ERROR] - [Help 1]
 [ERROR]


 --
 Thanks,
 Shariq.
 Phone: +94 777 202 225




 --
 Thanks,
 Shariq.
 Phone: +94 777 202 225





-- 
Thanks,
Shariq.
Phone: +94 777 202 225
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Build failure in Mashup component in trunk

2012-08-18 Thread Muhammed Shariq
I am getting the following error on trunk, please have a look.

On a related note shouldn't the trunk also be up to date and building ?

[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile
(default-compile) on project org.wso2.carbon.mashup.utils: Compilation
failure: Compilation failure:
[ERROR]
/home/shariq/src/trunk/platform/components/mashup/org.wso2.carbon.mashup.utils/src/main/java/org/wso2/carbon/mashup/utils/MashupUtils.java:[97,35]
cannot find symbol
[ERROR] symbol  : class MashupSecurityDomain
[ERROR] location: class org.wso2.carbon.mashup.utils.MashupUtils
[ERROR]
/home/shariq/src/trunk/platform/components/mashup/org.wso2.carbon.mashup.utils/src/main/java/org/wso2/carbon/mashup/utils/MashupUtils.java:[106,35]
cannot find symbol
[ERROR] symbol  : class MashupSecurityDomain
[ERROR] location: class org.wso2.carbon.mashup.utils.MashupUtils
[ERROR] - [Help 1]


-- 
Thanks,
Shariq.
Phone: +94 777 202 225
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Error building ESB on branch ...

2012-08-15 Thread Muhammed Shariq
[INFO]

[ERROR] Failed to execute goal
org.wso2.maven:carbon-p2-plugin:1.5:p2-repo-gen (2-p2-repo-generation) on
project wso2esb-p2-profile: ERROR: Could not find artifact
org.wso2.carbon:org.wso2.carbon.transports.passthru.feature:zip:1.0.1 in
wso2-nexus (http://maven.wso2.org/nexus/content/groups/wso2-public/)
[ERROR]
[ERROR] Try downloading the file manually from the project website.
[ERROR]
[ERROR] Then, install it using the command:
[ERROR] mvn install:install-file -DgroupId=org.wso2.carbon
-DartifactId=org.wso2.carbon.transports.passthru.feature -Dversion=1.0.1
-Dpackaging=zip -Dfile=/path/to/file
[ERROR]
[ERROR] Alternatively, if you host your own repository you can deploy the
file there:
[ERROR] mvn deploy:deploy-file -DgroupId=org.wso2.carbon
-DartifactId=org.wso2.carbon.transports.passthru.feature -Dversion=1.0.1
-Dpackaging=zip -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
[ERROR]
[ERROR]
[ERROR]
org.wso2.carbon:org.wso2.carbon.transports.passthru.feature:zip:1.0.1
[ERROR]
[ERROR] from the specified remote repositories:
[ERROR] wso2-nexus (http://maven.wso2.org/nexus/content/groups/wso2-public/,
releases=true, snapshots=true),
[ERROR] central (http://repo1.maven.org/maven2, releases=true,
snapshots=false)
[ERROR] - [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e
switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.


-- 
Thanks,
Shariq.
Phone: +94 777 202 225
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Build error in BPEL4People Extension - 4.0.1 branch.

2012-08-13 Thread Muhammed Shariq
[INFO] WSO2 Carbon - BPEL BPEL4People Extension .. FAILURE [2.143s]
[INFO] WSO2 Carbon - BPEL BAM publishing Extension ... SKIPPED
[INFO] WSO2 Carbon - Human Task Engine ... SKIPPED
[INFO] WSO2 Carbon - HumanTask Deployer Component  SKIPPED
[INFO] WSO2 Carbon - HumanTask UI  SKIPPED
[INFO] WSO2 Carbon - HumanTask Cleanup SchedulerComponent  SKIPPED
[INFO] WSO2 Carbon - Attachment Management BE Component .. SKIPPED
[INFO] WSO2 Carbon - Patch releases - components - Aggregator Module
 SKIPPED
[INFO]

[INFO] BUILD FAILURE
[INFO]

[INFO] Total time: 33.497s
[INFO] Finished at: Mon Aug 13 13:10:16 IST 2012
[INFO] Final Memory: 139M/798M
[INFO]

[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile
(default-compile) on project org.wso2.carbon.bpel.b4p: Compilation failure:
Compilation failure:
[ERROR]
/home/shariq/src/4.0.0-branch/platform/components/business-processes/bpel/org.wso2.carbon.bpel.b4p/4.0.1/src/main/java/org/wso2/carbon/bpel/b4p/utils/SOAPHelper.java:[36,44]
package org.wso2.carbon.bpel.common.constants does not exist
[ERROR]
/home/shariq/src/4.0.0-branch/platform/components/business-processes/bpel/org.wso2.carbon.bpel.b4p/4.0.1/src/main/java/org/wso2/carbon/bpel/b4p/utils/SOAPHelper.java:[36,44]
package org.wso2.carbon.bpel.common.constants does not exist
[ERROR]
/home/shariq/src/4.0.0-branch/platform/components/business-processes/bpel/org.wso2.carbon.bpel.b4p/4.0.1/src/main/java/org/wso2/carbon/bpel/b4p/utils/SOAPHelper.java:[111,33]
cannot find symbol
[ERROR] symbol  : variable Constants
[ERROR] location: class org.wso2.carbon.bpel.b4p.utils.SOAPHelper
[ERROR]
/home/shariq/src/4.0.0-branch/platform/components/business-processes/bpel/org.wso2.carbon.bpel.b4p/4.0.1/src/main/java/org/wso2/carbon/bpel/b4p/utils/SOAPHelper.java:[112,40]
cannot find symbol
[ERROR] symbol  : variable Constants
[ERROR] location: class org.wso2.carbon.bpel.b4p.utils.SOAPHelper
[ERROR]
/home/shariq/src/4.0.0-branch/platform/components/business-processes/bpel/org.wso2.carbon.bpel.b4p/4.0.1/src/main/java/org/wso2/carbon/bpel/b4p/utils/SOAPHelper.java:[113,43]
cannot find symbol
[ERROR] symbol  : variable Constants
[ERROR] location: class org.wso2.carbon.bpel.b4p.utils.SOAPHelper
[ERROR]
/home/shariq/src/4.0.0-branch/platform/components/business-processes/bpel/org.wso2.carbon.bpel.b4p/4.0.1/src/main/java/org/wso2/carbon/bpel/b4p/utils/SOAPHelper.java:[114,42]
cannot find symbol
[ERROR] symbol  : variable Constants
[ERROR] location: class org.wso2.carbon.bpel.b4p.utils.SOAPHelper
[ERROR] - [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e
switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions,
please read the following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the
command
[ERROR]   mvn goals -rf :org.wso2.carbon.bpel.b4p


-- 
Thanks,
Shariq.
Phone: +94 777 202 225
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Manager build error on trunk

2012-08-08 Thread Muhammed Shariq
Hi,

I am getting the following error while building Manager on trunk,

Cannot complete the install because one or more required items could not be
found.
 Software being installed: WSO2 Stratos - Cloud Manager Composite Feature
2.0.0.SNAPSHOT (org.wso2.stratos.manager.feature.group 2.0.0.SNAPSHOT)
 Missing requirement: Rahas 1.6.1.wso2v4 (rampart-trust 1.6.1.wso2v4)
requires 'package org.apache.neethi [2.0.4.wso2v4,3.0.0)' but it could not
be found
 Cannot satisfy dependency:
  From: WSO2 Carbon - Security Management Feature 4.0.0.SNAPSHOT
(org.wso2.carbon.security.mgt.feature.group 4.0.0.SNAPSHOT)
  To: org.wso2.carbon.security.mgt.ui.feature.group [4.0.0.SNAPSHOT]
 Cannot satisfy dependency:
  From: WSO2 Carbon - Security Management UI Feature 4.0.0.SNAPSHOT
(org.wso2.carbon.security.mgt.ui.feature.group 4.0.0.SNAPSHOT)
  To: rampart-trust [1.6.1.wso2v4,1.7.0)
 Cannot satisfy dependency:
  From: WSO2 Stratos - Cloud Manager Composite Feature 2.0.0.SNAPSHOT
(org.wso2.stratos.manager.feature.group 2.0.0.SNAPSHOT)
  To: org.wso2.stratos.manager.server.feature.group [2.0.0.SNAPSHOT]
 Cannot satisfy dependency:
  From: WSO2 Stratos - Cloud Manager Core Feature 2.0.0.SNAPSHOT
(org.wso2.stratos.manager.server.feature.group 2.0.0.SNAPSHOT)
  To: org.wso2.carbon.security.mgt.feature.group [4.0.0.SNAPSHOT,4.1.0)
Application failed, log file location:
/home/shariq/.m2/repository.trunk/org/eclipse/tycho/tycho-p2-runtime/0.13.0/eclipse/configuration/1344420626724.log


It seems the neethi bundle is coming from the kernel and also available in
kernel distro, but for some reason during the build its not getting copied
to the  Manager p2-reop (modules/p2-profile-gen/target/p2-repo/plugins/).
Pradeep any idea why this could happen ?!

Also if anybody did any changes that could have caused this change please
let me know, the build was fine until about last week.

-- 
Thanks,
Shariq.
Phone: +94 777 202 225
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Branch 4.0.0 build failure in Stratos usage-agent component

2012-07-28 Thread Muhammed Shariq
Removed the dependency to the old agent component ...

On Sat, Jul 28, 2012 at 10:22 AM, Ranga Siriwardena ra...@wso2.com wrote:

 Hi,

 $Subject.

 -- Forwarded message --
 From: WSO2 Carbon 3.2.2 Builder (US1) cbuil...@wso2.org
 Date: Sat, Jul 28, 2012 at 6:14 PM
 Subject: WSO2 Carbon Continuous Build has FAILED
 /home/builder/carbon/platform/4.0.0
 To: ra...@wso2.com


 [INFO] WSO2 Carbon - Autoscaler Feature .. SKIPPED
 [INFO] Autoscaler Service Module . SKIPPED
 [INFO] WSO2 Carbon - Autoscaler Feature .. SKIPPED
 [INFO] Tenant Aware Load Balancer Feature Aggregator Module  SKIPPED
 [INFO] WSO2 Carbon - Loadbalancer Endpoint Management Feature  SKIPPED
 [INFO] WSO2 Carbon - Gadget Generation Feature Aggregator Module  SKIPPED
 [INFO] WSO2 Carbon - Gadget Generation Server Feature  SKIPPED
 [INFO] WSO2 Carbon - Gadget Generation UI Feature  SKIPPED
 [INFO] WSO2 Carbon - Gadget Generation Feature ... SKIPPED
 [INFO] WSO2 Carbon - Cassandra Feature Aggregator Module . SKIPPED
 [INFO] WSO2 Carbon - Cassandra Explorer server Feature ... SKIPPED
 [INFO] WSO2 Carbon - Cassandra Explorer UI Feature ... SKIPPED
 [INFO] WSO2 Carbon - Cassandra Explorer Feature .. SKIPPED
 [INFO] WSO2 Carbon - Data Bridge - Cassandra Defn Storage Server Feature
  SKIPPED
 [INFO] WSO2 Carbon - Data Bridge - Cassandra Defn Storage Aggregator
 Feature  SKIPPED
 [INFO] WSO2 Carbon - New Datasource Management Feature ... SKIPPED
 [INFO] WSO2 Jaggery Server - Features Aggregator Module .. SKIPPED
 [INFO] WSO2 Jaggery Server - Style Features .. SKIPPED
 [INFO] Jaggery Server Feature  SKIPPED
 [INFO] Jaggery Management UI Feature . SKIPPED
 [INFO] Jaggery aggregate Feature . SKIPPED
 [INFO] WSO2 Carbon - BAM Feature Aggregator Module ... SKIPPED
 [INFO] WSO2 Carbon - BAM Core Feature  SKIPPED
 [INFO] WSO2 Carbon - BAM Management UI Feature ... SKIPPED
 [INFO] WSO2 Carbon - Business Activity Monitoring Feature  SKIPPED
 [INFO] WSO2 Carbon - AppFactory Feature Aggregator Module  SKIPPED
 [INFO] WSO2 Carbon - AppFactory Server Feature ... SKIPPED
 [INFO] WSO2 Carbon - Platform Aggregator Pom . SKIPPED
 [INFO]
 
 [INFO] BUILD FAILURE
 [INFO]
 
 [INFO] Total time: 57:42.630s
 [INFO] Finished at: Sat Jul 28 18:14:11 IST 2012
 [INFO] Final Memory: 1471M/1811M
 [INFO]
 
 [ERROR] Failed to execute goal on project org.wso2.carbon.usage.agent:
 Could not resolve dependencies for project
 org.wso2.carbon:org.wso2.carbon.usage.agent:bundle:2.0.0: Could not find
 artifact org.wso2.carbon:org.wso2.carbon.agent:jar:4.0.0 in wso2-nexus (
 http://maven.wso2.org/nexus/content/groups/wso2-public/) - [Help 1]
 [ERROR]
 [ERROR] To see the full stack trace of the errors, re-run Maven with the
 -e switch.
 [ERROR] Re-run Maven using the -X switch to enable full debug logging.
 [ERROR]
 [ERROR] For more information about the errors and possible solutions,
 please read the following articles:
 [ERROR] [Help 1]
 http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
 [ERROR]
 [ERROR] After correcting the problems, you can resume the build with the
 command
 [ERROR]   mvn goals -rf :org.wso2.carbon.usage.agent


 Thank You.
 Ranga.

 --
 Ranga Siriwardena
 Software Engineer
 WSO2 Inc.




-- 
Thanks,
Shariq.
Phone: +94 777 202 225
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


  1   2   3   >