Problem accessing J2EE DataSource with BC4J

I'm trying to create MySQL database connection with BC4J via a J2EE DataSource. But without success.
The errors I receive:
Launching OC4j...
Oracle9iAS (9.0.3.0.0) Containers for J2EE initialized
2003-03-18 09:40:36 ApplicationModuleProvider - unspecified properties:
password drivertype user sid connectionstring host encryptiontype port
ApplicationModuleProvidernull
java.lang.NullPointerException
at oracle.cle.persistence.ConnectionProvider.getConnectionString(Connect
ionProvider.java:606)
at oracle.clex.persistence.bc4j.ApplicationModuleProvider.createModule(A
pplicationModuleProvider.java:331)
at oracle.clex.persistence.bc4j.ApplicationModuleProvider.getConnection(
ApplicationModuleProvider.java:200)
at oracle.cle.persistence.ConnectionProvider.getConnection(ConnectionPro
vider.java:669)
at oracle.cle.persistence.ConnectionManager.getConnection(ConnectionMana
ger.java:607)
at oracle.cle.persistence.DeploymentConnector.getConnection(DeploymentCo
nnector.java:168)
at oracle.cle.persistence.DeploymentConnector.getConnection(DeploymentCo
nnector.java:92)
at oracle.jheadstart.persistence.bc4j.handler.DataSourceHandlerImpl.getC
onnection(DataSourceHandlerImpl.java:331)
at oracle.jheadstart.persistence.bc4j.handler.DataSourceHandlerImpl.getA
pplicationModule(DataSourceHandlerImpl.java:874)
at oracle.jheadstart.persistence.bc4j.handler.DataSourceHandlerImpl.getD
ataSourceSet(DataSourceHandlerImpl.java:462)
at oracle.jheadstart.process.GetDataSourceSet.retrieveSimple(GetDataSour
ceSet.java:538)
at oracle.jheadstart.process.GetDataSourceSet.persist(GetDataSourceSet.j
ava:502)
at oracle.jheadstart.process.PersistingDataSource.start(PersistingDataSo
urce.java:251)
at oracle.cle.process.CLEStateMachine.start(CLEStateMachine.java:55)
at oracle.cle.process.Process.start(Process.java:97)
at oracle.cle.process.GenericProcess.start(GenericProcess.java:82)
at oracle.cle.process.ParentProcess.start(ParentProcess.java:218)
at oracle.cle.process.DisplayGroup.start(DisplayGroup.java:75)
at oracle.cle.process.CLEStateMachine.start(CLEStateMachine.java:55)
at oracle.cle.process.Service.start(Service.java:389)
at oracle.clex.process.controller.HttpServletController.doPost(HttpServl
etController.java:439)
at oracle.jheadstart.process.controller.JhsHttpServletController.doPost(
JhsHttpServletController.java:70)
at oracle.clex.process.controller.HttpServletController.doGet(HttpServle
tController.java:849)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletReque
stDispatcher.java:721)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(Ser
vletRequestDispatcher.java:306)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpReques
tHandler.java:767)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.ja
va:259)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.ja
va:106)
at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExec
utor.java:797)
at java.lang.Thread.run(Unknown Source)
ApplicationModuleProvider: ApplicationModuleProvidernull
GetDataSourceSet Exception: A Connection could not be made for class: oracle.emp
depdemo.resource.Department and sessionId: e3c568a09dec48d7b5a6cb86d041d22b orig
inal message is: ApplicationModuleProvider: ApplicationModuleProvidernull
See also thread MySQL at the JHeadstart forum.
data-sources.xml (oc4j\j2ee\home\config):
     <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:@172.16.2.240:1521:dev2"
          inactivity-timeout="30"
     />     
