[
https://issues.jboss.org/browse/TEIIDDES-2404?page=com.atlassian.jira.plu...
]
Barry LaFond edited comment on TEIIDDES-2404 at 12/2/14 4:02 PM:
-----------------------------------------------------------------
The jar list string property from Data Tools profiles have different delimiters depending
on OS.
For Linux the jar paths are delimited with a colon >>> *:*
{code:xml}
<property name="jarList"
value="/home/blafond/drivers/classes12_g.jar:/home/blafond/drivers/db2jcc4.jar:/home/blafond/drivers/sqljdbc.jar"/>
{code}
For Windows the jar paths are delimited with a semi-colon >>> *;*
{code:xml}
<property name="jarList"
value="C:\users\blafond\drivers\classes12_g.jar;C:\users\blafond\drivers\db2jcc4.jar;C:\users\blafond\drivers\sqljdbc.jar"/>
{code}
The ExecutionAdmin deployJars() method splits the jarList string using only the colon, so
in this use-case, with one jar, the drive letter is treated as a separate jar, hence
nothing get's deployed.
{code:java}
private void deployJars(Admin admin, String jarList) {
// Path Entries are colon separated
String[] jarPathStrs = jarList.split("[:]"); //$NON-NLS-1$
{code}
[~phantomjinx] I rather not do an OS check here, but it'll work in this case. Any
ideas on another solution?
was (Author: blafond):
The jar list string property from Data Tools profiles have different delimiters depending
on OS.
For Linux the jar paths are delimited with a colon >>> *:*
{code:xml}
<property name="jarList"
value="/home/blafond/drivers/classes12_g.jar:/home/blafond/drivers/db2jcc4.jar:/home/blafond/drivers/sqljdbc.jar"/>
{code}
For Windows the jar paths are delimited with a semi-colon >>> *;*
{code:xml}
<property name="jarList"
value="C:\users\blafond\drivers\classes12_g.jar;C:\users\blafond\drivers\db2jcc4.jar;C:\users\blafond\drivers\sqljdbc.jar"/>
{code}
The ExecutionAdmin deployJars() method splits the jarList string using only the colon, so
in this use-case, with one jar, the drive letter is treated as a separate jar, hence
nothing get's deployed.
{code:java}
private void deployJars(Admin admin, String jarList) {
// Path Entries are colon separated
String[] jarPathStrs = jarList.split("[:]"); //$NON-NLS-1$
{code}
"Preview Data" throws Exception, when user select jdbc
driver which is not located under C dirive
-------------------------------------------------------------------------------------------------
Key: TEIIDDES-2404
URL:
https://issues.jboss.org/browse/TEIIDDES-2404
Project: Teiid Designer
Issue Type: Bug
Components: Data Preview
Affects Versions: 8.3.4
Environment: - Windows 7
- Teiid Designer 8.3.4.Final-v20140912-1304-B264 (JBDSIS 7.0.3)
Reporter: hisao furuichi
When user select/use a jdbc driver which is not located Under C drive, "preview
data" thows TEIID30504 Exception.
--
This message was sent by Atlassian JIRA
(v6.3.8#6338)