+ Error stacktraces are turned on. [INFO] Scanning for projects... [INFO] ------------------------------------------------------------------------ [INFO] Building Generate WADL - Jersey sample [INFO] task-segment: [clean, install] [INFO] ------------------------------------------------------------------------ [INFO] [clean:clean] [INFO] Deleting directory /export/home/japod/workspace/jersey-trunk/jersey/samples/generate-wadl/target [INFO] [jaxb:generate {execution: default}] [INFO] The setting was not defined, assuming *.xjb. [INFO] schemaDirectory: /export/home/japod/workspace/jersey-trunk/jersey/samples/generate-wadl/src/main/xsd [INFO] includeSchemas: [**/*.xsd] [INFO] excludeSchemas: null [INFO] includeBindings: [*.xjb] [INFO] excludeBindings: null [INFO] generatePackage: com.sun.jersey.samples.generatewadl.model [INFO] generateDirectory: /export/home/japod/workspace/jersey-trunk/jersey/samples/generate-wadl/target/generated-sources/xjc [INFO] readOnly: false [INFO] extension: true [INFO] catalog: null [INFO] removeOldOutput: false [INFO] strict: false [INFO] verbose: true [INFO] pom dependency: /export/home/japod/workspace/jersey-trunk/jersey/samples/generate-wadl/pom.xml [INFO] /export/home/japod/workspace/jersey-trunk/jersey/samples/generate-wadl/target/generated-sources/xjc/com/sun/jersey/samples/generatewadl/model is not found and thus excluded from the dependency check [INFO] Schema dependency: /export/home/japod/workspace/jersey-trunk/jersey/samples/generate-wadl/src/main/xsd/schema.xsd [INFO] XJC compile [INFO] build id of XJC is 2.0.2-b01-fcs [INFO] Checking timestamp of /export/home/japod/workspace/jersey-trunk/jersey/samples/generate-wadl/src/main/xsd/schema.xsd [INFO] Checking timestamp of /export/home/japod/workspace/jersey-trunk/jersey/samples/generate-wadl/pom.xml [INFO] Checking timestamp of /export/home/japod/workspace/jersey-trunk/jersey/samples/generate-wadl/src/main/xsd/schema.xsd [INFO] the last modified time of the inputs is 1234370686000 [INFO] the last modified time of the outputs is -9223372036854775808 [INFO] Compiling file:/export/home/japod/workspace/jersey-trunk/jersey/samples/generate-wadl/src/main/xsd/schema.xsd [INFO] Writing output to /export/home/japod/workspace/jersey-trunk/jersey/samples/generate-wadl/target/generated-sources/xjc [INFO] [resources:resources] [INFO] Using default encoding to copy filtered resources. [INFO] [compiler:compile] [INFO] Compiling 12 source files to /export/home/japod/workspace/jersey-trunk/jersey/samples/generate-wadl/target/classes [INFO] Setting property: classpath.resource.loader.class => 'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'. [INFO] Setting property: velocimacro.messages.on => 'false'. [INFO] Setting property: resource.loader => 'classpath'. [INFO] Setting property: resource.manager.logwhenfound => 'false'. [INFO] ************************************************************** [INFO] Starting Jakarta Velocity v1.4 [INFO] RuntimeInstance initializing. [INFO] Default Properties File: org/apache/velocity/runtime/defaults/velocity.properties [INFO] Default ResourceManager initializing. (class org.apache.velocity.runtime.resource.ResourceManagerImpl) [INFO] Resource Loader Instantiated: org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader [INFO] ClasspathResourceLoader : initialization starting. [INFO] ClasspathResourceLoader : initialization complete. [INFO] ResourceCache : initialized. (class org.apache.velocity.runtime.resource.ResourceCacheImpl) [INFO] Default ResourceManager initialization complete. [INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Literal [INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Macro [INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Parse [INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Include [INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Foreach [INFO] Created: 20 parsers. [INFO] Velocimacro : initialization starting. [INFO] Velocimacro : adding VMs from VM library template : VM_global_library.vm [ERROR] ResourceManager : unable to find resource 'VM_global_library.vm' in any resource loader. [INFO] Velocimacro : error using VM library template VM_global_library.vm : org.apache.velocity.exception.ResourceNotFoundException: Unable to find resource 'VM_global_library.vm' [INFO] Velocimacro : VM library template macro registration complete. [INFO] Velocimacro : allowInline = true : VMs can be defined inline in templates [INFO] Velocimacro : allowInlineToOverride = false : VMs defined inline may NOT replace previous VM definitions [INFO] Velocimacro : allowInlineLocal = false : VMs defined inline will be global in scope if allowed. [INFO] Velocimacro : initialization complete. [INFO] Velocity successfully started. [INFO] [javadoc:javadoc {execution: default}] Loading source files for package com.sun.jersey.samples.generatewadl.resources... Constructing Javadoc information... [WARNING] Javadoc Warnings [WARNING] Feb 20, 2009 11:42:12 AM com.sun.jersey.wadl.resourcedoc.ResourceDoclet start [WARNING] INFO: Wrote /export/home/japod/workspace/jersey-trunk/jersey/samples/generate-wadl/target/classes/resourcedoc.xml [INFO] [wadl:generate {execution: generate}] [INFO] Loading wadlGenerator com.sun.jersey.server.wadl.generators.WadlGeneratorApplicationDoc [ERROR] java.lang.Exception: Could not create instance of configured property applicationDocsFile from value /export/home/japod/workspace/jersey-trunk/jersey/samples/generate-wadl/src/main/doc/application-doc.xml, using the constructor public java.io.File(java.lang.String,java.lang.String) at com.sun.jersey.wadl.GenerateWadlMojo.setProperty(GenerateWadlMojo.java:237) at com.sun.jersey.wadl.GenerateWadlMojo.loadWadlGenerator(GenerateWadlMojo.java:211) at com.sun.jersey.wadl.GenerateWadlMojo.executeWithClasspath(GenerateWadlMojo.java:138) at com.sun.jersey.wadl.AbstractMojoProjectClasspathSupport.execute(AbstractMojoProjectClasspathSupport.java:98) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:451) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:558) 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:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.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: java.lang.IllegalArgumentException: wrong number of arguments at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:494) at com.sun.jersey.wadl.GenerateWadlMojo.setProperty(GenerateWadlMojo.java:235) ... 21 more [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Could not write wadl file Embedded error: Could not create instance of configured property applicationDocsFile from value /export/home/japod/workspace/jersey-trunk/jersey/samples/generate-wadl/src/main/doc/application-doc.xml, using the constructor public java.io.File(java.lang.String,java.lang.String) wrong number of arguments [INFO] ------------------------------------------------------------------------ [INFO] Trace org.apache.maven.lifecycle.LifecycleExecutionException: Could not write wadl file 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:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.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: Could not write wadl file at com.sun.jersey.wadl.GenerateWadlMojo.executeWithClasspath(GenerateWadlMojo.java:166) at com.sun.jersey.wadl.AbstractMojoProjectClasspathSupport.execute(AbstractMojoProjectClasspathSupport.java:98) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:451) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:558) ... 16 more Caused by: java.lang.Exception: Could not create instance of configured property applicationDocsFile from value /export/home/japod/workspace/jersey-trunk/jersey/samples/generate-wadl/src/main/doc/application-doc.xml, using the constructor public java.io.File(java.lang.String,java.lang.String) at com.sun.jersey.wadl.GenerateWadlMojo.setProperty(GenerateWadlMojo.java:237) at com.sun.jersey.wadl.GenerateWadlMojo.loadWadlGenerator(GenerateWadlMojo.java:211) at com.sun.jersey.wadl.GenerateWadlMojo.executeWithClasspath(GenerateWadlMojo.java:138) ... 19 more Caused by: java.lang.IllegalArgumentException: wrong number of arguments at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:494) at com.sun.jersey.wadl.GenerateWadlMojo.setProperty(GenerateWadlMojo.java:235) ... 21 more [INFO] ------------------------------------------------------------------------ [INFO] Total time: 10 seconds [INFO] Finished at: Fri Feb 20 11:42:12 CET 2009 [INFO] Final Memory: 21M/165M [INFO] ------------------------------------------------------------------------