Migrating JAAS LoginModule from oc4j to WLS

Hi,
We are trying to migrate oc4j enterprise web service application to weblogic which implements JAAS LoginModule.
Followed Weblogic Docs for :
Developing Custom Security Providers
http://download.oracle.com/docs/cd/E12890_01/ales/docs32/dvspisec/progrmng.html
CustomAuthProvider (SecurityProvider) class points to the LoginModule which references to
application-specific classes.
Following are the issues we are dealing with:
1.Security Provider exist at the global-context means every request to WLS is going to hit to the provider
which we do not want, we need LoginModule to work at the application-context and not the global
weblogic context.
2. Clearly there is a disconnect if LoginModule resides in EAR (web app) and standalon MBean jar is
trying to invoke the LoginModule. It can't find the LoginModule.
so, the question is how can we have the JAAS LoginModule implemented in Weblogic
at the application (EAR) level and not at Weblogic server global level
(by MBean JAR) as it used to be in oc4j
public class CustomAuthProviderimplements AuthenticationProviderV2 {
    public AppConfigurationEntry getLoginModuleConfiguration() {
        System.out.println("Inside getLoginModuleConfiguration.");
        return new AppConfigurationEntry("com.test.security.loginmodule.CustomLoginModule",
                                         LoginModuleControlFlag.REQUIRED,
                                         new HashMap());
}OC4J Doc Reference : Packaging Login Modules
http://download.oracle.com/docs/cd/B31017_01/web.1013/b28957/loginmod.htm#BABCFADI
Here's how it used to be done in oc4j
http://download.oracle.com/docs/cd/B14099_19/web.1012/b14013/loginmod.htm#i1006128
Thank you
Edited by: 877976 on Aug 8, 2011 11:11 AM

There is a WebLogic Server release specific for running Oracle Forms and Reports that is available for you to switch to from Oracle AS if you are current on your support and version. Just an FYI
Edited by: ChrisBaker on Jan 4, 2010 5:33 AM

Similar Messages

  • Porting EJB 3 MDB from OC4J to WLS

