Please make sure that you have your web.xml file inside your
src/main/webapp/WEB-INF directory
Regards
- allan
Michael McCrann wrote:
Christian,
Does your web.xml exist at:
D:\eclipse\workspace\MyProject\target\MyWebApp\WEB-INF\web.xml.
You can tell the plugin where to find your web.xml by adding the snippet below
to your pom.xml:
<plugins>
<plugin>
<artifactId>maven-war-plugin</artifactId>
<version>2.0-beta-1</version>
<configuration>
<webXml>web/web.xml</webXml>
</configuration>
</plugin>
</plugins>
-----Original Message-----
From: Christian Schlaefcke [mailto:[EMAIL PROTECTED]
Sent: Tuesday, 18 October 2005 6:01 PM
To: Maven Users List
Subject: [m2] Another exception when executing war:war
Hi folks,
OK, I switched to m2 RC and it looks like I get one step further. But now
another issue is rising up:
[INFO] [war:war]
[INFO] Exploding webapp...
[INFO] Copy webapp resources to
D:\eclipse\workspace\MyProject\target\MyWebApp
[INFO] Assembling webapp MyWebApp in
D:\eclipse\workspace\MyProject\target\MyWebApp
[INFO] Generating war D:\eclipse\workspace\MyProject\target\MyWebApp.war
[INFO]
----------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
----------------------------------------------------------------------------
[INFO] Error assembling WAR
Embedded error: Deployment descriptor:
D:\eclipse\workspace\MyProject\target\MyWebApp\WEB-INF\web.xml does not
exist.
[INFO]
----------------------------------------------------------------------------
[DEBUG] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Error assembling WAR
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:544)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:469)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:448)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:301)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:268)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:137)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:316)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:113)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:249)
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:324)
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
assembling WAR
at org.apache.maven.plugin.war.WarMojo.execute(WarMojo.java:91)
at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:399)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:519)
... 16 more
Caused by: org.codehaus.plexus.archiver.ArchiverException: Deployment
descriptor: D:\eclipse\workspace\MyProject\target\MyWebApp\WEB-INF\web.xml
does not exist.
at
org.codehaus.plexus.archiver.war.WarArchiver.setWebxml(WarArchiver.java:73)
at
org.apache.maven.plugin.war.WarMojo.performPackaging(WarMojo.java:121)
at org.apache.maven.plugin.war.WarMojo.execute(WarMojo.java:86)
I have the web.xml file in my project folder under \WebRoot\WEB-INF. It
seems like its not beeing copied to the target dir.
How can I resolve this?
Thanks & Regards,
Chris
Brett Porter had this to say about the error
"There was a required update to the reporting API. Compatible plugins
will be republished in the near future. If you are able to rebuild the
plugin from SVN that should work as is."
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of David H.
DeWolf
Sent: Monday, October 17, 2005 8:19 AM
To: Maven Users List
Subject: Re: [m2] NoSuchMethodError exception when executing site:site
Zheng,
I got the same thing over the weekend and found that Maven was
downloading the most recent plugins but I didn't have the most recent
dist to go with them. To get things working (at least partway), I
cleared out my maven plugings from the repo and installed M2 RC.
This got me further, but I still had an issue. . .if I remember, it had
something to do with trying to generate a site from a project without
any source. If I create a main/java dir or generate the site from a
project which contains source, it execs fine.
David
On 10/17/05, Zhong ZHENG <[EMAIL PROTECTED]> wrote:
Hi, there,
I am trying to use m2 to generate the project site. When executing
site:site, i got the following NoSuchMethodError exception:
[INFO] Searching repository for plugin with prefix: 'site'.
[INFO]
----------------------------------------------------------------------
------ [INFO] Building Apache Pluto Site Chinese Translation [INFO]
task-segment: [site:site] [INFO]
----------------------------------------------------------------------
------ [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] [site:site]
---------------------------------------------------
constituent[0]: file:/D:/javasoft/maven-2.0-beta-3/lib/maven-
core-2.0-beta-3.jar
constituent[1]: file:/D:/javasoft/maven-2.0-beta-3/lib/maven-
artifact-manager-2.0-beta-3.jar
constituent[2]: file:/D:/javasoft/maven-2.0-beta-3/lib/plexus-
input-handler-1.0-alpha-2.jar
constituent[3]: file:/D:/javasoft/maven-2.0-beta-3/lib/maven-
plugin-api-2.0-beta-3.jar
constituent[4]: file:/D:/javasoft/maven-2.0-beta-3/lib/maven-
plugin-descriptor-2.0-beta-3.jar
constituent[5]: file:/D:/javasoft/maven-2.0-beta-3/lib/maven-
artifact-2.0-beta-3.jar
constituent[6]:
file:/D:/javasoft/maven-2.0-beta-3/lib/commons-cli-1.0.jar
constituent[7]: file:/D:/javasoft/maven-2.0-beta-3/lib/maven-
model-2.0-beta-3.jar
constituent[8]: file:/D:/javasoft/maven-2.0-beta-3/lib/maven-
settings-2.0-beta-3.jar
constituent[9]: file:/D:/javasoft/maven-2.0-beta-3/lib/maven-
repository-metadata-2.0-beta-3.jar
constituent[10]:
file:/D:/javasoft/maven-2.0-beta-3/lib/jsch-0.1.21.jar
constituent[11]: file:/D:/javasoft/maven-2.0-beta-3/lib/wagon-
provider-api-1.0-alpha-4.jar
constituent[12]: file:/D:/javasoft/maven-2.0-beta-3/lib/maven-
monitor-2.0-beta-3.jar
constituent[13]: file:/D:/javasoft/maven-2.0-beta-3/lib/maven-
reporting-api-2.0-beta-3.jar
constituent[14]: file:/D:/javasoft/maven-2.0-beta-3/lib/maven-
profile-2.0-beta-3.jar
constituent[15]: file:/D:/javasoft/maven-2.0-beta-3/lib/wagon-
file-1.0-alpha-4.jar
constituent[16]: file:/D:/javasoft/maven-2.0-beta-3/lib/maven-
project-2.0-beta-3.jar
constituent[17]: file:/D:/javasoft/maven-2.0-beta-3/lib/maven-
plugin-registry-2.0-beta-3.jar
constituent[18]:
file:/D:/javasoft/maven-2.0-beta-3/lib/jline-0.9.1.jar
constituent[19]: file:/D:/javasoft/maven-2.0-beta-3/lib/maven-
plugin-parameter-documenter-2.0-beta-3.jar
constituent[20]: file:/D:/javasoft/maven-2.0-beta-3/lib/doxia-
sink-api-1.0-alpha-4.jar
constituent[21]: file:/D:/javasoft/maven-2.0-beta-3/lib/wagon-
ssh-1.0-alpha-4.jar
constituent[22]: file:/D:/javasoft/maven-2.0-beta-3/lib/wagon-
http-lightweight-1.0-alpha-4.jar
---------------------------------------------------
Exception in thread "main" java.lang.NoSuchMethodError:
org.apache.maven.reporting.MavenReport.canGenerateReport()Z
at
org.apache.maven.plugins.site.SiteMojo.filterReports(SiteMojo.java:407
) at org.apache.maven.plugins.site.SiteMojo.execute(SiteMojo.java:221)
at org.apache.maven.plugin.DefaultPluginManager.executeMojo(
DefaultPluginManager.java:417)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(
DefaultLifecycleExecutor.java:554)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneG
oal
(DefaultLifecycleExecutor.java:517)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(
DefaultLifecycleExecutor.java:498)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegment
s
(
DefaultLifecycleExecutor.java:307)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(
DefaultLifecycleExecutor.java:149)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:217)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:247)
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:324)
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)
But about three days ago, when executing site:site, I didn't get such
exception. So what's wrong with my project reports?
Thanks in advance.
--
ZHENG Zhong
1 Avenue Alphand
75116 Paris, France
+33 6 76 80 45 90
_______________
Siebel
IT'S ALL ABOUT THE CUSTOMER
Visit www.siebel.com
This e-mail message is for the sole use of the intended recipient(s) and
contains confidential and/or privileged information belonging to Siebel
Systems, Inc. or its customers or partners. Any unauthorized review, use,
copying, disclosure or distribution of this message is strictly
prohibited. If you are not an intended recipient of this message, please
contact the sender by reply e-mail and destroy all soft and hard copies of
the message and any attachments. Thank you for your cooperation.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
NOTICE
This e-mail and any attachments are confidential and may contain copyright
material of Macquarie Bank or third parties. If you are not the intended
recipient of this email you should not read, print, re-transmit, store or act
in reliance on this e-mail or any attachments, and should destroy all copies of
them. Macquarie Bank does not guarantee the integrity of any emails or any
attached files. The views or opinions expressed are the author's own and may
not reflect the views or opinions of Macquarie Bank.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]