BUG: JDeveloper BC4J Tutorial is incorrect

I have searched everywhere, but cannot find a correct working solution for this problem.
Description:
In a fresh install of JDeveloper 9i RUP7, I have tried to run the tutorial found under:
Help Menu -> Help Topics -> Tutorial
In the BC4J Tutorial titled "Business Components Programmatic Client Tutorial",
I have run all the steps and the compiler gives me the error:
oracle.jbo.JboException: JBO-33001: Cannot find the configuration file /OnlineOrders/common/bc4j.xcfg in the classpath
There is no information regarding how to correctly configure the classpath or fix this problem.
I downloaded JDeveloper 9i RUP7 at the Oracle Support site Knowledgebase 416708.1 for Release 11i:
https://updates.oracle.com/ARULink/PatchDetails/process_form?patch_num=8751878
How can this this be resolved, so that I can successfully create a BC4J client in JDeveloper?
Thanks in advance for any help

Try asking on the OA Framework Forum

Similar Messages

  • JDeveloper BC4J Programmatic Client Tutorial Problem

    I have searched everywhere, but cannot find a correct working solution for this problem.
    Description:
    I am running the tutorials found under:
    Help Menu -> Help Topics -> Tutorial
    I can get several tutorials to work, but I am stuck on the tutorial titled:
    "Business Components Programmatic Client Tutorial".
    The BC4J Standalone Client tutorial is giving me this error after completing Step 3:
    oracle.jbo.JboException: JBO-33001: Cannot find the configuration file /OnlineOrders/common/bc4j.xcfg in the classpath
    There is no information regarding how to correctly configure the classpath or fix this problem.
    I am using JDeveloper 9i RUP7 at the Oracle Support site Knowledgebase 416708.1 for Release 11i:
    https://updates.oracle.com/ARULink/PatchDetails/process_form?patch_num=8751878
    My OS is Windows XP
    How can this this be resolved, so that I can successfully create a BC4J client in JDeveloper?
    Thanks in advance for any help
    Edited by: user8115477 on Apr 26, 2010 7:28 AM

    Thanks for clarifying that the package should have multiple names / hierarchy.
    I encountered the problem because the JDeveloper9i BC4J tutorial suggested one-level name.
    Eventually, I made changes similar to what you suggested, and now I can get the program tutorial to work.
    I was able to get the tutorial running by manually changing the package name as below:
    Tutorial Suggests:
    "OnlineOrders"
    What I did:
    Gotta have two-levels deep, so I entered "OnlineOrders.bc4j" instead.
    Then, I replaced all instances of "OnlineOrders" with "OnlineOrders.bc4j"
    This includes updating the code that must be copy-pasted into the Batch Client.
    Update all calls of "OnlineOrders.appName" to "OnlineOrders.bc4j.appName" etc... etc...
    I will mark this item as answered, since my OP question was answered.

  • BUG!: JDeveloper 11g Tutorial code is incomplete.

    I am attempting the complete the JDeveloper 11g Tutorial from the Fusion Developer's Guide for Oracle Application Development Framework
    After adding all the latest jars available from the ADF Installer to the StoreFrontModule I am left with 10 errors all of with seem to be the result of missing methods (especially findByAltKey) from both Oracle packages and the tutorials code itself. The errors and the .java files affected are listed below. Please let me know if you need more information or if you have a solution to these compilation errors.
    Project: C:\J2EE_Apps\FOD\StoreFrontModule\StoreFrontService\StoreFrontService.jpr
    C:\J2EE_Apps\FOD\StoreFrontModule\StoreFrontService\src\oracle\fodemo\storefront\account\queries\CustomerPaymentOptionVORowImpl.java
    Error(9,8): class oracle.jbo.server.ViewAccessorDef not found
    Error(468,22): does not override any method in its superclass
    Error(475,22): method createViewAccessorRS(java.lang.String) does not override any method in its superclass
    Error(476,27): method createViewAccessorRS(java.lang.String) not found in class oracle.jbo.server.ViewRowImpl
    C:\J2EE_Apps\FOD\StoreFrontModule\StoreFrontService\src\oracle\fodemo\storefront\store\queries\PersonsVOImpl.java
    Error(25,39): method findByAltKey(java.lang.String, oracle.jbo.Key, int, boolean) not found in class oracle.fodemo.storefront.store.queries.PersonsVOImpl
    C:\J2EE_Apps\FOD\StoreFrontModule\StoreFrontService\src\oracle\fodemo\storefront\store\service\StoreServiceAMImpl.java
    Error(422,28): method findByAltKey(java.lang.String, oracle.jbo.Key, int, boolean) not found in class oracle.fodemo.storefront.store.queries.OrderItemsVOImpl
    Error(471,48): method findByAltKey(java.lang.String, oracle.jbo.Key, int, boolean) not found in class oracle.jbo.server.ViewObjectImpl
    Error(526,44): method findByAltKey(java.lang.String, oracle.jbo.Key, int, boolean) not found in class oracle.fodemo.storefront.store.queries.PersonsVOImpl
    C:\J2EE_Apps\FOD\StoreFrontModule\StoreFrontService\src\oracle\fodemo\storefront\store\queries\ShoppingCartTransientVOImpl.java
    Error(52,33): method add(oracle.jbo.domain.Number) not found in class oracle.jbo.domain.Number
    C:\J2EE_Apps\FOD\StoreFrontModule\StoreFrontService\src\oracle\fodemo\storefront\store\queries\OrdersVOImpl.java
    Error(39,33): method findByAltKey(java.lang.String, oracle.jbo.Key, int, boolean) not found in class oracle.fodemo.storefront.store.queries.OrdersVOImpl
    Thanks,
    Shawn Pressley
    Edited by: user575216 on Dec 16, 2008 5:18 PM

    Go into project properties - technology scope and add ADF BC.

  • Bug in BC4J test query while creating view based on query

    In BC4J while creating a view from query if we test our query , BC4J modify the query with the following one :
    "SELECT * FROM ( " + ourQuery + " ) where 1=2;"
    so for the Query like "SELECT ename,ename from emp" which is a valid query it modifies it to
    "SELECT * FROM ( SELECT ename,ename from emp ) where 1=2;"
    which is an invalid Query and BC4J get a SQLException:column ambiguously defined and Test fails
    BC4J does this modification in query because it doesn't want to Fetch Data from Database and add the where clause
    to the query but in Cases like above this modification doesn't work properly.
    one way to solve the problem is by giving alias name to the columns of query.Is there any other way to do the same as my query is completely Valid and i don't want to change it at all ?

    Hi Jan,
    Actually I am getting my query at run time and based on that I am creating a view.This Query can be given by User of my application and at that time it'll be very painful for me to handle that.
    It's definately a Bug in BC4J as they should not modify the query in this way.Thanx for ur interest in my problem.

  • In need of an beginning/inter  level BC4J tutorial

    I have been looking for some beginning/intermediate level tutorial(s) and/or information for BC4J.
    The BC4J tutorials included with Jdeveloper have been a good starting point for understanding the basics. However, I have not found a simple tutorial/introduction that would incorporate the view object or entity object into a servlet running in a JSP. I have installed the ToyStore and VSM tutorials, however they are too advanced for my level of understanding. I have looked also looked at the articles on at otn.oracle.com/products/jdev/howtos/content.htm. But again, they do not provide a step-by-step overview for some one just getting started with BC4J.
    If you know of any references for beginning/intermediate level (step-by-step) tutorials (especially for using view and entity objects in a servlet running on a JSP), please let me know. Thanks in advance.
    Regards,
    -- Chuck

    The Oracle9i JDeveloper Handbook have some good chapters on BC4J.
    Get it at http://www.amazon.com/oracle
    Here is a preview of two of them:
    http://otn.oracle.com/oramag/books/oraclepress/ch3_jdevhbk.pdf
    http://otn.oracle.com/oramag/books/oraclepress/ch22_jdevhbk.pdf

  • A bug? BC4J ViewObject where clause change doesn't affect view contents

    Hi!
    I've found the following interesting behaviour (maybe a bug?) of BC4J ViewObject caching:
    1) make a viewobject with where clause and 1 parameter in it.
    2) set parameter binding to some value
    3) execute query
    4) then change viewobject's where clause, but leave parameter binding intact
    5) execute query again
    6) view object contents haven't changed!
    actually, changing where clause text should make view object requery data from the database instead of using cached rows...
    If to add a call to viewobject.clearCache() before second viewobject.executeQuery(), then everything works fine and view object's contents are changed.
    Does anybody have any ideas about this? Or is this a some kind of a feature, or it is already fixed in a newer version of JDev?
    Thnx!
    PS. JDeveloper version 9.0.3.4 (build 1247).

    delete message

  • Error on trying to do the JDeveloper's Tutorial (9.0.3.1)

    On trying to do the Tutorial of JDeveloper 9.0.3, in the chapter "Business Components Programmatic Client Tutorial - Step 3: Finding and Displaying Data by Primary Key", when is ran the Batch.class, the following errors are displayed:
    D:\Jdev9031\jdk\bin\javaw.exe -ojvm -classpath
    D:\Jdev9031\jdev\mywork\bcbatch\batchClient\classes;D:\Jdev9031\jdev\mywork\bcbatch\OnlineOrders\classes;D:\Jdev9031\jdev\lib\jdev-rt.jar;D:\Jdev9031\BC4J\lib\bc4jmt.jar;D:\Jdev9031\BC4J\lib\collections.jar;D:\Jdev9031\BC4J\lib\bc4jct.jar;D:\Jdev9031\lib\xmlparserv2.jar;D:\Jdev9031\jlib\jdev-cm.jar;D:\Jdev9031\j2ee\home\lib\jndi.jar;D:\Jdev9031\BC4J\lib\bc4jdomorcl.jar;D:\Jdev9031\BC4J\jlib\bc4jdatum.jar;D:\Jdev9031\jlib\jdev-cm.jar;D:\Jdev9031\jdbc\lib\classes12.jar;D:\Jdev9031\jdbc\lib\nls_charset12.jar
    bcbatch.Batch 101
    java.lang.NoSuchMethodError: void oracle.jdbc.oracore.OracleTypeADT.init(oracle.jdbc.driver.OracleConnection) oracle.sql.TypeDescriptor oracle.sql.TypeDescriptor.getTypeDescriptor(java.lang.String, oracle.jdbc.OracleConnection) TypeDescriptor.java:217 void oracle.jdbc.driver.OracleStatement.defineColumnType(int, int, java.lang.String) OracleStatement.java:1647 void oracle.jdbc.driver.OracleStatement.defineColumnType(int, int) OracleStatement.java:1324 void
    oracle.jbo.server.OracleSQLBuilderImpl.doPreparedStatementDefines(java.sql.PreparedStatement, oracle.jbo.server.AttributeDefImpl[]) OracleSQLBuilderImpl.java:963 void oracle.jbo.server.OracleSQLBuilderImpl.doEntitySelect(oracle.jbo.server.EntityImpl, boolean) OracleSQLBuilderImpl.java:586 void oracle.jbo.server.EntityImpl.doSelect(boolean) EntityImpl.java:4306 void oracle.jbo.server.EntityImpl.populate() EntityImpl.java:3597 oracle.jbo.server.EntityImpl
    oracle.jbo.server.EntityDefImpl.findFromDatabase(oracle.jbo.server.EntityCache, oracle.jbo.server.DBTransaction, oracle.jbo.Key) EntityDefImpl.java:886 oracle.jbo.server.EntityImpl oracle.jbo.server.EntityDefImpl.findByPrimaryKey(oracle.jbo.server.DBTransaction, oracle.jbo.Key) EntityDefImpl.java:922 com.sun.java.util.collections.ArrayList oracle.jbo.server.QueryCollection.findByKey(oracle.jbo.Key, int) QueryCollection.java:2174 oracle.jbo.Row[] oracle.jbo.server.ViewRowSetImpl.findByKey(oracle.jbo.Key, int)
    ViewRowSetImpl.java:2770 oracle.jbo.Row[] oracle.jbo.server.ViewObjectImpl.findByKey(oracle.jbo.Key, int) ViewObjectImpl.java:5575 void bcbatch.Batch.main(java.lang.String[]) Batch.java:25Exception in thread main
    Process exited with exit code 1.
    May I didn't do the properly project settings for a right execution...
    Could some body help me?
    Thanks a lot in advance.
    Pablo.

    This is the Batch.class:
    package bcbatch;
    import oracle.jbo.*;
    import oracle.jbo.client.*;
    import oracle.jbo.domain.Number;
    public class Batch
    public Batch()
    public static void main(String[] args)
    if (args.length==0)
    show("Customer ID is required.");
    System.exit(0);
    //new Batch();
    ApplicationModule am_Ord = Configuration.createRootApplicationModule("OnlineOrders.OnlineOrdersModule", "OnlineOrdersModuleLocal");
    ViewObject vo=am_Ord.findViewObject("CustomersView1");
    Key custKey = new Key(new Object[] {args[0]});
    Row[] customersFound = vo.findByKey(custKey,1);
    if (customersFound.length==0)
    show("Customer " + args[0] + " not found.");
    else
    Row row_Cust = customersFound[0];
    show("Customer");
    show("========");
    show("ID: " + row_Cust.getAttribute("CustomerId"));
    show("Email: " + row_Cust.getAttribute("CustEmail"));
    private static void show(String s)
    System.out.println(s);
    } // end show()

  • Problem  with BC4J in 10g: incorrect Date formatting

    I have PL/SQL procedure, which is called from bc4j-struts-application like this:
    CallableStatement cs = getDBTransaction().createCallableStatement(FIND_USER_RESP_STMT,0);
    cs.execute();
    It return an exeption with this message:
    ORA-01403: no data found
    ORA-06512: at "CRN.CRN_UTIL", line 115
    ORA-06512: at "CRN.CRN_UTIL", line 323
    ORA-06512: at "CRN.CRN_RESPONSIBILITY", line 85
    ORA-01843: not a valid month
    ORA-06512: at line 1
    I don't send any data parameter for this procedure. When I try to call it from JDeveloper connections debug, it runs succesfully. I try to create bc4j entity to query:
    select to_char(sysdate, 'DD-MON-YYYY') X,
    to_char(sysdate, 'DD-MM-YYYY') Y from dual
    and it retrieves:
    27-¿¿¿-2004
    27-09-2004
    Date constant is used in PL/SQL procedure with format 'DD-MON_YYYY', but I can't change it, because it used by many other applications.
    My local setting is english, USA, and I have the second language on my PC - russian.
    JDeveloper 9.0.5.2. This code runs succesfully in JDeveloper 9.0.3.3.
    How can I send bc4j date setting in normal format to solve this problem? And where can I find bc4j local settings, which are sended by bc4j to server?
    Regards, Nikolay

    Hello,
    The problem is still available. Could anybody help?
    Regard

  • Using Struts with JDeveloper, BC4J and OC4J 9.0.2

    Is it feasible to use Struts with JDeveloper 9.0.2, BC4J 9.0.2 and OC4J 9.0.2? We have an application that uses the BC4J JBO tags in version 9.0.2. We wish to use Struts and we want to retain the use of the JBO tags. Is there a way to do this without upgrading to 9.0.3?

    Here are two related questions:
    Can we upgrade to oracle9iAS 9.0.3 yet still use JDeveloper 9.0.2 and BC4J/JBO 9.0.2?
    Can we upgrade to JDeveloper 9.0.3 and BC4J/JBO 9.0.3 yet still deploy to oracle9iAS 9.0.2?

  • BUG JDeveloper with OTPC extension lockup

    I am using JDeveloper 11.1.1.1.0 with Oracle Team Productivity Center 11g on Windows XP. I am also connecting to a locally installed Oracle Team Productivity Center server running on a WebLogic 11g Server with Oracle 10g Express database although that is probably irrelevant. I am launching JDeveloper in the Default Role.
    I encountered a bug that consistently causes a lockup which forces a force quit. Below are the steps to reproduce:
    1) In the Team Navigator view navigate to Team Administration
    2) Go to the Repositories tab
    3) Click Work Item and then the Plus to add a new repository
    4) Select the Jira connector (only one I have installed and probably irrelevant) and click the Plus to add
    5) Close Team Administration and Reopen to Repositories tab
    6) Click the new repository you created
    7) Ctrl-Left Click on the 'New Repository Server' field in the Name column of the Repository Servers table
    8) On the warning dialog that popups click OK or X
    9) The dialog text and OK button dissapears and the dialog can not be closed through hitting X or verbal threats
    Surprisingly this does not occur if the field is Left Clicked (without the Ctrl)
    I also encountered a second issue during Oracle Team Productivity Center Server install. The gist of it is that selecting that you want a Connector to be installed the Next button does not work upon reaching the select sources page. If you change to install from local file then the Next button works again. Here is exception from tpcinstaller.log:
    java.lang.NullPointerException
         at javax.ide.extension.ExtensionRegistry.findExtension(ExtensionRegistry.java:60)
         at oracle.ideimpl.extension.ExtensionManagerImpl.getSystemDirectory(ExtensionManagerImpl.java:329)
         at oracle.ide.config.Preferences.getPreferenceDirectory(Preferences.java:89)
         at oracle.ide.config.Preferences.getPreferences(Preferences.java:60)
         at oracle.ide.webbrowser.WOCAuthenticator.getRememberedAuthentication(WOCAuthenticator.java:71)
         at oracle.alminternal.installer.util.DownloadUpdates.authenticateOTN(DownloadUpdates.java:233)
         at oracle.alminternal.installer.util.DownloadUpdates.copy(DownloadUpdates.java:302)
         at oracle.alminternal.installer.util.DownloadUpdates.download(DownloadUpdates.java:169)
         at oracle.alminternal.installer.Installer.downloadRemoteBundles(Installer.java:259)
         at oracle.alminternal.installer.ui.InstallerWizard$InstallerWizardValidateListener.wizardValidatePage(InstallerWizard.java:2283)
         at oracle.bali.ewt.wizard.WizardPage.processWizardValidateEvent(Unknown Source)
         at oracle.bali.ewt.wizard.WizardPage.validatePage(Unknown Source)
         at oracle.bali.ewt.wizard.BaseWizard.validateSelectedPage(Unknown Source)
         at oracle.bali.ewt.wizard.BaseWizard._validatePage(Unknown Source)
         at oracle.bali.ewt.wizard.BaseWizard.doNext(Unknown Source)
         at oracle.bali.ewt.wizard.dWizard.DWizard.doNext(Unknown Source)
         at oracle.bali.ewt.wizard.BaseWizard$Action.actionPerformed(Unknown Source)
         at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
         at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
         at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
         at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
         at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
         at java.awt.Component.processMouseEvent(Component.java:6263)
         at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
         at java.awt.Component.processEvent(Component.java:6028)
         at java.awt.Container.processEvent(Container.java:2041)
         at java.awt.Component.dispatchEventImpl(Component.java:4630)
         at java.awt.Container.dispatchEventImpl(Container.java:2099)
         at java.awt.Component.dispatchEvent(Component.java:4460)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4574)
         at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4238)
         at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168)
         at java.awt.Container.dispatchEventImpl(Container.java:2085)
         at java.awt.Window.dispatchEventImpl(Window.java:2475)
         at java.awt.Component.dispatchEvent(Component.java:4460)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
         at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
         at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
         at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:178)
         at java.awt.Dialog$1.run(Dialog.java:1045)
         at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
         at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
         at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
    Edited by: user11232535 on Oct 30, 2009 1:42 PM

    Hi,
    Thanks for this feedback, I am looking into it and will get back to you. Have you been able to work around this issue and continue to use TPC with your JIRA repository?
    rgds
    Susan
    susanduncan.blogspot.com

  • BUG: JDeveloper code editor shows valid static import call as error

    I've noticed what appears to be a bug in the JDeveloper code validator when dealing with static imports.
    The following classes demonstrate the problem:
    package test;
    public class Parent {
      public static void parentMethod() {
        System.out.println("called parentMethod.");
    package test;
    public class Child extends Parent {
      public static void childMethod() {
        System.out.println("called childMethod.");
    package test;
    import static test.Child.*;
    public class StaticInheritanceTest {
      public static void main(String[] args) {
        Child.childMethod();
        Child.parentMethod();
        childMethod();
        parentMethod();  //<-- this line is highlighted as an error
    }Notice how on lines 7 and 8 of StaticInheritanceTest, the code validator does recognise that both parentMethod and childMethod are static methods of the Child class.
    Since 'Child' has been statically imported, then parentMethod should be available. Although parentMethod is presented as an 'auto-suggest' at line 11 in StaticInheritanceTest, when you try to call it the code editor shows the call as an error and the Ctrl-Click (to drill down into the method) doesn't work.
    When I run the class, it compiles successfully and runs with the following output:
    called childMethod.
    called parentMethod.
    called childMethod.
    called parentMethod.This might seem like an obscure and theoretical problem, but I've hit this whilst using Mockito, which uses exactly this kind of inherited static method to provide matchers.

    Hi,
    thanks. Will file a bug. This seems to be a designtime only issue that does not present a show stopper.
    Frank

  • Bug in weblogic.rmic: produces incorrect IDL in factory decls.

    My EJB when producing IDL produces incorrect IDL: One of the outputs
    is java/net/URL.idl but when I try to compile it using Inprise
    visibroker
    4.0 for C++, I get the following parse error:
    /opt/inprise/vbrokercpp/bin/idl2cpp -no_servant -idl_strict
    -I/opt/inprise/vbrokercpp/idl -tie -namespace -no_pretty_print -Iidl
    -src_suffix cpp -root_dir cpp/java/lang idl/java/lang/ClassLoader.idl
    idl/java/net/URL.idl: 76:syntax error after )
    idl/java/net/URL.idl: 76:expected a[n]: ;
    idl/java/net/URL.idl: 76:instead of raises
    idl/java/net/URL.idl: 78:syntax error after )
    idl/java/net/URL.idl: 78:expected a[n]: ;
    idl/java/net/URL.idl: 78:instead of raises
    idl/java/net/URL.idl: 82:java::net::URLStreamHandler not found (expected
    type name)
    idl/java/net/URL.idl: 83:syntax error after )
    idl/java/net/URL.idl: 83:expected a[n]: ;
    idl/java/net/URL.idl: 83:instead of raises
    idl/java/net/URL.idl: 84:java::net::URLStreamHandler not found (expected
    type name)
    idl/java/net/URL.idl: 88:syntax error after )
    idl/java/net/URL.idl: 88:expected a[n]: ;
    idl/java/net/URL.idl: 88:instead of raises
    6 errors
    This is an error in the IDL: factory methods are trying to raise
    exceptions; however this is disallowed by the OMG IDL specification
    version 2.3:
    <init_dcl> ::= "factory" <identifier>"(" [ <init_param_decls> ]
    <init_param_decls> ::= <init_param_decl> { , <init_param_decl> }
    <init_param_decl> ::= <init_param_attribute> <param_type_spec>
    <simple_declarator>
    <init_param_attribute> ::= "in"
    As you can see, when using the keyword "factory" there is no "raises"
    clause allowed by the grammar.
    This is one of a few instances of the problem (this problem only
    occurred
    in one file but for several methods):
    factory
    create__CORBA_WStringValue__CORBA_WStringValue__CORBA_WStringValue( in
    ::CORBA::WStringValue arg0, in ::CORBA::WStringValue arg1, in
    ::CORBA::WStringValue arg2) raises (::java::net::MalformedURLEx);
    -Kim.

    the difference here is Thread-based security vs. Object-based security. WLS opts for the Thread-based model. this model was also
    backed up by the original revisions of the JAAS spec. it's just something to take into consideration when designing applications.
    .paul
    Marcel Stremming wrote:
    I have a SessionBean Method :
    public void contextTest() throws RemoteException {
    try {
    System.out.println("Principal 1: " + ctx.getCallerPrincipal());
    Properties h = new Properties();
    h.put(Context.INITIAL_CONTEXT_FACTORY,"weblogic.jndi.WLInitialContextFactory");
    h.put(Context.PROVIDER_URL, "t3://localhost:7001");
    h.put(Context.SECURITY_PRINCIPAL, "toto");
    h.put(Context.SECURITY_CREDENTIALS, "test");
    Context new_ctx = new InitialContext(h);
    System.out.println("Principal 2: " + ctx.getCallerPrincipal());
    } catch (Exception e) {e.printStackTrace(); }
    When principal "titi" invokes this Method it produces the following output:
    Principal 1: titi
    Principal 2: toto
    As You can see the Method just replaced the Caller Context's principal stored in the ctx field without even touching it. Since
    my Servlets run on the same JVM and use PassByReference calling this Method twice results in :
    Principal 1: titi
    Principal 2: toto
    Principal 1: toto
    Principal 2: toto
    I think this is a Bug because it makes it quiet difficult to open two Context's at the same time.
    I would like to read some opinions.

  • BUG: JDeveloper 10.1.3.0.3 EA - Exception in switch using enum

    Hi,
    I was encountered runtime exception in switch statement, if I use enum.
    In the next example the exception:
    Exception in thread "main" java.lang.ClassFormatError: Invalid field attribute index 0 in class file com/crcdata/enumtest/client/EnumTest$1
         at java.lang.ClassLoader.defineClass1(Native Method)
         at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
         at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
         at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
         at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
         at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
         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:268)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
         at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
         at com.crcdata.enumtest.client.EnumTest.main(EnumTest.java:13)
    is thrown on line "switch (season)".
    package com.crcdata.enumtest.client;
    public class EnumTest {
      public enum Season { WINTER, SPRING, SUMMER, FALL }
      public EnumTest() {
      public static void main(String[] args) {
        EnumTest enumTest = new EnumTest();
        Season  season = Season.WINTER;
        switch (season) {
          case WINTER:
            System.out.println("Season: " + season.name());
            break;
          default:
            System.out.println("Another season");
            break;
    }This exception occur only if use ojc compiler. The javac compiler is OK.
    Versions:
    JDeveloper 10.1.3.0.3 EA
    J2EE 1.5.0_05
    Regards,
    Petr

    Thanks for reporting this. I filed bug 4720493 on this.

  • Bug: Jdeveloper 10.1.3.2.0 !!

    I am not sure if it is a bug or not, but my jdeveloper 10.1.3.2.0 did like this:
    http://blogs.oracle.com/Didier/2006/11/22
    can anyone explain the matter?
    Bassam

    Noooooo nothing works
    But I am getting this error:
    Error exercising tag : f:facet
    javax.servlet.jsp.JspException: Cannot find FacesContext
    This is my web.xml
    ============================
    <?xml version = '1.0' encoding = 'windows-1252'?>
    <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
    version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee">
    <description>SRDemo Sample 10.1.3 web application</description>
    <context-param>
    <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
    <param-value>client</param-value>
    </context-param>
    <context-param>
    <param-name>CpxFileName</param-name>
    <param-value>oracle.srdemo.view.DataBindings</param-value>
    </context-param>
    <context-param>
    <!-- Maximum memory per request (in bytes) -->
    <param-name>oracle.adf.view.faces.UPLOAD_MAX_MEMORY</param-name>
    <!-- Use 5000K -->
    <param-value>5120000</param-value>
    </context-param>
    <context-param>
    <!-- Maximum disk space per request (in bytes) -->
    <param-name>oracle.adf.view.faces.UPLOAD_MAX_DISK_SPACE</param-name>
    <!-- Use 10,000K -->
    <param-value>10240000</param-value>
    </context-param>
    <context-param>
    <description>Parent directory location of SRDemo fileuploads</description>
    <param-name>SRDemo.FILE_UPLOADS_DIR</param-name>
    <param-value>/tmp/srdemo_fileuploads</param-value>
    </context-param>
    <filter>
    <filter-name>adfFaces</filter-name>
    <filter-class>oracle.adf.view.faces.webapp.AdfFacesFilter</filter-class>
    </filter>
    <filter>
    <filter-name>adfBindings</filter-name>
    <filter-class>oracle.adf.model.servlet.ADFBindingFilter</filter-class>
    </filter>
    <filter-mapping>
    <filter-name>adfFaces</filter-name>
    <servlet-name>Faces Servlet</servlet-name>
    </filter-mapping>
    <filter-mapping>
    <filter-name>adfBindings</filter-name>
    <url-pattern>*.jsp</url-pattern>
    </filter-mapping>
    <filter-mapping>
    <filter-name>adfBindings</filter-name>
    <url-pattern>*.jspx</url-pattern>
    </filter-mapping>
    <servlet>
    <servlet-name>Faces Servlet</servlet-name>
    <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
    <load-on-startup>1</load-on-startup>
    </servlet>
    <servlet>
    <servlet-name>resources</servlet-name>
    <servlet-class>oracle.adf.view.faces.webapp.ResourceServlet</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>Faces Servlet</servlet-name>
    <url-pattern>/faces/*</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>resources</servlet-name>
    <url-pattern>/adf/*</url-pattern>
    </servlet-mapping>
    <session-config>
    <session-timeout>35</session-timeout>
    </session-config>
    <mime-mapping>
    <extension>html</extension>
    <mime-type>text/html</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>txt</extension>
    <mime-type>text/plain</mime-type>
    </mime-mapping>
    <welcome-file-list>
    <welcome-file>index.jspx</welcome-file>
    </welcome-file-list>
    <jsp-config/>
    <security-constraint>
    <web-resource-collection>
    <web-resource-name>ALL Manager</web-resource-name>
    <url-pattern>faces/app/management/*</url-pattern>
    </web-resource-collection>
    <auth-constraint>
    <role-name>manager</role-name>
    </auth-constraint>
    </security-constraint>
    <security-constraint>
    <web-resource-collection>
    <web-resource-name>AllStaff</web-resource-name>
    <url-pattern>faces/app/staff/*</url-pattern>
    </web-resource-collection>
    <auth-constraint>
    <role-name>technician</role-name>
    <role-name>manager</role-name>
    </auth-constraint>
    </security-constraint>
    <security-constraint>
    <web-resource-collection>
    <web-resource-name>SRDemo Sample</web-resource-name>
    <url-pattern>faces/app/SRAbout.jspx</url-pattern>
    <url-pattern>faces/app/SRCreate.jspx</url-pattern>
    <url-pattern>faces/app/SRCreateConfirm.jspx</url-pattern>
    <url-pattern>faces/app/SRCreateDone.jspx</url-pattern>
    <url-pattern>faces/app/SRFaq.jspx</url-pattern>
    <url-pattern>faces/app/SRFileUpload.jspx</url-pattern>
    <url-pattern>faces/app/SRHelp.jspx</url-pattern>
    <url-pattern>faces/app/SRList.jspx</url-pattern>
    <url-pattern>faces/app/SRLogout.jspx</url-pattern>
    <url-pattern>faces/app/SRMain.jspx</url-pattern>
    <url-pattern>faces/app/SRWelcome.jspx</url-pattern>
    </web-resource-collection>
    <auth-constraint>
    <role-name>user</role-name>
    <role-name>technician</role-name>
    <role-name>manager</role-name>
    </auth-constraint>
    </security-constraint>
    <login-config>
    <auth-method>FORM</auth-method>
    <form-login-config>
    <form-login-page>infrastructure/SRLogin.jspx</form-login-page>
    <form-error-page>infrastructure/SRLogin.jspx</form-error-page>
    </form-login-config>
    </login-config>
    <security-role>
    <description>Customers of ACME corp</description>
    <role-name>user</role-name>
    </security-role>
    <security-role>
    <description>Employees of ACME corp</description>
    <role-name>technician</role-name>
    </security-role>
    <security-role>
    <description>The boss</description>
    <role-name>manager</role-name>
    </security-role>
    <resource-ref>
    <res-ref-name>jdbc/SRDemoDS</res-ref-name>
    <res-type>javax.sql.DataSource</res-type>
    <res-auth>Container</res-auth>
    </resource-ref>
    <resource-ref>
    <res-ref-name>jdbc/SRDemoCoreDS</res-ref-name>
    <res-type>javax.sql.DataSource</res-type>
    <res-auth>Container</res-auth>
    </resource-ref>
    </web-app>
    ====================================

  • Mini-bug : JDeveloper 10.1.3 resource bundles

    Hello,
    Here's a mini-bug in the resource bundles for JDeveloper 10.1.3. In the Dynamic List binding wizard (the one that you use to make a list of value from databindings), in the list binding section there's a typo : "soruce" instead of "source".
    This evil bug has no workaround ! Run around screaming
    Seriously, this little typo won't hurt anything or anyone, but I just wanted to report it nonetheless.
    Regards,
    Simon Lessard
    Message was edited by:
    Simon Lessard
    Edit: Had a typo in the subject, was a tad annoying considering what this post is about.

    Hello,
    Here's a mini-bug in the resource bundles for JDeveloper 10.1.3. In the Dynamic List binding wizard (the one that you use to make a list of value from databindings), in the list binding section there's a typo : "soruce" instead of "source".
    This evil bug has no workaround ! Run around screaming
    Seriously, this little typo won't hurt anything or anyone, but I just wanted to report it nonetheless.
    Regards,
    Simon Lessard
    Message was edited by:
    Simon Lessard
    Edit: Had a typo in the subject, was a tad annoying considering what this post is about.

Maybe you are looking for

  • Install Encore 2.0 on windows 7 64 bit

    I have changed computers and tried to install my software PPRO, Encore and Audition 2.0 on the system. Trying to install ENCORE 2.0, I have to install an previous version (1.5) first (upgrade from 1.5 to 2.0). When I try to install 1.5 it says that E

  • Multi-Mapping without BPM

    Hi , I am following this weblog /people/jin.shin/blog/2006/02/07/multi-mapping-without-bpm--yes-it146s-possible but stuck up with what are the fields contained by ID in target message2 ... Please check this for your clarification http://www.flickr.co

  • Install on Desktop ad laptop

    Good afternoon, I'm sorry if this question has already been asked but I couldn't find the answer. I use CS4 web premium on my desktop PC but I wonder if I can install it on my laptop with the same serials ? That would be useful for me to have it inst

  • App World We Plug In Error

    I can't download any apps.. it always give me this message "An error has occurred communicating with the BlackBerry App World Client." im using ie.

  • How to turn off terminal sevices spaning of multiple monitors on the fly

    I have terminal services 2012 installed with all my users accessing it through rdweb.  I have span turned on so that it uses both monitors. This works great and takes care of 99% of my users. I have a couple of users that have a requirement where the