cle-providers.xml:
<cle-providers>
<provider name="EmpDepServiceProvider" class="oracle.clex.persistence.bc4j.ApplicationModuleProvider">
<property name="persistencebase" value="oracle.empdepdemo.persistence.bc4j"/>
<property name="modulename" value="oracle.empdepdemo.persistence.bc4j.Bc4jModule"/>
<property name="failover" value=""/>
<property name="scope" value="request"/>
<property name="managestate" value="false"/>
<property name="configuration" value="Bc4jModuleLocal"/>
</provider>
</cle-providers>
bc4j.xcfg:
<?xml version = '1.0' encoding = 'UTF-8'?>
<BC4JConfig>
<AppModuleConfigBag>
<AppModuleConfig name="Bc4jModuleLocal">
<DeployPlatform>LOCAL</DeployPlatform>
<DBconnection>jdbc:oracle:thin:@localhost:1521:orcl</DBconnection>
<JDBCName>ScottTiger</JDBCName>
<jbo.project>empdep</jbo.project>
<AppModuleJndiName>oracle.empdepdemo.persistence.bc4j.Bc4jModule</AppModuleJndiName>
<ApplicationName>oracle.empdepdemo.persistence.bc4j.Bc4jModule</ApplicationName>
</AppModuleConfig>
</AppModuleConfigBag>
<ConnectionDefinition name="ScottTiger">
<ENTRY name="JDBC_PORT" value="1521"/>
<ENTRY name="ConnectionType" value="JDBC"/>
<ENTRY name="HOSTNAME" value="localhost"/>
<ENTRY name="user" value="Scott"/>
<ENTRY name="ConnectionName" value="ScottTiger"/>
<ENTRY name="SID" value="orcl"/>
<ENTRY name="JdbcDriver" value="oracle.jdbc.driver.OracleDriver"/>
<ENTRY name="ORACLE_JDBC_TYPE" value="thin"/>
</ConnectionDefinition>
</BC4JConfig>

Thank you Dhiraj,
On my Oracle database it is working. But on MySQL I still have the same problem.
I'm still ivestigating it.
Thanks anyway.
Marcel

