New to J2EE Pls Help in some basic Problems

Hello Friends! This is Anand. I had started working in J2EE recentelly. In start we r using J2EE server. but later we deployed same java beans on iPplanet server. it gives some problems. So can anybuddy told me answers of my following questions-
1) What is basic difference in J2EE server and iPlanet.
2) Is iPlanet is reliable server or suggest some reliable server(shoule i use Oracle 9i)
3) Sometimes i come accross an error - Marshal Error or UnMarshal error. i cant understand what actually
i have to change in my EJB.
so pls guide me.
- Thanks in advance

Hello Friends.
Thanks for quick replay.
I am using J2EE server means which comes with J2EE 1.3
Now I am using MySql and iPlanet Server. In that i always face a problem with database and i have to restart database server-
Too many connection
I am using a helper class for database connection. So if there is any better way to connect to database pls suggest
(We are not using CMP Entity Beans)
The class is as follows
public class help
     public String server="localhost";
     public static String database="system";
     public String driver="org.gjt.mm.mysql.Driver";
     public String user="root";
     public String dns="jdbc:mysql://"+server+":3306/"+database+"?user=root&password=";
     String passward="";
     String password="";
     public help(){
public class help10 extends help
public Connection c = null;
public Statement st = null;
public ResultSet rs = null;
     public help10()
     public void connect()
          try
               Class.forName(driver);
               c=DriverManager.getConnection(dns,user,passward);
               st=c.createStatement();
          }catch(Exception ex){e.printStackTrace();}
public void disconnect()
          try
               if(c!=null)
                    c.close();
          }catch(Exception ex){e.printStackTrace();}
          c = null;
}

