On Sun, Apr 13, 2008 at 10:49 AM, jackalista <[EMAIL PROTECTED]> wrote:
>
>  Hi,
>
>  I am getting a strange error creating a new project that I suspect may have
>  something to do with dependencies after reading about other occurrences of
>  this exception but they are all old posts.  I'm following the quick start
>  steps, running this for a struts modular archetype:
>
>  1. mvn archetype:create -DarchetypeGroupId=org.appfuse.archetypes
>  -DarchetypeArtifactId=appfuse-modular-struts
>  -DremoteRepositories=http://static.appfuse.org/releases
>  -DarchetypeVersion=2.0.1 -DgroupId=org.appfuse.wxyz -DartifactId=wxyz
>
>  2. cd core and run "mvn".
>  3. run mvn install (also tried mvn -U install from Mike H.'s advice in
>  archives, but it made no difference later, it always fails loading Spring
>  context)
>  3. cd ..\web and run "mvn jetty:run-war"
>
>  At this point I get a BeanDefinitionStoreException about
>  applicationContext-service.xml referencing a NoSuchMethodError and it can't
>  load the context.  I found ref's in the archives about this being > 1
>  versions of Spring (2.5 and 2.0.5) getting pulled in and some folks having
>  similar problems with mvn war:inplace but these are from much older dist's
>  (2.0M3, etc.) and I didn't run the in-place command, just the regular
>  project creation steps.  I *may* have fouled something on my machine by
>  trying JDK 6 first but I've tried to clear out all evidence of that and
>  reverted to JDK 1.5_15.

I'd be happy to try and fix this if I could reproduce. Unfortunately,
I tried your 3 steps above and step 3 seems to work fine for me.
Here's the console log for mvn jetty:run-war:

[INFO] Starting jetty 6.1.6 ...
2008-04-13 10:54:27.028::INFO:  jetty-6.1.6
2008-04-13 10:54:27.044::INFO:  Extract
jar:file:/Users/mraible/wxyz/web/target/wxyz-webapp-1.0-SNAPSHOT.war!/
to /Users/mraible/wxyz/web/target/work/webapp
log4j:WARN Continuable parsing error 53 and column 64
log4j:WARN Attribute value
"com.opensymphony.xwork2.util.OgnlValueStack" of type ID must be
unique within the document.
2008-04-13 10:54:31.693::INFO:  No Transaction manager found - if your
webapp requires one, please configure one.
2008-04-13 10:54:31.314:/:INFO:  Initializing Spring root WebApplicationContext
[wxyz] WARN [main] Settings.getLocale(143) | Settings: Could not parse
struts.locale setting, substituting default VM locale
2008-04-13 10:54:35.216::INFO:  Started [EMAIL PROTECTED]:8080
[INFO] Started Jetty Server
[INFO] Starting scanner at interval of 3 seconds.

$ mvn -version
Maven version: 2.0.8
Java version: 1.5.0_13
OS name: "mac os x" version: "10.5.2" arch: "i386" Family: "unix"

Matt
>
>  I also tried the steps at this link:
>  
> http://www.pben.cn/main.bbscs?action=read&bid=33&postID=8a8a8a8f16aebddb0116afde716102c2
>
>  namely:
>
>  1. mvn archetype:create -DarchetypeGroupId=org.appfuse.archetypes
>  -DarchetypeArtifactId=appfuse-modular-struts
>  -DremoteRepositories=http://static.appfuse.org/releases
>  -DarchetypeVersion=2.0.1 -DgroupId=com.mycompany.app -DartifactId=myproject
>  2. change database profile to use oracle XE, and  port of jetty become 8181
>  3. mvn install -N,  from /core/
>  4. mvn clean from /
>  5. mvn, from /
>
>  And I get the same Spring error in a web test during step 5.  One thing is
>  that I first tried running JDK 6 on this (new) machine, but backed off when
>  I started seeing these problems but reverting to JDK1.5_15 didn't help.  I
>  also tried deleting everything from the repository in my home dir (win32)
>  which caused all kinds of stuff to get downloaded but resulted in the same
>  error.
>  --
>  View this message in context: 
> http://www.nabble.com/BeanDefinitionStoreException%3A-Unexpected-exception-parsing-XML-...-applicationContext-service.xml-tp16660149s2369p16660149.html
>  Sent from the AppFuse - User mailing list archive at Nabble.com.
>
>
>  ---------------------------------------------------------------------
>  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]

Reply via email to