Weblogic Console deployment

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • aldsaldrin
    New Member
    • Nov 2008
    • 31

    Weblogic Console deployment

    Hi,

    I'm trying to deploy an application to my managed server, already created the necessary Connection Pool and datasources but there is still an exception occuring.

    Exception:weblo gic.management. ApplicationExce ption: activate failed for BusinessService s.jar Module: BusinessService s.jar Error: Exception activating module: EJBModule(Busin essServices.jar ,status=PREPARE D) Unable to deploy EJB: PPrefDefRel from BusinessService s.jar: [EJB:011028]The DataSource with the JNDI name: jdbc/WASCustomer could not be located. Please ensure that the DataSource has been deployed successfully and that the JNDI name in your EJB Deployment descriptor is correct.

    As I said the datasource is already created and deployed. Already tried googling this but to no avail. What do you guys think is the problem?

    Many thanks,
    Aldrin
  • Dököll
    Recognized Expert Top Contributor
    • Nov 2006
    • 2379

    #2
    hey aldsaldrin!

    Would you mind posting your code? It's likely you aleady searched the forum on this, I pulled up a small list for you though:



    Hope you get an idea there. If nothing, you might want to try your connection as a simple ODBC connection just to see if at least you can connect to the server...


    Code:
    ......
    
    
        private Connection connection=null;
        private ResultSet rs = null;
        private Statement st = null;
        String connectionURL = "jdbc:odbc:Northwind";
      
          
        public InsertBean() 
        {
             try {
           // Load the database driver
          Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
          // Get a Connection to the database
          connection = DriverManager.getConnection(connectionURL, "root", "root"); 
          }catch(Exception e){
          System.out.println("Exception is ;"+e);
          }
            
        }  
    
    ......
    In a bit!

    Dököll
    Last edited by Dököll; Nov 23 '08, 06:53 PM. Reason: Code example for odbc...

    Comment

    • aldsaldrin
      New Member
      • Nov 2008
      • 31

      #3
      Hi Dokoll,

      Thanks on the help on my previous post. I've been testing my connection in the Weblogic Configuration wizard with this:

      Driver = oracle.jdbc.Ora cleDriver
      URL = jdbc:oracle:thi n:@localhost:15 98:D014
      User = user
      Password = password
      SQL Test = SELECT 1 FROM DUAL

      but the connection would neither show it passes or fails but instead it does not stop.Also I tried replacing the driver to what you suggested "sun.jdbc.odbc. JdbcOdbcDriver" but an error occurs: "No suitable Driver". What do you think is the problem?

      Many thanks,
      Aldrin

      Comment

      • Dököll
        Recognized Expert Top Contributor
        • Nov 2006
        • 2379

        #4
        Sorry!

        I did not mention it, it's included in the jre or sdk, if you have them installed.

        By having 'sun.jdbc.odbc. JdbcOdbcDriver' , your application calls jdbc/odbc driver...

        Have a look here:Using a PreparedStateme nt through sun.jdbc.odbc.J dbcOdbcDriver : JDBC ODBC*«*Database SQL JDBC*«*Java

        Has JNDI, if you'd like to try again, I just feel straight odbc helps tackle problems better.

        It's really pretty simple. Do stay tuned if links do not work...

        Dököll

        Comment

        Working...