[Dev] [Bamboo-Build] WSO2 Carbon > platform > #45 has FAILED (2 tests failed, no failures were new)

2012-03-31 Thread Bamboo

---
WSO2 Carbon > platform > #45 failed.
---
This build occurred because it is a dependant of 
WSO2CARBON-CARBONCOREKERNELBUILD-144.
2/1705 tests failed, no failures were new.

http://builder4.us1.wso2.org:/bamboo/browse/WSO2CARBON-PLATFORM-45/


--
Failing Jobs
--
  - Default Job (Default Stage): 2 of 1705 tests failed.



--
Tests
--
Existing Test Failures (2)
   - APIDispatcherTest: Response dispatch
   - URLMappingBasedDispatcherTest: Response dispatch

--
This message is automatically generated by Atlassian Bamboo___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [Bamboo-Build] WSO2 Carbon > Kernel > #145 has FAILED. Change made by isuru.

2012-03-31 Thread Bamboo

---
WSO2 Carbon > Kernel > #145 failed.
---
Code has been updated by isuru.
No failed tests found, a possible compilation error.

http://builder4.us1.wso2.org:/bamboo/browse/WSO2CARBON-CARBONCOREKERNELBUILD-145/


--
Failing Jobs
--
  - Default Job (Default Stage): 2790 tests passed.


--
Code Changes
--
isuru (124529):

>upgrading geronimo saaj version to 1.0.0.wso2v3

isuru (124527):

>importing javax.xml.soap version 1.0.0 from axis2

isuru (124530):

>Getting javax.xml.soap interface and it's implementation from jdk.. This is 
>needed to make jaxws handler scenarios work in cxf



--
This message is automatically generated by Atlassian Bamboo___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Getting javax.xml.soap package from JDK for CXF

2012-03-31 Thread Afkham Azeez
Is the Bamboo kernel build failure a result of this change?

On Sat, Mar 31, 2012 at 12:06 PM, Isuru Suriarachchi  wrote:

