Announcement Announcement Module
Collapse
No announcement yet.
Spring template does not work Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Spring template does not work

    Tried to upgrade eclipse spring tool suite for maven integration for eclipse 1.1

    then i tried new->Spring template project->Batch->Spring Batch admin webapp

    and there are a couple of errors

    i changed back to maven integration for eclipse 0.1, now it doesn't work anymore. it gives import org.junit can't be resolved error.


    i followed the steps as shown
    http://blog.springsource.com/2011/10...l-suite-2-8-0/
    There is an easy fix for this. Go to Preferences -> Maven -> Discovery and click "Open Catalog". This will allow you to browse all available m2e project configurators. Look for the configurators that apply to the errors that you are seeing and install them.
    for this what configurator is he talking about
    i tried to install everything yet it doesn't work, i am grasping at straws here
    Last edited by z080236; Jan 5th, 2013, 12:30 AM.

  • #2
    the errors are as follows:

    Errors occurred during the build.
    Errors running builder 'Maven Project Builder' on project 'springadmin'.
    Could not calculate build plan: Plugin org.apache.maven.plugins:maven-resources-plugin:2.5 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:2.5
    Plugin org.apache.maven.plugins:maven-resources-plugin:2.5 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:2.5
    Could not calculate build plan: Plugin org.apache.maven.plugins:maven-resources-plugin:2.5 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:2.5
    Plugin org.apache.maven.plugins:maven-resources-plugin:2.5 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:2.5

    Comment


    • #3
      usually i can't figure out what the error is telling me
      and how to debug the error

      Comment


      • #4
        images are as attached below

        Attachment Attachment

        thought the jar are already in the maven dependencies lib?
        why does it show class not found?
        Attached Files
        Last edited by z080236; Jan 5th, 2013, 07:12 AM.

        Comment


        • #5
          Hello,

          try to download the plugin (Plugin org.apache.maven.plugins:maven-resources-plugin:2.5) and install it by hand to the local repository mvn install:install-file ....


          You can also try to edit your pom file
          <plugin>
          <groupid>org.apache.maven.plugins</groupid>
          <artifactid>maven-resources-plugin</artifactid>
          <version>2.5.0</version>
          </plugin>


          Best regards,
          Oliver

          Comment


          • #6
            i click new->spring roo project

            then this is the error that i see that i dunno what to make of it

            20:39:53,159 ERROR ThreadPoolTaskExecutor-1 step.AbstractStep:213 - Encountered an error executing the step
            org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'scopedTarget.itemWriter' defined in file [C:\Users\xxx\Documents\workspace-sts-3.0.0.RELEASE\.metadata\.plugins\org.eclipse.wst.s erver.core\tmp1\wtpwebapps\springadmin\WEB-INF\classes\META-INF\batch\module-context.xml]: Initialization of bean failed; nested exception is org.springframework.beans.TypeMismatchException: Failed to convert property value of type 'null' to required type 'boolean' for property 'fail'; nested exception is java.lang.IllegalArgumentException: Cannot convert value of type [null] to required type [boolean] for property 'fail': PropertyEditor [org.springframework.beans.propertyeditors.CustomBo oleanEditor] returned inappropriate value
            at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.doCreateBean(AbstractAu towireCapableBeanFactory.java:519)
            at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.createBean(AbstractAuto wireCapableBeanFactory.java:450)
            at org.springframework.beans.factory.support.Abstract BeanFactory$2.getObject(AbstractBeanFactory.java:3 27)
            at org.springframework.batch.core.scope.StepScope.get (StepScope.java:146)
            at org.springframework.beans.factory.support.Abstract BeanFactory.doGetBean(AbstractBeanFactory.java:323 )
            at org.springframework.beans.factory.support.Abstract BeanFactory.getBean(AbstractBeanFactory.java:188)
            at org.springframework.aop.target.SimpleBeanTargetSou rce.getTarget(SimpleBeanTargetSource.java:33)
            at org.springframework.aop.framework.JdkDynamicAopPro xy.invoke(JdkDynamicAopProxy.java:182)
            at $Proxy7.write(Unknown Source)
            at org.springframework.batch.core.step.item.SimpleChu nkProcessor.writeItems(SimpleChunkProcessor.java:1 56)
            at org.springframework.batch.core.step.item.SimpleChu nkProcessor.doWrite(SimpleChunkProcessor.java:137)
            at org.springframework.batch.core.step.item.SimpleChu nkProcessor.write(SimpleChunkProcessor.java:252)
            at org.springframework.batch.core.step.item.SimpleChu nkProcessor.process(SimpleChunkProcessor.java:178)
            at org.springframework.batch.core.step.item.ChunkOrie ntedTasklet.execute(ChunkOrientedTasklet.java:74)
            at org.springframework.batch.core.step.tasklet.Taskle tStep$ChunkTransactionCallback.doInTransaction(Tas kletStep.java:347)
            at org.springframework.transaction.support.Transactio nTemplate.execute(TransactionTemplate.java:130)
            at org.springframework.batch.core.step.tasklet.Taskle tStep$2.doInChunkContext(TaskletStep.java:261)
            at org.springframework.batch.core.scope.context.StepC ontextRepeatCallback.doInIteration(StepContextRepe atCallback.java:76)
            at org.springframework.batch.repeat.support.RepeatTem plate.getNextResult(RepeatTemplate.java:368)
            at org.springframework.batch.repeat.support.RepeatTem plate.executeInternal(RepeatTemplate.java:214)
            at org.springframework.batch.repeat.support.RepeatTem plate.iterate(RepeatTemplate.java:143)
            at org.springframework.batch.core.step.tasklet.Taskle tStep.doExecute(TaskletStep.java:247)
            at org.springframework.batch.core.step.AbstractStep.e xecute(AbstractStep.java:196)
            at org.springframework.batch.core.job.AbstractJob.han dleStep(AbstractJob.java:375)
            at org.springframework.batch.core.job.flow.FlowJob.ac cess$100(FlowJob.java:43)
            at org.springframework.batch.core.job.flow.FlowJob$Jo bFlowExecutor.executeStep(FlowJob.java:135)
            at org.springframework.batch.core.job.flow.support.st ate.StepState.handle(StepState.java:60)
            at org.springframework.batch.core.job.flow.support.Si mpleFlow.resume(SimpleFlow.java:144)
            at org.springframework.batch.core.job.flow.support.Si mpleFlow.start(SimpleFlow.java:124)
            at org.springframework.batch.core.job.flow.FlowJob.do Execute(FlowJob.java:103)
            at org.springframework.batch.core.job.AbstractJob.exe cute(AbstractJob.java:266)
            at org.springframework.batch.core.launch.support.Simp leJobLauncher$1.run(SimpleJobLauncher.java:118)
            at java.util.concurrent.ThreadPoolExecutor.runWorker( ThreadPoolExecutor.java:1110)
            at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:603)
            at java.lang.Thread.run(Thread.java:722)
            Caused by: org.springframework.beans.TypeMismatchException: Failed to convert property value of type 'null' to required type 'boolean' for property 'fail'; nested exception is java.lang.IllegalArgumentException: Cannot convert value of type [null] to required type [boolean] for property 'fail': PropertyEditor [org.springframework.beans.propertyeditors.CustomBo oleanEditor] returned inappropriate value
            at org.springframework.beans.BeanWrapperImpl.convertF orProperty(BeanWrapperImpl.java:448)
            at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.convertForProperty(Abst ractAutowireCapableBeanFactory.java:1351)
            at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.applyPropertyValues(Abs tractAutowireCapableBeanFactory.java:1310)
            at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.populateBean(AbstractAu towireCapableBeanFactory.java:1067)
            at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.doCreateBean(AbstractAu towireCapableBeanFactory.java:511)
            ... 34 more
            Caused by: java.lang.IllegalArgumentException: Cannot convert value of type [null] to required type [boolean] for property 'fail': PropertyEditor [org.springframework.beans.propertyeditors.CustomBo oleanEditor] returned inappropriate value
            at org.springframework.beans.TypeConverterDelegate.co nvertIfNecessary(TypeConverterDelegate.java:275)
            at org.springframework.beans.TypeConverterDelegate.co nvertIfNecessary(TypeConverterDelegate.java:154)
            at org.springframework.beans.BeanWrapperImpl.convertF orProperty(BeanWrapperImpl.java:443)
            ... 38 more
            Last edited by z080236; Jan 5th, 2013, 08:58 PM.

            Comment


            • #7
              sorry,wrong image, the image should be Attachment
              Attached Files

              Comment


              • #8
                Hey!

                The problem with the missing folder "src/test/resources" is a variant of this issue:
                https://issuetracker.springsource.com/browse/STS-2539

                This has been fixed for 3.2.0.M2, so will be available soon. In the meantime, I would suggest that you create this folder manually or remove it from the project configuration (project properties -> java build path).

                Did you solve the maven problem with the template project? Depending on the version of STS that you are using, it could be that the template project that you get is configured for the old maven support in Eclipse instead of the new one. Did you try to install a fresh version of STS (3.1.0.RELEASE for Eclipse 3.8)?

                HTH,
                Martin

                Comment

                Working...
                X