Results 1 to 8 of 8

Thread: Spring template does not work

Hybrid View

  1. #1

    Default 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 4th, 2013 at 11:30 PM.

  2. #2

    Default

    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

  3. #3

    Default

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

  4. #4

    Default

    images are as attached below

    Capture1.jpgCapture2.JPG

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

  5. #5
    Join Date
    Jan 2013
    Posts
    2

    Default

    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

  6. #6

    Default

    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
    Attached Images Attached Images
    Last edited by z080236; Jan 5th, 2013 at 07:58 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •