PAPI client is running outside a j2ee container

Hi,
I install BPM J2EE 10.3.1 for linux and weblogic 10.3 for linux on Red Hat Linux Enterprise 5. The database' version is 10.2.0.1 for windows and the database is install in window server 2003 sp1 on another machine.
I search this forum and copy and change the code. But I still get error "PAPI client is running outside a j2ee container"
The java code runs in the 3rd machine.
-------------------------java code-------------------------------------------------
Properties configuration = new Properties();
configuration.setProperty(ProcessService.DIRECTORY_ID, "Default");
configuration.setProperty(ProcessService.DIRECTORY_PROPERTIES_FILE, "F:\\share\\192.168.1.103\\directory.xml");
Properties systemProperties = System.getProperties();
systemProperties.setProperty("java.naming.factory.initial", "weblogic.jndi.WLInitialContextFactory");
systemProperties.setProperty("java.naming.provider.url", "t3://192.168.1.103:7001");
ProcessService processService = ProcessService.create(configuration);
ConnectionPassport Conpassport = processService.createPassportWithPreset("container-auth");
Conpassport.setParticipant("jcooper");
Conpassport.setPassword("welcome1");
System.out.println("34");
Conpassport.fillPassport();
System.out.println("36");
ProcessServiceSession session = processService.createSession(Conpassport, null);
System.out.println("38");
String processName = "/processA";
Arguments arguments = Arguments.create();
System.out.println("41");
session.processCreateInstance(processName, "BeginIn", arguments);//
System.out.println("43");
-----------------------error message----------------------------------------------------
D:\JDeveloper11g_20090318\jdk160_05\bin\javaw.exe -client -classpath E:\Jdeveloper10131_20090318\jdev\mywork\GDHZDJDCIntegrationTest\HZGTprocess\classes;D:\BPM_HOME_standalone\client\papi\lib\b1oracle.jar;D:\BPM_HOME_standalone\client\papi\lib\b1util.jar;D:\BPM_HOME_standalone\client\papi\lib\b1base.jar;D:\BPM_HOME_standalone\client\papi\lib\fuegopapi-client.jar hzgtprocess.VM_192_168_1_103_linux
Creating connector [fuego:SQL]
Creating ProcessService with id 'oracle/2009-09-14 13:23:12+08:00'.
********* PAPI (Version 10.3.1.0.0 Mantainance Pack 1 Build # 98982 ) is starting *********
Local folder /tmp\system\Schema3387192-437105321\catalogs found.
Loading catalogs from local folder: /tmp\system\Schema3387192-437105321\catalogs
0 jars found locally.
[CatalogMgrCache] =======================
Registering CatalogMgr [oracle/2009-09-14 13:23:12+08:00] ...CatalogManagerCache 20195943:
Managers:
Counters:
[CatalogMgrCache] =======================
CatalogMgr [oracle/2009-09-14 13:23:12+08:00] REGISTERED!CatalogManagerCache 20195943:
Managers:
{oracle/2009-09-14 13:23:12+08:00=fuego.util.LocalCatalogManager@1cbda0a}
Counters:
ProcessService 'oracle/2009-09-14 13:23:12+08:00' created successfully.
34
36
38
41
Unreachable Engine Tolerance (seconds):
by default: 0
to be used: 0
This papi client will not cache exceptions which imply that an engine could not be reached.
A user transaction provider is not available for reading Papi News received through the JMS Topic (probable reason: PAPI client is running outside a j2ee container). Papi News will be processed anyway. Details: javax.naming.NoInitialContextException: Cannot instantiate class: weblogic.jndi.WLInitialContextFactory [Root exception is java.lang.ClassNotFoundException: weblogic.jndi.WLInitialContextFactory]
The connection to the JMS Topic engine was completed successfully.
Exception in thread "main" fuego.papi.ProcessNotAvailableException: Process '/processA#Default-1.0' not available.
     at fuego.papi.impl.AbstractProcessLoader.createProcess(AbstractProcessLoader.java:96)
     at fuego.papi.impl.AbstractProcessLoader.createProcess(AbstractProcessLoader.java:36)
     at fuego.papi.impl.SessionProcessLoader.load(SessionProcessLoader.java:254)
     at fuego.papi.impl.ProcessManager.get(ProcessManager.java:894)
     at fuego.papi.impl.ProcessServiceImpl.getProcess(ProcessServiceImpl.java:1380)
     at fuego.papi.impl.SessionProcessManager.getProcess(SessionProcessManager.java:143)
     at fuego.papi.impl.ProcessServiceSessionImpl.processGet(ProcessServiceSessionImpl.java:2665)
     at fuego.papi.impl.ProcessServiceSessionImpl.checkBeginPermissions(ProcessServiceSessionImpl.java:4286)
     at fuego.papi.impl.ProcessServiceSessionImpl.processCreateInstance(ProcessServiceSessionImpl.java:3177)
     at hzgtprocess.VM_192_168_1_103_linux.main(VM_192_168_1_103_linux.java:42)
Caused by: fuego.papi.impl.EngineNotAvailableException: Cannot reach engine 'bpmengine' at URL: ''.
     at fuego.papi.impl.EngineNotAvailableException.wrapConnectionException(EngineNotAvailableException.java:80)
     at fuego.papi.impl.j2ee.J2EEEngineAccessImpl.createSecureEngine(J2EEEngineAccessImpl.java:181)
     at fuego.papi.impl.ProcessServiceImpl.createSecureEngine(ProcessServiceImpl.java:1111)
     at fuego.papi.impl.ProcessServiceSessionImpl$2.run(ProcessServiceSessionImpl.java:3987)
     at fuego.papi.impl.ProcessServiceImpl.executeEngineOp(ProcessServiceImpl.java:1693)
     at fuego.papi.impl.ProcessServiceSessionImpl.getSecureEngine(ProcessServiceSessionImpl.java:3995)
     at fuego.papi.impl.AbstractProcessLoader.createProcess(AbstractProcessLoader.java:48)
     ... 9 more
Caused by: javax.naming.NoInitialContextException: Cannot instantiate class: weblogic.jndi.WLInitialContextFactory [Root exception is java.lang.ClassNotFoundException: weblogic.jndi.WLInitialContextFactory]
     at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:657)
     at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:288)
     at javax.naming.InitialContext.init(InitialContext.java:223)
     at javax.naming.InitialContext.<init>(InitialContext.java:197)
     at fuego.util.InitialContextProvider.create(InitialContextProvider.java:44)
     at fuego.papi.impl.j2ee.J2EEEngineAccessImpl.createInitialContext(J2EEEngineAccessImpl.java:492)
     at fuego.papi.impl.j2ee.J2EEEngineAccessImpl.getInitialContext(J2EEEngineAccessImpl.java:293)
     at fuego.papi.impl.j2ee.J2EEEngineAccessImpl.getEngineHome(J2EEEngineAccessImpl.java:277)
     at fuego.papi.impl.j2ee.J2EEEngineAccessImpl.getSecureEngineInterface(J2EEEngineAccessImpl.java:333)
     at fuego.papi.impl.j2ee.J2EEEngineAccessImpl.createSecureEngine(J2EEEngineAccessImpl.java:178)
     ... 14 more
