I am newer for wso2. Now i want to integrate wso2ESB with CAS, and i know ESB runs on top of tomcat. i configure org.wso2.carbon.ui/4.1.0/src/main/resources/web/ESB-INF/web.xml as follows.It seems that CAS filters don't work,but the same configuration work well on Common web applications. Anyone can give me some advice?
Thanks in advance.
<filter >
<filter-name >CAS Single Sign Out Filter </filter-name >
<filter-class >org.jasig.cas.client.session.SingleSignOutFilter </filter-class >
</filter >
<filter >
<filter-name >CAS Authentication Filter </filter-name >
<filter-class >org.jasig.cas.client.authentication.AuthenticationFilter </filter-class >
<init-param >
<param-name >casServerLoginUrl </param-name >
<param-value >http://10.21.3.36:8080/cas/login </param-value >
</init-param >
<init-param >
<param-name >serverName </param-name >
<param-value >https://localhost:9443 </param-value >
</init-param >
<init-param >
<param-name >renew </param-name >
<param-value >false </param-value >
</init-param >
<init-param >
<param-name >gateway </param-name >
<param-value >false </param-value >
</init-param >
</filter >
<filter >
<filter-name >CAS Validation Filter </filter-name >
<filter-class >org.jasig.cas.client.validation.Cas20ProxyReceivingTicketValidationFilter </filter-class >
<init-param >
<param-name >casServerUrlPrefix </param-name >
<param-value >http://10.21.3.36:8080/cas/ </param-value >
</init-param >
<init-param >
<param-name >serverName </param-name >
<param-value >https://localhost:9443 </param-value >
</init-param >
</filter >
<filter >
<filter-name >CAS HttpServletRequest Wrapper Filter</filter-name>
<filter-class >org.jasig.cas.client.util.HttpServletRequestWrapperFilter </filter-class >
</filter >
<filter >
<filter-name >CAS Assertion Thread Local Filter</filter-name>
<filter-class >org.jasig.cas.client.util.AssertionThreadLocalFilter </filter-class >
</filter >
<!-- ************************* -->
<filter-mapping >
<filter-name >CAS Single Sign Out Filter </filter-name >
<url-pattern >/* </url-pattern >
</filter-mapping >
<filter-mapping >
<filter-name >CAS Authentication Filter </filter-name >
<url-pattern >/carbon/* </url-pattern >
</filter-mapping >
<filter-mapping >
<filter-name >CAS Validation Filter </filter-name >
<url-pattern >/* </url-pattern >
</filter-mapping >
<filter-mapping >
<filter-name >CAS HttpServletRequest Wrapper Filter</filter-name>
<url-pattern >/* </url-pattern >
</filter-mapping >
<filter-mapping >
<filter-name >CAS Assertion Thread Local Filter</filter-name>
<url-pattern >/* </url-pattern >
</filter-mapping >
<!-- *********************** -->
<listener >
<listener-class >org.jasig.cas.client.session.SingleSignOutHttpSessionListener </listener-class >
</listener >
<!-- *********************** -->
Please update your filters in /repository/conf/tomcat/carbon/META-INF/context.xml to reflect your changes
Related
I have created the dockable panel using avalondock but by default the panel is coming on right side. How to move the panel to left side?
<avalonDock:DockingManager x:Name="dockingManager" cal:RegionManager.RegionName="MainRegion">
<avalonDock:LayoutRoot >
<avalonDock:LayoutPanel Orientation="Horizontal">
<avalonDock:LayoutDocumentPane/>
<avalonDock:LayoutAnchorablePane DockWidth="150" >
<avalonDock:LayoutAnchorable local:AvalonDockRegion.Name="SampleToolRegion"/>
</avalonDock:LayoutAnchorablePane>
<avalonDock:LayoutAnchorablePane DockWidth="150" >
<avalonDock:LayoutAnchorable local:AvalonDockRegion.Name="SampleRibbonRegion" />
</avalonDock:LayoutAnchorablePane>
</avalonDock:LayoutPanel>
</avalonDock:LayoutRoot>
</avalonDock:DockingManager>
</Grid>
Not sure i understand your question.
if the 2 panes are sorted from right to left Try to set the flow direction of the docking manager to left to right
<avalonDock:DockingManager x:Name="dockingManager" cal:RegionManager.RegionName="MainRegion" FlowDirection="LeftToRight">
<avalonDock:LayoutRoot >
<avalonDock:LayoutPanel Orientation="Horizontal">
<avalonDock:LayoutDocumentPane/>
<avalonDock:LayoutAnchorablePane DockWidth="150" >
<avalonDock:LayoutAnchorable local:AvalonDockRegion.Name="SampleToolRegion"/>
</avalonDock:LayoutAnchorablePane>
<avalonDock:LayoutAnchorablePane DockWidth="150" >
<avalonDock:LayoutAnchorable local:AvalonDockRegion.Name="SampleRibbonRegion" />
</avalonDock:LayoutAnchorablePane>
</avalonDock:LayoutPanel>
</avalonDock:LayoutRoot>
</avalonDock:DockingManager>
<avalonDock:DockingManager x:Name="dockingManager" cal:RegionManager.RegionName="MainRegion">
<avalonDock:LayoutRoot >
<avalonDock:LayoutPanel Orientation="Horizontal">
<avalonDock:LayoutAnchorablePane DockWidth="150" >
<avalonDock:LayoutAnchorable local:AvalonDockRegion.Name="SampleToolRegion"/>
</avalonDock:LayoutAnchorablePane>
<avalonDock:LayoutAnchorablePane DockWidth="150" >
<avalonDock:LayoutAnchorable local:AvalonDockRegion.Name="SampleRibbonRegion" />
</avalonDock:LayoutAnchorablePane>
<avalonDock:LayoutDocumentPane/>
</avalonDock:LayoutPanel>
</avalonDock:LayoutRoot>
</avalonDock:DockingManager>
Just changed the sequence of LayoutDocumentPane and LayoutAnchorablePane.
Hope I have understood your question correctly.
I've installed tsung and running the same on Centos.
No using is registered when trying to run jabber_register.xml tsung -f file.xml start. Where exactly is the problem?
I see Acceted connection in Ejabberd logs, but no user is registered.
<?xml version="1.0"?>
<!DOCTYPE tsung SYSTEM "/usr/local/share/tsung/tsung-1.0.dtd">
<tsung loglevel="notice" version="1.0">
<clients>
<client host="localhost" use_controller_vm="true"></client>
</clients>
<!-- Server side setup -->
<servers>
<server host="127.0.0.1" port="5222" type="tcp"></server>
</servers>
<load>
<arrivalphase phase="1" duration="1" unit="minute">
<users maxnumber="100" interarrival="1" unit="second"></users>
</arrivalphase>
<user session="xmpp-connection" start_time="1" unit="second"></user>
</load>
<!-- JABBER parameters -->
<!-- to synchronise users, use a global acknoledgement -->
<options>
<option type="ts_jabber" name="global_number" value="100"></option>
<option type="ts_jabber" name="userid_max" value="200000"></option>
<option type="ts_jabber" name="domain" value="example.com"></option>
<option type="ts_jabber" name="username" value="tsung_user"></option>
<option type="ts_jabber" name="passwd" value="tsung_pwd"></option>
</options>
<sessions>
<session probability="100" name="jabber-example" type="ts_jabber">
<request> <jabber type="connect" ack="local"></jabber> </request>
<thinktime value="2"></thinktime>
<transaction name="authenticate">
<request> <jabber type="auth_sasl" ack="local"></jabber> </request>
<request> <jabber type="connect" ack="local"></jabber> </request>
<request> <jabber type="auth_sasl_bind" ack="local" ></jabber></request>
<request> <jabber type="auth_sasl_session" ack="local" ></jabber></request>
<request> <jabber type="presence:initial" ack="no_ack"/> </request>
</transaction>
<thinktime value="30"></thinktime>
<transaction name="online">
<request> <jabber type="chat" ack="no_ack" size="4000" destination="online"/></request>
</transaction>
<transaction name="close">
<request> <jabber type="close" ack="local"></jabber> </request>
</transaction>
</session>
</sessions>
</tsung>
Following is tsung.log
# stats: dump at 1483683039
stats: users 1 4
stats: {freemem,"tsung_controller#centos"} 1 1456.01953125 0.0 1456.5390625 1455.87109375 1456.1263020833333 3
stats: {load,"tsung_controller#centos"} 1 0.01171875 0.0 0.01953125 0.01171875 0.014322916666666666 3
stats: {cpu,"tsung_controller#centos"} 1 2.3069207622868606 0.0 2.4975024975024978 1.1518372449915872 1.9846496536436529 3
stats: session 7 2042.459681919643 0.5394376539819091 2049.197998046875 2041.028076171875 2041.9925944010417 27
stats: users_count 8 35
stats: finish_users_count 7 34
stats: request 40 1.45291748046875 0.21618170915409465 4.088134765625 0.952880859375 1.3667364921278626 131
stats: connect 40 0.643145751953125 0.29426544797099324 2.958984375 0.256103515625 0.6991087935353053 131
stats: page 8 1.55010986328125 0.21899365581343963 4.088134765625 0.952880859375 1.4904966001157407 27
stats: tr_authenticate 8 38.19097900390625 0.8066643325794721 39.382080078125 37.134033203125 37.7615966796875 26
stats: size_rcv 11846 50623
stats: size_sent 4760 20286
stats: connected 0 0
stats: error_connection_closed 24 102
stats: error_abort_max_send_retries 8 34
tsung_controller.log
=INFO REPORT==== 6-Jan-2017::06:11:01 ===
ts_client:(5:<0.218.0>) connection close while sending message!
=INFO REPORT==== 6-Jan-2017::06:11:01 ===
ts_client:(5:<0.218.0>) Server must have closed connection upon us, waiting 10 msec
=INFO REPORT==== 6-Jan-2017::06:11:01 ===
ts_client:(5:<0.218.0>) connection close while sending message!
=INFO REPORT==== 6-Jan-2017::06:11:01 ===
ts_client:(5:<0.218.0>) Server must have closed connection upon us, waiting 10 msec
=INFO REPORT==== 6-Jan-2017::06:11:01 ===
ts_client:(5:<0.218.0>) connection close while sending message!
=INFO REPORT==== 6-Jan-2017::06:11:01 ===
ts_client:(5:<0.218.0>) Server must have closed connection upon us, waiting 10 msec
=INFO REPORT==== 6-Jan-2017::06:11:01 ===
ts_client:(3:<0.218.0>) EXIT Error: Unable to send data, max_retries reached; reason: {error,
closed}
=INFO REPORT==== 6-Jan-2017::06:11:01 ===
ts_client:(5:<0.218.0>) Pending transactions: [{tr_authenticate,
{1483,683061,
201737}}], compute transaction time
You are running chat script and also I think the username & password used in the script is not registered one.
Please refer the below script for registration and then run the chat script.
<tsung loglevel="notice" dumptraffic="false" version="1.0">
<clients>
<client host="localhost" use_controller_vm="true"> </client>
</clients>
<servers>
<server host="127.0.0.1" port="5222" type="tcp"/>
</servers>
<!-- register 200000 users in less than 15 minutes -->
<load>
<arrivalphase phase="1" duration="15" unit="minute">
<users maxnumber="200000" interarrival="0.0025" unit="second"/>
</arrivalphase>
</load>
<options>
<option type="ts_jabber" name="global_number" value="5"/>
<option type="ts_jabber" name="userid_max" value="200000"/>
<option type="ts_jabber" name="domain" value="erlang-projects.org"/>
<option type="ts_jabber" name="username" value="tsung"/>
<option type="ts_jabber" name="passwd" value="tsung"/>
</options>
<sessions>
<session probability="100" name="jabber-example" type="ts_jabber">
<request>
<jabber type="connect" ack="local"/>
</request>
<request>
<match do="abort" when="match">error</match>
<jabber type="register" ack="local" id="new"/>
</request>
<request>
<jabber type="close" ack="local"/>
</request>
</session>
</sessions>
</tsung>
Note: You mentioned like "No using is registered when trying to run jabber_register.xml tsung -f file.xml start".
I suggest you to run for less users first and then move on to more users. Because client machine memory need to be increased on running heavy load.
Please let me know if you have any doubts.
<mx:FormItem label="Blood:" width="100%" >
<s:ComboBox id="blood" prompt="Blood Group" >
<s:dataProvider>
<mx:ArrayList>
<fx:String>B+ve</fx:String>
<fx:String>A+ve</fx:String>
<fx:String>O+ve</fx:String>
<fx:String>O-ve</fx:String>
<fx:String>A-ve</fx:String>
<fx:String>B-ve</fx:String>
</mx:ArrayList>
</s:dataProvider>
</s:ComboBox>
</mx:FormItem>
This my code. I want add blood group values to data grid.
public function adddetails():void{
if(txtname.text !=""&&txtdob.text != "")//)&&( txtEmpname !="" )&&( txtEmpphone !="")
{
ac.addItem({Name:txtname.text, DOB:txtdob.text,
Standard:txtstd.value,Gender:txtg.selectedItem,Blood:Bloodtype});
//Alert.show("Form Submitted!");
clearInputs();
}
}
<s:VGroup gap="2">
<mx:FormItem label="Gender" width="200" required="true">
<s:ComboBox id="txtg" width="100%" prompt="Select Gender">
<s:dataProvider>
<mx:ArrayList>
<fx:String>Male</fx:String>
<fx:String>Female</fx:String>
</mx:ArrayList>
</s:dataProvider>
</s:ComboBox>
</mx:FormItem>
<s:Label text="The selected item is: {txtg.selectedItem}"/>
</s:VGroup>
<?xml version="1.0"?>
<!DOCTYPE tsung SYSTEM "/usr/share/tsung/tsung-1.0.dtd">
<tsung loglevel="notice" version="1.0">
<clients>
<client host="localhost" use_controller_vm="true"></client>
</clients>
<servers>
<server host="localhost" port="5222" type="tcp"></server>
</servers>
<load>
<arrivalphase phase="1" duration="1" unit="minute">
<users maxnumber="100" interarrival="5" unit="second"></users>
</arrivalphase>
</load>
<options>
<option type="ts_jabber" name="global_number" value="100"></option>
<option type="ts_jabber" name="userid_max" value="100"></option>
<option type="ts_jabber" name="domain" value="localhost"></option>
<option type="ts_jabber" name="username" value="ram"></option>
<option type="ts_jabber" name="passwd" value="ram123"></option>
</options>
<sessions>
<session probability="100" name="jabber-example" type="ts_jabber">
<request> <jabber type="connect" ack="no_ack"></jabber> </request>
<thinktime value="2"></thinktime>
<transaction name="authenticate">
<request> <jabber type="auth_get" ack="global"></jabber></request>
<request> <jabber type="auth_set_plain" ack="local"></jabber></request>
</transaction>
<request>
<jabber type="presence:initial" ack="no_ack"></jabber></request>
<thinktime value="100"></thinktime>
<transaction name="close">
<request> <jabber type="close" ack="local"></jabber></request>
</transaction>
</session>
</sessions>
</tsung>
</tsung>
This is my tsung.xml file code after start tsung i got the log file in ejabberd.log:
I(<0.425.0>:ejabberd_listener:281) : (#Port<0.4419>) Accepted connection {{192,168,1,583},47237} -> {{192,168,1,583},5222}
=INFO REPORT==== 2014-01-09 18:51:41 ===
I(<0.425.0>:ejabberd_listener:281) : (#Port<0.4421>) Accepted connection {{192,168,1,583},42575} -> {{192,168,1,583},5222}
=INFO REPORT==== 2014-01-09 18:51:50 ===
I(<0.425.0>:ejabberd_listener:281) : (#Port<0.4423>) Accepted connection {{192,168,1,583},50031} -> {{192,168,1,583},5222}
=INFO REPORT==== 2014-01-09 18:52:01 ===
I(<0.425.0>:ejabberd_listener:281) : (#Port<0.4425>) Accepted connection {{192,168,1,583},51034} -> {{192,168,1,583},5222}
but i dinnot get my external authentication username in log file.
I met the same situation with you, you should change the following code in your tsung.xml.
change auth_get to auth_sasl
<transaction name="authenticate">
<request> <jabber type="auth_get" ack="global"></jabber></request>
<request> <jabber type="auth_set_plain" ack="local"></jabber></request>
</transaction>
my config file is as followed. I got help from
Tsung connected users are not shown
and http://tsung.erlang-projects.org/user_manual/conf-sessions.html
6.6.3.3. SASL Plain . Good luck for you!
<!DOCTYPE tsung SYSTEM "/usr/local/tsung/share/tsung/tsung-1.0.dtd">
<tsung loglevel="notice" version="1.0">
<clients>
<client host="localhost" use_controller_vm="true"></client>
</clients>
<!-- Server side setup -->
<servers>
<server host="192.168.133.111" port="5222" type="tcp"></server>
</servers>
<load>
<arrivalphase phase="1" duration="2" unit="minute">
<users interarrival="2" unit="second"></users>
</arrivalphase>
</load>
<options>
<option type="ts_jabber" name="global_number" value="100"></option>
<option type="ts_jabber" name="userid_max" value="100"></option>
<option type="ts_jabber" name="domain" value="192.168.133.111"></option>
<option type="ts_jabber" name="username" value="user"></option>
<option type="ts_jabber" name="passwd" value="pass"></option>
</options>
<sessions>
<session probability="100" name="jabber-example" type="ts_jabber">
<request> <jabber type="connect" ack="local"></jabber> </request>
<thinktime value="2"></thinktime>
<transaction name="authenticate">
<request> <jabber type="auth_sasl" ack="local"></jabber> </request>
<request> <jabber type="connect" ack="local"></jabber> </request>
<request> <jabber type="auth_sasl_bind" ack="local" ></jabber></request>
<request> <jabber type="auth_sasl_session" ack="local" ></jabber></request>
</transaction>
<thinktime value="30"></thinktime>
<transaction name="close">
<request> <jabber type="close" ack="local"></jabber> </request>
</transaction>
</session>
</sessions>
</tsung>
My config file is:
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE generatorConfiguration PUBLIC "-//mybatis.org//DTD MyBatis Generator Configuration 1.0//EN" "http://mybatis.org/dtd/mybatis-generator-config_1_0.dtd" >
<generatorConfiguration >
<context id="context1" >
<jdbcConnection driverClass="oracle.jdbc.driver.OracleDriver" connectionURL="jdbc:oracle:thin:#localhost:1521:xe" userId="system" password="system" ></jdbcConnection>
<javaModelGenerator targetPackage="pl.domain.model" targetProject="mailsender2" />
<sqlMapGenerator targetPackage="pl.domain.model" targetProject="mailsender2" ></sqlMapGenerator>
<javaClientGenerator targetPackage="???" targetProject="???" type="XMLMAPPER" />
<table schema="SYSTEM" tableName="user" domainObjectName="User" enableSelectByExample="false" enableDeleteByExample="false"
enableCountByExample="false" enableUpdateByExample="false" >
</table>
</context>
</generatorConfiguration>
How can I generate only simple select/update/insert/delete SQLs? whitout this below?
Mapper.xml
<insert id="insertSelective" parameterType="pl.domain.model.User" >
<!--
WARNING - #mbggenerated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Thu Apr 14 13:40:15 CEST 2011.
-->
insert into SYSTEM.USER
<trim prefix="(" suffix=")" suffixOverrides="," >
<if test="userId != null" >
USER_ID,
</if>
<if test="created != null" >
CREATED,
</if>
<if test="firstName != null" >
FIRST_NAME,
</if>
<if test="hash != null" >
HASH,
</if>
<if test="language != null" >
LANGUAGE,
</if>
<if test="lastName != null" >
LAST_NAME,
For supressing the comments, did you try this :
<commentGenerator>
<property name="suppressAllComments" value="true" />
</commentGenerator>
Also did you try this:
<table tableName="your_table_name_here" domainObjectName="domain_bject_name_here" enableSelectByExample="false" enableDeleteByExample="false" enableCountByExample="false" enableUpdateByExample="false" selectByExampleQueryId="false" selectByPrimaryKeyQueryId="false" modelType="flat">
</table>