How to configure MySQL to be used with J2EE 1.3.1 -- Very Very URGENT.

Hi All,
I have downloaded Sun's J2EE reference implementation 1.3.1. I want to use MySQL as my database instead of the default database Cloudscape that comes with J2EE SDK 1.3.1. Can any one help me configuring in doing the same.
Thanks and regards,
Venky.

Hi! I had the same problem, too. I�m Brazilian and I�ve been learning the English language yet, but I�ll try to describe how to configure J2EE with MySQL.
I am using MySQL version 4.1.7 with J2EE version 1.3 on Windows XP Professional. The driver version of MySQL is 3.0.16.
You have to configure the following two files:
- <J2EE_HOME>\bin\setenv.bat
- <J2EE_HOME>\config\resource.properties
Do the following steps:
1) Copy the JAR file of MySQL driver (mysql-connector-java-3.0.16-ga-bin.jar) to <J2EE_HOME>\lib directory.
2) In <J2EE_HOME>\bin directory open the setenv.bat file and analize the code. It is not hard to understand the code, it is just the classpath configuration of J2EE. After understand it, add a reference of MySQL driver (mysql-connector-java-3.0.16-ga-bin.jar), that was copied to <J2EE_HOME>\lib directory.
3) Run the <J2EE_HOME>\bin\j2eeadmin.bat to configure the resource.properties file.There are two command lines to be executed, as below:
- j2eeadmin.bat -addJdbcDriver <CLASS NAME OF THE DRIVER>
- j2eeadmin.bat -addJdbcDatasource <JNDI NAME> <URL>
For example:
- j2eeadmin.bat -addJdbcDriver "com.mysql.jdbc.Driver"
- j2eeadmin.bat -addJdbcDatasource "jdbc/mysql/test" "jdbc:mysql://localhost/test?user=username&password=pass"
4) After run j2eeadmin.bat, the resource.properties file will be modified. But when I did it and when I executed the verbose command to start J2EE, some error messages was exhibited. So I decided to open the resource.properties file and I noticed that the character "\" was added erroneously in a lot of places of the code. It did not seem correct, so I decided to remove these characters replacing them. Bingo!!! After I did it, I run verbose again and no more message error ocurred. I think it is a bug of J2EE.
Finish! I modified the datasource JNDI to access MySQL and then I run my EAR application. No problems occurred. My application is running succesfully.
Good luck!