> I've committed all changes related to this after running integration tests
> in kernel and AS. If any of the other products are affected by this, please
> let me know.
>
> Thanks,
> ~Isuru
>
>
> On Sat, Mar 31, 2012 at 10:09 AM, Isuru Suriarachchi wrote:
>
>> Hi all,
>>
>> I had an issue while trying CXF handler samples due to javax.xml.soap
>> package. In Carbon, currently we get javax.xml.soap api from geronimo-saaj
>> api bundle and the saaj implementation is coming from axis2-saaj. But CXF
>> works properly only with the JDK implementation of javax.xml.soap.
>>
>> In order to solve this problem, I wanted to let axis2 bind to geronimo
>> and cxf bind to JDK. So I followed these steps.
>>
>> 1. Currently, geronimo-saaj bundle is a fragment of the system bundle
>> [1]. First I made it a normal bundle as we no longer need it to be a
>> fragment.
>> 2. geronimo-saaj bundle exports the javax.xml.soap package with version
>> 1.0.0. So I fixed axis2 bundle to import the 1.0.0 version.
>> 3. Added following lines to launch.ini to get the javax.xml.soap api and
>> the implementation for the JDK.
>>
>> javax.xml.soap,\
>> com.sun.xml.internal.messaging.saaj.soap.ver1_1,\
>> com.sun.xml.internal.messaging.saaj.soap,\
>>
>> 4. Imported javax.xml.soap version 0.0.0 from CXF bundle.
>>
>> Now the bundle wiring looks like this..
>>
>> osgi> p javax.xml.soap
>> javax.xml.soap; version="0.0.0"
>>   org.eclipse.core.expressions_3.4.300.v20110228 [73] imports
>>   org.eclipse.core.runtime_3.7.0.v20110110 [75] imports
>>   org.eclipse.equinox.p2.garbagecollector_1.0.200.v20110510 [99] imports
>>   tomcat_7.0.26.wso2v1 [322] imports  <--- (CXF is a
>> fragment of tomcat. Therefore it's shown through tomcat bundle)
>> javax.xml.soap; version="1.0.0"
>>   axis2_1.6.1.wso2v5 [16] imports
>>   spring.framework_3.1.0.wso2v1 [318] imports
>>   wss4j_1.5.11.wso2v3 [328] imports
>>
>> Finally I tested both CXF handler samples and Axis2 Caching which uses
>> saaj. Both seems to work properly.
>>
>> Now I'm gonna give a new version to geronimo saaj and un-graduate it and
>> add it to orbit. Then I'll commit all above changes. If anyone can see any
>> issues with this approach, please let me know.
>>
>> Thanks,
>> ~Isuru
>>
>> [1]
>> https://svn.wso2.org/repos/wso2/tags/carbon/3.1.0_chunk1_as_ms/orbit/geronimo-saaj_1.3_spec/1.0.0.wso2v2
>>
>> --
>> Isuru Suriarachchi
>> Technical Lead
>> WSO2 Inc. http://wso2.com
>> email : is...@wso2.com
>> blog : http://isurues.wordpress.com/
>>
>> lean . enterprise . middleware
>>
>>
>
>
> --
> Isuru Suriarachchi
> Technical Lead
> WSO2 Inc. http://wso2.com
> email : is...@wso2.com
> blog : http://isurues.wordpress.com/
>
> lean . enterprise . middleware
>
>
> ___
> 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/
* **
email: **az...@wso2.com* * cell: +94 77 3320919
blog: **http://blog.afkham.org* *
twitter: **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


Re: [Dev] Status of Stratos Services in trunk

2012-03-31 Thread Supun Malinga
Hi,

I have started and tested stratos AS briefly. Worked fine.
But the stratos setup script script is/was broken due to config file
changes. I prompted this in another thread earlier.

thanks,

On Sat, Mar 31, 2012 at 12:11 PM, Kathiravelu Pradeeban
wrote:

> I tested a few services this week - including Manager and IS - they are
> working fine.
>
> We will test all the services with the newly built packs with the help of
> the product teams, and will report if any service fails, the coming Monday.
>
> Regards,
> Pradeeban.
>
>
> On Sat, Mar 31, 2012 at 11:51 AM, Afkham Azeez  wrote:
>
>> Folks,
>> Are all the Stratos stuff running fine? Is anybody extensively testing
>> them? We cannot release the kernel without Stratos working because most of
>> the core Stratos functionality is in the kernel.
>>
>> --
>> *Afkham Azeez*
>> Director of Architecture; WSO2, Inc.; http://wso2.com
>> Member; Apache Software Foundation; http://www.apache.org/
>> * **
>> email: **az...@wso2.com* * cell: +94 77 3320919
>> blog: **http://blog.afkham.org* *
>> twitter: **http://twitter.com/afkham_azeez*
>> *
>> linked-in: **http://lk.linkedin.com/in/afkhamazeez*
>> *
>> *
>> *Lean . Enterprise . Middleware*
>>
>>
>
>
> --
> Kathiravelu Pradeeban.
> Software Engineer.
> Cloud Technologies Team.
> WSO2 Inc.
>
> Blog: [Llovizna] http://kkpradeeban.blogspot.com/
> M: +94 776 477 976
>
>
> ___
> 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 
mobile - 071 56 91 321
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Don't declare a plugin multiple times

2012-03-31 Thread Supun Malinga
+1
Hope everyone will stick to best practices.

thanks,

On Sat, Mar 31, 2012 at 11:39 AM, Isuru Suriarachchi  wrote:

> +1 Good job..
>
> On Fri, Mar 30, 2012 at 9:51 PM, Afkham Azeez  wrote:
>
>> Nice work Pradeeban. Thanks for taking up this task & fixing all these
>> problems which were lingering for some time.
>>
>> Thanks
>> Azeez
>>
>> On Fri, Mar 30, 2012 at 8:52 PM, Kathiravelu Pradeeban <
>> pradee...@wso2.com> wrote:
>>
>>> The attached patch fixes all the maven3 warnings and bad practices found
>>> in products/pom.xml's. Will commit it after finishing this full build with
>>> tests.
>>>
>>> Regards,
>>> Pradeeban.
>>>
>>>
>>> On Fri, Mar 30, 2012 at 3:47 PM, Kathiravelu Pradeeban <
>>> pradee...@wso2.com> wrote:
>>>
 Also to avoid declaring the dependencies and versions multiple times,
 where there exists dependencies defined multiple times in a pom with
 different versions.
 I have already fixed all these maven3 violations. Will commit these
 after building with tests. So do *NOT* work on fixing these now. Just
 mentioning to the list for the completeness.

 For example, I can see the below, in many of the modules/distribution
 poms.

 *
 org.apache.maven.plugins
 maven-antrun-plugin
 1.1
 
 
 extract-docs-from-components
 package
 
 run
 
 
 
 ... ...
 
 
 
 
 

 
 org.apache.maven.plugins
 maven-antrun-plugin
 1.1
 
 
 clean_target
 install
 
 
 ... ...
 
 
 
 run
 
 
 
 

 *Which actually should have been defined like this.

 *
 org.apache.maven.plugins
 maven-antrun-plugin
 1.1
 
 
 extract-docs-from-components
 package
 
 run
 
 
 
 ... ...
 
 
 
 
 clean_target
 install
 
 
 ... ...
 
 
 
 run
 
 
 
 
 *
 Thank you.
 Regards,
 Pradeeban.
 --
 Kathiravelu Pradeeban.
 Software Engineer.
 Cloud Technologies Team.
 WSO2 Inc.

 Blog: [Llovizna] http://kkpradeeban.blogspot.com/
 M: +94 776 477 976


>>>
>>>
>>> --
>>> Kathiravelu Pradeeban.
>>> Software Engineer.
>>> Cloud Technologies Team.
>>> WSO2 Inc.
>>>
>>> Blog: [Llovizna] http://kkpradeeban.blogspot.com/
>>> M: +94 776 477 976
>>>
>>>
>>> ___
>>> 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/
>> * **
>> email: **az...@wso2.com* * cell: +94 77 3320919
>> blog: **http://blog.afkham.org* *
>> twitter: **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
>>
>>
>
>
> --
> Isuru Suriarachchi
> Technical Lead
> WSO2 Inc. http://wso2.com
> email : is...@wso2.com
> blog : http://isurues.wordpress.com/
>
> lean . enterprise . middleware

[Dev] [Bamboo-Build] WSO2 Carbon > Kernel > #146 has FAILED

2012-03-31 Thread Bamboo

---
WSO2 Carbon > Kernel > #146 failed.
---
This build occurred because it is a dependant of 
WSO2CARBON-CARBONKERNELBUILD-64.
No failed tests found, a possible compilation error.

http://builder4.us1.wso2.org:/bamboo/browse/WSO2CARBON-CARBONCOREKERNELBUILD-146/


--
Failing Jobs
--
  - Default Job (Default Stage): 2790 tests passed.



--
This message is automatically generated by Atlassian Bamboo___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [Bamboo-Build] WSO2 Carbon > Kernel > #147 has FAILED

2012-03-31 Thread Bamboo

---
WSO2 Carbon > Kernel > #147 failed.
---
This build occurred because it is a dependant of 
WSO2CARBON-CARBONKERNELBUILD-65.
No failed tests found, a possible compilation error.

http://builder4.us1.wso2.org:/bamboo/browse/WSO2CARBON-CARBONCOREKERNELBUILD-147/


--
Failing Jobs
--
  - Default Job (Default Stage): 1633 tests passed.



--
This message is automatically generated by Atlassian Bamboo___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [Bamboo-Build] WSO2 Carbon > Kernel > #148 was SUCCESSFUL (with 2790 tests)

2012-03-31 Thread Bamboo

---
WSO2 Carbon > Kernel > #148 was successful.
---
This build occurred because it is a dependant of 
WSO2CARBON-CARBONKERNELBUILD-66.
2790 tests in total.

http://builder4.us1.wso2.org:/bamboo/browse/WSO2CARBON-CARBONCOREKERNELBUILD-148/



--
This message is automatically generated by Atlassian Bamboo___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Reaching UserAdmin Service

2012-03-31 Thread Thilina Buddhika
In order to perform privileged operations, it is mandatory to authenticate
as a user with the necessary permissions.

Following post by Prabath will be helpful for you.

http://blog.facilelogin.com/2010/05/managing-users-and-roles-with-wso2.html

Thanks,
Thilina

On Fri, Mar 30, 2012 at 6:02 PM, metin d  wrote:

> I want to use addUser operation in UserAdmin service, but I got "Access
> Denied. Please login first." exception, how can I login first ?
>
>
> ID: [0] [WSO2 Stratos Application Server] [2012-03-30 15:27:23,952] ERROR
> {org.apache.axis2.engine.AxisEngine} -  Access Denied. Please login first.
> {org.apache.axis2.engine.AxisEngine}
> org.apache.axis2.AxisFault: Access Denied. Please login first.
>  at
> org.wso2.carbon.server.admin.module.handler.AuthenticationHandler.authenticate(AuthenticationHandler.java:83)
> at
> org.wso2.carbon.server.admin.module.handler.AuthenticationHandler.invoke(AuthenticationHandler.java:61)
>  at org.apache.axis2.engine.Phase.invokeHandler(Phase.java:340)
> at org.apache.axis2.engine.Phase.invoke(Phase.java:313)
>  at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:262)
> at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:168)
>  at
> org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:172)
> at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:146)
>  at
> org.wso2.carbon.core.transports.CarbonServlet.doPost(CarbonServlet.java:199)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:641)
>  at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
> at
> org.eclipse.equinox.http.servlet.internal.ServletRegistration.handleRequest(ServletRegistration.java:90)
>  at
> org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:111)
> at
> org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:67)
>  at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
> at org.wso2.carbon.bridge.BridgeServlet.service(BridgeServlet.java:164)
>  at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
> at sun.reflect.GeneratedMethodAccessor27.invoke(Unknown Source)
>  at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:273)
>  at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:270)
> at java.security.AccessController.doPrivileged(Native Method)
>  at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
> at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:305)
>  at
> org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:165)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:298)
>  at
> org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:57)
> at
> org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:193)
>  at
> org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:189)
> at java.security.AccessController.doPrivileged(Native Method)
>  at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
> at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:240)
>  at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:164)
> at
> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:462)
>  at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
> at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)
>  at
> org.wso2.carbon.server.CarbonStuckThreadDetectionValve.invoke(CarbonStuckThreadDetectionValve.java:154)
> at org.wso2.carbon.server.TomcatServer$1.invoke(TomcatServer.java:254)
>  at
> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:563)
> at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
>  at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:399)
> at
> org.apache.coyote.http11.Http11NioProcessor.process(Http11NioProcessor.java:396)
>  at
> org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.process(Http11NioProtocol.java:356)
> at
> org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1534)
>  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:705)
> TID: [0] [WSO2 Stratos Application Server] [2012-03-30 15:27:23,952] ERROR
> {org.apache.axis2.engine.AxisEngine} -  Access Denied. Please login first.
> {org.apache.axis2.engine.AxisEngine}
> org.apache.axis2.AxisFault: Access Denied. Please login first.

