Jdev9052

I've downloaded the new mapviewer jdev extensions
for jdev 9051 or higher. I am using jdev9052.When using mapviewer tags in a jsp I get the error
Error(9,37): cannot access class oracle.lbs.mapclient.taglib.MapViewerInitTag; file oracle\lbs\mapclient\taglib\MapViewerInitTag.class not found even though i have the following declaration at the
top of the page
<%@ taglib uri="http://xmlns.oracle.com/j2ee/jsp/tld/spatial/mvtaglib.tld" prefix="mapviewer"%>
does the new tags work with jdev9052 and if so how can i fix the above error

I've downloaded the new mapviewer jdev extensions
for jdev 9051 or higher. I am using jdev9052.When using mapviewer tags in a jsp I get the error
Error(9,37): cannot access class oracle.lbs.mapclient.taglib.MapViewerInitTag; file oracle\lbs\mapclient\taglib\MapViewerInitTag.class not found even though i have the following declaration at the
top of the page
<%@ taglib uri="http://xmlns.oracle.com/j2ee/jsp/tld/spatial/mvtaglib.tld" prefix="mapviewer"%>
does the new tags work with jdev9052 and if so how can i fix the above error

Similar Messages

  • JDev9052: JClient Authentication problem

    Hi,
    I have followed the instructions of the help topic "Generating the Default JClient Authentication Login Form" (JDev9052) to get a login dialog and to connect to the database, but I got a "Process exited with exit code 128".
    No Login-dialog, no exception!
    After googling I have found an Oracle help page (http://helponline.oracle.com/jdeveloper/help/state/content/vtTopicId./navSetId.jdeveloper/vtTopicFile.jdeveloper%7Cdeveloping_jclient_applications%7Cjui_prunninglogindialog~html/navId.4/
    and
    http://helponline.oracle.com/jdeveloper/help/state/content/navSetId.jdeveloper/navId.4/vtTopicFile.jdeveloper%7Cdeveloping_jclient_applications%7Cjui_pcreatinglogindialogdb~html/).
    I change the generated JCLoginDialog.java class and started again. Now I got the dialog, but any credentials results in an exception:
    JBO-30003: The application pool (hr2.model.AppModuleLocal) failed to checkout an application module due to the following exception:
    oracle.jbo.JboException: JBO-29000: Unexpected exception caught: oracle.jbo.JboException, msg=JBO-33021: Failed authenticate user null
         at oracle.jbo.JboException.<init>(JboException.java:343)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.doCheckout(ApplicationPoolImpl.java:1743)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.useApplicationModule(ApplicationPoolImpl.java:2576)
         at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:441)
         at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:411)
         at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:406)
         at oracle.adf.model.bc4j.DataControlFactoryImpl.createSession(DataControlFactoryImpl.java:258)
         at oracle.adf.model.bc4j.DataControlFactoryImpl.createSession(DataControlFactoryImpl.java:97)
         at oracle.jbo.uicli.mom.JUMetaObjectManager.loadCpx(JUMetaObjectManager.java:612)
         at hr2.view.FormDepartmentsView1EmployeesView3.main(FormDepartmentsView1EmployeesView3.java:375)
    ## Detail 0 ##
    oracle.jbo.JboException: JBO-33021: Failed authenticate user null
         at oracle.jbo.common.UserAznUtil.authenticateUser(UserAznUtil.java:60)
         at oracle.jbo.server.ApplicationModuleImpl.prepareSession(ApplicationModuleImpl.java:5289)
         at oracle.jbo.server.ApplicationModuleImpl.prepareSession(ApplicationModuleImpl.java:5258)
         at oracle.jbo.server.ApplicationModuleImpl.doPoolMessage(ApplicationModuleImpl.java:6650)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.sendPoolMessage(ApplicationPoolImpl.java:3886)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.prepareApplicationModule(ApplicationPoolImpl.java:1886)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.doCheckout(ApplicationPoolImpl.java:1711)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.useApplicationModule(ApplicationPoolImpl.java:2576)
         at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:441)
         at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:411)
         at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:406)
         at oracle.adf.model.bc4j.DataControlFactoryImpl.createSession(DataControlFactoryImpl.java:258)
         at oracle.adf.model.bc4j.DataControlFactoryImpl.createSession(DataControlFactoryImpl.java:97)
         at oracle.jbo.uicli.mom.JUMetaObjectManager.loadCpx(JUMetaObjectManager.java:612)
         at hr2.view.FormDepartmentsView1EmployeesView3.main(FormDepartmentsView1EmployeesView3.java:375)
    Any hints are welcome.
    Markus

    Hi Frank,
    yes, I tried to use JAAS and property jbo.security.enforce is set to Auth. When set to None, the behavior changed. With the correct user/pwd I can login, but with incorrect user/pwd I get into an endless loop of calling JCLoginDialog.getInfo(). This is my code:
    1.) Generated HR BC4J components
    2.) Generated Form (incl. JCLoginDialog)
    3.) change JCLoginDialog:
    public Object getInfo(String info, Object connEnvironment){
    System.out.println (connEnvironment.toString());
    RuntimeException exc = ((RuntimeException)((Hashtable)connEnvironment).get(DefaultConnectionStrategy.LAST_EXCEPTION));
    // never get an exception here!
    if (exc == null)
    mErrorMessage.setText("");
    else
    mErrorMessage.setText("Incorrect user name/password combination");
    String username = (String)((Hashtable)connEnvironment).get(JboContext.SECURITY_PRINCIPAL);
    String password = (String)((Hashtable)connEnvironment).get(JboContext.SECURITY_CREDENTIALS);
    // when using these two lines, I never get the login dialog
    // String username = (String)((Hashtable)connEnvironment).get( Configuration.DB_USERNAME_PROPERTY);
    // String password = (String)((Hashtable)connEnvironment).get(Configuration.DB_PASSWORD_PROPERTY);
    boolean isUsernameEmpty = ((username == null) || (username.length() &lt;= 0));
    boolean isPasswordEmpty = ((password == null) || (password.length() &lt;= 0));
    if (isUsernameEmpty)
    username = new String(mUserName.getText()).trim();
    isUsernameEmpty = ((username == null) || (username.length() &lt;= 0));
    if (isPasswordEmpty)
    password = new String(mPassword.getPassword()).trim();
    isPasswordEmpty = ((password == null) || (password.length() &lt;= 0));
    String name = mUserName.getText().trim();
    if (isUsernameEmpty || isPasswordEmpty || exc != null || name.length() == 0)
    if (!popupDialog())
    throw new IllegalArgumentException("Login Cancelled");
    ((Hashtable)connEnvironment).put(Configuration.DB_USERNAME_PROPERTY, mUserName.getText().trim());
    ((Hashtable)connEnvironment).put(Configuration.DB_PASSWORD_PROPERTY, new String(mPassword.getPassword()).trim());
    return null;
    The System.out prints three lines when using correct user/pwd:
    {DeployPlatform=LOCAL, DBconnection=jdbc:oracle:thin:@localhost:1521:ora9203, password=hr, JDBCName=hr_conn, jbo.project=Model, AppModuleJndiName=hr2.model.AppModule, user=hr, jbo.security.enforce=None, jbo.applicationmoduleclassname=hr2.model.AppModule, java.naming.factory.initial=oracle.jbo.common.JboInitialContextFactory, ApplicationName=hr2.model.AppModule}
    {user=hr, password=hr, jbo.security.enforce=None}
    {DeployPlatform=LOCAL, DBconnection=jdbc:oracle:thin:@localhost:1521:ora9203, password=hr, JDBCName=hr_conn, jbo.jdbc.connectstring=jdbc:oracle:thin:@localhost:1521:ora9203, jbo.project=Model, AppModuleJndiName=hr2.model.AppModule, jbo.jdbc.password=hr, user=hr, jbo.security.enforce=None, jbo.applicationmoduleclassname=hr2.model.AppModule, java.naming.factory.initial=oracle.jbo.common.JboInitialContextFactory, ApplicationName=hr2.model.AppModule, jbo.jdbc.username=hr}
    When using incorrect user/pwd I get lines like this (after the three lines above):
    {user=hr, password=hr, jbo.security.enforce=None}
    Please, could you provide a working sample for using dynamic JDBC credentials?
    I have read and implemented the paper "http://otn.oracle.com/products/jdev/howtos/bc4j/howto_dynamic_jdbc.html", but I get the same behavior.
    Thanks,
    Markus

  • BC4j samples in JDev9052. Where?

    Hi,
    I'm looking for JClient sample code. The help pages "About the ADF Bindings and Swing Controls" mentions a sample workspace which could be found in JDev_main_install/bc4j/samples/JClientWorkspace. BUT JDev 9052 does not contain any sample code. At least I can't find it.
    Any hints are welcome,
    Markus

    Hi Lynn,
    Could you also migrate the following samples of previous versions:
    1) Adding a JComboBox to a Cell in a JTable
    This sample shows how you can add a combobox to a table cell in a JClient application.
    2) JClient Component Binding Demo
    This sample illustrates the available component bindings provided by JClient and JDeveloper. JClient is Oracle's technology for building data-bound Java clients.
    These samples demonstrate basic customization of JClient and they don't exist in the actual version.
    I tried to include them in JDeveoper 9.0.5.2 but it won't work.
    It is difficult to evaluate the tool with the scarce online help and without examples of basic UI customization.
    Thanks
    Frederic

  • Null value in List Binding (enumeration mode)

    Hi,
    how can I declare a NULL value in a List binding with enumeration mode?
    A user should be able to select an empty entry in a combobox to update an attribute with a null value.
    I'm using JDev9052 and JClient.
    Any hints?
    Thanks,
    Markus

    Adding '-1' in JComboBox (addItem(new Integer(-1))) or in the control binding does not change the picture. Sorry.
    While play with different List bindings I have discovered that a Button LOV Binding works when using a "select * UNION select null from dual" view object. It does not work with a Combobox LOV binding. Why?
    Still, my problem List binding in enumeration mode (with Combobox) is unsolved. any hints or samples?
    My current combobox binding:
    <DCControl
    id="Job"
    DefClass="oracle.jbo.uicli.jui.JUComboBoxDef"
    SubType="DCComboBox"
    BindingClass="oracle.jbo.uicli.jui.JUComboBoxBinding"
    IterBinding="EmpView1Iterator"
    ApplyValidation="false"
    isDynamic="false"
    ListOperMode="0"
    StaticList="true"
    Editable="false" >
    <AttrNames>
    <Item Value="Job" />
    </AttrNames>
    <ValueList>
    <Item Value="ANALYST" />
    <Item Value="CLERK" />
    <Item Value="MANAGER" />
    <Item Value="PRESIDENT" />
    <Item Value="SALESMAN" />
    <Item Value="-1" />
    </ValueList>
    </DCControl>
    My current Button LOV binding:
    <DCControl
    id="Job2"
    DefClass="oracle.jbo.uicli.jui.JULovButtonDef"
    SubType="DCLovButton"
    BindingClass="oracle.jbo.uicli.jui.JULovButtonBinding"
    IterBinding="EmpView1Iterator"
    DTClass="oracle.adf.dt.objects.JUDTCtrlListLOV"
    ApplyValidation="false"
    isDynamic="false"
    ListOperMode="0"
    ListIter="JobListView1Iterator" >
    <AttrNames>
    <Item Value="Job" />
    </AttrNames>
    <ListAttrNames>
    <Item Value="Job" />
    </ListAttrNames>
    <ListDisplayAttrNames>
    <Item Value="Job" />
    </ListDisplayAttrNames>
    </DCControl>

  • Reading a config file from servlet

    I am having an issue where my servlet on init() is trying to read a file from the filesystem in order to override the log4j configuration for the application.
    Code in servlet:
    ServletContext context = getServletContext();
    String logInitFile =
    context.getInitParameter("log-init-file");
    if (logInitFile != null) {
    File file = new File(context.getRealPath(logInitFile));
    if (file.exists()) {
    logInitFile = context.getRealPath(logInitFile);
    LogManager.getLogManager().readConfiguration(logInitFile);
    ServletLogAppender.setServletContext(context);
    logger = LogManager.getLogManager().getLogger(CLASS_NAME);
    logger.debug("Log file was loaded from \"" + logInitFile + "\"");
    END CODE
    My orion-web.xml has an entry pointing to
    <context-param-mapping name="log-init-file">C:\jDev9052\j2ee\home\application-deployments\speed\log4j.xml</context-param-mapping>
    The error I am getting is a NullPointerException on the
    File file = new File(context.getRealPath(logInitFile));
    line.
    The point of this is to override the log4j.xml file that is packaged in the /classes folder of the .ear file with one specific to its deployment target (i.e. production, test, etc).
    This worked in 9.0.2 but now that I am upgrading to 9.0.5.2 it is not working.
    Is this possible to do anymore? Could someone assist.

    I just had -and solved- the same problem. The cause was that you tried to use getServletContext().getRealPath() to resolve the file name. That only works if the file is located some place where your Web container could serve it up as a file; i.e. getRealPath() translates a path from a Web URL into a file path.
    If you have your file in the Jar, chances are it's not even accessible as a file. I used getClass().getClassLoader().getResource() to give me a URL, and used that as an argument to log4j methods.

  • JBO-33035 "Row currency has changed..." and Failover feature

    Hi,
    I came across a problem (bug?) while playing with the failover feature (JDev9052).
    I have an AM pool with just one instance and two browsers. Failover is not set.
    My test:
    1.: First browser moves through the Dept list.
    2.: Second browser moves through the dept list to another position.
    3.: First browser wants to move to next page.
    --> Exception JBO-33035
    I switched Failover on and repeated the test. No exception, everything is fine.
    I have rebuild the demo with JDev 904 and the test works fine without any exception!
    I have found the paper "Generic Approach for Back-Button-Friendly Web Rowset Paging" (http://www.oracle.com/technology/products/jdev/tips/muench/paging/index.html) and changed
    Enable Token Validation property to FALSE (Failover=false). I do not use the BACK button.
    I repeated the test and got another exception: JBO-25013: Too many objects match the primary key oracle.jbo.Key[10 ].
    My net result of my tests is that I do not dare to set failover=false in my apps. :-(
    Maybe I not understand how to use the failover feature.
    Please let me know how to fix that problem.
    Thanks,
    Markus

    You'll need to give more information on how the error occurred.
    This error is related to the state token when the mid-tier discovers the client-tier has independently navigated to another page (potentially via a browser cache) without notifying the mid-tier. When the client-tier finally communicates with the mid-tier passing an earlier out of date state token, the mid-tier detects that the state token is out of sync with what it thinks the client-tier should be returning. Thus the mid-tier raises this error.
    There are a number of scenarios in which this problem can occur, and as such you need to detail how you raised this error.
    For more information research the "state token" concept in the JDeveloper documentation.

  • JDeveloper 10 (9.0.5.2) with Java 1.5

    Hi everyone,
    I've tried to use Java 1.5 SDk in conjunction with JDeveloper 10g with no success. I always get the following error message:
    Error: initialization error: class file has wrong version 49.0, should be 45.3 or 46.0 or 47.0 or 48.0 on classpath C:\Program Files\Java\jdk1.5.0\jre\lib\rt.jar;C:\Program Files\Java\jdk1.5.0\jre\lib\i18n.jar;C:\Program Files\Java\jdk1.5.0\jre\lib\sunrsasign.jar;C:\Program Files\Java\jdk1.5.0\jre\lib\jsse.jar;C:\Program Files\Java\jdk1.5.0\jre\lib\jce.jar;C:\Program Files\Java\jdk1.5.0\jre\lib\charsets.jar;C:\Program Files\dev\Workspaces\Testing\TestServlet\classes;C:\Program Files\dev\jdev9052\jdev\lib\jdev-rt.jar;C:\Program Files\dev\jdev9052\j2ee\home\oc4j.jar;C:\Program Files\dev\jdev9052\j2ee\home\lib\servlet.jar;C:\Program Files\dev\Workspaces\Lib\JEncrypt.jar;C:\Program Files\dev\Workspaces\Lib\crimson.jar;C:\lib\mysql-connector-java-3.0.10-stable-bin.jar
    now, my guess is that the oracle compiler is of an older java version (1.4x), how do I point the thing to use a different compiler? I've got the user libraries set at my 1.5 sdk java.exe
    Thanks tons,
    Herman

    well.. to run jdev on the 1.5.0 JVM, its relatively simple...
    Go into the jdev.conf, and find the "commented out" variable that looks like this:
    # SetJavaHome is not required by default, except for the base install,
    # since the launcher will determine the JAVA_HOME. On Windows it looks
    # in ..\..\jdk, on UNIX it looks in the PATH by default.
    # SetJavaHome /usr/java/jdk1.5.0
    I run on linux, so my path is forward slashes. On windows, you would point it to the C:\Program Files\Java\1.5.0 or wheerever you base Java path is. Now execute jdevw, and it should run on 1.5.0 also.
    A dialog box WILL pop up, (it may be BEHIND the jdev splash screen.. so it might be hard to find), which tells you that jdev is not supported on 1.5.0, but I hit the little checkbox to never tell me again, and hit "ok".
    Jdev will happily load and run. Its just that debugging on linux doen't work. (I haven't tried on windows yet.. maybe I should).
    While you are in the jdev.conf, there is another thing that can help with speed (both 1.4.2 and 1.5.0)....
    # The Windows launcher will attempt to use client (hotspot) by default,
    # unless a VM is specified below with the following directive. On UNIX
    # we use whatever is listed first in the $(JAVA_HOME)/jre/lib/jvm.cfg file.
    SetJavaVM server
    Setting this value from "hotspot" or "client" to "server" makes the JVM take a little bit more memory, and it takes a little bit longer to load INTO Jdev, but once in, EVERYTHING runs smoother.

  • Binding Editors not present in ADF UIX

    Hi
    I have been having some trouble with accessing both the Boolean Binding Editor and the LOV Editor from the structure window, when in design mode of an ADF UIX page.
    My bindings are present, but when I 'Edit' the binding, the only option available to me is to select the Iterator and the attribute.
    The documentation keeps telling me to select different tabs, but there aren't any!
    Anyone had this problem????
    I'm on;
    Oracle IDE     9.0.5.16.27
    Business Components Version     9.0.5.16.0
    UML Modelers Version     9.0.5.14.78
    Versioning Support     9.0.5.14.78
    WebDAV Support Version     9.0.5.14.78
    Struts Modeler Version     9.0.5.4.22
    Designer Generators Framework     9.0.5.5.71
    ADF UIX     2.2.8
    java.version     1.4.2
    java.home     C:\j2sdk1.4.2_04\jre
    java.vm.name     Java HotSpot(TM) Client VM
    java.vm.vendor     Sun Microsystems Inc.
    java.vm.version     1.4.2-b28
    user.language     en
    user.region     <no value assigned>
    user.name     chris.bell
    user.home     C:\Documents and Settings\chris.bell
    user.dir     C:\Software\Oracle\jdev9052\jdev\bin
    os.name     Windows XP
    os.version     5.1
    os.arch     x86
    http.proxyHost     <no value assigned>
    http.proxyPort     <no value assigned>
    http.nonProxyHosts     <no value assigned>
    ide.patches     
    Thanks in advance
    Chris

    the primaryclient action should pass the rowkey of the current row (${uix.current.rowKeyStr}) as a parameter. This way the server can find the corresponding row on the server in an event handler.
    see
    http://www.oracle.com/technology/products/jdev/tips/jacobi/edittable/tip_adfuixtable_edit.html

  • 2 local ejb and one remote session bean in same server - java client

    idea was -
    to create a new stateless session bean that will talk to the two entity beans. although the session bean will expose its method through a remote interface, the communication betweenn the session bean and the entity beans will be through a local interface. the assumptions is that all three ejbs are running in the same JVM.
    so -
    all three ejbs complied properly.
    but -
    when i tried to test with one 'sample test client' then this is the error i get.
    please please -
    can you look into the below error and let me know what possibly i'm doing wrong. i've been trying for last 4 days and can't figure out.
    thanks a lot.
    D:\jdev9052\jdk\bin\javaw.exe -ojvm -classpath D:\jdev9052\jdev\mywork\H&K\EJBApp\classes;D:\jdev9052\j2ee\home\lib\activation.jar;D:\jdev9052\j2ee\home\lib\ejb.jar;D:\jdev9052\j2ee\home\lib\jaas.jar;D:\jdev9052\j2ee\home\lib\jaxp.jar;D:\jdev9052\j2ee\home\lib\jcert.jar;D:\jdev9052\j2ee\home\lib\jdbc.jar;D:\jdev9052\j2ee\home\lib\jms.jar;D:\jdev9052\j2ee\home\lib\jndi.jar;D:\jdev9052\j2ee\home\lib\jnet.jar;D:\jdev9052\j2ee\home\lib\jsse.jar;D:\jdev9052\j2ee\home\lib\jta.jar;D:\jdev9052\j2ee\home\lib\mail.jar;D:\jdev9052\j2ee\home\lib\servlet.jar;D:\jdev9052\j2ee\home\oc4j.jar;D:\jdev9052\opmn\lib\optic.jar;D:\jdev9052\jdev\system9.0.5.2.1618\oc4j-config\.client;D:\jdev9052\lib\xmlparserv2.jar;D:\jdev9052\lib\xmlcomp.jar TeamStaffSessionEJBClient
    context initialized
    javax.naming.NamingException: Lookup error: java.net.ConnectException: Connection refused: connect; nested exception is:
         java.net.ConnectException: Connection refused: connect [Root exception is java.net.ConnectException: Connection refused: connect]
         at com.evermind.server.rmi.RMIContext.lookup(RMIContext.java:153)
         at javax.naming.InitialContext.lookup(InitialContext.java:347)
         at TeamStaffSessionEJBClient.main(TeamStaffSessionEJBClient.java:17)
    Caused by: java.net.ConnectException: Connection refused: connect
         at java.net.PlainSocketImpl.socketConnect(Native Method)
         at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
         at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)
         at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
         at java.net.Socket.connect(Socket.java:452)
         at java.net.Socket.connect(Socket.java:402)
         at java.net.Socket.<init>(Socket.java:309)
         at java.net.Socket.<init>(Socket.java:153)
         at com.evermind.server.rmi.RMIConnection.connect(RMIConnection.java:2216)
         at com.evermind.server.rmi.RMIConnection.lookup(RMIConnection.java:1692)
         at com.evermind.server.rmi.RMIServer.lookup(RMIServer.java:678)
         at com.evermind.server.rmi.RMIContext.lookup(RMIContext.java:134)
         ... 2 more
    Process exited with exit code 0.

    After you drop an ejb into the designer, you'll see a <ejb>Client1 instance created for the ejb in the backing bean (i.e. Page1.java). The client instance is a wrapper for the ejb. It contains all the remote methods available on your ejb. In your web app, you can invoke any methods on the client instance as if you're calling methods on a regular java object. The wrapper class knows how to invoke the corresponding methods on the ejb for you.
    -dongmei

  • Problem with finding data-source

    I get the following exception: javax.naming.NameNotFoundException: jdbc/localDatabaseDS not found
    when i try to initiate my ds (datasource). Does anybody know what to do?
    class =
    import java.sql.Connection;
    import java.sql.SQLException;
    import javax.sql.DataSource;
    import javax.naming.Context;
    import javax.naming.InitialContext;
    import javax.naming.NamingException;
    import javax.naming.NameNotFoundException;
    * This class handles handles the connectionpool business <br>
    * @author Taeke de Jong
    public class DbConnectionPool {
    private DataSource ds = null;
    * constructor with datasource from JNDI
    public DbConnectionPool(String dataSource)
    try {
    Context context = new InitialContext();
    ds = (DataSource) context.lookup('jdbc/localDatabaseDS');
    catch(NameNotFoundException nox) {System.out.println(nox.toString());}
    catch(NamingException nex) {System.out.println(nex.toString());}
    web.xml =
    <servlet>
    <servlet-name>DbConnectionServlet_2</servlet-name>
    <servlet-class>minlnv.ifw.common.connection.DbConnectionServlet</servlet-class>
    <init-param>
    <param-name>databaseName</param-name>
    <param-value>localDatabase</param-value>
    </init-param>
    <init-param>
    <param-name>dataSource</param-name>
    <param-value>jdbc/localDatabaseDS</param-value>
    </init-param>
    <load-on-startup>2</load-on-startup>
    </servlet>
    <resource-ref>
    <description>JNDI DataSource localDatabase IFW</description>
    <res-ref-name>jdbc/localDatabaseDS</res-ref-name>
    <res-type>javax.sql.Datasource</res-type>
    <res-auth>APPLICATION</res-auth>
    </resource-ref>
    data-sources.xml =
    <data-source class="com.evermind.sql.DriverManagerDataSource"
    connection-driver="oracle.jdbc.driver.OracleDriver"
    ejb-location="jdbc/localDatabaseDS"
    inactivity-timeout="30"
    location="jdbc/localDataseCorDS"
    name="localDatabase"
    pooled-location="jdbc/localDatabasePooledDS"
    url="jdbc:oracle:thin:@10.160.140.30:1521:ifwt"
    // left out password and username
    min-connections="7" max-connections="10" connection-retry-interval="1" xa-location="jdbc/xa/OracleXADS"
    />

    Do not use the "hardcoded" examples from the book. Check the deployed data-sources and use them as parameter calling lookup method.
    The following have been tested using a simple servlet with Jdeveloper 9.0.5.2 but I think other Jdeveloper/OC4J versions work similar.
    My application is called ds.
    The following command lists the datasources which are deployed with the application.
    I ran the following command against the %JDEV_HOME%\j2ee\home standalone OC4J server but it should work against the embedded OC4J server too.
    Here is the command to list the available datasources:
    C:\jdev9052\j2ee\home>\jdk142_04\bin\java -jar admin.jar ormi://localhost admin welcome -application ds -dataSourceInfo
    And here is the output of the command.
    DataSource info:
    com.evermind.sql.DriverManagerXADataSource/ds/jdbc/xa/BookDBXADS - cached: 0 used: 0 total: 0
    com.evermind.sql.OrionPooledDataSource/ds/jdbc/BookDBPooledDS - cached: 0 used: 0 total: 0
    com.evermind.sql.OrionCMTDataSource/ds/jdbc/BookDBDS - cached: 0 used: 0 total: 0
    com.evermind.sql.DriverManagerXADataSource/ds/jdbc/xa/DEVXADS - cached: 0 used: 0 total: 0
    com.evermind.sql.OrionPooledDataSource/ds/jdbc/DEVPooledDS - cached: 1 used: 0 total: 1
    com.evermind.sql.OrionCMTDataSource/ds/jdbc/DEVDS - cached: 1 used: 0 total: 1
    ds = ds my application
    jdbc/DEVDS = string parameter used in lookup method
    jdbc/DEVPooledDS = string parameter used in lookup method
    Checking the j2ee application directory we can find the same:
    C:\>dir C:\jdev9052\j2ee\home\applications\ds\META-INF
    Volume in drive C has no label.
    Volume Serial Number is A83F-C94A
    Directory of C:\jdev9052\j2ee\home\applications\ds\META-INF
    08/12/2004 10:14 AM <DIR> .
    08/12/2004 10:14 AM <DIR> ..
    08/12/2004 10:14 AM 395 application.xml
    08/12/2004 10:14 AM 933 data-sources.xml
    08/12/2004 10:14 AM 283 orion-application.xml
    3 File(s) 1,611 bytes
    2 Dir(s) 10,078,003,200 bytes free
    The orion-application.xml points the data-sources.xml file in the same directory. ds application uses the datasources which are listed in this file, not data-sources.xml in C:\jdev9052\j2ee\home\config directory.
    And here is the content of C:\jdev9052\j2ee\home\applications\ds\META-INF\data-sources.xml
    C:\>more C:\jdev9052\j2ee\home\applications\ds\META-INF\data-sources.xml
    <?xml version = '1.0' encoding = 'windows-1252'?>
    <!DOCTYPE data-sources PUBLIC "Orion data-sources" "http://xmlns.oracle.com/ias/dtds/data-sources.dtd">
    <data-sources>
    <data-source name="jdev-connection-BookDB" class="com.evermind.sql.DriverManagerDataSource" location="jdbc/BookDBCoreDS" x
    a-location="jdbc/xa/BookDBXADS" ejb-location="jdbc/BookDBDS" pooled-location="jdbc/BookDBPooledDS" connection-driver="oracle
    .jdbc.driver.OracleDriver" username="myname" password="mypw" url="jdbc:oracle:thin:@122.118.222.17:1521:DXX" inactivity-timeout
    ="30"/>
    <data-source name="jdev-connection-DEV" class="com.evermind.sql.DriverManagerDataSource" location="jdbc/DEVCoreDS" xa-loca
    tion="jdbc/xa/DEVXADS" ejb-location="jdbc/DEVDS" pooled-location="jdbc/DEVPooledDS" connection-driver="oracle.jdbc.driver.Or
    acleDriver" username="myname" password="mypw" url="jdbc:oracle:thin:@122.118.222.17:1521:DXX" inactivity-timeout="30"/>
    </data-sources>
    ...location="jdbc/DEVDS"
    or
    ...location="jdbc/BookDBPooledDS"
    The lookup method needs the string(s) above (between "")

  • BUG: JBO-33001: Cannot find the configuration file bc4j.xcfg

    Hi,
    I get the exception JBO-33001: Cannot find the configuration file com\trivadis\adf\demos\login\model\common\bc4j.xcfg in the classpath
    after I have edited the file outside of JDev9052. Why? Because I followed the instructions of the help document "Modifying the JClient Login Dialog for JDBC". To get the JCLoginDialog you have to remove some lines in the bc4j.xcfg file.
    I have deleted the classes directory, rebuild the complete workspace, but I still get the exception.
    Any comments?
    Thanks,
    Markus
    Complete stacktrace:
    oracle.jbo.JboException: JBO-33001: Cannot find the configuration file com\trivadis\adf\demos\login\model\common\bc4j.xcfg in the classpath
         at oracle.jbo.client.Configuration.loadFromClassPath(Configuration.java:369)
         at oracle.jbo.common.ampool.PoolMgr.createPool(PoolMgr.java:272)
         at oracle.jbo.common.ampool.PoolMgr.findPool(PoolMgr.java:473)
         at oracle.adf.model.bc4j.DataControlFactoryImpl.findOrCreateSessionCookie(DataControlFactoryImpl.java:135)
         at oracle.adf.model.bc4j.DataControlFactoryImpl.createSession(DataControlFactoryImpl.java:220)
         at oracle.adf.model.bc4j.DataControlFactoryImpl.createSession(DataControlFactoryImpl.java:97)
         at oracle.jbo.uicli.mom.JUMetaObjectManager.loadCpx(JUMetaObjectManager.java:612)
         at com.trivadis.adf.demos.login.view.FormDeptView1.main(FormDeptView1.java:325)
    ## Detail 0 ##
    oracle.jbo.JboException: JBO-33000: Cannot find the configuration file registerConnectionsFromDocument
         at oracle.jbo.client.Configuration.registerConnectionsFromDocument(Configuration.java:1052)
         at oracle.jbo.client.Configuration.loadFromStream(Configuration.java:264)
         at oracle.jbo.client.Configuration.loadFromClassPath(Configuration.java:352)
         at oracle.jbo.common.ampool.PoolMgr.createPool(PoolMgr.java:272)
         at oracle.jbo.common.ampool.PoolMgr.findPool(PoolMgr.java:473)
         at oracle.adf.model.bc4j.DataControlFactoryImpl.findOrCreateSessionCookie(DataControlFactoryImpl.java:135)
         at oracle.adf.model.bc4j.DataControlFactoryImpl.createSession(DataControlFactoryImpl.java:220)
         at oracle.adf.model.bc4j.DataControlFactoryImpl.createSession(DataControlFactoryImpl.java:97)
         at oracle.jbo.uicli.mom.JUMetaObjectManager.loadCpx(JUMetaObjectManager.java:612)
         at com.trivadis.adf.demos.login.view.FormDeptView1.main(FormDeptView1.java:325)
    ## Detail 0 ##
    java.lang.NullPointerException
         at oracle.jbo.client.Configuration.registerConnectionsFromDocument(Configuration.java:1026)
         at oracle.jbo.client.Configuration.loadFromStream(Configuration.java:264)
         at oracle.jbo.client.Configuration.loadFromClassPath(Configuration.java:352)
         at oracle.jbo.common.ampool.PoolMgr.createPool(PoolMgr.java:272)
         at oracle.jbo.common.ampool.PoolMgr.findPool(PoolMgr.java:473)
         at oracle.adf.model.bc4j.DataControlFactoryImpl.findOrCreateSessionCookie(DataControlFactoryImpl.java:135)
         at oracle.adf.model.bc4j.DataControlFactoryImpl.createSession(DataControlFactoryImpl.java:220)
         at oracle.adf.model.bc4j.DataControlFactoryImpl.createSession(DataControlFactoryImpl.java:97)
         at oracle.jbo.uicli.mom.JUMetaObjectManager.loadCpx(JUMetaObjectManager.java:612)
         at com.trivadis.adf.demos.login.view.FormDeptView1.main(FormDeptView1.java:325)

    Repost.
    The original post date was Sep 05 2004, not Aug 17 2001. :-)

  • 10.1.2: Problem with ConrolHint Date-Formatter

    Hi,
    when defining an control hint of format type Simple Date and format "yyyy-MM-dd G 'at' hh:mm:ss" in an EO the business components browser shows values like "2005-01-04 n. Chr. at 12:00:00". But the SQL column contains a correct time fragment like "9:35:21.0". Without control hint definition the value is displayed as "2005-01-04 9:35:21.0" !!
    The attribute is defined as DATE/oracle.jbo.domain.Date.
    Any workaround?
    With JDev9052 I get the same results! Please, have a look at Date (Formatter) problem in JDev 9052
    Markus

    Hello,
    is is bug really not fixed?
    When I take a look at the Entries in the Bug Fixed List
    (Bugs Fixed in Oracle JDeveloper 10g 10.1.2), I would have though differently:
    2825228 3730910 BC4J RT DEFAULTDATEFORMATTER DOES NOT SUPPORT NEW TIMESTAMP DOMAIN?
    3730910 BC4J DOMAIN TIMESTAMP DOMAIN NOT EQUIVALENT TO JAVA.SQL.TIMESTAMP, FORMATING BROKEN?
    3668688 3730910 BC4J DATA_TAGS TIME VALUES NOT SHOWN IN JSP - WHEN USING SQL DIALECT SQL92?
    Or is this referring to an other problem?
    Greetings
    Harald.

  • Password protected JDev10g 9052 build 1618

    I downloaded the jdev9052.zip file from otn yesterday since I like to keep up to date on my development tools.
    When I unpacked it today, I was presented with the message that several files were password protected. What's up with that?
    The files are:
    * javaw.exe
    * hpi.dll
    * ioser12.dll
    * java.dll
    * net.dll
    * jvm.dll
    * verify.dll
    * zip.dll
    Can somebody PLEASE direct me to a passphrase I can use to unpack these files.
    And might I add; If this is a stunt from Oracle to increase the purchase level of it's products, it might be usefull to provide information on this before people start downloading what they think is a fully operational product.

    One impact of extracting on top of an old version of the product is that any extensions you had for the old version will continue to be loaded in the new version. Because the extension API has changed, these may fail at runtime in unexpected ways. Basically, files don't get deleted that have been removed in the new release.
    This of course brings up the old debate about whether JDev should have an installer... with an installer, you wouldn't have to worry about this (it would be the job of the installer to worry about it).
    That said, a lot of people really like the simple zip-and-go approach JDev takes to installation. Just always zip-and-go somewhere fresh... that's the tested and supported configuration, and we've had a few reports of problems when customers have extracted atop old releases.
    Thanks,
    Brian

  • HtmlFormActionLink creates an url with a null

    I would like to submit a Form
    Jdev9052 PDK 90402
    import = "oracle.portal.provider.v1.*,oracle.portal.provider.v1.http.*" session = "true" %>
    <FORM name="JSPPAGE" action="<%= HttpPortletRendererUtil.htmlFormActionLink(request, PortletRendererUtil.PAGE_LINK)+ "Page2.jsp" %>" method="POST">
    <%= HttpPortletRendererUtil.htmlFormHiddenFields(request, PortletRendererUtil.PAGE_LINK) %>
    <INPUT type="hidden" name="<%= HttpPortletRendererUtil.portletParameter(request, "suite")%>" value="Page2.jsp"/>
    <INPUT TYPE=SUBMIT NAME=Next VALUE="Suite">
    When I submit I get the following url
    http://81.57.68.1:8989/AAA-Proj000-context-root/htdocs/proj000/nullPage2.jsp
    I can't get rid of the string null!!
    Proj000 project
    proj000 portlet
    Proj000 showpage calls Page2.jsp through form and submit button
    Has someone an idea?
    thanks

    See http://www.javaworld.com/javatips/jw-javatip47.html

  • Error installing jdeveloper 10g

    i have this error when trying to unzip and install jdeveloper 10g (jdev9052.zip)
    it says..
    Error loading Theme
    The file "C:\WINDOWS\system32\Themes\MyTheme.Theme" is not a valid theme.
    therefore, i cant install jdeveloper 10g..which i need it for my school assignment.
    hope anyone out there can help me with this problem i'm encounting..thanks for your help
    ps: i'm using XP pro for my OS

    Try it on another computer this probably has more to do with your computer than with JDeveloper.
    Joris

Maybe you are looking for

  • Issues in procurement processs

    Hi Friends, I have recently got into a support project with is into procurement process(where data moves from sap to vendor non sap system and vice versa). So far i have come across issures like idoc failed with status 51, vendor didnt receive the pa

  • Voronoi package in java

    hi all, Can any body suggest me a robust voronoi package in java. I already tried compuational geometry package which has some bugs in the generation of voronoi diagram. Thanks in advance - Ravi Setti

  • Documentation writing stored procedures

    Hi, I wanna write some stored procedures but I cannot find any documentation. Usually I develop stored procedures in oracle (pl/sql) but now in MaxDB I'm really missing good documentation/books about programming MaxDB. Any links to docu's ? Thanx a l

  • I redownloaded itunes and now computer says it can't find the file

    I had to reload itunes, but now it doesn't recognize the music files I have on my computer. The message I get says " The song..........could not be used because the original file could not be found. Would you like to locate it?"  When I press locate

  • New Mozilla Firefox packages fix several vulnerabilities

    http://freshmeat.net/articles/view/2349/ Does arch FF safe?