Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Java > Java Open Source > BOOK: Beginning Spring Framework 2 ISBN: 978-0-470-10161-2
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: Beginning Spring Framework 2 ISBN: 978-0-470-10161-2
This is the forum to discuss the Wrox book Beginning Spring Framework 2 by Thomas Van de Velde, Bruce Snyder, Christian Dupuis, Sing Li, Anne Horton, Naveen Balani; ISBN: 9780470101612
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning Spring Framework 2 ISBN: 978-0-470-10161-2 section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old September 25th, 2008, 04:56 AM
Registered User
 
Join Date: Sep 2008
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default New Compilation FATAL ERROR maven 2.0.9

Hi,
when using maven 2.0.8 the sample source code runs fine, after the pom modifications were applied mentioned in a previous thread by "vanessaz".
So far so good.

Now, if I try the same under maven 2.0.9, the build fails. For the test I cleaned the whole maven repository first. I am a newbie in using maven. For me the error message seems to show an incompatibility between the plexus-utils-1.1.jar and maven.

Any suggestions?
Best regards
Klemens

Here is the interesting part of the maven output:

Retrieving schema at 'XWebEmailValidation.xsd', relative to 'http://ws.xwebservices.com/XWebEmailValidation/V2/XWebEmail
Validation.wsdl'.
com\xwebservices\ws\xwebemailvalidation\emailvalid ation\v2\messages\ObjectFactory.java
com\xwebservices\ws\xwebemailvalidation\emailvalid ation\v2\messages\ValidateEmailRequest.java
com\xwebservices\ws\xwebemailvalidation\emailvalid ation\v2\messages\ValidateEmailResponse.java
com\xwebservices\ws\xwebemailvalidation\emailvalid ation\v2\messages\package-info.java
com\wrox\webservice\emailvalidation\client\EmailVa lidationClient.java
com\wrox\webservice\emailvalidation\client\XWebEma ilValidationInterface.java
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[FATAL ERROR] org.apache.maven.plugin.resources.ResourcesMojo#ex ecute() caused a linkage error (java.lang.NoClassDefFoundError) and may be out-of-date. Check the realms:
[FATAL ERROR] Plugin realm = app0.child-container[org.apache.maven.plugins:maven-resources-plugin]
urls[0] = file:/c:/syncroTESSJ/maven-repository/repository/org/apache/maven/plugins/maven-resources-plugin/2.2/maven-resources-plugin-.2.jar
urls[1] = file:/c:/syncroTESSJ/maven-repository/repository/org/codehaus/plexus/plexus-utils/1.1/plexus-utils-1.1.jar
[FATAL ERROR] Container realm = plexus.core
urls[0] = file:/c:/syncroTESSJ/apache-maven-2.0.9/lib/maven-2.0.9-uber.jar
urls[1] = file:/c:/syncroTESSJ/apache-maven-2.0.9/lib/maven-resources-plugin-2.2.jar
[INFO] ------------------------------------------------------------------------
[ERROR] FATAL ERROR
[INFO] ------------------------------------------------------------------------
[INFO] org/codehaus/plexus/util/DirectoryScanner
org.codehaus.plexus.util.DirectoryScanner
[INFO] ------------------------------------------------------------------------
[INFO] Trace
java.lang.NoClassDefFoundError: org/codehaus/plexus/util/DirectoryScanner
        at org.apache.maven.plugin.resources.ResourcesMojo.co pyResources(ResourcesMojo.java:141)
        at org.apache.maven.plugin.resources.ResourcesMojo.ex ecute(ResourcesMojo.java:100)
        at org.apache.maven.plugin.DefaultPluginManager.execu teMojo(DefaultPluginManager.java:451)
        at org.apache.maven.lifecycle.DefaultLifecycleExecuto r.executeGoals(DefaultLifecycleExecutor.java:558)
        at org.apache.maven.lifecycle.DefaultLifecycleExecuto r.executeGoalWithLifecycle(DefaultLifecycleExecuto r.java:49
9)
        at org.apache.maven.lifecycle.DefaultLifecycleExecuto r.executeGoal(DefaultLifecycleExecutor.java:478)
        at org.apache.maven.lifecycle.DefaultLifecycleExecuto r.executeGoalAndHandleFailures(DefaultLifecycleExe cutor.jav
a:330)
        at org.apache.maven.lifecycle.DefaultLifecycleExecuto r.executeTaskSegments(DefaultLifecycleExecutor.jav a:291)
        at org.apache.maven.lifecycle.DefaultLifecycleExecuto r.execute(DefaultLifecycleExecutor.java:142)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMav en.java:336)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven .java:129)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:2 87)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.codehaus.classworlds.Launcher.launchEnhanced(L auncher.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.ja va:375)
Caused by: java.lang.ClassNotFoundException: org.codehaus.plexus.util.DirectoryScanner
        at java.net.URLClassLoader$1.run(URLClassLoader.java: 200)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.j ava:188)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:3 06)
        at org.codehaus.classworlds.RealmClassLoader.loadClas sDirect(RealmClassLoader.java:195)
        at org.codehaus.classworlds.DefaultClassRealm.loadCla ss(DefaultClassRealm.java:255)
        at org.codehaus.classworlds.RealmClassLoader.loadClas s(RealmClassLoader.java:214)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:2 51)
        at java.lang.ClassLoader.loadClassInternal(ClassLoade r.java:319)
        ... 20 more
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 16 seconds
[INFO] Finished at: Thu Sep 25 10:41:06 CEST 2008
[INFO] Final Memory: 12M/21M
[INFO] ------------------------------------------------------------------------



Reply With Quote
  #2 (permalink)  
Old December 4th, 2016, 08:34 AM
Authorized User
Points: 196, Level: 3
Points: 196, Level: 3 Points: 196, Level: 3 Points: 196, Level: 3
Activity: 33%
Activity: 33% Activity: 33% Activity: 33%
 
Join Date: Mar 2012
Posts: 48
Thanks: 0
Thanked 0 Times in 0 Posts
Default Maven usage

Hi
Whenevever you want to modify the POM.it is mandatory to check if your POM so modified is an effective one or not.Hence please try the following

maven help:effective-pom

( please ensure the pom requring/modified one is placed in the maven directory)

Then you can make use of the newly released pom for your needs.
Please note that this is inbuilt method.
Thanks
As
muthukutta1
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Compilation FATAL ERROR bouca91 BOOK: Beginning Spring Framework 2 ISBN: 978-0-470-10161-2 1 August 17th, 2008 02:57 PM
FATAL ERROR. Help me please??? steviej1 BOOK: Beginning PHP5, Apache, and MySQL Web Development ISBN: 978-0-7645-7966-0 11 February 27th, 2007 08:05 AM
Fatal Error?? dparsons ASP.NET 1.0 and 1.1 Professional 0 December 18th, 2006 01:55 PM
fatal error!!!! Ashleek007 Beginning PHP 6 October 9th, 2004 11:25 AM
Fatal error: singhzubin BOOK: Beginning PHP4/PHP 5 ISBN: 978-0-7645-4364-7; v5 ISBN: 978-0-7645-5783-5 2 April 11th, 2004 05:14 AM



All times are GMT -4. The time now is 04:15 AM.


Powered by vBulletin®
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.