Re: [Dev] Governance Registry: Web service executor sample

2014-10-08 Thread Himasha Guruge
Hi Shiva,

This is the xml configuration of the lifecycle source in governance
registry.




http://www.w3.org/2005/07/scxml";
   version="1.0"
   initialstate="Development">


   





http://ws.apache.org/axis2"/>

http://localhost:8080/axis2/services/AdderService.AdderServiceHttpSoap11Endpoint/
"/>

http://schemas.xmlsoap.org/soap/envelope/"; xmlns:axis="
http://ws.apache.org/axis2";>



5
6




  




























Thanks & Regards,

On Thu, Oct 9, 2014 at 12:10 PM, Shiva Balachandran  wrote:

> Hi Himasha,
>
> Please share the complete XML file.
>
> Thank you
>
> On Thu, Oct 9, 2014 at 9:28 AM, Himasha Guruge  wrote:
>
>> Hi All,
>>
>> In Governance Registry web service executor sample[1] , when trying to
>> create a new lifecycle, I'm unable to save it since it says unable to
>> validate the configuration.
>>
>> In the console, following error is shown where line number 23 points to
>> " 5" of the payload parameter.
>>
>>  "ERROR {org.wso2.carbon.governance.lcm.util.CommonUtil} -  Unable to
>> parse the XML configuration. Please validate the XML
>> configurationorg.xml.sax.SAXParseException; lineNumber: 23; columnNumber:
>> 33; cvc-complex-type.2.3: Element 'parameter' cannot have character
>> [children], because the type's content type is element-only."
>>
>> I have added the exact segment mentioned in the sample, under data model
>> tag of Development state. What could be the issue in the xml configuration?
>>
>> [1]
>>  https://docs.wso2.com/display/Governance460/Web+Service+Executor+Sample
>> 
>> Thanks & Regards,
>>
>> --
>> Himasha Guruge
>> *Software Engineer*
>> WS*O2* *Inc.*
>> Mobile: +94 777459299
>> himas...@wso2.com
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Shiva Balachandran
> Software Engineer
> WSO2 Inc.
>
> Mobile - +94 774445788
>



-- 
Himasha Guruge
*Software Engineer*
WS*O2* *Inc.*
Mobile: +94 777459299
himas...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] ClassNotFoundException : org.wso2.carbon.student.mgt.GetStudents when creating carbon component.

2014-10-08 Thread Shashika Karunatilaka
yes as chamin said check the component.xml as well, seems it couldn't find
the resource.properties and map it

Thank you.

On Thu, Oct 9, 2014 at 12:15 PM, Chamin Nalinda  wrote:

> Hi Hemika,
>
> The menu should appear as "Students". Check your "Resources.properties"
> and "component.xml" and make sure they are accordance with documentation.
>
> On Thu, Oct 9, 2014 at 12:03 PM, Hemika Kodikara  wrote:
>
>> Hi All,
>>
>> I have been following this tutorial on creating a carbon component [1]. I
>> have created all 3 OSGI bundles and added them to the "dropins" folder.
>> Once I start the carbon server, I see the component I created as
>> "student.menu". But when clicked on it, nothing happens. In the carbon
>> console I see the following error. I have also attached a copy of the tree
>> structure of the "org.wso2.carbon.student.mgt.ui" project and also the
>> content of the "org.wso2.carbon.student.mgt.ui" jar file.
>>
>>  The error -
>>
>> [2014-10-09 11:21:37,920] ERROR
>> {org.apache.catalina.core.ApplicationDispatcher} -  Servlet.service() for
>> servlet bridgeservlet threw exception
>> java.lang.ClassNotFoundException: org.wso2.carbon.student.mgt.GetStudents
>> at
>> org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:455)
>> at
>> org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421)
>> at
>> org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412)
>> at
>> org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
>> at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
>> at
>> org.wso2.carbon.student.mgt.stub.StudentManagerStub.toEnvelope(StudentManagerStub.java:461)
>> at
>> org.wso2.carbon.student.mgt.stub.StudentManagerStub.getStudents(StudentManagerStub.java:169)
>> at
>> org.wso2.carbon.student.mgt.ui.StudentManagerClient.getStudents(StudentManagerClient.java:24)
>> at
>> org.apache.jsp.student_002dmgt.index_jsp._jspService(org.apache.jsp.student_002dmgt.index_jsp:77)
>> at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:111)
>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
>> at
>> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:403)
>> at
>> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:492)
>> at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:378)
>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
>> at org.wso2.carbon.ui.JspServlet.service(JspServlet.java:155)
>> at org.wso2.carbon.ui.TilesJspServlet.service(TilesJspServlet.java:80)
>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
>> at
>> org.eclipse.equinox.http.helper.ContextPathServletAdaptor.service(ContextPathServletAdaptor.java:37)
>> at
>> org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61)
>> at
>> org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:128)
>> at
>> org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:68)
>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
>> at
>> org.wso2.carbon.tomcat.ext.servlet.DelegationServlet.service(DelegationServlet.java:68)
>> at
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
>> at
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
>> at
>> org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:749)
>> at
>> org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:605)
>> at
>> org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:544)
>> at
>> org.eclipse.equinox.http.servlet.internal.RequestDispatcherAdaptor.include(RequestDispatcherAdaptor.java:37)
>> at
>> org.eclipse.equinox.http.helper.ContextPathServletAdaptor$RequestDispatcherAdaptor.include(ContextPathServletAdaptor.java:369)
>> at
>> org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:1015)
>> at
>> org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.java:700)
>> at sun.reflect.GeneratedMethodAccessor37.invoke(Unknown Source)
>> at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>> at java.lang.reflect.Method.invoke(Method.java:601)
>> at org.apache.tiles.jsp.context.JspUtil.doInclude(JspUtil.java:87)
>> at
>> org.apache.tiles.jsp.context.JspTilesRequestContext.include(JspTilesRequestContext.java:88)
>> at
>> org.apache.tiles.jsp.context.JspTilesRequestContext.dispatch(JspTilesRequestContext.java:82)
>> at
>> org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:465)
>> at
>> org.apache.tiles.jsp.taglib.InsertAttributeTag.render(InsertAttributeTag.java:140)
>> at
>> org.apache.tiles.jsp.taglib.InsertAttributeTag.render(InsertAttributeTag.java:117)
>

Re: [Dev] ClassNotFoundException : org.wso2.carbon.student.mgt.GetStudents when creating carbon component.

2014-10-08 Thread Shashika Karunatilaka
Hi Hemika,
check the folder structure of the resources in eclipse

Thank you

On Thu, Oct 9, 2014 at 12:03 PM, Hemika Kodikara  wrote:

> Hi All,
>
> I have been following this tutorial on creating a carbon component [1]. I
> have created all 3 OSGI bundles and added them to the "dropins" folder.
> Once I start the carbon server, I see the component I created as
> "student.menu". But when clicked on it, nothing happens. In the carbon
> console I see the following error. I have also attached a copy of the tree
> structure of the "org.wso2.carbon.student.mgt.ui" project and also the
> content of the "org.wso2.carbon.student.mgt.ui" jar file.
>
>  The error -
>
> [2014-10-09 11:21:37,920] ERROR
> {org.apache.catalina.core.ApplicationDispatcher} -  Servlet.service() for
> servlet bridgeservlet threw exception
> java.lang.ClassNotFoundException: org.wso2.carbon.student.mgt.GetStudents
> at
> org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:455)
> at
> org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421)
> at
> org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412)
> at
> org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
> at
> org.wso2.carbon.student.mgt.stub.StudentManagerStub.toEnvelope(StudentManagerStub.java:461)
> at
> org.wso2.carbon.student.mgt.stub.StudentManagerStub.getStudents(StudentManagerStub.java:169)
> at
> org.wso2.carbon.student.mgt.ui.StudentManagerClient.getStudents(StudentManagerClient.java:24)
> at
> org.apache.jsp.student_002dmgt.index_jsp._jspService(org.apache.jsp.student_002dmgt.index_jsp:77)
> at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:111)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
> at
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:403)
> at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:492)
> at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:378)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
> at org.wso2.carbon.ui.JspServlet.service(JspServlet.java:155)
> at org.wso2.carbon.ui.TilesJspServlet.service(TilesJspServlet.java:80)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
> at
> org.eclipse.equinox.http.helper.ContextPathServletAdaptor.service(ContextPathServletAdaptor.java:37)
> at
> org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61)
> at
> org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:128)
> at
> org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:68)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
> at
> org.wso2.carbon.tomcat.ext.servlet.DelegationServlet.service(DelegationServlet.java:68)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
> at
> org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:749)
> at
> org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:605)
> at
> org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:544)
> at
> org.eclipse.equinox.http.servlet.internal.RequestDispatcherAdaptor.include(RequestDispatcherAdaptor.java:37)
> at
> org.eclipse.equinox.http.helper.ContextPathServletAdaptor$RequestDispatcherAdaptor.include(ContextPathServletAdaptor.java:369)
> at
> org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:1015)
> at
> org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.java:700)
> at sun.reflect.GeneratedMethodAccessor37.invoke(Unknown Source)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:601)
> at org.apache.tiles.jsp.context.JspUtil.doInclude(JspUtil.java:87)
> at
> org.apache.tiles.jsp.context.JspTilesRequestContext.include(JspTilesRequestContext.java:88)
> at
> org.apache.tiles.jsp.context.JspTilesRequestContext.dispatch(JspTilesRequestContext.java:82)
> at
> org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:465)
> at
> org.apache.tiles.jsp.taglib.InsertAttributeTag.render(InsertAttributeTag.java:140)
> at
> org.apache.tiles.jsp.taglib.InsertAttributeTag.render(InsertAttributeTag.java:117)
> at
> org.apache.tiles.jsp.taglib.RenderTagSupport.execute(RenderTagSupport.java:171)
> at
> org.apache.tiles.jsp.taglib.RoleSecurityTagSupport.doEndTag(RoleSecurityTagSupport.java:75)
> at
> org.apache.tiles.jsp.taglib.ContainerTagSupport.doEndTag(ContainerTagSupport.java:80)
> at
> org.apache.jsp.admin.layout.template_jsp._jspx_meth_tiles_insertAttribute_7(o

Re: [Dev] ClassNotFoundException : org.wso2.carbon.student.mgt.GetStudents when creating carbon component.

2014-10-08 Thread Chamin Nalinda
Hi Hemika,

The menu should appear as "Students". Check your "Resources.properties" and
"component.xml" and make sure they are accordance with documentation.

On Thu, Oct 9, 2014 at 12:03 PM, Hemika Kodikara  wrote:

> Hi All,
>
> I have been following this tutorial on creating a carbon component [1]. I
> have created all 3 OSGI bundles and added them to the "dropins" folder.
> Once I start the carbon server, I see the component I created as
> "student.menu". But when clicked on it, nothing happens. In the carbon
> console I see the following error. I have also attached a copy of the tree
> structure of the "org.wso2.carbon.student.mgt.ui" project and also the
> content of the "org.wso2.carbon.student.mgt.ui" jar file.
>
>  The error -
>
> [2014-10-09 11:21:37,920] ERROR
> {org.apache.catalina.core.ApplicationDispatcher} -  Servlet.service() for
> servlet bridgeservlet threw exception
> java.lang.ClassNotFoundException: org.wso2.carbon.student.mgt.GetStudents
> at
> org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:455)
> at
> org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421)
> at
> org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412)
> at
> org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
> at
> org.wso2.carbon.student.mgt.stub.StudentManagerStub.toEnvelope(StudentManagerStub.java:461)
> at
> org.wso2.carbon.student.mgt.stub.StudentManagerStub.getStudents(StudentManagerStub.java:169)
> at
> org.wso2.carbon.student.mgt.ui.StudentManagerClient.getStudents(StudentManagerClient.java:24)
> at
> org.apache.jsp.student_002dmgt.index_jsp._jspService(org.apache.jsp.student_002dmgt.index_jsp:77)
> at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:111)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
> at
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:403)
> at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:492)
> at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:378)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
> at org.wso2.carbon.ui.JspServlet.service(JspServlet.java:155)
> at org.wso2.carbon.ui.TilesJspServlet.service(TilesJspServlet.java:80)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
> at
> org.eclipse.equinox.http.helper.ContextPathServletAdaptor.service(ContextPathServletAdaptor.java:37)
> at
> org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61)
> at
> org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:128)
> at
> org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:68)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
> at
> org.wso2.carbon.tomcat.ext.servlet.DelegationServlet.service(DelegationServlet.java:68)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
> at
> org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:749)
> at
> org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:605)
> at
> org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:544)
> at
> org.eclipse.equinox.http.servlet.internal.RequestDispatcherAdaptor.include(RequestDispatcherAdaptor.java:37)
> at
> org.eclipse.equinox.http.helper.ContextPathServletAdaptor$RequestDispatcherAdaptor.include(ContextPathServletAdaptor.java:369)
> at
> org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:1015)
> at
> org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.java:700)
> at sun.reflect.GeneratedMethodAccessor37.invoke(Unknown Source)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:601)
> at org.apache.tiles.jsp.context.JspUtil.doInclude(JspUtil.java:87)
> at
> org.apache.tiles.jsp.context.JspTilesRequestContext.include(JspTilesRequestContext.java:88)
> at
> org.apache.tiles.jsp.context.JspTilesRequestContext.dispatch(JspTilesRequestContext.java:82)
> at
> org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:465)
> at
> org.apache.tiles.jsp.taglib.InsertAttributeTag.render(InsertAttributeTag.java:140)
> at
> org.apache.tiles.jsp.taglib.InsertAttributeTag.render(InsertAttributeTag.java:117)
> at
> org.apache.tiles.jsp.taglib.RenderTagSupport.execute(RenderTagSupport.java:171)
> at
> org.apache.tiles.jsp.taglib.RoleSecurityTagSupport.doEndTag(RoleSecurityTagSupport.java:75)
> at
> org.apache.tiles.jsp.taglib.ContainerTagSupport.doEndTag(ContainerTagSupport.java:80)
> a

Re: [Dev] ClassNotFoundException : org.wso2.carbon.student.mgt.GetStudents when creating carbon component.

2014-10-08 Thread Supun Muthutantrige
Hi Hemika,

Can you attach the StudentManagerClient.java file. It seems the problem is
caused from there.

Regards



*Supun Rasitha Muthutantrige*




*supunrWSO2 Inc: http://wso2.com 
lean.enterprise.middleware*
*Mobile: 0758374608*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] ESB build error

2014-10-08 Thread Chamin Nalinda
Hi Ranwala,

location is : product-releases/chunk-04/products/pom.xml

here's the error stack (some artifacts are missing)


 start 

[INFO]

[INFO]

[INFO] Building WSO2 ESB - Samples 4.8.1
[INFO]

[INFO]

[INFO] Reactor Summary:
[INFO]
[INFO] WSO2 ESB - Aggregator Module .. SUCCESS [0.367s]
[INFO] WSO2 ESB - Styles Parent .. SUCCESS [0.010s]
[INFO] WSO2 ESB - Styles . SUCCESS [1.668s]
[INFO] WSO2 Stratos ESB - Styles . SUCCESS [0.232s]
[INFO] WSO2 ESB - Samples Parent . SUCCESS [0.010s]
[INFO] WSO2 ESB - Samples  FAILURE [1.185s]
[INFO] WSO2 Stratos ESB - Samples  SKIPPED
[INFO] WSO2 ESB - Features Parent  SKIPPED
[INFO] WSO2 ESB - Features Aggregator Module . SKIPPED
[INFO] WSO2 ESB - Styles Features  SKIPPED
[INFO] WSO2 ESB - Samples Features ... SKIPPED
[INFO] WSO2 Stratos ESB - Login User Interface ... SKIPPED
[INFO] WSO2 Stratos ESB - Features Aggregator Module . SKIPPED
[INFO] WSO2 Stratos ESB - Login UI Feature ... SKIPPED
[INFO] WSO2 Stratos ESB - Styles Features  SKIPPED
[INFO] WSO2 Stratos ESB - Samples Features ... SKIPPED
[INFO] WSO2 ESB - P2 Profile Generation .. SKIPPED
[INFO] WSO2 ESB - Distribution ... SKIPPED
[INFO] WSO2 ESB - Integration Parent . SKIPPED
[INFO] ESB Test Service Module ... SKIPPED
[INFO] Integration Commons Module - ESB test Module .. SKIPPED
[INFO] WSO2 ESB Integration Test Core  SKIPPED
[INFO] ESB Mediators Test Module - 1 . SKIPPED
[INFO] ESB Mediators Test Module - 2 . SKIPPED
[INFO] ESB test Module - Sample .. SKIPPED
[INFO] ESB test Module-Transport . SKIPPED
[INFO] ESB test Module-Other . SKIPPED
[INFO] ESB test Module-Service ... SKIPPED
[INFO] ESB UI Test Module  SKIPPED
[INFO] Integration Test Reporting  SKIPPED
[INFO] WSO2 Carbon - Releases - products - Aggregator Module  SKIPPED
[INFO]

[INFO] BUILD FAILURE
[INFO]

[INFO] Total time: 5.050s
[INFO] Finished at: Thu Oct 09 12:00:05 IST 2014
[INFO] Final Memory: 19M/736M
[INFO]

[ERROR] Failed to execute goal on project org.wso2.esb.samples: Could not
resolve dependencies for project
org.wso2.esb:org.wso2.esb.samples:bundle:4.8.1: Failed to collect
dependencies for [org.apache.synapse:synapse-core:jar:2.1.2-wso2v1
(compile), org.apache.synapse:synapse-commons:jar:2.1.2-wso2v1 (compile),
org.apache.ws.security.wso2:wss4j:jar:1.5.11.wso2v3 (compile),
org.apache.rampart.wso2:rampart-core:jar:1.6.1.wso2v10 (compile),
org.apache.geronimo.specs.wso2:geronimo-jms_1.1_spec:jar:1.1.0.wso2v1
(compile)]: Failed to read artifact descriptor for
org.apache.ws.security.wso2:wss4j:jar:1.5.11.wso2v3: Failure to find
org.wso2.carbon:carbon-parent:pom:4.0.0-SNAPSHOT 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]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute
goal on project org.wso2.esb.samples: Could not resolve dependencies for
project org.wso2.esb:org.wso2.esb.samples:bundle:4.8.1: Failed to collect
dependencies for [org.apache.synapse:synapse-core:jar:2.1.2-wso2v1
(compile), org.apache.synapse:synapse-commons:jar:2.1.2-wso2v1 (compile),
org.apache.ws.security.wso2:wss4j:jar:1.5.11.wso2v3 (compile),
org.apache.rampart.wso2:rampart-core:jar:1.6.1.wso2v10 (compile),
org.apache.geronimo.specs.wso2:geronimo-jms_1.1_spec:jar:1.1.0.wso2v1
(compile)]
at
org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies(LifecycleDependencyResolver.java:210)
at
org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.resolveProjectDependencies(LifecycleDependencyResolver.java:117)
at
org.apache.maven.lifecycle.internal.MojoExecutor.ensureDependenciesAreResolved(MojoExecutor.java:258)
at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:201)
at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at
org.apac

[Dev] ClassNotFoundException : org.wso2.carbon.student.mgt.GetStudents when creating carbon component.

2014-10-08 Thread Hemika Kodikara
Hi All,

I have been following this tutorial on creating a carbon component [1]. I
have created all 3 OSGI bundles and added them to the "dropins" folder.
Once I start the carbon server, I see the component I created as
"student.menu". But when clicked on it, nothing happens. In the carbon
console I see the following error. I have also attached a copy of the tree
structure of the "org.wso2.carbon.student.mgt.ui" project and also the
content of the "org.wso2.carbon.student.mgt.ui" jar file.

 The error -

[2014-10-09 11:21:37,920] ERROR
{org.apache.catalina.core.ApplicationDispatcher} -  Servlet.service() for
servlet bridgeservlet threw exception
java.lang.ClassNotFoundException: org.wso2.carbon.student.mgt.GetStudents
at
org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:455)
at
org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421)
at
org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412)
at
org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
at
org.wso2.carbon.student.mgt.stub.StudentManagerStub.toEnvelope(StudentManagerStub.java:461)
at
org.wso2.carbon.student.mgt.stub.StudentManagerStub.getStudents(StudentManagerStub.java:169)
at
org.wso2.carbon.student.mgt.ui.StudentManagerClient.getStudents(StudentManagerClient.java:24)
at
org.apache.jsp.student_002dmgt.index_jsp._jspService(org.apache.jsp.student_002dmgt.index_jsp:77)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:111)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:403)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:492)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:378)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
at org.wso2.carbon.ui.JspServlet.service(JspServlet.java:155)
at org.wso2.carbon.ui.TilesJspServlet.service(TilesJspServlet.java:80)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
at
org.eclipse.equinox.http.helper.ContextPathServletAdaptor.service(ContextPathServletAdaptor.java:37)
at
org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61)
at
org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:128)
at
org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:68)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
at
org.wso2.carbon.tomcat.ext.servlet.DelegationServlet.service(DelegationServlet.java:68)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:749)
at
org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:605)
at
org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:544)
at
org.eclipse.equinox.http.servlet.internal.RequestDispatcherAdaptor.include(RequestDispatcherAdaptor.java:37)
at
org.eclipse.equinox.http.helper.ContextPathServletAdaptor$RequestDispatcherAdaptor.include(ContextPathServletAdaptor.java:369)
at
org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:1015)
at
org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.java:700)
at sun.reflect.GeneratedMethodAccessor37.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.apache.tiles.jsp.context.JspUtil.doInclude(JspUtil.java:87)
at
org.apache.tiles.jsp.context.JspTilesRequestContext.include(JspTilesRequestContext.java:88)
at
org.apache.tiles.jsp.context.JspTilesRequestContext.dispatch(JspTilesRequestContext.java:82)
at
org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:465)
at
org.apache.tiles.jsp.taglib.InsertAttributeTag.render(InsertAttributeTag.java:140)
at
org.apache.tiles.jsp.taglib.InsertAttributeTag.render(InsertAttributeTag.java:117)
at
org.apache.tiles.jsp.taglib.RenderTagSupport.execute(RenderTagSupport.java:171)
at
org.apache.tiles.jsp.taglib.RoleSecurityTagSupport.doEndTag(RoleSecurityTagSupport.java:75)
at
org.apache.tiles.jsp.taglib.ContainerTagSupport.doEndTag(ContainerTagSupport.java:80)
at
org.apache.jsp.admin.layout.template_jsp._jspx_meth_tiles_insertAttribute_7(org.apache.jsp.admin.layout.template_jsp:603)
at
org.apache.jsp.admin.layout.template_jsp._jspService(org.apache.jsp.admin.layout.template_jsp:335)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:111)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
at
org.apache.jasper.servlet.JspServletWr

[Dev] Jaggery websocket sample not working

2014-10-08 Thread Sam Sivayogam
HI All,

I'm trying to run the following sample using wso2as 5.2.1
http://jaggeryjs.org/documentation.jag?api=webSocket

But it gives the following error message *ReferenceError: "webSocket"
is not defined.*


Thank You.

-- 
*Sam Sivayogam*

Software Engineer


*Mobile*  : +94 772 906 439
*Office*   : +94 112 145 345
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] ESB build error

2014-10-08 Thread Ravindra Ranwala
Hi Chamin,

>From which location are you building this project. Try it with -e switch
and see.


Regards,

On Thu, Oct 9, 2014 at 11:45 AM, Chamin Nalinda  wrote:

> Error message says fails to collect dependencies for jars
>
> -- start -
>
> [INFO]
> 
> [INFO] Reactor Summary:
> [INFO]
> [INFO] WSO2 ESB - Aggregator Module .. SUCCESS [0.317s]
> [INFO] WSO2 ESB - Styles Parent .. SUCCESS [0.012s]
> [INFO] WSO2 ESB - Styles . SUCCESS [4.901s]
> [INFO] WSO2 Stratos ESB - Styles . SUCCESS [0.210s]
> [INFO] WSO2 ESB - Samples Parent . SUCCESS [0.011s]
> [INFO] WSO2 ESB - Samples  FAILURE [4.441s]
> [INFO] WSO2 Stratos ESB - Samples  SKIPPED
> [INFO] WSO2 ESB - Features Parent  SKIPPED
> [INFO] WSO2 ESB - Features Aggregator Module . SKIPPED
> [INFO] WSO2 ESB - Styles Features  SKIPPED
> [INFO] WSO2 ESB - Samples Features ... SKIPPED
> [INFO] WSO2 Stratos ESB - Login User Interface ... SKIPPED
> [INFO] WSO2 Stratos ESB - Features Aggregator Module . SKIPPED
> [INFO] WSO2 Stratos ESB - Login UI Feature ... SKIPPED
> [INFO] WSO2 Stratos ESB - Styles Features  SKIPPED
> [INFO] WSO2 Stratos ESB - Samples Features ... SKIPPED
> [INFO] WSO2 ESB - P2 Profile Generation .. SKIPPED
> [INFO] WSO2 ESB - Distribution ... SKIPPED
> [INFO] WSO2 ESB - Integration Parent . SKIPPED
> [INFO] ESB Test Service Module ... SKIPPED
> [INFO] Integration Commons Module - ESB test Module .. SKIPPED
> [INFO] WSO2 ESB Integration Test Core  SKIPPED
> [INFO] ESB Mediators Test Module - 1 . SKIPPED
> [INFO] ESB Mediators Test Module - 2 . SKIPPED
> [INFO] ESB test Module - Sample .. SKIPPED
> [INFO] ESB test Module-Transport . SKIPPED
> [INFO] ESB test Module-Other . SKIPPED
> [INFO] ESB test Module-Service ... SKIPPED
> [INFO] ESB UI Test Module  SKIPPED
> [INFO] Integration Test Reporting  SKIPPED
> [INFO] WSO2 Carbon - Releases - products - Aggregator Module  SKIPPED
> [INFO]
> 
> [INFO] BUILD FAILURE
> [INFO]
> 
> [INFO] Total time: 11.365s
> [INFO] Finished at: Thu Oct 09 11:24:57 IST 2014
> [INFO] Final Memory: 20M/736M
> [INFO]
> 
> [ERROR] Failed to execute goal on project org.wso2.esb.samples: Could not
> resolve dependencies for project
> org.wso2.esb:org.wso2.esb.samples:bundle:4.8.1: Failed to collect
> dependencies for [org.apache.synapse:synapse-core:jar:2.1.2-wso2v1
> (compile), org.apache.synapse:synapse-commons:jar:2.1.2-wso2v1 (compile),
> org.apache.ws.security.wso2:wss4j:jar:1.5.11.wso2v3 (compile),
> org.apache.rampart.wso2:rampart-core:jar:1.6.1.wso2v10 (compile),
> org.apache.geronimo.specs.wso2:geronimo-jms_1.1_spec:jar:1.1.0.wso2v1
> (compile)]: Failed to read artifact descriptor for
> org.apache.ws.security.wso2:wss4j:jar:1.5.11.wso2v3: Could not find
> artifact org.wso2.carbon:carbon-parent:pom:4.0.0-SNAPSHOT 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  -rf :org.wso2.esb.samples
>
>
> -- end --
>
>
> --
> *Chamin Nalinda*
>
> Intern - Engineering
> WSO2 Inc. http://www.wso2.com
> lean.enterprise.middleware
>
> Mobile: (+94) 77 241 66 04
> Linkedin: https://www.linkedin.com/in/chaminnalinda
> Web: http://www.ckreativity.com
> Blog: http://techspiro.blogspot.com/
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Ravindra Ranwala
Software Engineer
WSO2, Inc: http://wso2.com

Mobile: +94714198770
_

Re: [Dev] CEP gives an error when adding stream-definition to a sample without using management console and re-run the sample

2014-10-08 Thread Niranda Perera
Hi Shashika,

AFAIK CEP in it's startup reads the
/repository/conf/data-bridge/streams-definition.xml
file by default and store it in the registry. When you run a sample, during
the start-up, it will gather the relevant files from the
samples/artifacts/id directories.

Try changing the name of the edited stream.


On Thu, Oct 9, 2014 at 11:41 AM, Praneesha Chandrasiri 
wrote:

> Hi Shashika,
>
> I think this is related to the discussion in the mail thread with the
> subject "[Dev] [BAM] Location of the stream definitions XML file in BAM?"
> in @Dev group.
>
> Hope this information will be useful!
>
> Copying @Documentation in case if there are any updates to be done in the
> docs.
>
> On Thu, Oct 9, 2014 at 11:34 AM, Shashika Karunatilaka  > wrote:
>
>> Hi,
>> I'm in a process of running a sample using [1],
>> in the samples there are pre-defined event streams, i found that those
>> stream definitions can be found at  
>> /samples/artifacts/sample-id/stream-definitions.xml.
>> If i tried to edit and add another attribute to
>> stream-definitions.xml's payloadData it gives me a error if i re run the
>> sample using [1].
>>
>> {DataBridgeDS}  Error redefining event stream of carbon.super:
>>
>>{
>>
>>  "name": "UserLoginInputStream",
>>
>>  "version": "1.0.0",
>>
>>  "nickName": "login",
>>
>>  "description": "Handles event stream related to user login life
>> cycle.",
>>
>>  "payloadData": [
>>
>> {"name": "user_id",
>>
>>  "type": "STRING"
>>
>> },
>>
>> {"name": "newly_added",
>>
>>  "type": "STRING"
>>
>> }
>>
>> ]
>>
>> }
>>
>>
>>
>> org.wso2.carbon.databridge.commons.exception.DifferentStreamDefinitionAlreadyDefinedException:
>> Cannot define Stream definition:{
>>
>>   "streamId": "UserLoginInputStream:1.0.0",
>>
>>   "name": "UserLoginInputStream",
>>
>>   "version": "1.0.0",
>>
>>   "nickName": "login",
>>
>>   "description": "Handles event stream related to user login life cycle.",
>>
>>   "payloadData": [
>>
>> {
>>
>>   "name": "user_id",
>>
>>   "type": "STRING"
>>
>> }
>>
>>   ]
>>
>> }, Another Stream with same name and version exist :{
>>
>>   "streamId": "UserLoginInputStream:1.0.0",
>>
>>   "name": "UserLoginInputStream",
>>
>>   "version": "1.0.0",
>>
>>   "nickName": "login",
>>
>>   "description": "Handles event stream related to user login life cycle.",
>>
>>   "payloadData": [
>>
>> {
>>
>>   "name": "user_id",
>>
>>   "type": "STRING"
>>
>> }
>>
>>   ]
>>
>> }
>> and if i add the same data, save it using management console and re run
>> the product using [1], it gives a similar kind of error with regard to that
>> newly added data. then this can be fixed by adding the same data which
>> added using management console to  
>> /samples/artifacts/sample-id/stream-definitions.xml.
>> I found that there is another stream definition file in  
>> /repository/conf/data-bridge
>> which updates the stream-definition when runnig the samples.
>>
>> My question is there any other way, file which stores the stream
>> definition other than above mentioned locations?
>>
>> [1]
>> https://docs.wso2.com/display/CEP310/Setting+up+CEP+Samples#SettingupCEPSamples-Prerequisites
>> --
>> Shashika Prabath Karunatilaka,
>> Software Engineer,
>> WSO2, Inc: http://wso2.com/
>> mobile : +94 77 7487792
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Thanks & Best Regards,
> *Praneesha Chandrasiri*
> *Technical Writer*
> *WSO2 Inc. *
> *Mobile: +(94) 718156888 <%2B%2894%29%20718156888>*
> *E-mail: pranee...@wso2.com *
>
>  --
> You received this message because you are subscribed to the Google Groups
> "WSO2 Documentation" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to documentation+unsubscr...@wso2.com.
> For more options, visit https://groups.google.com/a/wso2.com/d/optout.
>



-- 
*Niranda Perera*
Software Engineer, WSO2 Inc.
Mobile: +94-71-554-8430
Twitter: @n1r44 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] ESB build error

2014-10-08 Thread Chamin Nalinda
yes the pom is there, I'm using terminal.

I follow this link[1] and I did go through the link[2] as well where there
is similar issue, but in my case it didn't work.

[1] https://docs.wso2.com/display/ESB480/Building+from+Source
[2] https://www.mail-archive.com/dev@wso2.org/msg32909.html

On Thu, Oct 9, 2014 at 11:49 AM, Shiva Balachandran  wrote:

> Hi Chamin,
>
> Please check if that directory contains the respective pom file. Also,
> where are you building it from,using a IDE or using the terminal?
>
> Thank you,
>
>
>
> On Thu, Oct 9, 2014 at 11:45 AM, Chamin Nalinda  wrote:
>
>> Error message says fails to collect dependencies for jars
>>
>> -- start -
>>
>> [INFO]
>> 
>> [INFO] Reactor Summary:
>> [INFO]
>> [INFO] WSO2 ESB - Aggregator Module .. SUCCESS
>> [0.317s]
>> [INFO] WSO2 ESB - Styles Parent .. SUCCESS
>> [0.012s]
>> [INFO] WSO2 ESB - Styles . SUCCESS
>> [4.901s]
>> [INFO] WSO2 Stratos ESB - Styles . SUCCESS
>> [0.210s]
>> [INFO] WSO2 ESB - Samples Parent . SUCCESS
>> [0.011s]
>> [INFO] WSO2 ESB - Samples  FAILURE
>> [4.441s]
>> [INFO] WSO2 Stratos ESB - Samples  SKIPPED
>> [INFO] WSO2 ESB - Features Parent  SKIPPED
>> [INFO] WSO2 ESB - Features Aggregator Module . SKIPPED
>> [INFO] WSO2 ESB - Styles Features  SKIPPED
>> [INFO] WSO2 ESB - Samples Features ... SKIPPED
>> [INFO] WSO2 Stratos ESB - Login User Interface ... SKIPPED
>> [INFO] WSO2 Stratos ESB - Features Aggregator Module . SKIPPED
>> [INFO] WSO2 Stratos ESB - Login UI Feature ... SKIPPED
>> [INFO] WSO2 Stratos ESB - Styles Features  SKIPPED
>> [INFO] WSO2 Stratos ESB - Samples Features ... SKIPPED
>> [INFO] WSO2 ESB - P2 Profile Generation .. SKIPPED
>> [INFO] WSO2 ESB - Distribution ... SKIPPED
>> [INFO] WSO2 ESB - Integration Parent . SKIPPED
>> [INFO] ESB Test Service Module ... SKIPPED
>> [INFO] Integration Commons Module - ESB test Module .. SKIPPED
>> [INFO] WSO2 ESB Integration Test Core  SKIPPED
>> [INFO] ESB Mediators Test Module - 1 . SKIPPED
>> [INFO] ESB Mediators Test Module - 2 . SKIPPED
>> [INFO] ESB test Module - Sample .. SKIPPED
>> [INFO] ESB test Module-Transport . SKIPPED
>> [INFO] ESB test Module-Other . SKIPPED
>> [INFO] ESB test Module-Service ... SKIPPED
>> [INFO] ESB UI Test Module  SKIPPED
>> [INFO] Integration Test Reporting  SKIPPED
>> [INFO] WSO2 Carbon - Releases - products - Aggregator Module  SKIPPED
>> [INFO]
>> 
>> [INFO] BUILD FAILURE
>> [INFO]
>> 
>> [INFO] Total time: 11.365s
>> [INFO] Finished at: Thu Oct 09 11:24:57 IST 2014
>> [INFO] Final Memory: 20M/736M
>> [INFO]
>> 
>> [ERROR] Failed to execute goal on project org.wso2.esb.samples: Could not
>> resolve dependencies for project
>> org.wso2.esb:org.wso2.esb.samples:bundle:4.8.1: Failed to collect
>> dependencies for [org.apache.synapse:synapse-core:jar:2.1.2-wso2v1
>> (compile), org.apache.synapse:synapse-commons:jar:2.1.2-wso2v1 (compile),
>> org.apache.ws.security.wso2:wss4j:jar:1.5.11.wso2v3 (compile),
>> org.apache.rampart.wso2:rampart-core:jar:1.6.1.wso2v10 (compile),
>> org.apache.geronimo.specs.wso2:geronimo-jms_1.1_spec:jar:1.1.0.wso2v1
>> (compile)]: Failed to read artifact descriptor for
>> org.apache.ws.security.wso2:wss4j:jar:1.5.11.wso2v3: Could not find
>> artifact org.wso2.carbon:carbon-parent:pom:4.0.0-SNAPSHOT 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  -rf :org.wso2.esb.samples
>>
>>
>> -- end --
>>
>>
>> --
>> *Chamin Nalinda*
>>
>> Intern - Engineering
>> WSO2 Inc. http://www.wso2.com
>> lean.enterprise.middleware
>>
>> 

Re: [Dev] ESB build error

2014-10-08 Thread Shiva Balachandran
Hi Chamin,

Please check if that directory contains the respective pom file. Also,
where are you building it from,using a IDE or using the terminal?

Thank you,



On Thu, Oct 9, 2014 at 11:45 AM, Chamin Nalinda  wrote:

> Error message says fails to collect dependencies for jars
>
> -- start -
>
> [INFO]
> 
> [INFO] Reactor Summary:
> [INFO]
> [INFO] WSO2 ESB - Aggregator Module .. SUCCESS [0.317s]
> [INFO] WSO2 ESB - Styles Parent .. SUCCESS [0.012s]
> [INFO] WSO2 ESB - Styles . SUCCESS [4.901s]
> [INFO] WSO2 Stratos ESB - Styles . SUCCESS [0.210s]
> [INFO] WSO2 ESB - Samples Parent . SUCCESS [0.011s]
> [INFO] WSO2 ESB - Samples  FAILURE [4.441s]
> [INFO] WSO2 Stratos ESB - Samples  SKIPPED
> [INFO] WSO2 ESB - Features Parent  SKIPPED
> [INFO] WSO2 ESB - Features Aggregator Module . SKIPPED
> [INFO] WSO2 ESB - Styles Features  SKIPPED
> [INFO] WSO2 ESB - Samples Features ... SKIPPED
> [INFO] WSO2 Stratos ESB - Login User Interface ... SKIPPED
> [INFO] WSO2 Stratos ESB - Features Aggregator Module . SKIPPED
> [INFO] WSO2 Stratos ESB - Login UI Feature ... SKIPPED
> [INFO] WSO2 Stratos ESB - Styles Features  SKIPPED
> [INFO] WSO2 Stratos ESB - Samples Features ... SKIPPED
> [INFO] WSO2 ESB - P2 Profile Generation .. SKIPPED
> [INFO] WSO2 ESB - Distribution ... SKIPPED
> [INFO] WSO2 ESB - Integration Parent . SKIPPED
> [INFO] ESB Test Service Module ... SKIPPED
> [INFO] Integration Commons Module - ESB test Module .. SKIPPED
> [INFO] WSO2 ESB Integration Test Core  SKIPPED
> [INFO] ESB Mediators Test Module - 1 . SKIPPED
> [INFO] ESB Mediators Test Module - 2 . SKIPPED
> [INFO] ESB test Module - Sample .. SKIPPED
> [INFO] ESB test Module-Transport . SKIPPED
> [INFO] ESB test Module-Other . SKIPPED
> [INFO] ESB test Module-Service ... SKIPPED
> [INFO] ESB UI Test Module  SKIPPED
> [INFO] Integration Test Reporting  SKIPPED
> [INFO] WSO2 Carbon - Releases - products - Aggregator Module  SKIPPED
> [INFO]
> 
> [INFO] BUILD FAILURE
> [INFO]
> 
> [INFO] Total time: 11.365s
> [INFO] Finished at: Thu Oct 09 11:24:57 IST 2014
> [INFO] Final Memory: 20M/736M
> [INFO]
> 
> [ERROR] Failed to execute goal on project org.wso2.esb.samples: Could not
> resolve dependencies for project
> org.wso2.esb:org.wso2.esb.samples:bundle:4.8.1: Failed to collect
> dependencies for [org.apache.synapse:synapse-core:jar:2.1.2-wso2v1
> (compile), org.apache.synapse:synapse-commons:jar:2.1.2-wso2v1 (compile),
> org.apache.ws.security.wso2:wss4j:jar:1.5.11.wso2v3 (compile),
> org.apache.rampart.wso2:rampart-core:jar:1.6.1.wso2v10 (compile),
> org.apache.geronimo.specs.wso2:geronimo-jms_1.1_spec:jar:1.1.0.wso2v1
> (compile)]: Failed to read artifact descriptor for
> org.apache.ws.security.wso2:wss4j:jar:1.5.11.wso2v3: Could not find
> artifact org.wso2.carbon:carbon-parent:pom:4.0.0-SNAPSHOT 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  -rf :org.wso2.esb.samples
>
>
> -- end --
>
>
> --
> *Chamin Nalinda*
>
> Intern - Engineering
> WSO2 Inc. http://www.wso2.com
> lean.enterprise.middleware
>
> Mobile: (+94) 77 241 66 04
> Linkedin: https://www.linkedin.com/in/chaminnalinda
> Web: http://www.ckreativity.com
> Blog: http://techspiro.blogspot.com/
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Shiva Balachandran
Software Engineer
WSO2 Inc.

Mobile - +94 774445788
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/m

[Dev] ESB build error

2014-10-08 Thread Chamin Nalinda
Error message says fails to collect dependencies for jars

-- start -

[INFO]

[INFO] Reactor Summary:
[INFO]
[INFO] WSO2 ESB - Aggregator Module .. SUCCESS [0.317s]
[INFO] WSO2 ESB - Styles Parent .. SUCCESS [0.012s]
[INFO] WSO2 ESB - Styles . SUCCESS [4.901s]
[INFO] WSO2 Stratos ESB - Styles . SUCCESS [0.210s]
[INFO] WSO2 ESB - Samples Parent . SUCCESS [0.011s]
[INFO] WSO2 ESB - Samples  FAILURE [4.441s]
[INFO] WSO2 Stratos ESB - Samples  SKIPPED
[INFO] WSO2 ESB - Features Parent  SKIPPED
[INFO] WSO2 ESB - Features Aggregator Module . SKIPPED
[INFO] WSO2 ESB - Styles Features  SKIPPED
[INFO] WSO2 ESB - Samples Features ... SKIPPED
[INFO] WSO2 Stratos ESB - Login User Interface ... SKIPPED
[INFO] WSO2 Stratos ESB - Features Aggregator Module . SKIPPED
[INFO] WSO2 Stratos ESB - Login UI Feature ... SKIPPED
[INFO] WSO2 Stratos ESB - Styles Features  SKIPPED
[INFO] WSO2 Stratos ESB - Samples Features ... SKIPPED
[INFO] WSO2 ESB - P2 Profile Generation .. SKIPPED
[INFO] WSO2 ESB - Distribution ... SKIPPED
[INFO] WSO2 ESB - Integration Parent . SKIPPED
[INFO] ESB Test Service Module ... SKIPPED
[INFO] Integration Commons Module - ESB test Module .. SKIPPED
[INFO] WSO2 ESB Integration Test Core  SKIPPED
[INFO] ESB Mediators Test Module - 1 . SKIPPED
[INFO] ESB Mediators Test Module - 2 . SKIPPED
[INFO] ESB test Module - Sample .. SKIPPED
[INFO] ESB test Module-Transport . SKIPPED
[INFO] ESB test Module-Other . SKIPPED
[INFO] ESB test Module-Service ... SKIPPED
[INFO] ESB UI Test Module  SKIPPED
[INFO] Integration Test Reporting  SKIPPED
[INFO] WSO2 Carbon - Releases - products - Aggregator Module  SKIPPED
[INFO]

[INFO] BUILD FAILURE
[INFO]

[INFO] Total time: 11.365s
[INFO] Finished at: Thu Oct 09 11:24:57 IST 2014
[INFO] Final Memory: 20M/736M
[INFO]

[ERROR] Failed to execute goal on project org.wso2.esb.samples: Could not
resolve dependencies for project
org.wso2.esb:org.wso2.esb.samples:bundle:4.8.1: Failed to collect
dependencies for [org.apache.synapse:synapse-core:jar:2.1.2-wso2v1
(compile), org.apache.synapse:synapse-commons:jar:2.1.2-wso2v1 (compile),
org.apache.ws.security.wso2:wss4j:jar:1.5.11.wso2v3 (compile),
org.apache.rampart.wso2:rampart-core:jar:1.6.1.wso2v10 (compile),
org.apache.geronimo.specs.wso2:geronimo-jms_1.1_spec:jar:1.1.0.wso2v1
(compile)]: Failed to read artifact descriptor for
org.apache.ws.security.wso2:wss4j:jar:1.5.11.wso2v3: Could not find
artifact org.wso2.carbon:carbon-parent:pom:4.0.0-SNAPSHOT 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  -rf :org.wso2.esb.samples


-- end --


-- 
*Chamin Nalinda*

Intern - Engineering
WSO2 Inc. http://www.wso2.com
lean.enterprise.middleware

Mobile: (+94) 77 241 66 04
Linkedin: https://www.linkedin.com/in/chaminnalinda
Web: http://www.ckreativity.com
Blog: http://techspiro.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] CEP gives an error when adding stream-definition to a sample without using management console and re-run the sample

2014-10-08 Thread Praneesha Chandrasiri
Hi Shashika,

I think this is related to the discussion in the mail thread with the
subject "[Dev] [BAM] Location of the stream definitions XML file in BAM?"
in @Dev group.

Hope this information will be useful!

Copying @Documentation in case if there are any updates to be done in the
docs.

On Thu, Oct 9, 2014 at 11:34 AM, Shashika Karunatilaka 
wrote:

> Hi,
> I'm in a process of running a sample using [1],
> in the samples there are pre-defined event streams, i found that those
> stream definitions can be found at  
> /samples/artifacts/sample-id/stream-definitions.xml.
> If i tried to edit and add another attribute to
> stream-definitions.xml's payloadData it gives me a error if i re run the
> sample using [1].
>
> {DataBridgeDS}  Error redefining event stream of carbon.super:
>
>{
>
>  "name": "UserLoginInputStream",
>
>  "version": "1.0.0",
>
>  "nickName": "login",
>
>  "description": "Handles event stream related to user login life
> cycle.",
>
>  "payloadData": [
>
> {"name": "user_id",
>
>  "type": "STRING"
>
> },
>
> {"name": "newly_added",
>
>  "type": "STRING"
>
> }
>
> ]
>
> }
>
>
>
> org.wso2.carbon.databridge.commons.exception.DifferentStreamDefinitionAlreadyDefinedException:
> Cannot define Stream definition:{
>
>   "streamId": "UserLoginInputStream:1.0.0",
>
>   "name": "UserLoginInputStream",
>
>   "version": "1.0.0",
>
>   "nickName": "login",
>
>   "description": "Handles event stream related to user login life cycle.",
>
>   "payloadData": [
>
> {
>
>   "name": "user_id",
>
>   "type": "STRING"
>
> }
>
>   ]
>
> }, Another Stream with same name and version exist :{
>
>   "streamId": "UserLoginInputStream:1.0.0",
>
>   "name": "UserLoginInputStream",
>
>   "version": "1.0.0",
>
>   "nickName": "login",
>
>   "description": "Handles event stream related to user login life cycle.",
>
>   "payloadData": [
>
> {
>
>   "name": "user_id",
>
>   "type": "STRING"
>
> }
>
>   ]
>
> }
> and if i add the same data, save it using management console and re run
> the product using [1], it gives a similar kind of error with regard to that
> newly added data. then this can be fixed by adding the same data which
> added using management console to  
> /samples/artifacts/sample-id/stream-definitions.xml.
> I found that there is another stream definition file in  
> /repository/conf/data-bridge
> which updates the stream-definition when runnig the samples.
>
> My question is there any other way, file which stores the stream
> definition other than above mentioned locations?
>
> [1]
> https://docs.wso2.com/display/CEP310/Setting+up+CEP+Samples#SettingupCEPSamples-Prerequisites
> --
> Shashika Prabath Karunatilaka,
> Software Engineer,
> WSO2, Inc: http://wso2.com/
> mobile : +94 77 7487792
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Thanks & Best Regards,
*Praneesha Chandrasiri*
*Technical Writer*
*WSO2 Inc. *
*Mobile: +(94) 718156888*
*E-mail: pranee...@wso2.com *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] CEP gives an error when adding stream-definition to a sample without using management console and re-run the sample

2014-10-08 Thread Shashika Karunatilaka
Hi,
I'm in a process of running a sample using [1],
in the samples there are pre-defined event streams, i found that those
stream definitions can be found at  
/samples/artifacts/sample-id/stream-definitions.xml.
If i tried to edit and add another attribute to
stream-definitions.xml's payloadData it gives me a error if i re run the
sample using [1].

{DataBridgeDS}  Error redefining event stream of carbon.super:

   {

 "name": "UserLoginInputStream",

 "version": "1.0.0",

 "nickName": "login",

 "description": "Handles event stream related to user login life
cycle.",

 "payloadData": [

{"name": "user_id",

 "type": "STRING"

},

{"name": "newly_added",

 "type": "STRING"

}

]

}



org.wso2.carbon.databridge.commons.exception.DifferentStreamDefinitionAlreadyDefinedException:
Cannot define Stream definition:{

  "streamId": "UserLoginInputStream:1.0.0",

  "name": "UserLoginInputStream",

  "version": "1.0.0",

  "nickName": "login",

  "description": "Handles event stream related to user login life cycle.",

  "payloadData": [

{

  "name": "user_id",

  "type": "STRING"

}

  ]

}, Another Stream with same name and version exist :{

  "streamId": "UserLoginInputStream:1.0.0",

  "name": "UserLoginInputStream",

  "version": "1.0.0",

  "nickName": "login",

  "description": "Handles event stream related to user login life cycle.",

  "payloadData": [

{

  "name": "user_id",

  "type": "STRING"

}

  ]

}
and if i add the same data, save it using management console and re run the
product using [1], it gives a similar kind of error with regard to that
newly added data. then this can be fixed by adding the same data which
added using management console to  
/samples/artifacts/sample-id/stream-definitions.xml.
I found that there is another stream definition file in
/repository/conf/data-bridge
which updates the stream-definition when runnig the samples.

My question is there any other way, file which stores the stream definition
other than above mentioned locations?

[1]
https://docs.wso2.com/display/CEP310/Setting+up+CEP+Samples#SettingupCEPSamples-Prerequisites
-- 
Shashika Prabath Karunatilaka,
Software Engineer,
WSO2, Inc: http://wso2.com/
mobile : +94 77 7487792
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] How to restrict API Design page to allow only files of certain extension(.jpg, .png, .gif) to be uploaded for API thumbnail image in APIM

2014-10-08 Thread Niranda Perera
Hi Dinesh,

Thank you for your input. It was indeed very helpful. :-)

Cheers

On Thu, Oct 9, 2014 at 10:16 AM, Dinesh J Weerakkody 
wrote:

