Announcement Announcement Module
Collapse
No announcement yet.
How to write hellow world program in spring Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to write hellow world program in spring

    How to write hellow world program in spring??

  • #2
    What exactly do you want this program to do?

    Comment


    • #3
      HellowWorld

      How to write hellow world programe in spring in netbeans 6.5

      Comment


      • #4
        Create New Web project in netbeans and select springFramework 2.5 .
        You no need to install any plugin its out of box functionality .
        It will geneate your applicationContext.xml, Dispatcher-Servlet.xml

        Just run the code in tomcat server .

        Comment


        • #5
          thanks

          thank you so much

          Comment


          • #6
            Login Form validation

            Originally posted by eran_ha View Post
            What exactly do you want this program to do?
            i have login table which contanis user id and password in Mysql 5.0 database.
            If the user enter correct user id and password then only he move proper page
            other wise he get login not correct message.
            i need simple program for form validation using spring framework mvc 3.5 using nebeans 6.5

            Comment


            • #7
              You can attain same functionlty in two ways , either you have create your own filter or use spring security.

              Comment


              • #8
                Bean Creation exception

                when i try to injecting service class into dao class it produce the following exception. any body tell me how to solve this issue.

                thanks




                org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'gbsinvoicedtltxnservice' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Initialization of bean failed; nested exception is org.springframework.beans.TypeMismatchException: Failed to convert property value of type [com.dao.common.InvoicePdfDAOImpl] to required type [com.dao.customerspoc.IGbsInvoice] for property 'daoInvoice'; nested exception is java.lang.IllegalArgumentException: Cannot convert value of type [com.dao.common.InvoicePdfDAOImpl] to required type [com.dao.customerspoc.IGbsInvoice] for property 'daoInvoice': no matching editors or conversion strategy found
                at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.doCreateBean(AbstractAu towireCapableBeanFactory.java:478)
                at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory$1.run(AbstractAutowireC apableBeanFactory.java:409)
                at java.security.AccessController.doPrivileged(Native Method)
                at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.createBean(AbstractAuto wireCapableBeanFactory.java:380)
                at org.springframework.beans.factory.support.Abstract BeanFactory$1.getObject(AbstractBeanFactory.java:2 64)
                at org.springframework.beans.factory.support.DefaultS ingletonBeanRegistry.getSingleton(DefaultSingleton BeanRegistry.java:217)
                at org.springframework.beans.factory.support.Abstract BeanFactory.doGetBean(AbstractBeanFactory.java:261 )
                at org.springframework.beans.factory.support.Abstract BeanFactory.getBean(AbstractBeanFactory.java:185)
                at org.springframework.beans.factory.support.Abstract BeanFactory.getBean(AbstractBeanFactory.java:164)
                at org.springframework.beans.factory.support.DefaultL istableBeanFactory.preInstantiateSingletons(Defaul tListableBeanFactory.java:429)
                at org.springframework.context.support.AbstractApplic ationContext.finishBeanFactoryInitialization(Abstr actApplicationContext.java:729)
                at org.springframework.context.support.AbstractApplic ationContext.refresh(AbstractApplicationContext.ja va:381)
                at org.springframework.web.context.support.AbstractRe freshableWebApplicationContext.refresh(AbstractRef reshableWebApplicationContext.java:133)
                at org.springframework.web.context.ContextLoader.crea teWebApplicationContext(ContextLoader.java:230)
                at org.springframework.web.context.ContextLoader.init WebApplicationContext(ContextLoader.java:156)
                at org.springframework.web.context.ContextLoaderListe ner.contextInitialized(ContextLoaderListener.java: 48)
                at weblogic.servlet.internal.EventsManager$FireContex tListenerAction.run(EventsManager.java:458)
                at weblogic.security.acl.internal.AuthenticatedSubjec t.doAs(AuthenticatedSubject.java:321)
                at weblogic.security.service.SecurityManager.runAs(Un known Source)
                at weblogic.servlet.internal.EventsManager.notifyCont extCreatedEvent(EventsManager.java:168)
                at weblogic.servlet.internal.WebAppServletContext.pre loadResources(WebAppServletContext.java:1744)
                at weblogic.servlet.internal.WebAppServletContext.sta rt(WebAppServletContext.java:2909)
                at weblogic.servlet.internal.WebAppModule.startContex ts(WebAppModule.java:973)
                at weblogic.servlet.internal.WebAppModule.start(WebAp pModule.java:361)
                at weblogic.application.internal.flow.ModuleStateDriv er$3.next(ModuleStateDriver.java:204)
                at weblogic.application.utils.StateMachineDriver.next State(StateMachineDriver.java:26)
                at weblogic.application.internal.flow.ModuleStateDriv er.start(ModuleStateDriver.java:60)
                at weblogic.application.internal.flow.ScopedModuleDri ver.start(ScopedModuleDriver.java:200)
                at weblogic.application.internal.flow.ModuleListenerI nvoker.start(ModuleListenerInvoker.java:117)
                at weblogic.application.internal.flow.ModuleStateDriv er$3.next(ModuleStateDriver.java:204)
                at weblogic.application.utils.StateMachineDriver.next State(StateMachineDriver.java:26)
                at weblogic.application.internal.flow.ModuleStateDriv er.start(ModuleStateDriver.java:60)
                at weblogic.application.internal.flow.StartModulesFlo w.activate(StartModulesFlow.java:26)
                at weblogic.application.internal.BaseDeployment$2.nex t(BaseDeployment.java:635)
                at weblogic.application.utils.StateMachineDriver.next State(StateMachineDriver.java:26)
                at weblogic.application.internal.BaseDeployment.activ ate(BaseDeployment.java:212)
                at weblogic.application.internal.DeploymentStateCheck er.activate(DeploymentStateChecker.java:154)
                at weblogic.deploy.internal.targetserver.AppContainer Invoker.activate(AppContainerInvoker.java:80)
                at weblogic.deploy.internal.targetserver.BasicDeploym ent.activate(BasicDeployment.java:182)
                at weblogic.deploy.internal.targetserver.BasicDeploym ent.activateFromServerLifecycle(BasicDeployment.ja va:359)
                at weblogic.management.deploy.internal.DeploymentAdap ter$1.doActivate(DeploymentAdapter.java:51)
                at weblogic.management.deploy.internal.DeploymentAdap ter.activate(DeploymentAdapter.java:196)
                at weblogic.management.deploy.internal.AppTransition$ 2.transitionApp(AppTransition.java:30)
                at weblogic.management.deploy.internal.ConfiguredDepl oyments.transitionApps(ConfiguredDeployments.java: 233)
                at weblogic.management.deploy.internal.ConfiguredDepl oyments.activate(ConfiguredDeployments.java:169)
                at weblogic.management.deploy.internal.ConfiguredDepl oyments.deploy(ConfiguredDeployments.java:123)
                at weblogic.management.deploy.internal.DeploymentServ erService.resume(DeploymentServerService.java:173)
                at weblogic.management.deploy.internal.DeploymentServ erService.start(DeploymentServerService.java:89)
                at weblogic.t3.srvr.SubsystemRequest.run(SubsystemReq uest.java:64)
                at weblogic.work.ExecuteThread.execute(ExecuteThread. java:200)
                at weblogic.work.ExecuteThread.run(ExecuteThread.java :172)
                Caused by: org.springframework.beans.TypeMismatchException: Failed to convert property value of type [com.dao.common.InvoicePdfDAOImpl] to required type [com.dao.customerspoc.IGbsInvoice] for property 'daoInvoice'; nested exception is java.lang.IllegalArgumentException: Cannot convert value of type [com.dao.common.InvoicePdfDAOImpl] to required type [com.dao.customerspoc.IGbsInvoice] for property 'daoInvoice': no matching editors or conversion strategy found
                at org.springframework.beans.BeanWrapperImpl.convertF orProperty(BeanWrapperImpl.java:391)
                at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.convertForProperty(Abst ractAutowireCapableBeanFactory.java:1287)
                at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.applyPropertyValues(Abs tractAutowireCapableBeanFactory.java:1248)
                at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.populateBean(AbstractAu towireCapableBeanFactory.java:1008)
                at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.doCreateBean(AbstractAu towireCapableBeanFactory.java:470)
                ... 50 more
                Caused by: java.lang.IllegalArgumentException: Cannot convert value of type [com.dao.common.InvoicePdfDAOImpl] to required type [com.dao.customerspoc.IGbsInvoice] for property 'daoInvoice': no matching editors or conversion strategy found
                at org.springframework.beans.TypeConverterDelegate.co nvertIfNecessary(TypeConverterDelegate.java:238)
                at org.springframework.beans.TypeConverterDelegate.co nvertIfNecessary(TypeConverterDelegate.java:138)
                at org.springframework.beans.BeanWrapperImpl.convertF orProperty(BeanWrapperImpl.java:386)
                ... 54 more

                Comment


                • #9
                  Um, you're in the wrong forum; this is nothing to do with LDAP. Try:
                  You're more likely to get the answers you seek.

                  Comment

                  Working...
                  X