[JBoss JIRA] Created: (JBESB-3340) XsltAction does not resolve relative uri properly
by Jan Vlcinsky (JIRA)
XsltAction does not resolve relative uri properly
-------------------------------------------------
Key: JBESB-3340
URL: https://jira.jboss.org/browse/JBESB-3340
Project: JBoss ESB
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: Transformation Service
Affects Versions: 4.6
Environment: Windows XP Pro, CZ, JBossESB Server 4.6 with Sun JDK 1.6.0_17using javax.xml.transform.TransformerFactory=net.sf.saxon.TransformerFactoryImpl
Reporter: Jan Vlcinsky
Xslt relative path are resolved not from the place, template is located, but from bin directory (from which is JBoss started)
<xsl:variable name="locs" select="document('region/pl/Warszawa.xml')"/>
complains about not being able to find the file in D:\opt\jbossesb-server-4.6\bin\region\pl\Warshawa.xml even though the tempate is located inside of esb package.
Using XSLT 2.0 I tried also
<xsl:attribute name="resolvedUri"><xsl:value-of select="resolve-uri('region/pl/Warshawa.xml', base-uri(/))"/></xsl:attribute>
and result is exactly the same.
For testing I used this template
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="xml" encoding="UTF-8"/>
<xsl:template match="/">
<xsl:element name="jbossesb">
<xsl:attribute name="resolvedUri"><xsl:value-of select="resolve-uri('region/pl/Warshawa.xml', base-uri(/))"/></xsl:attribute>
<xsl:text>Local name of root element is: </xsl:text><xsl:value-of select="local-name(/*)"/><xsl:text>
Number of children elements on second level is: </xsl:text><xsl:value-of select="count(/*/*)"/>
<xsl:text>
Total number of elements in the document is: </xsl:text><xsl:value-of select="count(//*)"/>
</xsl:element>
</xsl:template>
</xsl:stylesheet>
and following Esb file
<?xml version="1.0"?>
<jbossesb parameterReloadSecs="5"
xmlns="http://anonsvn.labs.jboss.com/labs/jbossesb/trunk/product/etc/schemas/xml..."
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://anonsvn.labs.jboss.com/labs/jbossesb/trunk/product/etc/schemas/xml... http://anonsvn.jboss.org/repos/labs/labs/jbossesb/trunk/product/etc/schem...">
<providers>
<fs-provider name="FSprovider1">
<fs-bus busid="helloFileChannel">
<fs-message-filter
directory="D:\var\projects\EsbSimpleFileGate\filegate\input"
error-delete="false"
error-directory="D:\var\projects\EsbSimpleFileGate\filegate\error"
error-suffix=".IN_ERROR" input-suffix=".xml" post-delete="false"
post-directory="D:\var\projects\EsbSimpleFileGate\filegate\output"
post-suffix=".sentToEsb" work-suffix=".esbWorking"/>
</fs-bus>
</fs-provider>
</providers>
<services>
<service category="myCategory"
description="Hello World File Action (esb listener)"
invmScope="GLOBAL" name="myFileListener">
<listeners>
<fs-listener busidref="helloFileChannel" is-gateway="true"
name="FileGateway" poll-frequency-seconds="10"/>
</listeners>
<actions mep="OneWay">
<action class="org.jboss.soa.esb.actions.SystemPrintln" name="printBeforeXslt">
<property name="message"/>
</action>
<action
class="org.jboss.soa.esb.actions.transformation.xslt.XsltAction" name="XsltAction">
<property name="templateFile" value="/template-small.xsl"/>
<property name="resultType" value="STRING"/>
<property name="failOnWarning" value="true"/>
</action>
<action class="org.jboss.soa.esb.actions.SystemPrintln" name="printAfterXslt">
<property name="message"/>
</action>
</actions>
</service>
</services>
</jbossesb>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years, 10 months
[JBoss JIRA] Created: (JBESB-3481) ESB 5.0 GA doesn't honor system property for ESB data sources
by Dave Siracusa (JIRA)
ESB 5.0 GA doesn't honor system property for ESB data sources
-------------------------------------------------------------
Key: JBESB-3481
URL: https://jira.jboss.org/browse/JBESB-3481
Project: JBoss ESB
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: Application Server
Affects Versions: 5.0
Environment: RHEL 64bit
Reporter: Dave Siracusa
Priority: Minor
Fix For: 5.0
I have changed the esb data sources to use system properties.
Properties are loaded from a file via jboss-service.xml via
<mbean code="org.jboss.ejb.plugins.cmp.jdbc.metadata.MetaDataLibrary"
name="jboss.jdbc:service=metadata"/>
<mbean code="org.jboss.varia.property.SystemPropertiesService"
name="jboss:type=Service,name=MySystemProperties">
<attribute name="URLList">
machine.properties
</attribute>
</mbean>
All properties work, except ESB_ORACLE_POOL_SIZE.
It doesn't generate an error it simply reverts to minimum pool size value.
<datasources>
<local-tx-datasource>
<jndi-name>JmsDS</jndi-name>
<connection-url>${ESB_ORACLE_URL}</connection-url>
<driver-class>oracle.jdbc.driver.OracleDriver</driver-class>
<user-name>${ESB_ORACLE_USER}</user-name>
<password>${ESB_ORACLE_PWD}</password>
<transaction-isolation>TRANSACTION_READ_COMMITTED</transaction-isolation>
<exception-sorter-class-name>org.jboss.resource.adapter.jdbc.vendor.OracleExceptionSorter</exception-sorter-class-name>
<min-pool-size>15</min-pool-size>
<max-pool-size>${ESB_ORACLE_POOL_SIZE}</max-pool-size>
<prepared-statement-cache-size>50</prepared-statement-cache-size>
<share-prepared-statements>true</share-prepared-statements>
<metadata>
<type-mapping>Oracle9i</type-mapping>
</metadata>
</local-tx-datasource>
</datasources>
#ybsoa
ESB_ORACLE_USER=YBPRDESB
ESB_ORACLE_PWD=.......
ESB_ORACLE_URL=jdbc:oracle:thin:@(DESCRIPTION = (LOAD_BALANCE = yes) (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP) (Host = vip-ybkopracdb04.corp.ybusa.net) (Port = 1521))(ADDRESS = (PROTOCOL = TCP)(HOST = vip-ybkopracdb05.corp.ybusa.net)(PORT = 1521)))(CONNECT_DATA=(SERVICE_NAME = ESB)(SERVER = DEDICATED)))
ESB_ORACLE_POOL_SIZE=100
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years, 10 months
[JBoss JIRA] Created: (JBESB-3578) JBoss ESB validation methods buggy/inconsistent
by Its Me (JIRA)
JBoss ESB validation methods buggy/inconsistent
-----------------------------------------------
Key: JBESB-3578
URL: https://issues.jboss.org/browse/JBESB-3578
Project: JBoss ESB
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: Rosetta
Environment: Operating System: ANY
Application : JBoss SOA 5.0.2
Reporter: Its Me
So it looks like all of the validation code with JBossESB actions have issues with some
basic operations:
1. <actions mep="OneWay" outXsd="/validate0.xsd" validate="true">
- No matter if the inbound XML is valid or invalid, the actions are execute and change in
execution occurs. All actions occur, regardless.
2. SchemaValidationAction
- Does not correctly read XSD that contain <xs:import> statements. ESB will not be
deployed correctly.
3. XsltAction
- No matter if the inbound XML is valid or invalid, the actions are execute and change in
execution occurs. All actions occur, regardless.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years, 10 months