<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>Dart Server Creation and MySQL</TITLE>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.3132" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=750391617-20062007><FONT face=Arial
color=#0000ff size=2>Hi Ben,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=750391617-20062007><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=750391617-20062007><FONT face=Arial
color=#0000ff size=2> You've come to the right place. This is a huge
oversight on our part... Dart uses two database schemas, one for the
server which holds a smattering of information like usernames/email/passwords
and one for each project. The MySQL support was apparently never tested on
the Server database. The most simple thing for you to do would be to use
Derby for the Server database, and MySQL for the project. This has been
tested, though not extensively. I've fixed the problem you describe below,
and it's likely enough to warrent a 1.0.10 release. If you are building
from scratch, just update and rebuild, otherwise I'll try to get a 1.0.10
release out in 2 weeks or so.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=750391617-20062007><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=750391617-20062007><FONT face=Arial
color=#0000ff size=2>Thanks,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=750391617-20062007><FONT face=Arial
color=#0000ff size=2>-dan</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=750391617-20062007><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV><BR>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B>
dart-bounces+blezek=crd.ge.com@public.kitware.com
[mailto:dart-bounces+blezek=crd.ge.com@public.kitware.com] <B>On Behalf Of
</B>Ben Snider<BR><B>Sent:</B> Wednesday, June 20, 2007 1:06 PM<BR><B>To:</B>
dart@public.kitware.com<BR><B>Subject:</B> [Dart] Dart Server Creation and
MySQL <BR></FONT><BR></DIV>
<DIV></DIV><!-- Converted from text/plain format -->
<P><FONT size=2>So I'm using Dart 1.0.9 with Java 1.6, Centos 5, and MySQL 5
and following the instructions in the manual I try to create a Dart server
with a MySQL database.<BR><BR>java -jar $DART/DartServer.jar --createserver
TestServer -d mysql<BR><BR>I then get the following, snipped for the relevant
parts. I don't know where to go from here and I have found next to nothing in
terms of Googling.<BR><BR>[main] INFO dart.DartServer - Starting
DartServer version 1.0.8: $Id: Version.java 410 2006-12-19 21:22:04Z blezek $
db version 1.2<BR>[main] INFO dart.DartServer - JVM java.class.version:
50.0<BR>[main] INFO dart.DartServer - JVM java.vendor: Sun Microsystems
Inc.<BR>[main] INFO dart.DartServer - JVM java.vendor.url: </FONT><A
href="http://java.sun.com/"><FONT
size=2>http://java.sun.com/</FONT></A><BR><FONT size=2>[main] INFO
dart.DartServer - JVM java.version: 1.6.0_01<BR>[main] INFO
dart.DartServer - JVM os.arch: i386<BR>[main] INFO dart.DartServer
- JVM os.name: Linux<BR>[main] INFO dart.DartServer - JVM os.version:
2.6.18-8.el5<BR>[main] INFO dart.DartServer - Initialized log4j from
jar:</FONT><A
href="file:/usr/local/dart/DartServer.jar!/dart/Resources/Server/log4j.properties"><FONT
size=2>file:/usr/local/dart/DartServer.jar!/dart/Resources/Server/log4j.properties</FONT></A><BR><FONT
size=2>[main] INFO dart.server.Server - Creating new Server: TestServer
TestServer mysql<BR>[main] ERROR freemarker.runtime -<BR>Expression now
is undefined on line 6, column 35 in
dart/Resources/Server/ServerSchema.sql.<BR>The problematic
instruction:<BR>----------<BR>==> ${now} [on line 6, column 33 in
dart/Resources/Server/ServerSchema.sql]<BR>----------<BR><BR>Java backtrace
for programmers:<BR>----------<BR>freemarker.core.InvalidReferenceException:
Expression now is undefined on line 6, column 35 in
dart/Resources/Server/ServerSchema.sql.<BR>
at
freemarker.core.TemplateObject.assertNonNull(TemplateObject.java:124)<BR>
at
freemarker.core.Expression.getStringValue(Expression.java:118)<BR>
at
freemarker.core.Expression.getStringValue(Expression.java:93)<BR>
at
freemarker.core.DollarVariable.accept(DollarVariable.java:76)<BR>
at
freemarker.core.Environment.visit(Environment.java:196)<BR>
at
freemarker.core.MixedContent.accept(MixedContent.java:92)<BR>
at
freemarker.core.Environment.visit(Environment.java:196)<BR>
at
freemarker.core.Environment.process(Environment.java:176)<BR>
at
freemarker.template.Template.process(Template.java:231)<BR>
at
dart.server.Server.Server.java:550)<BR>
at
dart.server.Server.createServer(Server.java:516)<BR>
at dart.DartServer.main(DartServer.java:103)<BR>[main] ERROR
dart.server.Server - Faild to generate
schema<BR></FONT></P></BLOCKQUOTE></BODY></HTML>