Similar Messages

  • Account Example in J2ee - pls help me

    Hi there,
    I am very new to J2ee technology and am trying Account example which comes with Sun j2dskee server.I am using the Cloudscape database.I am able to deploy the application without any problem.But when I run the client I am getting the following error.
    In the server console:
    Can't find principle mapping information for the data source with the jindi name jdbc/Cloudscape
    and in command prompt: getting rmi.remotexception:couldn't create entity bean.
    I think I am making some mistakes in creating the database AccountDB and am not sure about its correct directory in which it is to be created.The bat file cloudtable.bat not working for me.I created the database AccountDB.
    I would appriciate if anyone help me on this.I spent almost a week to make it happen.............
    Thanks
    -Devi

    It is important that you in the deployment tool write that you are using the cloudscape database. Beside that you also need you create a table in the database create at *.bat file and write this in the file
    java -Dij.connection.cloudscapeDB=jdbc:rmi://localhost:1099/jdbc:cloudscape:cloudscapeDB\;create=true -Dcloudscape.system.home=%J2EE_HOME%\lib\cloudscape -classpath %J2EE_HOME%\lib\cloudscape\client.jar;%J2EE_HOME%\lib\cloudscape\tools.jar;%J2EE_HOME%\lib\system\cloudscape.jar;%J2EE_HOME%\lib\cloudscape\RmiJdbc.jar;%CLASSPATH% -ms16m -mx32m COM.cloudscape.tools.ij <lookup name>

  • New 2 javamail - pls help

    Hello everyone,
    I'm new to Java and have a project to do for school: setting up a webmail using Java.
    As I work on it, some errors appeared and I dont know their meaning or where to search their explanation:
    "The exception NoSuchProviderException is not handled"
    "Field type Session is missing"
    "Field type Store is missing"
    "Field type Folder is missing"
    Thank you very much, any input would be appreciated.

    Hi,
    The setProvider() method in javax.mail.Session can throw an exception called NoSuchProviderException when the Provider passed to it fails to instantiate. As with all java exceptions, this must be caught in you code and can't be ignored, you might like to do some of the online tutorials on this site. This one, http://java.sun.com/docs/books/tutorial/essential/exceptions/firstencounter.html is a good start for exception handling. It looks like you have some other problems there as well. Perhaps some quality time in the tutorial section will help. :-)
    Cheers,
    Peter.

  • Pls. help, SQL script page problem

    Hi,
    Im using the Hands On Oracle Database 10g Express Edition for Linux. Im in chap06 already p. 218. I just uploaded the SYSMGMT1 script. After that I Clicked the script's icon but I cannot see any SQL DDL commands inside. Nothing happened. It said in the book that I supposed to see and browse the SQL DDL commands that make up the script. I tried to click RUN, nothing happened either. Is there some kind of a bug in my System? Pls. help me because I cannot continue this chapter's exercise if I cannot solve this first problem that I encountered here in chap06. Any help from the guys outhere is really greatly appreciated. Thank you.
    respectfully waiting,
    Len

    Hi, did you ever get a solution to this because I am having exact same problem - I cannot see the scripts if I upload them nor can I type them in from scratch as the area for seeing/editting the script doesn't seem to be accessible.

  • NEED HELP HAVING SOME SERIOUS PROBLEMS WITH X-FI PLATI

    My sound card is only about 2-3 weeks old and was running fine uptill about a few days ago then it started having some problems the first was it wouldn't play audio in windows media player movie or music, it worked fine using other programs to play movies or music. Another problem I'm gettin is that the volume will be much lower than it should and this doesn't matter what program I use this does go away sometimes although I still dont know what causes it. I'm also getting intermittent sound problems in BF2 like not hearing sound when I switch to rear view which didn't happen before. I've tried trouble shooting it myself but to no avail. I tried installing it on my other hard dri've which is clean but even though I did a full installation it won't even recognize the card and says there is a prolem with the drivers. I can't understand why my sound card won't work on my second hard dri've and why I am having problems with it on my first. If anyone could help me with this problem it would be greatly appreciated. By the way I have a DFI LanParty NF4 Sli-DR, AMD Atholon 64 3000+, XFX 6800GS PCI-Express 256MB, 2GB OCZ Gold Dual Channel DDR 400,Ultra 500watt PSU, Logitech Z-5500 5. Speakers. My first hard dri've is a Western Digital Caviar SE6 SATA 2 and my second hard dri've is a Hitachi Deskstar T7K250 SATA 2, they are both 250GB and are seperate they aren't connected to my motherboard or even on at the same time.Message Edited by RogueChaos on 05-3-2006 05:05 PM

    No help, but i agree with skullcracker!!! Return it ASAP!! You will thank us for this vital information!!!Message Edited by HaZe303 on 05-4-2006 06:29 AM

  • Really Need Help with Some Basics! 

    I've done Adobe's flash tutorials, and made a numbef of
    animations, and feel comfortable with that, but am having trouble
    finding a good source on how to best implement a full flash site
    for the web. Is there an Adobe tutorial I am missing?
    Specifically, I've made an animation using the new Flash
    screens feature, but am having a few problems with it. For one, the
    animation is 443 kb for the full animation. Is this acceptable if I
    add a preloader? (website is for a Swiss audience only - so pretty
    good bandwidth)
    Here's the site: (use forward and back to navigate as one of
    the problems I"m having is with the buttons on the top)
    http://www.genevanotebook.com/BUFFET/test.html
    I've also had some problems with the navigation. Forward and
    Back work, but I can't get the buttons to work (is this a limiation
    in the "linear" screens feature?)
    Or would someone divide this up in some way. I've though of
    different possibilities like using frames (which I haven't touched
    for years) and having buttons in an simple html frame, which then
    opens and plays the flash files in the frame just below it. Or
    would Iframes be a way of proceeding? Or is there something else I
    am missing. I would be very curious to hear how you experts would
    proceed with putting together a site like the one above!
    Many thanks for any suggestions, including websites with good
    examples of the different ways a site like mine could be
    implemented for the web.

    Here is the link.
    http://www.matthewpavkov.com/buffetscreens_edited.fla
    Now, I'm going to try and explain what I did as best I can.
    But please understand that I do not know very much about
    actionscript, I just know how to feel my way through syntax and
    where code should and shouldn't be.
    First, I renamed the slides on the left. b-b-q ----> bbq1,
    and so forth. This is what I believe was the main problem for the
    buttons not working. My guess is you may have used the instance
    name somewhere and that could affect it. The second part to the
    main reason why your buttons weren't working is that you had
    different code on the word buttons than the code on the picture
    buttons. The code on the word buttons was the correct code. So, I
    copied and pasted that code on each of the word buttons AND each of
    the picture buttons, correspondingly. Then I changed each code to
    match up with the new names for the slides. Doing this alone fixed
    all the buttons so everything worked correctly. I also found that
    you had actionscript associated with the bbq slide. If you click on
    the slide on the left, you'll see the actionscript, I deleted that
    as it was unnecessary. Also, make sure to use the "Auto format"
    button in the actionscript plane, it's very useful for keeping
    things looks clean and consistent. I did that for all the code.
    Aside from this, I found nothing else wrong.
    I'd also like to point out that I've never used slides
    before. In fact, I only became aware of them after looking at your
    file. They look like a useful feature if you're going to have many
    simple pages, but I think it'd be much easier to do what you're
    doing now...just have each button point to a frame (or set of
    frames) in the timeline. These slides seem a little cumbersome for
    a small project, not to mention I'm sure you'll have no problems
    whatsoever using the frames method instead of slides.
    Hope this helped.

  • Can someone help with some basic answers on Premiere Elements 12

    I have used Premiere Elements in the past (up to Premiere Elements 9) but only once per annum to edit the past year's video of my Grandchildren. The change now is that I am using a Panasonic HC-V520 and have been shooting in 1080 50p. Premiere Elements 9 doesn't support this format I believe.
    My questions are:
    1     Can Premiere Elements 12 import and edit this format?
    2     If the answer is yes to question 1, can I mix older footage from my old Sony Camcorder with this newer footage for edit in Premiere Elements?
    3     Can I then output to either a Blu Ray disc to play on my DVD Player or an ordinary DVD disc to play on an older DVD Player which is not blu ray compatible?
    4     Am I wasting my time in recording in 1080 50p and should I instead be recording new footage in a different format?
    Thanks for any help you can give me.

    1. yes
    2. yes
    3. No. DVD players can't play BluRay discs -- even if they are burned to a DVD disc.
    4. 1080p50 is a perfectly legitimate mode for shooting, particularly if you're shooting video with a lot of action, since it has double the actual frames of 1080i50. However, your output video may or may not actually have 50p frames (or even be 1920x1080), depending on what form of media you're publishing as. The BluRay files that Premiere Elements outputs, for instance are 50i.

  • HI NEW  MANY QUREIS PLS HELP HIGHLY AWARDED

    Hi guys iam suinaina from banglore iam in ro SAP SD now i started preparing real time scenarios as i was reading i had many doubts in end to end implementation some of them for today are as follows :
    1. In end to end implemetation of functional consultant prepares flowdiagrams and DFD are prepared in vision format as they are in AS IS document what are flow are flowdiagrams and DFD and there use ?
    2. What are predefined templates how they are prepared and there use and who will do it ?
    3. Is integration done simultanuosly with maping and gap analysis if so then what are they how do we define and who will do it and how ?
    4. In TO BE what are DFD/ERD which we prepare before configuring ?
    5. What are test scripts and when they are prepared  who prepares them and how and why ?
    6. What is Kick Off meeting? and what will be discussed down ther and who will participate ?
    7. What are ASAP road maps where are they used and how ?
    8. What are funtional specs and techical specs how do we use them and what are they ?
    9. What is the most commom form of testing done in  many companies to test ?
    so guys u r answers will be very valuble and highly rewarded so pls do the need ful
    take care
    byeeeee

    Suinaina,
    Where you based at &   working presently? If you provide some details I could send some information to you.
    Thanks
    Shiv

  • I need help with some basics with itunes 9

    Okay, maybe it's just me, but I can't get 9 to do some of the things that I just figured out how to do with 8 so if anyone can help you would save my sanity. First, I only have a few things listed to rank my albums on top in the view section-like album, artist album artist for ex. I used to be able to see all of those on the screen. 9 has spread out these columns too wide and I would like to reduce them.
    Second, I have several compilation albums like the Now that's what I call music. I had them fixed so that they would list as the total album with all the various artists. Now if I have 9 in the list view, it separates every artist in that type of album by their name. It won't just list them as an album together. If I click on the album from the side album it has the tracks all mixed up. The only way that I can see them being together and in the correct order is if I stay on the album view.
    I'm sure that these are stupid things to be concerned with, but I want to be able to view my own library the way I want to view it. Any help would be greatly appreciated.

    Okay, maybe it's just me, but I can't get 9 to do some of the things that I just figured out how to do with 8 so if anyone can help you would save my sanity. First, I only have a few things listed to rank my albums on top in the view section-like album, artist album artist for ex. I used to be able to see all of those on the screen. 9 has spread out these columns too wide and I would like to reduce them.
    Second, I have several compilation albums like the Now that's what I call music. I had them fixed so that they would list as the total album with all the various artists. Now if I have 9 in the list view, it separates every artist in that type of album by their name. It won't just list them as an album together. If I click on the album from the side album it has the tracks all mixed up. The only way that I can see them being together and in the correct order is if I stay on the album view.
    I'm sure that these are stupid things to be concerned with, but I want to be able to view my own library the way I want to view it. Any help would be greatly appreciated.

  • Help with some basic understanding

    hi all,
    i am not able to understand one thing in flash - i have a
    button on layer1 frame 15. i gave that button an instance name of
    btPlay. now when i am defining the following function on Layer2
    frame 1 - btPlay.onPress = function () {
    mcPlay.gotoAndPlay(2);
    it doesnot work. it does not take the actionscript but when i
    define the above function on Layer2 frame 15, then it works. I am
    not able to understand this. an article on adobe site about the
    best practices of flash clearly says to define all the actionscript
    on a seperate layer and on the first frame but in my case it does
    not work. i have flash 8 pro.
    please help.
    thanks,
    gaurav

    The reason it doesn't work is because your button doesn't
    show on the stage
    until frame 15. If you expand the actionscript on layer frame
    to frame 15
    when you button comes on to the stage, it will work.
    Dan Mode
    *THE online Radio*
    http://www.tornadostream.com
    *Must Read*
    http://www.smithmediafusion.com/blog
    *Flash Helps*
    http://www.smithmediafusion.com/blog/?cat=11
    "gaurav_ch" <[email protected]> wrote in
    message
    news:eac659$mdg$[email protected]..
    > hi all,
    >
    > i am not able to understand one thing in flash - i have
    a button on layer1
    > frame 15. i gave that button an instance name of btPlay.
    now when i am
    > defining
    > the following function on Layer2 frame 1 -
    btPlay.onPress = function () {
    > mcPlay.gotoAndPlay(2);
    > }
    > it doesnot work. it does not take the actionscript but
    when i define the
    > above
    > function on Layer2 frame 15, then it works. I am not
    able to understand
    > this.
    > an article on adobe site about the best practices of
    flash clearly says to
    > define all the actionscript on a seperate layer and on
    the first frame but
    > in
    > my case it does not work. i have flash 8 pro.
    >
    > please help.
    >
    > thanks,
    >
    > gaurav
    >

  • Help with Some Basic Info

    hi, i am totally new to smart card development. i want to understand where the pieces fit together. Please consider this scenario. Assummig a company wants to issue smartcards to its clients, to be able to check their say transaction balance, on a server at their office, and the clients can use this card at say ATM, POS terminls etc. let me as the folowing questions?
    1) Will the program that will be written on the smart card contain, network addreses and say port numbers, that card readers on maybe an ATM will use to communicate with the server.
    2) Will there be another program written on the server that waits for requests on the specified port and return appropriate responses.
    3) Will another programbe written and deployed on the chip, that will handle the responses
    in summary, how does the terminal where the smart card is used know whic computer to contact and how does that computer and when a request get to this computer, what hapens next.

    Hi,
    java_everywhere wrote:
    1) Will the program that will be written on the smart card contain, network addreses and say port numbers, that card readers on maybe an ATM will use to communicate with the server.I guess this is dependent on the software contained in the card reader or ATM etc. Java Card's are passive and simply respond to requests sent to them.
    java_everywhere wrote:
    2) Will there be another program written on the server that waits for requests on the specified port and return appropriate responses.If you need to communicate with a server, you need an end point to communicate with. You will need some kind of system/software running on the server to handle these requests. Once possability is a web service running inside an application server.
    java_everywhere wrote:
    3) Will another programbe written and deployed on the chip, that will handle the responsesYou could handle many kinds of requests from a single Java Card applet. The client application and the card simply need to know how to communcate with each other.
    java_everywhere wrote:
    in summary, how does the terminal where the smart card is used know whic computer to contact and how does that computer and when a request get to this computer, what hapens next.An applet on a smartcard is a passive application and does not perform any processing until a request is sent to the card. To perform actions such as you have mentioned above, you would need some middleware in the ATM/POS device that is able to communicate with your card. This middleware would need to be configured to be able to find a server it is to communicate with. This configuration data could be stored on the card, but depending on your requirements, that may not be the best place to store it (could become out of date, etc).
    Cheers,
    Shane

  • Please help with some basic maths!

    Hi all.
    I am using inverse trigonometry to calculate an angle. Example:
    I have a triangle (right angled), I know the length of all three sides, and I want to work out the length of one of the other angles. In my example, the lengths are 2193, 1221, and 2510 ( the hypotenuse). So, using inverse trigonometry on a calculator, the larger angle is (INV)COS = Adj / Hyp (1221 / 2510) = 60.89 degrees.
    I can't achieve this in Java. I thought that the Math.acos() function would do this, but that returns 1.57.
    Would really appreciate some help here!

    mine returns 1.062, but I know (since I read the API) that this is in radians, and I also know how to easily convert radians to degrees to come up with your answer.

  • Very new in Java pls help!!!!!!

    hello,
    i just started to learn java and trying to do my first program, but dont know why i cant do that! it asking me to set my PATH in sdk bin folder with jdk and i dont know how to do that, couse i install it in diferent folders! im trying to set c:\jdk1.6\bin;%PATH% but writing "environment variable c:jdk1.6\bin;C:\windows\system32;C:\windows;C:\windowasystem32\wbem;C;\program files\cyberlink\power2Go\C:\sun\SDK\bin not defined" help me please!!!

    - Right click 'my computer', select 'properties'.
    - Click the 'advanced' tab.
    - click the 'environmental variables' button
    Here you will find the PATH environmental variable, most likely under system variables. Add the path to the JDK bin directory here.
    Note: If you have a command prompt open while you are doing this, open a new one as the old one will not see the changes you make. To make sure the PATH is valid, open a command prompt and type:
    echo %PATH%

  • Need help on some basic functions on a BB8310 Curve

    I know these are probably dumb but:
    How do you set up and send a text to someone not in your address book?
    For these next two questions I've looked up the answer in my user guide but they direct me to menu>options>General Options.  When I go into options  there is no General options!  So:
    How do you change the default on the volumn for incoming calls? 
    How to I improve sound quality.
    And just as a reference, I'm with AT&T and I did not subscribe to the internet-media package.  I do have unlimited text messaging which is why I want to know how to do it.
    Any help would be appreciated.  Thanks

    For someone that is not in your address book you can type in the cell number in the "To" field at the top of the screen. To change the default call volume you have to first go into the Phone or Call Log screen. Once you're in there you go into Options | General Options.
    If someone has been helpful please consider giving them kudos by clicking the star to the left of their post.
    Remember to resolve your thread by clicking Accepted Solution.

  • Help with some basic AS3 repeating scripts?

    Hello everyone,
    I have been asked to put together what I thought was a simple flash banner for a corporate site.  I am using Flash 8 and AS3, and the code is contained on a layer on frame 1.
    What I am attempting to do is slide a graphic from the right side of the page to the left.  Wait for 5 seconds, and the slide it down the page, and off the screen.  As the graphic is sliding down, a new graphic is sliding in from the right.  I have six different graphics that I need to do this with, and when the last one slides down, the whole thing repeats.
    I seem to be stuck and can't figure out how to do this....
    import fl.transitions.*;
    import fl.transitions.easing.*;
    import flash.display.Sprite;
    import flash.events.*
    var myIconArray:Array = new Array();
    myIconArray=[icon1, icon2, icon3, icon4, icon5, icon6];
    function SlideTextIn(myMC_Text, myMC){
      var myHoriTween1:Tween = new fl.transitions.Tween(myIconArray[myMC], "x", fl.transitions.easing.Strong.easeOut, 700, 250, 2, true);
      myHoriTween1.addEventListener(TweenEvent.MOTION_FINISH, finishedTween);
    function SlideTextDown (myMC_Text, myMC){
      var myHoriTween4:Tween = new fl.transitions.Tween(myIconArray[myMC_Text], "y", fl.transitions.easing.Strong.easeOut, 140, 600, 2, true);
    if(ArrayCounter+1 == 6){
      ArrayCounter=-1;
      SlideTextIn(0,0);
    function finishedTween(event:Event):void {
    SlideTextDown(ArrayCounter,ArrayCounter);
    ArrayCounter++;
    if(ArrayCounter >= 6){
       loopCounter++
      ArrayCounter=0;
    SlideTextIn(ArrayCounter,ArrayCounter)
    function finishedTextDown(event:Event):void {
      myIconArray[ArrayCounter].x = 700;
      myIconArray[ArrayCounter].y = 100;
      ArrayCounter=ArrayCounter+1;
        if(ArrayCounter>=6){
         ArrayCounter=0;

    Okay, I went back a attempted to clean up my code...this is what it looks like now:
    function SlideTextIn(myMC_Text, myMC){
    myText.text = ArrayCounter;
    myHoriTween1= new fl.transitions.Tween(myIconArray[myMC_Text], "x", fl.transitions.easing.Strong.easeOut, 700, 250, 2, true);
    myHoriTween1.addEventListener(TweenEvent.MOTION_FINISH, finishedTween)
    function finishedTween(e:TweenEvent):void {
    myHoriTween1.removeEventListener(TweenEvent.MOTION_FINISH, finishedTween);
    trace("loopCounter : " + loopCounter +" " +ArrayCounter)
    SlideTextDown(ArrayCounter,ArrayCounter);
    function SlideTextDown (myMC_Text, myMC){
    trace("Inside SlideTextDown " + myMC_Text)
    myHoriTween4= new fl.transitions.Tween(myIconArray[myMC_Text], "y", fl.transitions.easing.Strong.easeOut, 140, 300, 2, true);
    myHoriTween4.addEventListener(TweenEvent.MOTION_FINISH, finishedTextDown);
    function finishedTextDown(event:Event):void {
    myHoriTween4.removeEventListener(TweenEvent.MOTION_FINISH, finishedTextDown);
    myIconArray[ArrayCounter].x = 800;
    myIconArray[ArrayCounter].y = 80;
    ArrayCounter++
    if(ArrayCounter>=6){
      ArrayCounter=0;
    SlideTextIn(ArrayCounter,ArrayCounter);
    This will loop through all six graphics without a problem, and then start over again.  But, I can't seem to find a good way of sliding one graphic in from the right whilst the one is sliding down off the screen.

Maybe you are looking for

  • Error when updating pages from template

    When updating pages from a template I have been occasionally getting this error message: While executing onLoad in Swap Image.htm, the following JavaScript error(s) occured: At line 325 of the file "Hard Drive: Applications: Macromedia Dreamweaver 8:

  • What Are My Data Options for Droid 2? What About Texts?

    I'm looking over the available plans and I'm really confused. I've had the same plan pretty much for the past 15 months but I started with a Blackberry. Now I have a Droid 2 and I REALLY need to find a way to shave off some money from this bill. My b

  • File--xi--call webservice--post to R/3 idoc.

    Hi all,         I am stuck up with this scenario.Please anyone help me out with suggestion. A file is(Xml/flat) is kept into the server.Xi is picking up with file and then it will call a webservice .this webservice will get the file data and post it

  • Spry horizontal menu perfect on Mac, screwy on PC

    I created a Spry Horizontal menu for http://www.ljwdesign.com/clients/TotalFab. The only edit I made to http://www.ljwdesign.com/clients/TotalFab/SpryAssets/SpryMenuBarHorizontal.css was to add the positioning of the <div> container that holds the me

  • Anyone else getting App Crash error message \screen\previewsequence.cpp-2705

    Has anyone seen the following app crash error: \screen\previewsequence.cpp-2705 Currently running PrePro CC on a PC. i7-3770k cpu @3.5GHz RAM 16 GB All I am doing is replacing video clips on the timeline sequence with same clips due to project showin