Caused by: java.lang.ClassNotFoundException: weblogic.jndi.WLInitialContextFactory
     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:306)
     at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
     at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
     at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
     at java.lang.Class.forName0(Native Method)
     at java.lang.Class.forName(Class.java:247)
     at com.sun.naming.internal.VersionHelper12.loadClass(VersionHelper12.java:46)
     at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:654)
     ... 23 more
The connectivity to the JMS Topic for the server synchronization information has been temporarily interrupted.
Details:
The connectivity to the JMS Topic has been broken due to a JNDI Context initialization problem.
Details:
javax.naming.NoInitialContextException: Cannot instantiate class: weblogic.jndi.WLInitialContextFactory [Root exception is java.lang.ClassNotFoundException: weblogic.jndi.WLInitialContextFactory]
Caused by: Cannot instantiate class: weblogic.jndi.WLInitialContextFactory
Caused by: weblogic.jndi.WLInitialContextFactory
fuego.papi.impl.j2ee.JMSTopicLookUpException: The connectivity to the JMS Topic has been broken due to a JNDI Context initialization problem.
Details:
javax.naming.NoInitialContextException: Cannot instantiate class: weblogic.jndi.WLInitialContextFactory [Root exception is java.lang.ClassNotFoundException: weblogic.jndi.WLInitialContextFactory]
     at fuego.papi.impl.j2ee.J2EEEngineAccessImpl$TopicSubscriberImpl.lookupTopic(J2EEEngineAccessImpl.java:665)
     at fuego.papi.impl.j2ee.J2EEEngineAccessImpl$TopicSubscriberImpl.run(J2EEEngineAccessImpl.java:574)
Caused by: javax.naming.NoInitialContextException: Cannot instantiate class: weblogic.jndi.WLInitialContextFactory [Root exception is java.lang.ClassNotFoundException: weblogic.jndi.WLInitialContextFactory]
     at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:657)
     at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:288)
     at javax.naming.InitialContext.init(InitialContext.java:223)
     at javax.naming.InitialContext.<init>(InitialContext.java:197)
     at fuego.util.InitialContextProvider.create(InitialContextProvider.java:44)
     at fuego.papi.impl.j2ee.J2EEEngineAccessImpl.createInitialContext(J2EEEngineAccessImpl.java:492)
     at fuego.papi.impl.j2ee.J2EEEngineAccessImpl.access$1000(J2EEEngineAccessImpl.java:68)
     at fuego.papi.impl.j2ee.J2EEEngineAccessImpl$TopicSubscriberImpl.lookupTopic(J2EEEngineAccessImpl.java:660)
     ... 1 more
Caused by: java.lang.ClassNotFoundException: weblogic.jndi.WLInitialContextFactory
     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:306)
     at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
     at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
     at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
     at java.lang.Class.forName0(Native Method)
     at java.lang.Class.forName(Class.java:247)
     at com.sun.naming.internal.VersionHelper12.loadClass(VersionHelper12.java:46)
     at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:654)
     ... 8 more
Process exited.

Could this be a CLASSPATH issue?
Caused by: java.lang.ClassNotFoundException: weblogic.jndi.WLInitialContextFactory
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)