> Hi Niranda,
>
> modern browsers support accept attribute and explain in this stackoverflow
> tread [1]. If that doesn't work for you, you have to write a custom js for
> validation.
> Sample validation can be found here [2].
>
> [1]
> http://stackoverflow.com/questions/3521122/html-input-type-file-apply-a-filter
> [2]
> http://www.codeproject.com/Tips/700593/FileUpload-Filter-File-Type-File-Extension-File-Si
>
>
> On Wed, Oct 8, 2014 at 5:48 PM, Niranda Perera  wrote:
>
>> Hi,
>>
>> Is there any way to restrict only files of certain file types to be
>> uploaded in the API thumbnail image section in APIM?
>>
>> Rgds
>>
>>
>> --
>> *Niranda Perera*
>> Software Engineer, WSO2 Inc.
>> Mobile: +94-71-554-8430
>> Twitter: @n1r44 
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
>
> *Dinesh J. Weerakkody*
> Software Engineer
> WSO2 Inc.
> lean | enterprise | middleware
> M : +94 727 361788 | E : dine...@wso2.com | W : www.wso2.com
>



-- 
*Niranda Perera*
Software Engineer, WSO2 Inc.
Mobile: +94-71-554-8430
Twitter: @n1r44 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] How to add a link to a different page in a carbon ui component

2014-10-08 Thread Supun Muthutantrige
No probs :)

Regards
Supun Rasitha Muthutantrige

supunr
Intern
WSO2 Inc: http://wso2.com
lean.enterprise.middleware

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


Re: [Dev] NoHostAvailableException in MB when doing load testing

2014-10-08 Thread Sajini De Silva
Hi,

I increased the values in poolOptions and socketOptions in the
configuration. The cause for this exception IMO was setting a low value to
connectTimeoutMillis option.

@Asitha

Will verify this after doing more tests on this.

Thank you,
Sajini.

On Mon, Oct 6, 2014 at 11:36 AM, Asitha Nanayakkara  wrote:

> Hi Sajini,
>
> Can we take this data source configuration as the default configuration
> for MB? If so we need to update the master-datasources.xml in the pack [1]
> I guess.
>
> [1]
> https://github.com/wso2-dev/product-mb/blob/master/modules/distribution/src/main/conf/master-datasources.xml
>
> Thanks
>
> On Mon, Oct 6, 2014 at 9:35 AM, Bhathiya Jayasekara 
> wrote:
>
>> Hi Sajini,
>>
>> Can you please point which part of above configuration fixed the issue?
>>
>> Thanks,
>> Bhathiya
>>
>> On Mon, Oct 6, 2014 at 9:30 AM, Sajini De Silva  wrote:
>>
>>> Hi,
>>>
>>> This issue was fixed with following configurations.
>>>
>>> *master-datasources.xml in MB node:*
>>>
>>> 
>>> 
>>> WSO2_CASSANDRA_DB
>>> The datasource used for cassandra
>>> 
>>> CassandraRepo
>>> 
>>> 
>>> 
>>> false
>>> TestCluster
>>> SNAPPY
>>> 100
>>> admin
>>> admin
>>> 9042
>>> 100
>>>
>>> 
>>> 127.0.0.1
>>> 
>>> 
>>> 2.5
>>> true
>>> 100
>>> RoundRobinPolicy
>>> 10
>>> 2
>>> 
>>>
>>> 
>>>
>>> 1000
>>>
>>> 1000
>>>
>>> 1000
>>>
>>> 1000
>>>
>>> 1000
>>>
>>> 1000
>>>
>>> 1000
>>>
>>> 1000
>>> 
>>>
>>> 
>>> 3000
>>>
>>> ConstantReconnectionPolicy
>>> 
>>> 
>>>
>>> 1
>>> true
>>> 15000
>>> true
>>> 
>>>
>>> 
>>>
>>> 
>>> 
>>>
>>>
>>>
>>> *cassandra-env.sh in cassandra node:*
>>>
>>> system_memory_in_mb="10240"
>>> system_cpu_cores="6"
>>>
>>> Tested with an SSD hard drive.
>>>
>>> Thank you,
>>> Sajini.
>>>
>>> On Fri, Oct 3, 2014 at 12:23 PM, Sajini De Silva 
>>> wrote:
>>>
 Hi Prabath,

 This is the error we got while deleting messages.

 [2014-10-03 12:16:55,059] ERROR
 {org.wso2.andes.store.cassandra.CQLBasedMessageStoreImpl} -  Error while
 deleting messages
 com.datastax.driver.core.exceptions.NoHostAvailableException: All
 host(s) tried for query failed (tried: /127.0.0.1 (Timeout during
 read))
 at
 com.datastax.driver.core.exceptions.NoHostAvailableException.copy(NoHostAvailableException.java:64)
 at
 com.datastax.driver.core.ResultSetFuture.extractCauseFromExecutionException(ResultSetFuture.java:269)
 at
 com.datastax.driver.core.ResultSetFuture.getUninterruptibly(ResultSetFuture.java:183)
 at com.datastax.driver.core.Session.execute(Session.java:111)
 at
 org.wso2.andes.store.cassandra.dao.GenericCQLDAO.batchExecute(GenericCQLDAO.java:207)
 at
 org.wso2.andes.store.cassandra.CQLBasedMessageStoreImpl.deleteMessageMetadataFromQueue(CQLBasedMessageStoreImpl.java:299)
 at
 org.wso2.andes.kernel.storemanager.DurableAsyncStoringManager.deleteMessages(DurableAsyncStoringManager.java:327)
 at
 org.wso2.andes.kernel.storemanager.DurableAsyncStoringManager.processAckReceived(DurableAsyncStoringManager.java:203)
 at
 org.wso2.andes.kernel.distrupter.AckHandler.onEvent(AckHandler.java:30)
 at
 org.wso2.andes.kernel.distrupter.AckHandler.onEvent(AckHandler.java:19)
 at
 com.lmax.disruptor.BatchEventProcessor.run(BatchEventProcessor.java:113)
 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)
 Caused by:
 com.datastax.driver.core.exceptions.NoHostAvailableException: All host(s)
 tried for query failed (tried: /127.0.0.1 (Timeout during read))
 at
 com.datastax.driver.core.RequestHandler.sendRequest(RequestHandler.java:106)
 at
 com.datastax.driver.core.RequestHandler$1.run(RequestHandler.java:177)
 ... 3 more
 Oct 3, 2014 12:16:55 PM com.lmax.disruptor.FatalExceptionHandler
 handleEventException
 SEVERE: Exception processing: 12095
 org.wso2.andes.kernel.AndesAckData@5341cc77
 org.wso2.andes.kernel.AndesException:
 com.datastax.driver.core.exceptions.NoHostAvai

Re: [Dev] How to add a link to a different page in a carbon ui component

2014-10-08 Thread Lahiru Chandima
Yes. Thanks for the help

On Thu, Oct 9, 2014 at 10:59 AM, Supun Muthutantrige 
wrote:

> Is your problem solved then?
>
> Regards
>
>
> *Supun Rasitha Muthutantrige*
>
>
>
>
>
> *supunrIntern WSO2 Inc: http://wso2.com 
> lean.enterprise.middleware*
> *Mobile: 0758374608*
>
>


-- 
Lahiru Chandima
*Senior Software Engineer*
Mobile : +94 (0) 772 253283
lahi...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] How to add a link to a different page in a carbon ui component

2014-10-08 Thread Supun Muthutantrige
Is your problem solved then?

Regards


*Supun Rasitha Muthutantrige*





*supunrIntern WSO2 Inc: http://wso2.com 
lean.enterprise.middleware*
*Mobile: 0758374608*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] How to add a link to a different page in a carbon ui component

2014-10-08 Thread Lahiru Chandima
Oh, I was wrong. It shows my jsp. I was confused because of the following
part that was appended to the URL.

/carbon/order-manager/index.jsp?region=region1&item=order_management_menu



On Thu, Oct 9, 2014 at 10:54 AM, Lahiru Chandima  wrote:

> Thanks Supun. I will try that.
>
> I thought the actual link may be different because when I visit a certain
> page, browser doesn't show my jsp file name of the page in the URL.
>
>
> On Thu, Oct 9, 2014 at 10:49 AM, Supun Muthutantrige 
> wrote:
>
>> you can simple add an anchor tag in you jsp file. or you can add a button
>> to redirect it into the relevant page
>>
>> Anchor tag
>> *link text*
>>
>>
>>
>> *Supun Rasitha Muthutantrige*
>>
>>
>>
>>
>>
>> *supunrIntern WSO2 Inc: http://wso2.com 
>> lean.enterprise.middleware*
>> *Mobile: 0758374608*
>>
>
>
>
> --
> Lahiru Chandima
> *Senior Software Engineer*
> Mobile : +94 (0) 772 253283
> lahi...@wso2.com
>



-- 
Lahiru Chandima
*Senior Software Engineer*
Mobile : +94 (0) 772 253283
lahi...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] How to add a link to a different page in a carbon ui component

2014-10-08 Thread Lahiru Chandima
Thanks Supun. I will try that.

I thought the actual link may be different because when I visit a certain
page, browser doesn't show my jsp file name of the page in the URL.


On Thu, Oct 9, 2014 at 10:49 AM, Supun Muthutantrige 
wrote:

> you can simple add an anchor tag in you jsp file. or you can add a button
> to redirect it into the relevant page
>
> Anchor tag
> *link text*
>
>
>
> *Supun Rasitha Muthutantrige*
>
>
>
>
>
> *supunrIntern WSO2 Inc: http://wso2.com 
> lean.enterprise.middleware*
> *Mobile: 0758374608*
>



-- 
Lahiru Chandima
*Senior Software Engineer*
Mobile : +94 (0) 772 253283
lahi...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] How to add a link to a different page in a carbon ui component

2014-10-08 Thread Supun Muthutantrige
you can simple add an anchor tag in you jsp file. or you can add a button
to redirect it into the relevant page

Anchor tag
*link text*



*Supun Rasitha Muthutantrige*





*supunrIntern WSO2 Inc: http://wso2.com 
lean.enterprise.middleware*
*Mobile: 0758374608*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] How to add a link to a different page in a carbon ui component

2014-10-08 Thread Lahiru Chandima
Hi Supun,

That is exactly what I am trying to do.

Thanks

On Thu, Oct 9, 2014 at 10:43 AM, Supun Muthutantrige 
wrote:

> Hi Lahiru,
>
> DO you want to link two .jsp pages? From one of your .jsp pages to another
> one? is that what you are trying to achieve?
>
> Regards
>
>
> *Supun Rasitha Muthutantrige*
>
>
>
>
> *supunr WSO2 Inc: http://wso2.com 
> lean.enterprise.middleware*
> *Mobile: 0758374608*
>



-- 
Lahiru Chandima
*Senior Software Engineer*
Mobile : +94 (0) 772 253283
lahi...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] How to add a link to a different page in a carbon ui component

2014-10-08 Thread Supun Muthutantrige
Hi Lahiru,

DO you want to link two .jsp pages? From one of your .jsp pages to another
one? is that what you are trying to achieve?

Regards


*Supun Rasitha Muthutantrige*




*supunr WSO2 Inc: http://wso2.com 
lean.enterprise.middleware*
*Mobile: 0758374608*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] How to add a link to a different page in a carbon ui component

2014-10-08 Thread Lahiru Chandima
Hi All,

I am writing my first carbon component.

I want to achieve something so simple; add a link in a page that links to a
different page in my component. Can somebody tell me how to get the url of
my target page?

Thanks

-- 
Lahiru Chandima
*Senior Software Engineer*
Mobile : +94 (0) 772 253283
lahi...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] How to restrict API Design page to allow only files of certain extension(.jpg, .png, .gif) to be uploaded for API thumbnail image in APIM

2014-10-08 Thread Dinesh J Weerakkody
Hi Niranda,

modern browsers support accept attribute and explain in this stackoverflow
tread [1]. If that doesn't work for you, you have to write a custom js for
validation.
Sample validation can be found here [2].

[1]
http://stackoverflow.com/questions/3521122/html-input-type-file-apply-a-filter
[2]
http://www.codeproject.com/Tips/700593/FileUpload-Filter-File-Type-File-Extension-File-Si


On Wed, Oct 8, 2014 at 5:48 PM, Niranda Perera  wrote:

> Hi,
>
> Is there any way to restrict only files of certain file types to be
> uploaded in the API thumbnail image section in APIM?
>
> Rgds
>
>
> --
> *Niranda Perera*
> Software Engineer, WSO2 Inc.
> Mobile: +94-71-554-8430
> Twitter: @n1r44 
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 

*Dinesh J. Weerakkody*
Software Engineer
WSO2 Inc.
lean | enterprise | middleware
M : +94 727 361788 | E : dine...@wso2.com | W : www.wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Error creating tenant by connecting to Active directory

2014-10-08 Thread Godwin Amila Shrimal
Hi,

Thanks for the help Rajitha, Sorted out the issue by adding host entry.



On Mon, Oct 6, 2014 at 8:20 PM, Godwin Amila Shrimal 
wrote:

> Changed subject
>
>
>
> Hi,
>
> I have configured the user-mg.xml to point active directory and tried to
> create a tenant and given following error. Can someone point me whats wrong
> ?
>
> org.wso2.carbon.user.core.UserStoreException: Error occurred while
> searching in root partition.
>
> at
> org.wso2.carbon.user.core.tenant.CommonHybridLDAPTenantManager.isOrganizationalUnitCreated(CommonHybridLDAPTenantManager.java:140)
>
> at
> org.wso2.carbon.user.core.tenant.CommonHybridLDAPTenantManager.addTenant(CommonHybridLDAPTenantManager.java:98)
>
> at
> org.wso2.carbon.tenant.mgt.core.TenantPersistor.addTenant(TenantPersistor.java:174)
>
> at
> org.wso2.carbon.tenant.mgt.core.TenantPersistor.persistTenantInUserStore(TenantPersistor.java:100)
>
> at
> org.wso2.carbon.tenant.mgt.core.TenantPersistor.persistTenant(TenantPersistor.java:66)
>
> at
> org.wso2.carbon.tenant.mgt.services.TenantMgtAdminService.addTenant(TenantMgtAdminService.java:70)
>
> 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.apache.axis2.rpc.receivers.RPCUtil.invokeServiceClass(RPCUtil.java:212)
>
> at
> org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCMessageReceiver.java:117)
>
> at
> org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(AbstractInOutMessageReceiver.java:40)
>
> at
> org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:110)
>
> at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
>
> at
> org.apache.axis2.transport.local.LocalTransportReceiver.processMessage(LocalTransportReceiver.java:169)
>
> at
> org.apache.axis2.transport.local.LocalTransportReceiver.processMessage(LocalTransportReceiver.java:82)
>
> at
> org.wso2.carbon.core.transports.local.CarbonLocalTransportSender.finalizeSendWithToAddress(CarbonLocalTransportSender.java:45)
>
> at
> org.apache.axis2.transport.local.LocalTransportSender.invoke(LocalTransportSender.java:77)
>
> at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:442)
>
> at
> org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:430)
>
> at
> org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:225)
>
> at
> org.apache.axis2.client.OperationClient.execute(OperationClient.java:149)
>
> at
> org.wso2.carbon.tenant.mgt.stub.TenantMgtAdminServiceStub.addTenant(TenantMgtAdminServiceStub.java:2718)
>
> at
> org.wso2.carbon.tenant.mgt.ui.clients.TenantServiceClient.addTenant(TenantServiceClient.java:90)
>
> at
> org.wso2.carbon.tenant.mgt.ui.utils.TenantMgtUtil.addTenantConfigBean(TenantMgtUtil.java:67)
>
> at
> org.apache.jsp.tenant_002dmgt.submit_005ftenant_005fajaxprocessor_jsp._jspService(org.apache.jsp.tenant_002dmgt.submit_005ftenant_005fajaxprocessor_jsp:116)
>
> at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:111)
>
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
>
> at
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:403)
>
> at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:492)
>
> at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:378)
>
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
>
> at org.wso2.carbon.ui.JspServlet.service(JspServlet.java:155)
>
> at org.wso2.carbon.ui.TilesJspServlet.service(TilesJspServlet.java:80)
>
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
>
> at
> org.eclipse.equinox.http.helper.ContextPathServletAdaptor.service(ContextPathServletAdaptor.java:37)
>
> at
> org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61)
>
> at
> org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:128)
>
> at
> org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:68)
>
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
>
> at
> org.wso2.carbon.tomcat.ext.servlet.DelegationServlet.service(DelegationServlet.java:68)
>
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
>
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
>
> at
> org.wso2.carbon.tomcat.ext.filter.CharacterSetFilter.doFilter(CharacterSetFilter.java:61)
>
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
>
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
>
> at
> org.apache.catalina.core.StandardWrapperValve.

[Dev] Governance Registry: Web service executor sample

2014-10-08 Thread Himasha Guruge
Hi All,

In Governance Registry web service executor sample[1] , when trying to
create a new lifecycle, I'm unable to save it since it says unable to
validate the configuration.

In the console, following error is shown where line number 23 points to
" 5" of the payload parameter.

 "ERROR {org.wso2.carbon.governance.lcm.util.CommonUtil} -  Unable to parse
