Forum: Building VoltDB Clients

Post: Compiling project.xml code from Getting Started Manual

Compiling project.xml code from Getting Started Manual
jjmartinez
Dec 18, 2012
Hello all,

I'm very new in VoltDB and I'm reading the Getting Started manual (http://voltdb.com/docs/GettingStarted/HWsourcefiles.php)

When I compile the project.xml file that I have copied from the last URL, I have the next error:

ERROR: [project.xml:1]: DDL Error: "unknown token" in statement starting on lineno: 1
ERROR: Failed to compile XML
ERROR: Catalog compilation failed.

My project.xml file is the same that you can find into http://voltdb.com/docs/GettingStarted/HWsourcefiles.php

I'm using voltdb-2.8.4.1 version.

Thanks in advance!!

Best Regards, Jesús.
awilson
Dec 18, 2012
Hello all,

I'm very new in VoltDB and I'm reading the Getting Started manual (http://voltdb.com/docs/GettingStarted/HWsourcefiles.php)

When I compile the project.xml file that I have copied from the last URL, I have the next error:

ERROR: [project.xml:1]: DDL Error: "unknown token" in statement starting on lineno: 1
ERROR: Failed to compile XML
ERROR: Catalog compilation failed.

My project.xml file is the same that you can find into http://voltdb.com/docs/GettingStarted/HWsourcefiles.php

I'm using voltdb-2.8.4.1 version.

Thanks in advance!!

Best Regards, Jesús.


Hi,

I looked at the page and it is not rendering right and that may be causing the problem.



<!-- project.xml -->
<?xml version="1.0"?>
<project>    
<database>       <schemas>           
<schema path='helloworld.sql' />       
</schemas>      
<procedures>           
<procedure class='Insert' />           
<procedure class='Select' />       
</procedures>   
 </database>
</project>




<!-- deployment.xml -->
<?xml version="1.0"?>
<deployment><cluster hostcount="1"   sitesperhost="2"  />   
<httpd enabled="true">      
<jsonapi enabled="true" />   
</httpd>
</deployment>




-- helloworld.ddl
CREATE TABLE HELLOWORLD (HELLO VARCHAR(15),  
 WORLD VARCHAR(15),   
DIALECT VARCHAR(15) NOT NULL,  
PRIMARY KEY (DIALECT));

PARTITION TABLE HELLOWORLD ON COLUMN DIALECT;


That's what the files should look like. Is that what you have?
jjmartinez
Dec 18, 2012
Yes, it is that I have.
Now I also add the deployment.xml file.
I'm compiling with "sudo ./voltcompiler ./ ../../../../workspace/VoltDBConnection/src/project.xml person.jar" My sql file is called "person", and the path is the correct :)
The error now is the next:

012-12-18 17:51:26,821 ERROR [main] COMPILER: [project.xml]: Error schema validating project.xml file. The processing instruction target matching "[xX][mM][lL]" is not allowed.
2012-12-18 17:51:26,821 ERROR [main] COMPILER: Error schema validating project.xml file: The processing instruction target matching "[xX][mM][lL]" is not allowed.
2012-12-18 17:51:26,821 ERROR [main] COMPILER:
2012-12-18 17:51:26,821 ERROR [main] COMPILER: ../../../../workspace/VoltDBConnection/src/project.xml
2012-12-18 17:51:26,822 ERROR [main] COMPILER: Catalog compilation failed.


I don't understand :(
awilson
Dec 18, 2012
Yes, it is that I have.
Now I also add the deployment.xml file.
I'm compiling with "sudo ./voltcompiler ./ ../../../../workspace/VoltDBConnection/src/project.xml person.jar" My sql file is called "person", and the path is the correct :)
The error now is the next:

012-12-18 17:51:26,821 ERROR [main] COMPILER: [project.xml]: Error schema validating project.xml file. The processing instruction target matching "[xX][mM][lL]" is not allowed.
2012-12-18 17:51:26,821 ERROR [main] COMPILER: Error schema validating project.xml file: The processing instruction target matching "[xX][mM][lL]" is not allowed.
2012-12-18 17:51:26,821 ERROR [main] COMPILER:
2012-12-18 17:51:26,821 ERROR [main] COMPILER: ../../../../workspace/VoltDBConnection/src/project.xml
2012-12-18 17:51:26,822 ERROR [main] COMPILER: Catalog compilation failed.


I don't understand :(

Maybe there are a few odd characters mixed in. In the kit there is the complete helloworld example. Go to <volt_home>/doc/tutorials/helloworld. And thanks to Andrew (there are two of us) for pointing it out.