Problem in establishing connection from MQSeries to Weblogic 7

          Hello,
          I was earlier having a connection established between MQSeries and Weblogic 6.1,
          that is working fine but recently I have upgraded to Weblogic 7.1
          Now when I try to have a connection between the MQSeries and the Weblogic 7.1
          then while establishing the connection it brings down the Weblogic server i.e.
          shuts it down. I am unable to track this problem. Please if any one has ever experienced
          similar type of problem or has a solution for this problem then let me know.
          Thanks in advance.
          JJ
          

Hi,
I guess the problem is due to the driver class not being part of the classpath in your web application. You should include the jar containing the driver class in your classpath. Please consult the documentation provided for your web server to do the same.
Regards,
Bhushan.

Similar Messages

  • Problem in establishing connection with mysql 5.0

    Hi,
    I am using JCAPS 5.1. I tried to insert data to mysql database table.
    But i got following error
    java.sql.SQLException: Error in allocating a connection. Cause:
    Physical Connection doesn't exist.
    My intention is to read file in which data are comma seperated and to
    populate those values to a mysql 5.0 database table.
    Sample DATA in file [test.txt]
    111,gg,23,MFG
    112,hh,24,MFG
    113,ii,25,RETAIL
    114,jj,26,IT
    Database table: employee
    eno,ename,eage,edept
    While creating JDBC OTD there is no problem in establishing connection with database. But after deploying i got above error.
    I have used Mysql 5.0 Connector/J JDBC driver. Added JDBC driver jar files to following directories as required.
    1) C:\JavaCAPS51\logicalhost\is\lib
    2)C:\JavaCAPS51\logicalhost\is\domains\test\lib
    Steps i have followed as per JDBC-ODBC -eway user guide doc.
    1) Created USerDefined OTD and added necessary fields
    2) Created JDBC OTD.
    3) Created JAVA collaboration and do business process for inserting
    4) Mapped all components by creating in Connectivity MAp
    5) created necessary external systems in envrionment explorer.[JDBC External System and File External System]
    6)Created Deployment profile
    5) Deployed it.
    After deploying it gives error as
    java.sql.SQLException: Error in allocating a connection. Cause: Physical Connection doesn't exist
    Please let me know the solution for problem.
    Message was edited by:
    VenkateshSampoornam

    In the environment definition,
    -> External Application JDBC
    -> Properties
    -> Outbound JDBC Connection
    You have the database URL in the "DriverProperties" field
    Valid URL would be : jdbc:mysql://localhost:3306/caps
    !! The doc says that this field is optional !! Seems to be an error in the doc:
    Hope this helps
    Seb

  • Connecting from VB to Weblogic

    Can Anyone give me the details of how to connect from VB to Weblogic?.
    Thanks

    There is the documentation on this in version 5.1. Look at the WebLogic COM
    integration. You might also want to look at a product called Jintegra, from
    Linar.com.
    Michael Girdley
    BEA Systems Inc
    "Sethu" <[email protected]> wrote in message
    news:3a11b6bf$[email protected]..
    Can Anyone give me the details of how to connect from VB to Weblogic?.
    Thanks

  • Problem to get Connection from JBoss AS

    PLEASE HELP ME....
    I GOT ERROR WHILE I TRYED TO GET A CONNECTION FROM JBOSS APP. SERVER.
    THE CODE IS
    package com.beo.atlas.common;
    public final class ServiceLocator     {
         private static final String JBOSS_INITIAL_CONTEXT_FACTORY = "org.jnp.interfaces.NamingContextFactory";
         private static final String JBOSS_PROVIDER_URL = "localhost:8080";
         private static final String JBOSS_URL_PKG_PREFIXES = "org.jboss.naming:org.jnp.interfaces";
         public static final String ATLAS_DATASOURCE = "java://myatlasdbpool";
         private static java.util.Hashtable dataSourceCache = null;
         private static ServiceLocator locator = null;
         static     {
              System.out.println("Locator Initializing");
              dataSourceCache = new java.util.Hashtable();
              locator = new ServiceLocator();
         private ServiceLocator()     {     }
         public static ServiceLocator newInstance()     {
              System.out.println("Returning the Locator Object");
              return locator;
         public java.sql.Connection getDBConnection() throws java.sql.SQLException,javax.naming.NamingException     {
              System.out.println("Getting Data base Connection....");
              if(dataSourceCache.containsKey(ATLAS_DATASOURCE))     {
                   System.out.println("Trying to get Connection from CACHE...");
                   System.out.println("Returning Connection Object from cache.");
                   return (java.sql.Connection)dataSourceCache.get(ATLAS_DATASOURCE);
              System.out.println("FAILED to get Connection from CACHE");
              System.out.println("Trying to create new Connection...");
              java.util.Properties props = new java.util.Properties();
              props.put(javax.naming.Context.INITIAL_CONTEXT_FACTORY,JBOSS_INITIAL_CONTEXT_FACTORY);
              props.put(javax.naming.Context.PROVIDER_URL,JBOSS_PROVIDER_URL);
              props.put(javax.naming.Context.URL_PKG_PREFIXES, JBOSS_URL_PKG_PREFIXES );
              javax.naming.InitialContext context = new javax.naming.InitialContext(props);
              Object o = context.lookup(ATLAS_DATASOURCE);
              System.out.println("Object Created...");
              javax.sql.DataSource dataSource = null;
              try     {
              dataSource = (javax.sql.DataSource)javax.rmi.PortableRemoteObject.narrow(o,javax.sql.DataSource.class);
              }catch(Exception e)     {     
              java.sql.Connection con = dataSource.getConnection();
              dataSourceCache.put(ATLAS_DATASOURCE,con);
              System.out.println("Returning new Connection Object.");
              return con;          
    ERROR
    Locator Initializing
    Returning the Locator Object
    Getting Data base Connection....
    FAILED to get Connection from CACHE
    Trying to create new Connection...
    Object Created...
    java.lang.ClassCastException
    at com.sun.corba.se.impl.javax.rmi.PortableRemoteObject.narrow(Unknown S
    ource)
    at javax.rmi.PortableRemoteObject.narrow(Unknown Source)
    at com.beo.atlas.common.ServiceLocator.getDBConnection(ServiceLocator.ja
    va:56)
    at AtlasClient.printData(AtlasClient.java:16)
    at AtlasClient.main(AtlasClient.java:8)
    Caused by: java.lang.ClassCastException: org.jnp.interfaces.NamingContext
    ... 5 more

    I've got the same problem. Working with JBoss 4.0.3 and Tomcat 5.5. The lookup goes fine and returns an object of type remote home, however when I perform the narrow() I get ClassCastException. I'm sure the client and the server have got the same file version as I built from the same source.
    [error]
    Caused by: java.lang.ClassCastException
         at com.sun.corba.se.impl.javax.rmi.PortableRemoteObject.narrow(PortableRemoteObject.java:229)
         at javax.rmi.PortableRemoteObject.narrow(PortableRemoteObject.java:137)
    [error]

  • Having problems sharing internet Connection from Macbook to Vonage Adapter

    Hello,
    I just got my Vonage adaptor and I am trying to share the Internet connection from my Macbook Pro (10.7.3) to the Adaptor to use the Vonage service bc my router is downstairs.
    I turned off my Firewall, hooked my Vonage adapter to the Macbook with the ethernet cable and then went to Sys Preferences > Sharing > Selected Internet Sharing > Share Connection from Wifi to computers using Ethernet, and it looks like everything is ok but when i try to use the phone which is connected to to Vonage Adapter, it says "Your Vonage device cannot connect to the internet, check to see if your high speed internet is down".
    I went and looked at my Network preferences and it shows Ethernet connected which is the Vonage Adapter and gives the following:
    IP Address: 169.254.163.167
    Subnet Mask: 255.255.0.0
    Is there something Im doing wrong? Ive seen on several forums that its possible to do but having bad luck. Any help is appreciated.

    All I know is that I got Ubuntu to share internet and offer IPs through DHCP by using Firestarter. I am very new to Solaris, however, and am looking forward to learning about it. I've just made it my regular desktop environment. Long as you can get Solaris to configure its network interface with DHCP after your Ubuntu is configured, you should be able to share to as many clients as you'd like. Fedora also works well for that, and in my opinion, it's a better Linux than Ubuntu, though Solaris remains a better Linux than Linux, right? Har.

  • Problem to establish connection what the wrong with this

    dears
    i want to access the oracle database without ODBC bridge.
    i dowload the thin driver from Oracle site.
    1.ojdbc14.jar is in my claspath.
    2.actually i do the following i have oracle 8.0 for winnt.
    go to system manager and create user "administrator" after this give grants dba to that user.
    now my code is as under
    import java.sql.*;
    public class LoadDriveroracleuser
    public Connection conn=null;
    public LoadDriveroracleuser()
    try{
    Class.forName("oracle.jdbc.driver.OracleDriver");
    conn=DriverManager.getConnection("jdbc:oracle:thin:@host:1521:database","administrator","allah");   
    }catch(Exception ex){
    MyOptionPane.MyErrorMessage(null,ex.getMessage());
    System.exit(0);
    }//end of constructor
    }//end of classthe exception is occur that// network adapter not established the connection.
    actually i am not knowing that host:1521:database how set these .
    i have standalone application.not using the server.
    plz guide me i am very thankful to u

    If Oracle is set up properly he should be able to
    connect using JDBC without having the client installed
    or any TNS names set. The JDBC driver alone is
    sufficient.
    It wouldn't be a bad idea to follow this suggestion,
    but it's not necessary for JDBC's sake.
    %Yeah of course it's not necessary for JDBC - it would just allow him to ascertain whether SQLplus works.
    Somehow i've a sneaky feeling that this 'database' that's being used to connect is just a marker/plain english instead of the actual name of the database :)

  • Problem to establish connection between Oracle SQL and JDBC

    Hi friends i have been trying this code from two days i donno whats wrong please try to sort the problem thank u in advance this is my program:
    //This is my Connection class
    package com.java.jdbc.util;
    import java.sql.Connection;
    import java.sql.DriverManager;
    import java.sql.SQLException;
    public class EmployeeUtil {
    public EmployeeUtil()
    public static Connection getconnection()
    Connection con=null;
    try {
    Class.forName("oracle.jdbc.driver.OracleDriver").newInstance();
    //DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
    con = DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:ORANT","system","manager");
    // Class.forName("sun.jdbc.odbc.OracleDriver").newInstance();
    // con = DriverManager.getConnection("jdbc:odbc:Javatut","System","manager");
    } catch (ClassNotFoundException e) {
    // TODO Auto-generated catch block
    e.printStackTrace();
    } catch (SQLException e) {
    // TODO Auto-generated catch block
    e.printStackTrace();
    } catch (InstantiationException e) {
    // TODO Auto-generated catch block
    e.printStackTrace();
    } catch (IllegalAccessException e) {
    // TODO Auto-generated catch block
    e.printStackTrace();
    return con;
    //This is my DB class:
    package com.java.jdbc.DB;
    import java.sql.Connection;
    import java.sql.ResultSet;
    import java.sql.SQLException;
    import java.sql.Statement;
    import com.java.jdbc.info.EmployeeInfo;
    import com.java.jdbc.util.EmployeeUtil;
    public class EmployeeDB {
    Connection connection=null;
    public EmployeeDB()
    //this.connection=EmployeeUtil.getconnection();
    public void select(EmployeeInfo empinfo)
    this.connection=EmployeeUtil.getconnection();
    String stb = "select * from employee";
    try {
    Statement stmt = connection.createStatement();
    ResultSet rs = stmt.executeQuery(stb);
    System.out.println(rs);
    //EmployeeInfo empinfo = new EmployeeInfo();
    while(rs.next())
    empinfo.setEmpId(rs.getString(1));
    empinfo.setEmpfName(rs.getString(2));
    empinfo.setEmplName(rs.getString(3));
    empinfo.setEmpAge(rs.getString(4));
    empinfo.setEmpSalary(rs.getString(5));
    System.out.println("The EmployeeID is : "+empinfo.getEmpfName());
    System.out.println("The Employee First Name is : "+empinfo.getEmpfName());
    System.out.println("The Employee Last Name is : "+empinfo.getEmplName());
    System.out.println("The Employee Age is : "+empinfo.getEmpAge());
    System.out.println("The Employee Salary is : "+empinfo.getEmpSalary());
    connection.commit();
    } catch (SQLException e) {
    // TODO Auto-generated catch block
    e.printStackTrace();
    //This is my info object
    package com.java.jdbc.info;
    public class EmployeeInfo {
    private String empId;
    private String empfName;
    private String emplName;
    private String empAge;
    private String empSalary;
    public String getEmpAge() {
    return empAge;
    public void setEmpAge(String empAge) {
    this.empAge = empAge;
    public String getEmpfName() {
    return empfName;
    public void setEmpfName(String empfName) {
    this.empfName = empfName;
    public String getEmpId() {
    return empId;
    public void setEmpId(String empId) {
    this.empId = empId;
    public String getEmplName() {
    return emplName;
    public void setEmplName(String emplName) {
    this.emplName = emplName;
    public String getEmpSalary() {
    return empSalary;
    public void setEmpSalary(String empSalary) {
    this.empSalary = empSalary;
    //This is my Controller class:
    package com.java.jdbc.controller;
    import com.java.jdbc.DB.EmployeeDB;
    import com.java.jdbc.info.EmployeeInfo;
    public class EmployeeController {
    public static void main(String args[])
    EmployeeDB empdb = new EmployeeDB();
    EmployeeInfo emp = new EmployeeInfo();
    empdb.select(emp);
    // I got these errors:
    java.sql.SQLException: Io exception: Got minus one from a read call
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:114)
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:156)
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:269)
    at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:210)
    at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java:251)
    at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:224)
    at java.sql.DriverManager.getConnection(Unknown Source)
    at java.sql.DriverManager.getConnection(Unknown Source)
    at com.java.jdbc.util.EmployeeUtil.getconnection(EmployeeUtil.java:18)
    at com.java.jdbc.DB.EmployeeDB.select(EmployeeDB.java:20)
    at com.java.jdbc.controller.EmployeeController.main(EmployeeController.java:11)
    Exception in thread "main" java.lang.NullPointerException
    at com.java.jdbc.DB.EmployeeDB.select(EmployeeDB.java:23)
    at com.java.jdbc.controller.EmployeeController.main(EmployeeController.java:11)

    Are you using Oracle 10.2 in shared server configuration under Windows?
    If so it's a driver bug (BUG - Connection pooling with 10g 10.1.3 Preview 4 App Server Oracle suggest to use OCI driver.

  • Problems with Database connection from a servlet

    Hi everybody:
    I got the following message:
    java.lang.ClassNotFoundException: weblogic/jdbc/oci/Driver
    when I try to connect to a Database.
    public Connection getConnection()
    Connection con = null;
    Driver myDriver = null;
    try
    Properties props = new Properties();
    props.put("user", "fangc");
    props.put("password", "fangc");
    myDriver = (Driver) Class.forName("weblogic.jdbc.oci.Driver").newInstance();
    con = myDriver.connect("jdbc:weblogic:oracle:occd01", props);
    catch(Exception e)
    System.out.println("Connection failed! - " e);
    finally
    return con;
    What am I doing wrong? I try the code without problem for a simple Java Client

    Cristina Fang wrote:
    >
    Hi everybody:
    I got the following message:
    java.lang.ClassNotFoundException: weblogic/jdbc/oci/DriverYou won't get that unless your code has:
    myDriver = (Driver) Class.forName("weblogic/jdbc/oci/Driver").newInstance();
    Make sure your servlet code is just like the right way that you have it
    below:
    myDriver = (Driver) Class.forName("weblogic.jdbc.oci.Driver").newInstance();
    Joe
    >
    when I try to connect to a Database.
    public Connection getConnection()
    Connection con = null;
    Driver myDriver = null;
    try
    Properties props = new Properties();
    props.put("user", "fangc");
    props.put("password", "fangc");
    myDriver = (Driver) Class.forName("weblogic.jdbc.oci.Driver").newInstance();
    con = myDriver.connect("jdbc:weblogic:oracle:occd01", props);
    catch(Exception e)
    System.out.println("Connection failed! - " e);
    finally
    return con;
    What am I doing wrong? I try the code without problem for a simple Java Client

  • Problem is establishing connection with MYSQL with JAVA on windows

    i have installed MYSQL 3.23.54 for window XP and a JDBC connector mysql-connector-java-2.0.14.
    i have set the classpath for JDBC driver as
    C:\> set CLASSPATH=\path\to\mm.mysql.jdbc-[version];%CLASSPATH%
    and my code for testing the connection is
    import java.sql.*;
    public class Connect
         public static void main (String[] args)
              Connection conn = null;
              try
                   String userName = "saqib";
                   String password = "123";
                   String url = "jdbc:mysql://localhost/test";
                   Class.forName ("org.gjt.mm.mysql.Driver").newInstance ();
                   conn = DriverManager.getConnection (url, userName, password);
                   System.out.println ("Database connection established");
              catch (Exception e)
                   System.err.println ("Cannot connect to database server");
              finally
                   try
                        if (conn != null)
                             conn.close ();
                             System.out.println ("Database connection terminated");
                   catch (Exception e) { /* ignore close errors */ }
    . the problem i'm facing is that when i compile and run the program the following message is generated.
    Exceprion in thread "main" java.lang.NoClassDefFoundError: Coonect
    please help me out to establist the connection. is the classpath which i have set is correct. i have placed the unziped driever in the folder c.
    thanks
    Saqib

    Maybe you should have typed "Connect" instead of "Coonect" at the command line?

  • Problems in SQL Connection from Java program to Oracle 8.1.7

    Hi,
    I am java program that connects to Oracle 8.1.7 .
    Client: java code on Windows 2000
    Server: oracle 8.1.7 on Solaris
    Java code uses two types of Connection Pools. One Pool uses "thin" connections and other pool uses "OracleConnectionPoolDataSource" class.
    The methods which use "thin" pool work great however the methods which use "OracleConnectionPoolDataSource" fail after 5 to 10 calls.
    Given below is the exception that I see in my log file.
    February 26, 2002 10:17:38 AM UTC: Debug.INFO: searchByNameCommono.jsp Error : Tpd2.openConnection(1)failed:DBConnPool2.getConnection(String) failed:Closed Connection
    com.commerceone.msbtpdapi.util.DBConnException: Tpd2.openConnection(1)failed:DBConnPool2.getConnection(String) failed:Closed Connection
         at com.commerceone.msbtpdapi.api.Tpd2.openConnection(Tpd2.java:138)
         at com.commerceone.msbtpdapi.api.TpdDBApi.searchTpsByCompanynameAndStatus(TpdDBApi.java:1685)
    Windows java code uses JDK 1.3.1
    Oracle machine has java version 1.2.2.
    Do I need to check for any settings like LD_LIBRARY_PATH on oracle machine ?
    Thanks a lot.
    Regards
    Mandar

    Hi,
    I am java program that connects to Oracle 8.1.7 .
    Client: java code on Windows 2000
    Server: oracle 8.1.7 on Solaris
    Java code uses two types of Connection Pools. One Pool uses "thin" connections and other pool uses "OracleConnectionPoolDataSource" class.
    The methods which use "thin" pool work great however the methods which use "OracleConnectionPoolDataSource" fail after 5 to 10 calls.
    Given below is the exception that I see in my log file.
    February 26, 2002 10:17:38 AM UTC: Debug.INFO: searchByNameCommono.jsp Error : Tpd2.openConnection(1)failed:DBConnPool2.getConnection(String) failed:Closed Connection
    com.commerceone.msbtpdapi.util.DBConnException: Tpd2.openConnection(1)failed:DBConnPool2.getConnection(String) failed:Closed Connection
         at com.commerceone.msbtpdapi.api.Tpd2.openConnection(Tpd2.java:138)
         at com.commerceone.msbtpdapi.api.TpdDBApi.searchTpsByCompanynameAndStatus(TpdDBApi.java:1685)
    Windows java code uses JDK 1.3.1
    Oracle machine has java version 1.2.2.
    Do I need to check for any settings like LD_LIBRARY_PATH on oracle machine ?
    Thanks a lot.
    Regards
    Mandar

  • Error in establishing connection from Sun Java Sys APp Server to databse

    HI there !!
    i m using Sun Java System Application Serever P.E 9.1 for my java ee application and the databse base is SQL Server 2000 desktop edition.
    Now i m getting the following error when i try to get a connection .
    RAR7099: The mcf being used to allocate the connection and the MCF in the pool are not equal.
    RAR5038:Unexpected exception while creating resource
    RAR5117 : Failed to obtain/create connection. Reason : No PasswordCredential found
    RAR5114 : Error allocating connection : [Error in allocating a connection. Cause: No PasswordCredential found]
    Error in allocating a connection. Cause: No PasswordCredential found
    StandardWrapperValve[jsp]: PWC1406: Servlet.service() for servlet jsp threw exception
    java.lang.NullPointerException
    i found something related to this thing at :
    http://docs.sun.com/app/docs/doc/819-3678/6n5sopvvi?q=TBD&a=view
    but was unable to handle that ...
    any help regarding this will be highly appreciated !!!
    i m using the code provided at NetBeans Tutorial for web aplications at
    http://www.netbeans.org/kb/55/mysql-webapp.html

    Why are you resurrecting an over 1 year old thread with such a nonsensicial reply? Please don't do that. Just respond to active topics in the listing.

  • Help please! Problem accessing db connections from servlets

    Hi all,
    I am creating a web application using MVC architecture using jsp,servlets and beans.
    I have created a login.jsp which accesses the LoginHandlerServlet.class.
    in login.jsp there are two fields. One is username and one is password. When fields are filled and submitted it redirects it to LoginHandlerServlet. Now in the servlet it calls a passwordBean which in turn calls a connectionBean which gives the connection to passwordBean and passwordBean checks the username and password and returns the result to servlet.
    Now when I run this application through tomcat. I am getting a error
    Error : oracle:jdbc:Driver:OracleDriver
    But when I append a main method in passwordBean which calls the corresponding method my driver gets initialised and I get the perfect output.
    Please let me know what is wrong with this. Thanking you all in advance.
    Regards,

    Hi All,
    This is the error I am getting :
    SQLError :oracle.jdbc.driver.OracleDriver
    java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver
    at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1428)
    at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1274)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:120)
    at com.ge.med.digit.egsnos.model.JDCConnectionDriver.<init>(JDCConnectionDriver.java:27)
    at com.ge.med.digit.egsnos.model.connectionBean.<init>(connectionBean.java:48)
    at com.ge.med.digit.egsnos.model.passwordBean.defineUser(passwordBean.java:61)
    at com.ge.med.digit.egsnos.servlets.loginHandlerServlet.doPost(loginHandlerServlet.java:62)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260)
    at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:
    643)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
    at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:
    643)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
    at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2396)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
    at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:
    643)
    at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
    at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:
    641)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
    at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:
    641)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
    at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:
    643)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
    at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:405)
    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:38
    0)
    at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508)
    at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:533)
    Thanks

  • Connectting from developer 6 to 8.1.6

    I am trying to install developer 2000 version 6 on the same server where oracle 8.1.6 resides. Can anybody help me how to establish connection from developer suite to the database? That will be great help.
    null

    Initialize x in onLoad
    onClipEvent (load) {
    accel1 = 0.8;
    rate1 = 0.1;
    trace(_x);
    _root.xkoord1 = 0;
    x = 0
    Lon Hosford
    www.lonhosford.com
    Flash, Actionscript and Flash Media Server examples:
    http://flashexamples.hosfordusa.com
    May many happy bits flow your way!
    "Euclides" <[email protected]> wrote in
    message
    news:e7unk6$4kg$[email protected]..
    > The next code works fine with Flash Player 6 and Action
    Script 1 but I'm
    > trying
    > to get it work on Flash Player 8 and Action Script 2.
    >
    > Any help, thanks in advance.
    >
    >
    > onClipEvent (load) {
    > accel1 = 0.8;
    > rate1 = 0.1;
    > trace(_x);
    > _root.xkoord1 = 0;
    > }
    > onClipEvent (enterFrame) {
    > x = x*accel1+(_root.xkoord1-_x)*rate1;
    > _x = _x+x;
    > if (Math.abs(_root.xkoord1-_x)<1) {
    > _x = _root.xkoord1;
    > }
    > }
    >

  • Problem in getting the database connection from a connection pool

    Hai All,
    I am facing a problem in getting the database connection from a connection pool created on weblogic server 8.1.
    I am using the Oracle database 8.1.7.
    I have configured my connection pool, datasource and JNDI in weblogic.
    In my java program i have the following code to retrieve the connection.
    import java.sql.*;    
    import java.util.Hashtable;
    import javax.naming.Context;
    import javax.naming.InitialContext;
    class jdbcshp1 {
        public static void main(String[] args) {
         Connection connection = null;
         try {
               Hashtable ht = new Hashtable();
               ht.put(Context.INITIAL_CONTEXT_FACTORY,"weblogic.jndi.WLInitialContextFactory");  // Wanna get rid of this.
               ht.put(Context.PROVIDER_URL,"t3://localhost:7001"); // wanna get rid of this.
               // Get a context for the JNDI look up
               Context ctx = new InitialContext(ht);
            javax.sql.DataSource ds = (javax.sql.DataSource) ctx.lookup ("myjndi1");
              //Create a connection object
              connection = ds.getConnection();
         The above code is working fine but, the two ht.put statements are creating problem.
    The problem is, after converting the application into WAR file it can be deployed
    on any machine or different port on same machine. My application fails if its deployed on
    weglogicserver which is at different port.
    Is there any way that i can get rid of those ht.put statements or any other way to solve the problem.
    any help is appreciated.
    Thanks in advance
    Pooja.

    Hai All,
    Firstly, thanks for ur reply.
    Even i have seen some code which uses context constructor with out any parameter and works fine.
    i dont understand why its not working for my code.
    When i remove those ht.put code and use context constructor with out any parameter, it giving an error.
    Context ctx = new InitialContext();
    javax.sql.DataSource ds = (javax.sql.DataSource) ctx.lookup ("ocjndi");
    connection = ds.getConnection();The error is as follows:
    javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial
    the above error is forcing me to include those code but if the port number is changed the code will not work. Plz let meknow if some setting have to be made.
    I appreciate all ur valuable help.
    Thanks once again.
    Pooja.

  • Error While reading CLOB from Oracle using WebLogic Connection Pool, Works fine with out using pool

    PROBLEM DESCRIPTION :
         When I try to read a clob from Oracle, I receive "ORA-03120: two-task
    conversion routine: integer overflow" Error.
         This error occurs only for CLOB Type and only if I try to connect to
    Oracle using WebLogic JDriver/Oracle POOL.
         IMPORTANT NOTE: I can read CLOB or any other data using direct JDBC
    connection to ORacle with out any problem.
         Below Please find the JAVA CODE for Both Working and NON Working .
    Created a Connection Pool as:
    Name: MyJDBCConnectionPool
    URL : jdbc:weblogic:oracle
    DIRVER:weblogic.jdbc.oci.Driver
    NON WORKING JAVA CODE (USES WEBLOGIC JDBC CONNECTION POOL TO ORACLE):
    Driver myDriver =
    (Driver)Class.forName("weblogic.jdbc.pool.Driver").newInstance();
    Connection mconn =
    myDriver.connect("jdbc:weblogic:pool:MyJDBCConnectionPool",null);
    mconn.setAutoCommit (false);
    CallableStatement cs = mconn.prepareCall("{call
    P_XMLTEST2(?)}"); //This returns a CLOB
    cs.registerOutParameter(1,java.sql.Types.CLOB);
    cs.execute();
    Clob clob = null;
    clob = cs.getClob(1);
    String data =new String();
    data = clob.getSubString(1, (int)clob.length());
    System.out.println(data); //print the data
    data = null;
    clob=null;
    cs.close();
    WORKING JAVA CODE (USES DIRECT THIN JDBC CONNECTION TO ORACLE):
    Driver myDriver =
    (Driver)Class.forName("oracle.jdbc.driver.OracleDriver").newInstance();
    Connection mconn =
    myDriver.connect("jdbc:oracle:thin:@server:1521:DB",null);
    mconn.setAutoCommit (false);
    CallableStatement cs = mconn.prepareCall("{call
    P_XMLTEST2(?)}"); //This returns a CLOB
    cs.registerOutParameter(1,java.sql.Types.CLOB);
    cs.execute();
    Clob clob = null;
    clob = cs.getClob(1);
    String data =new String();
    data = clob.getSubString(1, (int)clob.length());
    System.out.println(data); //print the data
    data = null;
    clob=null;
    cs.close();
    ERROR MESSAGE:
         ORA-03120: two-task conversion routine: integer overflow
    I appreciate your help on this problem.

    PROBLEM DESCRIPTION :
         When I try to read a clob from Oracle, I receive "ORA-03120: two-task
    conversion routine: integer overflow" Error.
         This error occurs only for CLOB Type and only if I try to connect to
    Oracle using WebLogic JDriver/Oracle POOL.
         IMPORTANT NOTE: I can read CLOB or any other data using direct JDBC
    connection to ORacle with out any problem.
         Below Please find the JAVA CODE for Both Working and NON Working .
    Created a Connection Pool as:
    Name: MyJDBCConnectionPool
    URL : jdbc:weblogic:oracle
    DIRVER:weblogic.jdbc.oci.Driver
    NON WORKING JAVA CODE (USES WEBLOGIC JDBC CONNECTION POOL TO ORACLE):
    Driver myDriver =
    (Driver)Class.forName("weblogic.jdbc.pool.Driver").newInstance();
    Connection mconn =
    myDriver.connect("jdbc:weblogic:pool:MyJDBCConnectionPool",null);
    mconn.setAutoCommit (false);
    CallableStatement cs = mconn.prepareCall("{call
    P_XMLTEST2(?)}"); //This returns a CLOB
    cs.registerOutParameter(1,java.sql.Types.CLOB);
    cs.execute();
    Clob clob = null;
    clob = cs.getClob(1);
    String data =new String();
    data = clob.getSubString(1, (int)clob.length());
    System.out.println(data); //print the data
    data = null;
    clob=null;
    cs.close();
    WORKING JAVA CODE (USES DIRECT THIN JDBC CONNECTION TO ORACLE):
    Driver myDriver =
    (Driver)Class.forName("oracle.jdbc.driver.OracleDriver").newInstance();
    Connection mconn =
    myDriver.connect("jdbc:oracle:thin:@server:1521:DB",null);
    mconn.setAutoCommit (false);
    CallableStatement cs = mconn.prepareCall("{call
    P_XMLTEST2(?)}"); //This returns a CLOB
    cs.registerOutParameter(1,java.sql.Types.CLOB);
    cs.execute();
    Clob clob = null;
    clob = cs.getClob(1);
    String data =new String();
    data = clob.getSubString(1, (int)clob.length());
    System.out.println(data); //print the data
    data = null;
    clob=null;
    cs.close();
    ERROR MESSAGE:
         ORA-03120: two-task conversion routine: integer overflow
    I appreciate your help on this problem.

Maybe you are looking for

  • Alternative Payee set up in vendor master record for payments....

    Hi all, I am facing the problem on alternative payee set up in vendor master record. I have done the following settings but its not working. 1) Created alternative payee vendor (XYZ) and blocked for posting. 2) Created main vendor (ABCD) and given al

  • ITUNES 7 UPDATE

    HI THERE SINCE I UPDATED TO ITUNES 7 I AM NO LONGER ABLE TO LOAD THE PROGRAM, I GET MESSAGE , ITUNES LIBARY CANNOT BE READ BECAUSE IT WAS CREATED BY A NEWER VERSION??

  • Gallery in PS Touch?

    Is there a gallery function in PS Touch? Right now I have to save to iPhoto to be able to scroll thru. Other program's let you save in the app and then review in full screen mode, one after the other.

  • Logic 6 Plugin settings

    Hi there.... I still have Logic 6 installed on my machine (now running LP7) because it gives you the plugin presets from logic 6 which aren't in version 7. There are a lot of these that I still use. I want to get rid of 6 but I don't want to lose all

  • Bar color of ProgressBar in Spark

    Hi,all. I use ProgressBar in Flex 3 and it's ok. I can change the bar's color by set ProgressBar's barColor style at runtime. But now I use Flex 4 and uncheck Flex 3 compatibility checkbox in Compiler configuration page, I can't use barColor style an