the XML configuration. Please validate the XML
configurationorg.xml.sax.SAXParseException; lineNumber: 23; columnNumber:
33; cvc-complex-type.2.3: Element 'parameter' cannot have character
[children], because the type's content type is element-only."

I have added the exact segment mentioned in the sample, under data model
tag of Development state. What could be the issue in the xml configuration?

[1] https://docs.wso2.com/display/Governance460/Web+Service+Executor+Sample
Thanks & Regards,

-- 
Himasha Guruge
*Software Engineer*
WS*O2* *Inc.*
Mobile: +94 777459299
himas...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Error while building sample connector

2014-10-08 Thread Inosh Perera
Hi Kasun,
Could you please attach the maven errors you are getting while compiling.

Regards,
Inosh

On Thu, Oct 9, 2014 at 8:49 AM, Chanaka Fernando  wrote:

> Hi Kasun,
>
> What is the error you are getting? Please share the error details such
> that others can help you out.
>
> Thanks,
> Chanaka
>
> On Wed, Oct 8, 2014 at 6:44 PM, Kasun Dissanayake  wrote:
>
>> Hi all,
>>
>> I have checked out the
>> http://svn.wso2.org/repos/wso2/carbon/platform/branches/turing/components/identity/org.wso2.carbon.identity.provisioning.connector.sample/4.2.0/
>> and compiled with following repository as offline discuss with Darshana
>>
>>
>>
>>
>> --
>> Kasun Dissanayake
>> Software Engineer
>> WSO2 Inc.
>> Lean | Enterprise | Middleware
>> Tel - +94 77 086 2860
>> Skype - kasun.dissanayake4
>> LinkedIn - lk.linkedin.com/in/kasundis/
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> --
> Chanaka Fernando
> Technical Lead
> WSO2, Inc.; http://wso2.com
> lean.enterprise.middleware
>
> mobile: +94 773337238
> Blog : http://soatutorials.blogspot.com
> LinkedIn:http://www.linkedin.com/pub/chanaka-fernando/19/a20/5b0
> Twitter:https://twitter.com/chanakaudaya
> Wordpress:http://chanakaudaya.wordpress.com
>
>
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Inosh Perera
Software Engineer, WSO2 Inc.
Tel: 0785293686
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Error while building sample connector

2014-10-08 Thread Chanaka Fernando
Hi Kasun,

What is the error you are getting? Please share the error details such that
others can help you out.

Thanks,
Chanaka

On Wed, Oct 8, 2014 at 6:44 PM, Kasun Dissanayake  wrote:

> Hi all,
>
> I have checked out the
> http://svn.wso2.org/repos/wso2/carbon/platform/branches/turing/components/identity/org.wso2.carbon.identity.provisioning.connector.sample/4.2.0/
> and compiled with following repository as offline discuss with Darshana
>
>
>
>
> --
> Kasun Dissanayake
> Software Engineer
> WSO2 Inc.
> Lean | Enterprise | Middleware
> Tel - +94 77 086 2860
> Skype - kasun.dissanayake4
> LinkedIn - lk.linkedin.com/in/kasundis/
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
--
Chanaka Fernando
Technical Lead
WSO2, Inc.; http://wso2.com
lean.enterprise.middleware

mobile: +94 773337238
Blog : http://soatutorials.blogspot.com
LinkedIn:http://www.linkedin.com/pub/chanaka-fernando/19/a20/5b0
Twitter:https://twitter.com/chanakaudaya
Wordpress:http://chanakaudaya.wordpress.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [IS] Exception when running STS sample client

2014-10-08 Thread Johann Nallathamby
I remember facing the same problem in Java 1.6. Not the same version you
have used. It happened for me in OpenID flow. When I debugged the issue I
found that the error occurred while parsing the cacerts file in JDK. So the
fix in that instance was to provide a rampart config property to disable
parsing the cacerts file [1]. But couldn't find what the exact cause for
the issue is. From whatever googling I did online I was able to narrow it
down as incompatibilities with specific JCE provider versions, in our case
bouncy castle.

[1] Commit revision: 193388

Thanks,
Johann.

On Wed, Oct 8, 2014 at 6:25 PM, Malithi Edirisinghe 
wrote:

> Hi Asok,
>
> I have the same java version, i.e "1.6.0_65"
>
> Thanks,
> Malithi.
>
> On Wed, Oct 8, 2014 at 3:52 PM, Asok Perera  wrote:
>
>> Hi Mailthi,
>>
>> Could you mention the exact java version in your system ?
>> In my case, the java version was "1.6.0_65" and it worked without a
>> problem.
>>
>> BR
>>
>> *Asok Aravinda Perera*
>> Software Engineer
>> WSO2, Inc.;http://wso2.com/
>> 
>> lean.enterprise.middleware
>>
>> Mobile: +94722241032
>>
>> On Wed, Oct 8, 2014 at 1:19 PM, Dulanja Liyanage 
>> wrote:
>>
>>> I'm not sure about the exact root cause of this. But, please note that
>>> WSO2 components are intended to run on Oracle Java 1.6 and 1.7. Please
>>> refer [1].
>>>
>>> [1] https://docs.wso2.com/display/IS500/Installation+Prerequisites
>>>
>>> On Wed, Oct 8, 2014 at 10:07 AM, Malithi Edirisinghe 
>>> wrote:
>>>
 Hi All,

 I configured IS 5.0.0 STS to issue tokens and tried to run the client
 sample at [1].
 I'm working on Mac OS X Mavericks and have set up my JAVA_HOME for java
 1.6 which is the apple version.
 When running the client under this setup I got the below exception
 which is thrown by the Identity Server. But this client worked as expected
 when I changed my JAVA_HOME to java 1.7 which is oracle java.

 java.lang.RuntimeException: org.wso2.carbon.security.util.ServerCrypto
 cannot create instance
 at
 org.apache.ws.security.components.crypto.CryptoFactory.loadClass(CryptoFactory.java:231)
 at
 org.apache.ws.security.components.crypto.CryptoFactory.getInstance(CryptoFactory.java:95)
 at
 org.apache.rahas.impl.SAML2TokenIssuer.issue(SAML2TokenIssuer.java:188)
 at
 org.apache.rahas.TokenRequestDispatcher.handle(TokenRequestDispatcher.java:69)
 at
 org.apache.rahas.STSMessageReceiver.invokeBusinessLogic(STSMessageReceiver.java:57)
 at
 org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(AbstractInOutMessageReceiver.java:40)
 at
 org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:110)
 at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
 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:231)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:755)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
 at
 org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61)
 at
 org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:128)
 at
 org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:68)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
 at
 org.wso2.carbon.tomcat.ext.servlet.DelegationServlet.service(DelegationServlet.java:68)
 at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
 at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
 at
 org.wso2.carbon.tomcat.ext.filter.CharacterSetFilter.doFilter(CharacterSetFilter.java:61)
 at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
 at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
 at
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
 at
 org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
 at
 org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
 at
 org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
 at
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
 at
 org.wso2.carbon.tomcat.ext.valves.CompositeValve.continueInvocation(CompositeValve.java:178)
 at
 org.wso2.carbon.tomcat.ext.valves.C

Re: [Dev] Error while bulding carbon-govenance

2014-10-08 Thread Eranda Sooriyabandara
Hi Prasannaa,
It seems the nexus has a older version of
org.wso2.carbon.registry.extensions. Please build
org.wso2.carbon.registry.extensions and build
org.wso2.carbon.governance.api.

thanks
Eranda

On Thu, Oct 9, 2014 at 12:49 AM, Eranda Sooriyabandara 
wrote:

> Hi Prasanna,
> As I can see those changes were committed. I think your code is too old.
> Please pull from git and try building.
>
> thanks
> Eranda
>
> On Wed, Oct 8, 2014 at 8:42 PM, Prasanna Dangalla 
> wrote:
>
>> Hi,
>>
>> I'm getting the following error when building carbon-governance from git
>> repo[1] master branch
>>
>> https://github.com/wso2-dev/carbon-governance
>>
>> ---
>> Running org.wso2.carbon.governance.api.test.PolicyTest
>> log4j:WARN No appenders could be found for logger
>> (org.wso2.carbon.context.internal.CarbonContextDataHolder).
>> log4j:WARN Please initialize the log4j system properly.
>> log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for
>> more info.
>> Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.46 sec
>> Running org.wso2.carbon.governance.api.test.SchemaTest
>> log4j:WARN No appenders could be found for logger
>> (org.wso2.carbon.context.internal.CarbonContextDataHolder).
>> log4j:WARN Please initialize the log4j system properly.
>> log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for
>> more info.
>> Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.286 sec
>> Running org.wso2.carbon.governance.api.test.WSDLTest
>> log4j:WARN No appenders could be found for logger
>> (org.wso2.carbon.context.internal.CarbonContextDataHolder).
>> log4j:WARN Please initialize the log4j system properly.
>> log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for
>> more info.
>> Retrieving document at '
>> http://svn.wso2.org/repos/wso2/carbon/platform/trunk/components/governance/org.wso2.carbon.governance.api/src/test/resources/test-resources/wsdl/BizService.wsdl
>> '.
>> Retrieving schema at '../xsd/purchasing.xsd', relative to '
>> http://svn.wso2.org/repos/wso2/carbon/platform/trunk/components/governance/org.wso2.carbon.governance.api/src/test/resources/test-resources/wsdl/BizService.wsdl
>> '.
>> Retrieving document at '
>> http://svn.wso2.org/repos/wso2/carbon/platform/trunk/components/governance/org.wso2.carbon.governance.api/src/test/resources/test-resources/wsdl/BizService.wsdl
>> '.
>> Retrieving schema at '../xsd/purchasing.xsd', relative to '
>> http://svn.wso2.org/repos/wso2/carbon/platform/trunk/components/governance/org.wso2.carbon.governance.api/src/test/resources/test-resources/wsdl/BizService.wsdl
>> '.
>> Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 2.354 sec
>> <<< FAILURE!
>>
>> Results :
>>
>> Tests in error:
>>   testAddWSDL(org.wso2.carbon.governance.api.test.WSDLTest): Error in
>> adding the wsdl. wsdl id: e1693841-2685-4d23-a43e-fd7715e8f582.
>>
>> Tests run: 7, Failures: 0, Errors: 1, Skipped: 0
>>
>> [INFO]
>> 
>> [INFO] Reactor Summary:
>> [INFO]
>> [INFO] WSO2 Carbon - Platform Aggregator Pom . SUCCESS
>> [0.123s]
>> [INFO] WSO2 Carbon - Service Stubs - Aggregator Module ... SUCCESS
>> [0.009s]
>> [INFO] WSO2 Carbon - Governance - Notifications Work list Human Task
>> Stub  SUCCESS [3.987s]
>> [INFO] WSO2 Carbon - Governance - Gadgets User Interface Stub  SUCCESS
>> [5.667s]
>> [INFO] WSO2 Carbon - Governance - Generic Artifact User Interface Stub
>> SUCCESS [2.954s]
>> [INFO] WSO2 Carbon - Governance - Custom Lifecycle Checklist Stub
>> SUCCESS [2.181s]
>> [INFO] WSO2 Carbon - Governance - Life Cycles User Interface Stub
>> SUCCESS [2.354s]
>> [INFO] WSO2 Carbon - Governance - List Metadata User Interface Stub
>> SUCCESS [2.599s]
>> [INFO] WSO2 Carbon - Governance - Notifications User Interface Stub
>> SUCCESS [2.712s]
>> [INFO] WSO2 Carbon - Governance - People User Interface Stub  SUCCESS
>> [2.159s]
>> [INFO] WSO2 Carbon - Governance - Processes User Interface Stub  SUCCESS
>> [2.155s]
>> [INFO] WSO2 Carbon - Governance - Services User Interface Stub  SUCCESS
>> [2.365s]
>> [INFO] WSO2 Carbon - Governance - SLA User Interface Stub  SUCCESS
>> [2.405s]
>> [INFO] WSO2 Carbon - Governance - WSDL Tool Stub . SUCCESS
>> [2.002s]
>> [INFO] WSO2 Carbon - Governance Aggregator Module  SUCCESS
>> [0.008s]
>> [INFO] WSO2 Carbon - Governance .. FAILURE
>> [13.785s]
>> [INFO] WSO2 Carbon - Governance - S-Ramp Implementation .. SKIPPED
>> [INFO] WSO2 Carbon - Governance - Registry Extensions  SKIPPED
>> [INFO] WSO2 Carbon - Governance - Eventing Implementation  SKIPPED
>> [INFO] WSO2 Carbon - Governance - Custom Lifecycle Checklist BE  SKIPPED
>> [INFO] WSO2 Carbon - Governance - Custom Lifecycle Checklist UI  SKIPPED
>> [INFO] WSO2 Carbon - Governance - Custom Lifecycle History UI  SKIPPED
>> [INFO] WSO2 Carbon - Governan

Re: [Dev] Error while bulding carbon-govenance

2014-10-08 Thread Eranda Sooriyabandara
Hi Prasanna,
As I can see those changes were committed. I think your code is too old.
Please pull from git and try building.

thanks
Eranda

On Wed, Oct 8, 2014 at 8:42 PM, Prasanna Dangalla  wrote:

> Hi,
>
> I'm getting the following error when building carbon-governance from git
> repo[1] master branch
>
> https://github.com/wso2-dev/carbon-governance
>
> ---
> Running org.wso2.carbon.governance.api.test.PolicyTest
> log4j:WARN No appenders could be found for logger
> (org.wso2.carbon.context.internal.CarbonContextDataHolder).
> log4j:WARN Please initialize the log4j system properly.
> log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for
> more info.
> Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.46 sec
> Running org.wso2.carbon.governance.api.test.SchemaTest
> log4j:WARN No appenders could be found for logger
> (org.wso2.carbon.context.internal.CarbonContextDataHolder).
> log4j:WARN Please initialize the log4j system properly.
> log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for
> more info.
> Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.286 sec
> Running org.wso2.carbon.governance.api.test.WSDLTest
> log4j:WARN No appenders could be found for logger
> (org.wso2.carbon.context.internal.CarbonContextDataHolder).
> log4j:WARN Please initialize the log4j system properly.
> log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for
> more info.
> Retrieving document at '
> http://svn.wso2.org/repos/wso2/carbon/platform/trunk/components/governance/org.wso2.carbon.governance.api/src/test/resources/test-resources/wsdl/BizService.wsdl
> '.
> Retrieving schema at '../xsd/purchasing.xsd', relative to '
> http://svn.wso2.org/repos/wso2/carbon/platform/trunk/components/governance/org.wso2.carbon.governance.api/src/test/resources/test-resources/wsdl/BizService.wsdl
> '.
> Retrieving document at '
> http://svn.wso2.org/repos/wso2/carbon/platform/trunk/components/governance/org.wso2.carbon.governance.api/src/test/resources/test-resources/wsdl/BizService.wsdl
> '.
> Retrieving schema at '../xsd/purchasing.xsd', relative to '
> http://svn.wso2.org/repos/wso2/carbon/platform/trunk/components/governance/org.wso2.carbon.governance.api/src/test/resources/test-resources/wsdl/BizService.wsdl
> '.
> Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 2.354 sec
> <<< FAILURE!
>
> Results :
>
> Tests in error:
>   testAddWSDL(org.wso2.carbon.governance.api.test.WSDLTest): Error in
> adding the wsdl. wsdl id: e1693841-2685-4d23-a43e-fd7715e8f582.
>
> Tests run: 7, Failures: 0, Errors: 1, Skipped: 0
>
> [INFO]
> 
> [INFO] Reactor Summary:
> [INFO]
> [INFO] WSO2 Carbon - Platform Aggregator Pom . SUCCESS [0.123s]
> [INFO] WSO2 Carbon - Service Stubs - Aggregator Module ... SUCCESS [0.009s]
> [INFO] WSO2 Carbon - Governance - Notifications Work list Human Task Stub
> SUCCESS [3.987s]
> [INFO] WSO2 Carbon - Governance - Gadgets User Interface Stub  SUCCESS
> [5.667s]
> [INFO] WSO2 Carbon - Governance - Generic Artifact User Interface Stub
> SUCCESS [2.954s]
> [INFO] WSO2 Carbon - Governance - Custom Lifecycle Checklist Stub  SUCCESS
> [2.181s]
> [INFO] WSO2 Carbon - Governance - Life Cycles User Interface Stub  SUCCESS
> [2.354s]
> [INFO] WSO2 Carbon - Governance - List Metadata User Interface Stub
> SUCCESS [2.599s]
> [INFO] WSO2 Carbon - Governance - Notifications User Interface Stub
> SUCCESS [2.712s]
> [INFO] WSO2 Carbon - Governance - People User Interface Stub  SUCCESS
> [2.159s]
> [INFO] WSO2 Carbon - Governance - Processes User Interface Stub  SUCCESS
> [2.155s]
> [INFO] WSO2 Carbon - Governance - Services User Interface Stub  SUCCESS
> [2.365s]
> [INFO] WSO2 Carbon - Governance - SLA User Interface Stub  SUCCESS [2.405s]
> [INFO] WSO2 Carbon - Governance - WSDL Tool Stub . SUCCESS [2.002s]
> [INFO] WSO2 Carbon - Governance Aggregator Module  SUCCESS [0.008s]
> [INFO] WSO2 Carbon - Governance .. FAILURE
> [13.785s]
> [INFO] WSO2 Carbon - Governance - S-Ramp Implementation .. SKIPPED
> [INFO] WSO2 Carbon - Governance - Registry Extensions  SKIPPED
> [INFO] WSO2 Carbon - Governance - Eventing Implementation  SKIPPED
> [INFO] WSO2 Carbon - Governance - Custom Lifecycle Checklist BE  SKIPPED
> [INFO] WSO2 Carbon - Governance - Custom Lifecycle Checklist UI  SKIPPED
> [INFO] WSO2 Carbon - Governance - Custom Lifecycle History UI  SKIPPED
> [INFO] WSO2 Carbon - Governance - WSDL Tool UI Management  SKIPPED
> [INFO] WSO2 Carbon - Governance - WSDL Tool UI ... SKIPPED
> [INFO] WSO2 Carbon - Governance - Life Cycles User Interface  SKIPPED
> [INFO] WSO2 Carbon - Governance - Generic Artifact User Interface  SKIPPED
> [INFO] WSO2 Carbon - Governance - List Metadata Service .. SKIPPED
> [INFO] WSO2 Carbon - Governance - Generic Artifact Manage