Similar Messages

  • Problem accessing R/3 with SSO ticket from the EP6.0

    Hi all,
    I have seen this thread: Problem accessing R/3 with SSO ticket from the EP6.0
    I know that it is possible to read SSO ticket from the Cookie in WebDynpro application.
    Now we are at the first step, we don't know how to read SSO ticket from the Cookie in WebDynpro application with java code.
    So anyone can help us?

    Hi,
    This has been discussed in a previous forum.Check this link.A code snippet is also there to read a cookie in webdynpro with this question
    How to implement SSO between Portal, Webdypro and ABAP system?
    I am not able to send the link exactly.
    Regards,
    Sowjanya.
    Message was edited by: Sowjanya Chintala

  • Accessing a DataSource with a userid, password.

    I am getting an SQL Exception with trying to create a database connection using a datasource with userid and password, I can log in to the database manually with the credentials but when I try to access via the datasource this is the error returned.
    java.sql.SQLException: java.sql.SQLException: User: doug, failed to be authenticated.
    <code>
    //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
    // start getConnection
    //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
    * Creates a new connection to the database
    * @return the connection object
    public Connection getConnection() throws Exception{
    Context context = new InitialContext();
    DataSource dataSource = (DataSource) context.lookup("JDBC-GSFP_ResourceTracker");
    return(dataSource.getConnection("doug","root"));
    } // end getConnection
    </code>
    Any Ideas,

    Hi
    When you created DataSource in Weblogic Admin Console, at one point, you will give all the db details like DB Host, port, sid and username/password. You can TEST the connection also right there. If it says success, thats it.
    Now, on the java side, you do Initial context and do JNDI Lookup for that DataSource and directly get the DataSource. There is no need to pass again username/password from Java Side. Just use dataSource.getConnection() without any arguments.
    public Connection getConnection() throws Exception{
    Context context = new InitialContext();
    DataSource dataSource = (DataSource) context.lookup("JDBC-GSFP_ResourceTracker");
    return(dataSource.getConnection());
    } // end getConnection
    Thanks
    Ravi Jegga

  • Problems accessing Yahoo email with Mail on iMac

    Hi, I can happily access my emails from Yahoo using my iPhone and iPad. However, neither my MacBook Pro or my iMac (both running Mavericks) can access my emails using "Mail". I can use Webmail on Safari ok, but whenever I try to access Yahoo mail with "Mail", I get a message saying I should re-enter my password, or that the Server is unavailable. I have 2 stage authorisation activated, and "Keychain", and I had to enter a special 'Yahoo-generated' password to allow my iOS units to work. However, each time I use my OSX units, an email says an unauthorised attempt to access my mails has been made.
    I've tried deleting the account and reinstalling and rebooting etc, to no avail. I think that Yahoo needs to authorise the iMac and Macbook, but I can't work out how to do it.

    Ive found the solution to this problem. Its the secondary sign in system used at Yahoo for unauthorised sign-ins. While its possible to authorise an iPad or iPhone using a special one off password, this cannot be done on a desk top. The simple solution is to switch off the secondary security sign-in option.

  • Problem accessing SQL Developer with user sys

    Hi Experts;
    I'm working with Oracle 10G, in Solaris 10, The DB apparently is working properly, but I can not access the DB thru SQL Developer. When I try to acccess with user sys, and I enter de password, in oracle role I select sysdba, when I choose connect I get this error message:
    ORA-01017: invalid username/password; logon denied
    However, I can connect with other user without any problem.
    I was connecting directly in the server, with sqlplus /as sysdba and I changed the password for user sys, but still the problem continues.
    What is wrong with this. I got the same problem if try to connect thru OEM.
    Thanks and regards
    Al
    Edited by: user12048358 on Jul 8, 2011 12:02 PM

    Hi Buntoro;
    Thank you for answer.
    First, I'm completely sure I'm using the correct password, to be sure I changed the password thru sqlplus.
    I'm using tns connection, btw, with the same connection, I can connect, but with other user.
    I was trying again, however, with the same results previous explained.
    But also I have the same problen when I tried to connect to OEM, and I was trying to stop the dbconsole, and found this:
    export ORACLE_SID=YAWIDBLAB
    emctl status dbconsole
    OC4J Configuration issue. /opt/oracle/102/oc4j/j2ee/OC4J_DBConsole_yawi-db-lab01_YAWIBLAB not found.
    export ORACLE_SID=YAWIDBLA
    emctl status dbconsole
    Oracle Enterprise Manager 10g Database Control Release 10.2.0.4.0
    Copyright (c) 1996, 2007 Oracle Corporation. All rights reserved.
    http://yawi-db-lab01:1158/em/console/aboutApplication
    Oracle Enterprise Manager 10g is running.
    Logs are generated in directory /opt/oracle/102/yawi-db-lab01_YAWIDBLA/sysman/log
    If I type export ORACLE_SID=YAWIDBLA and then sqlplus /nolog
    SQL> connect /as sysdba
    Connected to an idle instance.
    But, when I connect settiong the SID in this way:
    export ORACLE_SID=YAWIDBLAB
    sqlplus /nolog
    SQL*Plus: Release 10.2.0.4.0 - Production on Sat Jul 9 23:03:15 2011
    Copyright (c) 1982, 2007, Oracle. All Rights Reserved.
    SQL> connect /as sysdba
    Connected.
    SQL>
    Apparently, there is problem with the tnsnames. When I see the tnsnames in SQL DEVELOPER I see this: YAWIDBLA
    So, here is the tnsname, in order you have a better idea, what I have.
    YAWIDBLA =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = yawi-db-lab01)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = YAWIDBLAB)
    Is the first time I see this kind of problem.
    Have an idea of what's happening;
    Best Regards;
    Al

  • Problem accessing e.book with the adobe log in details

    Hi
    I bought an ebook. I downloaded it onto a laptop. I had access t
    o it no problems. I had a problem with the laptop and I had to change. I am having a problem opening the same book on the new one it is giving me the following error if I log in my Adobe details The vendor account you entered is not associated with the item you  are trying to open. Try again.

    Did you register ADE on the old laptop with an Abobe ID? 
    If so, you just need to register the new laptop with that same Adobe ID.
    ~~~
    If not, you may be a bit stuck.
    The Adobe DRM infrastructure has some very undesirable features, and you may have hit one.
    When you first run ADE it gives you the option to authorize with an AbodeID, or some other option ('Not Yet'?, I forget exactly how they put it).
    That second option effectively authorizes with an 'anonymous' ID which has some very undesirable properties.
    ADE does give a tiny bit of warning if you make that choice, but not nearly strong enough.
    Any DRM books you buy or borrow get associated with a particular ID when you first process the .acsm and download a DRM .epub file.
    After that point it is not possible to change the ID with which the book is associated.
    You can copy it between devices (up to 6) associated with the ID and all will go fine, but you can't use it on a device associated with a different ID.
    You can change the ID associated with a device (remove the old one, ctrl-shift-D for an ADE computer, ctrl-shift-E for a plugged in eReader device, and associate with a new ID),
    but you can't change the ID associated with a book.
    An implicit/anonymous ID cannot be associated with any other device, and once an anoymous ID is removed (or lost through loss of device), I do not believe that it is possible to recover that same ID.
    Therefore it is not possible to regain access ot the book.
    ~~~
    Your best bet may be to try a DRM stripper such as epubee (google it).  Do not then sell or give away the DRM stripped book to anyone else as that is not legal.
    I'm not sure if that will work except on a device which has authorization for the ID associated with the book; in which case you may still be stuck.

  • Problem accessing shared folders with SMB from a Windows machine

    When I reboot my Macmini, I cant access the shared folders from any Windows machine. On the Windows machine, I'm being prompted for my password, but event re-entering my password does help to get access.
    The workaround I found is to go to the MacOSX System Preferences, Sharing, File Sharing, Options, and to uncheck and re-check the checkbox Share file and folders using SMB (Windows). Then I can access again the shared forders from a Windows machine and I'm not re-prompted for my password.
    This is quite trooblesome to do that everytime I reboot my Mac. Is anybody experiencing the same pb? Any idea to fix it?
    Also, since Lion, I'm experiencing some connection interruption, especially when copying big files from my Mac to a Windows machine.

    Yes that is basically the only workaround for this problem. By chance do you have a SSD installed in the Mini?
    I had this problem on my MBP when I had a SSD installed. Problem goes away with the original drive or a Seagate XT series drive.
    If you don't have a SSD installed the only other option is to Wipe the drive and reinstall and test (Make a TM backup first so you can restore if the problem continues with the clean Re-Install).
    JosoSG wrote:
    When I reboot my Macmini, I cant access the shared folders from any Windows machine. On the Windows machine, I'm being prompted for my password, but event re-entering my password does help to get access.
    The workaround I found is to go to the MacOSX System Preferences, Sharing, File Sharing, Options, and to uncheck and re-check the checkbox Share file and folders using SMB (Windows). Then I can access again the shared forders from a Windows machine and I'm not re-prompted for my password.
    This is quite trooblesome to do that everytime I reboot my Mac. Is anybody experiencing the same pb? Any idea to fix it?
    Also, since Lion, I'm experiencing some connection interruption, especially when copying big files from my Mac to a Windows machine.

  • Problem accessing j2ee application in oracle 10g AS

    Hi,
    I have Oracle 10g AS installed on a Linux 4.0 system. I have deployed an ear file in the AS. The problem is while accessing the application, the login screen is showing, but after submitting it says "Page can not be displayed". The control is not passed to the Action class.
    Please help me ...
    Santosh

    Hi Santosh,
    This problem does not sound like an OC4J issue (unless this is a set up issue), it sounds more like your code is not passing the control to your Action class. Please check your struts configuration and make sure your mappings are set up correctly.
    Hope this helps.
    Deepak

  • Problem accessing oracle databse with JSP

    hI
    i'M TRYING TO ACCESS A ORACLE 8I DATABASE VIA A JSP. THE DATABASE IS LOCATED REMOTELY ON THE NETWORK AND I' USING JDEVELOPER 9i VERSION 9.0.3.1
    wHEN I RUN MY JSP, I WANT IT TO DISPLAY THE RESULT OF A QUERY ON MY JSP PAGE but instead i get this error on my error page : java.lang.NullPointerException
    what do u think is wrong with my code
    here it is :
    <%@ page language="java" %>
    <%@ page import = "java.sql.*" %>
    <%@ page import = "java.io.*" %>
    <%@ page errorPage="errorpage.jsp" %>
    <%@ page contentType="text/html;charset=windows-1252"%>
    <%
    String uname= request.getParameter("username");
    String pword= request.getParameter("password") ;
    String driverName = "oracle.jdbc.driver.OracleDriver" ;
    String dbUrl = "jdbc:oracle:thin:136.150.11.3:1521:orcl" ;
    /*String user = "hr8" ;
    String pass = "password" ; */
    Connection con= null ;
    Statement stmt = null;
         ResultSet rs = null;
    try
    { //loading driver
    Class.forName(driverName);
    catch (ClassNotFoundException e) {
    out.println("Unable to load driver class");
    try // connecting to the database
    con = DriverManager.getConnection(dbUrl,uname,pword);
    catch(SQLException ex){
    out.println("Error while connecting to the Database :" +
    ""+ ex.toString() );
    // create query
    stmt = con.createStatement();
    rs = stmt.executeQuery("select COUNTRY_NAME ,REGION_ID " +
    "from COUNTRIES where REGION_ID in (1,3,5,7,9);");
    while (rs.next())
    out.println(rs.getString(1));
    %>
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
    <title>
    LOGIN UNITRANSFER
    </title>
    </head>
    <body>
    <h2>
    I got it
    <%
    out.println(uname);
    %>
    </h2>
    <p>
    </body>
    </html>

    The dbUrl should be of the format:
    "jdbc:oracle:thin@" + serverName + ":" + serverPort
    + ":" + dataBaseSID;
    String dbUrl = "jdbc:oracle:thin:@136.150.11.3:1521:orcl";

  • Problems defining the datasource with coldfusion 9

    I just upgraded Macromedia MX7 with coldfusion 9. The local host was http://localhost:8500/ows. I am not sure if this address is the same for coldfusion 9. When I try to define the datasource, I still see Macromedia MX7 instead of coldfusion 9 in administor and I cannot proceed to Login because of the URL "http://127.0.0.1:8500/CFIDE/administrator/index.cfm", and a I get a message "the page cannot be displayed" Please HELP. Thanks, Conabre

    It sounds to me like you might have done a parallel install rather than an upgrade?
    Is there anything in your filesystem that looks like a CF9 install?
    What steps did you follow to perform the upgrade?
    If it's just a local machine, it might be quicker to not bother to work out what happened, and just install CF9 and migrate your stuff across to it, rather than doing an inline upgrade.  I have to concede I had such poor luck trying to upgrade CF in the past I abandoned it as a practice and always did a deinstall / resinstall rather than an upgrade.
    Adam

  • Problems accessing iTunes store with Mac OSX 10.4.11

    I am trying to access the iTunes store using Mac OSX 10.4.11 but it tells me to download the new version of iTunes. When I try to do that it says that the new version of iTunes is not supported by 10.4.11. What am I doing wrong? Do I actually need to buy the upgrade from 10.4.11 in order to buy stuff from iTunes again.
    Thanks

    Try using iTunes 9.2.1.
    (58566)

  • When attempting to log on to my mobile me account the "loading mail" process does not finish and I am unable to use any features of mobile me. There are no problems accessing mobile me with Safari.

    As soon as I enter my user name and password for mobile me the process of "loading mail" begins. It never finishes

    We are fellow users here on these user-to-user forums, you're not talking to iTunes Support nor Apple.
    Is the credit card registered to exactly the same name and address (including format and spacing etc) that you have on your iTunes account, it was issued by a bank in your country and you are currently in that country ? If it is then you could check with the card issuer to see if it's them that are declining it, and if not then try contacting iTunes support and see if they know why it's being declined : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page, then Account Management
    Each time that you add or change your card details then a temporary store holding charge may be applied to check that the card details are correct and valid (though that is usually $1 or the approximate local equivalent) : http://support.apple.com/kb/HT3702
    Did your daughter owe any amounts to iTunes ? Does anything show on your purchase history : http://support.apple.com/kb/HT2727 ? If they are proper charges which you don't think that you should have then you can contact iTunes Support via this page : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page, then Purchases, Billing & Redemption

  • TS3408 Safari on my new iPad mini isn't working - says server stopped responding but no problem accessing the web with my old iPod touch. What's going on?

    Safari isn't working on my iPad mini - "server stopped responding" but I can access the web on my old ipodtouch. What's up??

    All other apps were working.  We fixed it by reverting to factory settings and starting over.  Thank you!

  • Safari doesn't let me access a site with my membership data

    I have a problem accessing a website with my account login and password. Everytime I enter my login and password safari prompt me to enter the data again, even though both info are correct (no caps lock, of course), and even if store them in the key chain. I tried with Firefox, Camino and even Shiira. I double checked accessing with a pc and it works.
    Here is the error that I get:
    Per visulizzare questa pagina devi accedere all'area [to see this page you need to access the area] “I agree to the terms of service” on www....

    if it actually works with those other browsers
    try to reset asfari
    trash ~/libray/preferences/com.apple.safari.plist
    ~/libray/preferences/com.apple.keychain.plist
    ~/libray/keychains
    ~/libray/cache
    restart mac
    (trash those files without opening safari and then reset safari after restarting mac if issue still persist)

  • I can not accessed J2EE Server because i dont know username and password

    I set username and password as tutorials but not successful.
    and after that i can't access J2EE server with localhost:4848.
    please tell me the way access J2EE server.Or Default username and password of it.
    Thanks your help!

    Hi,
    Can you please send more infomation on exactly what is failing? Are you trying to execute asadmin commands?
    Also, which platform are you running the appserver on? Does the appserver show up in the list of currently running processes?
    I believe that the default username is "admin" and the password is "adminadmin".
    Thanks,
    Kyle

Maybe you are looking for

  • Authorized DHCP Servers not showing up in Authorized list.

    I have used ADSI edit to validate that the correct servers are under: CN=NetServices,CN=Services,CN=Configuration,DC=Domain,DC=com Currently we are in 2003 R2 mode for the Domain but all of our DC's are Windows 2008R2. I did find a value for showInAd

  • Mail crashes with beach ball on composing email

    Seem to be able to recreate this twice in 30 mins... was an existing users email that had been previously drafted with content ( no attachemnts) in the message body. Had to force quit mail and then restarted computer. the previous email draft was the

  • Error occured while using checkInFileStream of CIS

    Hi, I am having problem using the CIS in client mode. I am trying to use the CheckIn api. I am unable to find the problem. Following are the details: FLOW: Custom application – client Api – cis-server(Deployed in oracle application server) – content

  • Newbie - Please Be Gentle!

    Hi, iTunes recently accepted my vodcasts for listing. I got an url that takes me to it, but I cannot find it under the appropriate category. Is this because iTunes has too much stuff to possible list it all and should I just use the url to let potent

  • Shooting mouse cursor beyond intended straight line between two points.

    I copied this forum question from Lightroom, and I hope this is ok because I did not know how to express the problem I am experiencing: "The photoshop brush tool interprets shift-click as a brush stroke that connects the previous brush mouse-up posit