Skip to content

Instantly share code, notes, and snippets.

JAVA_HOME environment variable is set to /home/farazath/DevTools/jdk1.8.0_144
CARBON_HOME environment variable is set to /home/farazath/IS/product-is/modules/distribution/target/wso2is-5.5.0-SNAPSHOT
Using Java memory options: -Xms256m -Xmx1024m
[2018-03-10 14:28:02,620] INFO {org.wso2.carbon.core.internal.CarbonCoreActivator} - Starting WSO2 Carbon...
[2018-03-10 14:28:02,621] INFO {org.wso2.carbon.core.internal.CarbonCoreActivator} - Operating System : Linux 3.13.0-113-generic, amd64
[2018-03-10 14:28:02,621] INFO {org.wso2.carbon.core.internal.CarbonCoreActivator} - Java Home : /home/farazath/DevTools/jdk1.8.0_144/jre
[2018-03-10 14:28:02,622] INFO {org.wso2.carbon.core.internal.CarbonCoreActivator} - Java Version : 1.8.0_144
[2018-03-10 14:28:02,622] INFO {org.wso2.carbon.core.internal.CarbonCoreActivator} - Java VM : Java HotSpot(TM) 64-Bit Server VM 25.144-b01,Oracle Corporation
[2018-03-10 14:28:02,622] INFO {org.wso2.carbon.core.internal.CarbonCoreActivator} - Carbon Ho
#Install Java8
sudo apt-get install -y python-software-properties debconf-utils
sudo add-apt-repository -y ppa:webupd8team/java
sudo apt-get update
echo "oracle-java8-installer shared/accepted-oracle-license-v1-1 select true" | sudo debconf-set-selections
sudo apt-get install -y oracle-java8-installer
#Install Maven
sudo apt-get install -y maven
username: [email protected]
local.product.repo: /home/farazath/work/wso2/products
local.update.repo: /home/farazath/.wum-wso2/updates
repositories:
WSO2UMSTAGING:
enabled: false
name: WSO2 Update Repository
url: https://gateway.api.cloud.wso2.com/t/wso2umstaging
tokenurl: https://api.updates.wso2.com/token
appkey: WGtYTml1VVZUUjlncTlaSHpwTEliUE9DWDVBYTpFR3prRjVEVzJ3QXRGZlNYX093b3B1U0xmY2dh
JAVA_HOME environment variable is set to /usr/lib/jvm/java-8-oracle
CARBON_HOME environment variable is set to /home/farazath/IS/product-is/modules/distribution/target/wso2is-5.4.0-SNAPSHOT
Using Java memory options: -Xms256m -Xmx1024m
[2017-11-30 23:47:13,181] INFO {org.wso2.carbon.core.internal.CarbonCoreActivator} - Starting WSO2 Carbon...
[2017-11-30 23:47:13,181] INFO {org.wso2.carbon.core.internal.CarbonCoreActivator} - Operating System : Linux 3.13.0-113-generic, amd64
[2017-11-30 23:47:13,182] INFO {org.wso2.carbon.core.internal.CarbonCoreActivator} - Java Home : /usr/lib/jvm/java-8-oracle/jre
[2017-11-30 23:47:13,182] INFO {org.wso2.carbon.core.internal.CarbonCoreActivator} - Java Version : 1.8.0_144
[2017-11-30 23:47:13,182] INFO {org.wso2.carbon.core.internal.CarbonCoreActivator} - Java VM : Java HotSpot(TM) 64-Bit Server VM 25.144-b01,Oracle Corporation
[2017-11-30 23:47:13,182] INFO {org.wso2.carbon.core.internal.CarbonCoreActivator} - Carbon Home : /home/fara
package org.wso2.identity.integration.test.listeners;
import org.testng.ITestContext;
import org.testng.ITestListener;
import org.testng.ITestResult;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.nio.file.StandardOpenOption;
<u>Servlet execution threw an exception</u></p><p><b>description</b> <u>The server encountered an internal error that prevented it from fulfilling this request.</u></p><p><b>exception</b> <pre>javax.servlet.ServletException: Servlet execution threw an exception
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
org.wso2.carbon.ui.filters.cache.ContentTypeBasedCachePreventionFilter.doFilter(ContentTypeBasedCachePreventionFilter.java:53)
org.apache.catalina.filters.HttpHeaderSecurityFilter.doFilter(HttpHeaderSecurityFilter.java:124)
</pre></p><p><b>root cause</b> <pre>java.lang.NoSuchMethodError: javax.ws.rs.InternalServerErrorException.validate(Ljavax/ws/rs/core/Response;Ljavax/ws/rs/core/Response$Status;)Ljavax/ws/rs/core/Response;
javax.ws.rs.InternalServerErrorException.&lt;init&gt;(InternalServerErrorException.java:92)
org.apache.cxf.jaxrs.utils.SpecExceptions.toInternalServerErrorException(SpecExceptions.java:77)
org.apache.cxf.jaxrs.utils.ExceptionUtils.toInternalServerErrorExc
/*
* Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use this file except
* in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
@mefarazath
mefarazath / commands
Last active October 17, 2017 07:14 — forked from pulasthi7/commands
maven
// Update Identity Extensions
mvn versions:update-properties -Dincludes=org.wso2.carbon.identity.* -DgenerateBackupPoms=false
// Update Identity Connectors packed by default
mvn versions:update-properties -Dincludes=org.wso2.carbon.extension.identity.*
// Run in release profile with signing disabled
mvn clean install -P wso2-release -Dgpg.skip
[2017-10-05 01:54:25,782] ERROR {org.wso2.carbon.identity.scim2.common.internal.SCIMCommonComponent} - Error in reading information from identity tables at SCIMCommonComponentStartup.
org.wso2.charon3.core.exceptions.CharonException: Error while parsing scim2-schema-extension.config file!
at org.wso2.charon3.core.config.SCIMUserSchemaExtensionBuilder.readConfiguration(SCIMUserSchemaExtensionBuilder.java:119)
at org.wso2.charon3.core.config.SCIMUserSchemaExtensionBuilder.buildUserSchemaExtension(SCIMUserSchemaExtensionBuilder.java:65)
at org.wso2.carbon.identity.scim2.common.internal.SCIMCommonComponent.activate(SCIMCommonComponent.java:66)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.eclipse.equinox.internal.ds.model.ServiceComponent.activate(ServiceComponen
#### Constructor #####
Ask what you need directly
public X(Config config) {
user = config.getUser();
// blah
y = config.getY();
}