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

Similar Messages

  • I can't connect to MySQL database from The JSP Standard Tag Library

    Hi All !
    I have a problem, please help me anybody !
    I don't connect to MySQL database from jsp page using JSTL tag but from servlet all work correctly. I set my path and put �mysql-connector-java-3.1.13-bin.jar� in ENVIRONMENT WinXP(classpath=C:\Java\jdk1.5.0_10\jre\lib\ext\mysql-connector-java-3.1.13-bin.jar) and in War project folder �WEB-INF/lib� and in [TomcatServer]\common\lib.
    I have in folder�WEB-INF/lib� following files:
    antlr.jar
    commons-beanutils.jar
    commons-collections.jar
    commons-digester.jar
    commons-fileupload.jar
    commons-logging.jar
    commons-validator.jar
    jakarta-oro.jar
    jsf-api.jar
    jsf-impl.jar
    jstl.jar
    mysql-connector-java-3.1.13-bin.jar
    standard.jar
    struts.jar
    I'm using:
    NetBeans 5.5 Build200610171010 (bundled Tomcat 5.5.17)
    Ent.Pack 20061020 Visual Wb Pack 061103
    OS WinXP SP2
    Java 1.5.0_10
    MySQL 5.0.18-nt
    1:<%@page contentType="text/html"%>
    2:<%@page pageEncoding="UTF-8"%>
    8: <%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
    9: <%@taglib uri="http://java.sun.com/jstl/sql" prefix="sql"%>
    10:
    11: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    12: "http://www.w3.org/TR/html4/loose.dtd">
    13:
    14: <sql:setDataSource var="ds"
    15: driver="com.mysql.jdbc.Driver"
    16: url="jdbc:mysql://localhost:3306/test"
    17: user="root"
    18: password="xxxx"/>
    19:
    20:
    21:<sql:query sql="select name, age from People" var="res"
    22: dataSource="${ds}"/>
    I have received report on mistake when entered code at the top:
    �/index.jsp [21;0] According to TLD or attribute directive in tag file, attribute dataSource does not accept any expressions�
    I used instead of (dataSource="${ds}")->(dataSource="ds") but this did not work.
    After build and run I have received
    =========================================START=================================
    HTTP Status 500
    type Exception report:
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    org.apache.jasper.JasperException: /index.jsp(21,0) According to TLD or attribute directive in tag file, attribute dataSource does not accept any expressions
    org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:510)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:375)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:368)
    root cause
    org.apache.jasper.JasperException: /index.jsp(21,0) According to TLD or attribute directive in tag file, attribute dataSource does not accept any expressions
    org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:39)
    org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:405)
    org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:146)
    org.apache.jasper.compiler.Validator$ValidateVisitor.checkXmlAttributes(Validator.java:955)
    org.apache.jasper.compiler.Validator$ValidateVisitor.visit(Validator.java:710)
    org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1441)
    org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163)
    org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2213)
    org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2219)
    org.apache.jasper.compiler.Node$Root.accept(Node.java:456)
    org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163)
    org.apache.jasper.compiler.Validator.validate(Validator.java:1489)
    org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:166)
    org.apache.jasper.compiler.Compiler.compile(Compiler.java:295)
    org.apache.jasper.compiler.Compiler.compile(Compiler.java:276)
    org.apache.jasper.compiler.Compiler.compile(Compiler.java:264)
    org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:563)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:303)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:368)
    note The full stack trace of the root cause is available in the Apache Tomcat/5.5.17 logs.
    Apache Tomcat/5.5.17
    =======================================END================================
    Error: "According to TLD or attribute directive in tag file, attribute dataSource does not accept any expressions" - but according to documentation such parameter possible.
    BUT WHEN JOINING With DATABASE FROM SERVLET ALL WORK FINE.
    I read this doc - [http://tomcat.apache.org/tomcat-5.5-doc/jndi-datasource-examples-howto.html], this applicable if I Tomcat Admin, but i'am not Admin
    I simply user, i.e. I want to place its database on virtual host (Tomcat+(JSP-JSTL)+MySQL).
    There is idea how can resolve this problem
    Thank you in advance ;)

    For all how have similar problem.
    Decision instead of these ways
    <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
    <%@ taglib prefix="sql" uri="http://java.sun.com/jstl/sql" %>
    it is necessary to indicate these
    <%@ taglib prefix="sql" uri="http://java.sun.com/jsp/jstl/sql" %>
    <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

  • How to connect to  Oracle database from webdynprojava application

    Hi
    How to connect to  Oracle database from webdynprojava application. where can we provide the code to connect to database.?
    Thank You.

    Hi,
    You need to create  Java Bean model. The bean is a typical java bean with default constructor, getter and setter. You can have additional methods for query etc. The attributes in the class will be your model node and attributes.
    However you need to configure the connection and create JNDI using visual administrator before writing the code.
    You can also consider writing Session EJB with oracle and using them in WD.
    http://help.sap.com/saphelp_nwce10/helpdata/en/45/dcaa4f05535591e10000000a1553f7/frameset.htm
    Srini

  • How can I connect to a database from ipaq with cldc??

    how can I connect to a database from ipaq with cldc??

    Hi Again
    There is a library by Mimer which allows you do connect to a Mimer SQL Server, don't know must about it, but here is a link.
    http://developer.mimer.com/
    If that doesn't suit you, I suspect that you will have to use some sort of proxy solution. Either by creating a servlet to accept the sql string you want to send, or by creating your own custom proxy server running J2EE. The servlet or the proxy server must be able to receive an SQL String, do the query to the actual database and return the results in some sort of format to the mobile device. Maybe just a space delimited string.
    Hope this helps
    -Daur

  • Connecting to a database from another computer...

    hi guys!
    i just wonder if there is a simple way to connect to my database from another computer?
    do you have to change something in this method?
        private static Connection getConnection() {     Connection con = null;     try {         Class.forName("com.mysql.jdbc.Driver");         String url = "jdbc:mysql://localhost/Movies";         String user = "root";         String pw = "x";         con = DriverManager.getConnection(url, user, pw);         System.out.println("****Connected****");     }     catch (ClassNotFoundException e)     {         System.out.println(e.getMessage());           System.out.println("1");         System.exit(0);     }     catch (SQLException e) {         System.out.println(e.getMessage());           System.out.println("2");           System.exit(0);     }         return con;     }
    thanks! :)
    Edited by: Shaor-1 on Dec 22, 2008 3:47 AM

    hey!
    is there no one who knows how to do this?
    Here is my program that i want to change so it can connect to my mysql database but from another computer.
    import java.sql.*;
    import java.text.NumberFormat;
    import java.util.logging.Level;
    import java.util.logging.Logger;
    public class ListMovies {
            static String exist = "existed";
        static int ye = 2221;
        static double pr = 21.12;
    public static void main (String[] args) throws InterruptedException {
    go();
    public static void go(){
           NumberFormat cf = NumberFormat.getCurrencyInstance();
        for(int i = 0; i < 1; i--){
        ResultSet movies = getMovies();
        try
            while (movies.next()){
                Movie m = getMovie(movies);
                String msg = Integer.toString(m.year);
                msg += ": " + m.title;
                msg += " (" + cf.format(m.price) + ")";
                System.out.println(msg);
              Thread.sleep(1000*10);
                catch (InterruptedException ex) {
                    Logger.getLogger(ListMovies.class.getName()).log(Level.SEVERE, null, ex);
                }    catch (SQLException e)
            System.out.println(e.getMessage());
    public static void loanMovie(String d) {
        Connection con = getConnection();
        try {
            Statement stmt = con.createStatement();
            String insert = "insert into movie "
                    + "(title, year, price) "
                    + "values ("
                    + "\"" + d + "\"" + ", "
                    + ye + ", " + pr +");";
            int i =stmt.executeUpdate(insert);
            if (i == 1){
                System.out.println("Loan recorded");
            else
                System.out.println("Loan not recorded");    
        catch (SQLException e){
            System.out.println(e.getMessage());
            System.out.println("CRAP"); 
    private static ResultSet getMovies()
        Connection con = getConnection();
        try {
            Statement s = con.createStatement();
            String select = "Select title, year, price " +
                    "from movie order by year";
            ResultSet rows;
            rows = s.executeQuery(select);
            return rows;
        catch (SQLException e)
            System.out.println(e.getMessage());
        return null;
        private static Connection getConnection() {
         Connection con = null;
         try {
             Class.forName("com.mysql.jdbc.Driver");
             String url = "jdbc:mysql://localhost/Movies";
             String user = "root";
             String pw = "x";
             con = DriverManager.getConnection(url, user, pw);
             System.out.println("****INFO****");
         catch (ClassNotFoundException e)
             System.out.println(e.getMessage());
               System.out.println("1");
             System.exit(0);
         catch (SQLException e) {
             System.out.println(e.getMessage());
               System.out.println("2");
              System.exit(0);
            return con;
        private static Movie getMovie(ResultSet movies) {
            try {
                String title = movies.getString("Title");
                int year = movies.getInt("Year");
                double price = movies.getDouble("price");
                return new Movie(title, year, price);
            catch (SQLException e)
            System.out.println(e.getMessage());   
            return null;
        private static class Movie
            public String title;
            public int year;
            public double price;
            public Movie(String title, int year, double price)
                this.title = title;
                this.year = year;
                this.price = price;
    BTW_
    my computers ip is: 81.229.40.17
    the database is on that computer.
    thanks!

  • Connecting to a Database from an IView ?

    I have to create an IView which retrieves data from an Oracle database and display it in a tabular format in a IView.Can anybody please tell me how to connect to a database from an IView, where to specify the connection parameters to connect to a database.
    Can anybody help in this regard, it is urgent.

    Go in Content Administration - Portal Content. Make in a Folder of your choice rightclick an select:
    "Neu - iView - Datenbank-JDBC-iView". Then follow the wizard.
    Best Regards,
    Patrick
    http://www.Unternehmensportale.biz

  • Connecting to a database from Business Components JSP Application

    Hallo All!
    Can anybody give me an advice about connecting to a database from Business Components JSP Application? In all examples I see that Oracle user name and password placed in configuration file.
    How can user provide his own name and password to start Oracle session and how then hi can close this session?
    null

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Dmitri:
    Dear Laura,
    I mean first variant where the database would be the same:
    scott/tiger@database1
    foo/bar@database1
    Of course I understand that we must register every user in database by "CREATE USER XXX" and it is unacceptable for Internet. But it may be very convenient for an Intranet because we can build access restriction based on set of views without any changes in applications.
    Best wishes,
    Dmitri.<HR></BLOCKQUOTE>
    null

  • 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.

  • Connecting to multi databases from Oracle Forms

    I am trying to connect to 2 databases from my form. The primary
    connection is to a datbase where reports information(i.e. Report
    name,parameters) is saved. When the form runs and user picks a
    report to run, i want to change connection to a different
    database which reports runs against. I am using Forms6.0 against
    8I database.
    Can any one help ??
    Thanks

    Database links are the only answer if you need distributed
    transactions.
    If you only want to access several different databases without
    transaction coordination between those, then, you may use the
    facilities of the EXEC_SQL built-in package.

  • How to connect to oracle database from visual basic 2010 express edition

    I have installed visual basic 2010 express edition on windows xp. But visual basic 2010 express edition supports Microsoft sql server database file,Microsoft sql server compact 3.5, Microsoft access database file. I want to connect to oracle database from visual basic 2010 express edition. So what drivers are required and how to do connectivity?

    Hello,
    I wasn't clear on what you were using to make the connection. I had a look in Visual Studio 2010 (don't have express to test sorry).
    I think you mean the Data Sources available under the menu Data-> Datasources. this seems to match the description you give when I
    look at the list of datasource options.
    In here you can make ODBC connections via the Microsoft .net Data Provider .
    If you select ODBC as a datasource you can see listed the DSN's you created - for example I see 2 which use the Oracle ODBC driver.
    This assumes you installed an Oracle Client + the oracle version of the ODBC driver (comes with the oracle client).
    Once you created a server connection then you should see it in the server explorer.
    You can also download the Oracle Developer Tools for Visual Studio which is an add on for VS.
    ** I suspect this is only for VS 2010 and I didn't see that Express was supported.
    http://www.oracle.com/technetwork/developer-tools/visual-studio/overview/index-097110.html
    Let me know if that helps.
    John

  • Connect to remote database from forms

    hi,
    I installed 10g developer suite on windows.I have a 10g database running on HPUX server.
    I need to connect to this database from forms ( i,e from windows ).
    Do i need to install an Oracle client so that forms can talk to a remote database?
    I edited C:\Forms_Dev\NETWORK\ADMIN/tnsnames.ora to include the remote database entry. It's not working. So I am thinking maybe I need to install oracle client as a go between.
    Thanks

    Do i need to install an Oracle client so that forms can talk to a remote database?No, Tnsnames (NET8) is enough.
    Write us you tnsnames.ora or try
    tnsping <serverdb> from client, and check.

  • Can I connect Azure SQL Database from Project Siena ?

    Can I connect Azure SQL Database from Project Siena ?
    I want to connect Azure SQL Database of Office 365 SharePoint's Access App from Project Siena.
    Access App's Database is Azure SQL Database.
    and can connect to Excel/PowerBI/etc.
    Access App's Database can connect from specific location / any locations.
    Access App's Database can allow read-only connection / read-write connection.
    I want to create Windows App connected to Access App's Database.
    Regards,
    Yoshihiro Kawabata.

    Hi Yoshihiro,
    Could you share more with us about the high level scenario for what you are trying to accomplish offline? We can discuss further at
    [email protected]
    Once we are done, we will definitely share our findings with the community.
    Thanks!

  • ODBC Driver to connect to Ingres Database from OBIEE

    {font:Verdana}Hi, I have a requirement to source data from an Ingres Database into OBIEE. I have checked and found that Openlink Software provides an ODBC Driver to connect to Ingres Database from windows OS. Has any one tried this or any alternate method to source data from Ingres DB to OBIEE?
    Any pointers would be great.
    Thanks,
    Kiran{font}

    Kiran,
    +
    Sorry for bad news, but my opinion is that whatever isn't in doc that it's not supported. Oracle engineers do thorough testing and the list of compatible DBs is created. Also, even if you manage to make it work - you're going to hit a roadblock with any support issues you might have. Also, you won't be able to take advantages of certain DB-related OBIEE features. So you are're potentially exposing yourself to too many risks if anything goes wrong at mid-development stage.
    My advice would be building your DW around Oracle-supported DB.
    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

  • Error while connecting to the database from a JSP Page

    Hi,
    I am using a simple JSP page which is based on the sample JSP pages from OTN.
    When I try to connect to my database using the following code:
    InitialContext ic = new InitialContext();
    OracleDataSource ds = (OracleDataSource)ic.lookup("jdbc/OTN9iDS");
    m_connection = ds.getConnection();
    I get the following error:
    Naming exception Error while connecting to the database : javax.naming.NameNotFoundException: jdbc/OTN9iDS not found in JDBCTest-JDBCTestProject-webapp
    Does anybody know wht this is happening?
    Any help would be appreciated
    FRank

    Hi Frank,
    Are you using standalone OC4J or 9iAS ? If you are using standalone OC4J then you need to add a proper data source entry in %OC4J_HOME%j2ee\home\config\data-sources.xml file.
    If you are using 9iAS the you can log in to the Enterprise Manager console and add the data source entry by using wizard provided by 9iAS.
    Ensure the case of the JNDI lookup string, since, it is case sensitive.
    Hope this helps.
    Abhijeet

Maybe you are looking for

  • Question about memory upgrade on Satellite A210-127

    I upgraded my memory form 2Gb (2x1 Gb) to 4Gb (2x2 Gb) with two Kingston memory modules KVR667D2S5/2G (PC2-5300 CL5). For two weeks there were no problems but then I got blue screen every time when system boots reffering to I guss memory error. I tri

  • Problem in connecting SQL developer to Oracle database

    Hi,I don't know this is the correct forum for my problem I Just installed   Oracle Sql developer 3.2.I encountered a problem while creating a new connection with Oracle database 11g.. The error message says "Status : Failure -Test failed: The Network

  • I cannot use Adobe Cloud due to the age limit?

    I have just bought an Adobe Cloud Student and Teacher edition subscription and it is saying that I am under the required age limit. I purchased this product due to my understanding that any student from an accredited public school or high school coul

  • Mac 10.5.8 and itunes 11.1 compatability when using ipad2 with ios7

    I have updates my ipad to iOS7, but now it says on my mac (10.5.8) that i hav eto have Itunes 11.1 or later which i can't get. Would of been nice to have had some kind of compatability as I use the 2 devices in tandem regularily. Is there anything i

  • Requirement to attach a word document to an Appointment page

    Hi All, We have a requirement to attach or show a Word document which can be edited on the Appointment page. This document is like a form which has few questions , while creating an Appointment the use can open this and enter relevant answers and sav