Re: [Dev] Proposing a nightly build

2012-03-31 Thread Thilina Buddhika
+1, if we can make sure that the packs are ready (or the issues are
detected) by the morning when people start to work.

Thanks,
Thilina

On Fri, Mar 30, 2012 at 2:35 PM, Nandika Jayawardana wrote:

> +1 for 12 pm.
>
> Regards
> Nandika
>
> On Fri, Mar 30, 2012 at 2:31 PM, Pradeep Fernando 
> wrote:
> > Hi,
> >
> > how about 12 pm , 1 am. (off-peak).
> >
> > --Pradeep
> >
> > ___
> > Dev mailing list
> > Dev@wso2.org
> > http://wso2.org/cgi-bin/mailman/listinfo/dev
> >
>
>
>
> --
> Nandika Jayawardana
> Technical Lead
> WSO2 Inc ; http://wso2.com
> lean.enterprise.middleware
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>



-- 
Thilina Buddhika
Associate Technical Lead
WSO2 Inc. ; http://wso2.com
lean . enterprise . middleware

phone : +94 77 44 88 727
blog : http://blog.thilinamb.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Getting javax.xml.soap package from JDK for CXF

2012-03-31 Thread Isuru Suriarachchi
Oh.. I haven't added geronimo-saaj module into orbit root pom :(. Thanks
Pradeep for adding it. Everything should be fine now. Sorry for the
inconvenience..

Thanks,
~Isuru

On Sat, Mar 31, 2012 at 3:01 PM, Afkham Azeez  wrote:

> Is the Bamboo kernel build failure a result of this change?
>
> On Sat, Mar 31, 2012 at 12:06 PM, Isuru Suriarachchi wrote:
>
>> I've committed all changes related to this after running integration
>> tests in kernel and AS. If any of the other products are affected by this,
>> please let me know.
>>
>> Thanks,
>> ~Isuru
>>
>>
>> On Sat, Mar 31, 2012 at 10:09 AM, Isuru Suriarachchi wrote:
>>
>>> Hi all,
>>>
>>> I had an issue while trying CXF handler samples due to javax.xml.soap
>>> package. In Carbon, currently we get javax.xml.soap api from geronimo-saaj
>>> api bundle and the saaj implementation is coming from axis2-saaj. But CXF
>>> works properly only with the JDK implementation of javax.xml.soap.
>>>
>>> In order to solve this problem, I wanted to let axis2 bind to geronimo
>>> and cxf bind to JDK. So I followed these steps.
>>>
>>> 1. Currently, geronimo-saaj bundle is a fragment of the system bundle
>>> [1]. First I made it a normal bundle as we no longer need it to be a
>>> fragment.
>>> 2. geronimo-saaj bundle exports the javax.xml.soap package with version
>>> 1.0.0. So I fixed axis2 bundle to import the 1.0.0 version.
>>> 3. Added following lines to launch.ini to get the javax.xml.soap api and
>>> the implementation for the JDK.
>>>
>>> javax.xml.soap,\
>>> com.sun.xml.internal.messaging.saaj.soap.ver1_1,\
>>> com.sun.xml.internal.messaging.saaj.soap,\
>>>
>>> 4. Imported javax.xml.soap version 0.0.0 from CXF bundle.
>>>
>>> Now the bundle wiring looks like this..
>>>
>>> osgi> p javax.xml.soap
>>> javax.xml.soap; version="0.0.0"
>>>   org.eclipse.core.expressions_3.4.300.v20110228 [73] imports
>>>   org.eclipse.core.runtime_3.7.0.v20110110 [75] imports
>>>   org.eclipse.equinox.p2.garbagecollector_1.0.200.v20110510 [99] imports
>>>   tomcat_7.0.26.wso2v1 [322] imports  <--- (CXF is a
>>> fragment of tomcat. Therefore it's shown through tomcat bundle)
>>> javax.xml.soap; version="1.0.0"
>>>   axis2_1.6.1.wso2v5 [16] imports
>>>   spring.framework_3.1.0.wso2v1 [318] imports
>>>   wss4j_1.5.11.wso2v3 [328] imports
>>>
>>> Finally I tested both CXF handler samples and Axis2 Caching which uses
>>> saaj. Both seems to work properly.
>>>
>>> Now I'm gonna give a new version to geronimo saaj and un-graduate it and
>>> add it to orbit. Then I'll commit all above changes. If anyone can see any
>>> issues with this approach, please let me know.
>>>
>>> Thanks,
>>> ~Isuru
>>>
>>> [1]
>>> https://svn.wso2.org/repos/wso2/tags/carbon/3.1.0_chunk1_as_ms/orbit/geronimo-saaj_1.3_spec/1.0.0.wso2v2
>>>
>>> --
>>> Isuru Suriarachchi
>>> Technical Lead
>>> WSO2 Inc. http://wso2.com
>>> email : is...@wso2.com
>>> blog : http://isurues.wordpress.com/
>>>
>>> lean . enterprise . middleware
>>>
>>>
>>
>>
>> --
>> Isuru Suriarachchi
>> Technical Lead
>> WSO2 Inc. http://wso2.com
>> email : is...@wso2.com
>> blog : http://isurues.wordpress.com/
>>
>> lean . enterprise . middleware
>>
>>
>> ___
>> 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/
> * **
> email: **az...@wso2.com* * cell: +94 77 3320919
> blog: **http://blog.afkham.org* *
> twitter: **http://twitter.com/afkham_azeez*
> *
> linked-in: **http://lk.linkedin.com/in/afkhamazeez*
> *
> *
> *Lean . Enterprise . Middleware*
>
>


-- 
Isuru Suriarachchi
Technical Lead
WSO2 Inc. http://wso2.com
email : is...@wso2.com
blog : http://isurues.wordpress.com/

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


[Dev] [Bamboo-Build] WSO2 Carbon > platform > #46 has FAILED. Change made by 4 authors.

2012-03-31 Thread Bamboo

---
WSO2 Carbon > platform > #46 failed.
---
This build occurred because it is a dependant of 
WSO2CARBON-CARBONCOREKERNELBUILD-148.
No failed tests found, a possible compilation error.

http://builder4.us1.wso2.org:/bamboo/browse/WSO2CARBON-PLATFORM-46/


--
Failing Jobs
--
  - Default Job (Default Stage): 2052 tests passed.


--
Code Changes
--
isuru (124531):

>fixing handler xml path in jaxws handler sample

pradeep (124534):

>fixing CARBON-12760

udayanga (124528):

>fixing API response dispatching bug



--
Tests
--
Fixed Tests (2)
   - APIDispatcherTest: Response dispatch
   - URLMappingBasedDispatcherTest: Response dispatch

--
This message is automatically generated by Atlassian Bamboo___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Error while executing Sonar goals in Platform

2012-03-31 Thread Dushan Abeyruwan
Hi
  While executing platform sonar goals i am getting following error, prior
to this was able to run mvn clean install successfully on carbon platform,
this issue arising while running sonar goals ONLY.
  few modules provide same issue,
  org.wso2.carbon.dataservices.core
  core,org.wso2.carbon.event.sink
   org.wso2.carbon.mediation.initialize  etc...
 Any idea why this is happening..

[INFO]

[ERROR] Failed to execute goal org.apache.felix:maven-scr-plugin:1.0.10:scr
(generate-scr-scrdescriptor) on project org.wso2.carbon.dataservices.core:
Unable to get manifest from artifact
org.wso2.carbon:org.wso2.carbon.dataservices.common:jar:4.0.0-SNAPSHOT:compile:
error in opening zip file -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute
goal org.apache.felix:maven-scr-plugin:1.0.10:scr
(generate-scr-scrdescriptor) on project org.wso2.carbon.dataservices.core:
Unable to get manifest from artifact
org.wso2.carbon:org.wso2.carbon.dataservices.common:jar:4.0.0-SNAPSHOT:compile
at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:217)
at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at
org.apache.maven.lifecycle.internal.MojoExecutor.executeForkedExecutions(MojoExecutor.java:365)
at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:199)
at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
at
org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
at
org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:85)
at
org.sonar.maven3.Maven3PluginExecutor.concreteExecute(Maven3PluginExecutor.java:49)
at
org.sonar.batch.AbstractMavenPluginExecutor.execute(AbstractMavenPluginExecutor.java:49)
at
org.sonar.batch.AbstractMavenPluginExecutor.execute(AbstractMavenPluginExecutor.java:38)
at
org.sonar.batch.phases.InitializersExecutor.executeMavenPlugin(InitializersExecutor.java:73)
at
org.sonar.batch.phases.InitializersExecutor.execute(InitializersExecutor.java:60)
at org.sonar.batch.phases.Phases.execute(Phases.java:90)
at org.sonar.batch.bootstrap.ProjectModule.doStart(ProjectModule.java:143)
at org.sonar.batch.bootstrap.Module.start(Module.java:83)
at org.sonar.batch.bootstrap.BatchModule.analyze(BatchModule.java:115)
at org.sonar.batch.bootstrap.BatchModule.analyze(BatchModule.java:110)
at org.sonar.batch.bootstrap.BatchModule.analyze(BatchModule.java:110)
at org.sonar.batch.bootstrap.BatchModule.doStart(BatchModule.java:105)
at org.sonar.batch.bootstrap.Module.start(Module.java:83)
at
org.sonar.batch.bootstrap.BootstrapModule.doStart(BootstrapModule.java:102)
at org.sonar.batch.bootstrap.Module.start(Module.java:83)
at org.sonar.batch.bootstrapper.Batch.startBatch(Batch.java:71)
at org.sonar.batch.bootstrapper.Batch.execute(Batch.java:58)
at org.sonar.maven3.SonarMojo.execute(SonarMojo.java:143)
at org.codehaus.mojo.sonar.Bootstraper.executeMojo(Bootstraper.java:113)
at org.codehaus.mojo.sonar.Bootstraper.start(Bootstraper.java:65)
at org.codehaus.mojo.sonar.SonarMojo.execute(SonarMojo.java:90)
at
org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
at
org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
at
org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.in

