How to get the last child node specific element value in xslt? - xslt-1.0

I have a xml as below
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<InsertConcurSAE_batch_req xmlns="http://ws.wso2.org/dataservice">
<InsertConcurSAE>
<constant>DETAIL</constant>
<batch_id>6</batch_id>
<batch_date>2012-08-13</batch_date>
<sequence_number>1</sequence_number>
<emp_id>8535</emp_id>
<last_name>Burson</last_name>
<first_name>Sherrie</first_name>
<group_id>US</group_id>
<employee_org_unit_1>30</employee_org_unit_1>
<employee_org_unit_2>80</employee_org_unit_2>
<employee_org_unit_3>500</employee_org_unit_3>
<employee_org_unit_4>G&A Function</employee_org_unit_4>
<report_id>4CDF6336F5C947E2A0F8</report_id>
<report_key>1</report_key>
<ledger>SEMTECH</ledger>
<reimburse_currency_alpha_ise>USD</reimburse_currency_alpha_ise>
<home_country>UNITED STATES</home_country>
<report_submit_date>2012-08-08</report_submit_date>
<report_user_defined_date>2012-08-01</report_user_defined_date>
<report_payment_processing_date>2012-08-10</report_payment_processing_date>
<report_name>August</report_name>
<report_image_required>Y</report_image_required>
<report_has_vat_entry>N</report_has_vat_entry>
<report_has_ta_entry>N</report_has_ta_entry>
<report_total_post_amount>314.4200</report_total_post_amount>
<report_total_approved_amount>314.4200</report_total_approved_amount>
<report_policy_name>Non VAT Expense Policy</report_policy_name>
<report_org_unit_1>30</report_org_unit_1>
<report_org_unit_2>99</report_org_unit_2>
<report_org_unit_3>500</report_org_unit_3>
<report_org_unit_4>G&A Function</report_org_unit_4>
<report_custom_1>G&A Function</report_custom_1>
<report_custom_15>US</report_custom_15>
<report_custom_16>8535</report_custom_16>
<report_custom_17>N02574</report_custom_17>
<report_custom_18>46</report_custom_18>
<report_custom_19>1402</report_custom_19>
<report_custom_20>BE1</report_custom_20>
<entry_id>1</entry_id>
<entry_transaction_type>REG</entry_transaction_type>
<expense_type>D-Business Meal with attendees</expense_type>
<entry_transaction_date>2012-07-31</entry_transaction_date>
<spend_currency_alpha_iso>USD</spend_currency_alpha_iso>
<currency_exchange_rate>1.0000</currency_exchange_rate>
<exchange_rate_direction>M</exchange_rate_direction>
<is_personal>N</is_personal>
<receipt_received>N</receipt_received>
<receipt_type>N</receipt_type>
<total_employee_attendee>7</total_employee_attendee>
<report_entry_custom_1>No</report_entry_custom_1>
<report_entry_custom_35>US</report_entry_custom_35>
<report_entry_custom_39>0.0000</report_entry_custom_39>
<report_entry_custom_40>90.9900</report_entry_custom_40>
<entry_transaction_amount>90.9900</entry_transaction_amount>
<entry_posted_amount>90.9900</entry_posted_amount>
<entry_approved_amount>90.9900</entry_approved_amount>
<entry_payment_code>CASH</entry_payment_code>
<entry_payment_code_name>Cash</entry_payment_code_name>
<entry_country>US</entry_country>
<entry_country_sub>US-CA</entry_country_sub>
<domestic_foreign>HOME</domestic_foreign>
<payer_pay_type>Company</payer_pay_type>
<payer_pay_code>Company/Employee Pseudo Payment Code</payer_pay_code>
<payee_pay_type>Employee</payee_pay_type>
<payee_pay_code>Company/Employee Pseudo Payment Code</payee_pay_code>
<account_code>70210</account_code>
<drcr>DR</drcr>
<journal_amount>+90.9900</journal_amount>
<journal_key>34</journal_key>
<allocation_alloc_key>1</allocation_alloc_key>
<allocation_percentage>100.0000</allocation_percentage>
<report_entry_total_tax_posted_amount>0.0000</report_entry_total_tax_posted_amount>
<net_tax_amount>90.9900</net_tax_amount>
<report_entry_total_reclaim_adjusted_amount>0.0000</report_entry_total_reclaim_adjusted_amount>
<net_adjusted_reclaim_amount>90.9900</net_adjusted_reclaim_amount>
<payment_type>Out of Pocket</payment_type>
</InsertConcurSAE>
<InsertConcurSAE>
<constant>DETAIL</constant>
<batch_id>6</batch_id>
<batch_date>2012-08-13</batch_date>
<sequence_number>2</sequence_number>
<emp_id>8535</emp_id>
<last_name>Burson</last_name>
<first_name>Sherrie</first_name>
<group_id>US</group_id>
<employee_org_unit_1>30</employee_org_unit_1>
<employee_org_unit_2>80</employee_org_unit_2>
<employee_org_unit_3>500</employee_org_unit_3>
<employee_org_unit_4>G&A Function</employee_org_unit_4>
<report_id>4CDF6336F5C947E2A0F8</report_id>
<report_key>1</report_key>
<ledger>SEMTECH</ledger>
<reimburse_currency_alpha_ise>USD</reimburse_currency_alpha_ise>
<home_country>UNITED STATES</home_country>
<report_submit_date>2012-08-08</report_submit_date>
<report_user_defined_date>2012-08-01</report_user_defined_date>
<report_payment_processing_date>2012-08-10</report_payment_processing_date>
<report_name>August</report_name>
<report_image_required>Y</report_image_required>
<report_has_vat_entry>N</report_has_vat_entry>
<report_has_ta_entry>N</report_has_ta_entry>
<report_total_post_amount>314.4200</report_total_post_amount>
<report_total_approved_amount>314.4200</report_total_approved_amount>
<report_policy_name>Non VAT Expense Policy</report_policy_name>
<report_org_unit_1>30</report_org_unit_1>
<report_org_unit_2>99</report_org_unit_2>
<report_org_unit_3>500</report_org_unit_3>
<report_org_unit_4>G&A Function</report_org_unit_4>
<report_custom_1>G&A Function</report_custom_1>
<report_custom_15>US</report_custom_15>
<report_custom_16>8535</report_custom_16>
<report_custom_17>N02574</report_custom_17>
<report_custom_18>46</report_custom_18>
<report_custom_19>1402</report_custom_19>
<report_custom_20>BE1</report_custom_20>
<entry_id>5</entry_id>
<entry_transaction_type>REG</entry_transaction_type>
<expense_type>D-Business Meal with attendees</expense_type>
<entry_transaction_date>2012-08-02</entry_transaction_date>
<spend_currency_alpha_iso>USD</spend_currency_alpha_iso>
<currency_exchange_rate>1.0000</currency_exchange_rate>
<exchange_rate_direction>M</exchange_rate_direction>
<is_personal>N</is_personal>
<receipt_received>N</receipt_received>
<receipt_type>N</receipt_type>
<total_employee_attendee>9</total_employee_attendee>
<report_entry_custom_1>No</report_entry_custom_1>
<report_entry_custom_35>US</report_entry_custom_35>
<report_entry_custom_39>0.0000</report_entry_custom_39>
<report_entry_custom_40>138.6700</report_entry_custom_40>
<entry_transaction_amount>138.6700</entry_transaction_amount>
<entry_posted_amount>138.6700</entry_posted_amount>
<entry_approved_amount>138.6700</entry_approved_amount>
<entry_payment_code>CASH</entry_payment_code>
<entry_payment_code_name>Cash</entry_payment_code_name>
<entry_country>US</entry_country>
<entry_country_sub>US-CA</entry_country_sub>
<domestic_foreign>HOME</domestic_foreign>
<payer_pay_type>Company</payer_pay_type>
<payer_pay_code>Company/Employee Pseudo Payment Code</payer_pay_code>
<payee_pay_type>Employee</payee_pay_type>
<payee_pay_code>Company/Employee Pseudo Payment Code</payee_pay_code>
<account_code>70210</account_code>
<drcr>DR</drcr>
<journal_amount>+138.6700</journal_amount>
<journal_key>35</journal_key>
<allocation_alloc_key>5</allocation_alloc_key>
<allocation_percentage>100.0000</allocation_percentage>
<report_entry_total_tax_posted_amount>0.0000</report_entry_total_tax_posted_amount>
<net_tax_amount>138.6700</net_tax_amount>
<report_entry_total_reclaim_adjusted_amount>0.0000</report_entry_total_reclaim_adjusted_amount>
<net_adjusted_reclaim_amount>138.6700</net_adjusted_reclaim_amount>
<payment_type>Out of Pocket</payment_type>
</InsertConcurSAE>
<InsertConcurSAE>
<constant>DETAIL</constant>
<batch_id>6</batch_id>
<batch_date>2012-08-13</batch_date>
<sequence_number>3</sequence_number>
<emp_id>8535</emp_id>
<last_name>Burson</last_name>
<first_name>Sherrie</first_name>
<group_id>US</group_id>
<employee_org_unit_1>30</employee_org_unit_1>
<employee_org_unit_2>80</employee_org_unit_2>
<employee_org_unit_3>500</employee_org_unit_3>
<employee_org_unit_4>G&A Function</employee_org_unit_4>
<report_id>4CDF6336F5C947E2A0F8</report_id>
<report_key>1</report_key>
<ledger>SEMTECH</ledger>
<reimburse_currency_alpha_ise>USD</reimburse_currency_alpha_ise>
<home_country>UNITED STATES</home_country>
<report_submit_date>2012-08-08</report_submit_date>
<report_user_defined_date>2012-08-01</report_user_defined_date>
<report_payment_processing_date>2012-08-10</report_payment_processing_date>
<report_name>August</report_name>
<report_image_required>Y</report_image_required>
<report_has_vat_entry>N</report_has_vat_entry>
<report_has_ta_entry>N</report_has_ta_entry>
<report_total_post_amount>314.4200</report_total_post_amount>
<report_total_approved_amount>314.4200</report_total_approved_amount>
<report_policy_name>Non VAT Expense Policy</report_policy_name>
<report_org_unit_1>30</report_org_unit_1>
<report_org_unit_2>99</report_org_unit_2>
<report_org_unit_3>500</report_org_unit_3>
<report_org_unit_4>G&A Function</report_org_unit_4>
<report_custom_1>G&A Function</report_custom_1>
<report_custom_15>US</report_custom_15>
<report_custom_16>8535</report_custom_16>
<report_custom_17>N02574</report_custom_17>
<report_custom_18>46</report_custom_18>
<report_custom_19>1402</report_custom_19>
<report_custom_20>BE1</report_custom_20>
<entry_id>6</entry_id>
<entry_transaction_type>REG</entry_transaction_type>
<expense_type>D-Business Meal with attendees</expense_type>
<entry_transaction_date>2012-08-03</entry_transaction_date>
<spend_currency_alpha_iso>USD</spend_currency_alpha_iso>
<currency_exchange_rate>1.0000</currency_exchange_rate>
<exchange_rate_direction>M</exchange_rate_direction>
<is_personal>N</is_personal>
<receipt_received>N</receipt_received>
<receipt_type>N</receipt_type>
<total_employee_attendee>4</total_employee_attendee>
<report_entry_custom_1>No</report_entry_custom_1>
<report_entry_custom_35>US</report_entry_custom_35>
<report_entry_custom_39>0.0000</report_entry_custom_39>
<report_entry_custom_40>26.9500</report_entry_custom_40>
<entry_transaction_amount>26.9500</entry_transaction_amount>
<entry_posted_amount>26.9500</entry_posted_amount>
<entry_approved_amount>26.9500</entry_approved_amount>
<entry_payment_code>CASH</entry_payment_code>
<entry_payment_code_name>Cash</entry_payment_code_name>
<entry_country>US</entry_country>
<entry_country_sub>US-CA</entry_country_sub>
<domestic_foreign>HOME</domestic_foreign>
<payer_pay_type>Company</payer_pay_type>
<payer_pay_code>Company/Employee Pseudo Payment Code</payer_pay_code>
<payee_pay_type>Employee</payee_pay_type>
<payee_pay_code>Company/Employee Pseudo Payment Code</payee_pay_code>
<account_code>70210</account_code>
<drcr>DR</drcr>
<journal_amount>+26.9500</journal_amount>
<journal_key>36</journal_key>
<allocation_alloc_key>6</allocation_alloc_key>
<allocation_percentage>100.0000</allocation_percentage>
<report_entry_total_tax_posted_amount>0.0000</report_entry_total_tax_posted_amount>
<net_tax_amount>26.9500</net_tax_amount>
<report_entry_total_reclaim_adjusted_amount>0.0000</report_entry_total_reclaim_adjusted_amount>
<net_adjusted_reclaim_amount>26.9500</net_adjusted_reclaim_amount>
<payment_type>Out of Pocket</payment_type>
</InsertConcurSAE>
<InsertConcurSAE>
<constant>DETAIL</constant>
<batch_id>6</batch_id>
<batch_date>2012-08-13</batch_date>
<sequence_number>4</sequence_number>
<emp_id>8535</emp_id>
<last_name>Burson</last_name>
<first_name>Sherrie</first_name>
<group_id>US</group_id>
<employee_org_unit_1>30</employee_org_unit_1>
<employee_org_unit_2>80</employee_org_unit_2>
<employee_org_unit_3>500</employee_org_unit_3>
<employee_org_unit_4>G&A Function</employee_org_unit_4>
<report_id>4CDF6336F5C947E2A0F8</report_id>
<report_key>1</report_key>
<ledger>SEMTECH</ledger>
<reimburse_currency_alpha_ise>USD</reimburse_currency_alpha_ise>
<home_country>UNITED STATES</home_country>
<report_submit_date>2012-08-08</report_submit_date>
<report_user_defined_date>2012-08-01</report_user_defined_date>
<report_payment_processing_date>2012-08-10</report_payment_processing_date>
<report_name>August</report_name>
<report_image_required>Y</report_image_required>
<report_has_vat_entry>N</report_has_vat_entry>
<report_has_ta_entry>N</report_has_ta_entry>
<report_total_post_amount>314.4200</report_total_post_amount>
<report_total_approved_amount>314.4200</report_total_approved_amount>
<report_policy_name>Non VAT Expense Policy</report_policy_name>
<report_org_unit_1>30</report_org_unit_1>
<report_org_unit_2>99</report_org_unit_2>
<report_org_unit_3>500</report_org_unit_3>
<report_org_unit_4>G&A Function</report_org_unit_4>
<report_custom_1>G&A Function</report_custom_1>
<report_custom_15>US</report_custom_15>
<report_custom_16>8535</report_custom_16>
<report_custom_17>N02574</report_custom_17>
<report_custom_18>46</report_custom_18>
<report_custom_19>1402</report_custom_19>
<report_custom_20>BE1</report_custom_20>
<entry_id>7</entry_id>
<entry_transaction_type>REG</entry_transaction_type>
<expense_type>D-Business Meal with attendees</expense_type>
<entry_transaction_date>2012-08-07</entry_transaction_date>
<spend_currency_alpha_iso>USD</spend_currency_alpha_iso>
<currency_exchange_rate>1.0000</currency_exchange_rate>
<exchange_rate_direction>M</exchange_rate_direction>
<is_personal>N</is_personal>
<receipt_received>N</receipt_received>
<receipt_type>N</receipt_type>
<total_employee_attendee>6</total_employee_attendee>
<report_entry_custom_1>No</report_entry_custom_1>
<report_entry_custom_35>US</report_entry_custom_35>
<report_entry_custom_39>0.0000</report_entry_custom_39>
<report_entry_custom_40>57.8100</report_entry_custom_40>
<entry_transaction_amount>57.8100</entry_transaction_amount>
<entry_posted_amount>57.8100</entry_posted_amount>
<entry_approved_amount>57.8100</entry_approved_amount>
<entry_payment_code>CASH</entry_payment_code>
<entry_payment_code_name>Cash</entry_payment_code_name>
<entry_country>US</entry_country>
<entry_country_sub>US-CA</entry_country_sub>
<domestic_foreign>HOME</domestic_foreign>
<payer_pay_type>Company</payer_pay_type>
<payer_pay_code>Company/Employee Pseudo Payment Code</payer_pay_code>
<payee_pay_type>Employee</payee_pay_type>
<payee_pay_code>Company/Employee Pseudo Payment Code</payee_pay_code>
<account_code>70210</account_code>
<drcr>DR</drcr>
<journal_amount>+57.8100</journal_amount>
<journal_key>37</journal_key>
<allocation_alloc_key>7</allocation_alloc_key>
<allocation_percentage>100.0000</allocation_percentage>
<report_entry_total_tax_posted_amount>0.0000</report_entry_total_tax_posted_amount>
<net_tax_amount>57.8100</net_tax_amount>
<report_entry_total_reclaim_adjusted_amount>0.0000</report_entry_total_reclaim_adjusted_amount>
<net_adjusted_reclaim_amount>57.8100</net_adjusted_reclaim_amount>
<payment_type>Out of Pocket</payment_type>
</InsertConcurSAE>
</InsertConcurSAE_batch_req>
</soapenv:Body>
</soapenv:Envelope>
I want to get the last sequence_number i.e., 4.
I have the following xslt to retrieve but it doesnt show any value.
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:dat="http://ws.wso2.org/dataservice" version="1.0">
<xsl:template match="/">
<ns:text xmlns:ns="http://ws.apache.org/commons/ns/payload"><xsl:text>
</xsl:text>
<xsl:for-each select="//InsertConcurSAE[last()]">
<xsl:variable name="sequence_number" select="//dat:sequence_number" />
<xsl:value-of select="$sequence_number" />
</xsl:for-each>
</ns:text>
</xsl:template>
</xsl:stylesheet>
please help me out to fix this issue. If I place
<xsl:for-each select="*">
instead of
<xsl:for-each select="//InsertConcurSAE[last()]">
then it only results with 1.I need to retrieve the last sequence_number.

Use:
/*/*/*/dat:InsertConcurSAE[last()]/dat:sequence_number/text()
Here is a complete verification:
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:dat="http://ws.wso2.org/dataservice">
<xsl:output omit-xml-declaration="yes" indent="yes"/>
<xsl:template match="/">
<xsl:copy-of select=
"/*/*/*/dat:InsertConcurSAE[last()]
/dat:sequence_number/text()"/>
</xsl:template>
</xsl:stylesheet>
When this transformation is applied on the provided XML document:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<InsertConcurSAE_batch_req xmlns="http://ws.wso2.org/dataservice">
<InsertConcurSAE>
<constant>DETAIL</constant>
<batch_id>6</batch_id>
<batch_date>2012-08-13</batch_date>
<sequence_number>1</sequence_number>
<emp_id>8535</emp_id>
<last_name>Burson</last_name>
<first_name>Sherrie</first_name>
<group_id>US</group_id>
<employee_org_unit_1>30</employee_org_unit_1>
<employee_org_unit_2>80</employee_org_unit_2>
<employee_org_unit_3>500</employee_org_unit_3>
<employee_org_unit_4>G&A Function</employee_org_unit_4>
<report_id>4CDF6336F5C947E2A0F8</report_id>
<report_key>1</report_key>
<ledger>SEMTECH</ledger>
<reimburse_currency_alpha_ise>USD</reimburse_currency_alpha_ise>
<home_country>UNITED STATES</home_country>
<report_submit_date>2012-08-08</report_submit_date>
<report_user_defined_date>2012-08-01</report_user_defined_date>
<report_payment_processing_date>2012-08-10</report_payment_processing_date>
<report_name>August</report_name>
<report_image_required>Y</report_image_required>
<report_has_vat_entry>N</report_has_vat_entry>
<report_has_ta_entry>N</report_has_ta_entry>
<report_total_post_amount>314.4200</report_total_post_amount>
<report_total_approved_amount>314.4200</report_total_approved_amount>
<report_policy_name>Non VAT Expense Policy</report_policy_name>
<report_org_unit_1>30</report_org_unit_1>
<report_org_unit_2>99</report_org_unit_2>
<report_org_unit_3>500</report_org_unit_3>
<report_org_unit_4>G&A Function</report_org_unit_4>
<report_custom_1>G&A Function</report_custom_1>
<report_custom_15>US</report_custom_15>
<report_custom_16>8535</report_custom_16>
<report_custom_17>N02574</report_custom_17>
<report_custom_18>46</report_custom_18>
<report_custom_19>1402</report_custom_19>
<report_custom_20>BE1</report_custom_20>
<entry_id>1</entry_id>
<entry_transaction_type>REG</entry_transaction_type>
<expense_type>D-Business Meal with attendees</expense_type>
<entry_transaction_date>2012-07-31</entry_transaction_date>
<spend_currency_alpha_iso>USD</spend_currency_alpha_iso>
<currency_exchange_rate>1.0000</currency_exchange_rate>
<exchange_rate_direction>M</exchange_rate_direction>
<is_personal>N</is_personal>
<receipt_received>N</receipt_received>
<receipt_type>N</receipt_type>
<total_employee_attendee>7</total_employee_attendee>
<report_entry_custom_1>No</report_entry_custom_1>
<report_entry_custom_35>US</report_entry_custom_35>
<report_entry_custom_39>0.0000</report_entry_custom_39>
<report_entry_custom_40>90.9900</report_entry_custom_40>
<entry_transaction_amount>90.9900</entry_transaction_amount>
<entry_posted_amount>90.9900</entry_posted_amount>
<entry_approved_amount>90.9900</entry_approved_amount>
<entry_payment_code>CASH</entry_payment_code>
<entry_payment_code_name>Cash</entry_payment_code_name>
<entry_country>US</entry_country>
<entry_country_sub>US-CA</entry_country_sub>
<domestic_foreign>HOME</domestic_foreign>
<payer_pay_type>Company</payer_pay_type>
<payer_pay_code>Company/Employee Pseudo Payment Code</payer_pay_code>
<payee_pay_type>Employee</payee_pay_type>
<payee_pay_code>Company/Employee Pseudo Payment Code</payee_pay_code>
<account_code>70210</account_code>
<drcr>DR</drcr>
<journal_amount>+90.9900</journal_amount>
<journal_key>34</journal_key>
<allocation_alloc_key>1</allocation_alloc_key>
<allocation_percentage>100.0000</allocation_percentage>
<report_entry_total_tax_posted_amount>0.0000</report_entry_total_tax_posted_amount>
<net_tax_amount>90.9900</net_tax_amount>
<report_entry_total_reclaim_adjusted_amount>0.0000</report_entry_total_reclaim_adjusted_amount>
<net_adjusted_reclaim_amount>90.9900</net_adjusted_reclaim_amount>
<payment_type>Out of Pocket</payment_type>
</InsertConcurSAE>
<InsertConcurSAE>
<constant>DETAIL</constant>
<batch_id>6</batch_id>
<batch_date>2012-08-13</batch_date>
<sequence_number>2</sequence_number>
<emp_id>8535</emp_id>
<last_name>Burson</last_name>
<first_name>Sherrie</first_name>
<group_id>US</group_id>
<employee_org_unit_1>30</employee_org_unit_1>
<employee_org_unit_2>80</employee_org_unit_2>
<employee_org_unit_3>500</employee_org_unit_3>
<employee_org_unit_4>G&A Function</employee_org_unit_4>
<report_id>4CDF6336F5C947E2A0F8</report_id>
<report_key>1</report_key>
<ledger>SEMTECH</ledger>
<reimburse_currency_alpha_ise>USD</reimburse_currency_alpha_ise>
<home_country>UNITED STATES</home_country>
<report_submit_date>2012-08-08</report_submit_date>
<report_user_defined_date>2012-08-01</report_user_defined_date>
<report_payment_processing_date>2012-08-10</report_payment_processing_date>
<report_name>August</report_name>
<report_image_required>Y</report_image_required>
<report_has_vat_entry>N</report_has_vat_entry>
<report_has_ta_entry>N</report_has_ta_entry>
<report_total_post_amount>314.4200</report_total_post_amount>
<report_total_approved_amount>314.4200</report_total_approved_amount>
<report_policy_name>Non VAT Expense Policy</report_policy_name>
<report_org_unit_1>30</report_org_unit_1>
<report_org_unit_2>99</report_org_unit_2>
<report_org_unit_3>500</report_org_unit_3>
<report_org_unit_4>G&A Function</report_org_unit_4>
<report_custom_1>G&A Function</report_custom_1>
<report_custom_15>US</report_custom_15>
<report_custom_16>8535</report_custom_16>
<report_custom_17>N02574</report_custom_17>
<report_custom_18>46</report_custom_18>
<report_custom_19>1402</report_custom_19>
<report_custom_20>BE1</report_custom_20>
<entry_id>5</entry_id>
<entry_transaction_type>REG</entry_transaction_type>
<expense_type>D-Business Meal with attendees</expense_type>
<entry_transaction_date>2012-08-02</entry_transaction_date>
<spend_currency_alpha_iso>USD</spend_currency_alpha_iso>
<currency_exchange_rate>1.0000</currency_exchange_rate>
<exchange_rate_direction>M</exchange_rate_direction>
<is_personal>N</is_personal>
<receipt_received>N</receipt_received>
<receipt_type>N</receipt_type>
<total_employee_attendee>9</total_employee_attendee>
<report_entry_custom_1>No</report_entry_custom_1>
<report_entry_custom_35>US</report_entry_custom_35>
<report_entry_custom_39>0.0000</report_entry_custom_39>
<report_entry_custom_40>138.6700</report_entry_custom_40>
<entry_transaction_amount>138.6700</entry_transaction_amount>
<entry_posted_amount>138.6700</entry_posted_amount>
<entry_approved_amount>138.6700</entry_approved_amount>
<entry_payment_code>CASH</entry_payment_code>
<entry_payment_code_name>Cash</entry_payment_code_name>
<entry_country>US</entry_country>
<entry_country_sub>US-CA</entry_country_sub>
<domestic_foreign>HOME</domestic_foreign>
<payer_pay_type>Company</payer_pay_type>
<payer_pay_code>Company/Employee Pseudo Payment Code</payer_pay_code>
<payee_pay_type>Employee</payee_pay_type>
<payee_pay_code>Company/Employee Pseudo Payment Code</payee_pay_code>
<account_code>70210</account_code>
<drcr>DR</drcr>
<journal_amount>+138.6700</journal_amount>
<journal_key>35</journal_key>
<allocation_alloc_key>5</allocation_alloc_key>
<allocation_percentage>100.0000</allocation_percentage>
<report_entry_total_tax_posted_amount>0.0000</report_entry_total_tax_posted_amount>
<net_tax_amount>138.6700</net_tax_amount>
<report_entry_total_reclaim_adjusted_amount>0.0000</report_entry_total_reclaim_adjusted_amount>
<net_adjusted_reclaim_amount>138.6700</net_adjusted_reclaim_amount>
<payment_type>Out of Pocket</payment_type>
</InsertConcurSAE>
<InsertConcurSAE>
<constant>DETAIL</constant>
<batch_id>6</batch_id>
<batch_date>2012-08-13</batch_date>
<sequence_number>3</sequence_number>
<emp_id>8535</emp_id>
<last_name>Burson</last_name>
<first_name>Sherrie</first_name>
<group_id>US</group_id>
<employee_org_unit_1>30</employee_org_unit_1>
<employee_org_unit_2>80</employee_org_unit_2>
<employee_org_unit_3>500</employee_org_unit_3>
<employee_org_unit_4>G&A Function</employee_org_unit_4>
<report_id>4CDF6336F5C947E2A0F8</report_id>
<report_key>1</report_key>
<ledger>SEMTECH</ledger>
<reimburse_currency_alpha_ise>USD</reimburse_currency_alpha_ise>
<home_country>UNITED STATES</home_country>
<report_submit_date>2012-08-08</report_submit_date>
<report_user_defined_date>2012-08-01</report_user_defined_date>
<report_payment_processing_date>2012-08-10</report_payment_processing_date>
<report_name>August</report_name>
<report_image_required>Y</report_image_required>
<report_has_vat_entry>N</report_has_vat_entry>
<report_has_ta_entry>N</report_has_ta_entry>
<report_total_post_amount>314.4200</report_total_post_amount>
<report_total_approved_amount>314.4200</report_total_approved_amount>
<report_policy_name>Non VAT Expense Policy</report_policy_name>
<report_org_unit_1>30</report_org_unit_1>
<report_org_unit_2>99</report_org_unit_2>
<report_org_unit_3>500</report_org_unit_3>
<report_org_unit_4>G&A Function</report_org_unit_4>
<report_custom_1>G&A Function</report_custom_1>
<report_custom_15>US</report_custom_15>
<report_custom_16>8535</report_custom_16>
<report_custom_17>N02574</report_custom_17>
<report_custom_18>46</report_custom_18>
<report_custom_19>1402</report_custom_19>
<report_custom_20>BE1</report_custom_20>
<entry_id>6</entry_id>
<entry_transaction_type>REG</entry_transaction_type>
<expense_type>D-Business Meal with attendees</expense_type>
<entry_transaction_date>2012-08-03</entry_transaction_date>
<spend_currency_alpha_iso>USD</spend_currency_alpha_iso>
<currency_exchange_rate>1.0000</currency_exchange_rate>
<exchange_rate_direction>M</exchange_rate_direction>
<is_personal>N</is_personal>
<receipt_received>N</receipt_received>
<receipt_type>N</receipt_type>
<total_employee_attendee>4</total_employee_attendee>
<report_entry_custom_1>No</report_entry_custom_1>
<report_entry_custom_35>US</report_entry_custom_35>
<report_entry_custom_39>0.0000</report_entry_custom_39>
<report_entry_custom_40>26.9500</report_entry_custom_40>
<entry_transaction_amount>26.9500</entry_transaction_amount>
<entry_posted_amount>26.9500</entry_posted_amount>
<entry_approved_amount>26.9500</entry_approved_amount>
<entry_payment_code>CASH</entry_payment_code>
<entry_payment_code_name>Cash</entry_payment_code_name>
<entry_country>US</entry_country>
<entry_country_sub>US-CA</entry_country_sub>
<domestic_foreign>HOME</domestic_foreign>
<payer_pay_type>Company</payer_pay_type>
<payer_pay_code>Company/Employee Pseudo Payment Code</payer_pay_code>
<payee_pay_type>Employee</payee_pay_type>
<payee_pay_code>Company/Employee Pseudo Payment Code</payee_pay_code>
<account_code>70210</account_code>
<drcr>DR</drcr>
<journal_amount>+26.9500</journal_amount>
<journal_key>36</journal_key>
<allocation_alloc_key>6</allocation_alloc_key>
<allocation_percentage>100.0000</allocation_percentage>
<report_entry_total_tax_posted_amount>0.0000</report_entry_total_tax_posted_amount>
<net_tax_amount>26.9500</net_tax_amount>
<report_entry_total_reclaim_adjusted_amount>0.0000</report_entry_total_reclaim_adjusted_amount>
<net_adjusted_reclaim_amount>26.9500</net_adjusted_reclaim_amount>
<payment_type>Out of Pocket</payment_type>
</InsertConcurSAE>
<InsertConcurSAE>
<constant>DETAIL</constant>
<batch_id>6</batch_id>
<batch_date>2012-08-13</batch_date>
<sequence_number>4</sequence_number>
<emp_id>8535</emp_id>
<last_name>Burson</last_name>
<first_name>Sherrie</first_name>
<group_id>US</group_id>
<employee_org_unit_1>30</employee_org_unit_1>
<employee_org_unit_2>80</employee_org_unit_2>
<employee_org_unit_3>500</employee_org_unit_3>
<employee_org_unit_4>G&A Function</employee_org_unit_4>
<report_id>4CDF6336F5C947E2A0F8</report_id>
<report_key>1</report_key>
<ledger>SEMTECH</ledger>
<reimburse_currency_alpha_ise>USD</reimburse_currency_alpha_ise>
<home_country>UNITED STATES</home_country>
<report_submit_date>2012-08-08</report_submit_date>
<report_user_defined_date>2012-08-01</report_user_defined_date>
<report_payment_processing_date>2012-08-10</report_payment_processing_date>
<report_name>August</report_name>
<report_image_required>Y</report_image_required>
<report_has_vat_entry>N</report_has_vat_entry>
<report_has_ta_entry>N</report_has_ta_entry>
<report_total_post_amount>314.4200</report_total_post_amount>
<report_total_approved_amount>314.4200</report_total_approved_amount>
<report_policy_name>Non VAT Expense Policy</report_policy_name>
<report_org_unit_1>30</report_org_unit_1>
<report_org_unit_2>99</report_org_unit_2>
<report_org_unit_3>500</report_org_unit_3>
<report_org_unit_4>G&A Function</report_org_unit_4>
<report_custom_1>G&A Function</report_custom_1>
<report_custom_15>US</report_custom_15>
<report_custom_16>8535</report_custom_16>
<report_custom_17>N02574</report_custom_17>
<report_custom_18>46</report_custom_18>
<report_custom_19>1402</report_custom_19>
<report_custom_20>BE1</report_custom_20>
<entry_id>7</entry_id>
<entry_transaction_type>REG</entry_transaction_type>
<expense_type>D-Business Meal with attendees</expense_type>
<entry_transaction_date>2012-08-07</entry_transaction_date>
<spend_currency_alpha_iso>USD</spend_currency_alpha_iso>
<currency_exchange_rate>1.0000</currency_exchange_rate>
<exchange_rate_direction>M</exchange_rate_direction>
<is_personal>N</is_personal>
<receipt_received>N</receipt_received>
<receipt_type>N</receipt_type>
<total_employee_attendee>6</total_employee_attendee>
<report_entry_custom_1>No</report_entry_custom_1>
<report_entry_custom_35>US</report_entry_custom_35>
<report_entry_custom_39>0.0000</report_entry_custom_39>
<report_entry_custom_40>57.8100</report_entry_custom_40>
<entry_transaction_amount>57.8100</entry_transaction_amount>
<entry_posted_amount>57.8100</entry_posted_amount>
<entry_approved_amount>57.8100</entry_approved_amount>
<entry_payment_code>CASH</entry_payment_code>
<entry_payment_code_name>Cash</entry_payment_code_name>
<entry_country>US</entry_country>
<entry_country_sub>US-CA</entry_country_sub>
<domestic_foreign>HOME</domestic_foreign>
<payer_pay_type>Company</payer_pay_type>
<payer_pay_code>Company/Employee Pseudo Payment Code</payer_pay_code>
<payee_pay_type>Employee</payee_pay_type>
<payee_pay_code>Company/Employee Pseudo Payment Code</payee_pay_code>
<account_code>70210</account_code>
<drcr>DR</drcr>
<journal_amount>+57.8100</journal_amount>
<journal_key>37</journal_key>
<allocation_alloc_key>7</allocation_alloc_key>
<allocation_percentage>100.0000</allocation_percentage>
<report_entry_total_tax_posted_amount>0.0000</report_entry_total_tax_posted_amount>
<net_tax_amount>57.8100</net_tax_amount>
<report_entry_total_reclaim_adjusted_amount>0.0000</report_entry_total_reclaim_adjusted_amount>
<net_adjusted_reclaim_amount>57.8100</net_adjusted_reclaim_amount>
<payment_type>Out of Pocket</payment_type>
</InsertConcurSAE>
</InsertConcurSAE_batch_req>
</soapenv:Body>
</soapenv:Envelope>
the XPath expression is evaluated and the result of this evaluation is copied to the output:
4

Related

libreoffice convert docx to odt lost bookmark

I use the following command converting a docx to odt, one of the bookmarks get lost.
"libreoffice --headless --convert-to odt output.docx --outdir ./"
----- output.docx
------- following bookmarks was created by python-docx
<w:p w14:paraId="5D4F37CC" w14:textId="1FE5A142" w:rsidR="007E1B42" w:rsidRDefault="00356283" w:rsidP="00356283">
<w:pPr>
<w:pStyle w:val="Heading1"/>
</w:pPr>
<w:r>
<w:t>a</w:t>
</w:r>
<w:bookmarkStart w:id="0" w:name="xxbookmark4"/>
<w:bookmarkEnd w:id="0"/>
</w:p>
<w:p w14:paraId="34895FBC" w14:textId="518CEA5B" w:rsidR="007E1B42" w:rsidRDefault="00CF7EC0" w:rsidP="00CF7EC0">
<w:pPr>
<w:pStyle w:val="Heading2"/>
</w:pPr>
<w:r>
<w:t>b</w:t>
</w:r>
<w:bookmarkStart w:id="0" w:name="xxbookmark5"/>
<w:bookmarkEnd w:id="0"/>
</w:p>
...
<w:p>
<w:pPr>
<w:pStyle w:val="Heading1"/>
</w:pPr>
<w:r>
<w:t>Index1</w:t>
</w:r>
<w:bookmarkStart w:id="0" w:name="xxbookmark34"/>
<w:bookmarkEnd w:id="0"/>
</w:p>
<w:p>
<w:r>
<w:t>--a......................................................</w:t>
</w:r>
<w:hyperlink w:anchor="xxbookmark4" w:history="1">
<w:r>
<w:rPr>
<w:rStyle w:val="Hyperlink"/>
</w:rPr>
<w:t>AAA</w:t>
</w:r>
</w:hyperlink>
</w:p>
<w:p>
<w:r>
<w:t>----b................................................</w:t>
</w:r>
<w:hyperlink w:anchor="xxbookmark5" w:history="1">
<w:r>
<w:rPr>
<w:rStyle w:val="Hyperlink"/>
</w:rPr>
<w:t>AAA</w:t>
</w:r>
</w:hyperlink>
</w:p>
<w:p>
<w:r>
<w:t>--Index1.......................................</w:t>
</w:r>
<w:hyperlink w:anchor="xxbookmark34" w:history="1">
<w:r>
<w:rPr>
<w:rStyle w:val="Hyperlink"/>
</w:rPr>
<w:t>AAA</w:t>
</w:r>
</w:hyperlink>
</w:p>
<w:p/>
---- output.odt
<text:h text:style-name="Heading_20_1" text:outline-level="1">
a
<text:bookmark text:name="xxbookmark4"/>
</text:h>
<text:h text:style-name="Heading_20_2" text:outline-level="2">
b
<text:bookmark text:name="xxbookmark5"/>
</text:h>
...
<text:h text:style-name="P1" text:outline-level="1">Index1</text:h>
# issue here: xxbookmark34 is lost.
Index1 was created using python-docx, the other two headings are just edit manually in Word.
Anybody can help, or give some hint.
I compared the xml file in docx and can not find any different between the "Index1" and other two.

