eed3si9n/scalaxb — Issue #127: key not found - include problem?
Author: kry
Created: 2011-12-02 20:00:32+00:00
State: open

I have tried to use scalaxb on the xsd schema's provided by the government for taxes. After trying a lot of different things I found out that the key not found issues are caused by the include statements. The xsd files I used can be found here:
http://minfin.fgov.be/portail2/nl/e-services/intervat/calendrier.html

I started with version 8.0.x

The IDE I'm using can find the files so is this scalaxb related or my configuration?

Thanks in advance.

This is one of the exceptions I get:
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.scalaxb:scalaxb-maven-plugin:0.6.6:generate (scalaxb) on project core: Error running scalaxb
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:217)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
Caused by: org.apache.maven.plugin.MojoExecutionException: Error running scalaxb
at org.scalaxb.maven.ScalaxbMojo.invokeCompiler(ScalaxbMojo.java:269)
at org.scalaxb.maven.ScalaxbMojo.generateBindings(ScalaxbMojo.java:249)
at org.scalaxb.maven.ScalaxbMojo.execute(ScalaxbMojo.java:237)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
... 19 more
Caused by: java.util.NoSuchElementException: key not found: file:/core/src/main/resources/xsd/isotypes_v1.xsd
at scala.collection.MapLike$class.default(MapLike.scala:224)
at scala.collection.mutable.ListMap.default(ListMap.scala:37)
at scala.collection.MapLike$class.apply(MapLike.scala:135)
at scala.collection.mutable.ListMap.apply(ListMap.scala:37)
at scalaxb.compiler.xsd.XsdContext.setOuterNamespace(Decl.scala:63)
at scalaxb.compiler.wsdl11.WsdlContext.setOuterNamespace(Driver.scala:196)
at scalaxb.compiler.Module$$anonfun$processUnnamedIncludes$1$3$$anonfun$apply$8.apply(Module.scala:328)
at scalaxb.compiler.Module$$anonfun$processUnnamedIncludes$1$3$$anonfun$apply$8.apply(Module.scala:326)
at scala.collection.LinearSeqOptimized$class.foreach(LinearSeqOptimized.scala:59)
at scala.collection.immutable.List.foreach(List.scala:45)
at scalaxb.compiler.Module$$anonfun$processUnnamedIncludes$1$3.apply(Module.scala:326)
at scalaxb.compiler.Module$$anonfun$processUnnamedIncludes$1$3.apply(Module.scala:320)
at scala.collection.TraversableLike$WithFilter$$anonfun$foreach$1.apply(TraversableLike.scala:704)
at scala.collection.immutable.Range.foreach(Range.scala:75)
at scala.collection.TraversableLike$WithFilter.foreach(TraversableLike.scala:703)
at scalaxb.compiler.Module$class.processUnnamedIncludes$1(Module.scala:320)
at scalaxb.compiler.Module$class.processReaders(Module.scala:337)
at scalaxb.compiler.wsdl11.Driver.processReaders(Driver.scala:35)
at scalaxb.compiler.Module$class.processFiles(Module.scala:153)
at scalaxb.compiler.wsdl11.Driver.processFiles(Driver.scala:35)
at scalaxb.compiler.Main$.start(Main.scala:113)
at scalaxb.compiler.Main.start(Main.scala)
at org.scalaxb.maven.ScalaxbMojo.invokeCompiler(ScalaxbMojo.java:263)
... 23 more