[Dart] Dart Server Creation and MySQL

Blezek, Daniel J (GE, Research) blezek at crd.ge.com
Wed Jun 20 13:53:39 EDT 2007


Hi Ben,
 
  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.
 
Thanks,
-dan
 


________________________________

	From: dart-bounces+blezek=crd.ge.com at public.kitware.com
[mailto:dart-bounces+blezek=crd.ge.com at public.kitware.com] On Behalf Of
Ben Snider
	Sent: Wednesday, June 20, 2007 1:06 PM
	To: dart at public.kitware.com
	Subject: [Dart] Dart Server Creation and MySQL 
	
	

	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.
	
	java -jar $DART/DartServer.jar --createserver TestServer -d
mysql
	
	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.
	
	[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
	[main] INFO dart.DartServer  - JVM java.class.version: 50.0
	[main] INFO dart.DartServer  - JVM java.vendor: Sun Microsystems
Inc.
	[main] INFO dart.DartServer  - JVM java.vendor.url:
http://java.sun.com/ <http://java.sun.com/> 
	[main] INFO dart.DartServer  - JVM java.version: 1.6.0_01
	[main] INFO dart.DartServer  - JVM os.arch: i386
	[main] INFO dart.DartServer  - JVM os.name: Linux
	[main] INFO dart.DartServer  - JVM os.version: 2.6.18-8.el5
	[main] INFO dart.DartServer  - Initialized log4j from
jar:file:/usr/local/dart/DartServer.jar!/dart/Resources/Server/log4j.pro
perties
<file:/usr/local/dart/DartServer.jar!/dart/Resources/Server/log4j.proper
ties> 
	[main] INFO dart.server.Server  - Creating new Server:
TestServer TestServer mysql
	[main] ERROR freemarker.runtime  -
	Expression now is undefined on line 6, column 35 in
dart/Resources/Server/ServerSchema.sql.
	The problematic instruction:
	----------
	==> ${now} [on line 6, column 33 in
dart/Resources/Server/ServerSchema.sql]
	----------
	
	Java backtrace for programmers:
	----------
	freemarker.core.InvalidReferenceException: Expression now is
undefined on line 6, column 35 in
dart/Resources/Server/ServerSchema.sql.
	        at
freemarker.core.TemplateObject.assertNonNull(TemplateObject.java:124)
	        at
freemarker.core.Expression.getStringValue(Expression.java:118)
	        at
freemarker.core.Expression.getStringValue(Expression.java:93)
	        at
freemarker.core.DollarVariable.accept(DollarVariable.java:76)
	        at
freemarker.core.Environment.visit(Environment.java:196)
	        at
freemarker.core.MixedContent.accept(MixedContent.java:92)
	        at
freemarker.core.Environment.visit(Environment.java:196)
	        at
freemarker.core.Environment.process(Environment.java:176)
	        at
freemarker.template.Template.process(Template.java:231)
	        at dart.server.Server.Server.java:550)
	        at dart.server.Server.createServer(Server.java:516)
	        at dart.DartServer.main(DartServer.java:103)
	[main] ERROR dart.server.Server  - Faild to generate schema
	

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/dart/attachments/20070620/d9d1f7a2/attachment.htm


More information about the Dart mailing list