On 4/9/07, nmall <[EMAIL PROTECTED]> wrote:

Hi,

 Do we need to populate sample-data.xml for all tables that we are planning
to use in an appfuse application.

No - only the ones you plan on running tests against with default
data.  It's very possible to write your tests so they don't depend on
default data.  It's a little bit more difficult in the web tier, but
still not impossible.

Matt

I changed one of the existing tables and
it is already barfing on some SAXParse exception when I run
   mvn  -e jetty:run-war. Is there no way around this - it seems very
painful to populate this sample-data.xml. Thanks for any help/pointers!

[INFO] Compiling 1 source file to C:\work\myapp\web\target\test-classes
[INFO] [dbunit:operation {execution: test-compile}]
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Error executing database operation: CLEAN_INSERT

Embedded error: org.xml.sax.SAXParseException: The element type "value" must
be
terminated by the matching end-tag "</value>".
[INFO]
------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Error executing
database
 operation: CLEAN_INSERT
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
ultLifecycleExecutor.java:564)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLi
fecycle(DefaultLifecycleExecutor.java:480)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.forkProjectLifecy
cle(DefaultLifecycleExecutor.java:896)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.forkLifecycle(Def
aultLifecycleExecutor.java:739)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
ultLifecycleExecutor.java:510)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandalone
Goal(DefaultLifecycleExecutor.java:493)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau
ltLifecycleExecutor.java:463)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan
dleFailures(DefaultLifecycleExecutor.java:311)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen
ts(DefaultLifecycleExecutor.java:278)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
fecycleExecutor.java:143)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:272)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at
org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
        at
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)

        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.MojoExecutionException: Error executing
datab
ase operation: CLEAN_INSERT
        at
org.codehaus.mojo.dbunit.OperationMojo.execute(OperationMojo.java:110
)
        at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi
nManager.java:443)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
ultLifecycleExecutor.java:539)
        ... 20 more
Caused by: org.dbunit.dataset.DataSetException:
org.xml.sax.SAXParseException: T
he element type "value" must be terminated by the matching end-tag
"</value>".
        at org.dbunit.dataset.xml.XmlProducer.produce(XmlProducer.java:121)
        at org.dbunit.dataset.CachedDataSet.<init>(CachedDataSet.java:71)
        at org.dbunit.ant.AbstractStep.getSrcDataSet(AbstractStep.java:148)
        at org.dbunit.ant.Operation.execute(Operation.java:182)
        at
org.codehaus.mojo.dbunit.OperationMojo.execute(OperationMojo.java:101
)
        ... 22 more
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 8 seconds
[INFO] Finished at: Mon Apr 09 13:04:39 EDT 2007
[INFO] Final Memory: 14M/28M
[INFO]
------------------------------------------------------------------------
--
View this message in context: 
http://www.nabble.com/sample-data.xml-tf3548401s2369.html#a9905772
Sent from the AppFuse - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




--
http://raibledesigns.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to