Parsing XML by OpenXML with multiple Parent nodes with multiple child nodes

I have the following XML:
<Report>
<Accounts>
<Account>
<Currency>USD</Currency>
<AccountBalance>45555</AccountBalance>
<Payments>
<PaymentData>
<PaymentCode>502</PaymentCode>
<PaymentAmount currCode="GBP">7000.00000000</PaymentAmount>
</PaymentData>
<PaymentData>
<PaymentCode>501</PaymentCode>
<PaymentAmount currCode="USD">5000.00000000</PaymentAmount>
</PaymentData>
</Payments>
</Account>
<Account>
<Currency>USD</Currency>
<AccountBalance>50000</AccountBalance>
<Payments>
<PaymentData>
<PaymentCode>501</PaymentCode>
<PaymentAmount currCode="USD">5000.00000000</PaymentAmount>
</PaymentData>
</Payments>
</Account>
</Accounts>
</Report>
My SQL Code is parsing this with the following code:
SELECT
[currCode] AS [Currency],
[AccountBalance] AS [AccountBalance],
[PaymentCode] AS [PaymentCode],
[PaymentCurrCode] AS [PaymentCurrCode],
[PaymentAmount] AS [PaymentAmount]
FROM OPENXML(#hDoc, 'Report/Accounts/Account',2)
WITH
(
[currCode] [nchar](3) 'currCode',
[AccountBalance] [decimal](18, 0) 'AccountBalance',
[PaymentCode] [nchar](10) 'Payments/PaymentData/PaymentCode',
[PaymentCurrCode] [nchar](3) 'Payments/PaymentData/PaymentAmount/#currCode',
[PaymentAmount] [decimal](18, 0) 'Payments/PaymentData/PaymentAmount'
)
I am getting the following result:
currCode | AccountBalance | PaymentCode | PaymentCurrCode | PaymentAmount
————————————————————————————————————————————————————————————————————————————————
USD | 45555 | 502 | GBP |7000.00000000
USD | 50000 | 501 | USD |5000.00000000
I am trying to get the multiple paymentdata and multiple account with the same openXml query. How Can is get all the data with the following result:
currCode | AccountBalance | PaymentCode | PaymentCurrCode | PaymentAmount
————————————————————————————————————————————————————————————————————————————————
USD | 45555 | 502 | GBP |7000.00000000
USD | 45555 | 501 | USD |5000.00000000
USD | 50000 | 501 | USD |5000.00000000
This is an up-to-date and state-of-the-art approach with XQuery/XPath methods. The result is the same, just faster and better to read:
DECLARE #XML XML=
'<Report>
<Accounts>
<Account>
<Currency>USD</Currency>
<AccountBalance>45555</AccountBalance>
<Payments>
<PaymentData>
<PaymentCode>502</PaymentCode>
<PaymentAmount currCode="GBP">7000.00000000</PaymentAmount>
</PaymentData>
<PaymentData>
<PaymentCode>501</PaymentCode>
<PaymentAmount currCode="USD">5000.00000000</PaymentAmount>
</PaymentData>
</Payments>
</Account>
<Account>
<Currency>USD</Currency>
<AccountBalance>50000</AccountBalance>
<Payments>
<PaymentData>
<PaymentCode>501</PaymentCode>
<PaymentAmount currCode="USD">5000.00000000</PaymentAmount>
</PaymentData>
</Payments>
</Account>
</Accounts>
</Report>';
SELECT Payment.value('(../../Currency)[1]','nchar(3)') AS currCode
,Payment.value('(../../AccountBalance)[1]','decimal(18,0)') AS AccountBalance
,Payment.value('PaymentCode[1]','nchar(10)') AS PaymentCode
,Payment.value('PaymentAmount[1]/#currCode','nchar(3)') AS PaymentCurrCode
,Payment.value('PaymentAmount[1]','decimal(18,0)') AS PaymentCurrCode
FROM #XML.nodes('Report/Accounts/Account/Payments/PaymentData') AS One(Payment)
This should work for you:
DECLARE #XML XML=
'<Report>
<Accounts>
<Account>
<Currency>USD</Currency>
<AccountBalance>45555</AccountBalance>
<Payments>
<PaymentData>
<PaymentCode>502</PaymentCode>
<PaymentAmount currCode="GBP">7000.00000000</PaymentAmount>
</PaymentData>
<PaymentData>
<PaymentCode>501</PaymentCode>
<PaymentAmount currCode="USD">5000.00000000</PaymentAmount>
</PaymentData>
</Payments>
</Account>
<Account>
<Currency>USD</Currency>
<AccountBalance>50000</AccountBalance>
<Payments>
<PaymentData>
<PaymentCode>501</PaymentCode>
<PaymentAmount currCode="USD">5000.00000000</PaymentAmount>
</PaymentData>
</Payments>
</Account>
</Accounts>
</Report>';
DECLARE #hDoc INT;
EXEC sp_xml_preparedocument #hDoc OUTPUT, #XML;
SELECT
[currCode] AS [Currency],
[AccountBalance] AS [AccountBalance],
[PaymentCode] AS [PaymentCode],
[PaymentCurrCode] AS [PaymentCurrCode],
[PaymentAmount] AS [PaymentAmount]
FROM OPENXML(#hDoc, 'Report/Accounts/Account/Payments/PaymentData',2)
WITH
(
[currCode] [nchar](3) '../../Currency',
[AccountBalance] [decimal](18, 0) '../../AccountBalance',
[PaymentCode] [nchar](10) 'PaymentCode',
[PaymentCurrCode] [nchar](3) 'PaymentAmount/#currCode',
[PaymentAmount] [decimal](18, 0) 'PaymentAmount'
)
EXEC sp_xml_removedocument #hDoc;

EXTRACT RESULTS FROM XML node with namespace using SQL

I Have the below XML and want to extract the values for the following Nodes
1. result
2. documentNumber
3. costElementCode
<commitmentsResponse xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<result xmlns="http://response.cim.its.test.edu.au/">SUCCESS</result>
<value xmlns="http://finance.response.cim.its.test.edu.au/">
<documentNumber xmlns="http://finance.cim.its.test.edu.au/">12345</documentNumber>
<lineNumber>2</lineNumber>
<costElementCode>costElementCode</costElementCode>
<internalOrderNumber>1000002</internalOrderNumber>
<costCentreCode>9999</costCentreCode>
<wbsCode>3000</wbsCode>
<lineDescription>2 packets of pencils</lineDescription>
<accountNumber>100000</accountNumber>
<itemAmount>105.5</itemAmount>
<fundsDueDate>2015-06-15</fundsDueDate>
</commitmentLine>
<commitmentLine xmlns="http://finance.cim.its.test.edu.au/">
<lineNumber>2</lineNumber>
<costElementCode>costElementCode</costElementCode>
<internalOrderNumber>1000002</internalOrderNumber>
<costCentreCode>9999</costCentreCode>
<wbsCode>3000</wbsCode>
<lineDescription>2 packets of pencils</lineDescription>
<accountNumber>100000</accountNumber>
<itemAmount>105.5</itemAmount>
<fundsDueDate>2015-06-15</fundsDueDate>
</commitmentLine>
</value>
</commitmentsResponse>
Without using Namespaces:
DECLARE #myXML xml =
N'<commitmentsResponse xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<result>SUCCESS</result>
<value>
<documentNumber>12345</documentNumber>
<commitmentLine>
<lineNumber>2</lineNumber>
<costElementCode>costElementCode</costElementCode>
<internalOrderNumber>1000002</internalOrderNumber>
<costCentreCode>9999</costCentreCode>
<wbsCode>3000</wbsCode>
<lineDescription>2 packets of pencils</lineDescription>
<accountNumber>100000</accountNumber>
<itemAmount>105.5</itemAmount>
<fundsDueDate>2015-06-15</fundsDueDate>
</commitmentLine>
<commitmentLine xmlns="http://finance.cim.its.test.edu.au/">
<lineNumber>2</lineNumber>
<costElementCode>costElementCode</costElementCode>
<internalOrderNumber>1000002</internalOrderNumber>
<costCentreCode>9999</costCentreCode>
<wbsCode>3000</wbsCode>
<lineDescription>2 packets of pencils</lineDescription>
<accountNumber>100000</accountNumber>
<itemAmount>105.5</itemAmount>
<fundsDueDate>2015-06-15</fundsDueDate>
</commitmentLine>
</value>
</commitmentsResponse>'
DECLARE #DocumentNumber INT
SELECT #DocumentNumber = [Table].[Column].value('documentNumber[1]', 'INT')
FROM #myXML.nodes('/commitmentsResponse/value') AS [Table]([Column])
DECLARE #Result VARCHAR(256)
SELECT #Result = [Table].[Column].value('result[1]', 'varchar(256)')
FROM #myXML.nodes('/commitmentsResponse') AS [Table]([Column])
DECLARE #CostElementCode VARCHAR(256)
SELECT #CostElementCode = [Table].[Column].value('costElementCode[1]', 'varchar(256)')
FROM #myXML.nodes('/commitmentsResponse/value/commitmentLine') AS [Table]([Column])
SELECT #Result
SELECT #DocumentNumber
SELECT #CostElementCode
With using namespaces:
DECLARE #myXML xml =
N'<commitmentsResponse xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<result xmlns="http://response.cim.its.test.edu.au/">SUCCESS</result>
<value>
<documentNumber xmlns="http://finance.cim.its.test.edu.au/">12345</documentNumber>
<commitmentLine>
<lineNumber>2</lineNumber>
<costElementCode>costElementCode</costElementCode>
<internalOrderNumber>1000002</internalOrderNumber>
<costCentreCode>9999</costCentreCode>
<wbsCode>3000</wbsCode>
<lineDescription>2 packets of pencils</lineDescription>
<accountNumber>100000</accountNumber>
<itemAmount>105.5</itemAmount>
<fundsDueDate>2015-06-15</fundsDueDate>
</commitmentLine>
<commitmentLine xmlns="http://finance.cim.its.test.edu.au/">
<lineNumber>2</lineNumber>
<costElementCode>costElementCode</costElementCode>
<internalOrderNumber>1000002</internalOrderNumber>
<costCentreCode>9999</costCentreCode>
<wbsCode>3000</wbsCode>
<lineDescription>2 packets of pencils</lineDescription>
<accountNumber>100000</accountNumber>
<itemAmount>105.5</itemAmount>
<fundsDueDate>2015-06-15</fundsDueDate>
</commitmentLine>
</value>
</commitmentsResponse>'
DECLARE #DocumentNumber INT
;WITH XMLNAMESPACES (N'http://finance.cim.its.test.edu.au/' as DYN)
SELECT #DocumentNumber = c.value('(DYN:documentNumber)[1]', 'INT')
FROM #myXML.nodes('/commitmentsResponse/value') t(c)
DECLARE #Result VARCHAR(256)
;WITH XMLNAMESPACES (N'http://response.cim.its.test.edu.au/' as DYN)
SELECT #Result = c.value('(DYN:result)[1]', 'VARCHAR(256)')
FROM #myXML.nodes('/commitmentsResponse') t(c)
DECLARE #CostElementCode VARCHAR(256)
SELECT #CostElementCode = c.value('(costElementCode)[1]', 'VARCHAR(256)')
FROM #myXML.nodes('/commitmentsResponse/value/commitmentLine') t(c)
SELECT #Result
SELECT #DocumentNumber
SELECT #CostElementCode

Can't get a simple login page on Cas server (critical)

i got some trouble to get Cas Server (3.5.2) works.
i am on WebLogic 10.3.5.
I did several things :
removed : log4j-over-slf4j-1.6.1.jar ( conflict with this jar and slf4j-log4j.jar )
add to my weblogic.xml :
<prefer-application-packages>
<package-name>org.apache.xerces.*</package-name>
</prefer-application-packages>
for a good parsing of XMLs files
explicitly declare hibernate validator 4.x :
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-validator</artifactId>
<version>4.3.1.Final</version>
</dependency>
But it still doesn't display a login page. I've got a
CAS is Unavailable
There was an error trying to complete your request. Please notify your support desk or try again.
There is my log :
org.springframework.webflow.execution.FlowExecutionException: Exception thrown in state 'viewLoginForm' of flow 'login'
at org.springframework.webflow.engine.impl.FlowExecutionImpl.wrap(FlowExecutionImpl.java:571)
at org.springframework.webflow.engine.impl.FlowExecutionImpl.start(FlowExecutionImpl.java:229)
at org.springframework.webflow.executor.FlowExecutorImpl.launchExecution(FlowExecutorImpl.java:140)
at org.springframework.webflow.mvc.servlet.FlowHandlerAdapter.handle(FlowHandlerAdapter.java:193)
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:923)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:852)
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:882)
at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:778)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at org.jasig.cas.web.init.SafeDispatcherServlet.service_aroundBody2(SafeDispatcherServlet.java:128)
at org.jasig.cas.web.init.SafeDispatcherServlet.service_aroundBody3$advice(SafeDispatcherServlet.java:58)
at org.jasig.cas.web.init.SafeDispatcherServlet.service(SafeDispatcherServlet.java:1)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:346)
at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:259)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at com.github.inspektr.common.web.ClientInfoThreadLocalFilter.doFilter(ClientInfoThreadLocalFilter.java:63)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
Caused By: java.lang.IllegalStateException: Exception resolving view with name 'casLoginView'
at org.springframework.webflow.mvc.builder.DelegatingFlowViewResolver.resolveView(DelegatingFlowViewResolver.java:55)
at org.springframework.webflow.mvc.view.AbstractMvcViewFactory.getView(AbstractMvcViewFactory.java:87)
at org.springframework.webflow.engine.ViewState.doEnter(ViewState.java:184)
at org.springframework.webflow.engine.State.enter(State.java:194)
at org.springframework.webflow.engine.Transition.execute(Transition.java:227)
at org.springframework.webflow.engine.impl.FlowExecutionImpl.execute(FlowExecutionImpl.java:393)
at org.springframework.webflow.engine.impl.RequestControlContextImpl.execute(RequestControlContextImpl.java:214)
at org.springframework.webflow.engine.TransitionableState.handleEvent(TransitionableState.java:119)
at org.springframework.webflow.engine.Flow.handleEvent(Flow.java:555)
at org.springframework.webflow.engine.impl.FlowExecutionImpl.handleEvent(FlowExecutionImpl.java:388)
at org.springframework.webflow.engine.impl.RequestControlContextImpl.handleEvent(RequestControlContextImpl.java:210)
at org.springframework.webflow.engine.ActionState.doEnter(ActionState.java:105)
at org.springframework.webflow.engine.State.enter(State.java:194)
at org.springframework.webflow.engine.Transition.execute(Transition.java:227)
at org.springframework.webflow.engine.impl.FlowExecutionImpl.execute(FlowExecutionImpl.java:393)
at org.springframework.webflow.engine.impl.RequestControlContextImpl.execute(RequestControlContextImpl.java:214)
at org.springframework.webflow.engine.TransitionableState.handleEvent(TransitionableState.java:119)
at org.springframework.webflow.engine.Flow.handleEvent(Flow.java:555)
at org.springframework.webflow.engine.impl.FlowExecutionImpl.handleEvent(FlowExecutionImpl.java:388)
at org.springframework.webflow.engine.impl.RequestControlContextImpl.handleEvent(RequestControlContextImpl.java:210)
at org.springframework.webflow.engine.ActionState.doEnter(ActionState.java:105)
at org.springframework.webflow.engine.State.enter(State.java:194)
at org.springframework.webflow.engine.Transition.execute(Transition.java:227)
at org.springframework.webflow.engine.DecisionState.doEnter(DecisionState.java:51)
at org.springframework.webflow.engine.State.enter(State.java:194)
at org.springframework.webflow.engine.Transition.execute(Transition.java:227)
at org.springframework.webflow.engine.DecisionState.doEnter(DecisionState.java:51)
at org.springframework.webflow.engine.State.enter(State.java:194)
at org.springframework.webflow.engine.Flow.start(Flow.java:535)
at org.springframework.webflow.engine.impl.FlowExecutionImpl.start(FlowExecutionImpl.java:366)
at org.springframework.webflow.engine.impl.FlowExecutionImpl.start(FlowExecutionImpl.java:225)
at org.springframework.webflow.executor.FlowExecutorImpl.launchExecution(FlowExecutorImpl.java:140)
at org.springframework.webflow.mvc.servlet.FlowHandlerAdapter.handle(FlowHandlerAdapter.java:193)
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:923)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:852)
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:882)
at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:778)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at org.jasig.cas.web.init.SafeDispatcherServlet.service_aroundBody2(SafeDispatcherServlet.java:128)
at org.jasig.cas.web.init.SafeDispatcherServlet.service_aroundBody3$advice(SafeDispatcherServlet.java:58)
at org.jasig.cas.web.init.SafeDispatcherServlet.service(SafeDispatcherServlet.java:1)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:346)
at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:259)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at com.github.inspektr.common.web.ClientInfoThreadLocalFilter.doFilter(ClientInfoThreadLocalFilter.java:63)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
Caused By: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'casSamlServiceSuccessView': Instantiation of bean failed; nested exception is java.lang.NoClassDefFoundError: org/jasig/cas/web/view/Saml10SuccessResponseView
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:997)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:943)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:485)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:585)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:914)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:464)
at org.springframework.web.servlet.view.ResourceBundleViewResolver.initFactory(ResourceBundleViewResolver.java:254)
at org.springframework.web.servlet.view.ResourceBundleViewResolver.loadView(ResourceBundleViewResolver.java:194)
at org.springframework.web.servlet.view.AbstractCachingViewResolver.createView(AbstractCachingViewResolver.java:186)
at org.springframework.web.servlet.view.AbstractCachingViewResolver.resolveViewName(AbstractCachingViewResolver.java:103)
at org.springframework.webflow.mvc.builder.DelegatingFlowViewResolver.resolveView(DelegatingFlowViewResolver.java:51)
at org.springframework.webflow.mvc.view.AbstractMvcViewFactory.getView(AbstractMvcViewFactory.java:87)
at org.springframework.webflow.engine.ViewState.doEnter(ViewState.java:185)
at org.springframework.webflow.engine.State.enter(State.java:195)
at org.springframework.webflow.engine.Transition.execute(Transition.java:228)
at org.springframework.webflow.engine.impl.FlowExecutionImpl.execute(FlowExecutionImpl.java:393)
at org.springframework.webflow.engine.impl.RequestControlContextImpl.execute(RequestControlContextImpl.java:214)
at org.springframework.webflow.engine.TransitionableState.handleEvent(TransitionableState.java:119)
at org.springframework.webflow.engine.Flow.handleEvent(Flow.java:555)
at org.springframework.webflow.engine.impl.FlowExecutionImpl.handleEvent(FlowExecutionImpl.java:388)
at org.springframework.webflow.engine.impl.RequestControlContextImpl.handleEvent(RequestControlContextImpl.java:210)
at org.springframework.webflow.engine.ActionState.doEnter(ActionState.java:105)
at org.springframework.webflow.engine.State.enter(State.java:195)
at org.springframework.webflow.engine.Transition.execute(Transition.java:228)
at org.springframework.webflow.engine.impl.FlowExecutionImpl.execute(FlowExecutionImpl.java:393)
at org.springframework.webflow.engine.impl.RequestControlContextImpl.execute(RequestControlContextImpl.java:214)
at org.springframework.webflow.engine.TransitionableState.handleEvent(TransitionableState.java:119)
at org.springframework.webflow.engine.Flow.handleEvent(Flow.java:555)
at org.springframework.webflow.engine.impl.FlowExecutionImpl.handleEvent(FlowExecutionImpl.java:388)
at org.springframework.webflow.engine.impl.RequestControlContextImpl.handleEvent(RequestControlContextImpl.java:210)
at org.springframework.webflow.engine.ActionState.doEnter(ActionState.java:105)
at org.springframework.webflow.engine.State.enter(State.java:195)
at org.springframework.webflow.engine.Transition.execute(Transition.java:228)
at org.springframework.webflow.engine.DecisionState.doEnter(DecisionState.java:52)
at org.springframework.webflow.engine.State.enter(State.java:195)
at org.springframework.webflow.engine.Transition.execute(Transition.java:228)
at org.springframework.webflow.engine.DecisionState.doEnter(DecisionState.java:52)
at org.springframework.webflow.engine.State.enter(State.java:195)
at org.springframework.webflow.engine.Flow.start(Flow.java:536)
at org.springframework.webflow.engine.impl.FlowExecutionImpl.start(FlowExecutionImpl.java:366)
at org.springframework.webflow.engine.impl.FlowExecutionImpl.start(FlowExecutionImpl.java:225)
at org.springframework.webflow.executor.FlowExecutorImpl.launchExecution(FlowExecutorImpl.java:141)
at org.springframework.webflow.mvc.servlet.FlowHandlerAdapter.handle(FlowHandlerAdapter.java:193)
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:923)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:852)
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:882)
at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:779)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:821)
at org.jasig.cas.web.init.SafeDispatcherServlet.service_aroundBody2(SafeDispatcherServlet.java:128)
at org.jasig.cas.web.init.SafeDispatcherServlet.service_aroundBody3$advice(SafeDispatcherServlet.java:58)
at org.jasig.cas.web.init.SafeDispatcherServlet.service(SafeDispatcherServlet.java:1)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:27)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:89)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:347)
at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:260)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
Caused By: java.lang.NoClassDefFoundError: org/jasig/cas/web/view/Saml10SuccessResponseView
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:147)
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:76)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:990)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:943)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:485)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:585)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:913)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:464)
at org.springframework.web.servlet.view.ResourceBundleViewResolver.initFactory(ResourceBundleViewResolver.java:251)
at org.springframework.web.servlet.view.ResourceBundleViewResolver.loadView(ResourceBundleViewResolver.java:194)
at org.springframework.web.servlet.view.AbstractCachingViewResolver.createView(AbstractCachingViewResolver.java:186)
at org.springframework.web.servlet.view.AbstractCachingViewResolver.resolveViewName(AbstractCachingViewResolver.java:103)
at org.springframework.webflow.mvc.builder.DelegatingFlowViewResolver.resolveView(DelegatingFlowViewResolver.java:50)
at org.springframework.webflow.mvc.view.AbstractMvcViewFactory.getView(AbstractMvcViewFactory.java:87)
at org.springframework.webflow.engine.ViewState.doEnter(ViewState.java:184)
at org.springframework.webflow.engine.State.enter(State.java:194)
at org.springframework.webflow.engine.Transition.execute(Transition.java:227)
at org.springframework.webflow.engine.impl.FlowExecutionImpl.execute(FlowExecutionImpl.java:393)
at org.springframework.webflow.engine.impl.RequestControlContextImpl.execute(RequestControlContextImpl.java:214)
at org.springframework.webflow.engine.TransitionableState.handleEvent(TransitionableState.java:119)
at org.springframework.webflow.engine.Flow.handleEvent(Flow.java:555)
at org.springframework.webflow.engine.impl.FlowExecutionImpl.handleEvent(FlowExecutionImpl.java:388)
at org.springframework.webflow.engine.impl.RequestControlContextImpl.handleEvent(RequestControlContextImpl.java:210)
at org.springframework.webflow.engine.ActionState.doEnter(ActionState.java:105)
at org.springframework.webflow.engine.State.enter(State.java:194)
at org.springframework.webflow.engine.Transition.execute(Transition.java:227)
at org.springframework.webflow.engine.impl.FlowExecutionImpl.execute(FlowExecutionImpl.java:393)
at org.springframework.webflow.engine.impl.RequestControlContextImpl.execute(RequestControlContextImpl.java:214)
at org.springframework.webflow.engine.TransitionableState.handleEvent(TransitionableState.java:119)
at org.springframework.webflow.engine.Flow.handleEvent(Flow.java:555)
at org.springframework.webflow.engine.impl.FlowExecutionImpl.handleEvent(FlowExecutionImpl.java:388)
at org.springframework.webflow.engine.impl.RequestControlContextImpl.handleEvent(RequestControlContextImpl.java:210)
at org.springframework.webflow.engine.ActionState.doEnter(ActionState.java:105)
at org.springframework.webflow.engine.State.enter(State.java:194)
at org.springframework.webflow.engine.Transition.execute(Transition.java:227)
at org.springframework.webflow.engine.DecisionState.doEnter(DecisionState.java:51)
at org.springframework.webflow.engine.State.enter(State.java:194)
at org.springframework.webflow.engine.Transition.execute(Transition.java:227)
at org.springframework.webflow.engine.DecisionState.doEnter(DecisionState.java:51)
at org.springframework.webflow.engine.State.enter(State.java:194)
at org.springframework.webflow.engine.Flow.start(Flow.java:535)
at org.springframework.webflow.engine.impl.FlowExecutionImpl.start(FlowExecutionImpl.java:366)
at org.springframework.webflow.engine.impl.FlowExecutionImpl.start(FlowExecutionImpl.java:225)
at org.springframework.webflow.executor.FlowExecutorImpl.launchExecution(FlowExecutorImpl.java:140)
at org.springframework.webflow.mvc.servlet.FlowHandlerAdapter.handle(FlowHandlerAdapter.java:193)
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:923)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:852)
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:882)
at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:778)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at org.jasig.cas.web.init.SafeDispatcherServlet.service_aroundBody2(SafeDispatcherServlet.java:128)
at org.jasig.cas.web.init.SafeDispatcherServlet.service_aroundBody3$advice(SafeDispatcherServlet.java:58)
at org.jasig.cas.web.init.SafeDispatcherServlet.service(SafeDispatcherServlet.java:1)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:346)
at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:259)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at com.github.inspektr.common.web.ClientInfoThreadLocalFilter.doFilter(ClientInfoThreadLocalFilter.java:63)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
I printed out some trace, dunno if it's usefull :
2013-05-28 10:41:15,754 DEBUG [org.quartz.core.JobRunShell] - <Calling execute on job DEFAULT.serviceRegistryReloaderJobDetail>
2013-05-28 10:41:15,754 INFO [org.jasig.cas.services.DefaultServicesManagerImpl] - <Reloading registered services.>
2013-05-28 10:41:15,754 INFO [org.jasig.cas.services.DefaultServicesManagerImpl] - <Reloading registered services.>
2013-05-28 10:41:15,754 INFO [org.jasig.cas.services.DefaultServicesManagerImpl] - <Loaded 1 services.>
2013-05-28 10:41:15,754 INFO [org.jasig.cas.services.DefaultServicesManagerImpl] - <Loaded 1 services.>
Any workaround or solution would be great.
Even if i need to downgrade CAS Server.
It looks like your login page view is not found : do you have any customization of your CAS server ?

Getting Java Security Exception with java comm api from GWT

Im developing a GWT application to control an X10 home automation controller(USB Device).
It uses the java Comm APi to communicate witht the controller. But im getting this exception when trying to call the comm api remotly.
Initializing AppEngine server
The server is running at http://localhost:8888/
javax.comm: Error loading javax.comm.properties!
access denied (java.io.FilePermission /home/user/Project-Source/HAMS/src read)
java.io.IOException: javax.comm: platform driver class name = null
(Check 'driver' property in javax.comm.properties)
at javax.comm.CommPortIdentifier.loadDriver(CommPortIdentifier.java:244)
at javax.comm.CommPortIdentifier.<clinit>(CommPortIdentifier.java:109)
at x10.CM11ASerialController.<init>(CM11ASerialController.java:113)
at com.core.hams.server.x10.X10ControllerImpl.<init>(X10ControllerImpl.java:44)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at java.lang.Class.newInstance0(Class.java:355)
at java.lang.Class.newInstance(Class.java:308)
at org.mortbay.jetty.servlet.Holder.newInstance(Holder.java:153)
at org.mortbay.jetty.servlet.ServletHolder.getServlet(ServletHolder.java:339)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:463)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1093)
at com.google.appengine.api.blobstore.dev.ServeBlobFilter.doFilter(ServeBlobFilter.java:51)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
at com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(TransactionCleanupFilter.java:43)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
at com.google.appengine.tools.development.StaticFileFilter.doFilter(StaticFileFilter.java:121)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:360)
at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:712)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
at com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle(DevAppEngineWebAppContext.java:70)
at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
at com.google.appengine.tools.development.JettyContainerService$ApiProxyHandler.handle(JettyContainerService.java:352)
at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
at org.mortbay.jetty.Server.handle(Server.java:313)
at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:506)
at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:844)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:644)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:381)
at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:396)
at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:442)
22-Feb-2010 14:25:20 com.google.apphosting.utils.jetty.JettyLogger warn
WARNING: Nested in javax.servlet.ServletException: init:
java.lang.ExceptionInInitializerError
at x10.CM11ASerialController.<init>(CM11ASerialController.java:113)
at com.core.hams.server.x10.X10ControllerImpl.<init>(X10ControllerImpl.java:44)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at java.lang.Class.newInstance0(Class.java:355)
at java.lang.Class.newInstance(Class.java:308)
at org.mortbay.jetty.servlet.Holder.newInstance(Holder.java:153)
at org.mortbay.jetty.servlet.ServletHolder.getServlet(ServletHolder.java:339)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:463)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1093)
at com.google.appengine.api.blobstore.dev.ServeBlobFilter.doFilter(ServeBlobFilter.java:51)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
at com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(TransactionCleanupFilter.java:43)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
at com.google.appengine.tools.development.StaticFileFilter.doFilter(StaticFileFilter.java:121)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:360)
at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:712)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
at com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle(DevAppEngineWebAppContext.java:70)
at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
at com.google.appengine.tools.development.JettyContainerService$ApiProxyHandler.handle(JettyContainerService.java:352)
at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
at org.mortbay.jetty.Server.handle(Server.java:313)
at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:506)
at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:844)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:644)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:381)
at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:396)
at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:442)
Caused by: java.lang.NullPointerException: name can't be null
at java.io.FilePermission.init(FilePermission.java:171)
at java.io.FilePermission.<init>(FilePermission.java:249)
at java.lang.SecurityManager.checkDelete(SecurityManager.java:990)
at javax.comm.CommPortIdentifier.<clinit>(CommPortIdentifier.java:131)
... 35 more
22-Feb-2010 14:25:20 com.google.apphosting.utils.jetty.JettyLogger warn
WARNING: Nested in java.lang.ExceptionInInitializerError:
java.lang.NullPointerException: name can't be null
at java.io.FilePermission.init(FilePermission.java:171)
at java.io.FilePermission.<init>(FilePermission.java:249)
at java.lang.SecurityManager.checkDelete(SecurityManager.java:990)
at javax.comm.CommPortIdentifier.<clinit>(CommPortIdentifier.java:131)
at x10.CM11ASerialController.<init>(CM11ASerialController.java:113)
at com.core.hams.server.x10.X10ControllerImpl.<init>(X10ControllerImpl.java:44)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at java.lang.Class.newInstance0(Class.java:355)
at java.lang.Class.newInstance(Class.java:308)
at org.mortbay.jetty.servlet.Holder.newInstance(Holder.java:153)
at org.mortbay.jetty.servlet.ServletHolder.getServlet(ServletHolder.java:339)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:463)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1093)
at com.google.appengine.api.blobstore.dev.ServeBlobFilter.doFilter(ServeBlobFilter.java:51)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
at com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(TransactionCleanupFilter.java:43)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
at com.google.appengine.tools.development.StaticFileFilter.doFilter(StaticFileFilter.java:121)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:360)
at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:712)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
at com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle(DevAppEngineWebAppContext.java:70)
at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
at com.google.appengine.tools.development.JettyContainerService$ApiProxyHandler.handle(JettyContainerService.java:352)
at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
at org.mortbay.jetty.Server.handle(Server.java:313)
at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:506)
at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:844)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:644)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:381)
at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:396)
at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:442)
22-Feb-2010 14:25:20 com.google.apphosting.utils.jetty.JettyLogger warn
WARNING: /hams/x10controller
java.lang.ExceptionInInitializerError
at x10.CM11ASerialController.<init>(CM11ASerialController.java:113)
at com.core.hams.server.x10.X10ControllerImpl.<init>(X10ControllerImpl.java:44)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at java.lang.Class.newInstance0(Class.java:355)
at java.lang.Class.newInstance(Class.java:308)
at org.mortbay.jetty.servlet.Holder.newInstance(Holder.java:153)
at org.mortbay.jetty.servlet.ServletHolder.getServlet(ServletHolder.java:339)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:463)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1093)
at com.google.appengine.api.blobstore.dev.ServeBlobFilter.doFilter(ServeBlobFilter.java:51)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
at com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(TransactionCleanupFilter.java:43)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
at com.google.appengine.tools.development.StaticFileFilter.doFilter(StaticFileFilter.java:121)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:360)
at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:712)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
at com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle(DevAppEngineWebAppContext.java:70)
at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
at com.google.appengine.tools.development.JettyContainerService$ApiProxyHandler.handle(JettyContainerService.java:352)
at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
at org.mortbay.jetty.Server.handle(Server.java:313)
at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:506)
at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:844)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:644)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:381)
at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:396)
at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:442)
Caused by: java.lang.NullPointerException: name can't be null
at java.io.FilePermission.init(FilePermission.java:171)
at java.io.FilePermission.<init>(FilePermission.java:249)
at java.lang.SecurityManager.checkDelete(SecurityManager.java:990)
at javax.comm.CommPortIdentifier.<clinit>(CommPortIdentifier.java:131)
... 35 more
22-Feb-2010 14:25:20 com.google.apphosting.utils.jetty.JettyLogger warn
WARNING: Nested in java.lang.ExceptionInInitializerError:
java.lang.NullPointerException: name can't be null
at java.io.FilePermission.init(FilePermission.java:171)
at java.io.FilePermission.<init>(FilePermission.java:249)
at java.lang.SecurityManager.checkDelete(SecurityManager.java:990)
at javax.comm.CommPortIdentifier.<clinit>(CommPortIdentifier.java:131)
at x10.CM11ASerialController.<init>(CM11ASerialController.java:113)
at com.core.hams.server.x10.X10ControllerImpl.<init>(X10ControllerImpl.java:44)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at java.lang.Class.newInstance0(Class.java:355)
at java.lang.Class.newInstance(Class.java:308)
at org.mortbay.jetty.servlet.Holder.newInstance(Holder.java:153)
at org.mortbay.jetty.servlet.ServletHolder.getServlet(ServletHolder.java:339)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:463)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1093)
at com.google.appengine.api.blobstore.dev.ServeBlobFilter.doFilter(ServeBlobFilter.java:51)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
at com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(TransactionCleanupFilter.java:43)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
at com.google.appengine.tools.development.StaticFileFilter.doFilter(StaticFileFilter.java:121)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:360)
at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:712)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
at com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle(DevAppEngineWebAppContext.java:70)
at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
at com.google.appengine.tools.development.JettyContainerService$ApiProxyHandler.handle(JettyContainerService.java:352)
at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
at org.mortbay.jetty.Server.handle(Server.java:313)
at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:506)
at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:844)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:644)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:381)
at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:396)
at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:442)
You should probably check for permission on this directory
access denied (java.io.FilePermission /home/user/Project-Source/HAMS/src read)