Spring framework

how can i lookp ejbs using service locator

Hello,
Which version of EJB are you using? (2.1 or 3.0)
Have you look at the Spring online tutorial that explains how to access EJBs?
Chapter 17. Accessing and implementing EJBs
Let me know if this not what you are looking for.
Regards
Tugdual Grall

Similar Messages

  • 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

  • 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.

  • 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.

  • Jdeveloper 10 EA and spring frameworks what about  integration?

    jdeveloper 10 EA and spring frameworks what about integration?

    Hi,
    there is no integration to Spring in Jdeveloper. You can develop applications that use Spring, but we don't provide specific wizards or dialogs.
    Frank

  • 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"/>

  • Handling of multiple view in spring framework

    Hi,
    I just wanted to know that how can i handle control on view in spring framework as we handle in struts.
    For e.g.
    In struts when action servlet needs to find next view it looks for <forward> in struts-config.xml , how can i achieve same thing in Spring..

    So you want the knowledge. But are you willing to make the effort to gain the knowledge?
    http://static.springsource.org/spring/docs/3.1.0.M1/spring-framework-reference/html/mvc.html

  • Spring framework ModelAndView question.

    Hi,
    In my controller object, it creates a ModelAndView object and invoke the following methods:
    ModelAndView mv = new ModelAndView("hello");
    mv.addObject(req);
    mv.addObject(resp);
    mv.addObject(ctx);
    I would like to know how to access these objects (i.e. req, resp, ctx) in my JSP??
    Thanks.

    nick2price wrote:
    I am a bit confused with this spring framework.
    I can find tutorials on it but they seem a bit wierd. what does wierd [sic] mean?
    i think "spring mvc step by step" is excellent. did you try to code it?
    What exactly is a framework? "don't call us, we'll call you"
    I downloaded it onto my desktop and now i have a folder full of things? What do i have to do to set it up?put the jars in your project and start configuring spring.
    (if anything). I had to download this for a tutorial. I also had to download tomcat, even though i have no idea what this is too. Looks like a sort of server? yes, it's a servlet/jsp engine.
    Brief description on this too would be great.
    thanks

  • 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.

  • 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 :)

  • How to integrate BIP API in Spring framework

    Hi everyone,
    Is it possible to integrate Oracle Business Integration Publisher API with "Spring framework" ? I want to get the reports generated using Oracle BI Publisher API but our project is spring framework based. Anyone any ideas? How to do so ?
    Thanks !

    Pardon my ignorance, if I checked something wrong in the BIP documentation but that web services part require some SQL queries to be written right? We are not supposed to make our application so complicated. I guess, if I only add jars, then BIP code would work just like simple POJOs. Not sure
    Will let you know once I will solve this problem.
    Thanks !

  • Integrating Spring framework

    Can I do the Spring Framework related stuff in this IDE ?If yes,then which procedure I have to follow to do the same.

    You might want to install the Spring extension for JDeveloper which will give you more spring capabilities in JDeveloper.
    Go to help->check for updates...
    http://www.oracle.com/technology/products/jdev/htdocs/partners/addins/exchange/spring/spring-extension.html

  • What is the difference between struts and spring framework

    What is the difference between struts and spring framework
    Thanks in advance

    Struts is nothing more than a web MVC framework.
    Spring is lots more.
    Spring has its own web MVC frameworks for both servlets and portlets. I think the Struts web MVC design is inferior to Spring's.
    It also has JDBC and ORM support, message driven POJOs, an IoC engine, aspects, and lots more.
    Struts would be a minor subset of Spring.
    %

Maybe you are looking for

  • Which DVDs burn at 8x in a Dual 1.8 G5?

    I have a G5 Dual 1.8 with the Pioneer 107D drive. I've had trouble finding DVD-Rs that burn at full 8x speed. In the past I have tried: Memorex 8x DVD-R - burned at 4x TDK 8x DVD-R - burned at 8x I've been using a spindle of the TDK 8x discs for the

  • Lion iCal Can't Open Other Calendars, Outlook Can

    Hey folks - I'm connecting Mail.app, iCal, and Address Book to the corporate Exchange server here at work.  The one bit I can't seem to get to work with any regularity is access other calendars (delegates) in iCal.  I know my NT account can see those

  • .MOV file black screen

    I recently got my event filmed and the videographer sent the footage to me via wetransfer, I can see the pictures fine but the movies wont play, however the time of the recording is there, the screen is black and I cannot hear any of the audio. usual

  • OVM Server Got Rebooted

    hi, i have ovm 2.2 setup i checked log i.e /var/log/messages i saw it was trying to connect 10.180.8.119 as a cluster node but it is actually a VM Guest. i can't understand why it is trying this please suggest below is the log from /var/log/messages

  • HT201272 What about audio books?  my audio book didnt download the full book.  a file is missing.  how do I see that to download?

    What about audio books?  my audio book didnt download the full book.  a file is missing.  how do I see that to download?