[Dev] [Bamboo-Build] WSO2 Carbon > platform > #47 was SUCCESSFUL (with 2052 tests)

2012-03-31 Thread Bamboo

---
WSO2 Carbon > platform > #47 was successful.
---
This build occurred because it is a dependant of 
WSO2CARBON-CARBONCOREKERNELBUILD-149.
2052 tests in total.

http://builder4.us1.wso2.org:/bamboo/browse/WSO2CARBON-PLATFORM-47/



--
This message is automatically generated by Atlassian Bamboo___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Stratos-dev] Tenant Aware load balance implementation

2012-03-31 Thread Sanjeewa Malalgoda
Any update or idea on this? This issue blocks further improvements of
tenant aware load balancer.

thanks.

On Tue, Mar 20, 2012 at 11:33 AM, Sanjeewa Malalgoda wrote:

> Hi All,
> We are having small issue with logging in to service(SSO Enabled) through
> tenant aware load balancer. I have setup tenant aware load balancer fronted
> 1 Identity Cluster and 2 appserver clusters. Problem is, i found that there
> is a looping problem between appserver and is clusters because logging
> requests doesnt have tenant domain in their URL's and then load balancer
> misunderstand it as a request to super admin(Tenant Id 0) and forward it to
> default cluster.
> One possible solution for this is setting tenant domain as a parameter to
> message context form identity side when user logging request comes and
> Tenant aware load balancer checks that parameter only if tenant id is
> 0.That is good solution in performance point of view.
>
> What do you think?
>
> Thanks-
>
>
> On Tue, Mar 13, 2012 at 10:50 AM, Sanjeewa Malalgoda wrote:
>
>> Thanks for pointing it out. i will correct it.
>> Thanks
>>
>>
>> On Mon, Mar 12, 2012 at 10:31 PM, Amila Maha Arachchi wrote:
>>
>>> Hi Sanjeewa,
>>>
>>> Just wanted to point out, theres a little mistake in the diagam. AS
>>> requests are going to ESB cluster and ESB requests are going to AS cluster
>>> :).
>>>
>>> Nice diagram...
>>>
>>> Thanks,
>>> AmilaM.
>>>
>>> On Mon, Mar 12, 2012 at 7:01 PM, Sanjeewa Malalgoda 
>>> wrote:
>>>
 Hi,

 Here i'm attaching the design diagram of this implementation, And
 configurations will be as follows.

 *01.LoadBalancer.xml file we can define domain and corresponding
 clusters and their tenant ranges as follows*

  
 
 appserver.cloud-test.wso2.com
 
  
 
 
  wso2.as1.domain
 1,100
  
 
 wso2.as2.domain
  101,200
 
 
  wso2.as3.domain
 201,300
  
 
 wso2.as4.domain
  *
 
 
 

 *In synapse main.xml Endpoint Defines as follows*
 *
 *
 
   >>> ="org.wso2.carbon.endpoint.service.TenantAwareLoadBalanceEndpoint">
  
 org.apache.synapse.endpoints.algorithms.RoundRobin
  >>> name="configuration">$system:loadbalancer.xml
  true

 
   

 Thanks.


 On Sun, Mar 4, 2012 at 2:09 AM, Afkham Azeez  wrote:

