If you do mvn -X, do you see different versions of Spring in your
dependencies list?

Matt

On Mon, Apr 28, 2008 at 11:09 AM, Seba <[EMAIL PROTECTED]> wrote:
> i have already added that dependency into dependencies tag:
>
>  <dependencies>
>    ...
>
>    <dependency>
>            <groupId>org.springframework</groupId>
>            <artifactId>spring-test</artifactId>
>            <version>${spring.version}</version>
>            <optional>true</optional>
>        </dependency>
>        *<dependency>
>
>            <groupId>org.springframework</groupId>
>            <artifactId>spring-web</artifactId>
>            <version>${spring.version}</version>
>        </dependency>*
>
>        <dependency>
>            <groupId>org.springframework</groupId>
>            <artifactId>spring-jdbc</artifactId>
>
>            <version>${spring.version}</version>
>        </dependency>
>    ...
>  </dependencies>
>
>  Matt Raible escribió:
>
>
>
> > Adding the following to your pom.xml should do the trick.
> >
> >        <dependency>
> >            <groupId>org.springframework</groupId>
> >            <artifactId>spring-web</artifactId>
> >            <version>${spring.version}</version>
> >        </dependency>
> >
> > Matt
> >
> > On Mon, Apr 28, 2008 at 10:58 AM, Seba <[EMAIL PROTECTED]> wrote:
> >
> >
> > > Hi! i'm getting the same errors on both Ubuntu 7.10 and Windows. I'm
> trying
> > > to start a new proyect but i can't make it woks
> > >
> > >  enviroment:
> > >  maven 2.09 (new repo)
> > >  jdk1.5.0_06
> > >  mysql-5.0.51b
> > >
> > >
> > >  my steps were:
> > >  1) C:\Source>mvn archetype:create
> -DarchetypeGroupId=org.appfuse.archetypes
> > > -DarchetypeArtifactId=appfuse-basic-struts
> > > -DremoteRepositories=http://static.appfuse.org/releases^
> > > -DarchetypeVersion=2.0.1 -DgroupId=com.mycompany.app
> -DartifactId=myproject
> > >
> > >  2) make changes to pom.xml file (changed mysql root password)
> > >
> > >  3) C:\Source\myproject>mvn jetty:run-war
> > >
> > >  then jetty get started but:
> > >
> > >  2008-04-28 13:23:58.078::WARN:  Failed startup of context
> > > org.mortbay.jetty.plug
> > >
> > >
> [EMAIL PROTECTED]/,jar:file:/C:/Source/myproject/target/mypr
> > >  oject-1.0-SNAPSHOT.war!/}
> > >  org.springframework.beans.factory.BeanDefinitionStoreException:
> Unexpected
> > > excep
> > >  tion parsing XML document from class path resource
> > > [applicationContext-service.x
> > >  ml]; nested exception is java.lang.NoSuchMethodError:
> > > org.springframework.beans.
> > >
> > >
> factory.xml.ParserContext.registerBeanComponent(Lorg/springframework/beans/facto
> > >  ry/parsing/BeanComponentDefinition;)V
> > >  Caused by: java.lang.NoSuchMethodError:
> > > org.springframework.beans.factory.xml.Pa
> > >
> > >
> rserContext.registerBeanComponent(Lorg/springframework/beans/factory/parsing/Bea
> > >  nComponentDefinition;)V
> > >       at
> > > org.springframework.transaction.config.AnnotationDrivenBeanDefinition
> > >
> > >
> Parser$AopAutoProxyConfigurer.configureAutoProxyCreator(AnnotationDrivenBeanDefi
> > >  nitionParser.java:130)
> > >
> > >  4) C:\Source\myproject>mvn appfuse:full-source
> > >  5) C:\Source\myproject>mvn jetty:run-war
> > >
> > >  [ERROR] BUILD ERROR
> > >  [INFO]
> > > ------------------------------------------------------------------------
> > >  [INFO] Compiler errors :
> > >  error at Table table = AnnotationUtils.findAnnotation(User.class,
> > > Table.class);
> > >
> > >  then i commented the lines
> > >
> > >  6) C:\Source\myproject>mvn jetty:run-war
> > >
> > >  jetty didn't start, then cheked into surefire-reports almost all the
> test
> > > have the same errors:
> > >
> > >  org.springframework.beans.factory.BeanDefinitionStoreException:
> Unexpected
> > > exception parsing XML document from class path resource
> > > [applicationContext-service.xml]; nested exception is
> > > java.lang.NoSuchMethodError:
> > >
> org.springframework.beans.factory.xml.ParserContext.registerBeanComponent(Lorg/springframework/beans/factory/parsing/BeanComponentDefinition;)V
> > >  Caused by: java.lang.NoSuchMethodError:
> > >
> org.springframework.beans.factory.xml.ParserContext.registerBeanComponent(Lorg/springframework/beans/factory/parsing/BeanComponentDefinition;)V
> > >
> > >  HELP!
> > >
> > >
> > >
> > >
> > >  Matt Raible escribió:
> > >
> > >
> > >
> > >
> > >
> > > > On Mon, Apr 28, 2008 at 9:23 AM, Alex Worden <[EMAIL PROTECTED]>
> wrote:
> > > >
> > > >
> > > >
> > > >
> > > > > On Mon, Apr 28, 2008 at 5:49 AM, Matt Raible
> <[EMAIL PROTECTED]>
> > > > >
> > > > >
> > > >
> > > wrote:
> > >
> > >
> > > >
> > > > >  > Using "mvn appfuse:full-source" works best if you do it at the
> > > > >  >  beginning of a project, not after you've already started
> creating
> > > > >  >  entities.
> > > > >  >
> > > > >  >  Matt
> > > > >
> > > > >  Hi Matt,
> > > > >
> > > > >  I fear that it doesn't work at all. I tried this with the Struts2
> > > > >  Modular archetype and could not get the JUnit tests to pass due to
> > > > >  many missing resources. I checked out another copy of the project
> and
> > > > >  was able to build and pass all tests 100% before executing the
> > > > >  full-source goal. Once I ran that goal, the tests failed. I also
> tried
> > > > >  it before building with the same failures. Have you tried it on a
> > > > >  clean install lately? I'd *really* appreciate it if you could try
> > > > >  this, fix these issues, and describe what you did to resolve them.
> > > > >
> > > > >  I notice that the package names of the classes produced by
> executing
> > > > >  appfuse:full-source are renamed to match my project. I think this
> is
> > > > >  probably causing much of the problems. They should remain as part
> of
> > > > >  an appfuse package. This would relieve much of the upgrade and
> > > > >  reference issues. It is also is far more intuitive. This, afterall,
> is
> > > > >  not my code, and should not be created under my project's package
> > > > >  name.
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > Renaming the package names is done "by design". You can turn it off
> > > > using "mvn appfuse:full-source -DrenamePackages=false".
> > > >
> > > > It might be your OS that's causing these issues - everything works
> > > > fine on my Mac.
> > > >
> > > > Matt
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > >  Alex
> > > > >
> > > > >
> > > > >
> > > > >  >
> > > > >  >
> > > > >  >
> > > > >  >  On Mon, Apr 28, 2008 at 12:18 AM, Ryan Withers
> > > > >
> > > > >
> > > >
> > > <[EMAIL PROTECTED]> wrote:
> > >
> > >
> > > >
> > > > >  >  > Vincent / Matt,
> > > > >  >  >
> > > > >  >  >   I was successful at pulling down the sources with mvn
> > > > >
> > > > >
> > > >
> > > appfuse:full-source.
> > >
> > >
> > > >
> > > > >  >  > I had to adjust all of my code to reference the newly pulled
> down
> > > > >
> > > > >
> > > >
> > > classes
> > >
> > >
> > > >
> > > > >  >  > with my projects package structure (that was to be expected).
> > > > >
> > > > >
> > > >
> > > However, what
> > >
> > >
> > > >
> > > > >  >  > I'm wrestling with is that it seems none of the configuration
> for
> > > > >
> > > > >
> > > >
> > > all of the
> > >
> > >
> > > >
> > > > >  >  > appfuse classes came down with them.  I'm mainly thinking of
> the
> > > > >  >  > applicationContext.xml, etc.
> > > > >  >  >
> > > > >  >  >   The other issue is that after doing the full-source command
> I
> > > > >
> > > > >
> > > >
> > > was getting
> > >
> > >
> > > >
> > > > >  >  > a FileNotFound exception looking for
> > > > >
> > > > >
> > > >
> > > /WEB-INF/ApplicationContext.xml this
> > >
> > >
> > > >
> > > > >  >  > exception is shown below:
> > > > >  >  >
> > > > >  >  >  testRemove(com.oci.jnb.webapp.action.UserActionTest)  Time
> > > > >
> > > > >
> > > >
> > > elapsed: 0.084
> > >
> > >
> > > >
> > > > >  >  > sec  <<< ERROR!
> > > > >  >  >
> org.springframework.beans.factory.BeanDefinitionStoreException:
> > > > >
> > > > >
> > > >
> > > Could not
> > >
> > >
> > > >
> > > > >  >  > resolve bean definition resource pattern
> > > > >
> > > > >
> > > >
> > > [/WEB-INF/applicationContext*.xml];
> > >
> > >
> > > >
> > > > >  >  > nested exception is java.io.FileNotFoundException: class path
> > > > >
> > > > >
> > > >
> > > resource
> > >
> > >
> > > >
> > > > >  >  > [WEB-INF/] cannot be resolved to URL because it does not exist
> > > > >  >  >
> > > > >  >  > I modified this to just ApplicationContext.xml and now I'm
> getting
> > > > >
> > > > >
> > > >
> > > a:
> > >
> > >
> > > >
> > > > >  >  >
> > > > >  >  >
> org.springframework.beans.factory.UnsatisfiedDependencyException:
> > > > >
> > > > >
> > > >
> > > Error
> > >
> > >
> > > >
> > > > >  >  > creating bean with name
> > > > >
> > > > >
> > > >
> > > 'com.oci.jnb.webapp.action.UserActionTest':
> > >
> > >
> > > >
> > > > >  >  > Unsatisfied dependency expressed through bean property
> > > > >
> > > > >
> > > >
> > > 'userAction': Set
> > >
> > >
> > > >
> > > > >  >  > this property value or disable dependency checking for this
> bean.
> > > > >  >  >
> > > > >  >  > All of this makes me think I'm missing configuration for the
> Base
> > > > >
> > > > >
> > > >
> > > appfuse
> > >
> > >
> > > >
> > > > >  >  > project.  Do I need to configure all of the provided classes
> by
> > > > >
> > > > >
> > > >
> > > hand, is
> > >
> > >
> > > >
> > > > >  >  > there another command to run to pull this down?  I'd
> appreciate
> > > > >
> > > > >
> > > >
> > > any
> > >
> > >
> > > >
> > > > >  >  > guidance.
> > > > >  >  >
> > > > >  >  > Thanks,
> > > > >  >  >
> > > > >  >  > Ryan
> > > > >  >  >
> > > > >  >  >
> > > > >  >  > On Fri, Apr 25, 2008 at 10:12 AM, Vincent Ramdhanie
> > > > >
> > > > >
> > > >
> > > <[EMAIL PROTECTED]>
> > >
> > >
> > > >
> > > > >  >  > wrote:
> > > > >  >  > > I had a similar problem with netbeans before, using mvn
> > > > >  >  > appfuse:full-source solved the problem for me.
> > > > >  >  > > Vincent
> > > > >  >  > >
> > > > >  >  > >
> > > > >  >  > >
> > > > >  >  > >
> > > > >  >  > >
> > > > >  >  > > On Fri, Apr 25, 2008 at 10:56 AM, Ryan Withers
> > > > >
> > > > >
> > > >
> > > <[EMAIL PROTECTED]>
> > >
> > >
> > > >
> > > > >  >  > wrote:
> > > > >  >  > >
> > > > >  >  > > > Matt,
> > > > >  >  > > >
> > > > >  >  > > >  Thanks for the response.  I was hoping to verify that the
> > > > >
> > > > >
> > > >
> > > struts2
> > >
> > >
> > > >
> > > > >  >  > appfuse basic struts jar file was at least getting downloaded.
> In
> > > > >
> > > > >
> > > >
> > > the
> > >
> > >
> > > >
> > > > >  >  > project itself when implementing the unit test  for the action
> > > > >
> > > > >
> > > >
> > > class
> > >
> > >
> > > >
> > > > >  >  > Netbeans is complaining that it can't find the
> BaseActionTestCase.
> > > > >
> > > > >
> > > >
> > > Looking
> > >
> > >
> > > >
> > > > >  >  > at the project libraries and the project test libraries I can
> tell
> > > > >
> > > > >
> > > >
> > > that the
> > >
> > >
> > > >
> > > > >  >  > library below doesn't exist in either list.  I'm not in a good
> > > > >
> > > > >
> > > >
> > > spot to
> > >
> > >
> > > >
> > > > >  >  > differentiate whether or not this is a netbeans issue, I'll
> try to
> > > > >
> > > > >
> > > >
> > > run from
> > >
> > >
> > > >
> > > > >  >  > the command line.  Based on what I find out, I'll post again.
> If
> > > > >
> > > > >
> > > >
> > > you happen
> > >
> > >
> > > >
> > > > >  >  > to have any further thoughts I'd appreciate it.
> > > > >  >  > > >
> > > > >  >  > > > Thanks again,
> > > > >  >  > > >
> > > > >  >  > > > Ryan
> > > > >  >  > > >
> > > > >  >  > > >
> > > > >  >  > > >
> > > > >  >  > > >
> > > > >  >  > > >
> > > > >  >  > > > On Fri, Apr 25, 2008 at 9:02 AM, Matt Raible
> > > > >
> > > > >
> > > >
> > > <[EMAIL PROTECTED]>
> > >
> > >
> > > >
> > > > >  >  > wrote:
> > > > >  >  > > >
> > > > >  >  > > > > I don't understand what the problem is. What are you
> hoping
> > > > >
> > > > >
> > > >
> > > to see
> > >
> > >
> > > >
> > > > >  >  > > > > with the find command?
> > > > >  >  > > > >
> > > > >  >  > > > >
> > > > >  >  > > > >
> > > > >  >  > > > >
> > > > >  >  > > > > On Fri, Apr 25, 2008 at 7:49 AM, Ryan Withers
> > > > >
> > > > >
> > > >
> > > <[EMAIL PROTECTED]>
> > >
> > >
> > > >
> > > > >  >  > wrote:
> > > > >  >  > > > > > Hello All,
> > > > >  >  > > > > >
> > > > >  >  > > > > >   I'm working on a project (writing an article
> actually)
> > > > >
> > > > >
> > > >
> > > concerning
> > >
> > >
> > > >
> > > > >  >  > appfuse.
> > > > >  >  > > > > > I'm using the following archtype:
> > > > >  >  > > > > >
> > > > >  >  > > > > >  mvn archetype:create
> > > > >  >  > > > > > -DarchetypeGroupId=org.appfuse.archetypes
> > > > >  >  > > > > > -DarchetypeArtifactId=appfuse-basic-struts
> > > > >  >  > > > > >
> -DremoteRepositories=http://static.appfuse.org/releases
> > > > >  >  > > > > >  -DarchetypeVersion=2.0.1 -DgroupId=com.ociweb.jnb
> > > > >  >  > -DartifactId=timeEntryApp
> > > > >  >  > > > > >
> > > > >  >  > > > > > this is as specified in the quickstart tutorial.
> Trouble
> > > > >
> > > > >
> > > >
> > > is that
> > >
> > >
> > > >
> > > > >  >  > the
> > > > >  >  > > > > > project doesn't seem to be recognizing that I have the
> > > > >
> > > > >
> > > >
> > > struts 2
> > >
> > >
> > > >
> > > > >  >  > library
> > > > >  >  > > > > > downloaded to the maven repository.  I'm using /
> running
> > > > >
> > > > >
> > > >
> > > the example
> > >
> > >
> > > >
> > > > >  >  > in
> > > > >  >  > > > > > Netbeans 6.0.1, checking the maven repository for the
> > > > >
> > > > >
> > > >
> > > appfuse
> > >
> > >
> > > >
> > > > >  >  > related jars
> > > > >  >  > > > > > yielded:
> > > > >  >  > > > > >
> > > > >  >  > > > > > [EMAIL PROTECTED]:~/.m2/repository$ find . -name *.jar 
> > > > > | grep
> > > > >
> > > > >
> > > >
> > > appfuse
> > >
> > >
> > > >
> > > > >  >  > > > > >
> > > > >  >  >
> > > > >
> > > > >
> > > >
> > >
> ./org/codehaus/mojo/appfuse-maven-plugin/2.0.1/appfuse-maven-plugin-2.0.1.jar
> > >
> > >
> > > >
> > > > >  >  > > > > >
> > > > >
> > > > >
> > > >
> > > ./org/appfuse/appfuse-service/2.0.1/appfuse-service-2.0.1.jar
> > >
> > >
> > > >
> > > > >  >  > > > > > ./org/appfuse/appfuse-jpa/2.0.1/appfuse-jpa-2.0.1.jar
> > > > >  >  > > > > >
> > > > >  >  >
> > > > >
> > > > >
> > > >
> > > ./org/appfuse/maven-warpath-plugin/2.0.1/maven-warpath-plugin-2.0.1.jar
> > >
> > >
> > > >
> > > > >  >  > > > > >
> > > > >  >  >
> > > > >
> > > > >
> > > >
> > > ./org/appfuse/appfuse-data-common/2.0.1/appfuse-data-common-2.0.1.jar
> > >
> > >
> > > >
> > > > >  >  > > > > >
> > > > >  >  >
> > > > >
> > > > >
> > > >
> > >
> ./org/appfuse/archetypes/appfuse-modular-jsf/2.0.1/appfuse-modular-jsf-2.0.1.jar
> > >
> > >
> > > >
> > > > >  >  > > > > >
> > > > >  >  > > > > >
> > > > >  >  >
> > > > >
> > > > >
> > > >
> > >
> ./org/appfuse/archetypes/appfuse-basic-jsf/2.0.1/appfuse-basic-jsf-2.0.1.jar
> > >
> > >
> > > >
> > > > >  >  > > > > >
> > > > >  >  >
> > > > >
> > > > >
> > > >
> > >
> ./org/appfuse/archetypes/appfuse-basic-spring/2.0.1/appfuse-basic-spring-2.0.1.jar
> > >
> > >
> > > >
> > > > >  >  > > > > >
> > > > >  >  >
> > > > >
> > > > >
> > > >
> > >
> ./org/appfuse/archetypes/appfuse-modular-tapestry/2.0.1/appfuse-modular-tapestry-2.0.1.jar
> > >
> > >
> > > >
> > > > >  >  > > > > >
> > > > >  >  > > > > >
> > > > >  >  >
> > > > >
> > > > >
> > > >
> > >
> ./org/appfuse/archetypes/appfuse-modular-struts/2.0.1/appfuse-modular-struts-2.0.1.jar
> > >
> > >
> > > >
> > > > >  >  > > > > >
> > > > >  >  >
> > > > >
> > > > >
> > > >
> > >
> ./org/appfuse/archetypes/appfuse-basic-tapestry/2.0.1/appfuse-basic-tapestry-2.0.1.jar
> > >
> > >
> > > >
> > > > >  >  > > > > >
> > > > >  >  >
> > > > >
> > > > >
> > > >
> > >
> ./org/appfuse/archetypes/appfuse-basic-struts/2.0.1/appfuse-basic-struts-2.0.1.jar
> > >
> > >
> > > >
> > > > >  >  > > > > >
> > > > >
> > > > >
> > > >
> > > ./org/appfuse/appfuse-hibernate/2.0.1/appfuse-hibernate-2.0.1.jar
> > >
> > >
> > > >
> > > > >  >  > > > > >
> > > > >  >  > > > > > Could this be a problem with the pom.xml file?
> > > > >  >  > > > > >
> > > > >  >  > > > > > Thanks,
> > > > >  >  > > > > >
> > > > >  >  > > > > > Ryan
> > > > >  >  > > > > >
> > > > >  >  > > > >
> > > > >  >  > > > >
> > > > >
> > > > >
> > > >
> > > ---------------------------------------------------------------------
> > >
> > >
> > > >
> > > > >  >  > > > > 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]
> > > > >  >
> > > > >  >
> > > > >
> > > > >
> ---------------------------------------------------------------------
> > > > >  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]
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > >  ---------------------------------------------------------------------
> > >  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