CloudScape database

I downloaded SDK Enterprise 1.3 which i believe to contain CloudScape inside. The problem is i don't know how to get the interface up and running. Any help is appreciate it. I just want to use Cloudview GUI to create a database to run with my J2EE application. Please instruct me as to what i need to do.

First you need to download the Java 2 Standard Edition (formerly the "JDK") at:
http://java.sun.com/j2se/1.3/download-windows.html (scroll down and click the "continue" button).
Once downloaded, install it into the directory of your choice. I prefer c:\jdk1.x
Then, install the J2EE to the directory of your choice. Again, I prefer c:\j2sdkee1.x
Now, open C:\j2sdkee1.x\config\orb.properties and make sure host is set to localhost (it can be whatever you want, really, but localhost is the de facto standard).
Now, open C:\j2sdkee1.x\config\web.properties and change the port to 80, if it's not already.
Now, add these lines to the beginning of the j2ee.bat and cloudscape.bat files:
set JAVA_HOME=c:\jdk1.x
set J2EE_HOME=c:\j2sdkee1.x
Now add cloudscape jars to your system's path.
I'm running Windows 2000. This is what I appended to my system's path variable:
c:\jdk1.3\bin;C:\j2sdkee1.2.1\lib\j2ee.jar;C:\j2sdkee1.2.1\lib\cloudscape\client.jar;C:\j2sdkee1.2.1\lib\cloudscape\client.jar;C:\j2sdkee1.2.1\lib\cloudscape\cloudscape.jar;C:\j2sdkee1.2.1\lib\cloudscape\RmiJdbc.jar;C:\j2sdkee1.2.1\lib\cloudscape\tools.jar
That should do it, I think.
You can run cloudscape with:
C:\j2sdkee1.x\bin\cloudscape.bat -start
You can run J2EE by running:
C:\j2sdkee1.x\bin\j2ee.bat
Now open your browser, and go to:
http://127.0.0.1, or http://localhost
I'm sure there are other ways to configure and run everything. I'm sure my way is overkill, but it works for me, without any problems.
Cheers!

Similar Messages

  • How can I create a database connection to Cloudscape database in 9iJDeveloper?

    How can I create a database connection to Cloudscape database in
    9iJDeveloper?
    thanks.

    Hi,
    I assume you have a JDBC driver for Cloudscape.
    1. In the IDE System Navigator, expand the Connections Node.
    2. Right-click on the Database Connection and choose New
    Connection .. .
    3. Click pass the welcome screen.
    4. In Step 1, name your connection and choose "3rd party JDBC
    Driver"
    5. Follow the rest of the steps and provide username/password,
    class name and URL, test and you should be ready to go.
    Good luck.

  • Error while connecting to Cloudscape Database

    Hi All,
    I am working on Sun's reference implementation App Server verson 1.3.1. It comes shipped with cloudscape database. When I write try to connect to this App Server through JSP that calls methods through Enterprise Java Beans I get this Error Message:
    java.net.ConnectException: Connection refused: connect
    java.rmi.RemoteException: nested exception is: javax.ejb.EJBException: Unable to
    connect to database. Connection refused to host: XXXXXXXX; nested exception
    is:
    java.net.ConnectException: Connection refused: connect; nested exception
    is:
    javax.ejb.EJBException: Unable to connect to database. Connection refuse
    d to host: XXXXXXXXX; nested exception is:
    java.net.ConnectException: Connection refused: connect
    javax.ejb.EJBException: Unable to connect to database. Connection refused to hos
    t: XXXXXXXXX; nested exception is:
    java.net.ConnectException: Connection refused: connect
    <<no stack trace available>>
    Can any one help me solve this problem.
    Regards,
    Venky.

    Have you started the database?
    []s
    Michael

  • J2ee:tutorial:savingsaccount problem connecting to cloudscape database

    I'm running Windows ME, and have been working through the tutorial. I thought I had most of my path problems cleared up, but appartently one remains.
    Having successfully deployed the 'SavingsAccountApp.ear' when running it, the follow error is returned when using 'runclient -client SavingsAccountApp.ear -name SavingsAccountClient'
    Binding name:`java:comp/env/ejb/SimpleSavingsAccount`
    SavingsAccountClient main: Caught an exception.
    java.rmi.ServerException: RemoteException occurred in server thread; nested exce
    ption is:
    java.rmi.RemoteException: nested exception is: javax.ejb.EJBException: U
    nable to connect to database. SavingsAccountDB not found; nested exception is:
    javax.ejb.EJBException: Unable to connect to database. SavingsAccountDB
    not found
    java.rmi.RemoteException: nested exception is: javax.ejb.EJBException: Unable to
    connect to database. SavingsAccountDB not found; nested exception is:
    javax.ejb.EJBException: Unable to connect to database. SavingsAccountDB
    not found
    javax.ejb.EJBException: Unable to connect to database. SavingsAccountDB not found
    Another clue pops up when starting the J2EE server:
    Loading jar:/C:/J2SDKEE1.3/repository/alyosha/applications/SavingsAccountApp9941
    83966960Server.jar
    /C:/J2SDKEE1.3/repository/alyosha/applications/SavingsAccountApp994183966960Serv
    er.jar
    Binding name:`java:comp/env/jdbc/SimpleSavingsAccountDB`
    Warning: Reference reference java:comp/env/jdbc/SimpleSavingsAccountDB is using
    a JNDI name that is not bound: MySavingsAccount
    Application deployment successful : com.sun.ejb.containers.EntityContainer@d5aad
    This leads me to believe that there is something inapppropriate in the setup for JNDI performed during the application construction using deploytool. I've gone over it several times and can't find a problem.
    Any suggestions?
    p.s. I've got both the Converter and Cart applications up and running successfully, but not without significant struggle. Little by little I'm working through it. Thus I can offer help to others working through it on Windows ME.
    The cloudscape server starts up okay with this feedback:
    The

    Tony,
    When using deploytool to create the reference to the EJB, I used the name SavingsAccountDB as suggested in the tutorial.
    However, upon making the change you suggested the error message reads as such:
    Initiating login ...
    Binding name:`java:comp/env/ejb/SimpleSavingsAccount`
    SavingsAccountClient main: Caught an exception.
    java.rmi.ServerException: RemoteException occurred in server thread; nested exce
    ption is:
    java.rmi.RemoteException: nested exception is: javax.ejb.EJBException: s
    etEntityContext: Unable to connect to database. savingsaccount not found; nested
    exception is:
    javax.ejb.EJBException: setEntityContext: Unable to connect to database.
    savingsaccount not found
    java.rmi.RemoteException: nested exception is: javax.ejb.EJBException: setEntity
    Context: Unable to connect to database. savingsaccount not found; nested excepti
    on is:
    javax.ejb.EJBException: setEntityContext: Unable to connect to database.
    savingsaccount not found
    javax.ejb.EJBException: setEntityContext: Unable to connect to database. savings
    account not found
    <<no stack trace available>>
    The error message with the original name (SavingsAccountDB) reads as follows:
    Initiating login ...
    Binding name:`java:comp/env/ejb/SimpleSavingsAccount`
    Now calling create() to make a savings account
    SavingsAccountClient main: Caught an exception.
    java.rmi.ServerException: RemoteException occurred in server thread; nested exce
    ption is:
    java.rmi.RemoteException: nested exception is: javax.ejb.EJBException: s
    etEntityContext: Unable to connect to database. SavingsAccountHomeStub; nested
    exception is:
    javax.ejb.EJBException: setEntityContext: Unable to connect to database.
    SavingsAccountHomeStub
    java.rmi.RemoteException: nested exception is: javax.ejb.EJBException: setEntity
    Context: Unable to connect to database. SavingsAccountHomeStub; nested excepti
    on is:
    javax.ejb.EJBException: setEntityContext: Unable to connect to database.
    SavingsAccountHomeStub
    javax.ejb.EJBException: setEntityContext: Unable to connect to database. _Saving
    sAccountHome_Stub
    <<no stack trace available>>
    I'm wondering if the problem is something to do with the security manager. I upgraded the cloudscape database to 3.6.4 and since then have been getting this message with starting cloudscape:
    Sat Jul 07 22:12:02 EST 2001: [RmiJdbc] COM.cloudscape.core.JDBCDriver registere
    d in DriverManager
    Sat Jul 07 22:12:02 EST 2001: [RmiJdbc] Binding RmiJdbcServer...
    Sat Jul 07 22:12:02 EST 2001: [RmiJdbc] No installation of RMI Security Manager.
    Sat Jul 07 22:12:03 EST 2001: [RmiJdbc] RmiJdbcServer bound in rmi registry
    and when creating the savingsaccount table, the message has changed to this:
    Buildfile: build.xml
    init:
    create-savingsaccount-table:
    [java] ij version 3.6 (c) 1997-2001 Informix Software, Inc.
    [java] ERROR (no SQLState): error unmarshalling return; nested exception is
    [java] java.lang.ClassNotFoundException: c8e.z.k (no security manager:
    RMI class loader disabled)
    [java] ERROR (no SQLState): error unmarshalling return; nested exception is
    [java] java.lang.ClassNotFoundException: c8e.z.k (no security manager:
    RMI class loader disabled)
    [java] ij> drop table savingsaccount;
    [java] 0 rows inserted/updated/deleted
    [java] ij> create table savingsaccount
    [java] (id varchar(3) constraint pk_savings_account primary key,
    [java] firstname varchar(24),
    [java] lastname varchar(24),
    [java] balance decimal(10,2));
    [java] 0 rows inserted/updated/deleted
    [java] ij> exit;
    BUILD SUCCESSFUL
    I'm guessing it is finding the SavingsAccountDB database, but for some reason is not allowed to connect.

  • How to connect cloudscape database to jsp

    could someone help

    sorry im using ibm websphere and creating a dynamic web project that displays the contents of my cloudscape database when the JSP is ran on the websphere test server...no idea what im doin...if anyone has any help at all i would appreciate it quite a bit

  • Error connecting to CLOUDSCAPE database from EJB

    Hi All,
    I am working on Sun's reference implementation App Server verson 1.3.1. It comes shipped with cloudscape database. When I write try to connect to this App Server through JSP that calls methods through Enterprise Java Beans I get this Error Message:
    java.net.ConnectException: Connection refused: connect
    java.rmi.RemoteException: nested exception is: javax.ejb.EJBException: Unable to
    connect to database. Connection refused to host: XXXXXXXX; nested exception
    is:
    java.net.ConnectException: Connection refused: connect; nested exception
    is:
    javax.ejb.EJBException: Unable to connect to database. Connection refuse
    d to host: XXXXXXXXX; nested exception is:
    java.net.ConnectException: Connection refused: connect
    javax.ejb.EJBException: Unable to connect to database. Connection refused to hos
    t: XXXXXXXXX; nested exception is:
    java.net.ConnectException: Connection refused: connect
    <<no stack trace available>>
    Can any one help me solve this problem.
    Regards,
    Venky.

    Hi,
    check the following points.
    1.Make sure that Cloudscape is up.u can start this using teh command cloudscape -start
    2.set the datasorce properly.u can change this from deploy tool,tools->Server->datasources->standard configuration.
    use the default datasource jdbc/Cloudscape by leaving user/pwd as blank.
    HTH
    -asharafkk

  • Error when creating table in cloudscape database

    Hi, all:
    I installed j2sdk1.4.0, j2sdkee1.3.1 on windows XP. I am able to start j2ee, cloudscape and deploy without error. I try to follow the J2EE tutorial to setting up the database, I go to the j2eetutorial/examples directory and type "ant create-savingsaccount-table", I got error "java.lang.NoClassDefFoundError: COM/cloudscape/tools/ij".
    Following are the environment variables:
    JAVA_HOME C:\j2sdk1.4.0
    J2EE_HOME C:\j2sdkee1.3.1
    CLASSPATH %JAVA_HOME%\lib\tools.jar;%J2EE_HOME%\lib\j2ee.jar;%J2EE_HOME%\lib\jhall.jar;%J2EE_HOME%\lib\system\cloudutil.jar;%J2EE_HOME%\lib\system\cloudscape.jar;%J2EE_HOME%\lib\cloudscape\cloudclient.jar;%J2EE_HOME%\lib\cloudscape\RmiJdbc.jar
    cloudscape is from the j2ee1.3.1 bundle. does anyone know how to get around this?
    please help. thanks in advance.

    I'm having the same problem.
    I really did some searching put couldn't find a working solution :|
    This worked fine at work but when I continued learing at home it didn't work anymore. I have xp at home and nt4 at work.

  • How to deploy the cloudscape database's datasource?thanks a lot

    i have waited for serval days,
    but no one could help me solve this question

    Could you be more precise ?
    What is datasource ?

  • Cloudscape - JSP - Unable to create database CloudscapeDB

    I created a Cloudscape database in a Java program:
    try { 
    Class.forName(COM.cloudscape.core.JDBCDriver).newInstance();
         connection = DriverManager.getConnection(jdbc:cloudscape:CloudscapeDB;create=true);
    A CloudscapeDB directory is automatically created in the same directory as my
    Java program. I then ran cloudview -start from the DOS prompt, opened my database, created my tables and added data.
    In another Java program, I display the list of customers:
    public void displayCustomers(){
    try { 
    Class.forName("COM.cloudscape.core.JDBCDriver").newInstance();
    connection = DriverManager.getConnection(jdbc:cloudscape:CloudscapeDB;create=true);
         Statement s = connection.createStatement();
         ResultSet rs = s.executeQuery("SELECT * FROM customer");
    This Java program works fine, displays the data from the customer table.
    I then take this same code and put in into a JSP to display the list of customers to a web page and deploy my application using the Deployment tool:
    <%
    try {     
    Class.forName(COM.cloudscape.core.JDBCDriver);
         connection = DriverManager.getConnection(jdbc:cloudscape:CloudscapeDB;create=true);
    My getConnection() method throws the following SQL Error:
    SqlException Error Thrown Failed to create database 'CloudscapeDB'
    I am able to access the CloudscapeDB using the same driver and URL in the Database Tool but I don't know what I am doing wrong in my JSP.
    In the Deployment Tool, I have configured the Driver Class as COM.cloudscape.core.JDBCDriver and the JNDI Name as jdbc/CloudscapeDB and the JDBC URL as jdbc:cloudscape:CloudscapeDB;create=true. I am not sure I even needed to do this.
    Any idea why my JSP cannot create the CloudscapeDB? I believe the CLASSPATH is configured correctly because I am able to get access to the Cloudscape database in my Java program.
    Any help would be greatly appreciated.

    Hi, I saw your message in sun's forum. I am wondering how you g ot this issue resloved because I have a similar problem using Tomcat4.0 and cludscape 3.6. Would you please drop me a few lines and let me know your solution? I think it may be Tomcat configuration issue but just don't know how to fix it.
    Thanks in advance
    please reply to [email protected]
    I created a Cloudscape database in a Java program:
    try { 
    Class.forName(COM.cloudscape.core.JDBCDriver).newInsta
    ce();
    connection =
    =
    DriverManager.getConnection(jdbc:cloudscape:Cloudscape
    B;create=true);
    A CloudscapeDB directory is automatically created in
    the same directory as my
    Java program. I then ran cloudview -start from the
    DOS prompt, opened my database, created my tables and
    added data.
    In another Java program, I display the list of
    customers:
    public void displayCustomers(){
    try { 
    Class.forName("COM.cloudscape.core.JDBCDriver").newIns
    ance();
    connection =
    DriverManager.getConnection(jdbc:cloudscape:CloudscapeD
    ;create=true);
         Statement s = connection.createStatement();
    ResultSet rs = s.executeQuery("SELECT * FROM
    OM customer");
    This Java program works fine, displays the data from
    the customer table.
    I then take this same code and put in into a JSP to
    display the list of customers to a web page and deploy
    my application using the Deployment tool:
    <%
    try {     
    Class.forName(COM.cloudscape.core.JDBCDriver);
    connection =
    n =
    DriverManager.getConnection(jdbc:cloudscape:CloudscapeD
    ;create=true);
    My getConnection() method throws the following SQL
    Error:
    SqlException Error Thrown Failed to create database
    'CloudscapeDB'
    I am able to access the CloudscapeDB using the same
    driver and URL in the Database Tool but I don't know
    what I am doing wrong in my JSP.
    In the Deployment Tool, I have configured the Driver
    Class as COM.cloudscape.core.JDBCDriver and the JNDI
    Name as jdbc/CloudscapeDB and the JDBC URL as
    jdbc:cloudscape:CloudscapeDB;create=true. I am not
    sure I even needed to do this.
    Any idea why my JSP cannot create the CloudscapeDB? I
    believe the CLASSPATH is configured correctly because
    I am able to get access to the Cloudscape database in
    my Java program.
    Any help would be greatly appreciated.

  • How to resolve the datasource with Cloudspace database?

    Hi,
    I am running WebLogic 6.1 on Win2k and I have problem with
    Cloudscape database in Default Admin Server.
    === Start init method in myJDBCReadServlet.java ===
    Init Error: javax.naming.NameNotFoundException:
    Unable to resolve MyJDBCDataSource.
    Resolved: '' Unresolved:'MyJDBCDataSource' ; remaining name ''
    === Finish init method in myJDBCReadServlet.java ===
    1. I created simple table in the Cloudscape database using IJ utility and inserted
    some values:
    prompt>java -classpath %CLASSPATH%;..\lib\tools.jar COM.cloudscape.tools.ij
    ij version 3.5 (c) 1997-2000 Informix Software, Inc.
    ij> CONNECT 'jdbc:cloudscape:demo;create=true';
    WARNING 01J01: Database 'demo' not created, connection made to existing database
    instead.
    ij> SHOW CONNECTIONS;
    CONNECTION0* - jdbc:cloudscape:demo;create=true
    * = current connection
    ij> CREATE TABLE employee(name CHAR(25), location CHAR(20), id INTEGER);
    0 rows inserted/updated/deleted
    2. I created Connection Pool and Data Source using Default Console
    The Connection Pool configuration is the following:
    Name : MyJDBC Connection Pool
    URL : jdbc:cloudscape:demo
    Driver Classname: COM.cloudscape.core.JDBCDriver
    Properties : user=none password=none server=none
    My Data Source configuration is the following:
    Name : MyJDBC Data Source
    JNDI Name: MyJDBCDataSource
    Pool Name: MyJDBC Connection Pool
    I added the following line to myserver startup script to point
    to the database location:
    -Dcloudscape.system.home=./samples/eval/cloudscape/data
    3. I wrote the servlet and here is the piece of the myJDBCReadServlet
    code which generated the exception:
    public void init()
    System.out.println("=== Start init method in myJDBCReadServlet.java ===");
    try {
    ctx = new InitialContext();
    ds = (javax.sql.DataSource) ctx.lookup ("MyJDBCDataSource");
    } catch (Exception E) {
    System.out.println("Init Error: " + E);
    System.out.println("=== Finish init method in myJDBCReadServlet.java ===");
    Why it cannot find the database using JNDI name?
    Any help will be greatly appreciated,
    Jacob Nikom

    Great.
    Here is a link where you can find more cloudscape details:
    http://www.cloudscape.com/docs/doc_36/doc/html/coredocs/docs2.htm
    S.
    "jacob nikom" <[email protected]> wrote in message
    news:[email protected]...
    >
    Problem solved!
    Slava - thank you for your help.
    Yes, cloudscape.jar file should be on the CLASSPATH.
    I also put tools.jar from the same directory (I am not sure
    is it necessary or not, but I did not test it).
    However,it is not enough to run WebLogic with Cloudscape
    successfuly. You have to tell WebLogic where the database
    files are. To do it you have to include start-up option
    in the startWebLogic.cmd file.
    It looks like:
    -Dcloudscape.system.home="C:~\samples\eval\cloudscape\data"
    After that it runs. Actually, the file cloudscape.html in the
    directory ~\samples\eval\cloudscape has quite a bit of information.
    Unfortunately, it is difficult to comprehend it until you understand whatthe
    problem is.
    Regards,
    Jacob
    "Slava Imeshev" <[email protected]> wrote:
    Hi Jacob,
    You need to specify the Cloudscape classes in your
    CLASSPATH, which exists in weblogic/samples/eval/cloudscape/lib.
    Regards,
    Slava Imeshev
    "jacob nikom" <[email protected]> wrote in message
    news:[email protected]...
    Hi Slava,
    This is the source of the error:
    <Error> <JDBC>
    <Cannot startup connection pool "MyJDBC_Connection_Pool"
    Cannot load driver class: COM.cloudscape.core.JDBCDriver>
    but I don't know how to fix it.
    I don't know the name of the Cloudscape JDBC driver.
    I looked at cloudscape.jar file and found the following class file:
    COM/cloudscape/core/JDBCDriver.class
    Is it the right driver?
    I tried to use COM.cloudscape.core.XADataSource driver
    classname, but got the same problem - WebLogic cannot find it.
    Which .jar file has correct Cloudscape JDBC driver?
    What else should I do to ensure that driver loads properly?
    Thank you,
    Jacob Nikom
    "Slava Imeshev" <[email protected]> wrote:
    Ok. I don't see that neither connection pool nor data source
    trying to start. You did not added targets to them or may be
    you provided wrong target.
    S.
    "jacob nikom" <[email protected]> wrote in message
    news:[email protected]...
    Hi Slava,
    Thank you for your response. I am sending you the full
    log as .txt file attachment. It is not very large in order
    to zip it.
    I added some Cloudscape parameters to the startup script,
    so you can see them there. They show to the WebLogic where
    the database is located.
    Also, I think the database was running because I could see
    my tables using IJ utility (Cloudscape tool), however I am
    not sure how Cloudscape exactly starts and runs.
    Regards,
    Jacob Nikom
    "Slava Imeshev" <[email protected]> wrote:
    Could you zip the whole log and send it to me?
    I just want to see what the console says about
    creation of your datasources and pools.
    Regards,
    Slava Imeshev
    "jacob nikom" <[email protected]> wrote in message
    news:[email protected]...
    Hi Slava,
    This is the output with Stdout severity threshold = "info".
    I only split a couple of very long lines.
    <Oct 2, 2001 6:29:33 PM EDT> <Info> <HTTP>
    <[WebAppServletContext(5891807,myJDBCReadServlet,/myJDBCReadServlet)]
    myJDBCReadServlet:
    init>
    === Start init method in myJDBCReadServlet.java ===
    Init Error: javax.naming.NameNotFoundException: Unable to resolveMyJDBC_Data_Source.
    Resolved: '' Unresolved:'MyJDBC_Data_Source' ; remaining name
    === Finish init method in myJDBCReadServlet.java ===
    === Start service method in myJDBCReadServlet.java ===
    Service Error: java.lang.NullPointerException
    === Finish service method in myJDBCReadServlet.java ===
    "jacob nikom" <[email protected]> wrote:
    Hi Slava,
    Thank you very much for your response.
    I followed your advice and changed the names
    of my ConnectionPool and DataSource, removing
    all spaces. Now they are MyJDBC_Data_Source and
    MyJDBC_Connection_Pool (is underscore OK?).
    I think I turned on the message level on "info" few days ago.
    Could you remind me how to check it?
    I am sending you the full log of my session starting
    from the beginning up to the crush:
    prompt>"C:\WebLogic61\jdk131\bin\java" -hotspot -ms64m -mx64m
    -classpath
    .;.\lib\weblogic_sp.jar;.\lib\weblogic.jar;.\lib\cos.jar
    -Dweblogic.Domain=mydomain -Dweblogic.Name=myserver
    "-Dbea.home=C:\WebLogic61"
    -Dcloudscape.system.home="C:\WebLogic61\wlserver6.1\samples\eval\cloudsc
    a
    p
    e
    \data"
    >
    -Dweblogic.management.password= -Dweblogic.ProductionModeEnabled=false
    >
    "-Djava.security.policy==C:\WebLogic61\wlserver6.1/lib/weblogic.policy"
    weblogic.Server
    <Oct 2, 2001 5:21:57 PM EDT> <Info> <Security> <Getting bootpassword
    from user.>
    Enter password to boot WebLogic server:
    Starting WebLogic Server ....
    <Oct 2, 2001 5:22:02 PM EDT> <Notice> <Management> <Loadingconfiguration
    file
    .\config\mydomain\config.xml ...>
    <Oct 2, 2001 5:22:07 PM EDT> <Notice> <WebLogicServer> <StartingWebLogic
    Admin
    Server "myserver" for domain "mydomain">
    <Oct 2, 2001 5:22:10 PM EDT> <Notice> <Management> <Starting
    discovery
    of Managed
    Server...
    This feature is on by default, you may turn this off bypassing -Dweblogic.management.discover=false>
    <Oct 2, 2001 5:22:17 PM EDT> <Notice> <Management> <Application
    Poller
    started
    for development server.>
    <Oct 2, 2001 5:22:17 PM EDT> <Notice> <WebLogicServer><SSLListenThread
    listening
    on port 7002>
    <Oct 2, 2001 5:22:17 PM EDT> <Notice> <WebLogicServer>
    <ListenThread
    listening
    on port 7001>
    <Oct 2, 2001 5:22:18 PM EDT> <Notice> <WebLogicServer> <StartedWebLogic
    Admin
    Server "myserver" for
    domain "mydomain" running in Development Mode>
    === Start init method in myJDBCReadServlet.java ===
    Init Error: javax.naming.NameNotFoundException: Unable to
    resolve
    MyJDBC_Data_Source.
    Resolved: '' Unresolved:'MyJDBC_Data_Source' ; remaining name
    === Finish init method in myJDBCReadServlet.java ===
    === Start service method in myJDBCReadServlet.java ===
    Service Error: java.lang.NullPointerException
    "Slava Imeshev" <[email protected]> wrote:
    Jacob,
    Just FYI, DataSource or ConnectionPool name can not
    contain spaces. Change the names and let me know if it helps.
    Regards,
    Slava Imeshev
    "jacob nikom" <[email protected]> wrote in message
    news:[email protected]...
    Hi Slava,
    Thank you for your message. I did assign target to
    my Connection Pool and Data Source. It is "myserver".
    Also, there is not any error messages form WebLogic
    shell except the ones which I place in my message.
    So far the misery remains unresolved.
    Regards,
    Jacob Nikom
    "Slava Imeshev" <[email protected]> wrote:
    Hi Jacob,
    Make sure you assigned targets to the connection pool and
    data
    source.
    Also
    check Weblogic shell console for errors.
    Regards,
    Slava Imeshev
    "jacob nikom" <[email protected]> wrote in message
    news:[email protected]...
    Hi,
    I am running WebLogic 6.1 on Win2k and I have problem
    with
    Cloudscape database in Default Admin Server.
    === Start init method in myJDBCReadServlet.java ===
    Init Error: javax.naming.NameNotFoundException:
    Unable to resolve MyJDBCDataSource.
    Resolved: '' Unresolved:'MyJDBCDataSource' ; remainingname
    === Finish init method in myJDBCReadServlet.java ===
    1. I created simple table in the Cloudscape database using
    IJ
    utility
    and
    inserted
    some values:
    prompt>java -classpath %CLASSPATH%;..\lib\tools.jarCOM.cloudscape.tools.ij
    ij version 3.5 (c) 1997-2000 Informix Software, Inc.
    ij> CONNECT 'jdbc:cloudscape:demo;create=true';
    WARNING 01J01: Database 'demo' not created, connection
    made
    to
    existing
    database
    instead.
    ij> SHOW CONNECTIONS;
    CONNECTION0* - jdbc:cloudscape:demo;create=true
    * = current connection
    ij> CREATE TABLE employee(name CHAR(25), location
    CHAR(20),
    id
    INTEGER);
    0 rows inserted/updated/deleted
    2. I created Connection Pool and Data Source using Default
    Console
    The Connection Pool configuration is the following:
    Name : MyJDBC Connection Pool
    URL : jdbc:cloudscape:demo
    Driver Classname: COM.cloudscape.core.JDBCDriver
    Properties : user=none password=none server=none
    My Data Source configuration is the following:
    Name : MyJDBC Data Source
    JNDI Name: MyJDBCDataSource
    Pool Name: MyJDBC Connection Pool
    I added the following line to myserver startup script
    to
    point
    to the database location:
    -Dcloudscape.system.home=./samples/eval/cloudscape/data
    3. I wrote the servlet and here is the piece of themyJDBCReadServlet
    code which generated the exception:
    public void init()
    System.out.println("=== Start init method inmyJDBCReadServlet.java
    ===");
    try {
    ctx = new InitialContext();
    ds = (javax.sql.DataSource) ctx.lookup
    ("MyJDBCDataSource");
    } catch (Exception E) {
    System.out.println("Init Error: " + E);
    System.out.println("=== Finish init method inmyJDBCReadServlet.java
    ===");
    Why it cannot find the database using JNDI name?
    Any help will be greatly appreciated,
    Jacob Nikom

  • Using Cloudscape for rdbmsRealm

    Using WLS60sp1 on WinNTor HP-UX I was unable to modify user information against the
    shipped cloudscape
    database. After boot up all users in the demo DB were displayed as expected but I
    couldn't modify users settings
    although the console confirmed that but nothing changed in Cloudscape. I wonder if
    I missed something as this
    is default WLS right after installing but I can't see what to specify more in the
    console and nothing has been
    written to the logs.
    Any ideas? Thx.

    Using WLS60sp1 on WinNTor HP-UX I was unable to modify user information against the
    shipped cloudscape
    database. After boot up all users in the demo DB were displayed as expected but I
    couldn't modify users settings
    although the console confirmed that but nothing changed in Cloudscape. I wonder if
    I missed something as this
    is default WLS right after installing but I can't see what to specify more in the
    console and nothing has been
    written to the logs.
    Any ideas? Thx.

  • How to access a Cloudscpae database?

    I have problems setting up and accessing the J2EE RI built-in database Cloudscape.
    In the EJB tutorial (EJBIntro) some EJB are created during the exercises. There's
    also a file named MusicStoreDB.jar which contains a prepared Cloudscape database.
    In the turorial it's been told:
    "Sun's J2EE Reference Implementation comes with a built-in version of the
    Cloudscape RDBMS. If you are using J2EE RI, you should initially use Cloudscape as
    your database to avoid configuration problems. You can learn how to substitute a
    different database after you become comfortable with creating and deploying
    applications using Cloudscape."
    and:
    "For Cloudscape, simply copy the MusicStoreDB.jar archive into the directory
    %J2EE_HOME%\cloudscape and then unjar the database. (All files unjar into the
    directory MusicStoreDB within the current working directory.)
    One last step is needed when running with J2EE RI: You need to modify the
    %J2EE_HOME%\config\default.properties file to define the datasources available
    to J2EE RI. This is done by changing the line that reads:
    jdbc.datasources=jdbc/Cloudscape|
    jdbc:cloudscape:rmi:CloudscapeDB;create=true
    (with everything on one line)
    to be:
    jdbc.datasources=jdbc/Cloudscape|
    jdbc:cloudscape:rmi:CloudscapeDB;create=true|
    jdbc/MusicStore|jdbc:cloudscape:rmi:MusicStoreDB;create=false
    (with everything on one line)
    and then restarting both Cloudscape and J2EE RI."
    Rather than doing the changes in "default.properties" I did in "resources.properties"
    but it dooesn't work.
    What am I doing wrong? Can anybody help me to get the database run? How do I have to
    register the MusicStoreDB within resources.properties and how can I access this database
    using the DatabaseTool provided with the EJB tutorial?
    Thank you.
    Dirk Ulrich
    Berlin, Germany
    [email protected]

    I'm having the same problem with even the same
    MusicStore demo .
    I'm trying to solve it.
    please let me know if you have any solution.
    Joseph.

  • Create a data source and database tables using WSAD

    Hi, guys:
    the following is from a tutorial:
    http://www-106.ibm.com/developerworks/websphere/techjournal/0306_wosnick/wosnick.html
    "To create the data source and Cloudscape database tables automatically, right click on the HelloWorldServer in the Servers view, and select the Create tables and data sources menu item. A dialog will then display showing that the data source and database tables were created successfully (Figure 5)."
    I am using WSAD 5.0 trial version. I cannot find Create tables and data sources menu item if I right click on the HelloWorldServer in the Servers view. I am wondering if this is because trial version does not have this feature?
    regards

    This question is a little off topic but you may get a reply. Please note this forum is about Sun's J2EE SDK and its related technologies. You may have better luck posting your question to an IBM specific resource.

  • Unable to connect to database properly in eclipse ,jboss  environment

    hi guys ....
    i wrote on samll singleton class for db connection to connect to cloudscape database in my web application.
    iam able to insert records but when selecting records iam not able to create instance of Connection object and iam tried to display connection obj its printing 'null' here is the output in the console...
    17:10:32,632 INFO [STDOUT] DBUtils queryToArrayList SQLException : No ManagedConnections available within configured blocking timeout ( 30000 [ms] ); - nested throwable: (javax.resource.ResourceException: No ManagedConnections available within configured blocking timeout ( 30000 [ms] ))
    17:10:32,632 INFO [STDOUT] org.jboss.util.NestedSQLException: No ManagedConnections available within configured blocking timeout ( 30000 [ms] ); - nested throwable: (javax.resource.ResourceException: No ManagedConnections available within configured blocking timeout ( 30000 [ms] ))
    17:10:32,632 INFO [STDOUT]      at org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:106)
    17:10:32,632 INFO [STDOUT]      at com.hcl.util.ConnectionManager.getConnection(ConnectionManager.java:42)
    17:10:32,632 INFO [STDOUT]      at com.hcl.util.DBUtils.queryToArrayList(DBUtils.java:215)
    17:10:32,632 INFO [STDOUT]      at com.hcl.employee.command.ListOfEmployeesCmd.performExecute(ListOfEmployeesCmd.java:39)
    17:10:32,632 INFO [STDOUT]      at com.gtech.command.target.LocalCommandTarget.executeCommand(LocalCommandTarget.java:37)
    17:10:32,632 INFO [STDOUT]      at com.gtech.command.TargetableCommandImpl.execute(TargetableCommandImpl.java:296)
    17:10:32,632 INFO [STDOUT]      at com.hcl.employee.actions.EmployeeDetailsDispatchAction.getListOfEmployees(EmployeeDetailsDispatchAction.java:82)
    17:10:32,632 INFO [STDOUT]      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    17:10:32,632 INFO [STDOUT]      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    17:10:32,632 INFO [STDOUT]      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    17:10:32,632 INFO [STDOUT]      at java.lang.reflect.Method.invoke(Method.java:324)
    17:10:32,632 INFO [STDOUT]      at org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAction.java:280)
    17:10:32,632 INFO [STDOUT]      at org.apache.struts.actions.DispatchAction.execute(DispatchAction.java:216)
    17:10:32,632 INFO [STDOUT]      at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
    17:10:32,632 INFO [STDOUT]      at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
    17:10:32,632 INFO [STDOUT]      at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
    17:10:32,632 INFO [STDOUT]      at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
    17:10:32,632 INFO [STDOUT]      at javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
    17:10:32,632 INFO [STDOUT]      at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
    17:10:32,632 INFO [STDOUT]      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
    17:10:32,632 INFO [STDOUT]      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
    17:10:32,632 INFO [STDOUT]      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
    17:10:32,632 INFO [STDOUT]      at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
    17:10:32,632 INFO [STDOUT]      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
    17:10:32,632 INFO [STDOUT]      at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
    17:10:32,632 INFO [STDOUT]      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
    17:10:32,632 INFO [STDOUT]      at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
    17:10:32,632 INFO [STDOUT]      at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:72)
    17:10:32,632 INFO [STDOUT]      at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
    17:10:32,632 INFO [STDOUT]      at org.jboss.web.tomcat.security.JBossSecurityMgrRealm.invoke(JBossSecurityMgrRealm.java:275)
    17:10:32,632 INFO [STDOUT]      at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
    17:10:32,632 INFO [STDOUT]      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
    17:10:32,632 INFO [STDOUT]      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
    17:10:32,632 INFO [STDOUT]      at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
    17:10:32,632 INFO [STDOUT]      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
    17:10:32,632 INFO [STDOUT]      at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
    17:10:32,632 INFO [STDOUT]      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
    17:10:32,632 INFO [STDOUT]      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
    17:10:32,632 INFO [STDOUT]      at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
    17:10:32,632 INFO [STDOUT]      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
    17:10:32,632 INFO [STDOUT]      at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
    17:10:32,632 INFO [STDOUT]      at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
    17:10:32,632 INFO [STDOUT]      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
    17:10:32,632 INFO [STDOUT]      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
    17:10:32,647 INFO [STDOUT]      at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
    17:10:32,647 INFO [STDOUT]      at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
    17:10:32,647 INFO [STDOUT]      at java.lang.Thread.run(Thread.java:534)
    17:10:32,647 INFO [STDOUT] Caused by: javax.resource.ResourceException: No ManagedConnections available within configured blocking timeout ( 30000 [ms] )
    17:10:32,647 INFO [STDOUT]      at org.jboss.resource.connectionmanager.InternalManagedConnectionPool.getConnection(InternalManagedConnectionPool.java:252)
    17:10:32,647 INFO [STDOUT]      at org.jboss.resource.connectionmanager.JBossManagedConnectionPool$BasePool.getConnection(JBossManagedConnectionPool.java:534)
    17:10:32,647 INFO [STDOUT]      at org.jboss.resource.connectionmanager.BaseConnectionManager2.getManagedConnection(BaseConnectionManager2.java:444)
    17:10:32,647 INFO [STDOUT]      at org.jboss.resource.connectionmanager.TxConnectionManager.getManagedConnection(TxConnectionManager.java:312)
    17:10:32,647 INFO [STDOUT]      at org.jboss.resource.connectionmanager.BaseConnectionManager2.allocateConnection(BaseConnectionManager2.java:496)
    17:10:32,647 INFO [STDOUT]      at org.jboss.resource.connectionmanager.BaseConnectionManager2$ConnectionManagerProxy.allocateConnection(BaseConnectionManager2.java:887)
    17:10:32,647 INFO [STDOUT]      at org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:102)
    17:10:32,647 INFO [STDOUT]      ... 46 more
    17:10:32,647 INFO [STDOUT] ----------------------------------------
    17:10:32,647 INFO [STDOUT] null
    iam getting this problem when iam accessing database 2nd time......
    for the first time iam getting the values......but for the second time iam not getting above exception......please help me out

    hi guys ....
    i wrote on samll singleton class for db
    r db connection to connect to cloudscape database in
    my web application.Since you say "singleton, make sure you have enough closed the previous connection object. may be you are trying to get the same instance second time, when the previous one is not yet closed.
    just my 2 cents.
    Sekar

  • JNDI with TOMCAT4.0 to CLOUDSCAPE ? need explanation

    Hi All,
    I'm using TOMCAT4.0 and Cloudscape.
    I got below code 1,2,and 3. When I ran it, I can't look up the cloudscape database ?
    (I print out "************** null ***************")
    Why? It looks like there is no link between jdbc/books and cloudscape database.
    How do we correct it? or what is missing in terms of network connection? Or any value that I have is incorrect?
    Thanks,
    Paul.
    1. web.xml
    <resource-ref>
    <res-ref-name>jdbc/books</res-ref-name>
    <res-type>javax.sql.DataSource</res-type>
    <res-auth>Container</res-auth>
    </resource-ref>
    2. server.xml
    <Resource name="jdbc/books" auth="Container"
    type="javax.sql.DataSource"/>     
    <ResourceParams name="jdbc/books">
    <parameter><name>user</name><value></value></parameter>
    <parameter><name>password</name><value></value></parameter>     
    <parameter><name>driverClassName</name>
    <value>COM.cloudscape.core.JDBCDriver</value></parameter>
    <parameter><name>driverName</name>
    <value>jdbc:cloudscape:rmi:books</value></parameter>
    </ResourceParams>
    3. cloudscape is running(database is OK) and I ran test.jsp
    javax.naming.Context ctx = new javax.naming.InitialContext();
    javax.sql.DataSource ds = (javax.sql.DataSource) ctx.lookup("java:comp/env/jdbc/books");
    if (ds == null)
         out.println("************** null ***************");
    else     
         javax.sql.Connectin conn = ds.getConnection();

    Hi Fredrik,
    (Thank, Mr. Expert)
    0. Cloudscape came with J2EESDK1.3 and is running.
    1. Basically, I already do a test with J2EE sun server
    J2EESDK1.3 and it work fine because there is physical link between
    the jdbc/books and jdbc:cloudscape:rmi:books. However, it look there is no
    physical link for Tomcat4.0.
    2.
    javax.sql.DataSource ds = (javax.sql.DataSource) ctx.lookup("java:comp/env/jdbc/books");
    give me "null"
    (3. I have to see why ?)
    -- Paul.

Maybe you are looking for

  • HERE WE GO AGAIN - BROADBAND IN SHETLAND AT A CRAW...

    One wonders how many blasted times this has to happen before something gets done to rectify our appalling broadband service in Shetland once and for all? Heres my latest BT speedtest result FAQ This Test comprises of Best Effort Test: -provides backg

  • Red Exclamation point says...

    Modem works, TC was checked out. My TC is connected to a Motorola modem via Ethernet cable. I can access the Internet wirelessly only if  the TC is factory reset)  fresh- with no password but I dont want this. But when I rename the TC and create a pa

  • Problem in Flex to get XML result from web services

    Hi all I am struggling a proplem for a whole day, i hope somebody can help. I am trying to get the list file of files located on the server, so i use flex to access a ASP.NET ASMX web services, that returns all the file names in a folder. I can see t

  • LUMIX LX3 .rw2 files are not being recognized in LR 3.6

    I have ACR   6.0.6 - any ideas on what could be happening? the error I get says -  can not import photo. When in the import dialog. Lightroom version: 3.6 [795620] Operating system: Windows 7 Home Premium Edition Version: 6.1 [7601] Application archi

  • Where Can I redownload the program that allows me to setup my time capsule.

    I recently replaced my old computer that had the setup program. My time capsule worked fine until I had to reset it because of connection issues. Now I have no way to setup my Time Capsule because I don't have the program. Thanks.