> User management in the LB is not configured properly? We never used
> this in the LB before. Even CarbonContext will not be created
>
> --
> Afkham Azeez
> Sent from my phone
> On Mar 3, 2012 9:30 PM, "Sanjeewa Malalgoda" 
> wrote:
>
>> Hi All,
>> I was able to setup 2 app services clusters that maps to same host
>> address and setup load balancer according to static
>> configuration(host/domain/tenant range). with this implementation *we
>> can send requests to correct cluster based on tenant domain in url*.For
>> this i created new TenantAwareLoadBalancer endpoint in carbon end points
>> and configure loadbalancer to use that end point(We can use external
>> endpoints after azeez latest change to synapse trunk). First we get
>> domainTenantContext(Which holds map of tenatid, cluster domain) object
>> according to host address. Then we can get cluster domain
>> from domainTenantContext object by passing tenant id (if there no any 
>> value
>> that maps to tenantId key we will send that request to cluster with
>> constant tenant id something like 0 or 1000 by this we can avoid upper
>> range mapping). Map holds values something like below.
>>
>> tenat id   cluster domain
>> 1-200  as1.domain
>> 201-400   as2.domain
>> 0 as3.domain
>>
>> so if request comes to 401 tenant request will send to as3.domain
>> cluster(default cluster). And regard sticky session implementation which 
>> we
>> discussed in separate mail i will work with azeez. For this moment all
>> configurations are hard coded and easily we can make them configurable.
>> Ideas and comments are welcome on this.
>>
>> And i have one question inside loadbalancer product we are always
>> getting getRealmService().getTenantManager().getTenantId(domainName) as 
>> -1
>> (which means no such tenant). What did we miss here ?
>>
>>
>>
>> Thanks.
>> --
>> *Sanjeewa Malalgoda*
>> Software Engineer
>> **
>> *WSO2, Inc.*
>> lean.enterprise.middleware.
>>
>> mobile : +94 713068779
>> web: http://wso2.com
>>  blog
>> :http://sanjeewamalalgoda.blogspot.com/
>>
>> [image:
>> http://wso2.com/wp-content/themes/wso2ng-v2/images/logos/strat

Re: [Dev] Error with running web app on Stratos Live

2012-03-31 Thread Supun Malinga
Hi Kasun,

On Fri, Mar 30, 2012 at 1:28 PM, Kasun Perera  wrote:

> Hi supun
>
> About reading files- I can Access other tables and read data on data
> servise server?
> What I'm doing here is read a PDF file that stored as a Blob and extract
> the phrases from it, I'm not writing anything to the files.
>

> I can read the PDF file from database and show it on the webpage, Only
> thing is can't extract the phrases from it.
>

Can you mention exact steps for extracting phrases in your webapp.. (from
the webapp UI)

Also can you point to the stratos DSS database in your local webapp and see
if it's working?

>
> here is my project folder
> https://docs.google.com/open?id=0B5A0W5SUykQqbGc0Vlg5UDJSTHFiTzdIV0hGZEZnQQ
>
> If you want to run here is the login details on Stratoes Live server
> username- kas...@karsha.opensource.lk
> passwd-  Haknrr4k
>
> thanks
>
>
>> Hi Supun
>> I Have attached .war file.  you want the project folder?
>>  database is at dataservise server.
>>
>>
>>
>> thanks
>>
>>
>>
>>> On Fri, Mar 30, 2012 at 12:02 PM, Supun Malinga  wrote:
>>>
 Hi,

 Looks like you have some file conversion there. From where these files
 are being read?. If it needs to access the server file system, security
 manager will block this.
 Are you running your local setup with security manager enabled?

 thanks,


 On Fri, Mar 30, 2012 at 11:50 AM, Kasun Perera wrote:

> Hi Supun
>
> I'm getting this error on webpage now when running my web app on
> StratoesLive App server, but I'm not getting this error on the local App
> server. A bug? Although I have debugged on my local machine I can't find
> the error.
>
> code- http://paste.org/47396
>
> type Exception report
>
> message
>
> description The server encountered an internal error () that prevented
> it from fulfilling this request.
>
> exception
>
> java.lang.NullPointerException
>  controler.ControlerServelet.pdfDocToSentence(ControlerServelet.java:755)
>   // I have mentioned thses two lines
>  controler.ControlerServelet.doPost(ControlerServelet.java:585)
>  //   in
>  javax.servlet.http.HttpServlet.service(HttpServlet.java:641)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
>  sun.reflect.GeneratedMethodAccessor1724.invoke(Unknown Source)
>
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>  java.lang.reflect.Method.invoke(Method.java:597)
> org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:273)
>
> org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:270)
> java.security.AccessController.doPrivileged(Native Method)
>  javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
>
> org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:305)
>
> org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:165)
> note The full stack trace of the root cause is available in the Apache
> Tomcat/7.0.14 logs.
>
>
>
> On Thu, Mar 29, 2012 at 4:52 PM, Kasun Perera wrote:
>
>> Hi Supun
>>
>> Yes I have the external libraries in the META-INF/lib of my
>> application. I have used the same .war file in locally running App 
>> server,
>> There I don't have this problem
>>
>>  The log file is attached
>>
>> Thanks
>>
>>
>> On Thu, Mar 29, 2012 at 4:39 PM, Supun Malinga wrote:
>>
>>> Hi Kasun,
>>>
>>> On Thu, Mar 29, 2012 at 4:28 PM, Kasun Perera 
>>> wrote:
>>>
 Hi

 I have deployed web app on Stratos Live I can run the web app
 there. But When I go to a particular a jsp page that calling to 
 external
 libraris(Stanforsparser.jar, PdfBox.jar) through servelet, gives me a 
 blank
 page.  I can run this webapp in my local Stratoes Application server
 and mentioned jsp page appears without any problem