    Posting this again since my last post didn't seem to take.
    I get the following three deployment error messages when attempting to deploy an application to WebLogic Server 10.3 technical preview. The problem is centered around my deployment of an EJB 3 message driven bean.
    1. An error occurred during activation of changes, please see the log for details.
    2. Exception preparing module: EJBModule(EngineEjb.jar) Unable to deploy EJB: Requestor from EngineEjb.jar: [EJB:011026]The EJB container failed while creating the java:/comp/env namespace for this EJB deployment. weblogic.deployment.EnvironmentException: [EJB:010176]The resource-env-ref 'jms/demoQueue' declared in the ejb-jar.xml descriptor or annotation has no JNDI name mapped to it. The resource-ref must be mapped to a JNDI name using the resource-description element of the weblogic-ejb-jar.xml descriptor or corresponding annotation. at weblogic.ejb.container.deployer.EnvironmentBuilder.addResourceEnvReferences(EnvironmentBuilder.java:641) at weblogic.ejb.container.deployer.EJBDeployer.setupEnvironmentContext(EJBDeployer.java:246) at weblogic.ejb.container.deployer.EJBDeployer.setupEnvironmentFor(EJBDeployer.java:1013) at weblogic.ejb.container.deployer.EJBDeployer.setupBeanInfos(EJBDeployer.java:907) at weblogic.ejb.container.deployer.EJBDeployer.prepare(EJBDeployer.java:1211) at weblogic.ejb.container.deployer.EJBModule.prepare(EJBModule.java:387) at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:93) at weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(DeploymentCallbackFlow.java:381) at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26) at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:56) at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:46) at weblogic.application.internal.BaseDeployment$1.next(BaseDeployment.java:615) at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26) at weblogic.application.internal.BaseDeployment.prepare(BaseDeployment.java:191) at weblogic.application.internal.EarDeployment.prepare(EarDeployment.java:16) at weblogic.application.internal.DeploymentStateChecker.prepare(DeploymentStateChecker.java:147) at weblogic.deploy.internal.targetserver.AppContainerInvoker.prepare(AppContainerInvoker.java:61) at weblogic.deploy.internal.targetserver.operations.ActivateOperation.createAndPrepareContainer(ActivateOperation.java:197) at weblogic.deploy.internal.targetserver.operations.ActivateOperation.doPrepare(ActivateOperation.java:89) at weblogic.deploy.internal.targetserver.operations.AbstractOperation.prepare(AbstractOperation.java:217) at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentPrepare(DeploymentManager.java:723) at weblogic.deploy.internal.targetserver.DeploymentManager.prepareDeploymentList(DeploymentManager.java:1190) at weblogic.deploy.internal.targetserver.DeploymentManager.handlePrepare(DeploymentManager.java:248) at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.prepare(DeploymentServiceDispatcher.java:159) at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doPrepareCallback(DeploymentReceiverCallbackDeliverer.java:157) at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$000(DeploymentReceiverCallbackDeliverer.java:12) at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$1.run(DeploymentReceiverCallbackDeliverer.java:45) at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:517) at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201) at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    3. Substituted for missing class [EJB - 11026]The EJB container failed while creating the java:/comp/env namespace for this EJB deployment. weblogic.deployment.EnvironmentException: [EJB:010176]The resource-env-ref 'jms/demoQueue' declared in the ejb-jar.xml descriptor or annotation has no JNDI name mapped to it. The resource-ref must be mapped to a JNDI name using the resource-description element of the weblogic-ejb-jar.xml descriptor or corresponding annotation.
    My MDB uses an annotation like the following:
    @MessageDriven(mappedName = "jms/demoQueue", name = "MyMDB",
    activationConfig =
    @ActivationConfigProperty(propertyName = "destinationType",
    propertyValue = "javax.jms.Queue")
    @ActivationConfigProperty(propertyName = "messageSelector", propertyValue =
    "RECIPIENT = 'MyRecipient'")
    Earlier, I did create a JMS Module named demoQueue with the following resources:
    Name Type JNDI Name
    testQueue Queue jms/demoQueue
    ConnectionFactory-0 Connection Factory jms/QueueConnectionFactory
    Any suggestions to fix the WLS deployment error?
    For continuing compatibility with my OC4J deployment, I would like to continue using a connection factory with the following JNDI name "jms/QueueConnectionFactory" shown above.
    So I plan to add the following properties to the @MessageDriven annotation above. These are needed to continue working with our OC4J deployment. However, my primary concern is to get this MDB working with WLS. Does this strategy seem reasonable for allowing deployment to both OC4J and WLS?
    @ActivationConfigProperty(propertyName = "connectionFactoryJndiName",
    propertyValue =
    "jms/QueueConnectionFactory") ,
    @ActivationConfigProperty(propertyName = "destinationName", propertyValue =
    "jms/demoQueue")
    Thanks,
    Travis

    Travis, you pose a very good question. If I understand your goal, you would like to use code that compiles and works in OC4J and WLS. For example, you want to use javax.ejb.MessageDriven instead of weblogic.ejbgen.MessageDriven.
    Using something like mappedName as it is referred to here allows you specify the JNDI name in WLS if it is not defined elsewhere, but it appears to be specific to the WLS implementation.
    I've seen several other questions posed about finding all of the available ActivationConfigProperty name / value pairs and I have been unable to find it myself.
    I tried several permutations of annotations, and I can't figure out why something like this would even work, but it does. The mapped name is my JNDI name, but I never specify that it is a javax.jms.Queue or which connection factory to use. How does WLS figure that out?
    @MessageDriven(     
         mappedName = "exampleQueue", name = "HelloWorldMDB"
    public class HelloWorldMDB implements MessageListener {
         @Override
         @TransactionAttribute(value = javax.ejb.TransactionAttributeType.REQUIRED)
         public void onMessage(Message message) {
              System.out.println( "received message " + message );
    }This is a good question for support as the documentation seems to be incomplete here.

  • Trasaction problem when migrate ejb application from oc4j 10.1.2 to 10.1.3

    When i migrate my ejb application from oc4j 10.1.2 to 10.1.3
    in application log i found following many exceptions:
    where is problem? on AS 10.1.2 all works fine.
    javax.transaction.SystemException: Transaction state is COMMITTED and therefore can not be suspended, transaction
    at com.evermindhttp://Oracle Containers for J2EE 10g (10.1.3.4.0) .server.ApplicationServerTransaction.suspend(ApplicationServerTransaction.java:356)
    at com.evermindhttp://Oracle Containers for J2EE 10g (10.1.3.4.0) .server.ApplicationServerTransactionManager.suspend(ApplicationServerTransactionManager.java:541)
    at com.evermindhttp://Oracle Containers for J2EE 10g (10.1.3.4.0) .server.ejb.EJBTransactionManager.suspend(EJBTransactionManager.java:186)
    at com.evermindhttp://Oracle Containers for J2EE 10g (10.1.3.4.0) .server.ejb.EJBTransactionManager.suspendLocal(EJBTransactionManager.java:163)
    at com.evermindhttp://Oracle Containers for J2EE 10g (10.1.3.4.0) .server.ejb.BeanPool.suspend(BeanPool.java:588)
    at com.evermindhttp://Oracle Containers for J2EE 10g (10.1.3.4.0) .server.ejb.BeanPool.destroyContext(BeanPool.java:460)
    at com.evermindhttp://Oracle Containers for J2EE 10g (10.1.3.4.0) .server.ejb.BeanPool.releaseContext(BeanPool.java:306)
    at com.evermindhttp://Oracle Containers for J2EE 10g (10.1.3.4.0) .server.ejb.BMPOrionEntityBeanPool.releaseContext(BMPOrionEntityBeanPool.java:72)
    at com.evermindhttp://Oracle Containers for J2EE 10g (10.1.3.4.0) .server.ejb.EntityEJBHome.releaseContextInstance(EntityEJBHome.java:114)
    at com.evermindhttp://Oracle Containers for J2EE 10g (10.1.3.4.0) .server.ejb.EntityEJBHome.passivateAndRelease(EntityEJBHome.java:182)
    at com.evermindhttp://Oracle Containers for J2EE 10g (10.1.3.4.0) .server.ejb.EntityEJBObject.releaseContext(EntityEJBObject.java:402)
    at com.evermindhttp://Oracle Containers for J2EE 10g (10.1.3.4.0) .server.ejb.EntityEJBObject.removeFromCacheNew(EntityEJBObject.java:336)
    at com.evermindhttp://Oracle Containers for J2EE 10g (10.1.3.4.0) .server.ejb.EntityEJBObject.endTransaction(EntityEJBObject.java:178)
    at com.evermindhttp://Oracle Containers for J2EE 10g (10.1.3.4.0) .server.ApplicationServerTransactionSynchronization.endTransaction(ApplicationServerTransactionSynchronization.java:198)
    at com.evermindhttp://Oracle Containers for J2EE 10g (10.1.3.4.0) .server.ApplicationServerTransactionSynchronization.freeEjbResources(ApplicationServerTransactionSynchronization.java:179)
    at com.evermindhttp://Oracle Containers for J2EE 10g (10.1.3.4.0) .server.ApplicationServerTransactionSynchronization.afterCompletion(ApplicationServerTransactionSynchronization.java:677)
    at com.evermindhttp://Oracle Containers for J2EE 10g (10.1.3.4.0) .server.ApplicationServerTransaction.callSynchronizationAfterCompletion(ApplicationServerTransaction.java:1215)
    at com.evermindhttp://Oracle Containers for J2EE 10g (10.1.3.4.0) .server.ApplicationServerTransactionManager.freeResources(ApplicationServerTransactionManager.java:394)
    at com.evermindhttp://Oracle Containers for J2EE 10g (10.1.3.4.0) .server.ApplicationServerTransaction.doCommit(ApplicationServerTransaction.java:282)
    at com.evermindhttp://Oracle Containers for J2EE 10g (10.1.3.4.0) .server.ApplicationServerTransaction.commit(ApplicationServerTransaction.java:162)
    at com.evermindhttp://Oracle Containers for J2EE 10g (10.1.3.4.0) .server.ApplicationServerTransactionManager.commit(ApplicationServerTransactionManager.java:472)
    at com.evermindhttp://Oracle Containers for J2EE 10g (10.1.3.4.0) .server.ejb.EJBTransactionManager.end(EJBTransactionManager.java:143)
    at com.evermindhttp://Oracle Containers for J2EE 10g (10.1.3.4.0) .server.ejb.interceptor.system.TxRequiredInterceptor.invoke(TxRequiredInterceptor.java:57)
    at com.evermindhttp://Oracle Containers for J2EE 10g (10.1.3.4.0) .server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
    at com.evermindhttp://Oracle Containers for J2EE 10g (10.1.3.4.0) .server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
    at com.evermindhttp://Oracle Containers for J2EE 10g (10.1.3.4.0) .server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
    at com.evermindhttp://Oracle Containers for J2EE 10g (10.1.3.4.0) .server.ejb.InvocationContextPool.invoke(InvocationContextPool.java:55)
    any idea?
    Thanks. J.

    java.lang.NoSuchMethodError: java.lang.String oracle.adf.model.BindingContext.findBindingContainerIdByPath(java.lang.String) at oracle.adf.controller.v2.struts.actions.DataAction.mappingCreate
    Refer Steve's blog
    http://radio-weblogs.com/0118231/stories/2006/02/28/notesOnMigratingAdfstruts1012ApplicationsTo1013.html

  • Migrate ADF application from OC4J to weblogic

    Hi Experts,
    we are trying to migrate ADF toystore demo(Version 10.1.2.46 (Built on 9-May-2005) from an IAS10.1.3 OC4J server to a fmw11g weblogic server,
    We used the existing .ear from the old IAS server, and tried to deploy it though EM. Firstly we got below message:
    [Wed Oct 21 22:21:44 PDT 2009] [Deployer:149191]Operation 'deploy' on application 'ADFToyStore' is initializing on 'fusion_demo'
    [Wed Oct 21 22:21:44 PDT 2009] [Deployer:149192]Operation 'deploy' on application 'ADFToyStore' is in progress on 'fusion_demo'
    [Wed Oct 21 22:21:44 PDT 2009] [Deployer:149193]Operation 'deploy' on application 'ADFToyStore' has failed on 'fusion_demo'
    [Wed Oct 21 22:21:44 PDT 2009] java.lang.ClassNotFoundException: oracle.adf.model.servlet.ADFBindingFilter
    [Wed Oct 21 22:21:44 PDT 2009] oracle.adf.model.servlet.ADFBindingFilter
    [Wed Oct 21 22:21:45 PDT 2009] Deploy operation failed.
    After installing adfmweb.jar as a library in target server, we tried again, but the error was just the same.
    Can anyone give us a clue?
    Thanks a lot,
    Todd

    That won't work. ADF 10g doesn't run on WLS. You need to upgrade to ADF 11g through JDeveloper.
    See the Upgrade Guide: http://download.oracle.com/docs/cd/E12839_01/upgrade.1111/e10127/toc.htm
    --olaf                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Migration of webservices from OC4J 10.1.4.2 to Weblogic 10.3.5 fails

    Hello All,
    We have a webservices war file that needs to be migrated from existing Oc4J to weblogic version 10.3.5. While trying to deploy the war file on the server, some functions do not work due to an exception caused by
    Unable to create Service Factory : weblogic.webservice.core.rpc.ServiceFactoryImpl cannot be cast to javax.xml.rpc.ServiceFactory.
    The error messages reveived from server logs are: Unable to create Service Factory : weblogic.webservice.core.rpc.ServiceFactoryImpl cannot be cast to javax.xml.rpc.ServiceFactory and from the debugger of eclipse is
    javax.xml.rpc.ServiceException: Provider com.sun.xml.rpc.client.ServiceFactoryImpl not found
    at javax.xml.rpc.FactoryFinder.newInstance(FactoryFinder.java:44)
    at javax.xml.rpc.FactoryFinder.find(FactoryFinder.java:137)
    at javax.xml.rpc.ServiceFactory.newInstance(ServiceFactory.java:58)
    Need help resolving this error. Any help is highly appreciated.
    Edited by: 882457 on Mar 9, 2012 11:21 AM
    Edited by: 882457 on Mar 9, 2012 11:22 AM

    Hi Frank,
    the problem is this.
    I have a .js file which have the following two methods
    function deactivateProgressIndicators()
    if (self._pollManager)
    if (document.getElementById('fileUploadStatus').value=='noUpload')
    _pollManager.deactivateAll();
    function reactivateProgressIndicators()
    if (self._pollManager)
    document.getElementById('panelBox').style.display='';
    document.getElementById('fileUploadStatus').value='uploading';
    _pollManager.reactivateAll();
    I call these methods with in a .jsp file.
    But the things that are inside the if conditions doesn't work.
    I think the problem is clear now. Is there a way to run these methods or is there another way to
    do this ?
    Thank you for replying!
    Melaka

  • How to migrate SSL Certificate from iPlanet 6.0 to WLS 8.1

    We'd like to migrate our application from iPlanet 6.0 to WLS 8.1, however, we don't have any idea to migrate the cert from iPlanet to WLS, please advise. Thanks!

    Apple does not support intermediate iOS updates...you can only update to the latest iOS version that will run on your iOS device.  Therefore, you have to update to iOS 8.1, not 7.1.2.  The files appropriate to your device are only available in 8.1.

  • Migration from oc4j 9.0.3 to oc4j 9.0.4 Issues

    Has anyone migrated the code from oc4j 9.0.3 to oc4j 9.0.4? Could anyone tell the migration issues please? That is, what are the parts of the code or the deployment-descriptors that need to be changed/updated?

    Did anyone migrate to OC4J 9.0.4 and experience snail pace execution? I installed the pre-release 9.0.4 and deploy my applications without any problem. When I run my applications, it has very slow response. The CPU is intermittenly processing for a long time. I didn't change any code and it was my original "ear" files from 9.0.3. Is there anything I miss?
    Regards,
    Kenny Lau

  • Problem with servlet after migrating from OC4J to WebLogic 10.3

    I come across a problem when I was migrating from jDev 11g TP4 to production version in that step also server got changed from OC4J to webLogic.
    I am running java http servlet along other jspx pages. When everything was on OC4J there was no problem whit security on this servlet ( servlet was under same authorization automatically, and I was able to create new application module on this servlet by createRootApplicationModule
    ) but when I changed to WebLogic 10.3 I come across a numerous problems. First one is solved i managed to put the servlet under same authorization as jspx pages by
    *<servlet>*
    *<servlet-name>report</servlet-name>*
    *<servlet-class>path.to.class</servlet-class>*
    *<security-role-ref>*
    *<role-name>name</role-name>*
    *<role-link>valid-users</role-link>*
    *</security-role-ref>*
    *</servlet>*
    but when I trying to create new application module I get JBO-30003 error which is Caused by:
    oracle.adf.share.security.ADFSecurityAuthenticationException: JAAS login error.
    Invalid null input: name
    Has anybody any idea what I am doing wrong?
    Thank you for your help, Rok Kogovšek

    for example:
    web.xml
    <security-role>
    <role-name>yourrole</role-name>
    </security-role>
    weblogic.xml
    <security-role-assignment>
    <role-name>yourrole</role-name>
    <principal-name>wlsuser</principal-name > <!-- wlsuser is define at wls console-->
    </security-role-assignment>

  • Using a JAAS compliant LoginModule in OC4j

    Hi.
    I'm trying to set up an application to use a custom LoginModule in OC4J. The OC4J security FAQ states that this can be done by adding <!--Login Module Data-->... to the jazn-data.xml file as it is done with the oracle.security.jazn.tools.Admintool. The only users I seem to be able to authenticate with is the ones defined in the <jazn-realm> section of jazn-data.xml. If I try to remove this or parts of this section, the application fails to start.
    If I deliberately misspells the classname of the login module, no error message is displayed.
    Do I have to enable the use of custom login modules in any way other then adding them to the jazn-data.xml file? I not, can anyone tell me why I cant get it to work, and what I can do to get it to work?
    I am using a SampleLoginModule from sun.
    The classfiles for the login module is placed in a jar file in <j2ee-home>\lib directory
    The OC4J is version 9.0.3.0.0
    (standalone)
    The login module data in jazn-data.xml:
    <jazn-loginconfig>
    <application>
    <name>jazntest</name>
    <login-modules>
    <login-module>
    <class>sample.module.SampleLoginModule</class>
    <control-flag>required</control-flag>
    <options>
    <option>
    <name>debug</name>
    <value>true</value>
    </option>
    </options>
    </login-module>
    </login-modules>
    <application>
    I am wondering about the name tag in application. What name is this?
    The name of the app IS jazntest.
    Both in server.xml:
    <application name="jazntest" path="../applications/jazntest.ear" auto-start="true" />
    and in http-web-site.xml:
    <web-app application="jazn-test" name="jazntest" root="/jazntest" />
    Any help appreciated.
    Ole

    Ole, Anders,
    A custom LoginModule can indeed be setup with JAZN if it's JAAS-compliant. In order to setup this up, you'll need to do the following:
    1. Define the custom LoginModule in the global jazn-data.xml file (i.e. in the j2ee/home/config directory). The name-value tags are for optional parameters. Most LoginModules have a debug mode but this is optional (see the LoginModule specific documentation).
    2. Put all the LoginModule files in the lib/ext directory of whichever JRE you are using (e.g. $oracle_home/jdk/jre/lib/ext). You may also need to place a copy of the "jaas.jar" file in that same directory.
    3. For the actual application, you want to make sure that you do not use the container's security and authentication constraints defined in the application's web.xml file. Note: unlike the default JAZN RealmLoginModule, custom LoginModules are not integrated with these container security constraints. This means that with the custom LoginModule, you need to programmatically create a LoginContext and explicitly do a "login()" (as described in most JAAS tutorials). You may also need to restart the OC4J instance for some of these changes to take affect.
    Regards,
    -Lee

  • Deploying ear application - migrating from OC4j to Weblogic

    I am trying to migrate application from OC4J to weblogic server. Apart from usual differences in descriptors, structure of EAR etc. I came across unusual error:
    "both the remote home and remote component interface must be specified. Currently, only one of them is specified"
    It is about deploying session bean. Usual EJB3 stateless session bean with local and remote interface, deployed without any problem on OC4J and JBoss. Of course, I know home interfaces are something to do with EJB 2.1, but this is EJB3 application and, I guess, Weblogic has full support for it. Does it? :)
    Anyway, is there workaround? Or am I missing something? I don't have to tell you what problems we will be facing if I have to restructure whole application with dozens and hundreds of session beans.
    Thanks a lot!

    OK. I just want to make sure that there are no problems with the deployment descriptors.
    To pin point the problem do the following in JDeveloper:
    1. Create a simple EJB 3.0 session bean
    2. On that session bean create a Sample Java Client.
    3. Run the Session Bean
    4. Run the Client
    5. If both are running fine, compare the deployment descriptors from the sample and your real application.
    --olaf                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Migrating security settings from embedded oc4j to preconfigured oc4j

    Hi,
    I was able to configure security in my 11g TP3 ADF application, and run it successfully against embedded oc4j.
    Now, when I want to migrate this to preconfigured oc4j, I am getting ERROR:null.
    Please see the steps I follow:
    set CLASSPATH=C:/JDeveloper/j2ee/home/jazn.jar;C:/JDeveloper/BC4J/lib/adf-share-base.jar;C:/JDeveloper/j2ee/home/lib/security-api.jar;
    After that, I run the migration tool:
    java oracle.security.jazn.tools.JAZNMigrationTool -sr jazn.com -dr jazn.com -st xml -dt
    xml -sf "C:\Documents and Settings\nneelaka\Application Data\JDeveloper\system11.1.1.0.22.47.96\o.j2ee\embedded-oc4j\config
    \system-jazn-data.xml" -df "C:\Documents and Settings\nneelaka\Application Data\JDeveloper\oracle.adfp.seededoc4j.11.1.1.0.
    0.071218.1800\j2ee\home\config\system-jazn-data.xml" -m policy
    This is because, as I mentioned in the earlier mail, the webcenter preconfigured oc4j's configurations are read from the directory :
    C:\Documents and Settings\nneelaka\Application Data\JDeveloper\oracle.adfp.seededoc4j.11.1.1.0.
    0.071218.1800\j2ee\home\config\system-jazn-data.xml
    and, the embedded oc4j's configuration is read from the directory :
    C:\Documents and Settings\nneelaka\Application Data\JDeveloper\system11.1.1.0.22.47.96\o.j2ee\embedded-oc4j\config
    \system-jazn-data.xml
    However, when I run the migration tool, I get a message ERROR:null. Also, I dont have adfshare.jar, and instead, I have put adf-share-base.jar. Is there something I could be missing here ? Please advise.
    Best Regards,
    nattu

    Hi,
    Try enabling java logging to see what the exact error is. That might give you an idea of what the error could be..
    When I tried, I got the below error though I added jps-common.jar, which contains CredStoreResources, into the classpath
    java.util.MissingResourceException: Can't find oracle.security.jps.internal.common.resources.credstore.CredStoreResources bundle
         at java.util.logging.Logger.setupResourceInfo(Logger.java:1293)
         at java.util.logging.Logger.<init>(Logger.java:203)
         at java.util.logging.Logger.getLogger(Logger.java:274)
         at oracle.security.jps.util.JpsLogger.getLogger(JpsLogger.java:108)
         at oracle.security.jps.service.credstore.CredentialAccessPermission.<clinit>(CredentialAccessPermission.java:60)
    ~ Bijesh
    P.S:check the destination file path. Are you sure that's correct. I believe It should be something like ""C:\Documents and Settings\nneelaka\Application Data\JDeveloper\system11.1.1.0.22.47.96\o.adfp.seededoc4j.11.1.1.0.
    0.071218.1800\j2ee\home\config\system-jazn-data.xml"

  • About migrating security settings from embedded oc4j to preconfigured oc4j

    Hi,
    I was able to configure security in my 11g TP3 ADF application, and run it successfully against embedded oc4j.
    Now, when I want to migrate this to preconfigured oc4j, I am getting ERROR:null.
    Please see the steps I follow:
    set CLASSPATH=C:/JDeveloper/j2ee/home/jazn.jar;C:/JDeveloper/BC4J/lib/adf-share-base.jar;C:/JDeveloper/j2ee/home/lib/security-api.jar;
    After that, I run the migration tool:
    java oracle.security.jazn.tools.JAZNMigrationTool -sr jazn.com -dr jazn.com -st xml -dt
    xml -sf "C:\Documents and Settings\nneelaka\Application Data\JDeveloper\system11.1.1.0.22.47.96\o.j2ee\embedded-oc4j\config
    \system-jazn-data.xml" -df "C:\Documents and Settings\nneelaka\Application Data\JDeveloper\oracle.adfp.seededoc4j.11.1.1.0.
    0.071218.1800\j2ee\home\config\system-jazn-data.xml" -m policy
    This is because, as I mentioned in the earlier mail, the webcenter preconfigured oc4j's configurations are read from the directory :
    C:\Documents and Settings\nneelaka\Application Data\JDeveloper\oracle.adfp.seededoc4j.11.1.1.0.
    0.071218.1800\j2ee\home\config\system-jazn-data.xml
    and, the embedded oc4j's configuration is read from the directory :
    C:\Documents and Settings\nneelaka\Application Data\JDeveloper\system11.1.1.0.22.47.96\o.j2ee\embedded-oc4j\config
    \system-jazn-data.xml
    However, when I run the migration tool, I get a message ERROR:null. Also, I dont have adfshare.jar, and instead, I have put adf-share-base.jar. Is there something I could be missing here ? Please advise.
    Best Regards,
    nattu

    Please post JDeveloper/ADF questions to the JDeveloper/ADF forum here on OTN.
    -steve-

  • Migrate the EJBs from JVM to OC4J...?

    We are plan to migrate the EJBs modules from Oracle8i JServer to OC4J.
    From now we have developed the EJBs by using JDeveloper as the following
    conditions;
    - JVM: Oracle8i JServer (8.1.6.3.0)
    - EJBs: Session Beans only
    - IDE tool: JDeveloper 3.2
    And now we wanna migrate or re-deploy to the OC4J. Is there any good
    suggestions or idea to do it? Also I wanna know sth to considerate...
    Thanks in advance for any advice
    Phyllis
    null

    It would be good for you to migrate to OC4J as performance in OC4J is a lot better. Here is a little migration writeup I had done sometime back. It is work in progress. Hope this helps.
    Migrating EJB components from Database EJB container to OC4J
    Author: Ashok Banerjee [[email protected]]
    Oracle recommends the new J2EE containers in Oracle9iAS (OC4J) for deploying J2EE components. The goal of this paper is to recommend ways to migrate existing EJB applications, from database EJB container, to OC4J.
    The database EJB container runs on the aurora session based Java Virtual Machine, whereas the new container runs on standard JDK (version 1.2.2 onward) .
    The database EJB container runs in a database session. The database is itself the middle tier, in such a configuration. Users therefore have a logically three tiered architecture, that runs physically on two tiers. The database serves as both the middle tier and the backend. In such situations users would use the "kprb" driver (used for requests made from within the database). No further authentication is needed if the backend database is the same as the middle tier. Users can also use one database as the middle tier and another database as the backend.
    In OC4J the middle tier does not require a database installation on the middle tier. This helps make the middle tier lightweight. OC4J is also seen to significantly faster than the EJB container inside the database. Since OC4J runs on regular JDK the user can run OC4J on the Java Virtual Machine which is best for his/her specific needs. OC4J however has a limitation in that does not support pure CORBA clients. Currently OC4J does not support RMI over IIOP either.
    To migrate existing EJB applications from inside the database to OC4J the set of changes is minimal.
    Code changes
    1. Change all references in the code and any configuration files using JDBC URLs from kprb driver to either thin or oci. "kprb" driver is only for applications running inside the database. The new OC4J runs outside the database and therefore it must use thin or oci driver.
    2. The database EJB container clientside JNDI lookups were like:
    env.put (Context.URL_PKG_PREFIXES, "oracle.aurora.jndi");
    env.put (Context.SECURITY_PRINCIPAL, user);
    env.put (Context.SECURITY_CREDENTIALS, password);
    env.put (Context.SECURITY_AUTHENTICATION, ServiceCtx.NON_SSL_LOGIN);
    Context ic = new InitialContext (env);
    while in OC4J container the lookup code should read:
    env.setProperty("java.naming.factory.initial","com.evermind.server.ApplicationClientInitialContextFactory");
    env.setProperty("java.naming.provider.url","ormi://localhost");
    env.setProperty("java.naming.security.principal","username");
    env.setProperty("java.naming.security.credentials","password");
    Context ic = new InitialContext (env);
    3) Remove all references to oracle.aurora.* classes - they will not work with OC4J. These classes are specific to the container in the database.
    4) Check for client demarcation of Bean Managed Transactions and remember that transaction in OC4J cannot be propagated across tiers. In other words client demarcated transaction will work provided the client is another EJB or a servlet in the same OC4J instance. This is also listed in the "Current Limitations" section.
    Build changes
    1. For EJB in the database we use loadjava to load classes into the database - this step is not necessary any longer for middle tier EJBs. The user merely needs to ensure that the classes are in the classpath.
    2. Similarly the concept of resolver specification in the database EJB container ceases to be useful in OC4J. To make classes "findable" the user sets the classpath. In OC4J any jars in the $OC4J_HOME/lib directory are on the server side classpath of the application classloader. The user can also include classes in their own ear files before they deploy the ear. [If you do not know about the resolver specification, then you have not used it and do not need to know about it].
    3. The database J2EE container did not have support for .ear files. The OC4J container supports J2EE standard .ear files. Both makefiles and ANT files are available in the code samples on OTN which show how to build ear files and also provides samples for the structure of the EAR files.
    EAR File contains META-INF/application.xml
    META-INF/orion-application.xml [optional]
    applicationEjb.jar
    applicationweb.war
    applicationEjb.jar contains
    META-INF/ejb-jar.xml
    META-INF/orion-ejb-jar.xml
    EJB classes
    applicationWeb.war contains
    WEB-INF/web.xml
    WEB-INF/orion-web.xml
    WEB-INF/lib/jar files needed
    WEB-INF/classes class files needed for JSP servlets
    For further information on how to write the xml files etc. please refer to their respective DTDs.
    Both web.xml and ejb-jar.xml should be unaffected by the migration.
    4. The deployejb tool used to deploy EJB to the database has been deprecated. In OC4J EJBs are deployed as shown below:
    % java -jar admin.jar ormi://localhost:<rmi-port> userName password -deploy -file ejbdemo.ear -deploymentName jndiName
    5. The ApplicationClientContainer does not need aurora_client.jar in the classpath instead it needs oc4j.jar in the classpath.
    Configuration Changes:
    1. In the database EJB container the configurations exist in database tables but in OC4J the configuration exists in industry standard XML files. By default these files are located at $OC4J_HOME/config directory. Users can start their OC4J instance with a different configuration using the -config switch to specify a different server.xml file.
    %java -jar oc4j.jar -config config1/server1.xml
    2. In the database EJB container scalability was achieved using the MTS architecture and session based Java Virtual Machine. In OC4J scalability is achieved by clustering and using the loadbalancer. For more details on loadbalancer please read <link to loadbalancer.doc>
    3. The bindds tool used to bind data-sources to the JNDI namespace of the database EJB container is deprecated. In OC4J datasources are bound to the the namespace using the data-sources.xml in $OC4J_HOME/config. Non oracle data-sources can also be bound to the namespace. A typical entry in data-sources.xml could look like:
    <data-source
    class="com.evermind.sql.DriverManagerDataSource"
    name="OracleDS"
    location="jdbc/OracleCoreDS"
    xa-location="jdbc/xa/OracleXADS"
    ejb-location="jdbc/OracleDS"
    connection-driver="oracle.jdbc.driver.OracleDriver"
    username="scott"
    password="tiger"
    url="jdbc:oracle:thin:@dlsun1688:5521:jis2"
    inactivity-timeout="30"
    />
    4. Database EJB container used database authentication (database roles and database users) to authenticate users to the middle tier. OC4J uses principals.xml file to list groups and users and perform authentication. One can also implement UserManagers for OC4J to perform more complex authentication.
    5. The ports used by OC4J for RMI, JMS and HTTP are all specified in rmi.xml, jms.xml, web-site.xml.
    6. Both OC4J and the database container SSL (client authentication as well as server authentication).
    7. The database EJB container could only be remotely debugged using a jdb like interface by starting a debugagent on the server, and a debugproxy on the client. OC4J containers on the other hand run on JDK and can be debugged with any debugger. This is very useful for debugging EJB/Servlet application running in the server.
    8. The database EJB container comes with a database and hence has AQ (Advanced Queue) available for JMS. With OC4J there is a default in memory JMS implementation. OC4J server program can also connect to other JMS implementations(including AQ) using jms.xml. However a JNDI context may need to be implemented for AQ.
    Current Limitations
    1. The OC4J container at present does not support 2 phase commit.
    2. The OC4J container at present does not support transaction context propagation across tiers. Hence client demarcated transactions are not supported in OC4J except where the client demarcating the transaction is in the same container, for example an EJB having its transaction demarcated by another EJB or servlet, in the same container.
    3. In the classic container Oracle did not support RMI-IIOP tunneling through HTTP however in OC4J RMI over HTTP is supported.
    null

  • Like to migrate SRDemo from OC4J to Weblogic 10g but in vain

    Hi all experts,
    I'm newbie in WebLogic Server Admin.
    I 'm migrating SRDemo from oc4j to weblogic10.3. Firstly, deployment and login engagement are ok.
    After LOGIN, I click the "start" button at page SRWelcome.jspx, oh Errors burst out !
    Connection name SRDemo not defined -
    java.lang.NullPointerException at oracle.adf.model.binding.DCIteratorBinding.initSourceRSI(DCIteratorBinding.java:1735) -
    java.lang.NullPointerException at oracle.adf.model.binding.DCIteratorBinding.initSourceRSI(DCIteratorBinding.java:1735) -
    What can I do ?

    CillyBanZorLore wrote:
    Hi all experts,
    I'm newbie in WebLogic Server Admin.
    I 'm migrating SRDemo from oc4j to weblogic10.3. Firstly, deployment and login engagement are ok.
    After LOGIN, I click the "start" button at page SRWelcome.jspx, oh Errors burst out !
    Connection name SRDemo not defined -
    java.lang.NullPointerException at oracle.adf.model.binding.DCIteratorBinding.initSourceRSI(DCIteratorBinding.java:1735) -
    java.lang.NullPointerException at oracle.adf.model.binding.DCIteratorBinding.initSourceRSI(DCIteratorBinding.java:1735) -
    What can I do ?WAR SR Demo requires "SRDemo" connection . Have you provided it yet ?

  • Migrating JMS Persistence from WLS 4.5.2  to WLS 6.1

    Hi,
    we are migrating several applications from WLS 4.5.2 to WLS 6.1. A application use
    JMS with persistence in DB (JMS persistence WLS 4.5.2 is in DB) with WLS 6.1 we want
    to change persistence mode to FIles. Therefore during migration process we have to
    move the messages stored in the database to a file. The messages stored in the file
    will be recovered for WLS 6.1.
    My doubt is, Is there a automatic process for migrate messages in the DB to a persistence
    file?
    Thanks

    Hi.
    I'm not sure that there is an automatic process to accomplish this, but you might get a
    better answer by posting this on the JMS newsgroup.
    Regards,
    Michael
    Manuel Villalta wrote:
    Hi,
    we are migrating several applications from WLS 4.5.2 to WLS 6.1. A application use
    JMS with persistence in DB (JMS persistence WLS 4.5.2 is in DB) with WLS 6.1 we want
    to change persistence mode to FIles. Therefore during migration process we have to
    move the messages stored in the database to a file. The messages stored in the file
    will be recovered for WLS 6.1.
    My doubt is, Is there a automatic process for migrate messages in the DB to a persistence
    file?
    Thanks--
    Michael Young
    Developer Relations Engineer
    BEA Support

Maybe you are looking for

  • Safari 5.1.5 always crashing. Mac OS 10.6.8

    Hi, Bonjour, sorry for my english language. I have a big problem: Safari 5.1.5 allways crashed, i can't even launch it. I have repaired the disk. I have looked for updating but no updating. I use Mac OS 10.6.8. Safari is allways in the applications f

  • Data selection in infopackage

    hi, I have to create a info package whicah can load data from last saturday of april 07 to last friday of the may07. if i m sheduling the info pack on 1 june it must load data from 28th april to 25th may. please help i m not good in coding. any help

  • Linked List trouble

    //I need to add a header node into this Linked list class and // i dont understand it. can anyone give me a few pointers. // This is the orginal code. What im trying to figure out is below. public abstract class LinkedList implements ListInterface pr

  • Standby Database for GRID instance

    Hi All, I have a requirement from a client to provide a Standby database (Physical or Logical) for the GRID control instance. Baffled by this, I tried to explain that the GRID instance is very small and may not require a standby. The client is adaman

  • How to properly cite images and media used as to copyright

    All of the images and media used in my iBook were either created by me or gotten from an Open Educational Resource repository such as Wikimedia Commons and are CC licensed such that I am permitted to use them.  Wanting to avoid any delay in getting o