Re: [Dev] Error while bulding carbon-govenance

2014-10-08 Thread Eranda Sooriyabandara
This is due to some bad code introduced lately. I have a fix which will go
across kernel, registry and governance and I will commit ASAP.

thanks
Eranda

On Wed, Oct 8, 2014 at 8:42 PM, Prasanna Dangalla  wrote:

> Hi,
>
> I'm getting the following error when building carbon-governance from git
> repo[1] master branch
>
> https://github.com/wso2-dev/carbon-governance
>
> ---
> Running org.wso2.carbon.governance.api.test.PolicyTest
> log4j:WARN No appenders could be found for logger
> (org.wso2.carbon.context.internal.CarbonContextDataHolder).
> log4j:WARN Please initialize the log4j system properly.
> log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for
> more info.
> Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.46 sec
> Running org.wso2.carbon.governance.api.test.SchemaTest
> log4j:WARN No appenders could be found for logger
> (org.wso2.carbon.context.internal.CarbonContextDataHolder).
> log4j:WARN Please initialize the log4j system properly.
> log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for
> more info.
> Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.286 sec
> Running org.wso2.carbon.governance.api.test.WSDLTest
> log4j:WARN No appenders could be found for logger
> (org.wso2.carbon.context.internal.CarbonContextDataHolder).
> log4j:WARN Please initialize the log4j system properly.
> log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for
> more info.
> Retrieving document at '
> http://svn.wso2.org/repos/wso2/carbon/platform/trunk/components/governance/org.wso2.carbon.governance.api/src/test/resources/test-resources/wsdl/BizService.wsdl
> '.
> Retrieving schema at '../xsd/purchasing.xsd', relative to '
> http://svn.wso2.org/repos/wso2/carbon/platform/trunk/components/governance/org.wso2.carbon.governance.api/src/test/resources/test-resources/wsdl/BizService.wsdl
> '.
> Retrieving document at '
> http://svn.wso2.org/repos/wso2/carbon/platform/trunk/components/governance/org.wso2.carbon.governance.api/src/test/resources/test-resources/wsdl/BizService.wsdl
> '.
> Retrieving schema at '../xsd/purchasing.xsd', relative to '
> http://svn.wso2.org/repos/wso2/carbon/platform/trunk/components/governance/org.wso2.carbon.governance.api/src/test/resources/test-resources/wsdl/BizService.wsdl
> '.
> Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 2.354 sec
> <<< FAILURE!
>
> Results :
>
> Tests in error:
>   testAddWSDL(org.wso2.carbon.governance.api.test.WSDLTest): Error in
> adding the wsdl. wsdl id: e1693841-2685-4d23-a43e-fd7715e8f582.
>
> Tests run: 7, Failures: 0, Errors: 1, Skipped: 0
>
> [INFO]
> 
> [INFO] Reactor Summary:
> [INFO]
> [INFO] WSO2 Carbon - Platform Aggregator Pom . SUCCESS [0.123s]
> [INFO] WSO2 Carbon - Service Stubs - Aggregator Module ... SUCCESS [0.009s]
> [INFO] WSO2 Carbon - Governance - Notifications Work list Human Task Stub
> SUCCESS [3.987s]
> [INFO] WSO2 Carbon - Governance - Gadgets User Interface Stub  SUCCESS
> [5.667s]
> [INFO] WSO2 Carbon - Governance - Generic Artifact User Interface Stub
> SUCCESS [2.954s]
> [INFO] WSO2 Carbon - Governance - Custom Lifecycle Checklist Stub  SUCCESS
> [2.181s]
> [INFO] WSO2 Carbon - Governance - Life Cycles User Interface Stub  SUCCESS
> [2.354s]
> [INFO] WSO2 Carbon - Governance - List Metadata User Interface Stub
> SUCCESS [2.599s]
> [INFO] WSO2 Carbon - Governance - Notifications User Interface Stub
> SUCCESS [2.712s]
> [INFO] WSO2 Carbon - Governance - People User Interface Stub  SUCCESS
> [2.159s]
> [INFO] WSO2 Carbon - Governance - Processes User Interface Stub  SUCCESS
> [2.155s]
> [INFO] WSO2 Carbon - Governance - Services User Interface Stub  SUCCESS
> [2.365s]
> [INFO] WSO2 Carbon - Governance - SLA User Interface Stub  SUCCESS [2.405s]
> [INFO] WSO2 Carbon - Governance - WSDL Tool Stub . SUCCESS [2.002s]
> [INFO] WSO2 Carbon - Governance Aggregator Module  SUCCESS [0.008s]
> [INFO] WSO2 Carbon - Governance .. FAILURE
> [13.785s]
> [INFO] WSO2 Carbon - Governance - S-Ramp Implementation .. SKIPPED
> [INFO] WSO2 Carbon - Governance - Registry Extensions  SKIPPED
> [INFO] WSO2 Carbon - Governance - Eventing Implementation  SKIPPED
> [INFO] WSO2 Carbon - Governance - Custom Lifecycle Checklist BE  SKIPPED
> [INFO] WSO2 Carbon - Governance - Custom Lifecycle Checklist UI  SKIPPED
> [INFO] WSO2 Carbon - Governance - Custom Lifecycle History UI  SKIPPED
> [INFO] WSO2 Carbon - Governance - WSDL Tool UI Management  SKIPPED
> [INFO] WSO2 Carbon - Governance - WSDL Tool UI ... SKIPPED
> [INFO] WSO2 Carbon - Governance - Life Cycles User Interface  SKIPPED
> [INFO] WSO2 Carbon - Governance - Generic Artifact User Interface  SKIPPED
> [INFO] WSO2 Carbon - Governance - List Metadata Service .. SKIPPED
> [INFO] WSO2 Carbon - Governance - Generic Ar

[Dev] Error while bulding carbon-govenance

2014-10-08 Thread Prasanna Dangalla
Hi,

I'm getting the following error when building carbon-governance from git
repo[1] master branch

https://github.com/wso2-dev/carbon-governance

---
Running org.wso2.carbon.governance.api.test.PolicyTest
log4j:WARN No appenders could be found for logger
(org.wso2.carbon.context.internal.CarbonContextDataHolder).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for
more info.
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.46 sec
Running org.wso2.carbon.governance.api.test.SchemaTest
log4j:WARN No appenders could be found for logger
(org.wso2.carbon.context.internal.CarbonContextDataHolder).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for
more info.
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.286 sec
Running org.wso2.carbon.governance.api.test.WSDLTest
log4j:WARN No appenders could be found for logger
(org.wso2.carbon.context.internal.CarbonContextDataHolder).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for
more info.
Retrieving document at '
http://svn.wso2.org/repos/wso2/carbon/platform/trunk/components/governance/org.wso2.carbon.governance.api/src/test/resources/test-resources/wsdl/BizService.wsdl
'.
Retrieving schema at '../xsd/purchasing.xsd', relative to '
http://svn.wso2.org/repos/wso2/carbon/platform/trunk/components/governance/org.wso2.carbon.governance.api/src/test/resources/test-resources/wsdl/BizService.wsdl
'.
Retrieving document at '
http://svn.wso2.org/repos/wso2/carbon/platform/trunk/components/governance/org.wso2.carbon.governance.api/src/test/resources/test-resources/wsdl/BizService.wsdl
'.
Retrieving schema at '../xsd/purchasing.xsd', relative to '
http://svn.wso2.org/repos/wso2/carbon/platform/trunk/components/governance/org.wso2.carbon.governance.api/src/test/resources/test-resources/wsdl/BizService.wsdl
'.
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 2.354 sec
<<< FAILURE!

Results :

Tests in error:
  testAddWSDL(org.wso2.carbon.governance.api.test.WSDLTest): Error in
adding the wsdl. wsdl id: e1693841-2685-4d23-a43e-fd7715e8f582.

Tests run: 7, Failures: 0, Errors: 1, Skipped: 0

[INFO]

[INFO] Reactor Summary:
[INFO]
[INFO] WSO2 Carbon - Platform Aggregator Pom . SUCCESS [0.123s]
[INFO] WSO2 Carbon - Service Stubs - Aggregator Module ... SUCCESS [0.009s]
[INFO] WSO2 Carbon - Governance - Notifications Work list Human Task Stub
SUCCESS [3.987s]
[INFO] WSO2 Carbon - Governance - Gadgets User Interface Stub  SUCCESS
[5.667s]
[INFO] WSO2 Carbon - Governance - Generic Artifact User Interface Stub
SUCCESS [2.954s]
[INFO] WSO2 Carbon - Governance - Custom Lifecycle Checklist Stub  SUCCESS
[2.181s]
[INFO] WSO2 Carbon - Governance - Life Cycles User Interface Stub  SUCCESS
[2.354s]
[INFO] WSO2 Carbon - Governance - List Metadata User Interface Stub
SUCCESS [2.599s]
[INFO] WSO2 Carbon - Governance - Notifications User Interface Stub
SUCCESS [2.712s]
[INFO] WSO2 Carbon - Governance - People User Interface Stub  SUCCESS
[2.159s]
[INFO] WSO2 Carbon - Governance - Processes User Interface Stub  SUCCESS
[2.155s]
[INFO] WSO2 Carbon - Governance - Services User Interface Stub  SUCCESS
[2.365s]
[INFO] WSO2 Carbon - Governance - SLA User Interface Stub  SUCCESS [2.405s]
[INFO] WSO2 Carbon - Governance - WSDL Tool Stub . SUCCESS [2.002s]
[INFO] WSO2 Carbon - Governance Aggregator Module  SUCCESS [0.008s]
[INFO] WSO2 Carbon - Governance .. FAILURE [13.785s]
[INFO] WSO2 Carbon - Governance - S-Ramp Implementation .. SKIPPED
[INFO] WSO2 Carbon - Governance - Registry Extensions  SKIPPED
[INFO] WSO2 Carbon - Governance - Eventing Implementation  SKIPPED
[INFO] WSO2 Carbon - Governance - Custom Lifecycle Checklist BE  SKIPPED
[INFO] WSO2 Carbon - Governance - Custom Lifecycle Checklist UI  SKIPPED
[INFO] WSO2 Carbon - Governance - Custom Lifecycle History UI  SKIPPED
[INFO] WSO2 Carbon - Governance - WSDL Tool UI Management  SKIPPED
[INFO] WSO2 Carbon - Governance - WSDL Tool UI ... SKIPPED
[INFO] WSO2 Carbon - Governance - Life Cycles User Interface  SKIPPED
[INFO] WSO2 Carbon - Governance - Generic Artifact User Interface  SKIPPED
[INFO] WSO2 Carbon - Governance - List Metadata Service .. SKIPPED
[INFO] WSO2 Carbon - Governance - Generic Artifact Management  SKIPPED
[INFO] WSO2 Carbon - Governance - Information Source for Gadgets in
Dashboard  SKIPPED
[INFO] WSO2 Carbon - Governance - Gadgets UI . SKIPPED
[INFO] WSO2 Carbon - Governance - Notifications User Interface  SKIPPED
[INFO] WSO2 Carbon - Governance - Life Cycles BE . SKIPPED
[INFO] WSO2 Carbon - Governance - Dashboard Populator  SKIPPED
[INFO] 

Re: [Dev] Error while building IS sample connector

2014-10-08 Thread Darshana Gunawardana
I tried with a clean repo and it builds fine. Do you have any local changes?

On Wed, Oct 8, 2014 at 6:52 PM, Kasun Dissanayake  wrote:

> Sorry guys I mistakenly add this to vacation group.
>
> -- Forwarded message --
> From: Kasun Dissanayake 
> Date: Wed, Oct 8, 2014 at 6:50 PM
> Subject: Error while building IS sample connector
> To: vacation-group 
> Cc: Darshana Gunawardana 
>
>
> Hi All,
>
> I have downloaded following [1]
> 
>  and
> compiled with following property in the pom.xml
>
>  
>   wso2-nexus
>   WSO2 internal Repository  
> http://maven.wso2.org/nexus/content/groups/wso2-public/ 
> >
>  true
> daily
>  ignore
>   
>
> as I discussed offline with Darshana
>
> but i am getting the following error
>
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile
> (default-compile) on project
> org.wso2.carbon.identity.provisioning.connector.sample: Compilation
> failure: Compilation failure:
> [ERROR]
> /home/kasun/Team/SVN/Carbon/platform/branches/turing/components/identity/org.wso2.carbon.identity.provisioning.connector.sample/4.2.0/src/main/java/org/wso2/carbon/identity/provisioning/connector/sample/SampleProvisioningConnector.java:[59,49]
> cannot find symbol
> [ERROR] symbol  : variable JIT_PROVISIONING_ENABLED
> [ERROR] location: class
> org.wso2.carbon.identity.provisioning.IdentityProvisioningConstants
> [ERROR]
> /home/kasun/Team/SVN/Carbon/platform/branches/turing/components/identity/org.wso2.carbon.identity.provisioning.connector.sample/4.2.0/src/main/java/org/wso2/carbon/identity/provisioning/connector/sample/SampleProvisioningConnector.java:[62,24]
> cannot find symbol
> [ERROR] symbol  : variable jitProvisioningEnabled
> [ERROR] location: class
> org.wso2.carbon.identity.provisioning.connector.sample.SampleProvisioningConnector
> [ERROR]
> /home/kasun/Team/SVN/Carbon/platform/branches/turing/components/identity/org.wso2.carbon.identity.provisioning.connector.sample/4.2.0/src/main/java/org/wso2/carbon/identity/provisioning/connector/sample/SampleProvisioningConnector.java:[81,34]
> cannot find symbol
> [ERROR] symbol  : method isJitProvisioning()
> [ERROR] location: class
> org.wso2.carbon.identity.provisioning.ProvisioningEntity
> [ERROR]
> /home/kasun/Team/SVN/Carbon/platform/branches/turing/components/identity/org.wso2.carbon.identity.provisioning.connector.sample/4.2.0/src/main/java/org/wso2/carbon/identity/provisioning/connector/sample/SampleProvisioningConnector.java:[81,59]
> cannot find symbol
> [ERROR] symbol  : method isJitProvisioningEnabled()
> [ERROR] location: class
> org.wso2.carbon.identity.provisioning.connector.sample.SampleProvisioningConnector
> [ERROR]
> /home/kasun/Team/SVN/Carbon/platform/branches/turing/components/identity/org.wso2.carbon.identity.provisioning.connector.sample/4.2.0/src/main/java/org/wso2/carbon/identity/provisioning/connector/sample/SampleProvisioningConnectorFactory.java:[64,1]
> method does not override or implement a method from a supertype
> [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
>
> any help ?
>
> Cheers ~
>
> --
> Kasun Dissanayake
> Software Engineer
> WSO2 Inc.
> Lean | Enterprise | Middleware
> Tel - +94 77 086 2860
> Skype - kasun.dissanayake4
> LinkedIn - lk.linkedin.com/in/kasundis/
>
>
>
> --
> Kasun Dissanayake
> Software Engineer
> WSO2 Inc.
> Lean | Enterprise | Middleware
> Tel - +94 77 086 2860
> Skype - kasun.dissanayake4
> LinkedIn - lk.linkedin.com/in/kasundis/
>



-- 
Regards,


*Darshana Gunawardana*Software Engineer
WSO2 Inc.; http://wso2.com

*E-mail: darsh...@wso2.com *
*Mobile: +94718566859 <%2B94718566859>*Lean . Enterprise . Middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Fwd: Error while building IS sample connector

2014-10-08 Thread Kasun Dissanayake
Sorry guys I mistakenly add this to vacation group.
-- Forwarded message --
From: Kasun Dissanayake 
Date: Wed, Oct 8, 2014 at 6:50 PM
Subject: Error while building IS sample connector
To: vacation-group 
Cc: Darshana Gunawardana 


Hi All,

I have downloaded following [1]

and
compiled with following property in the pom.xml

 
  wso2-nexus
  WSO2 internal Repository  
http://maven.wso2.org/nexus/content/groups/wso2-public/http://www.google.com/url?q=http%3A%2F%2Fmaven.wso2.org%2Fnexus%2Fcontent%2Fgroups%2Fwso2-public%2F%3C%2Furl&sa=D&sntz=1&usg=AFQjCNGl3yYK3QdHe79I4o8kkc7AWP4UPw>
>
 true
daily
 ignore
  

as I discussed offline with Darshana

but i am getting the following error

[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile
(default-compile) on project
org.wso2.carbon.identity.provisioning.connector.sample: Compilation
failure: Compilation failure:
[ERROR]
/home/kasun/Team/SVN/Carbon/platform/branches/turing/components/identity/org.wso2.carbon.identity.provisioning.connector.sample/4.2.0/src/main/java/org/wso2/carbon/identity/provisioning/connector/sample/SampleProvisioningConnector.java:[59,49]
cannot find symbol
[ERROR] symbol  : variable JIT_PROVISIONING_ENABLED
[ERROR] location: class
org.wso2.carbon.identity.provisioning.IdentityProvisioningConstants
[ERROR]
/home/kasun/Team/SVN/Carbon/platform/branches/turing/components/identity/org.wso2.carbon.identity.provisioning.connector.sample/4.2.0/src/main/java/org/wso2/carbon/identity/provisioning/connector/sample/SampleProvisioningConnector.java:[62,24]
cannot find symbol
[ERROR] symbol  : variable jitProvisioningEnabled
[ERROR] location: class
org.wso2.carbon.identity.provisioning.connector.sample.SampleProvisioningConnector
[ERROR]
/home/kasun/Team/SVN/Carbon/platform/branches/turing/components/identity/org.wso2.carbon.identity.provisioning.connector.sample/4.2.0/src/main/java/org/wso2/carbon/identity/provisioning/connector/sample/SampleProvisioningConnector.java:[81,34]
cannot find symbol
[ERROR] symbol  : method isJitProvisioning()
[ERROR] location: class
org.wso2.carbon.identity.provisioning.ProvisioningEntity
[ERROR]
/home/kasun/Team/SVN/Carbon/platform/branches/turing/components/identity/org.wso2.carbon.identity.provisioning.connector.sample/4.2.0/src/main/java/org/wso2/carbon/identity/provisioning/connector/sample/SampleProvisioningConnector.java:[81,59]
cannot find symbol
[ERROR] symbol  : method isJitProvisioningEnabled()
[ERROR] location: class
org.wso2.carbon.identity.provisioning.connector.sample.SampleProvisioningConnector
[ERROR]
/home/kasun/Team/SVN/Carbon/platform/branches/turing/components/identity/org.wso2.carbon.identity.provisioning.connector.sample/4.2.0/src/main/java/org/wso2/carbon/identity/provisioning/connector/sample/SampleProvisioningConnectorFactory.java:[64,1]
method does not override or implement a method from a supertype
[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

any help ?

Cheers ~

-- 
Kasun Dissanayake
Software Engineer
WSO2 Inc.
Lean | Enterprise | Middleware
Tel - +94 77 086 2860
Skype - kasun.dissanayake4
LinkedIn - lk.linkedin.com/in/kasundis/



-- 
Kasun Dissanayake
Software Engineer
WSO2 Inc.
Lean | Enterprise | Middleware
Tel - +94 77 086 2860
Skype - kasun.dissanayake4
LinkedIn - lk.linkedin.com/in/kasundis/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Error while building sample connector

2014-10-08 Thread Kasun Dissanayake
Hi all,

I have checked out the
http://svn.wso2.org/repos/wso2/carbon/platform/branches/turing/components/identity/org.wso2.carbon.identity.provisioning.connector.sample/4.2.0/
and compiled with following repository as offline discuss with Darshana




-- 
Kasun Dissanayake
Software Engineer
WSO2 Inc.
Lean | Enterprise | Middleware
Tel - +94 77 086 2860
Skype - kasun.dissanayake4
LinkedIn - lk.linkedin.com/in/kasundis/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] How to run integration tests in App Factory

2014-10-08 Thread Amalka Subasinghe
Hi,

Test location: [1]

I have skipped running integration tests from regular builds making
skipPlatformTests = true in [2].


When you want to execute the tests; either you can

a. change the property false in [2]
and then execute the command "mvn clean install"

OR

b. execute the command "mvn clean install -DskipPlatformTests=false"

[1]
https://svn.wso2.org/repos/wso2/scratch/appfactory_2.0.0/products/appfactory/2.1.0/modules/integration/
[2]
https://svn.wso2.org/repos/wso2/scratch/appfactory_2.0.0/products/appfactory/2.1.0/modules/integration/tests-integration/tests-scenarios/pom.xml


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


Re: [Dev] [IS] Exception when running STS sample client

2014-10-08 Thread Malithi Edirisinghe
Hi Asok,

I have the same java version, i.e "1.6.0_65"

Thanks,
Malithi.

On Wed, Oct 8, 2014 at 3:52 PM, Asok Perera  wrote:

> Hi Mailthi,
>
> Could you mention the exact java version in your system ?
> In my case, the java version was "1.6.0_65" and it worked without a
> problem.
>
> BR
>
> *Asok Aravinda Perera*
> Software Engineer
> WSO2, Inc.;http://wso2.com/
> 
> lean.enterprise.middleware
>
> Mobile: +94722241032
>
> On Wed, Oct 8, 2014 at 1:19 PM, Dulanja Liyanage  wrote:
>
>> I'm not sure about the exact root cause of this. But, please note that
>> WSO2 components are intended to run on Oracle Java 1.6 and 1.7. Please
>> refer [1].
>>
>> [1] https://docs.wso2.com/display/IS500/Installation+Prerequisites
>>
>> On Wed, Oct 8, 2014 at 10:07 AM, Malithi Edirisinghe 
>> wrote:
>>
>>> Hi All,
>>>
>>> I configured IS 5.0.0 STS to issue tokens and tried to run the client
>>> sample at [1].
>>> I'm working on Mac OS X Mavericks and have set up my JAVA_HOME for java
>>> 1.6 which is the apple version.
>>> When running the client under this setup I got the below exception which
>>> is thrown by the Identity Server. But this client worked as expected when I
>>> changed my JAVA_HOME to java 1.7 which is oracle java.
>>>
>>> java.lang.RuntimeException: org.wso2.carbon.security.util.ServerCrypto
>>> cannot create instance
>>> at
>>> org.apache.ws.security.components.crypto.CryptoFactory.loadClass(CryptoFactory.java:231)
>>> at
>>> org.apache.ws.security.components.crypto.CryptoFactory.getInstance(CryptoFactory.java:95)
>>> at
>>> org.apache.rahas.impl.SAML2TokenIssuer.issue(SAML2TokenIssuer.java:188)
>>> at
>>> org.apache.rahas.TokenRequestDispatcher.handle(TokenRequestDispatcher.java:69)
>>> at
>>> org.apache.rahas.STSMessageReceiver.invokeBusinessLogic(STSMessageReceiver.java:57)
>>> at
>>> org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(AbstractInOutMessageReceiver.java:40)
>>> at
>>> org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:110)
>>> at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
>>> 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:231)
>>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:755)
>>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
>>> at
>>> org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61)
>>> at
>>> org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:128)
>>> at
>>> org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:68)
>>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
>>> at
>>> org.wso2.carbon.tomcat.ext.servlet.DelegationServlet.service(DelegationServlet.java:68)
>>> at
>>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
>>> at
>>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
>>> at
>>> org.wso2.carbon.tomcat.ext.filter.CharacterSetFilter.doFilter(CharacterSetFilter.java:61)
>>> at
>>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
>>> at
>>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
>>> at
>>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
>>> at
>>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
>>> at
>>> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
>>> at
>>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
>>> at
>>> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
>>> at
>>> org.wso2.carbon.tomcat.ext.valves.CompositeValve.continueInvocation(CompositeValve.java:178)
>>> at
>>> org.wso2.carbon.tomcat.ext.valves.CarbonTomcatValve$1.invoke(CarbonTomcatValve.java:47)
>>> at
>>> org.wso2.carbon.webapp.mgt.TenantLazyLoaderValve.invoke(TenantLazyLoaderValve.java:56)
>>> at
>>> org.wso2.carbon.tomcat.ext.valves.TomcatValveContainer.invokeValves(TomcatValveContainer.java:47)
>>> at
>>> org.wso2.carbon.tomcat.ext.valves.CompositeValve.invoke(CompositeValve.java:141)
>>> at
>>> org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValve.invoke(CarbonStuckThreadDetectionValve.java:156)
>>> at
>>> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:936)
>>> at
>>> org.wso2.carbon.tomcat.ext.valves.CarbonContextCreatorValve.invoke(CarbonContextCreatorValve.java:52)
>>> at
>>> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngine

[Dev] How to restrict API Design page to allow only files of certain extension(.jpg, .png, .gif) to be uploaded for API thumbnail image in APIM

2014-10-08 Thread Niranda Perera
Hi,

Is there any way to restrict only files of certain file types to be
uploaded in the API thumbnail image section in APIM?

Rgds


-- 
*Niranda Perera*
Software Engineer, WSO2 Inc.
Mobile: +94-71-554-8430
Twitter: @n1r44 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Error Occured When Deploying JaX-RS WebAPP in application Server

2014-10-08 Thread KasunG Gajasinghe
Hi,

I think your webapp contain the axiom jar which conflicts with the one in
plugins/ folder. Remove that from your webapp and try.

On Wed, Oct 8, 2014 at 1:01 PM, Tharindu Dharmarathna 
wrote:

> Hi Dinesh,Danushka ,
> Thank you for help to fix it.
>
>
> On Tue, Oct 7, 2014 at 11:55 AM, Danushka Fernando 
> wrote:
>
>> IIRC this is due to a class loading issue. You might have the same jar in
>> two places in side the server.
>>
>> Thanks & Regards
>> Danushka Fernando
>> Software Engineer
>> WSO2 inc. http://wso2.com/
>> Mobile : +94716332729
>>
>> On Tue, Oct 7, 2014 at 11:16 AM, Dinesh J Weerakkody 
>> wrote:
>>
>>> Hi,
>>>
>>> I haven't come across this issue. But found this mail thread [1] and
>>> just give a try..
>>>
>>> [1] http://mail.wso2.org/mailarchive/stratos-dev/2011-May/003062.html
>>>
>>> On Tue, Oct 7, 2014 at 10:38 AM, Tharindu Dharmarathna <
>>> tharin...@wso2.com> wrote:
>>>
 Hi all,
 I have tryed to deploy an Jax-RS app in Application Server .When it
 deploys, following exception is shown.

 Is there any work around which solves this issue ?


 Caused by: java.lang.LinkageError: loader constraint violation: when
 resolving method
 "org.wso2.securevault.SecretResolverFactory.create(Lorg/apache/axiom/om/OMElement;Z)Lorg/wso2/securevault/SecretResolver;"
 the class loader (instance of
 org/wso2/carbon/webapp/mgt/loader/CarbonWebappClassLoader) of the current
 class, org/apache/axis2/deployment/AxisConfigBuilder, and the class loader
 (instance of org/eclipse/osgi/internal/baseadaptor/DefaultClassLoader) for
 resolved class, org/wso2/securevault/SecretResolverFactory, have different
 Class objects for the type org/apache/axiom/om/OMElement used in the
 signature
 at
 org.apache.axis2.deployment.AxisConfigBuilder.populateConfig(AxisConfigBuilder.java:92)
 at
 org.apache.axis2.deployment.DeploymentEngine.populateAxisConfiguration(DeploymentEngine.java:854)
 at
 org.apache.axis2.deployment.FileSystemConfigurator.getAxisConfiguration(FileSystemConfigurator.java:116)
 at
 org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:64)
 at
 org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContextFromFileSystem(ConfigurationContextFactory.java:210)
 at
 org.apache.axis2.client.ServiceClient.configureServiceClient(ServiceClient.java:150)
 at org.apache.axis2.client.ServiceClient.(ServiceClient.java:143)
 at
 org.wso2.cpt.db.CustomerproducttracDefault100Stub.(CustomerproducttracDefault100Stub.java:623)
 at
 org.wso2.cpt.db.CustomerproducttracDefault100Stub.(CustomerproducttracDefault100Stub.java:609)
 at
 org.wso2.cpt.db.CustomerproducttracDefault100Stub.(CustomerproducttracDefault100Stub.java:658)
 at
 org.wso2.cpt.db.CustomerproducttracDefault100Stub.(CustomerproducttracDefault100Stub.java:650)
 at com.wso2.cpt.service.UserServices.getUsers(UserServices.java:33)
 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.apache.cxf.service.invoker.AbstractInvoker.performInvocation(AbstractInvoker.java:180)
 at
 org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:96)



 --

 *Tharindu Dharmarathna*Associate Software Engineer
 WSO2 Inc.; http://wso2.com
 lean.enterprise.middleware

 mobile: *+94779109091 <%2B94779109091>*

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


>>>
>>>
>>> --
>>>
>>> *Dinesh J. Weerakkody*
>>> Software Engineer
>>> WSO2 Inc.
>>> lean | enterprise | middleware
>>> M : +94 727 361788 | E : dine...@wso2.com | W : www.wso2.com
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>
>
> --
>
> *Tharindu Dharmarathna*Associate Software Engineer
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
> mobile: *+94779109091 <%2B94779109091>*
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 

*Kasun Gajasinghe*Senior Software Engineer, WSO2 Inc.
email: kasung AT spamfree wso2.com
linked-in: http://lk.linkedin.com/in/gajasinghe
blog: http://kasunbg.org
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] jaggery file upload

2014-10-08 Thread Lochana Menikarachchi
Hi Sameera,

At the end, this is what actually worked... Sending the code snippet for
record..

<%
var carbon = require('carbon');
var datasetService =
carbon.server.osgiService('org.wso2.carbon.ml.dataset.DatasetService');
var uploadingDir = datasetService.getDatasetUploadingDir();
var file = request.getFile("uploadDataset");
var uploadFilePath = 'file:///'+uploadingDir+"/"+file.getName();
var fileN = new File(uploadFilePath);
try{
file.open('r');
fileN.open('w');
fileN.write(file.getStream());
}
finally{
fileN.close();
file.close();
}
%>

Thanks.

On Wed, Oct 8, 2014 at 3:15 PM, Sameera Medagammaddegedara <
samee...@wso2.com> wrote:

> Hi Lochana,
>
> As per our offline discussion you could try the following:
>
> <%
>  var systemProcess = require('process');
>  var parent = 'file:///' + (systemProcess.getProperty('
> jaggery.home') ||
> systemProcess.getProperty('carbon.home')).replace(/[\\]/g,
> '/').replace(/^[\/]/g, '');
>  print(parent);
>  var file=new File(parent+'/test.txt');
>  try{
>  file.open('w');
>  file.write('hello!');
>  }catch(e){
>  print(e);
>  } finally{
>  file.close();
>  }
> %>
> Thank You,
> Sameera
>
> On Tue, Oct 7, 2014 at 12:50 PM, Chan  wrote:
>
>> I believe it's because Jaggery Apps are web apps that needs to operate
>> under the deployments directory. Writing into other directories of the
>> server is potentially harmful and a bad practice. But I do understand the
>> testing part (since it's easy to save a file to filesystem). How about
>> having a special folder inside the webapp (like 'files') and saving them to
>> that location. Saving part needs to be abstracted away so that it can be
>> later switched to some other implementation.
>>
>> Also I think you need to read this file from a Java component. For that -
>> you can use the absolute path to the web app itself (again the same method
>> as above -abstract the implementation)
>>
>> @SameeraM @SameeraP remember the file server discussion we had couple of
>> months ago. I think - now we need to have a platform wide, scalable, secure
>> standard to write to files and read files.
>>
>> Cheers~
>>
>> On Tue, Oct 7, 2014 at 12:41 PM, Lochana Menikarachchi 
>> wrote:
>>
>>> Is there any reason to restrict file system operations  (why not outside
>>> Jaggery application context root) ?
>>> http://jaggeryjs.org/documentation.jag?api=file
>>>
>>> On Tue, Oct 7, 2014 at 12:20 PM, Lochana Menikarachchi >> > wrote:
>>>
 We need to support file uploading to a server location (for testing
 etc.) in addition to S3,HDFS  etc.

 My question is why does file.save do it the way it does..

 Operation Returns Description  File(String filename)Object

 var file = new File("/templates/tmp.jag");

 Takes a filename and provides a File object. (File path is relative to
 the Jaggery application context root)

 shouldn't it allow saving to any location..


 On Tue, Oct 7, 2014 at 12:11 PM, Chan  wrote:

> Hi Lochana,
> Exactly. The correct method to store files is to use a separate file
> service (S3) or use HDFS/RDMS to store the files. Adding @sameeraM to the
> thread.
>
> Cheers~
>
> On Tue, Oct 7, 2014 at 12:09 PM, Lochana Menikarachchi <
> loch...@wso2.com> wrote:
>
>> Hi,
>>
>> >>File uploading brings about a number of issues in scalability. For
>> example - if we upload files to the deployments directory- it's not going
>> to scale properly (DepSync will sync all these files across the cluster 
>> if
>> DepSync enabled).
>>
>> This is exactly what is happening with current file save method,
>>
>> if you do following:
>>
>> var carbon = require('carbon');
>> var datasetService =
>> carbon.server.osgiService('org.wso2.carbon.ml.dataset.DatasetService');
>> var uploadingLimit = datasetService.getDatasetUploadingLimit();
>> var memThreshold = datasetService.getDatasetInMemoryThreshold();
>> var uploadingDir = datasetService.getDatasetUploadingDir();
>> var file = request.getFile("uploadDataset");
>>* file.saveAs(uploadingDir+"/"+file.getName());*
>>
>> file gets saved under deployment directory.
>>
>> We need to upload the file into some other directory on the server..
>>
>>
>> On Tue, Oct 7, 2014 at 11:44 AM, Chan  wrote:
>>
>>> Hi Lochana,
>>> File uploading brings about a number of issues in scalability. For
>>> example - if we upload files to the deployments directory- it's not 
>>> going
>>> to scale properly (DepSync will sync all these files across the cluster 
>>> if
>>> DepSync enabled). Also saving a file to a specific path is inadvisable
>>> cause paths will depend upon deploying machine.
>>>
>>> Can you elaborate more on the requirement - where we can give a
>>>

Re: [Dev] Error Occured When Deploying JaX-RS WebAPP in application Server

2014-10-08 Thread Tharindu Dharmarathna
Hi Dinesh,Danushka ,
Thank you for help to fix it.


On Tue, Oct 7, 2014 at 11:55 AM, Danushka Fernando 
wrote:

> IIRC this is due to a class loading issue. You might have the same jar in
> two places in side the server.
>
> Thanks & Regards
> Danushka Fernando
> Software Engineer
> WSO2 inc. http://wso2.com/
> Mobile : +94716332729
>
> On Tue, Oct 7, 2014 at 11:16 AM, Dinesh J Weerakkody 
> wrote:
>
>> Hi,
>>
>> I haven't come across this issue. But found this mail thread [1] and just
>> give a try..
>>
>> [1] http://mail.wso2.org/mailarchive/stratos-dev/2011-May/003062.html
>>
>> On Tue, Oct 7, 2014 at 10:38 AM, Tharindu Dharmarathna <
>> tharin...@wso2.com> wrote:
>>
>>> Hi all,
>>> I have tryed to deploy an Jax-RS app in Application Server .When it
>>> deploys, following exception is shown.
>>>
>>> Is there any work around which solves this issue ?
>>>
>>>
>>> Caused by: java.lang.LinkageError: loader constraint violation: when
>>> resolving method
>>> "org.wso2.securevault.SecretResolverFactory.create(Lorg/apache/axiom/om/OMElement;Z)Lorg/wso2/securevault/SecretResolver;"
>>> the class loader (instance of
>>> org/wso2/carbon/webapp/mgt/loader/CarbonWebappClassLoader) of the current
>>> class, org/apache/axis2/deployment/AxisConfigBuilder, and the class loader
>>> (instance of org/eclipse/osgi/internal/baseadaptor/DefaultClassLoader) for
>>> resolved class, org/wso2/securevault/SecretResolverFactory, have different
>>> Class objects for the type org/apache/axiom/om/OMElement used in the
>>> signature
>>> at
>>> org.apache.axis2.deployment.AxisConfigBuilder.populateConfig(AxisConfigBuilder.java:92)
>>> at
>>> org.apache.axis2.deployment.DeploymentEngine.populateAxisConfiguration(DeploymentEngine.java:854)
>>> at
>>> org.apache.axis2.deployment.FileSystemConfigurator.getAxisConfiguration(FileSystemConfigurator.java:116)
>>> at
>>> org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:64)
>>> at
>>> org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContextFromFileSystem(ConfigurationContextFactory.java:210)
>>> at
>>> org.apache.axis2.client.ServiceClient.configureServiceClient(ServiceClient.java:150)
>>> at org.apache.axis2.client.ServiceClient.(ServiceClient.java:143)
>>> at
>>> org.wso2.cpt.db.CustomerproducttracDefault100Stub.(CustomerproducttracDefault100Stub.java:623)
>>> at
>>> org.wso2.cpt.db.CustomerproducttracDefault100Stub.(CustomerproducttracDefault100Stub.java:609)
>>> at
>>> org.wso2.cpt.db.CustomerproducttracDefault100Stub.(CustomerproducttracDefault100Stub.java:658)
>>> at
>>> org.wso2.cpt.db.CustomerproducttracDefault100Stub.(CustomerproducttracDefault100Stub.java:650)
>>> at com.wso2.cpt.service.UserServices.getUsers(UserServices.java:33)
>>> 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.apache.cxf.service.invoker.AbstractInvoker.performInvocation(AbstractInvoker.java:180)
>>> at
>>> org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:96)
>>>
>>>
>>>
>>> --
>>>
>>> *Tharindu Dharmarathna*Associate Software Engineer
>>> WSO2 Inc.; http://wso2.com
>>> lean.enterprise.middleware
>>>
>>> mobile: *+94779109091 <%2B94779109091>*
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>>
>> *Dinesh J. Weerakkody*
>> Software Engineer
>> WSO2 Inc.
>> lean | enterprise | middleware
>> M : +94 727 361788 | E : dine...@wso2.com | W : www.wso2.com
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>


-- 

*Tharindu Dharmarathna*Associate Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

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


Re: [Dev] [IS] Exception when running STS sample client

2014-10-08 Thread Asok Perera
Hi Mailthi,

Could you mention the exact java version in your system ?
In my case, the java version was "1.6.0_65" and it worked without a problem.

BR

*Asok Aravinda Perera*
Software Engineer
WSO2, Inc.;http://wso2.com/

lean.enterprise.middleware

Mobile: +94722241032

On Wed, Oct 8, 2014 at 1:19 PM, Dulanja Liyanage  wrote:

> I'm not sure about the exact root cause of this. But, please note that
> WSO2 components are intended to run on Oracle Java 1.6 and 1.7. Please
> refer [1].
>
> [1] https://docs.wso2.com/display/IS500/Installation+Prerequisites
>
> On Wed, Oct 8, 2014 at 10:07 AM, Malithi Edirisinghe 
> wrote:
>
>> Hi All,
>>
>> I configured IS 5.0.0 STS to issue tokens and tried to run the client
>> sample at [1].
>> I'm working on Mac OS X Mavericks and have set up my JAVA_HOME for java
>> 1.6 which is the apple version.
>> When running the client under this setup I got the below exception which
>> is thrown by the Identity Server. But this client worked as expected when I
>> changed my JAVA_HOME to java 1.7 which is oracle java.
>>
>> java.lang.RuntimeException: org.wso2.carbon.security.util.ServerCrypto
>> cannot create instance
>> at
>> org.apache.ws.security.components.crypto.CryptoFactory.loadClass(CryptoFactory.java:231)
>> at
>> org.apache.ws.security.components.crypto.CryptoFactory.getInstance(CryptoFactory.java:95)
>> at org.apache.rahas.impl.SAML2TokenIssuer.issue(SAML2TokenIssuer.java:188)
>> at
>> org.apache.rahas.TokenRequestDispatcher.handle(TokenRequestDispatcher.java:69)
>> at
>> org.apache.rahas.STSMessageReceiver.invokeBusinessLogic(STSMessageReceiver.java:57)
>> at
>> org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(AbstractInOutMessageReceiver.java:40)
>> at
>> org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:110)
>> at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
>> 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:231)
>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:755)
>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
>> at
>> org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61)
>> at
>> org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:128)
>> at
>> org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:68)
>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
>> at
>> org.wso2.carbon.tomcat.ext.servlet.DelegationServlet.service(DelegationServlet.java:68)
>> at
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
>> at
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
>> at
>> org.wso2.carbon.tomcat.ext.filter.CharacterSetFilter.doFilter(CharacterSetFilter.java:61)
>> at
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
>> at
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
>> at
>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
>> at
>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
>> at
>> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
>> at
>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
>> at
>> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
>> at
>> org.wso2.carbon.tomcat.ext.valves.CompositeValve.continueInvocation(CompositeValve.java:178)
>> at
>> org.wso2.carbon.tomcat.ext.valves.CarbonTomcatValve$1.invoke(CarbonTomcatValve.java:47)
>> at
>> org.wso2.carbon.webapp.mgt.TenantLazyLoaderValve.invoke(TenantLazyLoaderValve.java:56)
>> at
>> org.wso2.carbon.tomcat.ext.valves.TomcatValveContainer.invokeValves(TomcatValveContainer.java:47)
>> at
>> org.wso2.carbon.tomcat.ext.valves.CompositeValve.invoke(CompositeValve.java:141)
>> at
>> org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValve.invoke(CarbonStuckThreadDetectionValve.java:156)
>> at
>> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:936)
>> at
>> org.wso2.carbon.tomcat.ext.valves.CarbonContextCreatorValve.invoke(CarbonContextCreatorValve.java:52)
>> 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:1004)
>> at
>> org.apache.coyote.AbstractProtocol$Abstr

Re: [Dev] jaggery file upload

2014-10-08 Thread Sameera Medagammaddegedara
Hi Lochana,

As per our offline discussion you could try the following:

<%
 var systemProcess = require('process');
 var parent = 'file:///' + (systemProcess.getProperty('
jaggery.home') ||
systemProcess.getProperty('carbon.home')).replace(/[\\]/g,
'/').replace(/^[\/]/g, '');
 print(parent);
 var file=new File(parent+'/test.txt');
 try{
 file.open('w');
 file.write('hello!');
 }catch(e){
 print(e);
 } finally{
 file.close();
 }
%>
Thank You,
Sameera

On Tue, Oct 7, 2014 at 12:50 PM, Chan  wrote:

> I believe it's because Jaggery Apps are web apps that needs to operate
> under the deployments directory. Writing into other directories of the
> server is potentially harmful and a bad practice. But I do understand the
> testing part (since it's easy to save a file to filesystem). How about
> having a special folder inside the webapp (like 'files') and saving them to
> that location. Saving part needs to be abstracted away so that it can be
> later switched to some other implementation.
>
> Also I think you need to read this file from a Java component. For that -
> you can use the absolute path to the web app itself (again the same method
> as above -abstract the implementation)
>
> @SameeraM @SameeraP remember the file server discussion we had couple of
> months ago. I think - now we need to have a platform wide, scalable, secure
> standard to write to files and read files.
>
> Cheers~
>
> On Tue, Oct 7, 2014 at 12:41 PM, Lochana Menikarachchi 
> wrote:
>
>> Is there any reason to restrict file system operations  (why not outside
>> Jaggery application context root) ?
>> http://jaggeryjs.org/documentation.jag?api=file
>>
>> On Tue, Oct 7, 2014 at 12:20 PM, Lochana Menikarachchi 
>> wrote:
>>
>>> We need to support file uploading to a server location (for testing
>>> etc.) in addition to S3,HDFS  etc.
>>>
>>> My question is why does file.save do it the way it does..
>>>
>>> Operation Returns Description  File(String filename)Object
>>>
>>> var file = new File("/templates/tmp.jag");
>>>
>>> Takes a filename and provides a File object. (File path is relative to
>>> the Jaggery application context root)
>>>
>>> shouldn't it allow saving to any location..
>>>
>>>
>>> On Tue, Oct 7, 2014 at 12:11 PM, Chan  wrote:
>>>
 Hi Lochana,
 Exactly. The correct method to store files is to use a separate file
 service (S3) or use HDFS/RDMS to store the files. Adding @sameeraM to the
 thread.

 Cheers~

 On Tue, Oct 7, 2014 at 12:09 PM, Lochana Menikarachchi <
 loch...@wso2.com> wrote:

> Hi,
>
> >>File uploading brings about a number of issues in scalability. For
> example - if we upload files to the deployments directory- it's not going
> to scale properly (DepSync will sync all these files across the cluster if
> DepSync enabled).
>
> This is exactly what is happening with current file save method,
>
> if you do following:
>
> var carbon = require('carbon');
> var datasetService =
> carbon.server.osgiService('org.wso2.carbon.ml.dataset.DatasetService');
> var uploadingLimit = datasetService.getDatasetUploadingLimit();
> var memThreshold = datasetService.getDatasetInMemoryThreshold();
> var uploadingDir = datasetService.getDatasetUploadingDir();
> var file = request.getFile("uploadDataset");
>* file.saveAs(uploadingDir+"/"+file.getName());*
>
> file gets saved under deployment directory.
>
> We need to upload the file into some other directory on the server..
>
>
> On Tue, Oct 7, 2014 at 11:44 AM, Chan  wrote:
>
>> Hi Lochana,
>> File uploading brings about a number of issues in scalability. For
>> example - if we upload files to the deployments directory- it's not going
>> to scale properly (DepSync will sync all these files across the cluster 
>> if
>> DepSync enabled). Also saving a file to a specific path is inadvisable
>> cause paths will depend upon deploying machine.
>>
>> Can you elaborate more on the requirement - where we can give a
>> solution?
>>
>> Cheers~
>>
>> On Tue, Oct 7, 2014 at 10:50 AM, Lochana Menikarachchi <
>> loch...@wso2.com> wrote:
>>
>>> Unfortunately, that's not going to work. Shouldn't there be a file
>>> uploader in jaggery (that can upload a file to a given location)?
>>>
>>> On Tue, Oct 7, 2014 at 10:45 AM, Dilan Udara Ariyaratne <
>>> dil...@wso2.com> wrote:
>>>
 Hi Lochana!

 Do not know exactly whether their is a way to directly
 give an absolute path and save the file.

 BTW, as a workaround, if no such way exists, can you try to create
 the corresponding relative path for the given absolute one
 and use the same method provided.

 Cheers!


 *Dilan U. Ariyaratne*
 Software Engineer
 WSO2 Inc. 

Re: [Dev] [IS] Exception when running STS sample client

2014-10-08 Thread Dulanja Liyanage
I'm not sure about the exact root cause of this. But, please note that WSO2
components are intended to run on Oracle Java 1.6 and 1.7. Please refer [1].

[1] https://docs.wso2.com/display/IS500/Installation+Prerequisites

On Wed, Oct 8, 2014 at 10:07 AM, Malithi Edirisinghe 
wrote:

> Hi All,
>
> I configured IS 5.0.0 STS to issue tokens and tried to run the client
> sample at [1].
> I'm working on Mac OS X Mavericks and have set up my JAVA_HOME for java
> 1.6 which is the apple version.
> When running the client under this setup I got the below exception which
> is thrown by the Identity Server. But this client worked as expected when I
> changed my JAVA_HOME to java 1.7 which is oracle java.
>
> java.lang.RuntimeException: org.wso2.carbon.security.util.ServerCrypto
> cannot create instance
> at
> org.apache.ws.security.components.crypto.CryptoFactory.loadClass(CryptoFactory.java:231)
> at
> org.apache.ws.security.components.crypto.CryptoFactory.getInstance(CryptoFactory.java:95)
> at org.apache.rahas.impl.SAML2TokenIssuer.issue(SAML2TokenIssuer.java:188)
> at
> org.apache.rahas.TokenRequestDispatcher.handle(TokenRequestDispatcher.java:69)
> at
> org.apache.rahas.STSMessageReceiver.invokeBusinessLogic(STSMessageReceiver.java:57)
> at
> org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(AbstractInOutMessageReceiver.java:40)
> at
> org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:110)
> at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
> 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:231)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:755)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
> at
> org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61)
> at
> org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:128)
> at
> org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:68)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
> at
> org.wso2.carbon.tomcat.ext.servlet.DelegationServlet.service(DelegationServlet.java:68)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
> at
> org.wso2.carbon.tomcat.ext.filter.CharacterSetFilter.doFilter(CharacterSetFilter.java:61)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
> at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
> at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
> at
> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
> at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
> at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
> at
> org.wso2.carbon.tomcat.ext.valves.CompositeValve.continueInvocation(CompositeValve.java:178)
> at
> org.wso2.carbon.tomcat.ext.valves.CarbonTomcatValve$1.invoke(CarbonTomcatValve.java:47)
> at
> org.wso2.carbon.webapp.mgt.TenantLazyLoaderValve.invoke(TenantLazyLoaderValve.java:56)
> at
> org.wso2.carbon.tomcat.ext.valves.TomcatValveContainer.invokeValves(TomcatValveContainer.java:47)
> at
> org.wso2.carbon.tomcat.ext.valves.CompositeValve.invoke(CompositeValve.java:141)
> at
> org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValve.invoke(CarbonStuckThreadDetectionValve.java:156)
> at
> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:936)
> at
> org.wso2.carbon.tomcat.ext.valves.CarbonContextCreatorValve.invoke(CarbonContextCreatorValve.java:52)
> 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:1004)
> at
> org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
> at
> org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1653)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
> at java.lang.Thread.run(Thread.java:695)
> Caused by: java.lang.reflect.InvocationTargetException
> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
> at
> sun.reflect.NativeConstructorAccess