>>> Here you need to have the external libraries in the META-INF/lib
>>> directory of your webapp.
>>>
>>>
  I'm using tomcat 7.0.22 for deploy the web app locally, and .war
 file is uploaded to Stratos Live.

 I found this error log on the Stratos Live server.

 Server Log

 [WSO2 Stratos Application Server] [2012-03-28 23:40:48,627] @
 karsha.opensource.lk [11051] [WSO2 Stratos Application
 Server]ERROR
 {org.apache.catalina.core.ContainerBase.[Tomcat].[defaulthost].[/t/
 karsha.opensource.lk/webapps/KarshaMarkUp].[jsp]}
 - Servlet.service() for servlet jsp threw exception
 {org.apache.catalina.core.ContainerBase.[Tomcat].[defaulthost].[/t/
 karsha.opensource.lk/webapps/KarshaMarkUp].[

[Dev] How to create a durable subscriber for a topic in WSO2 MB

2012-03-31 Thread Waruna Ranasinghe
Hi folks,

I tried to extend the JMS Java subscriber, provided at tutorial [1], to be
a durable subscriber.
I added the following property
  properties.put("transport.jms.SubscriptionDurable", true);
Then stop the jms client and send some messages to the topic. But when I
start the jms client, it does not receive the messages.

Can some one let me know how to create a durable subscriber.
My requirement is to receive the messages when the jms subscriber comes
online.

Thanks,
Waruna


-- 
-
Waruna Ranasinghe
Senior Software Engineer, WSO2

Mobile: +94 724 318285
BLOG: http://warunapw.blogspot.com

www.wso2.com - "Lean . Enterprise . Middleware"
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] How to create a durable subscriber for a topic in WSO2 MB

2012-03-31 Thread Waruna Ranasinghe
Link to the tutorial

[1] - http://wso2.org/library/articles/2011/12/wso2-esb-example-pubsub-soa

On Sun, Apr 1, 2012 at 10:44 AM, Waruna Ranasinghe  wrote:

> Hi folks,
>
> I tried to extend the JMS Java subscriber, provided at tutorial [1], to be
> a durable subscriber.
> I added the following property
>   properties.put("transport.jms.SubscriptionDurable", true);
> Then stop the jms client and send some messages to the topic. But when I
> start the jms client, it does not receive the messages.
>
> Can some one let me know how to create a durable subscriber.
> My requirement is to receive the messages when the jms subscriber comes
> online.
>
>
Thanks,
> Waruna
>
>
> --
> -
> Waruna Ranasinghe
> Senior Software Engineer, WSO2
>
> Mobile: +94 724 318285
> BLOG: http://warunapw.blogspot.com
>
> www.wso2.com - "Lean . Enterprise . Middleware"
>



-- 
-
Waruna Ranasinghe
Senior Software Engineer, WSO2

Mobile: +94 724 318285
BLOG: http://warunapw.blogspot.com

www.wso2.com - "Lean . Enterprise . Middleware"
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev