Commonj TimerManager Help

I'm looking into using the commonj TimerManager as a scheduler in my application.
I am following examples and articles found on the following page
http://dev2dev.bea.com/wlplatform/commonj/twm.html
I'm having problems with configuration.
I'm running weblogic 8.1 SP4
My configuration in web.xml is:
<resource-ref>
<res-ref-name>timer/Report</res-ref-name>
<res-type>commonj.timer.TimerManager</res-type>
<res-auth>Container</res-auth>
<res-sharing-scope>Unshareable</res-sharing-scope>
</resource-ref>
My configuration in weblogic.xml is:
<reference-descriptor>
<resource-description>
<res-ref-name>timer/Report</res-ref-name>
<jndi-name>java:comp/env/timer/Report</jndi-name>
</resource-description>
</reference-descriptor>
Deployment works but when I try to run my test code I get the following stack trace.
Any help or direction is appreciated.
[DEBUG] 2005-06-23 09:58:16,382 - util.ServiceLocator (ServiceLocator.java:59)- retrieving jndi object [java:comp/env/timer/Report]
<Jun 23, 2005 9:58:16 AM GMT-07:00> <Error> <HTTP> <BEA-101017> <[ServletContext(id=18506634,name=web.war,context-path=)] Root cause of ServletException.
java.lang.StackOverflowError
at com.sun.naming.internal.VersionHelper12$2.run(VersionHelper12.java:89)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.naming.internal.VersionHelper12.getJndiProperties(VersionHelper12.java:85)
at com.sun.naming.internal.ResourceManager.getInitialEnvironment(ResourceManager.java:138)
at javax.naming.InitialContext.init(InitialContext.java:215)
at javax.naming.InitialContext.<init>(InitialContext.java:175)
at weblogic.jndi.internal.ApplicationNamingNode.resolveObject(ApplicationNamingNode.java:176)
at weblogic.jndi.internal.BasicNamingNode.resolveObject(BasicNamingNode.java:771)
at weblogic.jndi.internal.BasicNamingNode.lookup(BasicNamingNode.java:191)
at weblogic.jndi.internal.ApplicationNamingNode.lookup(ApplicationNamingNode.java:138)
at weblogic.jndi.internal.WLEventContextImpl.lookup(WLEventContextImpl.java:256)
at weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:359)
at weblogic.jndi.factories.java.ReadOnlyContextWrapper.lookup(ReadOnlyContextWrapper.java:45)
at weblogic.jndi.internal.ApplicationNamingNode.resolveObject(ApplicationNamingNode.java:178)
at weblogic.jndi.internal.BasicNamingNode.resolveObject(BasicNamingNode.java:771)
at weblogic.jndi.internal.BasicNamingNode.lookup(BasicNamingNode.java:191)
at weblogic.jndi.internal.ApplicationNamingNode.lookup(ApplicationNamingNode.java:138)

disregard this post... I figured out that I am looking at a spec and not an implementation :-(

Similar Messages

  • Commonj TimerManager API in 9.2

    I am running the commonj TimeManager in wls 9.2 and running into a problem with the scheduleAtFixedRate method of the TimerManager... scheduleAtFixedRate is running exactly like "schedule" method i.e working on a delay basis instead of specific time. For example, if I have a task scheduled to start at 1PM & interval 1hour and the first task (code inside timerExpired) takes 20 min then the second task is starting at 2:20 instead of 2..I thought with scheduleAtFixedRate I can make it at precise times irrespective of how much the previous task takes.. I am not seeing any difference between schedule and scheduleAtFixedRate..not sure why..any tips?

    Hello!
    In 9iAS 9.0.3 is running an EJB-Example and a
    Webservice-Example.
    I want use a Java Stored Procedure within Oracle DBMS
    9.2. to call this Webservice and this EJB.
    My Question: Is this supported in DBMS 9.2 release?yes, even 9.0.1 and to some extent, 8.1.7 can consume external web services (in iAS, any J2EE Server and .NET)
    see code samples @ http://otn.oracle.com/tech/webservices/database.html
    >
    Another question:
    Which Standard-JAVA-API-Classes are not available in
    OJVM 1.3.1 which is delivered with Oracle DBMS 9.2.mostly APIs that do not make sense in a database server environment such as AWT/Swing classes -- however, J2SE 1.4 provides Headless AWT for manipulating these objects without materializing their UI -- when we upgrade the OJVM version to J2SE 1.4, we will support Headless AWT.
    Kuassi
    thank you!
    Harald.

  • Thread hang during call EJB 3.0 with Weblogic 10.3 (Urgent)

    Hello,
    We have a java client application call Weblogic Appserver 10.3, EJB 3.0 Service. Occasionally, client application, some step will get hang when try to invoking EJB. When we restart the application server and re-run the client application, it may work or hang on any other step. (Totally, we have around 40 steps to invoking EJB service)
    We did check Google and find similar issue happen on the IBM Websphere appserver. They post a patch to fix this issue (http://www-01.ibm.com/support/docview.wss?rs=180&uid=swg1PK74719), but not Weblogic.
    Is there any Weblogic expert who can help me to solve this issue?
    I have attached two thread dumps (different steps) when they got hang.
    Appreciate your quick help.
    Best wishes,
    Feelyn
    ==========================================================================================================================================
    Thread Dump files.
    NULL ------------------------------------------------------------------------
    0SECTION THREADS subcomponent dump routine
    NULL =================================
    NULL
    1XMCURTHDINFO Current Thread Details
    NULL ----------------------
    NULL
    1XMTHDINFO All Thread Details
    NULL ------------------
    NULL
    2XMFULLTHDDUMP Full thread dump J9 VM (J2RE 6.0 IBM J9 2.4 AIX ppc64-64 build jvmap6460-20090215_2988320090215_029883_BHdSMr, native threads):
    3XMTHREADINFO "main" TID:0x0000000110A64600, j9thread_t:0x000000011011F420, state:CW, prio=5
    3XMTHREADINFO1 (native thread ID:0x125009, native priority:0x5, native policy:UNKNOWN)
    4XESTACKTRACE at java/util/HashMap.findNonNullKeyEntry(HashMap.java:526(Compiled Code))
    4XESTACKTRACE at java/util/HashMap.getEntry(HashMap.java:511(Compiled Code))
    4XESTACKTRACE at java/util/HashMap.get(HashMap.java:497(Compiled Code))
    4XESTACKTRACE at weblogic/utils/collections/SoftHashMap.get(SoftHashMap.java:194(Compiled Code))
    4XESTACKTRACE at weblogic/ejb/container/internal/RemoteBusinessIntfProxy.getTargetMethod(RemoteBusinessIntfProxy.java:125(Compiled Code))
    4XESTACKTRACE at weblogic/ejb/container/internal/RemoteBusinessIntfProxy.invoke(RemoteBusinessIntfProxy.java:53(Compiled Code))
    4XESTACKTRACE at $Proxy0.cleanBx001(Bytecode PC:18)
    4XESTACKTRACE at com/tesco/eod/exec/thred/CleanZBx001Thead.cleanBx001(CleanZBx001Thead.java:38)
    4XESTACKTRACE at com/tesco/eod/exec/MainClass.cleanBx001(MainClass.java:1033)
    4XESTACKTRACE at com/tesco/eod/exec/MainClass.main(MainClass.java:1239)
    3XMTHREADINFO "JIT Compilation Thread" TID:0x0000000111CBE200, j9thread_t:0x000000011011FE20, state:CW, prio=10
    3XMTHREADINFO1 (native thread ID:0x127073, native priority:0xB, native policy:UNKNOWN)
    3XMTHREADINFO "Signal Dispatcher" TID:0x0000000111EBEB00, j9thread_t:0x0000000111D5B940, state:R, prio=5
    3XMTHREADINFO1 (native thread ID:0xA4165, native priority:0x5, native policy:UNKNOWN)
    4XESTACKTRACE at com/ibm/misc/SignalDispatcher.waitForSignal(Native Method)
    4XESTACKTRACE at com/ibm/misc/SignalDispatcher.run(SignalDispatcher.java:54)
    3XMTHREADINFO "Gc Slave Thread" TID:0x0000000111EFED00, j9thread_t:0x0000000111EC8340, state:CW, prio=5
    3XMTHREADINFO1 (native thread ID:0xDC0CD, native priority:0x5, native policy:UNKNOWN)
    3XMTHREADINFO "Gc Slave Thread" TID:0x0000000111FBBA00, j9thread_t:0x0000000111EC8840, state:CW, prio=5
    3XMTHREADINFO1 (native thread ID:0x27C1D9, native priority:0x5, native policy:UNKNOWN)
    3XMTHREADINFO "Gc Slave Thread" TID:0x000000011209AB00, j9thread_t:0x0000000112055AE0, state:CW, prio=5
    3XMTHREADINFO1 (native thread ID:0x1EA0D5, native priority:0x5, native policy:UNKNOWN)
    3XMTHREADINFO "Gc Slave Thread" TID:0x000000011209FD00, j9thread_t:0x0000000112055FE0, state:CW, prio=5
    3XMTHREADINFO1 (native thread ID:0x282155, native priority:0x5, native policy:UNKNOWN)
    3XMTHREADINFO "Gc Slave Thread" TID:0x0000000112107E00, j9thread_t:0x00000001120564E0, state:CW, prio=5
    3XMTHREADINFO1 (native thread ID:0xFF037, native priority:0x5, native policy:UNKNOWN)
    3XMTHREADINFO "Gc Slave Thread" TID:0x0000000112122700, j9thread_t:0x000000011211DD80, state:CW, prio=5
    3XMTHREADINFO1 (native thread ID:0x10B1BF, native priority:0x5, native policy:UNKNOWN)
    3XMTHREADINFO "Gc Slave Thread" TID:0x00000001123E4200, j9thread_t:0x000000011211E280, state:CW, prio=5
    3XMTHREADINFO1 (native thread ID:0x119025, native priority:0x5, native policy:UNKNOWN)
    3XMTHREADINFO "Finalizer thread" TID:0x0000000112D5A000, j9thread_t:0x000000011211E780, state:CW, prio=5
    3XMTHREADINFO1 (native thread ID:0xDE109, native priority:0x5, native policy:UNKNOWN)
    3XMTHREADINFO "ExecuteThread: '0' for queue: 'default'" TID:0x0000000112DEE600, j9thread_t:0x0000000112DD8B80, state:CW, prio=5
    3XMTHREADINFO1 (native thread ID:0x25412D, native priority:0x5, native policy:UNKNOWN)
    4XESTACKTRACE at java/lang/Object.wait(Native Method)
    4XESTACKTRACE at java/lang/Object.wait(Object.java:167)
    4XESTACKTRACE at weblogic/kernel/ExecuteThread.waitForRequest(ExecuteThread.java:91)
    4XESTACKTRACE at weblogic/kernel/ExecuteThread.run(ExecuteThread.java:115)
    3XMTHREADINFO "ExecuteThread: '1' for queue: 'default'" TID:0x0000000112E23F00, j9thread_t:0x0000000112DD9080, state:CW, prio=5
    3XMTHREADINFO1 (native thread ID:0x2DC15F, native priority:0x5, native policy:UNKNOWN)
    4XESTACKTRACE at java/lang/Object.wait(Native Method)
    4XESTACKTRACE at java/lang/Object.wait(Object.java:167)
    4XESTACKTRACE at weblogic/kernel/ExecuteThread.waitForRequest(ExecuteThread.java:91)
    4XESTACKTRACE at weblogic/kernel/ExecuteThread.run(ExecuteThread.java:115)
    3XMTHREADINFO "ExecuteThread: '2' for queue: 'default'" TID:0x0000000112F65E00, j9thread_t:0x0000000112DD9580, state:CW, prio=5
    3XMTHREADINFO1 (native thread ID:0x275171, native priority:0x5, native policy:UNKNOWN)
    4XESTACKTRACE at java/lang/Object.wait(Native Method)
    4XESTACKTRACE at java/lang/Object.wait(Object.java:167)
    4XESTACKTRACE at weblogic/kernel/ExecuteThread.waitForRequest(ExecuteThread.java:91)
    4XESTACKTRACE at weblogic/kernel/ExecuteThread.run(ExecuteThread.java:115)
    3XMTHREADINFO "ExecuteThread: '3' for queue: 'default'" TID:0x0000000112FF2D00, j9thread_t:0x0000000112FBAF80, state:CW, prio=5
    3XMTHREADINFO1 (native thread ID:0x1B4199, native priority:0x5, native policy:UNKNOWN)
    4XESTACKTRACE at java/lang/Object.wait(Native Method)
    4XESTACKTRACE at java/lang/Object.wait(Object.java:167(Compiled Code))
    4XESTACKTRACE at weblogic/kernel/ExecuteThread.waitForRequest(ExecuteThread.java:89(Compiled Code))
    4XESTACKTRACE at weblogic/kernel/ExecuteThread.run(ExecuteThread.java:115)
    3XMTHREADINFO "ExecuteThread: '4' for queue: 'default'" TID:0x00000001130DD800, j9thread_t:0x0000000112FBB480, state:R, prio=5
    3XMTHREADINFO1 (native thread ID:0x245133, native priority:0x5, native policy:UNKNOWN)
    4XESTACKTRACE at java/net/SocketInputStream.socketRead0(Native Method)
    4XESTACKTRACE at java/net/SocketInputStream.read(SocketInputStream.java:140(Compiled Code))
    4XESTACKTRACE at weblogic/socket/SocketMuxer.readReadySocketOnce(SocketMuxer.java:887(Compiled Code))
    4XESTACKTRACE at weblogic/socket/SocketMuxer.readReadySocket(SocketMuxer.java:849(Compiled Code))
    4XESTACKTRACE at weblogic/socket/JavaSocketMuxer.processSockets(JavaSocketMuxer.java:283)
    4XESTACKTRACE at weblogic/socket/SocketReaderRequest.run(SocketReaderRequest.java:29)
    4XESTACKTRACE at weblogic/work/ExecuteRequestAdapter.execute(ExecuteRequestAdapter.java:21)
    4XESTACKTRACE at weblogic/kernel/ExecuteThread.execute(ExecuteThread.java:145)
    4XESTACKTRACE at weblogic/kernel/ExecuteThread.run(ExecuteThread.java:117)
    3XMTHREADINFO "weblogic.timers.TimerThread" TID:0x0000000111DACF00, j9thread_t:0x0000000112FBB980, state:CW, prio=9
    3XMTHREADINFO1 (native thread ID:0xFE11F, native priority:0x9, native policy:UNKNOWN)
    4XESTACKTRACE at java/lang/Object.wait(Native Method)
    4XESTACKTRACE at java/lang/Object.wait(Object.java:196(Compiled Code))
    4XESTACKTRACE at weblogic/timers/internal/TimerThread$Thread.run(TimerThread.java:267)
    3XMTHREADINFO "Thread-5" TID:0x00000001130E2900, j9thread_t:0x00000001130DC700, state:CW, prio=5
    3XMTHREADINFO1 (native thread ID:0x1E61A9, native priority:0x5, native policy:UNKNOWN)
    4XESTACKTRACE at java/lang/Object.wait(Native Method)
    4XESTACKTRACE at java/lang/Object.wait(Object.java:167)
    4XESTACKTRACE at java/util/Timer$TimerImpl.run(Timer.java:210)
    3XMTHREADINFO "weblogic.transaction.TxTimer: '1'" TID:0x00000001132FA300, j9thread_t:0x00000001130DCC00, state:CW, prio=5
    3XMTHREADINFO1 (native thread ID:0x20E10F, native priority:0x5, native policy:UNKNOWN)
    4XESTACKTRACE at java/lang/Object.wait(Native Method)
    4XESTACKTRACE at java/lang/Object.wait(Object.java:196(Compiled Code))
    4XESTACKTRACE at weblogic/transaction/internal/GenericTimer.run(GenericTimer.java:15)
    4XESTACKTRACE at java/lang/Thread.run(Thread.java:735)
    NULL ------------------------------------------------------------------------

    Here has more details:
    java weblogic.version: WebLogic Server 10.3 Fri Jul 25 16:30:05 EDT 2008 1137967
    SERVICE NAME VERSION INFORMATION
    ============ ===================
    Kernel Commonj WorkManager v1.1
    TimerService Commonj TimerManager v1.1
    CorbaService CORBA 2.3, IIOP 1.2, RMI-IIOP SFV2, OTS 1.2, CSIv2 Level 0 + Stateful
    XMLService XML 1.1
    Transaction Service JTA 1.0.1B
    JDBCService JSR-114, JDBC 3.0
    CustomResourceServerService 1.0.0.0
    Servlet Container Servlet 2.5, JSP 2.1
    WebServices JSR-173, JAX-RPC, JSR-109, WSDL, WS-Addressing, WS-Policy, JAX-B, JAX-R, UDDI, WS-Management(HP), JAXP-1.3, WS-Security
    Pre Admin Singleton Services S 1.0
    Singleton Services Batch Manag 1.0
    EJB Container EJB 3.0
    MDBService EJB 3.0
    EJBTimerService EJB 3.0
    J2EE Connector 1.5
    JMS Service JMS 1.1

  • SAMLAssertionID error while invoking webservice through webservice proxy

    I have created a web service proxy client using service WSDL deployed to weblogic standalone server as per the Fusion Dev guide [http://fmwdocs.us.oracle.com/doclibs/fmw/E10285_01/appslib7/web.1111/b31974/web_services.htm#CJADCDBG]. When i try to invoke the web service through the proxy i am seeing this error
    Exception in thread "main" javax.xml.ws.soap.SOAPFaultException: Unable to add security token for identity, token uri =http://docs.oasis-open.org/wss/oasis-wss-saml-token-profile-1.0#SAMLAssertionID
         at com.sun.xml.ws.fault.SOAP11Fault.getProtocolException(SOAP11Fault.java:197)
         at com.sun.xml.ws.fault.SOAPFaultBuilder.createException(SOAPFaultBuilder.java:122)
         at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:125)
         at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:95)
         at com.sun.xml.ws.client.sei.SEIStub.invoke(SEIStub.java:136)
         at $Proxy42.findTerritoriesInPartition(Unknown Source)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at weblogic.wsee.jaxws.spi.ClientInstanceInvocationHandler.invoke(ClientInstanceInvocationHandler.java:84)
         at $Proxy43.findTerritoriesInPartition(Unknown Source)
         at oracle.apps.sales.territoryMgmt.territories.serviceProxy.findTerritories.TerritoryServiceSoapHttpPortClient.main(TerritoryServiceSoapHttpPortClient.java:56)
    Please suggest how i can get rid of this error.
    I looked at the wsdl, i see that wss_saml_or_username_token_service_policy is added.
    <wsp:Policy orawsp:provides="{http://docs.oasis-open.org/ns/opencsa/sca/200903}authentication, {http://docs.oasis-open.org/ns/opencsa/sca/200903}clientAuthentication, {http://docs.oasis-open.org/ns/opencsa/sca/200903}clientAuthentication.message" wsu:Id="wss_saml_or_username_token_service_policy">
    Code in my proxy client:
    public class TerritoryServiceSoapHttpPortClient
    @WebServiceRef
    private static TerritoryService_Service territoryService_Service;
    private static final AddressingVersion WS_ADDR_VER = AddressingVersion.W3C;
    public static void main(String [] args)
    territoryService_Service = new TerritoryService_Service();
    TerritoryService territoryService = territoryService_Service.getTerritoryServiceSoapHttpPort();
    // Get the request context to set the outgoing addressing properties
    WSBindingProvider wsbp = (WSBindingProvider)territoryService;
    WSEndpointReference replyTo =
    new WSEndpointReference("http://adc60059fems.us.oracle.com:6035/salesTerrMgmtTerritories/TerritoryService", WS_ADDR_VER);
    String uuid = "uuid:" + UUID.randomUUID();
    wsbp.setOutboundHeaders( new StringHeader(WS_ADDR_VER.messageIDTag, uuid), replyTo.createHeader(WS_ADDR_VER.replyToTag));
    // Add your code to call the desired methods.
    try{
    wsbp.getRequestContext().put(WSBindingProvider.USERNAME_PROPERTY, "SALES_ADMIN");
    wsbp.getRequestContext().put(WSBindingProvider.PASSWORD_PROPERTY, "Welcome1");
    FindTerritoriesInPartition terr = new FindTerritoriesInPartition();
    terr.setPartitionType("PRODUCTION");
    terr.setTerritoryService(territory);
    territoryService.findTerritoriesInPartition(terr);
    catch(ServiceException se){
    Thanks,
    Sekar

    Hi Subramanyam,
    There is a very simple way to invoke web service through code using ServiceFactory classes. See if you can access this link[http://fmwdocs.us.oracle.com/doclibs/fmw/E10285_01/appslib7/doc.1111/e10308/uc_adf_to_adf.htm#BDCEDDDC]. Looks like creating proxy through Jdev and writing client code using ServiceDelegateImpl is a very costly approach, it creates lot of files and it fails to invoke service when SAML is enabled in the server side.
    If you could not access this link, follow these steps
    1. In connections.xml
    <Reference name="{http://xmlns.oracle.com/apps/sales/territoryMgmt/territories/territoryService/}TerritoryService" className="oracle.jbo.client.svc.Service" xmlns="">
    <Factory className="oracle.jbo.client.svc.ServiceFactory"/>
    <RefAddresses>
    <StringRefAddr addrType="serviceInterfaceName">
    <Contents>oracle.apps.sales.territoryMgmt.territories.territoryService.TerritoryService</Contents>
    </StringRefAddr>
    <StringRefAddr addrType="serviceEndpointProvider">
    <Contents>ADFBC</Contents>
    </StringRefAddr>
    <StringRefAddr addrType="jndiName">
    <Contents>TerritoryServiceBean#oracle.apps.sales.territoryMgmt.territories.territoryService.TerritoryService</Contents>
    </StringRefAddr>
    <StringRefAddr addrType="serviceSchemaName">
    <Contents>TerritoryService.xsd</Contents>
    </StringRefAddr>
    <StringRefAddr addrType="serviceSchemaLocation">
    <Contents>oracle/apps/sales/territoryMgmt/territories/territoryService/</Contents>
    </StringRefAddr>
    <StringRefAddr addrType="jndiFactoryInitial">
    <Contents>weblogic.jndi.WLInitialContextFactory</Contents>
    </StringRefAddr>
    <StringRefAddr addrType="jndiProviderURL">
    <Contents>t3://adc60108fems.us.oracle.com:6046</Contents>
    </StringRefAddr>
    <StringRefAddr addrType="jndiSecurityPrincipal">
    <Contents>SALES_ADMIN</Contents>
    </StringRefAddr>
    <StringRefAddr addrType="jndiSecurityCredentials">
    <Contents>Welcome1</Contents>
    </StringRefAddr>
    </RefAddresses>
    </Reference>
    2. Create a java file with a main method, sample code to invoke service
    import commonj.sdo.helper.DataFactory;
    import oracle.jbo.client.svc.ServiceFactory;
    public static void territoryGet(){
    String TERRITORY_SERVICE_NAME = "{http://xmlns.oracle.com/apps/sales/territoryMgmt/territories/territoryService/}TerritoryService";
    TerritoryService terrService = (TerritoryService)ServiceFactory.getServiceProxy(TERRITORY_SERVICE_NAME);
    DataFactory dataFactory = ServiceFactory.getDataFactory(terrService);
    // Create Territory
    Territory territory = (Territory)dataFactory.create(Territory.class);
    territory.setTerritoryLevel(1L);
    territory.setStatusCode("FINALIZED");
    java.util.Date currentDate = new java.util.Date();
    Calendar cal = Calendar.getInstance();
    cal.setTime(currentDate);
    territory.setEffectiveEndDate(new java.sql.Date(cal.getTimeInMillis()));
    territory.setEffectiveStartDate(new java.sql.Date(cal.getTimeInMillis()));
    List<Territory> lst = terrService.findTerritoriesInPartition(territory, "PRODUCTION");
    System.out.println("Size: " + lst.size());
    I also had succeeded using ServiceDeleteImpl, but i prefer ServiceFactory which is very simple. I can also share how to achieve using the proxy which jdev generates.
    ~Sekar

  • Soa composite build failed

    I am having trouble in JDeveloper 11.1.1.2.0 with Make on a simple composite project that is designed to invoke NotificationServices. An attempt to build the project fails with a classNotFoundException in the ant build (the log outputs are below).
    I have tried adding other libraries (e.g. Commons Logging 1.0.4 and Commons Digester 1.7) on the project classpath, but that just leads to other classNotFoundExceptions - and I do not believe this is the right approach.
    Is there some setting or step I am missing?
    ------------------------------- SOA Log -------------------------------
    Buildfile: C:\Oracle\Middleware11_1_1_2_0\jdeveloper\bin\ant-sca-compile.xml
    scac:
    [scac] Validating composite : 'H:\JDeveloper\phase1\Notification_Application\Notifications\composite.xml'
    BUILD FAILED
    C:\Oracle\Middleware11_1_1_2_0\jdeveloper\bin\ant-sca-compile.xml:264: Java returned: 1 Check log file : H:\JDeveloper\phase1\Notification_Application\Notifications\SCA-INF\classes\scac.log for errors
    Total time: 1 second
    ------------------------------- scac.log -------------------------------
    java.lang.NoClassDefFoundError: oracle/xml/parser/v2/XMLParseException
    Caused by: java.lang.ClassNotFoundException: oracle.xml.parser.v2.XMLParseException
         at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
         at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
    Could not find the main class: oracle.soa.scac.ValidateComposite. Program will exit.
    Exception in thread "main"
    The following libraries are on the project classpath -
    SOA Designtime
    SOA Runtime
    BPEL Runtime
    Mediator Runtime
    MDS Runtime
    Edited by: user3653687 on Mar 9, 2011 4:30 PM

    As mentioned earlier, I have tried adding several jars (with each iteration trying another...) without resolving the issue.
    If I put all libraries on the path, it compiles - but throwing the kitchen sink at it doesn't seem like the right approach.
    This leads me to believe that JDeveloper does not seem to provide the correct set in the template for a SOA project.
    Do you know the list of jars/libraries that are required to develop a simple composite that invokes the EMail NotificationService?
    Here's the log from adding the Oracle XML Parser v2 library:
    Mar 9, 2011 5:06:04 PM org.apache.commons.digester.Digester startElement
    SEVERE: Begin event threw error
    java.lang.NoClassDefFoundError: commonj/sdo/helper/HelperContext
         at java.lang.Class.getDeclaredConstructors0(Native Method)
         at java.lang.Class.privateGetDeclaredConstructors(Class.java:2389)
         at java.lang.Class.getConstructor0(Class.java:2699)
         at java.lang.Class.newInstance0(Class.java:326)
         at java.lang.Class.newInstance(Class.java:308)
         at org.apache.commons.digester.ObjectCreateRule.begin(ObjectCreateRule.java:205)
         at org.apache.commons.digester.Rule.begin(Rule.java:152)
         at org.apache.commons.digester.Digester.startElement(Digester.java:1286)
         at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
         at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
         at org.apache.xerces.impl.XMLNSDocumentScannerImpl$NSContentDispatcher.scanRootElementHook(Unknown Source)
         at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
         at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
         at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
         at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
         at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
         at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
         at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
         at org.apache.commons.digester.Digester.parse(Digester.java:1591)
         at oracle.fabric.composite.Parser.parseComposite(Parser.java:128)
         at oracle.soa.scac.ValidateComposite.loadComposite(ValidateComposite.java:804)
         at oracle.soa.scac.ValidateComposite.doValidation(ValidateComposite.java:533)
         at oracle.soa.scac.ValidateComposite.main(ValidateComposite.java:223)
    Caused by: java.lang.ClassNotFoundException: commonj.sdo.helper.HelperContext
         at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:307)

  • Blocking DataFactory.INSTANCE.create(Class)

    Hello,
    we are using SOA suite 11g 1.1.2 and have some issues with SDO objects. Our EJB web service returns a SDO object and calls commonj.sdo.helper.DataFactory.INSTANCE.create(Class) to construct it. This call however blocks and jrockit mission control revealed
    that all cpu is consumed within org.eclipse.persistence.sdo.helper.delegates.SDODataFactoryDelegate. In a debugging session we found
    that the following loop never exits:
    (in org.eclipse.persistence.sdo.helper.delegates.SDODataFactoryDelegate)
    public DataObject create(Class interfaceClass) {
    ClassLoader contextLoader = xmlHelper.getLoader();
    ClassLoader interfaceLoader = interfaceClass.getClassLoader();
    ClassLoader parentLoader = contextLoader;
    boolean loadersAreRelated = false;
    *while ((parentLoader != null) && (!(loadersAreRelated))) {*
    if (parentLoader == interfaceLoader)
    loadersAreRelated = true;
    parentLoader = contextLoader.getParent();
    It seems there's a mixup with the classloaders here and the exit condition is never satisfied.
    The flow of events is as such: BPEL process ---(ejb binding)---> stateless session bean ----> DataFactory.INSTANCE.create(Class)
    Inside the SCA-INF/lib folder of the BPEL we include a jar that contains the .class files of the EJB's remote interface.
    The problem can be resolved by calling SDOHelper.INSTANCE.defineSchema() right before every DataFactory.INSTANCE.create(Class) invocation but this is a very expensive call...
    Can anyone suggest why this happens and/or some solution?
    Thanks

    Were you able to fix this ? I am getting same exception
    Edited by: Sam on Apr 12, 2012 10:33 AM

  • Integration of BRM within BPM does not work

    Hi,
    I am working on a demo that shows the integration of BRM within BPM. A simple scenario with a gateway to decide for automatic or manual approval. I would like to use BRM to decide what to do: automatic or manual. For example: if amount <=25 then set status to automatic.
    Unfortunately I can't get it to work. I took the examples I got on this years TechEd (BPM262), but this doesn't work at home
    I also read through the blogs from Julius (BRM integration in BPM (XML Schema)), but these look very complicated. In my opinion it must be able to use business rules without any line of coding (despite what is stated in Julius blogs).
    Ruleset trials and questions
    - What is the returntype: the context or the parameter you want to be judged or returned?
    - What are the parameters: context or the parameters you want to use?
    - What is the result: context or the parameter you want to return?
    - Why is it not possible to change the Overview tab, once you have created  the ruleset?
    - How to implement within the process, I used the mapping activity, but I either get an error at selecting the ruleset, or I get an error during runtime (nullpointer).
    The concept is very powerfull but I feel that the integration of BRM within BPM is not finished yet. Am I missing something? Anyone implemented a business rule within a process without any line of coding?
    Kind regards
    Twan

    Hi arti, <br>
               I found two errors on server's error log while executing the same. I am enclosing initial section of errors. See if it's helpful to sort out the issue.
    <br><br><br>
    1. System exception 
    [EXCEPTION]
    javax.ejb.EJBException: (Failed in component: sap.com/tcbrmsglxapp, BC-BMT-BRM-ENG) Exception raised from invocation of public void com.sap.brms.glx.ejb.RulesetInvokerBean.invokeRuleset(java.lang.String,commonj.sdo.helper.HelperContext,commonj.sdo.DataObject,commonj.sdo.DataObject) method on bean instance com.sap.brms.glx.ejb.RulesetInvokerBean@63f4db for bean sap.com/tcbrmsglxappannotation|com.sap.brms.glx.ejb.jarannotation|RulesetInvoker in application sap.com/tcbrmsglx~app.; nested exception is: java.lang.NullPointerException
    java.lang.NullPointerException
    at com.sap.brms.glx.ejb.SDODOMConversionHelper.copyElementDataToDataObject(SDODOMConversionHelper.java:254)
    at com.sap.brms.glx.ejb.SDODOMConversionHelper.fillResponseDataObject(SDODOMConversionHelper.java:198)
    at com.sap.brms.glx.ejb.RulesetInvokerBean.invokeRuleset(RulesetInvokerBean.java:200)
    at sun.reflect.GeneratedMethodAccessor1912.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    <br><br><br>
    2. An error occurred while executing transition MAPPING_Validate__Expense(Token_0_Expense_Approval_Process_fb9d3700912540231d95cb19129723d8(Instance_0_Expense_Approval_Process_fb9d3700912540231d95cb19129723d8(null,null,null,false),1), Instance_0_Expense_Approval_Process_fb9d3700912540231d95cb19129723d8(null,null,null,false), Context_0_DO_Context_fb9d3700912540231d95cb19129723d8(Instance_0_Expense_Approval_Process_fb9d3700912540231d95cb19129723d8(null,null,null,false),Scope_3_Expense_Approval_fb9d3700912540231d95cb19129723d8(Instance_0_Expense_Approval_Process_fb9d3700912540231d95cb19129723d8(null,null,null,false)),1,true)): com.sap.glx.core.kernel.api.TransitionException: An exception occurred while executing the script "_Expense_Approval:MAPPING_Validate__Expense(
          com.sap.glx.adapter.BPMNAdapter:Token_0_Expense_Approval_Process_fb9d3700912540231d95cb19129723d8 token,
          com.sap.glx.adapter.BPMNAdapter:Instance_0_Expense_Approval_Process_fb9d3700912540231d95cb19129723d8 parent,
          com.sap.glx.adapter.internal.ContainerAdapter:Context_0_DO_Context_fb9d3700912540231d95cb19129723d8 context_0){
      exit=new com.sap.glx.adapter.BPMNAdapter:Exit();
      exit:addParameter(token);
      exit:addParameter(parent);
      exit:addParameter(context_0);
      exit:onActivation("4B553CE4D75A4D7004B711DFAC81001372BEFBBB", parent, token);
      delete exit;
      controller=new com.sap.glx.adapter.internal.ExceptionAdapter:ExceptionController();
      controller:setContext(token);
      delete controller;
      mapper=new com.sap.glx.adapter.internal.Transformer:DataMapper();
      yves_in=new com.sap.glx.adapter.internal.Transformer:Data();
      yves_out=new com.sap.glx.adapter.internal.Transformer:Data();
      data=context_0:getData();
      yves_in:setData("sap.com/glx/", "$sap.com/glx/:DO_Context", data, "6536A68BEDF1903C9327404A8E4F756E");
      data=context_0:getData();
      scope=new com.sap.glx.adapter.internal.TypeRegistry:GenericScope(null, "6536A68BEDF1903C9327404A8E4F756E");
      copy=scope:copy(data);
      delete scope;
      yves_out:setData("sap.com/glx/", "$sap.com/glx/:DO_Context", copy, "6536A68BEDF1903C9327404A8E4F756E");
      mapper:map("4B553CE4D75CBE7404B711DFAA74001372BEFBBB_fb9d3700912540231d95cb19129723d8", yves_in, yves_out);
      data=yves_out:getData("sap.com/glx/", "$sap.com/glx/:DO_Context", "6536A68BEDF1903C9327404A8E4F756E");
      context_0:setData(data);
      delete yves_in;
      delete yves_out;
      delete mapper;
      token:state=3;
    at com.sap.glx.core.kernel.execution.transition.ScriptTransition.execute(ScriptTransition.java:69)
    <br><br>
    Regards,<br>
    Pratik
    <br>
    Edited by: Pratik Khandelwal on Jan 25, 2010 10:26 AM<br>
    Edited by: Pratik Khandelwal on Jan 25, 2010 10:29 AM<br>
    Edited by: Pratik Khandelwal on Jan 25, 2010 10:29 AM

  • Thread hang?

    hi all,
    currently working on an applet (a large applet which contain other sub applet) which used thread, it seem to hang the application, but it does not have any error information. i've check the possible loop in the code section, should no problem but only once, as below:
    //*** partial of the code
    Thread t = new Thread(){
       public void run(){
          while ( !stop ){
             // do something here
             System.out.println("testing here...");
             wait(); //*** here cause the problem ***//
             System.out.println("finished testing here...");
             //*** other part down here ...
    t.start();above thread creation is in the "init()" method, it seem to hang at the "wait()" state if there are large number of result to process, but if the result to process is small this applet work just fine, any idea? thanks a lot.

    Here has more details:
    java weblogic.version: WebLogic Server 10.3 Fri Jul 25 16:30:05 EDT 2008 1137967
    SERVICE NAME VERSION INFORMATION
    ============ ===================
    Kernel Commonj WorkManager v1.1
    TimerService Commonj TimerManager v1.1
    CorbaService CORBA 2.3, IIOP 1.2, RMI-IIOP SFV2, OTS 1.2, CSIv2 Level 0 + Stateful
    XMLService XML 1.1
    Transaction Service JTA 1.0.1B
    JDBCService JSR-114, JDBC 3.0
    CustomResourceServerService 1.0.0.0
    Servlet Container Servlet 2.5, JSP 2.1
    WebServices JSR-173, JAX-RPC, JSR-109, WSDL, WS-Addressing, WS-Policy, JAX-B, JAX-R, UDDI, WS-Management(HP), JAXP-1.3, WS-Security
    Pre Admin Singleton Services S 1.0
    Singleton Services Batch Manag 1.0
    EJB Container EJB 3.0
    MDBService EJB 3.0
    EJBTimerService EJB 3.0
    J2EE Connector 1.5
    JMS Service JMS 1.1

  • Upgrading Weblogic

    We have a little bit of weird situation, we want to upgrade out server from Weblogic 9.2 MP2 to MP3. But our vendor is not ready to do it. And we have to follow our vendors instruction, as we are getting our application from vendor. I have a question here, does it really make a difference to a vendor if we upgrade the servers. Can't we just deploy the application packed for MP2 to MP3.
    I did a verbose on weblogic.version and found the same versions for MP2 and MP3, below are the version details:
    SERVICE NAME VERSION INFORMATION
    ============ ===================
    Kernel Commonj WorkManager v1.1
    TimerService Commonj TimerManager v1.1
    CorbaService CORBA 2.3, IIOP 1.2, RMI-IIOP SFV2, OTS 1.2, CSIv2 Level 0 + Stateful
    XMLService XML 1.1
    Transaction Service JTA 1.0.1B
    JDBCService JSR-114, JDBC 3.0
    ConnectorService JCA 1.5
    JMS Service JMS 1.1
    CustomResourceServerService 1.0.0.0
    EJB Container EJB 2.1
    Servlet Container Servlet 2.4, JSP 2.0
    WebServices JSR-173, JAX-RPC, JSR-109, WSDL, WS-Addressing, WS-Policy, JAX-B, JAX-R, UDDI, WS-Management(HP), JAXP-1.3, WS-Security
    MDBService EJB 2.1, JCA 1.5
    Waiting on yours view, Thanks in advance.

    Hi,
    To be do not think that there would be any problem in that as in WLS 9.2 MP3 only the bugs which were found in WLS 9.2 MP2 might have been fixed and not major changes have been made in the new MP, also the JDK and other components would remain the same. Hence moving from to news MP version would not have any problem and its always recommended to use the latest versions.
    To be in a safe positon position you can upgrade your test environment and check your same production application in it and then do the same thing for production.
    You can get all the lists of fixes been made in WLS 9.2 MP3 in the below link.
    http://download.oracle.com/docs/cd/E13222_01/wls/docs92/issues/known_resolved.html
    Ravish Mody
    http://middlewaremagic.com/weblogic
    Come, Join Us and Experience The Magic…

  • Scheduling Capability in Oracle Soa Suite 11g

    Hi,
    I am looking for a capability to schedule the SOA composites in Soa suite 11g. Gone through the old forum posts and some of the blog links as well. Found out that only following ways are possible with out going for workarounds.
    - using commonJ API in weblogic
    - using quartz scheduler
    Just wanted to confirm is this the direct way possible? As both of these approches use the webaplication which requires additional maintenance have to come up with the UI as well as the user might want to modify scheduling times in future.
    Please let me know on the same.
    Thanks
    Siva

    I am looking in the same issue myself, I have put together some useful links here:
    http://www.javamonamour.org/2010/12/commonj-timer-with-osb.html
    most likely I will use CommonJ TimerManager with Clister-wide Timer and Job Scheduler, since I require High Availability....
    Anyway I wish there was something easier to configure and manage.... I have seen a commercial product (can't remember the link) but waaay too expensive....

  • Commonj WorkManager & TimerManager

    Has anybody had any success implementing either a commonj WorkManager or TimerManager in Weblogic 9.0? I've sifted through the specification documents and several articles that describe how to implement these, but there seems to be a missing link.
    I can't seem to get the right combination of deployment descriptors to get a TimerManager or WorkManager instance to show up in the JNDI tree. What's the secret? Is this even implemented in Weblogic 9.0?

    Hi,
    To be do not think that there would be any problem in that as in WLS 9.2 MP3 only the bugs which were found in WLS 9.2 MP2 might have been fixed and not major changes have been made in the new MP, also the JDK and other components would remain the same. Hence moving from to news MP version would not have any problem and its always recommended to use the latest versions.
    To be in a safe positon position you can upgrade your test environment and check your same production application in it and then do the same thing for production.
    You can get all the lists of fixes been made in WLS 9.2 MP3 in the below link.
    http://download.oracle.com/docs/cd/E13222_01/wls/docs92/issues/known_resolved.html
    Ravish Mody
    http://middlewaremagic.com/weblogic
    Come, Join Us and Experience The Magic…

  • [WebLogic Server 11g 10.3.3] Cannot Lookup CommonJ WorkManager ?

    Hi,
    I am currently working on an application and going to use the Weblogic's CommonJ WorkManager; I tried the example in http://download.oracle.com/docs/cd/E14571_01/web.1111/e13733/toc.htm ; however I got an error
    javax.naming.ServiceUnavailableException [Root exception is java.net.UnknownHostException: Unknown protocol: 'RMI']
    Have anyone experienced this? I searched the web for answers but it seems I'm the only one getting this exception.
    The declaration of the work manager is in web.xml as follows:
         <resource-ref>
              <res-ref-name>default</res-ref-name>
              <res-type>commonj.work.WorkManager</res-type>
              <res-auth>Container</res-auth>
              <res-sharing-scope>Shareable</res-sharing-scope>
         </resource-ref>
    and I tried to lookup using the following code (basically just copy-paste from the example with some modification):
         void init() {
              try {
                   System.out.println("## executing in: " +
                             ((ExecuteThread)Thread.currentThread()).getWorkManager()
                             .getName());
                   String lookupstr = "java:comp/env/default";
                   System.out.println("## lookup >>> " + lookupstr);
                   InitialContext ic = new InitialContext();
                   WorkManager wm = (WorkManager)ic.lookup(lookupstr);
                   System.out.println("## got Java EE work manager !!!!");
                   wm.schedule(new Work(){
                        public void run() {
                             ExecuteThread th = (ExecuteThread) Thread.currentThread();
                             System.out.println("## [servlet] self-tuning workmanager: " +
                                       th.getWorkManager().getName());
                        public void release() {}
                        public boolean isDaemon() {return false;}
              catch (NamingException ne) {
                   ne.printStackTrace();}
              catch (WorkException e) {
                   e.printStackTrace();
    and the error is:
    ## executing in: default
    ## lookup >>> java:comp/env/default
    javax.naming.ServiceUnavailableException [Root exception is java.net.UnknownHostException: Unknown protocol: 'RMI']
         at weblogic.jndi.internal.ExceptionTranslator.toNamingException(ExceptionTranslator.java:34)
         at weblogic.jndi.WLInitialContextFactoryDelegate.toNamingException(WLInitialContextFactoryDelegate.java:787)
         at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialContextFactoryDelegate.java:368)
         at weblogic.jndi.Environment.getContext(Environment.java:315)
         at weblogic.jndi.Environment.getContext(Environment.java:285)
         at weblogic.jndi.WLInitialContextFactory.getInitialContext(WLInitialContextFactory.java:117)
         at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:667)
         at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:288)
         at javax.naming.InitialContext.init(InitialContext.java:223)
         at javax.naming.InitialContext.<init>(InitialContext.java:175)
         at com.example.cms.engine.ui.t5.pages.Welcome.init(Welcome.java:26)
    thanks in advance for any help,
    Harry

    How are you trying to connect to the server?
    An example:
    import javax.naming.Context;
    import javax.naming.InitialContext;
    import javax.naming.NamingException;
    import java.util.Hashtable;
    public class LookUP {
        private static Context context;
        private LookUP() {
        static {
            Hashtable hashtable = new Hashtable();
            hashtable.put(Context.INITIAL_CONTEXT_FACTORY, "weblogic.jndi.WLInitialContextFactory");
            hashtable.put(Context.PROVIDER_URL, "t3://172.31.0.107:7002,172.31.0.107:7003");
            //hashtable.put(Context.SECURITY_PRINCIPAL, "username");
            //hashtable.put(Context.SECURITY_CREDENTIALS, "password");
            long begin = System.currentTimeMillis();
            try {
                context = new InitialContext(hashtable);
            } catch (NamingException e) {
                e.printStackTrace();
            long end = System.currentTimeMillis();
            long timeseconds = (end - begin) / 1000;
            System.out.println("initialcontext creation time " + timeseconds);
        public static Context getContext() {
            return context;
    }Note that in order to use this you need a certain type of wls-client in the classpath.
    When the wlclien.jart is used than t3 is automatically replaced by iiop.
    When the wlfullclient.jar is used than the t3 protocol is used (newer version of weblogic also ship a wlthint3client.jar)

  • WLS 9.2 - How to create and use a WorkManager through commonj?

    My goal is simple. I want to define a custom Work Manager at the application level which an MDB uses as it's dispatch policy and I can directly access with a commonj WorkManager. I have been reading through the WLS 9.2 PDFs but so far I have not been able to get this to work. Any help would be appreciated. Thanks.
    weblogic-application.xml
    This appears to work. I can see the work manager via the weblogic console.
    <work-manager>
        <name>MyWorkManager</name>
        <response-time-request-class>
            <name>MyResponseTimeGoal</name>
            <goal-ms>1000</goal-ms>
        </response-time-request-class>
        <min-threads-constraint>
            <name>MyMinThreads</name>
            <count>20</count>
        </min-threads-constraint>
        <ignore-stuck-threads>false</ignore-stuck-threads>
    </work-manager>
    MDB Annotations
    The idea here is to have the MDB using the MyWorkManager work manager and have a commonj WorkManager available via JNDI which maps to MyWorkManager. I can tell that the MDB is using the custom work manager by looking at the request count of the work manager in the weblogic console after running some tests.
    It doesn't seem that the resource reference is working at all through. The JNDI lookup of MyWorkManager always fails.
    @MessageDriven(
            maxBeansInFreePool = "20",
            destinationType = "javax.jms.Queue",
            initialBeansInFreePool = "20",
            defaultTransaction = MessageDriven.DefaultTransaction.NOT_SUPPORTED,
            ejbName = "MyMessageBean",
            destinationJndiName = "jms/MyQueue",
            acknowledgeMode = MessageDriven.AcknowledgeMode.AUTO_ACKNOWLEDGE,
            transactionType = MessageDriven.MessageDrivenTransactionType.CONTAINER,
            dispatchPolicy = "MyWorkManager")
    @ResourceRefs ({
        @ResourceRef(
                name = "MyWorkManager",
                type = "commonj.work.WorkManager",
                auth = ResourceRef.Auth.CONTAINER,
                sharingScope = ResourceRef.SharingScope.SHAREABLE,
                jndiName = "wm/MyWorkManager")
    })This is the generated XML from ejbgen:
    ejb-jar.xml
    <resource-ref>
         <res-ref-name>MyWorkManager</res-ref-name>
         <res-type>commonj.work.WorkManager</res-type>
         <res-auth>Container</res-auth>
         <res-sharing-scope>Shareable</res-sharing-scope>
    </resource-ref>
    weblogic-ejb-jar.xml
    <resource-description>
         <res-ref-name>MyWorkManager</res-ref-name>
         <jndi-name>wm/MyWorkManager</jndi-name>
    </resource-description>
    JNDI Lookup
    This fails (naming exception) and I cannot figure out why.
    InitialContext ic = new InitialContext();
    WorkManager wm = (WorkManager)ic.lookup("java:comp/env/wm/MyWorkManager");
    Spring Bean
    I have also tried to use Spring to get a commonj WorkManager which maps to MyWorkManager. This also throws a naming exception.
    <bean id="myWorkManager" class="org.springframework.scheduling.commonj.WorkManagerTaskExecutor">
        <property name="workManagerName" value="java:comp/env/wm/MyWorkManager"/>
    </bean>Edited by: user11950954 on Sep 28, 2009 12:43 PM

    So in this case I should be able to perform a JNDI lookup and get the commonj WorkManager which maps to the WLS Work Manager?Yes, for example:
    weblogic-application.xml :-
    <work-manager>
    *<name>MyWorkManager</name>*
    <response-time-request-class>
    <name>MyResponseTimeGoal</name>
    <goal-ms>1000</goal-ms>
    </response-time-request-class>
    </work-manager>
    MDB Annotations:-
    @ResourceRefs({
         @ResourceRef(
    name = *"MyWorkManager"*,
    type = "commonj.work.WorkManager",
    auth = ResourceRef.Auth.CONTAINER,
    sharingScope = ResourceRef.SharingScope.SHAREABLE,
    jndiName = *"MyWorkManager"* )
    ejb-jar.xml :-
    <resource-ref>
    *<res-ref-name>MyWorkManager</res-ref-name>*
    <res-type>commonj.work.WorkManager</res-type>
    <res-auth>Container</res-auth>
    <res-sharing-scope>Shareable</res-sharing-scope>
    </resource-ref>
    weblogic-ejb-jar.xml should be look like this :-
    <resource-description>
    *<res-ref-name>MyWorkManager</res-ref-name>*
    *<jndi-name>MyWorkManager</jndi-name>*
    </resource-description>
    JNDI Lookup:-
    InitialContext ic= new InitialContext();
    WorkManager wm= (WorkManager) ic.lookup("*java:comp/env/MyWorkManager*");
    Edited by: Betino on 29/09/2009 12:45 PM

  • TimerManager in non-clusterer environment

    Hi all,
    Is it possible to lookup TimerManager object in a POJO? Since it's not EJB I don't know the JNDI name of TimerManager, and I couldn't find it in JNDI tree.
    @Resource injection will not work in this case.
    Any help would be greatly appreciated.

    For role-based vlan mapping, the vlan is switched to the final vlan and then agent requests an ip refresh since if you had the access vlan IP address, and you're now in a new vlan, network access wont be there.
    I don't think we have any white papers discussing setting up NAC with static IPs, but I'll look.
    HTH,
    Faisal

  • MDB TimerManager Error after updating a deployment

    We are running weblogic 10.3
    After updating a deployment, our app is consistently getting the following error:
    java.lang.IllegalArgumentException: Existing timer manager has different work manager.
    TimerManager requested: JMSPoller-TestMessageBean
    When we perform the update, we first stop the deployment (selecting when work completes) - then update the deployment.
    The only way to clear the error is to bounce the server - which we can't always do without interrupting other applications.
    We have not configured any special workManagers - the weblogic configuration is quite vanilla.
    the following is an exerpt from the weblogic-ejb-jar.xml for the bean:
    <weblogic-enterprise-bean>
    <ejb-name>TestMessageBean</ejb-name>
    <message-driven-descriptor>
         <pool>
         <max-beans-in-free-pool>1</max-beans-in-free-pool>
         <initial-beans-in-free-pool>0</initial-beans-in-free-pool>
    </pool>
    <destination-jndi-name>mqjms/TEST_QUEUE</destination-jndi-name>
    <connection-factory-jndi-name>mqjms/queueConnectionFactory</connection-factory-jndi-name>
    <jms-polling-interval-seconds>60</jms-polling-interval-seconds>
    </message-driven-descriptor>
    </weblogic-enterprise-bean>

    <t:selectOneMenu forceId="true"
    id="department"
    value="#{DeptBean.departmentId}">
    <f:selectItems value="#{DeptBean.departmentList}"
    />
    </t:selectOneMenu>What is the type of departmentId ? If it is not a String, then try making it a String and see if the issue is resolved. I am not sure if this will help you. But its worth a try.

Maybe you are looking for

  • Windows 7 installation on Satellite C55-A-1HN

    Hi Hope someone can help me. I bought a Toshiba Satellite C55-A-1HN laptop which has Windows 8 on and Im wanting to put Windows 7 on the laptop but keep getting a error saying checking media fail then booting back to Windows 8. I want Windows 7 on ca

  • Compressor 3.0.5 not working in Yosemite.  Fixes?

    Compressor 3.0.5. does not work in Yosemite 10.10.1.  I receive an "Unable to submit to queue.  Please restart your computer or verify your Compressor installation is correct." error message. I'm also currently unable to download the newest version o

  • Does flash save images to temporary files?

    Hi guys I am just wondering, if my flash application loads an image dynamically at one stage of the movie and then the user comes back to that image later on, will flash actually download the image again or will it use a saved copy in the temporary i

  • A Sun X4450 shows only half of installed RAM in BIOS

    In the Integrated Lightsout Manager I see all 8 x 2 GB Dimms but in the BIOS I only see 8 GB. I am very shure I populated the banks exactly.

  • Error when installing LR 4.3 / uninstalling LR 4.1

    Hello, I get an error during the execution of Lightroom 4.3 installer program, on Win7 64 bits. I already have Lightroom 4.1, which has been always perfectly working . The part "extracting Adobe_Lightroom_x64.msi" is OK Then i have to choose "next",