Thanks David, now i'm able to compile the code, but the last pre-requisite (i.e. Docbook) was not mentioned in STAF Developers guide. Is it a new requirement ?

I never compiled STAF, this is the first time i'm compiling it. Even there are some minor issues when compiling STAF Core module.

Thanks again for the support
--
sairam

David Bender wrote:

The STAX service itself is building correctly, but the error occurs when it tries to build the "Getting Started with STAX" document. To build this document, you need to have Saxon and DocBook installed on the system. Section "Building STAF Documentation" in the STAF Developer's Guide (http://staf.sourceforge.net/current/stafdg.html#Header_buildDocs) has this information:

    * You need to have Saxon installed in order to build the STAF
      Documentation (i.e. STAF FAQ). You can download Saxon (e.g.
      saxon6_5_3.zip) from the _Saxon website_
      <http://saxon.sourceforge.net/> to D:/tools/saxon (or whatever
      directory you choose), and unzip the file in this directory.
      This file and the saxon.jar file are also available for IBM
      Austin STAF developers on our STAF ftp server in the /tools
      directory. Note that you really only need the saxon.jar file in
      the directory you specify for SAXON_ROOT.
    * You need to have Docbook XSL installed in order to build the
      STAF Documentation (i.e. STAF FAQ). You can download a
      docbook-xsl zip or tar file from the _Docbook website_
      <http://sourceforge.net/projects/docbook> to D:/tools (or
      whatever directory you choose), and unzip/untar the file in this
      directory (it will create a docbook-<version>directory (which
      you may want to rename to docbook).


export SAXON_ROOT=d:/tools/saxon
export DOCBOOK_ROOT=d:/tools/docbook

Note that if you really just want to build the STAX service (and not the Getting Started with STAX document), then you should just be able to run "make PROJECTS=stax" without setting SAXON_ROOT and DOCBOOK_ROOT. Did you have these set to some values when you ran into this problem? The src/staf/services/stax/makefile.stax will only try to build the Getting Started with STAX document if those variables are set:

ifdef SAXON_ROOT
ifdef DOCBOOK_ROOT
$(O)/services/stax/docs/gettingstarted/STAXGS.html: $(SRC)/services/stax/docs/ge
ttingstarted/STAXGS.xml $(MAKEFILE_NAME)
@echo "*** Building Getting Started with STAX (STAXGS.html) document ***"
. . . .
. . . .

David Bender
STAF/STAX Development
8-1268 (512-838-1268) IBM Austin Bldg. 903-5B002
Internet: [EMAIL PROTECTED]



*"M Purandhar Sairam" <[EMAIL PROTECTED]>*
Sent by: [EMAIL PROTECTED]

08/13/2008 12:57 AM

        
To
        staf-users@lists.sourceforge.net
cc
        
Subject
        [staf-users] Help required in compiling STAX service



        





hi,
i was compiling stax from sources, i followed that were mentioned in STAF Developers Guide, configuration:
              OS:  FC9
              Java: Java 1.6
              perl: 5.10
              xerces: 2.9.1
              xalan: 2.7.1

  i'm getting the following error when i try to compile stax
*** Compiling STAX Service Java Sources ***
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
*** Copying STAXGetLineNumber.xsl ***
*** Compiling STAX Monitor Java Sources ***
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
*** Compiling STAXDoc Java Sources ***
/root/Download/src/staf/services/stax/staxdoc/ResourceHandler.java:56: warning: non-varargs call of varargs method with inexact argument type for last parameter;
cast to java.lang.Object for a varargs call
cast to java.lang.Object[] for a non-varargs call and to suppress this warning
     return MessageFormat.format(message, args);
                                          ^
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 warning
*** Copying GsxDoc1.xsl ***
*** Copying GsxDoc1a.xsl ***
*** Copying GsxDoc2.xsl ***
*** Copying staxdoc.properties ***
*** Building Getting Started with STAX (STAXGS.html) document ***
Exception in thread "main" java.lang.NoClassDefFoundError: com.icl.saxon.StyleSheet
Caused by: java.lang.ClassNotFoundException: com.icl.saxon.StyleSheet
       at java.net.URLClassLoader.findClass(URLClassLoader.java:432)
       at java.lang.ClassLoader.loadClass(ClassLoader.java:643)
       at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:311)
       at java.lang.ClassLoader.loadClass(ClassLoader.java:609)
make: *** [/root/Download/obj/linux/staf/retail/services/stax/docs/gettingstarted/STAXGS.html] Error 1

I don't know where i'm getting wrong.


thanks & regards,
sairam-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users



********************************************************************************
This email message (including any attachments) is for the sole use of the intended recipient(s) and may contain confidential, proprietary and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please immediately notify the sender by reply email and destroy all copies of the original message. Thank you.

Intoto Inc.
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users

Reply via email to