Similar Messages

  • How to configure a new product type with a new operation deal?

    hello, All,
    I wonder to know if somebody knows, how to configure a new product type with a new operation deal with the amortization divided?, I mean in the SPRO, portfolio of securities with the characteristics mentioned.
    Hope you help me.
    Bests regards.

    Hi Prasad,
    Thanks for the information, but the directions that you give me not be useful, I want that the UPDATE TYPE  appears in the position cash flow in the transaction deal in the option-->operative valuation area( 2nd option) or in the report TPM13, this for two treasury ledger dates.
    I mean that the update type "samxx" affect the accountant as amortization divided?, this transaction deal is a purchase.
    Thanks in advanced

  • I have an external hard drive that was formatted by a PC and has files and directories etc. I want to format it and use it on my IMAC for backup but I can't seem to write to it nor can I delete current content. How do I initialize it for use with the MAC?

    I have an external hard drive that was formatted by a PC and has files and directories copied to it etc. I want to use it on my IMAC for backup. I see it on my my IMAC . I can open files etc.  But I can't seem to write to it nor can I delete current content. I don't care if I lose current content. How do I initialize it for use with the MAC?

    You can't write to it because it's formatted as NTFS which OS X will read but not write to. If you want to continue using the drive with both a PC and OS X you will need to download and install NTFS-3G so you can then write to it from your Mac. You can get NTFS-3G at:
    http://www.macupdate.com/app/mac/24481/ntfs-3g
    If you want to use the drive exclusively with your Mac then move the data off it and reformat it in Disk Utility (Applications - Utilities - Disk Utilities) as Mac OS Extended (Journaled.)

  • I have a company Ipad that belonged to a deceased employee. no access to his icloud or appleID. how can I restore it for use with a new apple ID

    I have a company Ipad that belonged to a deceased employee. no access to his icloud or appleID. how can I restore it for use with a new apple ID?
    The apple ID was his personal account and can no longer gain access. Im sure I can get purchase recipts from the accounting department if needed. I tried to put the Ipad in restore mode and used itunes to "recover" the ipad but it still wont let me in because he registered the device with the "lost iphone" feature or whatever that is.

    Activation Lock in iOS 7  >  http://support.apple.com/kb/HT5818
    The Apple ID and Password that was Originally used to Activate the iDevice is required
    If you do not have that information you will not be able to use the Device.

  • Configuring Cisco Router for use with Syslog Server

    Configuring Cisco Router for use with Syslog Server:
    Does anyone know of a good doc for this?
    -Ashley

    Start with that one: http://security-planet.de/wp-content/uploads/2008/12/logging-ios.pdf
    And if you need more informations, just ask what you want to achieve.
    Don't stop after you've improved your network! Improve the world by lending money to the working poor:
    http://www.kiva.org/invitedby/karsteni

  • HT5219 How many Thunderbolt displays can I use with my MacBook Pro using Windows 7 and  Parrallels?

    How many Thunderbolt displays can I use with my MacBook Pro using Windows 7 and Parallels

    Two. You can daisy-chain two ATD together. Doesn't matter what you're running.
    Clinton

  • How to configure and deploy OAM 11g with DB setup using silent mode

    Hello all,
    I am trying to create automation process to install and configure OAM 11g on WLS. This task involves three stages
    1. Install WLS
    2. Install OAM 11g
    3. Create DB schema using RCU
    4. Configure and deploy OAM 11g
    I have done first 3 stages in silent mode using scripts and response files. I am stuck at 4th stage. I know how to configure and deploy OAM 11g using config.sh via GUI installer as well as console mode. But I would like to run config.sh in silent mode something like
    ./config.sh -mode=silent -silent_script=<script_location>
    I have searched a lot, but could not find any resource on how to do it? I tried passing the parameters via a text file. But that has not worked. I have also explored WLST, but it also does not work. Given that first 3 things are relatively very simple, the 4th step is becoming complex. I would be very thankful if someone can please point me in the right direction.
    Thanks!

    Have a look at your software directory : <sofware directory>/Disk1/stage/Response
    Here you will find 2 rsp files which you can use to install and then configure it all.
    Good luck.
    Filip

  • Configuration of XSQL for use with non-Oracle dbs

    If anyone has positive experiences with configuring XSQL for use with non Oracle databases I'd like to hear how they did it, see tutorials, configuration files, etc.
    Specifically setting up to use MySQL or Postgresql on Linux/FreeBSD would be very interesting.
    Also, does anyone use this without setting mime types? How would you go about this so you could point to the relevant servlets in the page?
    Josh

    I don't understand how setting up for Non-Oracle DB's is related to not setting up the servlet as an extension-mapped servlet.
    It might work, but would you run JSP's
    that way? XSQL behaves very similiarly
    inside to how a JSP runner works, which
    wants to be servlet-mapped.
    However, OAS 4.0.8.1 does not support
    extension mapping and XSQL works there
    so i'm assuming it would work on other
    servers set up that way. It's not
    a configuration we test/certify.
    null

  • How to configure ADF application to use OAM Identity Assertion ? web.xml

    We have a web application developed using ADF (application development framework) and deployed on WebCenter 11.1.1.2 (weblogic 10.3.2)
    OID Authentication and OAM identity assertion is configured in WebLogic 10.3.2 .
    How to configure security in ADF application (web.xml or weblogic.xml) so that it uses OAM identity assertion (already configured as authentication providers in weblogic server)
    Any pointers or documentation so that application (developed using ADF) check for identity tocken and verifies it with one of identity assertion providers.

    John,
    I have to concur. With OAM you don't need this. OAM intercepts the calls and inserts a cookie for WLS to get user information from.
    I strongly advise to go through the above mention OFM Security Guide. Esp. Chapter 10 tells you in every detail how to implement OAM SSO with WLS (with or without OHS as a proxy).
    Reading this chapter saves you time and turnarounds on this topic...
    --olaf                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Entering data into a mySQL database for use with my JDBC program

    does any know what i type on telnet to get mySQL to work on windows 2000?
    i read check your isp for what to type in for this line, but i use IIS
    www24:mywww/devshed# mysql -u devshed -p
    and what do i put for
    login: devshed
    Password: ********
    it says check with isp on that one too
    i am trying to insert records, and make columns, is there an easier way to do this?
    thanks,
    Pearl
    Beginning MySQL Tutorial
    By W.J. Gilmore
    April 03, 1999
    Part 1: At First Glance
    MySQL is most commonly entered through telnet. (A nice Telnet program, Easyterm, can be found at http://www.arachnoid.com) Once the telnet connection to the web server has been accomplished, a second command provides access to the MySQL server. The procedure to make these connection is as follows:
    1. Connect to telnet. This involves the insertion of the given ISP username and password.
    --------------------------------------------------------------------------------login: devshed
    Password: ********
    Last login: Wed Aug 12 09:49:14 from 195.103.124.222
    Copyright 1992, 1993, 1994, 1995, 1996 Berkeley Software Design, Inc.
    Copyright (c) 1980, 1983, 1986, 1988, 1990, 1991, 1993, 1994
    The Regents of the University of California. All rights reserved.
    BSDI BSD/OS 2.1 Kernel #12: Mon Feb 23 13:46:27 EST 1998
    You have new mail.
    www24:mywww/devshed#
    2. Connect to MySQL. This involves the insertion of the username and password given specifically for MySQL use. This information has probably been provided to you at your request to the ISP provider.
    --------------------------------------------------------------------------------www24:mywww/devshed# mysql -u devshed -p--------------------------------------------------------------------------------
    Syntax: mysql -h hostname -u username -p[password]
    Or
    mysql -h hostname -u username --password=password
    The user will then be prompted for a password, as prompted by -p.
    --------------------------------------------------------------------------------Enter password: *******--------------------------------------------------------------------------------
    Assuming MySQL has been correctly installed and configured, the user will see output similiar to the following:
    Welcome to the MySQL monitor. Commands end with ; or \g.
    Your MySQL connection id is 49 to server version: 3.21.23-beta-log
    Type 'help' for help.
    mysql>
    (Note: If an error message pertaining to "Access denied" is the result of connection attempts, you should consult the MySQL documentation included with the software, the MySQL mailing list found at http://www.mysql.com, as well as your ISP provider. These resources will aid greatly in resolving these problems.)
    Once connected to the database, we are free to execute the various commands of the MySQL language. However before we are able to modify the database, we must first connect to it, via the command:
    --------------------------------------------------------------------------------mysql> use devshed;
    Result:
    --------------------------------------------------------------------------------Database changed
    Mysql>
    You now are connected to the database. Note that the command was followed by a semi-colon (;). Almost all commands in MySQL are followed by a semi-colon.
    At the disposition are a number of administrative commands. These commands can be viewed simply by typing help, \h or ? at the command line:
    --------------------------------------------------------------------------------mysql> help
    help (\h) Display this text
    ? (\h) Synonym for `help'
    clear (\c) Clear command
    connect (\r) Reconnect to the server. Optional arguments are db and host
    edit (\e) Edit command with $EDITOR
    exit (\) Exit mysql. Same as quit
    go (\g) Send command to mysql server
    print (\p) print current command
    quit (\q) Quit mysql
    rehash (\#) Rebuild completion hash
    status (\s) Get status information from the server
    use (\u) Use another database. Takes database name as argument
    Connection id: 49 (Can be used with mysqladmin kill)
    mysql>

    Let's make this simple:
    a) Your book seems to assume you're doing development remotely.
    b) You are not doing development remotely.
    c) Therefore, you shouldn't follow every step listed in your book (i.e. ignore the stuff about Telnet).
    Assuming you installed mySQL in the standard location, you can use this batch file to start mySQL on your machine:
    @echo on
    cd c:\mysql\bin
    mysqld
    @echo off
    cls
    Use this batch file to shut down mySQL:
    @echo on
    cd c:\mysql\bin
    mysqladmin shutdown
    @echo off
    cls
    You can play around without a login or password in development. For a production environment, you're going to need to set up users and grant permissions.
    Spend some time reading the mySQL documentation.

  • How to configure BODS in network environment with NAT ?

    Hi Team,
    Now we are working on POC of BO Data Services 4.0 with SI partner and they reported us that  a communication error (error code:BODI-1241023) occurred when they started a job from Designer. 
    They can do it without any problems in the following two cases.
    1. from Designer which is installed in the CMS/JobServer machine
    2. from Designer which is installed in local PC within internal network (without firewall / NAT) 
    That is, the cause is Firewall with NAT(Network Address Translation) between Designer and JobServer/CMS.
    And, they can log on to CMS/JobServer with NAT environment, however, cann't start a job from Designer.
    The port #3500 for JobServer is open. They confirmed that they could log on to the JobServer in the event log
    of the JobServer.
    That is,  Designer -> CMS/JobServer communication is OK, but JobServer -> Designer communication must be NG.
    Could you advise us how to configure BODS both client and server sides in the network environment with NAT ?
    Thanks and best regards,

    HI Buddy,
    You can achieve this by $FLEX$, create first value set, and assign it to first field. Create second value set based on first value set using $FLEX$.
    follow steps mentioned in the bellow link
    http://erpschools.com/articles/usage-of-flex

  • How to configure webcenter services to use external LDAP?

    Reassociating the identity store with an external LDAP server is mandatory only if you're using the Documents service and/or the Discussions service, in which case the WC_Spaces server, Content Server, and Collaboration server must all be configured to use the same external LDAP server.
    The question is how to configure?
    Is there any document which details this?
    Please help! this is urgent.
    Regards

    Refer
    http://docs.oracle.com/cd/E28280_01/webcenter.1111/e12405/wcadm_security_id_store.htm#WCADM1845
    http://docs.oracle.com/cd/E28280_01/webcenter.1111/e12405/wcadm_security_id_store.htm#WCADM345
    Thanks

  • How to configure RAID 5 sys using SAS controller for APP CS4

    Hi I would like to know how to configure my 3 HardDrives (600GB each) on RAID 5 connected to SAS controller to work smoothly with PremierePro CS4. Mainly to store scratch disk, and all preview files, etc.. At present it shows as one big hard drive in C:\ It shows as follows: OS(C 0.98 TB free of 1.08TB I would like to have at least one HDD out of 3 to store my scratch disk files and preview files... I have installed only CS4 Master Collection + Windows 7 64bit Ultimate as OS in this machine. Following is my system configuration: Intel Xeon E5620, 2.4GHz processor/12M Cache, 5.86GT/S, QPI, Turbo, HT, 4C Intel 5520 Chipset 12GB DDR3 RDIMM Memory,1333MHz, ECC Three 600GB (15000rpm) SAS HardDrives Perc6/i SAS/SATA Harware RAID card All SAS Drives, RAID 5, 3 drive configuration BlueRayBurner1GB PCIe X16 nVidia Quadro FX3800 ,Dual monitor DP+1 DVI Capable I am in a little bit strife on this. I am in a little bit strife on this and Open for any good and effective suggestions are much appreciated. Thanks Nathapushpa

    You even have three more connectors free on your Perc controller, so you could add three more disks, without using any motherboard connectors.
    I think you have two alternative approaches:
    1. Add a smallish disk as a boot disk, i.e. a 150 GB Velociraptor and install OS and programs there and let your raid5 exist as it is, or
    2. Add another 600 GB to your raid5 to make it a four disk array.
    Of course you could also do both. Breaking the raid out to individual disks means that all data on the current raid will be lost, unless you have a backup available, but it will still mean a fresh install of OS & programs, so remember to deactivate Adobe before you do anything to your disk setup like in alternative 1 or breaking out the array.

  • How to configure CVC automation process using SNP master data and BI customer master data

    Hi Gurus,
    How to configure CVC automation in MPOS structure technically, using SNP master data in CVC creation such as Product and location details
    and in parallel extract date from ECC to BI customer master data in DP. Where-in a APO BI cube should have only new combinations which are to be validated with ECC and existing combinations in the MPOS structure before creation of CVC in different regions of MPOS.
    Second the automation should also check certain validations of product, location and are part of SNP-ECC master data and are these new combinations.
    Could someone guide us in this process.
    Thanks
    Kumar

    Praveen,
    The short answer is to move the data into infoproviders or flat files for all of the 'characteristic-type' source data; and then copy CVCs from the infoproviders into the Planning area, probably using one or more Process Chains (program /SAPAPO/TS_PLOB_MAINTAIN).
    The long answer is that this is not a trivial undertaking; this could end up being a pretty involved solution.  If you do not have enough BW/DP expertise available locally to create this solution for you, then I recommend you consider engaging external resources to assist you.  I personally wouldn't even consider starting to work on such a solution without first knowing a lot more about the detailed business requirements, and about any existing solutions that may already in place.  An SCN forum is not really suitable for such an answer.  In my opinion, the BBP doc alone would be 20+ pages, assuming no enhancements..
    Best Regards,
    DB49

  • How to configure airport extreme to work with Actiontec gt701d modem

    I have been trying to set up a new Actiontec modem to work with a new Airport Extreme with no luck. I don't know what the right settings are to get it to work correctly. So far the only way I have been able to get the two to work together is to have the AE connect with ethernet and bridge mode. However with this configuration I can't setup a guest network which I would like to be able to do. I have read some past posts and have tried other configurations but end up either losing internet connection or getting a very slow connection. If anyone has some idea how to get this modem to work with the AE i would really appreciate some advice
    Thank you

    Welcome to the discussion area, Meagan!
    The Actiontec "modem" that you mention is really a gateway...a combination modem/router, so with this device and the AirPort Extreme, you have two routers on the network.
    Whenever you have two routers on a network, the first router must be configured to handle the main routing chores and any other routers must be configured in Bridge Mode to function correctly. So, Bridge Mode is the correct setting for the AirPort Extreme when used with the Actiontec gt701d gateway.
    In order for the AirPort Extreme to provide a Guest Network, it must be configured as the "main" router on a network. This won't be possible unless you can re-configure the Actiontec device to act as a simple modem, not a router. You might want to check with Actiontec support to see whether this might be possible.
    Message was edited by: Bob Timmons

Maybe you are looking for

  • Why can't I print out a year view calendar?

    I was thrilled to find we now have a Year-View in iCal with OSX Lion, but now I find I cannot print it out. Every year, I like to print a few year-view calendars to keep in different places. Right now, I do not have any calendar program that will let

  • Continuing font encoding and tag issues with snow leopard and CS4oI

    I am looking for help with a font handling issue with snow leopard and cs4 Indesign. Despite numerous calls and hours on the phone neither Apple nor Adobe has been helpful. I have had this issue open with Adobe since oct 5 but they remain totally unr

  • FBL3N VENDOR NUMBER DISPLAY ERROR

    HI, when i done customization to appear vendor number in FBL3N. when i choose vendor number in FBL3N the system generates a error message that   RFITEMGL this program as dump. This is problem i am facing i done all the customization. anything else cu

  • Unexpected Split Screen

    I work on a mini mac (OS X 10.4) with an Acer Flat Screen monitor and in the last day it has developed a split screen (vertical, 2 parts). The parts are not even, the top one is larger than the bottom and they mirror each other. I can still access fi

  • Upgrading Macbook Pro 13 inch

    Hey, first post on here so go easy on me hehe. Recently i bought a standard Macbook Pro 13 inch, 2.26Ghz, 2GB RAM, 160GB HDD. Im loving the ease of use of the Mac OS but i only have one problem, which to be honest is my own fault at time of purchase.