Debugging application/OC4J container

I have some application running in separate 9iASR2 9.0.2.0.0 OC4J containers that appear to randomly freeze (this happened 7 times in May, 2003). Only restarting the OC4J container fixes the problem. As far as I can tell, there are no obvious problems (db connectivity, OS problems, ...) that could be causing this freezing.
My question is, how do you go about trouble shooting debugging an application running in a OC4J container. What kind of tools should I be using? Jprobe?
Any help is appreciated.
Daniel

Hi Daniel --
Tools which act as profilers such as JDeveloper,JProbe, etc. can help assist with the codepath and possible source of a freeze.
Sounds like you've checked the right items -- I have seen instances where an application was leaking database connections in a side and infrequently executed codepath, which contributed to the system freezing.
Another option for freezes is to get the running JVM to do a thread-dump to see if there are any locks on objects that are leading to deadlocks -- this can be done on Unix by issuing a "kill -3 <pid>" on the running JVM process.
cheers
-steve-

Similar Messages

  • Sort order in Java application (oc4j container) -- ear file deployment

    I have a Java application deploy in Oracle OC4J container (EAR file).
    In my Java application (jsp), I have a SQL statement who return data but the
    sort order is wrong. The letters "é" and all characters with accents
    appears at the end of the result.
    I tried many things to change the sort order (NLS parameters in database
    and OAS10g parameter files).
    When I use SQL*plus on database server, that's working.
    The sort order is wrong when I use the java application.
    Somebody can tell me what and where is the NLS parameters to change ?
    Thanks
    Robin

    Robin,
    I'm only guessing, but it could either be related to the java locale or the CHARSET attribute of the HTML header -- and nothing to do with the NLS parameters.
    Maybe you should try the Globalization Support forum?
    Good Luck,
    Avi.

  • Debugging or Running from OC4J container does not save to database

    When I run a project locally, from the oc4j container, none of my user input is committed to the database, for example...
    1. any changes to an lov input field are removed upon tabbing out of the field
    2. any other changes are not saved, getTransaction().isDirty() is false
    I am unable to debug any items that require user input. I don't know when or why this started happening.
    Thanks,
    jerry.

    1. any changes to an lov input field are removed upon tabbing out of the field - may be the PPR event of LOV is handled in the controller's processFormRequest where the values are cleared
    I am unable to debug any items that require user input. ----- are you trying to get the values of input items in the processFormRequest?

  • Sort order in Java Application (deploy in Oracle oc4j container)

    I have a Java application deploy in Oracle OC4J container (EAR file).
    In my Java application (jsp), I have a SQL statement who return data but the
    sort order is wrong. The letters "é" and all characters with accents
    appears at the end of the result.
    I tried many things to change the sort order (NLS parameters in database
    and OAS10g parameter files).
    When I use SQL*plus on database server, that's working.
    The sort order is wrong when I use the java application.
    Somebody can tell me what and where is the NLS parameters to change ?
    Thanks
    Robin

    Robin,
    I'm only guessing, but it could either be related to the java locale or the CHARSET attribute of the HTML header -- and nothing to do with the NLS parameters.
    Maybe you should try the Globalization Support forum?
    Good Luck,
    Avi.

  • Does restarting oc4j container redeploys the applications

    does restarting oc4j container redeploys the applications that are in that container?
    Thanks.

    No it should not. What version of OC4J (Oracle Application Server) are you using? And are you noticing this behavior or just curious?
    Thanks
    Shail

  • Can't start OC4J container

    Hi! I can't start my OC4J container. I've pasted here the error message.
    Can anyobody help me? Thanks.
    C:\Documents and Settings\zoli>java -jar "C:\Program Files\Jdeveloper 10.1.3\j2e
    e\home\oc4j.jar"
    2006-10-09 14:10:29.031 ERROR Failed to set the internal configuration of the OC
    4J JMS Server with: XMLJMSServerConfig[file:/C:/Program Files/Jdeveloper 10.1.3/
    j2ee/home/config/jms.xml]
    06/10/09 14:10:29 *** (SEVERE) Failed to set the internal configuration of the O
    C4J JMS Server with: XMLJMSServerConfig[file:/C:/Program Files/Jdeveloper 10.1.3
    /j2ee/home/config/jms.xml]
    2006-10-09 14:10:29.046 ERROR J2EE OJR0011 Exception starting JMS server: Failed
    to set the internal configuration of the OC4J JMS Server with: XMLJMSServerConf
    ig[file:/C:/Program Files/Jdeveloper 10.1.3/j2ee/home/config/jms.xml]
    2006-10-09 14:10:32.484 WARNING J2EE JNDI0001 Resource Environment reference jms
    /store not found. Allowing J2EEContext creation to continue anyway.
    2006-10-09 14:10:32.484 WARNING J2EE JNDI0001 Resource Environment reference jms
    /eventQueue not found. Allowing J2EEContext creation to continue anyway.
    2006-10-09 14:10:32.484 WARNING J2EE JNDI0001 Resource Environment reference jms
    /notificationQueue not found. Allowing J2EEContext creation to continue anyway.
    2006-10-09 14:10:32.562 WARNING J2EE JNDI0001 Resource Environment reference jms
    /eventQueue not found. Allowing J2EEContext creation to continue anyway.
    2006-10-09 14:10:32.578 WARNING J2EE JNDI0001 Resource Environment reference jms
    /notificationQueue not found. Allowing J2EEContext creation to continue anyway.
    2006-10-09 14:10:32.578 ERROR J2EE EJB3027 [default] An error occured deploying
    EJB module: java.lang.InstantiationException: Resource exception(OracleASjms) fo
    r MessageDrivenBean event during endpoint activation: failure looking up Connect
    ionFactoryJndiName:jms/XAQueueConnectionFactory: javax.resource.spi.ResourceAdap
    terInternalException: Looking up jms/XAQueueConnectionFactory: javax.naming.Name
    NotFoundException: jms/XAQueueConnectionFactory not found
    06/10/09 14:10:32 WARNING: Application.setConfig Application: default is in fail
    ed state as initialization failedjava.lang.InstantiationException: Error initial
    izing ejb-modules: Resource exception(OracleASjms) for MessageDrivenBean event d
    uring endpoint activation: failure looking up ConnectionFactoryJndiName:jms/XAQu
    eueConnectionFactory: javax.resource.spi.ResourceAdapterInternalException: Looki
    ng up jms/XAQueueConnectionFactory: javax.naming.NameNotFoundException: jms/XAQu
    eueConnectionFactory not found
    Oct 9, 2006 2:10:32 PM com.evermind.server.Application setConfig
    WARNING: Application: default is in failed state as initialization failedjava.la
    ng.InstantiationException: Error initializing ejb-modules: Resource exception(Or
    acleASjms) for MessageDrivenBean event during endpoint activation: failure looki
    ng up ConnectionFactoryJndiName:jms/XAQueueConnectionFactory: javax.resource.spi
    .ResourceAdapterInternalException: Looking up jms/XAQueueConnectionFactory: java
    x.naming.NameNotFoundException: jms/XAQueueConnectionFactory not found
    2006-10-09 14:10:32.640 WARNING DEBUG GJRA-1100, oracle.j2ee.connector.messagein
    flow.MessageEndpointFactoryImpl@128340.
    06/10/09 14:10:32 Error initializing server: Error initializing ejb-modules: Res
    ource exception(OracleASjms) for MessageDrivenBean event during endpoint activat
    ion: failure looking up ConnectionFactoryJndiName:jms/XAQueueConnectionFactory:
    javax.resource.spi.ResourceAdapterInternalException: Looking up jms/XAQueueConne
    ctionFactory: javax.naming.NameNotFoundException: jms/XAQueueConnectionFactory n
    ot found
    2006-10-09 14:10:34.000 WARNING J2EE JTA RecoveryManager is null during shut
    down
    06/10/09 14:10:34 Fatal error: server exiting
    C:\Documents and Settings\zoli>

    Hello,
    You are hitting a known issue that has been fixed in OC4J 10.1.3.1.
    The work around is to remove the *.lock file in the $ORACLE_HOME/j2ee/home/persistence directory.
    Let me know if that does not work after this.
    Regards
    Tugdual Grall

  • Shut Down Of OC4J Container ist blocked

    Hi,
    i'vi got a problem with the new 10g iAS and if anybody's encountered the same or does know a solution, please let me know.
    The problem is:
    I'm not able to stop the OC4J container in the iAS cleanly.
    The reason is:
    There are two timers (java.util.Timer) running. These timers are cleanup timers, which run always throughout the application at intervalls (scheduleAtFixedRate). If i dont start the timers, the container will stop right away, without any error. If the timers are running the container is waiting for them to cancel and shutting down hardly after a timeout.
    I didn't have this problem with 9i and i dont have it in the embedded OC4J of the JDeveloper.
    Is there any workaround? How could i latch into the shutdown process, to cancel the timers myself?
    Best regards,
    Mirko

    The OC4J script is not the cause of this -- if the message is shown "shutting down OC4J' then the call has been made to OC4J and its in the process of shutting down.
    If you execute "set verbose=on" before executing oc4j.cmd, then you'll see the command that oc4j uses when -shutdown is performed is exactly that command you suggest:
    oc4j -shutdown -port 23791 -password welcome1Executing: D:\java\jdk150_11\bin\java -jar "d:\java\oc4j-10133-prod\j2ee\home\admin.jar" ormi://localhost:23791 oc4jadmin welcome1 -shutdown
    But as you are suggesting there are manual ways to shutdown OC4J that are equally valid to use; it's a matter of choice.
    What you could try is using the -force extra switch with the -shutdown command to force it to shutdown:
    java -jar admin.jar ormi://localhost:23791 oc4jadmin welcome1 -shutdown force
    If that fails, ctrl+c the process. It doesn't do any damage to it.
    A thread-dump (ctrl+break) on the hung process can help to identify any deadlock issues.
    oc4j.cmd is limited certainly, but it provides a simpler entry point IMHO for new users. And we still fully support/endorse the direct startup path using the runnable JAR file.
    -steve-

  • Upgrade oc4j container from 10.1.2 to 10.1.3

    Hi to all,
    We use oc4j container 10.1.2 for old applications, but now we have developed ajax applications using oracle maps, but if i'm riight 10.1.2 doesn't support oracle maps.
    I've tried to install oracle application server oc4j container 10.1.3 in the same machine(i must use the same machine with red hat 3.4.4 opertive system) but i see a lot of conflicts with 10.1.2 and i cannot install that properly.
    Is there any possobility to upgrade oracle application server oc4j container without having a metalink account?Is there a patch or something similar?
    Thank you,
    Francesco Rizzello
    Edited by: francesco.rizzello on 10-nov-2009 20.31
    Edited by: francesco.rizzello on 10-nov-2009 20.33
    Edited by: francesco.rizzello on 10-nov-2009 21.06

    There shouldn't be any problems, I have in the same server one 10.1.2 App Server and a 10.1.3 and no conflicts, only when I installed I had the first App Server up, so the second recognize the ports used and it use a diferent one for his components.
    Can you tell about your conflicts?
    Greetings

  • JNDI lookup help please-Bean to Bean callout locally in same oc4j container

    Hi - I'm fairly new to oc4j/ejb coding - I'm trying to get a simple application running to show that our code can be run in local mode - here is the scenario:
    - Bean A (our application bean) within Application A
    - Bean B (customer-developed bean) within Application B
    - Bean B calls Bean A
    - Bean A + Bean B are different application instances in the same oc4j container
    - Jsp (residing in ApplicationB) within the same oc4j container calling Bean B, which invokes Bean A
    ====
    I get the following exception (classes renamed to match scenario):
    javax.naming.NameNotFoundException: oracle.apps.applicationa.common.BeanA not found in anothercompany.applicationb.common.BeanB
    [java] at com.oracle.naming.J2EEContext.getSubContext(J2EEContext.java:93)
    [java] at com.oracle.naming.J2EEContext.lookup(J2EEContext.java:76)
    [java] at com.evermind.server.ApplicationContext.lookupJavaCompEnv(ApplicationContext.java:265)
    [java] at com.evermind.server.ApplicationContext.lookupJavaComp(ApplicationContext.java:132)
    [java] at com.evermind.server.ApplicationContext.lookup(ApplicationContext.java:306)
    [java] at com.evermind.server.ApplicationContext.lookup(ApplicationContext.java:120)
    [java] at javax.naming.InitialContext.lookup(InitialContext.java:347)
    - BeanA is part of application named "AppA" in server.xml
    - BeanB is part of application named "AppB" in server.xml
    - AppB has attribute 'parent="AppA"' in server.xml
    - If I change the Jsp file (residing in AppB) to call BeanA directly in the jsp code it works with no JNDI error, but changing the jsp code back to calling BeanB (which then calls BeanA) will throw the NameNotFoundException
    My Stateless Session Bean is very simple and I have tried not setting the context and setting the context. I'm thinking this is a very simple configuration issue, but have not been able to find the solution yet... I've tried playing with the setSessionContext method in the session bean but have had no luck and am not sure what to set the variables to or even if I'm in the correct method...
    public void setSessionContext(SessionContext ctx) {   
    if (verbose)
    System.out.println("setSessionContext called");
    Properties env = new Properties();
    // tried all three context factories...
    //env.put(Context.INITIAL_CONTEXT_FACTORY,"com.evermind.server.ApplicationInitalContextFactory");
    env.put(Context.INITIAL_CONTEXT_FACTORY,"com.evermind.server.ApplicationClientInitialContextFactory");
    //env.put(Context.INITIAL_CONTEXT_FACTORY,"com.evermind.server.rmi.RMIInitialContextFactory");
    // not sure what url to put, if any
    //env.put(Context.PROVIDER_URL, "ormi://localhost:23791/AppB");
    env.put(Context.PROVIDER_URL, "ormi://localhost/AppB");
    // tried with and without security principals... also tried sysadmin/sysadmin
    env.put(Context.SECURITY_PRINCIPAL, "guest");
    env.put(Context.SECURITY_CREDENTIALS, "welcome");
    // mProps is a local transient member var of type Properties
    mProps = env;
    // mCtx is a local transient member var of type SessionContext
    mCtx = ctx;
    (edit) additional info:
    - all beans/classes are in the same classes directory; there are no jar files, so in application.xml the specified classpath is "classes" which includes both appA and appB classes
    - I verified that if I point (appB) jsp directly to BeanA it works with the "parent" attribute set on appB in server.xml, and when I remove the "parent" attribute on appB in server.xml the jsp throws a NameNotFoundException
    edit #2:
    another interesting note is that the exception message says "oracle.apps.applicationa.common.BeanA not found in anothercompany.applicationb.common.BeanB"
    and usually the naming error I see is:
    "oracle.apps.applicationa.common.BeanA not found in appB"
    (as with the case when I use a jsp to access appA beans without setting the parent application of appB to appA)
    - also my j2ee/home/applications/appB/WEB-INF/web.xml includes the oracle.apps.applicationa.common.BeanA ejb-ref tag
    any help is appreciated - thanks!
    Message was edited by:
    oleon

    Hi Steve
    thanks for the reply - I currently have the parent attribute set in server.xml which is why the jsp connection works, but for some strange reason the bean cannot connect to other bean...
    my server.xml has something like...
    <application name="appA" location="appA" auto-start="true"/>
    <application name="appB" location="appB" parent="appA" auto-start="true"/>
    (ok, the tags might be off because I'm not in front of my workstation looking at the xml file...)
    on another interesting note, in the session bean for AppB I've tried searching for the ejb bean for app B (itself basically) with the default initial context and it cannot find its own bean within the same application... the message would be something like "NameNotFoundException: anothercompany.applicationb.common.BeanB not found in anothercompany.applicationb.common.BeanB"

  • OEM in Linux and Unix Memory difference on Deployed OC4J Container

    I have 2 Oracle 9iAS environments 1 each for production and test.
    My Prod servers are on AIX (Unix)
    My Test server is on Linux
    Under Enterprise Manager If I create an OC4J container exactly the same in both and deploy an application exactly the same in both could someone tell me why the memory usage display is widely different - on linux its much more used than on unix?
    Perplexing.

    The code gets pretty messy as I have both a SendMail and MailMessage class that I use. Basically for not authenticated messages (I need authenticated), the example on metalink Doc ID: Note:234490.1 with subject "Mail Service Setup" is what I used to get this going.
    I updated the local application.xml file located in C:\jdev1012\jdev\system10.1.2.2.0.1929\oc4j-config\application.xml
    <mail-session location="mail/mailsession" smtp-host="my.mail.server">
    <property name="mail.transport.protocol" value="smtp"/>
    </mail-session>
    On a datapage, I have a button with event_Email. In the action class I have an onEmail() method that calls the code to create a message and send it with the email transport.
    In my libraries in JDeveloper, I created one called JavaMail which has activation.jar and mail.jar. This is added to the project.
    Everything works fine when running locally. The problem is in deployment. The OC4J container that I deploy to has a java2.policy file. At first the classpath, and the location in the policy file for mail.jar and activate.jar were not the same. I updated the policy file to use the files in the classpath. Since mail.jar and activate.jar on the OAS server are in the classpath, I didn't include these files in the deployment.
    When trying to run, I don't get any messages, just a 500 Error.
    If I try to implement a policy file on the local OC4J in JDeveloper, I get lots of problems, and I gave up on that route.
    Hope that adds more info. Thanks, Ken

  • SOA suite: configure a new oc4j container, licensing and support

    Hi
    We have a SOA suite installation (10.1.3.4).
    Default installation is containing a OC4J_SOA running the esb, bpel etc.
    Now we have a java ear (java web service), and would like to deploy this to a dedicated oc4j container.
    So we want to configure a new oc4j instance named oc4j_jws.
    Actually, we have already done this, and it is looking good.
    Now I only want to make sure the configuration of a new oc4j container is not violating any licensing and support agreements.
    We have soa suite license.
    I believe a soa suite license allows for configuration of additional oc4j containers.

    The adding of oc4j instances is at least well documented within the Oracle Application Server Administrator's Guide:
    http://download.oracle.com/docs/cd/B31017_01/core.1013/b28940/reconfig.htm

  • Declarative java object cache in non oc4j container

    hello,
    i'm trying to use the cache.jar from 10g in a standalone application.
    i've followed the j2ee services guide and use cache.open(path_to_javacache.xml). javacache.xml has preload-file defined, in which i've declared my userdefined classloader and userdefined cached object. the implementations of both implement declarable. however,when i use cacheaccess.getaccess(region_name) i get regionnotfoundexception.
    i've also tried to use the configurator alternative, where i specify the declarative cache xml file. but this gives me a classcastexception.
    any suggestions. better yet is there a sample program that
    shows the use of a decl cache in a non oc4j container.
    thanks

    Hi,
    I ran into the same problem while evaluating OC4J V9 Java Cache standalone.
    Cache.open() silently ignores errors:
    * Cache.open(path_to_javacache.xml) seems to silently swallow alle error messages (in your case the ClassCastException) and the ignore the configuration file
    * so to get meaningful error messages, first attempt to open the file with new Configurator(path_to_javacache.xml)
    * once there are no more errors, you can open it with Cache.open(path_to_javacache.xml)
    Now, to get around the ClassCastException:
    * you need to add xmlparserv2.jar from your oc4j distribution
    * this must be the first xml-parser in your classpath (when e.g. xerces.jar comes first, you will get a ClassCastException)
    A relative javacache.xml is relative to your working directory.
    The preload-file - Path seems to be relative to the javacache.xml path, if it is not absolute. I keep javacache.xml and preload-file together which worked for me.
    Hope this help,
    Andreas

  • Webbinding of OBI Publisher failing (OC4J contained into OAS)

    Hi
    I;m deploying OBI Publisher (earlier XML publisher) xmlpserver.EAR using OC4J contained into Oracle Application server. The deployment is getting successful. But when Binding Web Modules to a Web Site After Deployment it is giving me an error
    BindWebApp error: oracle.oc4j.admin.jmx.shared.exceptions.JMXRuntimeException
    Anyone of you have ever faced this problem. Do I need to put certain jar files in shared library.
    Regards,
    Parwez

    Solved it myself.
    For the benefit of others:
    It is possible to use oracle_proxy plug-in for OC4J stand-alone.
    Crucial points for the configuration are:
    - oracle_proxy config file specified correctly
    - xmlpserver roles specified correctly
    - right ports specified in instanceconfig.xml and xmlp-server-config.xml
    Regards,
    Michal

  • Using JAAS on an Application Client Container

    I am trying to authenticate users who are going to be accessing
    EJBs from an Application Client Container developed using AWT/Swing.
    I am able to authenticate users accessing these EJBs via the Web Client.
    But some how I get the following error when I run the ACC client:
    Nov 11, 2004 3:47:30 PM com.sun.enterprise.security.auth.login.PasswordLoginModule login
    SEVERE: SEC1105: A PasswordCredential was required but not provided.
    I have tried lc.login with/without the subject and/or principal with the same result.
    Here is the login code
    // Obtain a LoginContext, needed for authentication. Tell
    // it to use the LoginModule implementation specified by
    // the entry named "jdbcRealm" in the JAAS login
    // configuration file and to also use the specified
    // CallbackHandler.
    LoginContext lc = null;
    NameCallback namecb = new NameCallback( "Enter User name: " );
    PasswordCallback passwdcb = new PasswordCallback( "Enter password: ", true );
    Callback[] callbackparm = new Callback[2];
    callbackparm[0] = namecb;
    callbackparm[1] = passwdcb;
    try {
    System.out.println( "entering atUser: login()" );
    //TextCallbackHandler callback = new TextCallbackHandler();
    DialogCallbackHandler callback = new DialogCallbackHandler();
    callback.handle( callbackparm );
    //lc = new LoginContext( "jdbcRealm", callback );
    System.out.println( "entering atUser: login() namecb.getName() = " + namecb.getName() );
    System.out.println( "entering atUser: login() passwdcb.getPassword() = " +
    passwdcb.getPassword() );
    PasswordCredential pwd = new PasswordCredential (namecb.getName(), passwdcb.getPassword() );
    System.out.println( "entering atUser: login() PasswordCredential pwd = " + pwd );
    Subject subject = new Subject();
    //subject.getPrincipals().addAll(tempPrincipals);
    if (!subject.getPrincipals().contains(pwd)) {
    Principal principal = new X500Principal( "CN=JdbcRealm,OU=AkanTech,O=Akan Technology, C=US" );
    subject.getPrincipals().add( principal );
    System.out.println( "entering atUser: login() subject.getPrincipals().add(pwd) = " +
    subject.getPrincipals() );
    if (!subject.getPrivateCredentials().contains(pwd)) {
    subject.getPrivateCredentials().add( pwd );
    subject.getPublicCredentials().add( pwd );
    System.out.println( "entering atUser: login() subject.getPrivateCredentials().add(pwd) = " +
    subject.getPrivateCredentials() );
    System.out.println( "entering atUser: login() subject.getPrivateCredentials().add(pwd) = " +
    subject.getPrivateCredentials() );
    lc = new LoginContext( "jdbcRealm", subject, callback );
    System.out.println( "entering atUser: login() loginContext = " + lc );
    System.out.println( "entering atUser: login() lc.getSubject() = " + lc.getSubject() );
    } catch (LoginException le) {
    System.err.println("atUser login() LoginException: Cannot create LoginContext: " +
    le.getMessage());
    System.exit( -1 );
    } catch (SecurityException se) {
    System.err.println("atUser login() SecurityException: Cannot create LoginContext: " +
    se.getMessage());
    System.exit( -1 );
    //} catch (UnsupportedCallbackException se) {
    //System.err.println("atUser login() UnsupportedCallbackException: Cannot create LoginContext: " +
    se.getMessage());
    //System.exit( -1 );
    } catch (Exception se) {
    System.err.println("atUser login() Exception: Cannot create LoginContext: " + se.getMessage());
    System.exit( -1 );
    try {
    // attempt authentication
    lc.login();
    } catch (LoginException le) {
    System.err.println( "atUser login() LoginException Authentication failed: " + le.getMessage() );
    System.exit( -1 );
    System.out.println( "atUser login() Authentication succeeded!" );
    Here is the content of: appclientlogin.conf
    /* Copyright 2004 Sun Microsystems, Inc. All rights reserved. */
    /* SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. */
    default {
         com.sun.enterprise.security.auth.login.ClientPasswordLoginModule required debug=false;
    certificate {
         com.sun.enterprise.security.auth.login.ClientCertificateLoginModule required debug=false;
    jdbcRealm {
         com.akantech.security.jdbcrealm.JDBCLoginModule required debug=false;
    Here is the content of sun-acc.xml.
    I have tried with/without the client-credential entry with the same result.
    <?xml version="1.0" encoding="UTF-8"?>
    <!--
    Copyright 2004 Sun Microsystems, Inc. All rights reserved.
    SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
    -->
    <!DOCTYPE client-container PUBLIC "-//Sun Microsystems Inc.//DTD Application Server 8.0 Application Client Container//EN" "http://www.sun.com/software/appserver/dtds/sun-application-client-container_1_0.dtd">
    <client-container>
    <target-server name="winxppro" address="winxppro" port="3700"/>
    <log-service file="C:/Sun/AppServer/lib/appclient/logs/client.log" level="WARNING"/>
    <auth-realm classname="com.akantech.security.jdbcrealm.JDBCRealm" name="jdbc">
    <property name="dbdrivername" value="com.ibm.db2.jcc.DB2Driver"/>
    <property name="auth-type" value="jdbccustomrealm"/>
    <property name="dburl" value="jdbc:db2://localhost:50000/authuser"/>
    <property name="jaas-context" value="jdbcRealm"/>
    </auth-realm>
    <client-credential user-name="admin" password="akantech" realm="jdbc"/>
    </client-container>
    What am I missing?
    I have read the following documentation but cant seem to figure out what I am missing.
    http://docs.sun.com/source/819-0079/dgdesc.html#wp130029
    http://docs.sun.com/source/819-0079/dgsecure.html
    http://docs.sun.com/source/819-0079/dgsecure.html#wp32713
    http://java.sun.com/security/jaas/doc/api.html
    http://java.sun.com/security/jaas/doc/module.html
    http://java.sun.com/j2se/1.4.2/docs/guide/security/jaas/tutorials/index.html
    I added a lot of log info in the JDBCLoginModule : authenticate() method.
    It seems to me like the authenticate() method is never called. Because nothing is
    logged from this method.
    Thanks a million
    Stephen

    I have not been able to figure this one out yet so put it on the
    back burner.
    I am still waiting for an answer.
    Did you find the answer?

  • Lcds/datamodeler inside oc4j container

    good day,
         I've been able to deploy an lcds data modeled application into an oc4j container from a tomcat environment that works against an oracle db.  After a lot of
    errors and googling I got it to work by adding this to my WEB-INF/web.xml:
    <resource-ref>
            <res-ref-name>jdbc/myDataSource      </res-ref-name>
                 <res-type>javax.sql.DataSource</res-type>
                 <res-auth>Container</res-auth>
    </resource-ref>
    so fiber could make the connection to java:/comp/ env/jdbc/ myDataSource configured in my fml file.
    Now from flashbuilder4 /data Model 1.0 I try to connect to the lcds/rds under oc4j and I get no datasources found message, what additional plumbing to I do to get this to work?

    You need to uncomment the RDS section in the web.xml file of your webapp.  It is commented out initially for security reasons - RDS should not be enabled in a production environment. Also you probably want to set useAppserverSecurity to false as below.
        <!-- Add RDS servlets -->
        <servlet>
            <servlet-name>RDSDispatchServlet</servlet-name>
            <display-name>RDSDispatchServlet</display-name>
            <servlet-class>flex.rds.server.servlet.FrontEndServlet</servlet-class>
            <init-param>
                <param-name>useAppserverSecurity</param-name>
                <param-value>false</param-value>
            </init-param>
            <load-on-startup>10</load-on-startup>
        </servlet>
        <servlet-mapping id="RDS_DISPATCH_MAPPING">
            <servlet-name>RDSDispatchServlet</servlet-name>
            <url-pattern>/CFIDE/main/ide.cfm</url-pattern>
        </servlet-mapping>
        <!--  End Add RDS servlets -->

Maybe you are looking for

  • Web Video queries

    Hi Guys, It's been a while since I posted, so I just wanted to let you know that we have been making progress and slowly working through the issues we have had. I have to say that we could not have got this far without the invaluable information on t

  • How can I get my game back from another phone?

    I played high school story on my old phone. (iPhone 5c) well the screen cracked so I went to try to get another screen but instead they gave me a whole other new phone.(anther iPhone 5c)   I got high school story on the App Store and logged in throug

  • ITunes for 64bit Windows 7 Driver/CD/DVD/Drive Issues-

    Hi There I am sure that there are many many users out there suffering the same frustration as me in regard to ITunes just not working properly with Windoews 7 (64Bit). I have been trying to solve the mystery of "ITunes for Windows Registry Settings W

  • Looping thru column names based on a variable value

    I have an ArrayCollection with a series of columns named price1, price2... thru to price10 I'm trying to loop thru these columns based on a variable value, but can't figure the syntax: for (var column:int = 1; column < 11; column++){ testPrice = myGr

  • Material document "Output type".

    Hi, after setting the system with the following parameters (trx MN21): Output type: WE01, Trans/Event type: WE Print version: 1,2,3 Print item: 6 Output type: WE02, Trans/Event type: WE Print version: 1,2,3 Print item: 6 Output type: WE03, Trans/Even