You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xmlbeans.apache.org by "Victor Ortega (JIRA)" <xm...@xml.apache.org> on 2004/11/11 16:36:33 UTC

[jira] Created: (XMLBEANS-85) Errors in getting started tutorial

Errors in getting started tutorial
----------------------------------

         Key: XMLBEANS-85
         URL: http://nagoya.apache.org/jira/browse/XMLBEANS-85
     Project: XMLBeans
        Type: Bug
    Versions: Version 1.0.3    
 Environment: Solaris 9 (at least)
    Reporter: Victor Ortega
    Priority: Minor


The "getting started" tutorial for XMLBeans, found at

http://xmlbeans.apache.org/documentation/tutorial_getstarted.html

has several errors in the section "Getting Started with Handling XML Through Schema":

- the source code given won't compile because it is missing the import statements:

import java.io.*;
import java.math.*;
import org.apache.xmlbeans.*;
import org.openuri.easypo.*;

- the generated code will not compile because easypo.xsdconfig adds the prefix "Xml" and the suffix "Bean" to the generated source;
- the README.txt in the installation incorrectly states to set the XMLBEANS_HOME environment variable to include the lib directory, causing problems with the compile and run;
- the compile statement has several problems; it should be:

javac -classpath $XMLBEANS_HOME/lib/xbean.jar:tutorials/gettingstarted/lib/easypo.jar -d tutorials/gettingstarted/classes tutorials/gettingstarted/src/POUpdater.java


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://nagoya.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org


[jira] Commented: (XMLBEANS-85) Errors in getting started tutorial

Posted by "Steve Traut (JIRA)" <xm...@xml.apache.org>.
     [ http://nagoya.apache.org/jira/browse/XMLBEANS-85?page=comments#action_55377 ]
     
Steve Traut commented on XMLBEANS-85:
-------------------------------------

I made the following fixes to the site:

- missing import statements in source code -- fixed.
- compile statement is bad. And indeed it was a copy/paste mess. I fixed it, and also made the command more Windows-specific (percents, semicolons, backslashes), in keeping with the rest of the tutorial.

These appear not to be tutorial bugs:

- generated code won't compile because easypo.xsdconfig is present -- not an issue for the tutorial. This would be an issue if the tutorial asked users to scomp the entire contents of the schemas/easypo directory; instead, the tutorial does (and did) tell users to compile easypo.xsd within that folder -- ignoring the xsdconfig.
- release readme tells users to set XMLBEANS_HOME to the release lib folder -- not an issue for the tutorial. I agree that this is a readme problem. I added a line to the tutorial that users should use the environment described in the installation topic.


> Errors in getting started tutorial
> ----------------------------------
>
>          Key: XMLBEANS-85
>          URL: http://nagoya.apache.org/jira/browse/XMLBEANS-85
>      Project: XMLBeans
>         Type: Bug
>     Versions: Version 1.0.3
>  Environment: Solaris 9 (at least)
>     Reporter: Victor Ortega
>     Priority: Minor

>
> The "getting started" tutorial for XMLBeans, found at
> http://xmlbeans.apache.org/documentation/tutorial_getstarted.html
> has several errors in the section "Getting Started with Handling XML Through Schema":
> - the source code given won't compile because it is missing the import statements:
> import java.io.*;
> import java.math.*;
> import org.apache.xmlbeans.*;
> import org.openuri.easypo.*;
> - the generated code will not compile because easypo.xsdconfig adds the prefix "Xml" and the suffix "Bean" to the generated source;
> - the README.txt in the installation incorrectly states to set the XMLBEANS_HOME environment variable to include the lib directory, causing problems with the compile and run;
> - the compile statement has several problems; it should be:
> javac -classpath $XMLBEANS_HOME/lib/xbean.jar:tutorials/gettingstarted/lib/easypo.jar -d tutorials/gettingstarted/classes tutorials/gettingstarted/src/POUpdater.java

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://nagoya.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org


[jira] Updated: (XMLBEANS-85) Errors in getting started tutorial

Posted by "Steve Traut (JIRA)" <xm...@xml.apache.org>.
     [ http://nagoya.apache.org/jira/browse/XMLBEANS-85?page=history ]

Steve Traut updated XMLBEANS-85:
--------------------------------

    Attachment: tutorial_getstarted.xml
                tutorial_getstarted.pdf

Here are the files reflecting tutorial fixes -- source XML and output PDF. These have been committed to the repository.

> Errors in getting started tutorial
> ----------------------------------
>
>          Key: XMLBEANS-85
>          URL: http://nagoya.apache.org/jira/browse/XMLBEANS-85
>      Project: XMLBeans
>         Type: Bug
>     Versions: Version 1.0.3
>  Environment: Solaris 9 (at least)
>     Reporter: Victor Ortega
>     Priority: Minor
>  Attachments: tutorial_getstarted.pdf, tutorial_getstarted.xml
>
> The "getting started" tutorial for XMLBeans, found at
> http://xmlbeans.apache.org/documentation/tutorial_getstarted.html
> has several errors in the section "Getting Started with Handling XML Through Schema":
> - the source code given won't compile because it is missing the import statements:
> import java.io.*;
> import java.math.*;
> import org.apache.xmlbeans.*;
> import org.openuri.easypo.*;
> - the generated code will not compile because easypo.xsdconfig adds the prefix "Xml" and the suffix "Bean" to the generated source;
> - the README.txt in the installation incorrectly states to set the XMLBEANS_HOME environment variable to include the lib directory, causing problems with the compile and run;
> - the compile statement has several problems; it should be:
> javac -classpath $XMLBEANS_HOME/lib/xbean.jar:tutorials/gettingstarted/lib/easypo.jar -d tutorials/gettingstarted/classes tutorials/gettingstarted/src/POUpdater.java

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://nagoya.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org


[jira] Closed: (XMLBEANS-85) Errors in getting started tutorial

Posted by "Kevin Krouse (JIRA)" <xm...@xml.apache.org>.
     [ http://issues.apache.org/jira/browse/XMLBEANS-85?page=history ]
     
Kevin Krouse closed XMLBEANS-85:
--------------------------------

    Resolution: Fixed

Looks fixed.

> Errors in getting started tutorial
> ----------------------------------
>
>          Key: XMLBEANS-85
>          URL: http://issues.apache.org/jira/browse/XMLBEANS-85
>      Project: XMLBeans
>         Type: Bug
>     Versions: Version 1.0.3
>  Environment: Solaris 9 (at least)
>     Reporter: Victor Ortega
>     Priority: Minor
>  Attachments: tutorial_getstarted.pdf, tutorial_getstarted.xml
>
> The "getting started" tutorial for XMLBeans, found at
> http://xmlbeans.apache.org/documentation/tutorial_getstarted.html
> has several errors in the section "Getting Started with Handling XML Through Schema":
> - the source code given won't compile because it is missing the import statements:
> import java.io.*;
> import java.math.*;
> import org.apache.xmlbeans.*;
> import org.openuri.easypo.*;
> - the generated code will not compile because easypo.xsdconfig adds the prefix "Xml" and the suffix "Bean" to the generated source;
> - the README.txt in the installation incorrectly states to set the XMLBEANS_HOME environment variable to include the lib directory, causing problems with the compile and run;
> - the compile statement has several problems; it should be:
> javac -classpath $XMLBEANS_HOME/lib/xbean.jar:tutorials/gettingstarted/lib/easypo.jar -d tutorials/gettingstarted/classes tutorials/gettingstarted/src/POUpdater.java

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org