Learn spring framework from scrach

hi, all
i m new to spring, is there any good book for people like me to learn Spring?
i currently have a 'Manning, Spring In Action' 2nd edition(2007), but i found it's quite confusing coz the sample code in the book is not very clear and helpful.
could u guys tell me how you learned Spring?
Any help will be sincerely appreciated!
Thanks!
regards

Sorry, didn't read your post carefully, maybe a Wrox Book : "Beginning Spring" which is more simple (I think) .

Similar Messages

  • Material for learning OA Framework

    Hi,
    I need a material to learn OA Frameworks from the Basics.
    Can anybody help me out in this issue.
    Thanks

    Check OAF 11.5.10 Metalink Documentation Road Map Metalink Note 275880.1

  • Which class, Spring Framework or Web Aervices with Java?

    So, I hope it's okay to post this type of question here. I'm trying to figure out which would be better to take, a 4-day course from SpringSource on the core capabilities of the Spring Framework, or a 4-day course on building web services with Java? I'm very interested in both. Both would be equally relative to the work I do. I guess the question I have is, which would be better for a J2EE developer to take?
    Keith

    Spring is actively used, so are web services.
    But remember that "SOA" is NOT web services. Web services may be a part of it, but it's a lot more.
    Web services are in flux, what you learn today may be outdated tomorrow. Better get some good books and experiment on your own rather than spend thousands of Euros on some training course written with last year's hyped tech.
    Same is of course true of all specific technologies. If you take a Spring course today based on Spring 2.0 or 2.5, in a year or so it'll have been overtaken by the next version.
    That said, at least the basic concepts behind Spring are unlikely to change fundamentally :)

  • Weblogic 10.3.0 managed server + Spring Framework slow startup

    Hello
    Iam running weblogic 10.3.0 plus an application using spring framework on this:
    java.runtime.name = Java(TM) SE Runtime Environment
    java.runtime.version = 1.6.0_20-b02
    java.specification.name = Java Platform API Specification
    java.specification.vendor = Sun Microsystems Inc.
    java.specification.version = 1.6
    java.vendor = Oracle Corporation
    java.version = 1.6.0_20
    java.vm.info = compiled mode
    java.vm.name = Oracle JRockit(R)
    os.arch = amd64
    os.name = Windows 2003
    os.version = 5.2
    sun.arch.data.model = 64
    sun.io.unicode.encoding = UnicodeLittle
    sun.jnu.encoding = Cp1252
    sun.management.compiler = Oracle JRockit(R) Optimizing Compiler
    sun.os.patch.level = Service Pack 2
    Problem Description: A weblogic managed server is taking more than an hour to start, the delay is due to the deployments during startup, passing from STATE_PREPARED to STATE_ADMIN and to the initialization of the Spring root WebApplicationContex, which takes an avg of 7 mins per module deployed.
    I have a development server with the same application which starts in a few minutes, the only difference between the environments are tha the development server runs in 32bits.
    Any help will be appreciated
    -luis
    Server log file:
    ####<Feb 17, 2011 5:09:06 PM VET> <Info> <ServletContext-/Micropago/ServiciosOperacionTransferencia> <SAPL734> <micropago_server> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <<anonymous>> <> <> <1297978746371> <BEA-000000> <Initializing Spring root WebApplicationContext>
    ####<Feb 17, 2011 5:19:16 PM VET> <Info> <Deployer> <SAPL734> <micropago_server> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1297979356364> <BEA-149059> <Module operaciondispatcher-ws-1.0-SNAPSHOT.war of application operaciondispatcher-ws-1 is transitioning from STATE_PREPARED to STATE_ADMIN on server micropago_server.>
    ####<Feb 17, 2011 5:19:16 PM VET> <Info> <Deployer> <SAPL734> <micropago_server> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1297979356411> <BEA-149060> <Module operaciondispatcher-ws-1.0-SNAPSHOT.war of application operaciondispatcher-ws-1 successfully transitioned from STATE_PREPARED to STATE_ADMIN on server micropago_server.>
    ####<Feb 17, 2011 5:19:24 PM VET> <Info> <ServletContext-/Micropago/ServiciosOperacionD> <SAPL734> <micropago_server> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <<anonymous>> <> <> <1297979364083> <BEA-000000> <Initializing Spring root WebApplicationContext>
    ####<Feb 17, 2011 5:23:35 PM VET> <Info> <Deployer> <SAPL734> <micropago_server> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1297979615333> <BEA-149059> <Module operacionutil-ws-1.0-SNAPSHOT.war of application operacionutil-ws-1 is transitioning from STATE_PREPARED to STATE_ADMIN on server micropago_server.>
    ####<Feb 17, 2011 5:23:35 PM VET> <Info> <Deployer> <SAPL734> <micropago_server> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1297979615333> <BEA-149060> <Module operacionutil-ws-1.0-SNAPSHOT.war of application operacionutil-ws-1 successfully transitioned from STATE_PREPARED to STATE_ADMIN on server micropago_server.>
    ####<Feb 17, 2011 5:23:40 PM VET> <Info> <ServletContext-/Micropago/ServiciosUtilidad> <SAPL734> <micropago_server> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <<anonymous>> <> <> <1297979620318> <BEA-000000> <Initializing Spring root WebApplicationContext>
    ####<Feb 17, 2011 5:30:10 PM VET> <Info> <Deployer> <SAPL734> <micropago_server> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1297980010468> <BEA-149059> <Module securitymanager-ws-1.0-SNAPSHOT.war of application securitymanager-ws-1 is transitioning from STATE_PREPARED to STATE_ADMIN on server micropago_server.>
    ####<Feb 17, 2011 5:30:10 PM VET> <Info> <Deployer> <SAPL734> <micropago_server> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1297980010515> <BEA-149060> <Module securitymanager-ws-1.0-SNAPSHOT.war of application securitymanager-ws-1 successfully transitioned from STATE_PREPARED to STATE_ADMIN on server micropago_server.>

    Hi, thanks for your answer.
    How can I do a Thread Dump snapshot in a windows server starting as a service (no console)?
    Admin_server Thread Stack Trace
    Dump 1/3
    "Main Thread" waiting for lock weblogic.t3.srvr.T3Srvr@f14693 WAITING
         java.lang.Object.wait(Native Method)
         java.lang.Object.wait(Object.java:485)
         weblogic.t3.srvr.T3Srvr.waitForDeath(T3Srvr.java:811)
         weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:459)
         weblogic.Server.main(Server.java:67)
    "(Signal Handler)" RUNNABLE
    null
    "(OC Main Thread)" RUNNABLE
    null
    "(Code Generation Thread 1)" RUNNABLE
    null
    "(Code Optimization Thread 1)" RUNNABLE
    null
    "(VM Periodic Task)" RUNNABLE
    null
    "(Attach Listener)" RUNNABLE
    null
    "Finalizer" RUNNABLE
         jrockit.memory.Finalizer.waitForFinalizees(Native Method)
         jrockit.memory.Finalizer.access$700(Finalizer.java:12)
         jrockit.memory.Finalizer$4.run(Finalizer.java:189)
         java.lang.Thread.run(Thread.java:619)
    "Reference Handler" RUNNABLE
         java.lang.ref.Reference.waitForActivatedQueue(Native Method)
         java.lang.ref.Reference.access$100(Reference.java:11)
         java.lang.ref.Reference$ReferenceHandler.run(Reference.java:82)
    "(Sensor Event Thread)" RUNNABLE
    null
    "VM JFR Buffer Thread" RUNNABLE native
    null
    "Timer-0" waiting for lock java.util.TaskQueue@e259a7 WAITING
         java.lang.Object.wait(Native Method)
         java.lang.Object.wait(Object.java:485)
         java.util.TimerThread.mainLoop(Timer.java:483)
         java.util.TimerThread.run(Timer.java:462)
    "Timer-1" waiting for lock java.util.TaskQueue@10ad080 TIMED_WAITING
         java.lang.Object.wait(Native Method)
         java.util.TimerThread.mainLoop(Timer.java:509)
         java.util.TimerThread.run(Timer.java:462)
    "[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'" RUNNABLE
    DUMP 2/3
    "Main Thread" waiting for lock weblogic.t3.srvr.T3Srvr@f14693 WAITING
         java.lang.Object.wait(Native Method)
         java.lang.Object.wait(Object.java:485)
         weblogic.t3.srvr.T3Srvr.waitForDeath(T3Srvr.java:811)
         weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:459)
         weblogic.Server.main(Server.java:67)
    "(Signal Handler)" RUNNABLE
    null
    "(OC Main Thread)" RUNNABLE
    null
    "(Code Generation Thread 1)" RUNNABLE
    null
    "(Code Optimization Thread 1)" RUNNABLE
    null
    "(VM Periodic Task)" RUNNABLE
    null
    "(Attach Listener)" RUNNABLE
    null
    "Finalizer" RUNNABLE
         jrockit.memory.Finalizer.waitForFinalizees(Native Method)
         jrockit.memory.Finalizer.access$700(Finalizer.java:12)
         jrockit.memory.Finalizer$4.run(Finalizer.java:189)
         java.lang.Thread.run(Thread.java:619)
    "Reference Handler" RUNNABLE
         java.lang.ref.Reference.waitForActivatedQueue(Native Method)
         java.lang.ref.Reference.access$100(Reference.java:11)
         java.lang.ref.Reference$ReferenceHandler.run(Reference.java:82)
    "(Sensor Event Thread)" RUNNABLE
    null
    "VM JFR Buffer Thread" RUNNABLE native
    null
    "Timer-0" waiting for lock java.util.TaskQueue@e259a7 WAITING
         java.lang.Object.wait(Native Method)
         java.lang.Object.wait(Object.java:485)
         java.util.TimerThread.mainLoop(Timer.java:483)
         java.util.TimerThread.run(Timer.java:462)
    "Timer-1" waiting for lock java.util.TaskQueue@10ad080 TIMED_WAITING
         java.lang.Object.wait(Native Method)
         java.util.TimerThread.mainLoop(Timer.java:509)
         java.util.TimerThread.run(Timer.java:462)
    "[STANDBY] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'" waiting for lock weblogic.work.ExecuteThread@10ad1bd WAITING
         java.lang.Object.wait(Object.java:485)
         weblogic.work.ExecuteThread.waitForRequest(ExecuteThread.java:157)
         weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
    "weblogic.time.TimeEventGenerator" waiting for lock weblogic.time.common.internal.TimeTable@10aff60 TIMED_WAITING
         weblogic.time.common.internal.TimeTable.snooze(TimeTable.java:286)
         weblogic.time.common.internal.TimeEventGenerator.run(TimeEventGenerator.java:117)
         java.lang.Thread.run(Thread.java:619)
    "weblogic.timers.TimerThread" waiting for lock weblogic.timers.internal.TimerThread@11216cb TIMED_WAITING
         java.lang.Object.wait(Native Method)
         weblogic.timers.internal.TimerThread$Thread.run(TimerThread.java:267)
    "[STANDBY] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'" waiting for lock weblogic.work.ExecuteThread@10ad3e0 WAITING
         java.lang.Object.wait(Object.java:485)
         weblogic.work.ExecuteThread.waitForRequest(ExecuteThread.java:157)
         weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
    "Thread-7" waiting for lock java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject@10ad595 WAITING
         sun.misc.Unsafe.park(Native Method)
         java.util.concurrent.locks.LockSupport.park(LockSupport.java:158)
         java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:1925)
         java.util.concurrent.LinkedBlockingQueue.take(LinkedBlockingQueue.java:399)
         weblogic.utils.concurrent.JDK15ConcurrentBlockingQueue.take(JDK15ConcurrentBlockingQueue.java:89)
         weblogic.store.internal.PersistentStoreImpl.getOutstandingWork(PersistentStoreImpl.java:567)
         weblogic.store.internal.PersistentStoreImpl.run(PersistentStoreImpl.java:615)
         weblogic.store.internal.PersistentStoreImpl$2.run(PersistentStoreImpl.java:383)
    "ExecuteThread: '0' for queue: 'weblogic.socket.Muxer'" RUNNABLE native
         weblogic.socket.NTSocketMuxer.getIoCompletionResult(Native Method)
         weblogic.socket.NTSocketMuxer.processSockets(NTSocketMuxer.java:81)
         weblogic.socket.SocketReaderRequest.run(SocketReaderRequest.java:29)
         weblogic.socket.SocketReaderRequest.execute(SocketReaderRequest.java:42)
         weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:145)
         weblogic.kernel.ExecuteThread.run(ExecuteThread.java:117)
    "ExecuteThread: '1' for queue: 'weblogic.socket.Muxer'" RUNNABLE native
         weblogic.socket.NTSocketMuxer.getIoCompletionResult(Native Method)
         weblogic.socket.NTSocketMuxer.processSockets(NTSocketMuxer.java:81)
         weblogic.socket.SocketReaderRequest.run(SocketReaderRequest.java:29)
         weblogic.socket.SocketReaderRequest.execute(SocketReaderRequest.java:42)
         weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:145)
         weblogic.kernel.ExecuteThread.run(ExecuteThread.java:117)
    "ExecuteThread: '2' for queue: 'weblogic.socket.Muxer'" RUNNABLE native
         weblogic.socket.NTSocketMuxer.getIoCompletionResult(Native Method)
         weblogic.socket.NTSocketMuxer.processSockets(NTSocketMuxer.java:81)
         weblogic.socket.SocketReaderRequest.run(SocketReaderRequest.java:29)
         weblogic.socket.SocketReaderRequest.execute(SocketReaderRequest.java:42)
         weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:145)
         weblogic.kernel.ExecuteThread.run(ExecuteThread.java:117)
    "VDE Transaction Processor Thread" waiting for lock [email protected] WAITING
         java.lang.Object.wait(Native Method)
         java.lang.Object.wait(Object.java:485)
         com.octetstring.vde.backend.standard.TransactionProcessor.waitChange(TransactionProcessor.java:367)
         com.octetstring.vde.backend.standard.TransactionProcessor.run(TransactionProcessor.java:212)
    "VDE Replication Thread" waiting for lock com.octetstring.vde.replication.Replication@10ad426 TIMED_WAITING
         com.octetstring.vde.replication.Replication.wait30sec(Replication.java:384)
         com.octetstring.vde.replication.Replication.run(Replication.java:350)
    "DoSManager" TIMED_WAITING
         java.lang.Thread.sleep(Native Method)
         com.octetstring.vde.DoSManager.run(DoSManager.java:433)
    "Thread-11" waiting for lock java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject@4f576f WAITING
         sun.misc.Unsafe.park(Native Method)
    DUMP 3/3
    "Main Thread" waiting for lock weblogic.t3.srvr.T3Srvr@f14693 WAITING
         java.lang.Object.wait(Native Method)
         java.lang.Object.wait(Object.java:485)
         weblogic.t3.srvr.T3Srvr.waitForDeath(T3Srvr.java:811)
         weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:459)
         weblogic.Server.main(Server.java:67)
    "(Signal Handler)" RUNNABLE
    null
    "(OC Main Thread)" RUNNABLE
    null
    "(Code Generation Thread 1)" RUNNABLE
    null
    "(Code Optimization Thread 1)" RUNNABLE
    null
    "(VM Periodic Task)" RUNNABLE
    null
    "(Attach Listener)" RUNNABLE
    null
    "Finalizer" RUNNABLE
         jrockit.memory.Finalizer.waitForFinalizees(Native Method)
         jrockit.memory.Finalizer.access$700(Finalizer.java:12)
         jrockit.memory.Finalizer$4.run(Finalizer.java:189)
         java.lang.Thread.run(Thread.java:619)
    "Reference Handler" RUNNABLE
         java.lang.ref.Reference.waitForActivatedQueue(Native Method)
         java.lang.ref.Reference.access$100(Reference.java:11)
         java.lang.ref.Reference$ReferenceHandler.run(Reference.java:82)
    "(Sensor Event Thread)" RUNNABLE
    null
    "VM JFR Buffer Thread" RUNNABLE native
    null
    "Timer-0" waiting for lock java.util.TaskQueue@e259a7 WAITING
         java.lang.Object.wait(Native Method)
         java.lang.Object.wait(Object.java:485)
         java.util.TimerThread.mainLoop(Timer.java:483)
         java.util.TimerThread.run(Timer.java:462)
    "Timer-1" waiting for lock java.util.TaskQueue@10ad080 TIMED_WAITING
         java.lang.Object.wait(Native Method)
         java.util.TimerThread.mainLoop(Timer.java:509)
         java.util.TimerThread.run(Timer.java:462)
    "[STANDBY] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'" waiting for lock weblogic.work.ExecuteThread@10ad1bd WAITING
         java.lang.Object.wait(Object.java:485)
         weblogic.work.ExecuteThread.waitForRequest(ExecuteThread.java:157)
         weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
    "weblogic.time.TimeEventGenerator" waiting for lock weblogic.time.common.internal.TimeTable@10aff60 TIMED_WAITING
         weblogic.time.common.internal.TimeTable.snooze(TimeTable.java:286)
         weblogic.time.common.internal.TimeEventGenerator.run(TimeEventGenerator.java:117)
         java.lang.Thread.run(Thread.java:619)
    "weblogic.timers.TimerThread" waiting for lock weblogic.timers.internal.TimerThread@11216cb TIMED_WAITING
         java.lang.Object.wait(Native Method)
         weblogic.timers.internal.TimerThread$Thread.run(TimerThread.java:267)
    "[STANDBY] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'" waiting for lock weblogic.work.ExecuteThread@10ad3e0 WAITING
         java.lang.Object.wait(Object.java:485)
         weblogic.work.ExecuteThread.waitForRequest(ExecuteThread.java:157)
         weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
    "Thread-7" waiting for lock java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject@10ad595 WAITING
         sun.misc.Unsafe.park(Native Method)
         java.util.concurrent.locks.LockSupport.park(LockSupport.java:158)
         java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:1925)
         java.util.concurrent.LinkedBlockingQueue.take(LinkedBlockingQueue.java:399)
         weblogic.utils.concurrent.JDK15ConcurrentBlockingQueue.take(JDK15ConcurrentBlockingQueue.java:89)
         weblogic.store.internal.PersistentStoreImpl.getOutstandingWork(PersistentStoreImpl.java:567)
         weblogic.store.internal.PersistentStoreImpl.run(PersistentStoreImpl.java:615)
         weblogic.store.internal.PersistentStoreImpl$2.run(PersistentStoreImpl.java:383)
    "ExecuteThread: '0' for queue: 'weblogic.socket.Muxer'" RUNNABLE native
         weblogic.socket.NTSocketMuxer.getIoCompletionResult(Native Method)
         weblogic.socket.NTSocketMuxer.processSockets(NTSocketMuxer.java:81)
         weblogic.socket.SocketReaderRequest.run(SocketReaderRequest.java:29)
         weblogic.socket.SocketReaderRequest.execute(SocketReaderRequest.java:42)
         weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:145)
         weblogic.kernel.ExecuteThread.run(ExecuteThread.java:117)
    "ExecuteThread: '1' for queue: 'weblogic.socket.Muxer'" RUNNABLE native
         weblogic.socket.NTSocketMuxer.getIoCompletionResult(Native Method)
         weblogic.socket.NTSocketMuxer.processSockets(NTSocketMuxer.java:81)
         weblogic.socket.SocketReaderRequest.run(SocketReaderRequest.java:29)
         weblogic.socket.SocketReaderRequest.execute(SocketReaderRequest.java:42)
         weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:145)
         weblogic.kernel.ExecuteThread.run(ExecuteThread.java:117)
    "ExecuteThread: '2' for queue: 'weblogic.socket.Muxer'" RUNNABLE native
         weblogic.socket.NTSocketMuxer.getIoCompletionResult(Native Method)
         weblogic.socket.NTSocketMuxer.processSockets(NTSocketMuxer.java:81)
         weblogic.socket.SocketReaderRequest.run(SocketReaderRequest.java:29)
         weblogic.socket.SocketReaderRequest.execute(SocketReaderRequest.java:42)
         weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:145)
         weblogic.kernel.ExecuteThread.run(ExecuteThread.java:117)
    "VDE Transaction Processor Thread" waiting for lock [email protected] WAITING
         java.lang.Object.wait(Native Method)
         java.lang.Object.wait(Object.java:485)
         com.octetstring.vde.backend.standard.TransactionProcessor.waitChange(TransactionProcessor.java:367)
         com.octetstring.vde.backend.standard.TransactionProcessor.run(TransactionProcessor.java:212)
    "VDE Replication Thread" waiting for lock com.octetstring.vde.replication.Replication@10ad426 TIMED_WAITING
         com.octetstring.vde.replication.Replication.wait30sec(Replication.java:384)
         com.octetstring.vde.replication.Replication.run(Replication.java:350)
    "DoSManager" TIMED_WAITING
         java.lang.Thread.sleep(Native Method)
         com.octetstring.vde.DoSManager.run(DoSManager.java:433)
    "Thread-11" waiting for lock java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject@4f576f WAITING
         sun.misc.Unsafe.park(Native Method)

  • Use of DISTINCT for CLOB through Java(Spring framework)

    Hello everyBody,
    How to use DISTINCT for a select query containing a column of type CLOB. I use to_char(column name) for that column name. It works fine on oracle command prompt , but not working thr my JAVA API(jdk 1.3) . It throws an exception saying InvalidFormat. I am using spring framework in Java. Is anyBody have solution to this? I am using oracle 9i. Please reply soon. Thankx in advance.

    I do realise the fact that you are using Spring probably indicates that you lack heavy duty SQL skills. But you really should try to learn to tune your queries properly.
    Cheers, APC

  • Spring framework with JDeveloper

    Hi,
    I'm developing to an application using JDeveloper. I need to use Spring framework, somebody has used it, integrating it with JDeveloper ?
    Thanks

    Hello,
    How do you use ADF with Spring in a JSF application? I am trying and it seems like my ADF filter and JSf-Spring integration filter conflict with each other. Here the stanzas from my web.xml file. Ther ADF Internal listener fails with a null ptr or a java.lang.ArrayIndexOutOfBoundsException when I attempt to access my JSF page (no ADF tags are in this page but it does use Spring/JSF managed beans). If I remove the ADF filter and retry everything works???
    <!-- Runtime exception -->
    java.lang.ArrayIndexOutOfBoundsException: 3
         javax.faces.component.UICommand.restoreState(UICommand.java:268)
         javax.faces.component.html.HtmlCommandButton.restoreState(HtmlCommandButton.java:826)
         javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:999)
         javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:1011)
         javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:1011)
         javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:1011)
         oracle.adfinternal.view.faces.application.StateManagerImpl.restoreView(StateManagerImpl.java:249)
         com.sun.faces.application.ViewHandlerImpl.restoreView(ViewHandlerImpl.java:246)
         oracle.adfinternal.view.faces.application.ViewHandlerImpl.restoreView(ViewHandlerImpl.java:192)
         com.sun.faces.lifecycle.RestoreViewPhase.execute(RestoreViewPhase.java:157)
         com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
         com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:90)
         javax.faces.webapp.FacesServlet.service(FacesServlet.java:197)
         oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._doFilterImpl(AdfFacesFilterImpl.java:264)
         oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl.doFilter(AdfFacesFilterImpl.java:151)
         oracle.adf.view.faces.webapp.AdfFacesFilter.doFilter(AdfFacesFilter.java:123)
         de.mindmatters.faces.spring.RequestHandledFilter.doFilter(RequestHandledFilter.java:117)
    <!-- Faces Filter -->
    <filter>
    <filter-name>faces</filter-name>
    <filter-class>oracle.adfinternal.view.faces.webapp.FacesFilter</filter-class>
    <init-param>
    <param-name>faces-servlet-url-pattern</param-name>
    <param-value>/faces/*</param-value>
    </init-param>
    </filter>
    <filter>
    <filter-name>adfFaces</filter-name>
    <filter-class>oracle.adf.view.faces.webapp.AdfFacesFilter</filter-class>
    </filter>
    <filter>
    <filter-name>RequestHandled</filter-name>
    <filter-class>de.mindmatters.faces.spring.RequestHandledFilter</filter-class>
    </filter>
    <filter-mapping>
    <filter-name>RequestHandled</filter-name>
    <url-pattern>/faces/*</url-pattern>
    </filter-mapping>
    <!-- Faces Filter Mappings -->
    <filter-mapping>
    <filter-name>faces</filter-name>
    <url-pattern>*.jspx</url-pattern>
    </filter-mapping>
    <filter-mapping>
    <filter-name>adfFaces</filter-name>
    <servlet-name>faces</servlet-name>
    </filter-mapping>
    <listener>
         <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
    </listener>

  • Spring Framework 3.1 Suppport in SOA Suite

    Hi ,
    Does SOA Suite provides support to use Spring Framework 3.1.
    IN Jdeveloper if i open SOA Spring Context Service Component, in component palette its shows Spring 2.5 Framework components.
    Please share inputs on how to use Spring Framework 3.1 with SOA Suite.
    Edited by: Abhinav on Feb 1, 2013 2:51 PM

    Thanks for replying.
    If Spring 3.1 support is not there, then what are the different ways of integration with Spring Application 3.1 from SOA Suite.
    One can be :
    If Spring Application is being exposed as spring web service ( SOAP/REST) and then soa suite calls spring application using web service/HTTP binding components ?
    Please suggest !!
    Regards,
    Abhinav Gupta

  • STRUT, COocoon, Spring framework

    I'm about to start self-learning Cocoon, Strut, and Spring framework.
    I was wondering which to start. After a quick glance at Jakarta site, I noticed that the description of Cocoon is very similiar to Strut. Is Strut a replacement of Cocoon..and I also noticed that Cocoon is not listed as one of the project under Jakarta. has it been stop?
    And which framework should i start with? some suggest that i learn strut, since strut is more popular..but some say Sping is better than Strut, and people are shifting toward Spring framework. Basically..i'm confuse as where to start..i will probably learn them all (though probably not in detail for some framework)

    Cocoon is a high level Apache projet. It is not part of Jakarta.
    http://cocoon.apache.org/
    It is tough for anyone to tell you which framework you should be learning because they all have their uses. Yes, Struts is by far the most widely used.
    However, JSF is becoming the new standard now that Sun is pushing it. So don't count it out.
    Sorry I can't help you more with your decision. What framework to use/learn is a topic often debated. Only you can decide which one makes the most sense for you.
    Good luck.

  • Date Formatting, JSTL tags and the Spring framework

    Hi all, i have a small problem and i am hoping maybe someone here knows the solution. I am using a date field in a search page, binding it using a customDateEditor, and using a validator for correct formatting. The problem i have is this: i am using the <spring:bind> tag so that the page will return with the value that caused a validation fault. But even if the page succeeds it is submitted back onto itself, this time carrying the search results. But this time the date field will return in a completly different format. I cannot use the <fmt:formatDate> tag because of <spring:bind>. How can i register a "reverse" bind editor if you will, something that will print my data according to a specific format depending on the class?
    Code snippet follows :
    <spring:bind path="filesRequest.fileEndDateSearch">
    <input type="text" id="fileEndDateSearch" name="fileEndDateSearch" class="txtBox" value="<fmt:formatDate value="${status.value}" type="date" pattern="yyyy-MM-dd" />"/>
    </spring:bind>
    Using <fmt:formatDate> for the ${status.value} will cause an exception in case the validator fails, as the format date tag will try to parse the erroneous input.
    Just in case i was not that clear in the first paragraphs, here's exactly what i'm trying to achieve: using the Spring framework i want to design a search page that submits back onto itself(with or without some search results) that takes advantage of the validator, the <spring:bind> tag (that is to say, if the user submits some erroneous data it is returned to him in the corresponding field so he can correct it) and somehow should format the data it receives from the form according to a specific format.

    If you don't want the default localized version, I think you might have to do your own logic for how to display the dates.
    <fmt:formatDate value="${now}" dateStyle="SHORT"/> might be close... but
    with the following you can set the patterns to what you want. No automagic though :(
    <fmt:formatDate value="${now}" pattern="MM-dd-yyyy"/>

  • How to develop and deploy Spring framework app in Sun One App Server 8.1

    Hi,
    Can anyone give sample on how to develop and depoly spring framework application in J2EE 1.4 Server or Sun One App Server 8.1 .
    Its very urgently needed for my project to learn and implement spring framework i would very thankful if any one can help.
    Thanking You
    Naveen

    Pretty standard for AS8 to deploy Spring. The only thing to watch for is the security manager, which you'll probably want to turn off.

  • Document root element is missing: migrating spring app from tomcat

    Hi!
    can anybody help me with this issue?
    I have ported my tomcat spring application to netweaver(6.40, SP 17, Windows 2k SP4) and i get the following error:
    Error occured in invoking event "contextInitialized()" on listener clas
    s com.webapp.listener.StartupListener. The error is: org.springfram
    ework.beans.factory.BeanCreationException: Error creating bean with nam
    e 'sessionFactory' defined in ServletContext resource [/WEB-INF/applica
    tionContext-hibernate.xml]: Initialization of bean failed; nested excep
    tion is org.hibernate.MappingException: Could not parse mapping documen
    t in input stream
    org.hibernate.MappingException: Could not parse mapp
    ing document in input stream
         at org.hibernate.cfg.Configuration.addIn
    putStream(Configuration.java:430)
         at org.springframework.orm.hibernat
    e3.LocalSessionFactoryBean.afterPropertiesSet(LocalSessionFactoryBean.j
    ava:654)
         at org.springframework.beans.factory.support.AbstractAutowir
    eCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactor
    y.java:1059)
         at org.springframework.beans.factory.support.AbstractAut
    owireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.j
    ava:363)
         at org.springframework.beans.factory.support.AbstractBeanFac
    tory.getBean(AbstractBeanFactory.java:226)
         at org.springframework.bea
    ns.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java
    :147)
         at org.springframework.beans.factory.support.DefaultListableBea
    nFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:269)
         at org.springframework.context.support.AbstractApplicationContext.ref
    resh(AbstractApplicationContext.java:320)
         at org.springframework.web.
    context.support.AbstractRefreshableWebApplicationContext.refresh(Abstra
    ctRefreshableWebApplicationContext.java:134)
         at org.springframework.w
    eb.context.ContextLoader.createWebApplicationContext(ContextLoader.java
    :246)
         at org.springframework.web.context.ContextLoader.initWebApplica
    tionContext(ContextLoader.java:184)
         at org.springframework.web.contex
    t.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:4
    9)
         at com.ifx.webapp.listener.StartupListener.contextInitialized(Star
    tupListener.java:42)
         at com.sap.engine.services.servlets_jsp.server.r
    untime.context.WebEvents.contextInitialized(WebEvents.java:45)
         at com
    .sap.engine.services.servlets_jsp.server.container.ApplicationThreadIni
    tializer.run(ApplicationThreadInitializer.java:112)
         at com.sap.engine
    .core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.sec
    urity.AccessController.doPrivileged(Native Method)
         at com.sap.engine.
    core.thread.impl3.SingleThread.execute(SingleThread.java:100)
         at com.
    sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)
    C
    aused by: org.dom4j.DocumentException: Error on line 1 of document  : D
    ocument root element is missing. Nested exception: Document root elemen
    t is missing.
         at org.dom4j.io.SAXReader.read(SAXReader.java:482)
         at
    org.hibernate.cfg.Configuration.addInputStream(Configuration.java:421)
         ... 18 more
    And yes, the xml files are valid xml files at least in anything i've used to look at them (eclipse, ultraedit, notepad, ie) :).....
    Thank you!
    ps. the file:
    <?xml version="1.0" encoding="UTF-8" ?>
    <!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN"
        "http://www.springframework.org/dtd/spring-beans.dtd">
    <beans>
        <!-- Hibernate SessionFactory -->
        <bean id="sessionFactory" class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">
            <property name="dataSource" ref="dataSource"/>
            <property name="mappingResources">
                <list>
                    <value>package/ModelObj1.hbm.xml</value>
                    <value>package/ModelObj2.hbm.xml</value>
                </list>
            </property>
            <property name="hibernateProperties">
                <props>
                    <prop key="hibernate.dialect">org.hibernate.dialect.Oracle9Dialect</prop>
                </props>
            </property>
        </bean>
        <!-- Transaction manager for a single Hibernate SessionFactory (alternative to JTA) -->
        <bean id="transactionManager" class="org.springframework.orm.hibernate3.HibernateTransactionManager">
            <property name="sessionFactory" ref="sessionFactory"/>
        </bean>
        <!-- Generic DAO - can be used when doing standard CRUD -->
        <bean id="dao" class="com.dao.hibernate.BaseDAOHibernate">
            <property name="sessionFactory" ref="sessionFactory"/>
        </bean>
    </beans>

    hi istvan,
    we are also migrating from websphere to netweaver.
    But in spring framework we r facing problems.
    We hav spring-beans.jar file in lib dir of Web Application. But When we are creating BeanFactory from xml as,
    BeanFactory beanFactory = new ClassPathXmlApplicationContext ("client-config.xml");
    clent-config.xml file contains :
    [code<?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
    <beans>
         <bean id="propertyConfigurer" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer" >
              <property name="location">
                   <value>conf/service-client/client.properties</value>
              </property>
         </bean></beans>
    [/code]
    But code is giving exception: ClassNotFoundException -org.springframework.beans.factory.config.PropertyPlaceholderConfigurer.
    Wat is the problem ?
    Kindly help.
    We are also using JAAS for authentication.We are refering above code from our LoginModules login() method.
    Regards,
    sagar.

  • Do I need to install Spring framework separately for my Eclipse?

    Hi, Guys:
        I am completely new to Java Enterprise, and I am supposed to use Spring framework and hibernate. tools: JDK 7, Eclipse, Maven, Git, etc.
       I have a question that may be silly to you guys: I want to try my first Spring project, on training video (using Spring 3.05), it asks me to download Spring framework 3.05, and I wonder if I already installed Maven plugin on my eclipse, do I have to download Spring framework? as I got a rough idea that Maven already supports Spring. However, I cannot find such a library support in my project property. Someone just said I need to follow M2E instruction, Could any one give a hint?
    thanks a lot!
    Sam

    Why would that be a solution to this particular problem? A plugin MIGHT make your life easier in the end if it works properly, if you know how to use the framework it manages. It is perfectly possible to use Spring in a Java project, regardless of tooling, without having to install anything. The only thing you need is the proper jars like is the case for any API, toolkit, framework or whatever in Java land; you need to at least understand how to work with libraries/jars before you can start to work with frameworks like Spring.
    And how you get the proper jars - that's a task that lies with the developer, not the tool. I would use Maven myself, that makes it really easy to manage the dependencies (especially upgrading to new versions) once you get over the hump of setting up the poms once. And then for future projects it becomes a matter of copy/pasting the poms. But reading the very extensive and complete Spring documentation and then manually downloading the required jars and adding them the your project's build classpath is also a valid option. Eclipse has a built-in help which explains just fine how to manage libraries in a project.

  • I need help to create  idoc from scrach.

    i need help to create  idoc from scrach.

    Swamy Katta,
    Please read "[the rules|https://www.sdn.sap.com/irj/sdn/wiki?path=/display/home/rulesofEngagement]" before you post any further, and confirm that you have read them?
    => Search first, ask questions later please!
    Julius

  • Using Spring beans from EJB MDB

    I have a situation where I need to use spring beans from an EJB 3.0 MDB. The project does not have any webapps or anything,
    it will be only a MessageBean facade that needs to call spring beans. It is meant to be a service, that can be called by usign a single EJB message.
    The problem is I cannot get the spring context to load properly, since the MDBean it self is initialized(constructor called) only when it receives the first message from the broker, thus It's "too late" to initialize the spring context. What I want to do is load the spring context when the EJB is deployed in the Java EE container. So, is there a way I can call a some method, class, anything when the EJB is deployed in the container. Can I do something with a deployment descriptor?
    I am using glassfish V2 UR1, EJB 3.0, Spring 2.0.7 The project is deployed as a jar.

    Miku wrote:
    I have a situation where I need to use spring beans from an EJB 3.0 MDB. The project does not have any webapps or anything,
    it will be only a MessageBean facade that needs to call spring beans. It is meant to be a service, that can be called by usign a single EJB message. Why not make it a real service? Spring's contract first web services are a very nice way to go. It hides the fact that you're using a message-driven component for processing, too.
    %

  • What are the pre-requisites for learning OA Framework?

    Hi,
    Im new to oaf,can any body help on this
    What are the pre-requisites for learning OA Framework?
    Karthik

    In order to develop any OAF Application you need to know few concepts before doing any kind of development. The concepts are basically the Business Components for Java(BC4J) components.
    They are:
    Application Module(AM)
    Entity Object(EO)
    View Object(VO)
    Association Object(AO)
    View Link(VL)
    Now let us see the description of each component.
    Application Module:
    Application Modules serve as a containers for related BC4J components. The pages are related by participating in the same task. It also defines the logical data model and business methods needed.They provide the transaction context and also used for establishing database connection. AM’s can be nested to provide more complex AM’s.
    Entity Object:
    EO encapsulates the business logic and rules.EO’s are used for Inserting,Updating and Deleting data. This is used for validating across the applications. We can also link to other EO’s and create a Association object.
    View Object:
    View object encapsulates the database query. It is used for selecting data. It provides iteration over a query result set.VO’s are primarily based on Eo’s. It can be used on multiple EO’s if the UI is for update. It provides a single point of contact for getting and setting entity object values. It can be linked together to form View Links.
    Association Object:
    An association object is created where we link EO’s. For example take the search page where we link the same EO to form a association between the manager and employee. Every employee should have a manager associated. But if it President then no there is no manager associated. This is a perfect example to understand the AO.
    View Link:
    A view link is an active link between view links. A view link can be created by providing the source and destination views and source and destination attributes. There are two modes of View link operation that can be performed. A document and Master/Detail operation.
    -----Let me know if you need more information
    Regards
    Meher Irk
    Edited by: Meher Irk on Oct 23, 2010 10:45 AM

Maybe you are looking for

  • Not able to un-merge a dimension in webi report

    Hello, I'm facing an issue in webi reports. That is I'm not able to un-merge a dimension. I'm using BO 4.0 sp 6 I have 6 data providers in my webi report all of those 6 have sales order number in common. The report refreshes fine but a new requiremen

  • Errors with JDK source file

    I'm extremely new to JAVA. I just installed JDK 6 and JRE on Windows XP and typed java ~version at the command prompt and got this error: Exception in thread "main" java.lang.NoClassDefFoundError: ~version caused by: java.lang.ClassNotFoundException:

  • I have many photos that were on my computer via Elements 11.  I had work done on my computer and Elements 11 was deleted.  I was told that after loading

    How do I get old photos from Elements #11 to my new Elements #12?  I had work done on my computer and although I have about 3000 photos from Elements #11, when this work was done Elements #11 was deleted.  So I have these photos on my hard drive, so

  • Sounds from my keyboard to play in garage band

    Hello guys I am a new GB user I have a simple question i think. Will GB recognize the sounds in my Roland Fantom X7? I got my keyboard to work but it seems it only plays the sounds that came with GB and not the million sounds in my Roland. Does anyon

  • Kernel Upgrade 7.0 (Win+SQL)

    Hi All, I am bit confused while upgrading the kernel 7.0 - unicode (SCM 5.0). Previously we use \usr\sap\SID\SYS\exe\run as a kernel. BUT in our case I can see kernel files @ 3 different places viz... 1)\usr\sap\SID\DVEBMGS01\exe 2)\usr\sap\SID\SCS00