MySQL and JDBC Classpath errors

I am new to Java and installed MySql and also installed mysql-connectorJ driver. I can compile the code below, but when I go to run it, I get "Exception in thread "main" java.lang.NoClassDefFoundError: JDBCDemo/class" error. I can't figure out what I am doing wrong.
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
public class JDBCDemo {
     public static void main(String[] args) {
          try{  
Class.forName("com.mysql.jdbc.Driver");
          catch (Exception e)
               e.printStackTrace();
I have a the following environment variable called MySQL_Driver located at "C:\Program Files\Java\jdk1.5.0_06\lib".
Path = "%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\Program Files\Common Files\Roxio Shared\DLLShared;%JAVA_HOME%;%JAVA_HOME%\lib;%JAVA_VM%\bin;%JAVA_VM%\lib;C:\Program Files\Microsoft SQL Server\80\Tools\BINN;C:\Program Files\QuickTime\QTSystem\;%MySQL_Driver%"

What is your CLASSPATH set to as you need to make sure that the driver is in the path as well as the directory/jar where the JDBCDemo app lives.
Try explictly specifying everything via the -classpath option on your java command line

Similar Messages

  • MySQL and JDBC

    Hey all. I looked around and saw many similar messages like mine will be, but I could not fix it.
    I have an account over on some webhost and I want to connect to my Database over there. However, I keep getting:
    Exception: Unable to connect to any hosts due to exception: java.net.ConnectException: Connection timed out: connectHere is the code:
        Class.forName("com.mysql.jdbc.Driver").newInstance();
        String connectionURL = "jdbc:mysql://www.mydomain.com/mydatabase";
        java.sql.Connection connection = DriverManager.getConnection(connectionURL, "myuser", "mypass");
        java.sql.Statement statement = connection.createStatement();
        java.sql.ResultSet rs = statement.executeQuery("Select * from mytable");Thanks for the help, all!

    Hi,
    Can you provide the port number where mySQL is runnuing in your "connctionURL" like "jdbc:mysql://www.mydomain.com:3306/mydatabase";
    default port is 3306, check your luck.
    Class.forName("com.mysql.jdbc.Driver").newInstance(); String >connectionURL = "jdbc:mysql://www.mydomain.com/mydatabase"; >java.sql.Connection connection = DriverManager.getConnection(connectionURL, "myuser", "mypass"); java.sql.Statement statement = >connection.createStatement(); java.sql.ResultSet rs = >statement.executeQuery("Select * from mytable");Raju

  • Netscape Enterprise and JDBC Refused error

    I'm trying via a server side applet under Netscape Enterprise
    Server 3.5.1 to connect to another workstation on which the
    Oracle 7.3.3 database resides. I downloaded the thin drivers,
    unzipped the classes111.zip file into /opt/ns-
    enterprise3/plugins/java/classes directory, modified the
    obj.conf file to reflect the oracle directory under the classes
    directory and restarted the server. I then wrote a server side
    applet that connects to the other host and selects sysdate from
    dual as a test. The applet starts and throws an exception to
    the error log that says:
    Refused:OR=(CODE=12505)(EMFI=4)))
    This is a result of doing a System.out.println(e.getMessage);
    Any ideas as to what is causing this?
    thanks,
    Dave
    null

    plugins (I'm assuming you mean the Init fn's from magnus.conf.. (I'm a newb to all this. LOL )
    I hope I don't have any spelling errors here, I have to type it all. The PC i'm on to access the internet is on a different network than the server is on, so no copy and paste..
    Init fn="perf-int" enable=true
    Init fn="define-perf-bucket" name="cgi-bucket" description="CGI Stats"
    Init fn="load-types" mime-types="mime.types"
    Init fn="load-modules" shlib="/usr/netscape/servers/bin/https/lib/libNSServletPlugin.so" funcs="NSServletEarlyInit,NSServletLateInit,NSServletNameTrans,NSServletService" shlibs_flags="(global|now)"
    Init fn="NSServletEarlyInit" EarlyInit="yes"
    Init fn="NSServletLateInit" LateInit="yes"
    Init funcs="shtml_init,shtml_send" shlib="/usr/netscape/servers/bin/https/lib/libShtml.so" NativeThread="no" fn="load-modules"
    Init LateInit="yes" fn="shtml_init"
    Init fn="flex-init" access="$accesslog" format.access="%Ses->client.ip% etc, etc, etc lots more to type... I can type it all if you need it.
    Init fn="stats-init" profiling="on"
    No core file(s)
    ./start -version
    Netscape Communications
    Netscape-Enterprise/6.1SP4 B07/07/2003 02:38

  • Eclipse and Classpath Errors

    I have been writing some small applications within Eclipse and they run fine within eclipse; however, when I go and export these projects and try to run the JAR file that has been created, I am getting classpath errors.
    At the following link https://cms.psu.edu/AngelUploads/Files/buk110/huh.jpg Is a screenshot of my Java Build Path Screen.
    Am I doing something wrong? Any help would be appreciated...
    Thanks

    Problems still are occuring for me. However, I believe I am getting closer to what I need to do.
    I have exported the project to a jar file into a folder I've called test. In this "test" folder I've also created a folder called "jars" which consists of all of my external jar files.
    I've then edited the manifest file as follows
    Manifest-Version: 1.0
    Main-Class: keyword_listing
    Class-Path: jars/i-text-1.3.jar jars/junit-3.8.1.jar jars/log4j-1.2.9.jar jars/tm-extractors-0.4.jarBut I still get the errors as before. Am I totally going in the wrong direction or am I missing something really simple?

  • Update of MySQL and SQL Server JDBC Driver does not work in 1.2.1

    Hi,
    always after the update process is started i got the MySQL and SQL Server JDBC driver
    update notification.
    But all the time after i install the update i got the notification again but no errormessage
    that the update was maybe not successful ???
    Frank

    Ok
    then my subject was false
    i always try to update the extensions and now i can see that they are updated on the filesystem but the IDE does not recognize them as updated
    ....\sqldeveloper\sqldeveloper\extensions\oracle.sqldeveloper.thirdparty.drivers.mysql
    is available and new after the update process
    and under
    ...\sqldeveloper\sqldeveloper\tmp\update\oracle.sqldeveloper.thirdparty.drivers.mysql.5239.zip
    the downloaded zip file is also available.
    In the update window the message is that the extension with version 5206 is available
    Maybe that is the problem cause the downloaded files are version 11.1.1.5239
    if you look at the bundle.xml file inside the META-INF directory
    Frank

  • Installed PHP & MySQL, and now I have file permission errors.

    Hi Everyone
    I recently made a switch from using MAMP to making a separate installation of PHP, MySQL and Rails. I used the first tutorial for Rails + MySQL, and the second one for PHP;
    http://hivelogic.com/narrative/articles/ruby-rails-mongrel-mysql-osx
    http://www.entropy.ch/software/MacOSx/mysql/
    Unfortunately, I now receive errors when trying to install activeCollab through it's own PHP install script, and WordPress won't let me import xml backups into a locally installed WordPress. This must mean that I don't have full Read/Write access to my 'Sites' directory (this is set as my default htdocs in the Apache httpd.conf). I haven't noticed any problems with Rails - so far it's only been PHP based CMS's which have thrown up the permission errors.
    I've checked the file permissions on my 'Sites' folder - I'm the only user on the machine, and my account has full Read/Write access to the folder. However, I've noticed that there is also the option to choose 'Group' access, for which my account is again selected and given Read/Write access.
    Then there is 'Others' category, and this has 'Read only' access. Is there an option in there which I need to select and give Read/Write permissions to? mysql, php ?
    Or, is there a MySQL/PHP/Apache config file somewhere, within which I need to give global read/write permissions?
    I didn't have this problem when I was served up local sites from MAMP - and I also configured MAMP to use the 'Sites' folder as it's default htdocs folder. I get the impression that because MAMP was installed as an 'Application', that it automatically inherited my user permissions - maybe PHP and MySQL don't inherit my user account permissions because they are services?...
    I've come very far with getting everything installed to work with the OS X bundled Apache server (which I believe is 1.3 - I certainly haven't updated it) so I'd love to get everything finally configured - therefore, any help with this is very, very much appreciated!
    MacBook Pro 2.4Ghz    

    You'll probably get a better response at the Server Products or Networking & Web http://discussions.apple.com/forum.jspa?forumID=733 forums.

  • Jdbc connection error !  in  jar execution

    hi for all :)
    i made a swing application with mysql.
    when i complie and execute in eclipse, it works well. (perfectly!)
    after that, i made a test.jar file for deploy.
    but,, the jar file is not working
    when test.jar is executed, jdbc error is occured.
    org.gjt.mm.mysql.Driver
    java.sql.SQLException: No suitable driver found for jdbc:mysql://testIP(**.***.**.***):3306/DBNAME(test)*
    * at java.sql.DriverManager.getConnection(Unknown Source)*
    * at java.sql.DriverManager.getConnection(Unknown Source)*
    * at com.kaist.util.CancerDBSearching.dbConnection(CancerDBSearching.java:220)*
    * at com.kaist.util.CancerDBSearching.<init>(CancerDBSearching.java:39)*
    * at com.kaist.user.GuiEvent.<init>(GuiEvent.java:28)*
    * at com.kaist.user.GuiMain.<init>(GuiMain.java:140)*
    * at com.kaist.user.GuiMain.main(GuiMain.java:133)*
    to solve this problem,
    i make sure that jdbc classpath!
    but, still doesn`t not work!
    what's wrong with my-program.. T_T
    help me, plz!!!!! :-(

    i made the jar file using java-tool : Eclipse ( the export function )
    i do noting about including any library when i create the jar file. (just clicking the mouse... :-) )
    but other librarys are existed in the output of this code( jar tf myJarFile.jar )
    lib/
    lib/jcommon-1.0.12.jar
    lib/jfreechart-1.0.9.jar (like this..!! )
    why the JDBC library didn't included??
    is there any method about including the mysql library when make the jar file?

  • Jbuilder, MySQL, and me

    Hi,
    I'm having a bit of a strange problem, I made a test app that connected java to mysql and got some info out of it and it worked fine, so I switched over to Jbuilder because I like that program better, I made an application and added a database object to it. It opened up a window for the connection and I put in the exact same information as my test program then I tested the connection but it failed.
    Heres the driver I used: com.mysql.jdbc.Driver
    Heres the URL: jdbc:mysql://localhost/Money?user=go&password=go
    Heres the error I get: com.borland.dx.dataset.DataSetException: The driver: com.mysql.jdbc.Driver could not be loaded. This could be a problem with the driver itself, or that the driver is not found on the classpath.
    It works fine on my test program that I built using JGRASP but in JBuilder I can't get it to connect and I'm not entirely sure why. Thanks for any help you can give me.

    If you're running this application inside JBuilder, I think it's telling you that the JDBC driver JAR for MySQL is not in the CLASSPATH.
    You realize, of course, that JBuilder ignores any system CLASSPATH that you have set. (That might be the reason for the mystery.) JBuilder, like all other IDEs, expects you to set CLASSPATH for your projects inside the IDE itself. Consult your JBuilder docs to see how they want you to do it.

  • Receiving oracle.jdbc.driver error when trying to connect

    Setup:
    Windows 7 64bit
    4GB ram
    SQL Developer 3.2.20.09
    Java platform 1.6.0_37
    Oracle IDE 3.2.20.09.87
    Hello, I'm going to start by saying I'm a rank amateur when it comes to using and understand SQL developer. My entire need for this program is to connect to a virt server at my office and test out my SQL queries against our tables. It's been working great for this purpose until yesterday when I received this error:
    An error was encountered performing the requested operation:
    oracle.jdbc.driver.T2CConnection.getLibraryVersionNumber()I
    Vendor code 0
    I did some searching and found a few references to this error but due to my inexperience I was unable to follow the resolutions and fix the error. This connection was working fine until yesterday afternoon which seemed odd. Based on my control panel, here is what I installed yesterday, I believe I installed both Java's after the error occurred seeing if they would alleviate the issue.
    MySQL Administrator 1.1
    Java SE Development Kit 6 Update 41 (64-bit)
    MySQL Workbench 5.2 CE
    Java 6 Update 41 (64-bit)
    Could one of these be the root of the issue?
    Thanks for the help and sorry for the lack of technical expertise, my need is very narrow and up until now this program has worked great for me.
    -Brad
    Edited by: 998110 on Apr 4, 2013 9:46 AM

    >
    Could one of these be the root of the issue?
    >
    More likely to be that you are now using the wrong version of the oracle jdbc jar file.
    Post the name and version of the JDBC jar file that you think you are using.
    Search the pc for ALL such files.
    Examine the environment variables (e.g. PATH) to see if they reference jdbc jars other than the ojdbc6 jar you should be using.

  • JDBC Driver error

    Hello,
    I've downloaded MySQL Connector/J 3.0 zip file for the windows box.when I unzipped, had a directory, mysql-connector-java-3.0.10-stable and inside it I had this mysql-connector-java-3.0.10-stable-bin.jar file.I copied this file to j2sdk1.4.1_02/jre/lib/ext and when i try to run the following program, it throws me with error.Any ideas???
    Thanks in advance.
    public class test {
    public static void main(String[] args) {
    try {
    Class.forName("com.mysql.jdbc.Driver").newInstance();
    System.out.println("Good to go");
    } catch (Exception E) {
    System.out.println("JDBC Driver error");

    I'm guessing it can't find the class, although your code doesn't print any details of the exception. Run a program containing this line of code:System.out.println(System.getProperties().getProperty("java.ext.dirs"));That will tell you where you need to put the jar file.

  • MySQL and J2EE 1.4 AppServer

    Hi I was wondering if anyone has gotten MySQL to work with CMP EJB's on the J2EE 1.4 AppServer? This is my story so far. Using the admin console I created a new Connection Pool named MySQL, it uses the com.mysql.jdbc.jdbc2.optional.MysqlConnectionPoolDataSource class as the Datasource Classname, all other settings I left as default. I added three properties which the MySQL driver expects to be passed: username, password, and databaseName. Once this is done I can ping the MySQL server successfully. Next I add a new JDBC Resource named jdbc/MySQL. Then using deploytool I change the Sun-specific Settings CMP Resource JNDI Name to jdbc/MySQL. When I try to deploy my EJB, this is when the problem occurs. I get the following error from the server:
    -- Fatal Error from EJB Compiler -- JDO74030: JDOCodeGenerator: Caught an IOException initializing CMP code generation for application 'vwcm' module '/opt/sunappserver/domains/versaqual/applications/j2ee-modules/': JDO7001: Cannot find resource com/sun/jdo/spi/persistence/generator/database/MYSQL.properties.
    Would anyone know what to do to fix this situation?

    I am using Sun App Server 7 and I believe the same concept can be applied to J2EE 1.4. In the CMP EJBs you have create the persistence manager to persist the data with the database. The JDBC resources are for making connection to the database, not for persistence. And the cmp jdbc resource should be named as jdo/MySql rather jdbc/MySql.
    Here is how you have to provide in the sun-ejb-jar file for the CMP beans.
    <cmp-resource>
    <jndi-name>jdo/MySql</jndi-name>
    </cmp-resource>
    You should find another option in the app server configuration console for "persistence managers".
    In the persistence manager console create a new persistence manager called jdo/MySql. It will ask you the following information. (As per App server 7)
    JNDI ----- jdo/MySql
    Description ------ Provide desc
    Factory Class ------- com.sun.jdo.spi.persistence.support.sqlstore.impl.PersistenceManagerFactoryImpl
    Connection Pool ------- Provide your connection pool from the combo box.
    A JDBC resource will be automatically created to associate the Persistence Manager run-time with the specified Connection Pool.
    Persistence Manager Enabled: (Check the check box)
    Once you submit this information, it will create a JDBC resource in the name "jdo/MySqlPM". You can check whether it is created or not under the JDBC resource link in the app server configuration console. If it is created, then you should not have any other problem.
    After performing the above steps try to deploy, which I believe you should have any problem.
    Thanks

  • Configuring MySQL and Connector/J server

    I now have a working Applet that, when run from the compiler, will retrieve and update a MySQL database. Unfortunately, when I run the same Applet in a web brower (on an Apache server), the Applet does not pass values to/from the MySQL database.
    Is this a problem with my Applet or server? Any idea how to correctly set the server to utilize Connector/J and JDBC? Why is it working with the java console and JBuilder but not web browsers?
    in case it helps:
    Apache server
    MySQL database
    JBuilder compiler (applet works when run from here)
    import java.awt.*;
    import java.awt.event.*;
    import java.applet.*;
    import javax.swing.*;
    import java.sql.*;
    public class score
        extends JApplet {
      Container cp = getContentPane();
      JTextField fright = new JTextField(3);
      JTextField fleft = new JTextField(3);
      JButton refresh = new JButton("CheckDB");
      JButton left1 = new JButton("1");
      JButton left2 = new JButton("2");
      JButton left3 = new JButton("3");
      JButton left1m = new JButton("-1");
      JButton left2m = new JButton("-2");
      JButton left3m = new JButton("-3");
      JButton right1 = new JButton("1");
      JButton right2 = new JButton("2");
      JButton right3 = new JButton("3");
      JButton right1m = new JButton("-1");
      JButton right2m = new JButton("-2");
      JButton right3m = new JButton("-3");
      int lscore;
      int rscore;
      String l = ("");
      String r = ("");
      String updateString;
      Connection con = null;
      Statement st = null;
      ResultSet rs = null;
      public void init() {
        JPanel top = new JPanel();
        top.add(fleft);
        top.add(fright);
        top.add(refresh);
        JPanel right = new JPanel();
        right.add(right1);
        right.add(right2);
        right.add(right3);
        right.add(right1m);
        right.add(right2m);
        right.add(right3m);
        JPanel left = new JPanel();
        left.add(left1);
        left.add(left2);
        left.add(left3);
        left.add(left1m);
        left.add(left2m);
        left.add(left3m);
        top.setLayout(new FlowLayout());
        left.setLayout(new GridLayout(6, 1));
        right.setLayout(new GridLayout(6, 1));
        cp.setLayout(new BorderLayout());
        cp.add(top, BorderLayout.CENTER);
        cp.add(right, BorderLayout.EAST);
        cp.add(left, BorderLayout.WEST);
        right1.addActionListener(new ButtonListener());
        right2.addActionListener(new ButtonListener());
        right3.addActionListener(new ButtonListener());
        right1m.addActionListener(new ButtonListener());
        right2m.addActionListener(new ButtonListener());
        right3m.addActionListener(new ButtonListener());
        left1.addActionListener(new ButtonListener());
        left2.addActionListener(new ButtonListener());
        left3.addActionListener(new ButtonListener());
        left1m.addActionListener(new ButtonListener());
        left2m.addActionListener(new ButtonListener());
        left3m.addActionListener(new ButtonListener());
        refresh.addActionListener(new ButtonListener());
    //                    LISTENERS/FUNCTIONS
      class ButtonListener
          implements ActionListener {
        public void actionPerformed(ActionEvent e) {
          if (e.getSource() == refresh) {
            try {
          Class.forName("com.mysql.jdbc.Driver").newInstance();
          con = DriverManager.getConnection("jdbc:mysql://192.168.0.3:3306/bball",
            "root", "");
          st = con.createStatement();
          rs = st.executeQuery("SELECT score FROM score");
          int count = 0;
          while(rs.next()) {
            int g = rs.getInt(1);
            if (count == 0) {lscore = g;}
            if (count == 1) {rscore = g;}
            count++;
        } catch (Exception d) {
          System.err.println("Exception: " + d.getMessage());
        } finally {
          try {
            if(rs != null)
              rs.close();
            if(st != null)
              st.close();
            if(con != null)
              con.close();
          } catch (SQLException d) {
        l = String.valueOf(lscore);
        fleft.setText(l);
        r = String.valueOf(rscore);
        fright.setText(r);
          if (e.getSource() == left1) {
            lscore = lscore + 1;
            l = String.valueOf(lscore);
            updateString = "UPDATE SCORE " +
            "SET SCORE = " + l + " WHERE SIDE = 1";
            try {
              Class.forName("com.mysql.jdbc.Driver").newInstance();
              con = DriverManager.getConnection("jdbc:mysql://192.168.0.3:3306/bball",
                                                "root", "");
              st = con.createStatement();
              st.executeUpdate(updateString);
            catch (Exception d) {
              System.err.println("Exception: " + d.getMessage());
            finally {
              try {
                if (st != null) {
                  st.close();
                if (con != null) {
                  con.close();
              catch (SQLException d) {
            fleft.setText(l);
          if (e.getSource() == left2) {
            lscore = lscore + 2;
            l = String.valueOf(lscore);
            updateString = "UPDATE SCORE " +
            "SET SCORE = " + l + " WHERE SIDE = 1";
            try {
              Class.forName("com.mysql.jdbc.Driver").newInstance();
              con = DriverManager.getConnection("jdbc:mysql://192.168.0.3:3306/bball",
                                                "root", "");
              st = con.createStatement();
              st.executeUpdate(updateString);
            catch (Exception d) {
              System.err.println("Exception: " + d.getMessage());
            finally {
              try {
                if (st != null) {
                  st.close();
                if (con != null) {
                  con.close();
              catch (SQLException d) {
            fleft.setText(l);
          if (e.getSource() == left3) {
            lscore = lscore + 3;
            l = String.valueOf(lscore);
            updateString = "UPDATE SCORE " +
            "SET SCORE = " + l + " WHERE SIDE = 1";
            try {
              Class.forName("com.mysql.jdbc.Driver").newInstance();
              con = DriverManager.getConnection("jdbc:mysql://192.168.0.3:3306/bball",
                                                "root", "");
              st = con.createStatement();
              st.executeUpdate(updateString);
            catch (Exception d) {
              System.err.println("Exception: " + d.getMessage());
            finally {
              try {
                if (st != null) {
                  st.close();
                if (con != null) {
                  con.close();
              catch (SQLException d) {
            fleft.setText(l);
          if (e.getSource() == left1m) {
            lscore = lscore - 1;
            l = String.valueOf(lscore);
            updateString = "UPDATE SCORE " +
            "SET SCORE = " + l + " WHERE SIDE = 1";
            try {
              Class.forName("com.mysql.jdbc.Driver").newInstance();
              con = DriverManager.getConnection("jdbc:mysql://192.168.0.3:3306/bball",
                                                "root", "");
              st = con.createStatement();
              st.executeUpdate(updateString);
            catch (Exception d) {
              System.err.println("Exception: " + d.getMessage());
            finally {
              try {
                if (st != null) {
                  st.close();
                if (con != null) {
                  con.close();
              catch (SQLException d) {
            fleft.setText(l);
          if (e.getSource() == left2m) {
            lscore = lscore - 2;
            l = String.valueOf(lscore);
            updateString = "UPDATE SCORE " +
            "SET SCORE = " + l + " WHERE SIDE = 1";
            try {
              Class.forName("com.mysql.jdbc.Driver").newInstance();
              con = DriverManager.getConnection("jdbc:mysql://192.168.0.3:3306/bball",
                                                "root", "");
              st = con.createStatement();
              st.executeUpdate(updateString);
            catch (Exception d) {
              System.err.println("Exception: " + d.getMessage());
            finally {
              try {
                if (st != null) {
                  st.close();
                if (con != null) {
                  con.close();
              catch (SQLException d) {
            fleft.setText(l);
          if (e.getSource() == left3m) {
            lscore = lscore - 3;
            l = String.valueOf(lscore);
            updateString = "UPDATE SCORE " +
            "SET SCORE = " + l + " WHERE SIDE = 1";
            try {
              Class.forName("com.mysql.jdbc.Driver").newInstance();
              con = DriverManager.getConnection("jdbc:mysql://192.168.0.3:3306/bball",
                                                "root", "");
              st = con.createStatement();
              st.executeUpdate(updateString);
            catch (Exception d) {
              System.err.println("Exception: " + d.getMessage());
            finally {
              try {
                if (st != null) {
                  st.close();
                if (con != null) {
                  con.close();
              catch (SQLException d) {
            fleft.setText(l);
          if (e.getSource() == right1) {
            rscore = rscore + 1;
            r = String.valueOf(rscore);
            updateString = "UPDATE SCORE " +
            "SET SCORE = " + r + " WHERE SIDE = 2";
            try {
              Class.forName("com.mysql.jdbc.Driver").newInstance();
              con = DriverManager.getConnection("jdbc:mysql://192.168.0.3:3306/bball",
                                                "root", "");
              st = con.createStatement();
              st.executeUpdate(updateString);
            catch (Exception d) {
              System.err.println("Exception: " + d.getMessage());
            finally {
              try {
                if (st != null) {
                  st.close();
                if (con != null) {
                  con.close();
              catch (SQLException d) {
            fright.setText(r);
          if (e.getSource() == right2) {
            rscore = rscore + 2;
            r = String.valueOf(rscore);
            updateString = "UPDATE SCORE " +
            "SET SCORE = " + r + " WHERE SIDE = 2";
            try {
              Class.forName("com.mysql.jdbc.Driver").newInstance();
              con = DriverManager.getConnection("jdbc:mysql://192.168.0.3:3306/bball",
                                                "root", "");
              st = con.createStatement();
              st.executeUpdate(updateString);
            catch (Exception d) {
              System.err.println("Exception: " + d.getMessage());
            finally {
              try {
                if (st != null) {
                  st.close();
                if (con != null) {
                  con.close();
              catch (SQLException d) {
            fright.setText(r);
          if (e.getSource() == right3) {
            rscore = rscore + 3;
            r = String.valueOf(rscore);
            updateString = "UPDATE SCORE " +
            "SET SCORE = " + r + " WHERE SIDE = 2";
            try {
              Class.forName("com.mysql.jdbc.Driver").newInstance();
              con = DriverManager.getConnection("jdbc:mysql://192.168.0.3:3306/bball",
                                                "root", "");
              st = con.createStatement();
              st.executeUpdate(updateString);
            catch (Exception d) {
              System.err.println("Exception: " + d.getMessage());
            finally {
              try {
                if (st != null) {
                  st.close();
                if (con != null) {
                  con.close();
              catch (SQLException d) {
            fright.setText(r);
          if (e.getSource() == right1m) {
            rscore = rscore - 1;
            r = String.valueOf(rscore);
            updateString = "UPDATE SCORE " +
            "SET SCORE = " + r + " WHERE SIDE = 2";
            try {
              Class.forName("com.mysql.jdbc.Driver").newInstance();
              con = DriverManager.getConnection("jdbc:mysql://192.168.0.3:3306/bball",
                                                "root", "");
              st = con.createStatement();
              st.executeUpdate(updateString);
            catch (Exception d) {
              System.err.println("Exception: " + d.getMessage());
            finally {
              try {
                if (st != null) {
                  st.close();
                if (con != null) {
                  con.close();
              catch (SQLException d) {
            fright.setText(r);
          if (e.getSource() == right2m) {
            rscore = rscore - 2;
            r = String.valueOf(rscore);
            updateString = "UPDATE SCORE " +
            "SET SCORE = " + r + " WHERE SIDE = 2";
            try {
              Class.forName("com.mysql.jdbc.Driver").newInstance();
              con = DriverManager.getConnection("jdbc:mysql://192.168.0.3:3306/bball",
                                                "root", "");
              st = con.createStatement();
              st.executeUpdate(updateString);
            catch (Exception d) {
              System.err.println("Exception: " + d.getMessage());
            finally {
              try {
                if (st != null) {
                  st.close();
                if (con != null) {
                  con.close();
              catch (SQLException d) {
            fright.setText(r);
          if (e.getSource() == right3m) {
            rscore = rscore - 3;
            r = String.valueOf(rscore);
            updateString = "UPDATE SCORE " +
            "SET SCORE = " + r + " WHERE SIDE = 2";
            try {
              Class.forName("com.mysql.jdbc.Driver").newInstance();
              con = DriverManager.getConnection("jdbc:mysql://192.168.0.3:3306/bball",
                                                "root", "");
              st = con.createStatement();
              st.executeUpdate(updateString);
            catch (Exception d) {
              System.err.println("Exception: " + d.getMessage());
            finally {
              try {
                if (st != null) {
                  st.close();
                if (con != null) {
                  con.close();
              catch (SQLException d) {
            fright.setText(r);
    }

    Thanks for the info! Though I'm still confused about this:
    There are two ways to deal
    with this: (1) make sure your database is running on
    the same server as Apache, or (2) sign your applet so
    that the user can allow it to perform insecure
    actions.The Apache and MySQL are running on the same machine so I don't see a problem with server access. How could I sign the applet to perform insecure actions?
    Also, does the Connector/J installation method have anything to do with it? All I did was copied the .jar file to the dirctory in JBuilder and jsdk (ie: "C:\j2sdk1.4.1_02\jre\lib\ext\mysql-connector-java-3.0.15-ga-bin.jar") and set the CLASSPATH. I don't see a JDBC service running in my Apache monitor- could Apache not be configued to handle JDBC?
    Thanks again!
    PS: Oh yeah- heh- sorry about not using methods- this is just a quick weekend hack job ;-)

  • I downloaded mySQL and mySQL driver NOW  WHAT ?

    I downloaded the mySQL and the mySQL driver. What do I do now ?
    I saw a book "mySQL and PHP for Dummies" . What is PHP ?
    Can you give me direction ?
    (without the "go read the archives" type of non-helpful help ?)
    Thank you in advance
    Stan

    If it's PHP and MySQL you're interested in, why are you posting to a Java forum?
    PHP is a Web scripting language:
    http://www.php.net/
    If you want to use MySQL with Java, you'll have to learn enough about SQL and relational databases to be able to get into MySQL, create some tables and users, and add some data. Then you'll use the MySQL JDBC driver to let your Java app access those database tables and do CRUD operations on them (Create/Read/Update/Delete).
    There's a JDBC tutorial under the Tutorials link to the left on this page.
    Here's a Java app that will let you run any valid SQL statement you wish against any database:
    import java.sql.*;
    import java.util.*;
    public class DataConnection
        public static final String DEFAULT_DRIVER   = "sun.jdbc.odbc.JdbcOdbcDriver";
        public static final String DEFAULT_URL      = "jdbc:odbc:DRIVER={Microsoft Access Driver (*.mdb)};DBQ=c:\\Edu\\Java\\Forum\\DataConnection.mdb";
        public static final String DEFAULT_USERNAME = "admin";
        public static final String DEFAULT_PASSWORD = "";
        /** Database connection */
        private Connection connection;
         * Driver for the DataConnection
         * @param command line arguments
         * <ol start='0'>
         * <li>SQL query string</li>
         * <li>JDBC driver class</li>
         * <li>database URL</li>
         * <li>username</li>
         * <li>password</li>
         * </ol>
        public static void main(String [] args)
            DataConnection db = null;
            try
                if (args.length > 0)
                    String sql      = args[0];
                    String driver   = ((args.length > 1) ? args[1] : DEFAULT_DRIVER);
                    String url      = ((args.length > 2) ? args[2] : DEFAULT_URL);
                    String username = ((args.length > 3) ? args[3] : DEFAULT_USERNAME);
                    String password = ((args.length > 4) ? args[4] : DEFAULT_PASSWORD);
                    db = new DataConnection(driver, url, username, password);
                    Object result = db.executeSQL(sql);
                    System.out.println(result);
                else
                    System.out.println("Usage: db.DataConnection <sql> <driver> <url> <username> <password>");
            catch (SQLException e)
                System.err.println("SQL error: " + e.getErrorCode());
                System.err.println("SQL state: " + e.getSQLState());
                e.printStackTrace(System.err);
            catch (Exception e)
                e.printStackTrace(System.err);
            finally
                if (db != null)
                    db.close();
                db = null;
         * Create a DataConnection
         * @throws SQLException if the database connection fails
         * @throws ClassNotFoundException if the driver class can't be loaded
        public DataConnection() throws SQLException,ClassNotFoundException
            this(DEFAULT_DRIVER, DEFAULT_URL, DEFAULT_USERNAME, DEFAULT_PASSWORD);
         * Create a DataConnection
         * @throws SQLException if the database connection fails
         * @throws ClassNotFoundException if the driver class can't be loaded
        public DataConnection(final String driver,
                              final String url,
                              final String username,
                              final String password)
            throws SQLException,ClassNotFoundException
            Class.forName(driver);
            this.connection = DriverManager.getConnection(url, username, password);
         * Clean up the connection
        public void close()
            try
                this.connection.close();
            catch (Exception e)
                ; // do nothing; you've done your best
         * Execute ANY SQL statement
         * @param SQL statement to execute
         * @returns list of row values if a ResultSet is returned,
         * OR an altered row count object if not
         * @throws SQLException if the query fails
        public Object executeSQL(final String sql) throws SQLException
            Object returnValue      = null;
            Statement statement     = this.connection.createStatement();
            boolean hasResultSet    = statement.execute(sql);
            if (hasResultSet)
                ResultSet rs            = statement.getResultSet();
                ResultSetMetaData meta  = rs.getMetaData();
                int numColumns          = meta.getColumnCount();
                List rows               = new ArrayList();
                while (rs.next())
                    Map thisRow = new LinkedHashMap();
                    for (int i = 1; i <= numColumns; ++i)
                        String columnName   = meta.getColumnName(i);
                        Object value        = rs.getObject(columnName);
                        thisRow.put(columnName, value);
                    rows.add(thisRow);
                rs.close();
                statement.close();
                returnValue = rows;
            else
                int updateCount = statement.getUpdateCount();
                returnValue     = new Integer(updateCount);
            return returnValue;
    }Maybe it'll help get you started with Java and JDBC. You're on your own with PHP. - MOD

  • Classpath error while building the web dynpro project

    Hi
    I have created an application in which on clicking the button on one view , next view opens and data is displayed in the tables. This data i am giving as static, and for that i have created a java file. this java file is located in the subfolder i have created in the package path i have given. While building the application, i get these two errors :
    1) The project was not built due to classpath errors (incomplete or involved in cycle).
    2) Missing required source folder 'BPOutageTable/BPOT'
    BPOutageTable is the application name, and BPOT is the subfolder in which java file is present.
    This application is similar to "The Master/Detail Viewer Application" example in the tutorials.
    Can anybody please help in this?
    Thanks & regards,
    Anupreet

    Hi,
       You have give your classpath in your "lib" folder of the Dynpro application.
       check your lib folder shows exact class path or not.
    if you wish to add any jar files import it to your lib folder so you will not have compilation problem.
    Hope it helps.If it is then close this thread.
    Regards,
    Guru

  • Issue in bringing up CRS on ATG 10.1.1 with MySQL and Weblogic 10.3

    Hello,
    I am trying to bring up Commerce Reference Store as part of my evaluation using MySQL (bundled with ATG) and WebLogic 10.3.
    I followed the ATG Documentation on CRS with WebLogic and MySQL and I could not proceed because of the below error log. I keep getting error in OnlineCreateServerInstanceTask of CIM. I believe it should be some configuration problem, but could not think of any.
    As part of the installation, I use C:\jdk1.6.0_25. I verified my weblogic server is up through the admin console. I started MySQL before running the eval batch. Apart from starting MySQL server, I did not make any datasource/database configuration changes for ATG. I have not run any other scripts to configure MySQL too.
    Please guide me to resolve the problem.
    C:\ATG\ATG10.1.1\CommerceReferenceStore\Store\eval>configureEval.bat
    Do you wish to run the CRS evaluation installation? [Y/N]: y
    Do you wish to use an existing database for the CRS evaluation? [Y/N]: n
    The CRS evaluation install will attempt to create the database. Press [Return] t
    o continue or any other key to quit:
    Enter mysql database connection details
    Enter user name: admin
    Enter user password: admin
    Enter database name: crsprod
    Enter 'root' user password:
    Creating database...
    Finished database creation
    Enter weblogic admin server URL: http://localhost:7001
    Enter weblogic admin server username: weblogic
    Enter weblogic admin server password: weblogic123
    Buildfile: C:\ATG\ATG10.1.1\CommerceReferenceStore\Store\eval\evalbuild.xml
    all:
    [copy] Copying 1 file to C:\ATG\ATG10.1.1\CommerceReferenceStore\Store\eval
    [delete] Deleting: C:\ATG\ATG10.1.1\CommerceReferenceStore\Store\eval\cimOut.
    cim.tmp
    BUILD SUCCESSFUL
    Total time: 0 seconds
    Application Server: weblogic
    The following installed ATG components are being used to launch:
    ATGPlatform version 10.1.1 installed at C:\ATG\ATG10.1.1
    Created "C:\ATG\ATG10.1.1\home\CIM\startDynamo.jar" in 15,273ms.
    Nucleus running
    atg.cim.productconfig.productselector.ProductSelectionContextTask starting...
    (Searching for products... done.)
    atg.cim.productconfig.productselector.ProductSelectionContextTask finished.
    atg.cim.productconfig.appserver.AppServerSelectTask starting...
    atg.cim.productconfig.appserver.AppServerSelectTask finished.
    atg.cim.productconfig.appserver.AppServerPathTask starting...
    atg.cim.productconfig.appserver.AppServerPathTask finished.
    atg.cim.productconfig.appserver.DomainPathTask starting...
    atg.cim.productconfig.appserver.DomainPathTask finished.
    atg.cim.productconfig.appserver.UrlTask starting...
    atg.cim.productconfig.appserver.UrlTask finished.
    atg.cim.productconfig.appserver.UsernameTask starting...
    atg.cim.productconfig.appserver.UsernameTask finished.
    atg.cim.productconfig.appserver.PasswordTask starting...
    atg.cim.productconfig.appserver.PasswordTask finished.
    atg.cim.productconfig.appserver.AppServerSelectionPersistenceTask starting...
    atg.cim.productconfig.appserver.AppServerSelectionPersistenceTask finished.
    atg.cim.database.CreateSchemaTask starting...
    atg.cim.database.CreateSchemaTask finished.
    atg.cim.database.ImportDataTask starting...
    Combining template tasks...Success
    Importing (1 of 1) /CIM/tmp/import/nonswitchingCore-import1.xml:
    /CommerceReferenceStore/Store/Storefront/data/pricelists.xml to /atg/commerce/pr
    icing/priceLists/PriceLists
    /CommerceReferenceStore/Store/Storefront/data/stores.xml to /atg/store/stores/St
    oreRepository
    /CommerceReferenceStore/Store/Storefront/data/catalog-i18n.xml to /atg/commerce/
    catalog/ProductCatalog
    /CommerceReferenceStore/Store/Storefront/data/pricelists-i18n.xml to /atg/commer
    ce/pricing/priceLists/PriceLists
    /CommerceReferenceStore/Store/Storefront/data/sites.xml to /atg/multisite/SiteRe
    pository
    /CommerceReferenceStore/Store/Storefront/data/sites-i18n.xml to /atg/multisite/S
    iteRepository
    /CommerceReferenceStore/Store/Storefront/data/promos-i18n.xml to /atg/commerce/c
    atalog/ProductCatalog
    /CommerceReferenceStore/Store/Storefront/data/seotags-i18n.xml to /atg/seo/SEORe
    pository
    /CommerceReferenceStore/Store/Storefront/data/wishlists.xml to /atg/commerce/gif
    ts/Giftlists
    /CommerceReferenceStore/Store/Storefront/data/inventory.xml to /atg/commerce/inv
    entory/InventoryRepository
    /CommerceReferenceStore/Store/Storefront/data/users.xml to /atg/userprofiling/Pr
    ofileAdapterRepository
    /CommerceReferenceStore/Store/Storefront/data/orders.xml to /atg/commerce/order/
    OrderRepository
    /CommerceReferenceStore/Store/Storefront/data/orders-i18n.xml to /atg/commerce/o
    rder/OrderRepository
    /CommerceReferenceStore/Store/Storefront/data/storetext-i18n.xml to /atg/store/s
    tores/StoreRepository
    /CommerceReferenceStore/Store/Storefront/data/claimable-i18n.xml to /atg/commerc
    e/claimable/ClaimableRepository
    ... > Success
    All Imports Completed Successfully
    atg.cim.database.ImportDataTask finished.
    atg.cim.worker.common.PropertyFileClearPersistanceTask starting...
    atg.cim.worker.common.PropertyFileClearPersistanceTask finished.
    atg.cim.productconfig.serverinstance.ServerInstanceNameTask starting...
    atg.cim.productconfig.serverinstance.ServerInstanceNameTask finished.
    atg.cim.productconfig.serverinstance.PortBindingsSelectTask starting...
    atg.cim.productconfig.serverinstance.PortBindingsSelectTask finished.
    atg.cim.worker.common.MapPropertyFileCreatorTask starting...
    atg.cim.worker.common.MapPropertyFileCreatorTask finished.
    atg.cim.worker.common.MapPropertyFileCreatorTask starting...
    atg.cim.worker.common.MapPropertyFileCreatorTask finished.
    atg.cim.worker.common.MapPropertyFileCreatorTask starting...
    atg.cim.worker.common.MapPropertyFileCreatorTask finished.
    atg.cim.worker.common.MapPropertyFileCreatorTask starting...
    atg.cim.worker.common.MapPropertyFileCreatorTask finished.
    atg.cim.worker.common.MapPropertyFileCreatorTask starting...
    atg.cim.worker.common.MapPropertyFileCreatorTask finished.
    atg.cim.worker.common.MapPropertyFileCreatorTask starting...
    atg.cim.worker.common.MapPropertyFileCreatorTask finished.
    atg.cim.worker.common.MapPropertyFileCreatorTask starting...
    atg.cim.worker.common.MapPropertyFileCreatorTask finished.
    atg.cim.worker.common.MapPropertyFileCreatorTask starting...
    atg.cim.worker.common.MapPropertyFileCreatorTask finished.
    atg.cim.worker.common.MapPropertyFileCreatorTask starting...
    atg.cim.worker.common.MapPropertyFileCreatorTask finished.
    atg.cim.worker.common.MapPropertyFileCreatorTask starting...
    atg.cim.worker.common.MapPropertyFileCreatorTask finished.
    atg.cim.worker.common.MapPropertyFileCreatorTask starting...
    atg.cim.worker.common.MapPropertyFileCreatorTask finished.
    atg.cim.worker.common.MapPropertyFileCreatorTask starting...
    atg.cim.worker.common.MapPropertyFileCreatorTask finished.
    atg.cim.worker.common.MapPropertyFileCreatorTask starting...
    atg.cim.worker.common.MapPropertyFileCreatorTask finished.
    atg.cim.worker.common.MapPropertyFileCreatorTask starting...
    atg.cim.worker.common.MapPropertyFileCreatorTask finished.
    atg.cim.productconfig.serverinstance.MakeServerInstanceFromPatternTask starting.
    atg.cim.productconfig.serverinstance.MakeServerInstanceFromPatternTask finished.
    atg.cim.productconfig.appassembly.EarFileNameTask starting...
    atg.cim.productconfig.appassembly.EarFileNameTask finished.
    atg.cim.productconfig.deploy.weblogic.OnlineCreateServerInstanceTask starting...
    Error Executing Batch File
    atg.cim.worker.TaskException: Error deploying to weblogic
    atg.cim.worker.TaskException: Error exececuting batch file
    at atg.cim.flow.CimFlowCreator.startHeadlessCimFlow(CimFlowCreator.java:
    130)
    at atg.cim.Launcher.startCimFlow(Launcher.java:278)
    at atg.cim.Launcher.main(Launcher.java:99)
    Caused by: atg.cim.worker.TaskException: Error deploying to weblogic
    at atg.cim.worker.Task.handleException(Task.java:72)
    at atg.cim.productconfig.deploy.weblogic.OnlineCreateServerInstanceTask.
    execute(OnlineCreateServerInstanceTask.java:159)
    at atg.cim.headless.HeadlessExecutorImpl.executeTasks(HeadlessExecutorIm
    pl.java:150)
    at atg.cim.headless.HeadlessExecutorImpl.populateAndExecuteHeadlessTasks
    (HeadlessExecutorImpl.java:140)
    at atg.cim.batch.BatchChooserExecutor.populateAndExecuteHeadlessTasks(Ba
    tchChooserExecutor.java:169)
    at atg.cim.flow.CimFlow.headlessFlow(CimFlow.java:116)
    at atg.cim.flow.CimFlowCreator.startHeadlessCimFlow(CimFlowCreator.java:
    120)
    ... 2 more
    Caused by: C:\ATG\ATG10.1.1\CIM\plugins\Base\ant\cim-ant.xml:348: The following
    error occurred while executing this line:
    C:\ATG\ATG10.1.1\CIM\plugins\Base\ant\cim-ant.xml:254: The following error occur
    red while executing this line:
    C:\ATG\ATG10.1.1\CIM\plugins\Base\ant\cim-ant.xml:214: exec returned: 1
    at org.apache.tools.ant.ProjectHelper.addLocationToBuildException(Projec
    tHelper.java:541)
    at org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.jav
    a:394)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
    at sun.reflect.GeneratedMethodAccessor132.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.jav
    a:105)
    at org.apache.tools.ant.Task.perform(Task.java:348)
    at org.apache.tools.ant.Target.execute(Target.java:357)
    at org.apache.tools.ant.Target.performTasks(Target.java:385)
    at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329)
    at org.apache.tools.ant.Project.executeTarget(Project.java:1298)
    at atg.cim.task.ant.utility.AntExecutionWrapper.executeAntTarget(AntExec
    utionWrapper.java:167)
    at atg.cim.worker.AntTask.executeAntTarget(AntTask.java:115)
    at atg.cim.productconfig.deploy.weblogic.OnlineCreateServerInstanceTask.
    execute(OnlineCreateServerInstanceTask.java:155)
    ... 7 more
    Caused by: C:\ATG\ATG10.1.1\CIM\plugins\Base\ant\cim-ant.xml:254: The following
    error occurred while executing this line:
    C:\ATG\ATG10.1.1\CIM\plugins\Base\ant\cim-ant.xml:214: exec returned: 1
    at org.apache.tools.ant.ProjectHelper.addLocationToBuildException(Projec
    tHelper.java:541)
    at org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.jav
    a:394)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
    at sun.reflect.GeneratedMethodAccessor132.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.jav
    a:105)
    at org.apache.tools.ant.Task.perform(Task.java:348)
    at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:62)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
    at sun.reflect.GeneratedMethodAccessor132.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.jav
    a:105)
    at org.apache.tools.ant.Task.perform(Task.java:348)
    at org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.jav
    a:391)
    ... 20 more
    Caused by: C:\ATG\ATG10.1.1\CIM\plugins\Base\ant\cim-ant.xml:214: exec returned:
    1
    at org.apache.tools.ant.taskdefs.ExecTask.runExecute(ExecTask.java:636)
    at org.apache.tools.ant.taskdefs.ExecTask.runExec(ExecTask.java:662)
    at org.apache.tools.ant.taskdefs.ExecTask.execute(ExecTask.java:487)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
    at sun.reflect.GeneratedMethodAccessor132.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.jav
    a:105)
    at org.apache.tools.ant.Task.perform(Task.java:348)
    at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:62)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
    at sun.reflect.GeneratedMethodAccessor132.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.jav
    a:105)
    at org.apache.tools.ant.Task.perform(Task.java:348)
    at org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.jav
    a:391)
    ... 34 more
    Nucleus shutting down
    Nucleus shutdown complete
    Thanks.

    This error is resolved after following the logs in C:\ATG\ATG10.1.1\CIM\log\cim.log. The root cause is I used http as protocol instead of t3 while specifying weblogic admin url.
    http://localhost:7001 instead of t3://localhost:7001
    Thanks.

Maybe you are looking for