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 Go to previous topicPrev TopicGo to next topicNext Topic
Postnext
gogol b dernaSubject: Help with SerializerTrace error
Author: gogol b derna
Date: 30 Jan 2008 01:44 PM
Hello

I'm new to xslt, and I'm trying to set up my stylus to work with xalan 2.7, I get this error:

External XSLT processing started...

(Location of error unknown)XSLT Error (java.lang.NoClassDefFoundError): org/apache/xml/serializer/SerializerTrace
Exception in thread "main" java.lang.RuntimeException: org/apache/xml/serializer/SerializerTrace
at org.apache.xalan.xslt.Process.doExit(Process.java:1153)
at org.apache.xalan.xslt.Process.main(Process.java:1126)
...done

my settings:

Processor = custom
command line: java org.apache.xalan.xslt.Process -IN %1 -XSL %2 -OUT %3
path: C:\Java\jdk1.5.0_07\bin
classpath: C:\xalan\serializer.jar;C:\xalan\xalan.jar;C:\xalan\xml-apis.jar;C:\xalan\xercesImpl.jar;C:\xalan\xerces.jar

I do really appreciate your help, thanks

Gogol

Postnext
Tony LavinioSubject: Help with SerializerTrace error
Author: Tony Lavinio
Date: 01 Feb 2008 12:16 PM
Does it work from the command line outside of Stylus Studio?

Postnext
gogol b dernaSubject: Help with SerializerTrace error
Author: gogol b derna
Date: 05 Feb 2008 06:43 PM
this is what i get when run it in dos shell:

C:\xalan>java org.apache.xalan.xslt.Process -IN incomingCode.xml -XSL MyTranslation.xslt -OUT out.xml
file:///C:/xalan/MyTranslation.xslt; Line #282; Column #108; java.lang.IllegalArgumentException: Invalid Driver Name Specified!


I'm running it in a bat file (run.bat):

C:\xalan>type run.bat
set PATH= .;%PATH%;"C:\Java\jdk1.5.0_07\bin"

set CLASSPATH= .;%CLASSPATH%";C:\xalan\serializer.jar;C:\xalan\xalan.jar;C:\xalan\xml-apis.jar;C:\xalan\xercesImpl.jar;C:\xalan\xerces.jar"
;

java org.apache.xalan.xslt.Process -IN %1 -XSL %2 -OUT %3



thanks!

Postnext
gogol b dernaSubject: Help with SerializerTrace error
Author: gogol b derna
Date: 05 Feb 2008 06:51 PM
this is what i get when run it in dos shell:

C:\xalan>java org.apache.xalan.xslt.Process -IN incomingCode.xml -XSL MyTranslation.xslt -OUT out.xml
file:///C:/xalan/MyTranslation.xslt; Line #282; Column #108; java.lang.IllegalArgumentException: Invalid Driver Name Specified!


I'm running it in a bat file (run.bat):

C:\xalan>type run.bat
set PATH= .;%PATH%;"C:\Java\jdk1.5.0_07\bin"

set CLASSPATH= .;%CLASSPATH%";C:\xalan\serializer.jar;C:\xalan\xalan.jar;C:\xalan\xml-apis.jar;C:\xalan\xercesImpl.jar;C:\xalan\xerces.jar"
;

java org.apache.xalan.xslt.Process -IN %1 -XSL %2 -OUT %3



thanks!

Postnext
(Deleted User) Subject: Help with SerializerTrace error
Author: (Deleted User)
Date: 07 Feb 2008 05:43 AM
The error points to Line #282 and Column #108 of file:///C:/xalan/MyTranslation.xslt; could you check what is written there?

Alberto

Postnext
gogol b dernaSubject: Help with SerializerTrace error
Author: gogol b derna
Date: 13 Feb 2008 07:28 PM
this is the line :

<xsl:value-of select="sql:connect($mydb,'oracle.jdbc.driver.OracleDriver',$dbinfo,$dbuser,$dbpasswd)"/>

where mydb:

<xsl:variable name="mydb" select="sql:new()"/>

dbinfo:

<xsl:param name="dbinfo" select="'jdbc:oracle:thin:@172.15.1.201:1521:ORASID01'"/>

and

<xsl:param name="dbuser" select="'proc01'"/>
<xsl:param name="dbpasswd" select="'proc01'"/>


thanks!

Postnext
(Deleted User) Subject: Help with SerializerTrace error
Author: (Deleted User)
Date: 14 Feb 2008 07:51 AM
Hi,
as you are asking Xalan to load the oracle.jdbc.driver.OracleDriver class, you should add to the CLASSPATH the Oracle JDBC jar (usually, ojdbcXX.jar with XX equal to the JVM version you are using).

Hope this helps,
Alberto

Posttop
gogol b dernaSubject: Help with SerializerTrace error
Author: gogol b derna
Date: 14 Feb 2008 01:20 PM
Hi Alberto,

thanks

I modified the classpath for that scenario to:

C:\xalan\serializer.jar;C:\xalan\xml-apis.jar;C:\xalan\xercesImpl.jar;C:\xalan\xerces.jar;C:\OraHome_1\jdbc\lib\ojdbc14.jar

now it works fine!

thank you very much!
-Gogol

 
Topic Page 1 2 3 4 5 6 7 8 9 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.