XML Editor
Sign up for a WebBoard account Sign Up Keyword Search Search More Options... Options
Chat Rooms Chat Help Help News News Log in to WebBoard Log in Not Logged in
Show tree view Topic
Topic Page 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Go to previous topicPrev TopicGo to next topicNext Topic
Postnext
Kurt WaldSubject: Stylus X15 R2 environment crippled
Author: Kurt Wald
Date: 08 Oct 2014 08:17 AM
it seems that Stylus Studio X5 R2 Enterprise cripples the environment. The stylesheet uploaded with this post displays the content of the PATH variable on my win 7 system as:

<PATH>c:\program files (x86)\java\jre1.8.0_20\bin;c:\progs\stylusx15\components\datadirect xquery\lib\jdbc-sockets;systempath</PATH>

it looks as if systempath should be resolved but isn't.

This also leads a problem with java versions. In the above scenario 1.8 (the default JRE on this machine) is set e as the Stylus VM version via the options dialog. If I change this option to 1.7, the Stylus PATH variable points to c:\program files (x86)\java\jre1.7.... If I the run a custom processor with java.exe -cp ... I get:

External XSLT processing started...
Error: Registry key 'Software\JavaSoft\Java Runtime Environment'\CurrentVersion'
has value '1.8', but '1.7' is required.
Error: could not find java.dll
Error: Could not find Java SE Runtime Environment.

I have not tested environment variables other than PATH.

Kurt Wald


DocumentTestPath.xsl

Postnext
Ivan PedruzziSubject: Stylus X15 R2 environment crippled
Author: Ivan Pedruzzi
Date: 08 Oct 2014 10:14 AM
Hi Kurt,

This has nothing to with Stylus Studio.You cannot rely on setting the variable PATH to switch JVM.


1) if you have multiple JVM on the system, the most recent install has copied java.exe in the windows folder and set the following registry key (java 32bit on 64bit system) to make its version the current:

HKEY_LOCAL_MACHINE\
SOFTWARE\
Wow6432Node\
JavaSoft\
Java Runtime Environment
CurrentVersion


2) Mixing the path will simply make the situation worst.


3) You have to use the full path to java to run your custom tool/processor, for example

"c:\Program Files (x86)\Java\jre7\bin\java.exe"

I tested the following command line on my system in which i have 1.6, 1.7 and 1.8 without problems

"c:\Program Files (x86)\Java\jre7\bin\java.exe" -jar c:\saxon9he.jar %1 %2 -o:%3


Does it help?


Ivan Pedruzzi
Stylus Studio Team

Postnext
Kurt WaldSubject: Stylus X15 R2 environment crippled
Author: Kurt Wald
Date: 08 Oct 2014 11:59 AM
Hi Ivan,

the JVM issue is only a side effect. The main issue is the crippled system path. I came across this, when I tried to launch powershell via ProcessBuilder from a java extension inside an xslt script. Powershell.exe is called relying on the system PATH, which works fine with Saxon outside of Stylus Studio. Due to the crippled PATH Variable in Stylus Studio:

<PATH>c:\program files (x86)\en java\jre1.8.0_20\bin;c:\progs\stylusx15\components\datadirect xquery\lib\jdbc-sockets;systempath</PATH>

I get a powershell.exe not found error, when processing the stylesheet in Stylus Studio because the powershell directory is no longer in the system path. I suspect that the systempath entry (see above) is a Stylus placeholder for the original system's PATH variable. systempath should be resolved but ends up in the Stylus version of PATH as a literal.

Kurt Wald

Postnext
Ivan PedruzziSubject: Stylus X15 R2 environment crippled
Author: Ivan Pedruzzi
Date: 08 Oct 2014 02:49 PM
This behavior is at least 4 years old. We will publish a fix in the next update.

If you need a work around create the following folder and add it to your system path. doing so prevents Stylus Studio do adjust the system path.

Does it help?


c:\Program Files (x86)\
Stylus Studio X15 Release 2 XML Enterprise Suite\
Components\
DataDirect XQuery\
lib\
jdbc-sockets



Ivan Pedruzzi
Stylus Studio Team

Posttop
Kurt WaldSubject: Stylus X15 R2 environment crippled
Author: Kurt Wald
Date: 08 Oct 2014 03:28 PM
Hi Ivan,

the workaround works but the fix will be appreciated.

Kurt Wald

 
Topic Page 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Go to previous topicPrev TopicGo to next topicNext Topic
Download A Free Trial of Stylus Studio 6 XML Professional Edition Today! Powered by Stylus Studio, the world's leading XML IDE for XML, XSLT, XQuery, XML Schema, DTD, XPath, WSDL, XHTML, SQL/XML, and XML Mapping!  
go

Log In Options

Site Map | Privacy Policy | Terms of Use | Trademarks
Stylus Scoop XML Newsletter:
W3C Member
Stylus Studio® and DataDirect XQuery ™are from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2016 All Rights Reserved.