I would try deleting the first few characters in sample-data.xml.

Matt

On Sun, May 17, 2009 at 9:35 PM, Stefan Mailing <
random.mailinglist.pos...@gmail.com> wrote:

> Hello,
>
> I'm quite eager to try out appfuse but unfortunately I'm encountering the
> following problem while running "mvn":
>
> [INFO] [compiler:testCompile]
> [INFO] Nothing to compile - all classes are up to date
> 10:03:53,382  INFO org.hibernate.connection.DriverManagerConnectionProvider
> - cleaning up connection pool:
> jdbc:mysql://localhost/Hello1?createDatabaseIfNotExist=true&amp;useUnicode=true&amp;characterEncoding=utf-8
> [INFO] [dbunit:operation {execution: test-compile}]
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Error executing database operation: CLEAN_INSERT
>
> Embedded error: org.xml.sax.SAXParseException: Content is not allowed in
> prolog.
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Trace
> org.apache.maven.lifecycle.LifecycleExecutionException: Error executing
> database operation: CLEAN_INSERT
>     at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:583)
>     at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:499)
>     at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:478)
>     at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:330)
>     at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:291)
>     at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142)
>     at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
>     at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
>     at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>     at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>     at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>     at java.lang.reflect.Method.invoke(Method.java:616)
>     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
> database operation: CLEAN_INSERT
>     at
> org.codehaus.mojo.dbunit.OperationMojo.execute(OperationMojo.java:110)
>     at
> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:451)
>     at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:558)
>     ... 16 more
> Caused by: org.dbunit.dataset.DataSetException:
> org.xml.sax.SAXParseException: Content is not allowed in prolog.
>     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)
>     ... 18 more
> [INFO]
> ------------------------------------------------------------------------
>
> I have been googling this issue and also found a very similar post in this
> mailinglist archive.
> Apparently, the problem lies within the src/test/resources/sample-data.xml
> XML file but I can't find any mistakes in that specific file.
>
> Any ideas how I can solve this issue?
>
> Thanks,
> Stefan
>
>
>

Reply via email to