Similar Messages

  • New Paper: Database Authentication and Authorization in J2EE Container M...

    I read this new paper by Frank Nimphius, and it is pretty easy to follow. I tried it out, and had a few problems. I am using JDeveloper 10.1.3 (not 10.1.3.1 or 10.1.3.2).
    In several places, the paper says that all web applications running in the embedded OC4J container are executed as "current-workspace-app". Yet, in the example of using the editor for system-jazn-data.xml, Figure 2 shows the name as "default-web-app". Which is correct?
    The paper says that the OC4J Deployment Descriptor Wizard will write data-sources.xml in the project's WEB-INF directory. When I did this, the file was created under META-INF in Application Sources. The Tools/Embedded OC4J Properties wizard did update the file where it was.
    So far, I don't have this working - worse I don't see any error message to give me a clue where I've gone wrong.

    I was at Collaborate last week, and didn't get a chance to try this until this morning. I removed the "casing" option and tried again. Didn't work. Here are the messages from the log:
    FINE: [DBTableOraDataSourceLoginModule]User query string: select user_id,password from dasis.authorized_users where username= (?)
    Apr 23, 2007 8:00:41 AM oracle.security.jazn.login.module.db.DBTableOraDataSourceLoginModule performDbAuthentication
    FINE: [DBTableOraDataSourceLoginModule]User primary key value found = 5
    Apr 23, 2007 8:00:41 AM oracle.security.jazn.login.module.db.DBTableOraDataSourceLoginModule performDbAuthentication
    FINE: [DBTableOraDataSourceLoginModule]User not authenticated: username or password mismatch
    Apr 23, 2007 8:00:41 AM oracle.security.jazn.login.module.db.DBTableOraDataSourceLoginModule login
    FINE: [DBTableOraDataSourceLoginModule]Logon Successful = false
    Apr 23, 2007 8:00:41 AM oracle.security.jazn.login.module.db.DBTableOraDataSourceLoginModule abort
    FINE: [DBTableOraDataSourceLoginModule]Abort called on LoginModule
    Apr 23, 2007 8:00:41 AM oracle.security.jazn.oc4j.OC4JUtil doJAASLogin
    WARNING: Login Failure: all modules ignored
    javax.security.auth.login.LoginException: Login Failure: all modules ignored
         at javax.security.auth.login.LoginContext.invoke(LoginContext.java:921)
         at javax.security.auth.login.LoginContext.access$000(LoginContext.java:186)
         at javax.security.auth.login.LoginContext$4.run(LoginContext.java:683)
         at java.security.AccessController.doPrivileged(Native Method)
         at javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:680)
         at javax.security.auth.login.LoginContext.login(LoginContext.java:579)
         at oracle.security.jazn.oc4j.OC4JUtil.doJAASLogin(OC4JUtil.java:241)
         at oracle.security.jazn.oc4j.GenericUser$1.run(JAZNUserManager.java:818)
         at oracle.security.jazn.oc4j.OC4JUtil.doWithJAZNClsLdr(OC4JUtil.java:173)
         at oracle.security.jazn.oc4j.GenericUser.authenticate(JAZNUserManager.java:814)
         at oracle.security.jazn.oc4j.FilterUser.authenticate(JAZNUserManager.java:1143)
         at com.evermind.server.http.EvermindHttpServletRequest.getUserPrincipalInternal(EvermindHttpServletRequest.java:3659)
         at com.evermind.server.http.HttpApplication.checkAuthenticationAndAuthorize(HttpApplication.java:6332)
         at com.evermind.server.http.HttpApplication.getRequestDispatcher(HttpApplication.java:3009)
         at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:735)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:447)
         at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:215)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:117)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:110)
         at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
         at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:239)
         at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:34)
         at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:880)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
         at java.lang.Thread.run(Thread.java:595)
    Apr 23, 2007 8:00:41 AM oracle.security.jazn.oc4j.GenericUser authenticate
    FINE: JAAS-OC4J: Authentication failure for user: AZUSER
    Apr 23, 2007 8:00:41 AM oracle.security.jazn.oc4j.RealmUserAdaptor isMemberOf
    FINE: JAAS-OC4J: Membership check for group: TEDS failed for user: anonymous
    The primary key returned is correct, username AZUSER has user_id = 5. So I know that the SELECT is succeeding, and retrieving the correct row. But it doesn't think that the password matches. I am not currently encrypting passwords. Any ideas?
    In the meantime, I'm taking another look at using LDAP for authentication - I saw a presentation at Collaborate that gave me some ideas. I wanted to use the table, because an older application with some of the same users uses this table, and I want to let the users use the same usernames and passwords. But there may be a way to let the older application get its authentication information from LDAP.

  • I unable to run ejb with application client using oc4j j2ee container

    Hi,
    I have installe oracle9i (1.0.2.2) oc4j j2ee container.
    I unable to run the ejbs . please help me how to run ejbs with application client and which files are shall configure.
    See the client application is :
    public static void main (String []args)
    try {
    //Hashtable env = new Hashtable();
    //env.put("java.naming.provider.url", "ormi://localhost/Demo");
    //env.put("java.naming.factory.initial", "com.evermind.server.ApplicationClientInitialContextFactory");
    //env.put(Context.SECURITY_PRINCIPAL, "guest");
    //env.put(Context.SECURITY_CREDENTIALS, "welcome");
    //Context ic = new InitialContext (env);
    System.out.println("\nBegin statelesssession DemoClient.\n");
    Context context = new InitialContext();
    Object homeObject = context.lookup("java:comp/env/DemoApplication");
    DemoHome home= (DemoHome)PortableRemoteObject.narrow(homeObject, DemoHome.class);
    System.out.println("Creating Demo\n");
    Demo demo = home.create();
    System.out.println("The result of demoSelect() is.. " +demo.sayHello());
    }catch ( Exception e )
    System.out.println("::::::Error:::::: ");
    e.printStackTrace();
    System.out.println("End DemoClient....\n");
    When I am running client application I got this type of Exception
    java.lang.SecurityException : No such domain/application: sampledemo
    at com.evermind.server.rmi.RMIConnection.connect(RMIConnection.java : 2040)
    at com.evermind.server.rmi.RMIConnection.connect(RMIConnection.java : 1884)
    at com.evermind.server.rmi.RMIConnection.lookup(RMIConnection.java : 1491)
    at com.evermind.server.rmi.RMIServer.lookup(RMIServer.java : 323)
    at com.evermind.server.rmi.RMIContext.lookup(RMIConext.java : 106)
    at com.evermind.server.administration.LazyResourceFinder.lookup(LazyResourceFinder.java : 59)
    at com.evermind.server.administration.LazyResourceFinder.getEJBHome(LazyResourceFinder.java : 26)
    at com.evermind.server.Application.createContext(Application.java: 653)
    at com.evermind.server.ApplicationClientInitialContext.getInitialContext(ApplicationClientInitialContextFactory.java :179 )
    at javax.naming.spi.NamingManager.getInitialContext(NamingManger.java : 246)
    at javax.naming.InitialContext.getDefaultInitialCtx(InitialContext.java : 246)
    at javax.naming.InitialContext.init(InitialContext.java : 222)
    at javax.naming.InitialContext.<init>(InitialContext.java : 178)
    at DemoClient.main(DemoClient.java : 23)
    .ear file is copied into applications directory.
    I have configured server.xml file like this
    <application name="sampledemo" path="../applications/demos.ear" />
    demos.ear file Contains following files
    application.xml
    demobean.jar
    Manifest.mf
    demobean.jar file contains following files
    application-client.xml
    Demo.class
    DemoBean.class
    DemoHome.class
    ejb-jar.xml
    jndi.properties
    Mainifest.mf
    Please give me your valuable suggestions. Which are shall i configure .
    Thanks & Regards,
    Badri

    Hi Badri,
    ApplicationClientInitialContextFactory is for clients which got deployed inside OC4J container..
    For looking up EJB from a stand alone java client please use RMIInitialContextFactory..So please change ur code....
    Also please check ur server.xml
    Since you have specified your ejb domain as "sampledemo"
    you have to use that domian only for look up..But it seems that you are looking up for "Demo" domain instead of "sampledemo" domain...So change your code to reflect that..
    Code snippet for the same is :
    Hashtable env = new Hashtable();
    env.put("java.naming.provider.url", "ormi://localhost/sampledemo");
    env.put("java.naming.factory.initial", "om.evermind.server.rmi.RMIInitialContextFactory");
    env.put(Context.SECURITY_PRINCIPAL, "guest");
    env.put(Context.SECURITY_CREDENTIALS, "welcome");
    Context ic = new InitialContext (env);
    Hope this helps
    --Venky                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • PAPI client in J2EE (Oracle app server, OC4J)

    Hello,
    We have a problem with using RMI-based PAPI in our J2EE application. Our client code runs fine as a standalone program, but doesn't work when it's used as a part of
    a J2EE application deployed to OC4J. There seems to some incompatibility between the XML parser implementation that Oracle supplies (xmlparserv2.jar) and Oracle's
    BPM Papi client.
    Here are the errors that we're getting:
    [Error] :3:69: <Line 3, Column 69>: XML-20129: (Error) Namespace prefix 'xsi' us
    ed but not declared.
    [Error] :8:33: <Line 8, Column 33>: XML-20129: (Error) Namespace prefix 'xsi' us
    ed but not declared.
    [Error] :10:34: <Line 10, Column 34>: XML-20129: (Error) Namespace prefix 'xsi'
    used but not declared.
    [Error] :12:40: <Line 12, Column 40>: XML-20129: (Error) Namespace prefix 'xsi'
    used but not declared.
    [Error] :42:43: <Line 42, Column 43>: XML-20129: (Error) Namespace prefix 'xsi'
    used but not declared.
    [Error] :44:33: <Line 44, Column 33>: XML-20129: (Error) Namespace prefix 'xsi'
    used but not declared.
    [Error] :46:38: <Line 46, Column 38>: XML-20129: (Error) Namespace prefix 'xsi'
    used but not declared.
    [Error] :48:35: <Line 48, Column 35>: XML-20129: (Error) Namespace prefix 'xsi'
    used but not declared.
    Exception in thread "main" java.lang.IllegalArgumentException
    at oracle.xml.jaxp.JXTransformer.setOutputProperty(JXTransformer.java:762)
    at fuego.prefs.engine.storage.EnginePreferencesNode.export(EnginePreferencesNode.java:179)
    at fuego.prefs.engine.EnginePreferences.doExport(EnginePreferences.java:143)
    at fuego.prefs.engine.EnginePreferences.doExport(EnginePreferences.java:134)
    at fuego.directory.project.engine.ProjectEngineAccessor.getEnginePropertiesString(ProjectEngineAccessor.java:137)
    at fuego.directory.project.engine.ProjectEngineAccessor.fetchEngineConfiguration(ProjectEngineAccessor.java:83)
    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:585)
    at fuego.directory.provider.DirectorySessionImpl$AccessorProxy.invoke(DirectorySessionImpl.java:756)
    at $Proxy5.fetchEngineConfiguration(Unknown Source)
    at fuego.directory.DirEngineConfiguration.fetch(DirEngineConfiguration.java:102)
    at fuego.prefs.engine.storage.EnginePreferencesNode.fetchEngineConfiguration(EnginePreferencesNode.java:112)
    at fuego.prefs.engine.EnginePreferences.initialize(EnginePreferences.java:438)
    at fuego.prefs.engine.EnginePreferences.loadBasePreferences(EnginePreferences.java:220)
    at fuego.papi.impl.ProcessServiceImpl.initializePollingHandledType(ProcessServiceImpl.java:1937)
    at fuego.papi.impl.ProcessServiceImpl.initializeInstanceCache(ProcessServiceImpl.java:1924)
    at fuego.papi.impl.ProcessServiceImpl.<init>(ProcessServiceImpl.java:178)
    at fuego.papi.impl.ProcessServiceFactoryImpl.getOrCreateProcessService(ProcessServiceFactoryImpl.java:127)
    at fuego.papi.impl.ProcessServiceFactoryImpl.create(ProcessServiceFactoryImpl.java:79)
    at fuego.papi.impl.ProcessServiceFactoryImpl.create(ProcessServiceFactoryImpl.java:63)
    at fuego.papi.ProcessService.create(ProcessService.java:335)
    at oasas.wpr.demo.bpm.PapiTest.createProcess(PapiTest.java:36)
    at oasas.wpr.demo.bpm.PapiTest.<init>(PapiTest.java:15)
    at oasas.wpr.demo.bpm.PapiTest.main(PapiTest.java:104)
    The errors above are generated by our standalone client when it runs with xmlparserv2.jar in the classpath. Exactly the same errors are generated by the J2EE app, but we can't remove xmlparserv.jar from OC4J's classpath because it seems to be required by the container itself.
    Please advise if there are any configuration changes that are necessary to have a PAPI client running in Oracle's J2EE environment.
    Thank you in advance,
    Igor

    Hi,
    I only was successful with running the PAPI WS client in OC4J environment, as described here: Re: Error in JAX-WS 2.0 & JDeveloper 10.1.3
    In my case, I copied all jar files from latest Sun's Metro distro and that fixed the problem!
    I also tested the RMI-based PAPI call, but that one still does not work.
    -Igor

  • How to run ejb application OC4J J2EE Container

    Hi all,
    I unable run ejb applications in OC4J J2EE Container.
    I have configure following files.
    in config directory
    Server.xml
    I have .ear file if configured in server.xml. this .ear copied into home/application directory
    I have create following deployment discriptor file.
    in META-INF for ejb.
    ejb-jar.xml
    application.xml
    I have specify all ejb classes details in ejb-jar.xml
    Please help me .How to run ejbs with jsp and application client.Which files shall i configure.
    Thnaks,

    Hi all,
    I unable run ejb applications in OC4J J2EE Container.
    I have configure following files.
    in config directory
    Server.xml
    I have .ear file if configured in server.xml. this .ear copied into home/application directory
    I have create following deployment discriptor file.
    in META-INF for ejb.
    ejb-jar.xml
    application.xml
    I have specify all ejb classes details in ejb-jar.xml
    Please help me .How to run ejbs with jsp and application client.Which files shall i configure.
    Thnaks,

  • Regarding Engine Run state using PAPI Client

    Is there anyway to find if ALBPM Execution engine is running using PAPI Client?
    Thank you.
    Regards,
    Ravi.

    Hi,
    IMHO the best way to find if the engine is up or down is by connecting through JMX,
    Hope this helps,
    Ariel

  • Java papi client 57 UserTransaction lookup fails

    Guys,
    I am trying to write PAPI client which is to run from Tomcat and connecting to ALBPM 5.7 Enterprise which is on Weblogic 92.
    I am able to do all operations how ever do see exceptions when PAPI tries to connect to News Topic.
    Please let me know if some one has seen this problem in ALBPM5.7 and how it was resolved. I think fix may be in directory.properties by adding/removing some properties but dont know what.
    Following is the error message
    An error occurred when subscribing to the JMS Topic engine. Reason:'While trying to lookup 'java:comp.UserTransaction' didn't find subcontext 'java:comp'. Resolved ''
    Caused by: While trying to lookup 'java:comp.UserTransaction' didn't find subcontext 'java:comp'. Resolved ''
    When I checked in directory database, I see following XML in FUEGO_CONFIG table
    <?xml version="1.0" encoding="UTF-8"?>
    <?fuego version="5.7 GA SP3" application="albpmenteprisej2ee"?>
    <set>
         <configuration name="myengine_ENGINE_DB_FUEGOLABS_ARG" type="SQL" subtype="ORACLE">
              <property name="jdbc.pool.idle_timeout" value="5"/>
              <property name="oracle.driver_type" value="thin"/>
              <property name="oracle.dateEqualsTimestamp" value="false"/>
              <property name="jdbc.schema" value="myengine"/>
              <property name="jdbc.host" value="localhost"/>
              <property name="user" value="myengine"/>
              <property name="jdbc.port" value="1521"/>
              <property name="jdbc.pool.min" value="0"/>
              <property name="jdbc.pool.maxopencursors" value="50"/>
              <property name="oracle.sid" value="xe"/>
              <property name="password" value="&lt;encrypted&gt;gGocbn15UL8="/>
              <property name="jdbc.xa" value="false"/>
              <property name="jdbc.pool.max" value="10"/>
         </configuration>
         <configuration name="*myengine_J2EE_LOCAL_FUEGOLABS_ARG*" type="*J2EE*" subtype="*LOCAL_J2EE*">
              <property name="*javax.user.UserTransaction*" value="*java:comp/UserTransaction*"/>
         </configuration>
         <configuration name="myengine_J2EE_RUNTIME_FUEGOLABS_ARG" type="SQL" subtype="REMOTE_JDBC">
              <property name="lookupName" value="XAmyengineDS"/>
              <property name="jdbc.remote.type" value="ORACLE"/>
              <property name="j2ee.provider" value="myengine_J2EE_LOCAL_FUEGOLABS_ARG"/>
         </configuration>
         <configuration name="myengine_J2EE_FDI_FUEGOLABS_ARG" type="SQL" subtype="REMOTE_JDBC">
              <property name="lookupName" value="XAFDIDS"/>
              <property name="jdbc.remote.type" value="ORACLE"/>
              <property name="j2ee.provider" value="myengine_J2EE_LOCAL_FUEGOLABS_ARG"/>
         </configuration>
    </set>
    Following is my directory.properties (I have tweaked a bit to make it work)
    # Directory configuration
    # The following properties define the configuration for a directory provider.
    # Do not modify the prefix of the properties. Always leave "directory.default."
    directory.default.url=oracle://localhost:1521/schema=BEA_FDI,sid=XE
    #directory.default.provider=oracle
    #directory.default.connector-subtype=ORACLE
    #directory.default.directory-res-ref-name=myengine_J2EE_FDI_FUEGOLABS_ARG
    # preset properties.
    directory.default.preset.datawarehouse.participant=administrator
    directory.default.preset.engine.participant=administrator
    directory.default.preset.portal-anonymous.participant_password=<crypted>UA7jo3Pvnu12sc/NMcxJ3ijnJHzgtte9YqKhr3hkgQJeZK2sN9b9waFaN6N8S/fMtkcMRWpbMrUVCeXN8zvx7OLaGtCTBQ==
    directory.default.preset.xobjects.participant=administrator
    directory.default.preset.datawarehouse.participant_password=<crypted>UA7jo3Pvnu12sc/NMcxJ3ijnJHzgtte9Yp/TapxzhLBvmq3JAXqZ/pOgfmVZxXpleLmdse9pFPjhFG4SH4/hmKPhJg==
    directory.default.preset.xobjects.participant_password=<crypted>UA7jo3Pvnu12sc/NMcxJ3ijnJHzgtte9YrahnQoZYB8e7NkVzsFfeKe9qrv/oXpltEQYTDSxMrUVCeXN8zs=
    directory.default.preset.engine.participant_password=<crypted>UA7jo3Pvnu12sc/NMcxJ3ijnJHzgtte9YmixG3O3OYx0FW4CpqZf/pP8fnS8vEpQ6fpD8kG9FNGrZQhP
    directory.default.preset.portal-anonymous.participant=administrator
    # custom properties.
    # fuego properties.
    directory.default.jdbc-user=BEA_FDI
    directory.default.jdbc-password=password
    #directory.default.skip-auth=true
    If you see I have commented following properties above which is basically referring to elements in XML which I have pasted above.
    #directory.default.provider=oracle
    #directory.default.connector-subtype=ORACLE
    #directory.default.directory-res-ref-name=myengine_J2EE_FDI_FUEGOLABS_ARG
    Similarly there is UserTransaction entry in FUEGO_CONFIG table xml as highlighted in bold.
    Is there any fix/tweak in directory.properties which will resolve my problem?
    Thanks in advance for helping.
    Anil
    Edited by: Anil Hemnani on 22-Apr-2010 23:30
    Edited by: Anil Hemnani on 22-Apr-2010 23:30
    Edited by: Anil Hemnani on 22-Apr-2010 23:31

    Dear fellow forum members,
    For future reference:
    After a very very long time we received advise from SAP to perform actions we already suggested.....
    We have ´hacked´ the keydb.xml file. We must say that SAP gave good detailed advise on which entries to change:
    1#. Log on to ABAP and check what password was set for user "ADS_AGENT"
    2#. Go to:
    /tmp/sapinst_instdir/NW04S/LM/AS-JAVA/ADDIN/ADA/CENTRAL/CI/
    1. Save a backup of "keydb.xml" first.
    2. Find the following lines at the keydb.xml:
    This solved the problem for our customer, so this question can be marked as answered by Casper (my colleague). We hope that SAP will launch a patch to solve this problem, as it has cost us a lot of time and we can imagine that other consultants are facing the same issues, as this seems to be a hashing mechanism that does not perform/work correctly.
    Best regards,
    Jan Laros

  • PAPI Client program is not working

    Hi,
    i'm running a sample bpm project in albpm studio 5.7
    and tried to get the instance details thru PAPI client, but im getting following exception.
    pls help me.
    Code:*
    package papi.example;
    import java.io.Serializable;
    import java.util.Properties;
    import fuego.papi.CommunicationException;
    import fuego.papi.InstanceInfo;
    import fuego.papi.OperationException;
    import fuego.papi.ProcessService;
    import fuego.papi.ProcessServiceSession;
    public class PapiExample implements Serializable {
         private static final long serialVersionUID = 6828488904644822028L;
         public static void main(String[] args) throws Exception {
              Properties configuration = new Properties();
              configuration.setProperty(ProcessService.DIRECTORY_ID, "default");
              configuration
                        .setProperty(ProcessService.PROJECT_PATH,
                                  "C:/Documents and Settings/458232/bpmProjects/ExpenseManagement.fpr");
              configuration
                        .setProperty(ProcessService.WORKING_FOLDER,
                                  "/tmp");
              try {
                   ProcessService processService = ProcessService
                             .create(configuration);
                   ProcessServiceSession session = processService.createSession(
                             "Peter Jones", "", "localhost");
                   for (String processId : session.processesGetIds()) {
                        System.out.println("\n Process: " + processId);
                        for (InstanceInfo instance : session
                                  .processGetInstances(processId)) {
                             System.out.println(" -> " + instance.getId());
                   session.close();
                   processService.close();
              } catch (CommunicationException e) {
                   System.out.println("Could not connect to Directory Service");
                   e.printStackTrace();
              } catch (OperationException e) {
                   System.out.println("Could not perform the requested operation");
                   e.printStackTrace();
    Exception*:
    Local folder /tmp\system\Schema3387192-1626570987\catalogs found.
    Loading catalogs from local folder: /tmp\system\Schema3387192-1626570987\catalogs
    0 jars found locally.
    [CatalogMgrCache] =======================
    Registering CatalogMgr [ExpenseManagement.fpr] ...CatalogManagerCache 25934938:
    Managers:
    Counters:
    [CatalogMgrCache] =======================
    CatalogMgr [ExpenseManagement.fpr] REGISTERED!CatalogManagerCache 25934938:
    Managers:
    {ExpenseManagement.fpr=fuego.util.LocalCatalogManager@facf0b}
    Counters:
    Could not enhance type with bytecode info: java.lang.NoClassDefFoundError: org/apache/bcel/classfile/EmptyVisitor
    Could not enhance type with bytecode info: java.lang.NoClassDefFoundError: org/apache/bcel/classfile/EmptyVisitor
    Could not enhance type with bytecode info: java.lang.NoClassDefFoundError: org/apache/bcel/classfile/EmptyVisitor
    Could not enhance type with bytecode info: java.lang.NoClassDefFoundError: org/apache/bcel/classfile/EmptyVisitor
    Could not enhance type with bytecode info: java.lang.NoClassDefFoundError: org/apache/bcel/classfile/EmptyVisitor
    Could not enhance type with bytecode info: java.lang.NoClassDefFoundError: org/apache/bcel/classfile/EmptyVisitor
    Could not enhance type with bytecode info: java.lang.NoClassDefFoundError: org/apache/bcel/classfile/EmptyVisitor
    Could not enhance type with bytecode info: java.lang.NoClassDefFoundError: org/apache/bcel/classfile/EmptyVisitor
    Could not enhance type with bytecode info: java.lang.NoClassDefFoundError: org/apache/bcel/classfile/EmptyVisitor
    Could not enhance type with bytecode info: java.lang.NoClassDefFoundError: org/apache/bcel/classfile/EmptyVisitor
    Could not enhance type with bytecode info: java.lang.NoClassDefFoundError: org/apache/bcel/classfile/EmptyVisitor
    Could not enhance type with bytecode info: java.lang.NoClassDefFoundError: org/apache/bcel/classfile/EmptyVisitor
    Could not enhance type with bytecode info: java.lang.NoClassDefFoundError: org/apache/bcel/classfile/EmptyVisitor
    Could not enhance type with bytecode info: java.lang.NoClassDefFoundError: org/apache/bcel/classfile/EmptyVisitor
    Could not enhance type with bytecode info: java.lang.NoClassDefFoundError: org/apache/bcel/classfile/EmptyVisitor
    Process: /ExpenseReport#Default-1.0
    Unreachable Engine Tolerance (seconds):
    by default: 0
    to be used: 0
    This papi client will not cache exceptions which imply that an engine could not be reached.
    The connection to 'tcp://01HW316455:8586' was refused. Details:
    tcp://01HW316455:8586. Details: java.io.EOFException)
    Caused by: An exception occurred while attempting to connect to: tcp://01HW316455:8586
    Caused by: java.io.EOFException
    fuego.papi.impl.rmi.EngineLocationStatus$EngineCrashedException: tcp://01HW316455:8586. Details: java.io.EOFException)
         at fuego.papi.impl.rmi.EngineLocationStatus.get(EngineLocationStatus.java:92)
         at fuego.papi.impl.rmi.RMIUtils.connectToLocation(RMIUtils.java:136)
         at fuego.papi.impl.rmi.RMIUtils.connectToEngine(RMIUtils.java:111)
         at fuego.papi.impl.rmi.RMIEngineAccessImpl.createSecureEngineProxy(RMIEngineAccessImpl.java:153)
         at fuego.papi.impl.rmi.RMIEngineAccessImpl.createSecureEngine(RMIEngineAccessImpl.java:105)
         at fuego.papi.impl.ProcessServiceImpl.createSecureEngine(ProcessServiceImpl.java:1222)
         at fuego.papi.impl.ProcessServiceSessionImpl$2.run(ProcessServiceSessionImpl.java:3641)
         at fuego.papi.impl.ProcessServiceImpl.executeEngineOp(ProcessServiceImpl.java:1858)
         at fuego.papi.impl.ProcessServiceSessionImpl.getSecureEngine(ProcessServiceSessionImpl.java:3649)
         at fuego.papi.impl.ProcessServiceImpl.createProcessControl(ProcessServiceImpl.java:1208)
         at fuego.papi.impl.ProcessServiceSessionImpl$1.run(ProcessServiceSessionImpl.java:2481)
         at fuego.papi.impl.ProcessServiceImpl.executeEngineOp(ProcessServiceImpl.java:1858)
         at fuego.papi.impl.ProcessServiceSessionImpl.getProcessControl(ProcessServiceSessionImpl.java:2486)
         at fuego.papi.impl.ProcessServiceSessionImpl.processGetInstances(ProcessServiceSessionImpl.java:2155)
         at papi.example.PapiExample.main(PapiExample.java:41)
    Caused by: fuego.rmi.spi.ConnectException: An exception occurred while attempting to connect to: tcp://01HW316455:8586
         at fuego.rmi.ClientCluster.initialize(ClientCluster.java:486)
         at fuego.rmi.ClientCluster.<init>(ClientCluster.java:107)
         at fuego.rmi.ClientCluster.find(ClientCluster.java:228)
         at fuego.rmi.RemoteProxy.<init>(RemoteProxy.java:73)
         at fuego.papi.impl.rmi.PublicEngineProxy.<init>(PublicEngineProxy.java:33)
         at fuego.papi.impl.rmi.EngineLocationStatus.createPublicEngine(EngineLocationStatus.java:109)
         at fuego.papi.impl.rmi.EngineLocationStatus.get(EngineLocationStatus.java:44)
         ... 14 more
    Caused by: java.io.EOFException
         at java.io.DataInputStream.readShort(Unknown Source)
         at fuego.rmi.Packet.read(Packet.java:129)
         at fuego.rmi.spi.BaseConnection$Receiver.run(BaseConnection.java:190)
    fuego.papi.ProcessNotAvailableException: Process '/ExpenseReport#Default-1.0' not available.
         at fuego.papi.impl.ProcessServiceImpl.createProcessControl(ProcessServiceImpl.java:1215)
         at fuego.papi.impl.ProcessServiceSessionImpl$1.run(ProcessServiceSessionImpl.java:2481)
         at fuego.papi.impl.ProcessServiceImpl.executeEngineOp(ProcessServiceImpl.java:1858)
         at fuego.papi.impl.ProcessServiceSessionImpl.getProcessControl(ProcessServiceSessionImpl.java:2486)
         at fuego.papi.impl.ProcessServiceSessionImpl.processGetInstances(ProcessServiceSessionImpl.java:2155)
         at papi.example.PapiExample.main(PapiExample.java:41)
    Caused by: fuego.papi.impl.EngineNotAvailableException: Engine 'ExpenseManagement.fpr' cannot process requests.
         at fuego.papi.impl.rmi.RMIUtils.connectToEngine(RMIUtils.java:119)
         at fuego.papi.impl.rmi.RMIEngineAccessImpl.createSecureEngineProxy(RMIEngineAccessImpl.java:153)
         at fuego.papi.impl.rmi.RMIEngineAccessImpl.createSecureEngine(RMIEngineAccessImpl.java:105)
         at fuego.papi.impl.ProcessServiceImpl.createSecureEngine(ProcessServiceImpl.java:1222)
         at fuego.papi.impl.ProcessServiceSessionImpl$2.run(ProcessServiceSessionImpl.java:3641)
         at fuego.papi.impl.ProcessServiceImpl.executeEngineOp(ProcessServiceImpl.java:1858)
         at fuego.papi.impl.ProcessServiceSessionImpl.getSecureEngine(ProcessServiceSessionImpl.java:3649)
         at fuego.papi.impl.ProcessServiceImpl.createProcessControl(ProcessServiceImpl.java:1208)
         ... 5 more
    Could not perform the requested operation

    I think problem is with your working folder.
    configuration.setProperty(ProcessService.WORKING_FOLDER,"/tmp");
    set it to where exactly your application folder path.

  • JMS setExceptionListener doesn't work in a j2ee container?

    I have just upgraded to Oracle SOA suite 10.1.3.1.0 from Oracle BPEL 10.1.2.0.2
    I have redeployed a servlet which I had running on my previous oc4j server.
    However when my servlet now attempts to send a jms message to the server I get an exception raised:
    QueueConnection[Oc4jJMS.Connection.ghc-pc029.5a62f421:10f2ebe2218:-8000.333]: cannot invoke method "setExceptionListener" within the J2EE container.
    Please could you explain why the below method can not be invoked in a J2EE container.
    javax.jms.QueueConnection#setExceptionListener(ExceptionListener listener)
    (retrieved from com.evermind.server.rmi.RMIInitialContextFactory)
    Is this a defect? regression? or limitation?
    Thanks,
    Peter

    Peter,
    Is this a defect? regression? or limitation?Creating exception listeners is explicitely prohibited by the J2EE 1.4 specs (see http://java.sun.com/j2ee/j2ee-1_4-fr-spec.pdf, section 6.6, page 103).
    We had to enforce this in 10.1.3.1 to be compliant and pass the Compatibility Test Suite (CTS). The idea is that all connection-related tasks are delegated to the container. WHile making things simpler, it also certainly removes some flexibility.
    Hope this makes sense.
    /Demed

  • Oracle J2EE container, Web Layout, JSP, Tomcat

    Please help me with the next questions:
    1)Oracle DB server and Oracle J2EE container are located in different places. The jsp in Oracle report web layout was generated. I put this JSP on the Oracle J2EE container and tried to run this jsp:
    http://localhost:port/reports/weblayout.jsp and got the next error:
    javax.servlet.jsp.JspException
         at oracle.reports.jsp.ReportTag.doStartTag(ReportTag.java:341)
         at groups.jspService(_groups.java:55)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:302)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:407)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:330)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:336)
         at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:59)
         at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:283)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:523)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:269)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:735)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:243)
         at com.evermind.util.ThreadPoolThread.run(ThreadPoolThread.java:64)
    Do I need to deploy this jsp on Oracle J2EE container and if yes in what way?
    2)can I run this jsp in Tomcat?
    Thank you.

    hello,
    reports JSPs need the report server environment availabel and can not be deployend to a vanilla J2EE container. you can take a look at our "Tools" section of the reports page here on OTN (go to the reports homepage and click on the "search" link in the news section. there you can look for "tools and utilities" which contain instructions on how what you need to do. keep in mind though, that this is not a supported configuration. the only way to deploy a reports JSP is inside the J2EE container of the EE edition of the appliation server.
    at this point we do not provide any instruction for other, non oracle, containers.
    thanks,
    ph.

  • PAPI client calls - stuck threads with albpm57 engine

    PAPI client running on weblogic portal 10.3, connecting to ALBPM 5.7 engine (on weblogic 8.1 cluster).
    threads get stuck in WLP servers (where PAPI client runs), and the call is for getActiveInstances from default view. We have around 15000 active instances, and the papi cache size is configured for 25000.
    "[STUCK] ExecuteThread: '3' for queue: 'weblogic.kernel.Default (self-tuning)'" id=17 idx=0x7c tid=6615 prio=1 alive, in native, waiting, daemon
    -- Waiting for notification on: fuego/papi/impl/lock/SimpleLock@0x1f443568[fat lock]
    at jrockit/vm/Threads.waitForNotifySignal(JLjava/lang/Object;)Z(Native Method)
    at java/lang/Object.wait(J)V(Native Method)[optimized]
    at java/lang/Object.wait(Object.java:485)
    at fuego/papi/impl/lock/SimpleLock.readLock(SimpleLock.java:50)
    ^-- Lock released while waiting: fuego/papi/impl/lock/SimpleLock@0x1f443568[fat lock]
    at fuego/papi/impl/InstanceCache$Entry.readLock(InstanceCache.java:708)
    at fuego/papi/impl/InstanceCache.getInstancesByFilter(InstanceCache.java:505)
    at fuego/papi/impl/InstanceCache.getInstancesByFilter(InstanceCache.java:231)
    at fuego/papi/impl/ProcessServiceImpl.getInstancesByFilter(ProcessServiceImpl.java:1084)
    at fuego/papi/impl/ProcessServiceNESessionImpl.getInstancesByFilter(ProcessServiceNESessionImpl.java:754)
    Please help how to resolve this.
    thanks in advance.
    Edited by: 811778 on May 17, 2013 5:05 PM

    support team suggested to use,
    -Dfuego.papi.lockManagerClass=fuego.papi.impl.lock.ParanoidLockManager for each java process, acting as PAPI client. This class available in fuegopapi-client.jar
    additional comments from support team,
    Implementing this property does not generate side-effects. This property detects and kills/recovers deadlocks in the PAPI instance cache

  • Cannot invoke method "setMessageListener" within the J2EE container.

    I use TopicSubscriber.setMessageListener method to convert messages to my own type, but oc4j jms throws following exception:
    javax.jms.JMSException: TopicSubscriber[Oc4jJMS.Consumer.ypchang-cn.12da4a6:111d4f12137:-8000.94,Topic[CreatedSponsorTopic],null,null,false]: cannot invoke method "setMessageListener" within the J2EE container.
         at com.evermind.server.jms.JMSUtils.make(JMSUtils.java:1072)
         at com.evermind.server.jms.JMSUtils.toJMSException(JMSUtils.java:1152)
         at com.evermind.server.jms.JMSUtils.toJMSException(JMSUtils.java:1123)
         at com.evermind.server.jms.JMSUtils.assertNotContainer(JMSUtils.java:1538)
         at com.evermind.server.jms.EvermindMessageConsumer.setMessageListener(EvermindMessageConsumer.java:217)
         at com.firepond.bcmf.bus.BusSubscriberImpl.setMessageListener(BusSubscriberImpl.java:397)
    OC4J JMS doesn't support user defined MessageListener?????!!!!!!!!!!
    Who can help me out?
    Thanks!

    Hi,
    I am facing the same problem did you got any solution for it.
    I am getting the following error message too:
    Exception in Constructor
    javax.jms.JMSException: QueueReceiver[Oc4jJMS.Consumer.ssipl-wrkst-139.-7dd2dd24:1122873d95f:-8000.269,Queue[360Transaction]]: cannot invoke method "setMessageListener" within the J2EE container.
         at com.evermind.server.jms.JMSUtils.make(JMSUtils.java:1072)
         at com.evermind.server.jms.JMSUtils.toJMSException(JMSUtils.java:1152)
         at com.evermind.server.jms.JMSUtils.toJMSException(JMSUtils.java:1123)
         at com.evermind.server.jms.JMSUtils.assertNotContainer(JMSUtils.java:1538)
         at com.evermind.server.jms.EvermindMessageConsumer.setMessageListener(EvermindMessageConsumer.java:217)
         at com.skillnetinc.storehub.connector.pos.publisher.ejb.publishTransactionWithSalesAudit.PublishTransactionWithSalesAuditBean.<init>(PublishTransactionWithSalesAuditBean.java:94)
         at PublishTransactionWithSalesAuditBean_RemoteProxy_1dpbn83.OC4J_createBeanInstance(Unknown Source)
         at com.evermind.server.ejb.StatelessSessionBeanPool.createContextImpl(StatelessSessionBeanPool.java:37)
         at com.evermind.server.ejb.BeanPool.createContext(BeanPool.java:418)
         at com.evermind.server.ejb.BeanPool.allocateContext(BeanPool.java:244)
         at com.evermind.server.ejb.StatelessSessionEJBHome.getContextInstance(StatelessSessionEJBHome.java:25)
         at com.evermind.server.ejb.StatelessSessionEJBObject.OC4J_invokeMethod(StatelessSessionEJBObject.java:86)
         at PublishTransactionWithSalesAuditBean_RemoteProxy_1dpbn83.invoke(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:585)
         at com.evermind.server.rmi.RmiMethodCall.run(RmiMethodCall.java:53)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
         at java.lang.Thread.run(Thread.java:595)

  • Transaction propagation between OC4J to non-OC4J J2EE container

    I have a OC4J instance 10.1.3.1 containing a stateless session EJB 2.1. This bean call another session EJB in Websphere EJB container. The call goes through but the transaction is not distributed, meaning I cannot roll the transaction back from the OC4J container.
    I have tried all kinds of context factories but it doesen't work. I use a XA datasource to an Oracle DB from the Websphere container.
    Does anyone know how to propagate transactions from an OC4J container to another J2EE container:
    Thanks
    regards
    A Bastell

    You can specify the JNDI properties in your JSP/Java Client to lookup the EJB if it's in a different EJB container than the one provided by the JSP container.
    Rob

  • Applet not running outside of netBeans

    I have an applet that was compiled & built within NetBeans 4.1 under jdk1.5.0_04. It runs perfectly inside of NetBeans. It doesn't run outside of NetBeans.
    I created the HTML launcher file and placed it in the same folder where the applet class file resides.
    <HTML>
    <BODY>
    <APPLET CODE=Main.class
    WIDTH=250
    HEIGHT=130>
    </APPLET>
    </BODY>
    </HTML>
    When I launch the HTML file under windows XP I get a NullPointerException.
    When I try to use appletviewer I get the following:
    Warning:Can't read AppletViewer properties file: c:\Documents and Settings\walter88\.hotjava\properties using defaults. I/O exception while reading: c:\Program (The system cannot find the file specified).
    Someone please help this 'newbie'.
    Thanks.

    Thanks for your reply. here is the applet code:
    package javaapplication4;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import java.text.DecimalFormat;
    public class Main extends JFrame
        implements ActionListener {
        private JButton button;
        public static void main(String[] args) {
            Main frame = new Main();
            frame.setSize(400, 300);
            frame.createGUI();
            frame.setVisible(true);
        private void createGUI() {
            setDefaultCloseOperation(EXIT_ON_CLOSE);
            Container window = getContentPane();
            window.setLayout(new FlowLayout() );
            button = new JButton("Press me");
            window.add(button);
            button.addActionListener(this);
        public void actionPerformed(ActionEvent event) {
            DecimalFormat df1 = new DecimalFormat( "#####.0000");
            String Od, Length, Weight, Density;
         double od, length, weight, density, const_1, const_2, or, wall;
         Od = JOptionPane.showInputDialog("Enter OD of tubing (inch)");
         Length = JOptionPane.showInputDialog("Enter length (inch)");
         Weight = JOptionPane.showInputDialog("Enter weight (grams)");
         Density = JOptionPane.showInputDialog("Enter density (lbs/in3)");
         od = Double.parseDouble( Od );
         length = Double.parseDouble( Length );
         weight = Double.parseDouble( Weight );
         density = Double.parseDouble( Density );
         or = .5 * od;
         const_1 = 3.14159 * 453.59 * density * length;
         const_2 = -4 * const_1 * or;
         wall = (-const_2 - Math.sqrt(const_2 * const_2 - 4 * const_1 * weight))/(2 * const_1);
            JOptionPane.showMessageDialog(null, "Wall thickness is: " + df1.format(wall) + " inch");
    }

  • Initial admin's passsword if you install only the J2EE Container

    Anyone knows the initial admin's passsword if you install only the J2EE Container alone (of the Oracle9i AS)
    Thanks in advance

    Hi,
    Try to perform a clean boot then install the CRM 2013 for Microsoft Office Outlook.
    To perform a clean boot:
    Log on to the computer by using an account that has administrator rights.
    Click Start, type msconfig.exe in the Start Search box, and then press Enter to start the System Configuration utility.
    Note If you are prompted for an administrator password or for confirmation, you should type the password or provide confirmation.
    Collapse this imageExpand this image
    On the General tab, click the Selective startup
    option, and then click to clear the Load startup items check box.  (The
    Use Original Boot.ini check box is unavailable.)
    Collapse this imageExpand this image
    On the Services tab, click to select the Hide all Microsoft services check box, and then click
    Disable all.
    Collapse this imageExpand this image
    Note This step lets Microsoft services continue to run. These services include Networking, Plug and Play, Event Logging, Error Reporting, and other services. If you disable these services, you may permanently delete all restore points. Do not
    do this if you want to use the System Restore utility together with existing restore points.
    Click OK, and then click Restart.
    This way we can eliminate the affect by background programs, install the software to see if the error still occurs.
    If the issue persists in clean boot, please collect the Setup log files from this path:
    SystemDrive:\Users\<User>\AppData\Local\Microsoft\MSCRM\Logs
    Send the logs to our email address for further analysis:
    [email protected]
    Regards,
    Melon Chen
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.

Maybe you are looking for

  • Can we create a XDP file on the fly

    Hi All, I am new to Live Cycle. I want to know if we can create an XDP file on the fly and immediately using this XDP file can form server create a PDF? Need this info urgently.. Thanks in advance. Regards Vinay

  • Question about DOFD vs DOFMD

    Equifax is reporting an old tradeline that shows the DOFD in July 2008 and DOFMD in November 2008. Equifax says it should come off in November 2015, shouldn't it be removed in July. Both TU and EX have already deleated. Thank you for your help.

  • PO Output messages for ECS PO's

    We are on SRM_SERVER 550, SAP 4.7 backend and are moving to ECS scenario (from Classic scenario). Although we cannot change the ECS PO copy in R/3, I want to know if we can add new message types in the ECS PO copy which is stored in R/3 Does R/3 allo

  • To convert Old material Number (BISMT) to  new material number

    HI Folks,                        I have the requirement is how to convert OLD material number to New material number.  Is  thier any  Global  exists is thier? Please let me know. Thanks, Vijay

  • Converting int type into two bytes!

    Hi everyone, i need help in converting types. I have and int ranging from 0-4095 that i would like to write in a file as couple of bytes. For example suppose the int has four bytes [A][C][D] i would like to write in a file only the two bytes [C][D].