SUN ONE Studio : How do I develop CMP2.0 from scratch

I am trying to develop a CMP 2.0 bean from scratch i.e I do not want EJB Builder to construct CMP bean based on an existing table. Can somebody tell me, once I have specified the persistent fields etc, where and how do I define the mappings in Forte and does Sun ONE appserver generate the table automatically?
Thanks

Repost your code, but this time wrapped in [code][/code] tags, so it's legible. And indent it meaningfully.
It sounds like ultimately the answer is: you have to store some state representing whether there is an appointment on that day, and you have to set the color of the button to indicate that state.

Similar Messages

  • Sun ONE Studio 5 Installation problem

    Hi,
    I have problems to install Sun ONE Studio 5.
    I download it from the download center (my username is nicola80) and I can't
    install it in my Linux Mandrake 8.2 version. The problem is that when the
    InstallShield start, I have the error message: "To install Sun ONE Studio 5
    you need to log in as superuser or a user with administrator privileges".
    Thank you!
    Nicola.

    I am getting the same problem. and I have tried loggin in as root. I am guessing it's checking access to some file....anyone know which one?

  • Sun ONE Studio 4 aka Forte: How to set the output path for classes ?

    Help !
    Beginner's question:
    Sun ONE Studio 4 aka Forte:
    How to set the output path for classes ?
    As default, the class files are created in the same directory as the
    sources.
    In opposite, both JBuilder and Together support that there is a tree
    with the sources and another tree with the classes.
    The first answer I got was "not possible with Forte, but just if you write your own "ANT Build script" !
    a) Please point me to a ready-to-use ANT script for this purpose, if such is available
    b) Is using ANT instead of the MAKE as comfortable ? Besides the separation of sourcecode and classes, I would like to keep everything else to be the same, i.e. I don�t want to edit the ANT file if I enlarge the project by directories or files.
    Tia
    Sincerely
    Rolf

    You can set S1S's options to place newly created .class files in a specific location.
    Identify the compiler that is being used - Open the S1S's Tools/Options window, expand Editing and select Java Sources. Note the Default Compiler value. (If it's one if the Ant options, you use Ant to specify this option, not S1S.)
    Open the S1S's Tools/Options window, expand Building/Compiler Types and select the appropriate compiler.
    The Properties tab of the compiler has the property Target, which sets the filesystem where the compiler output is directed. If you choose <not set>, the .class files are written to their source directory.
    When you set the Target, your change affects all classes that use this compiler.
    Very few options can't be set in S1S; the challenge is finding out where they're set!

  • How to load image to midlet using SUN ONE Studio 4, ME?

    Hi, everyone:
    I'm trying to load an image to my midlet using Sun ONE Studio.
    Image image = null;
    try
    image = Image.createImage("/Duke.png");
    }catch (Exception ex) {}
    ImageItem item = new ImageItem(null,image,ImageItem.LAYOUT_CENTER,null);
    append(item);
    I copied Duke.png in the same directory with midlet class file. But I can't see the image. I can get correct result by using J2ME wireless toolkit.
    Anybody know how to use Sun ONE Studio to load image?
    Thank you in advance!

    Hi, everyone:
    I'm trying to load an image to my midlet using Sun ONE
    Studio.
    Image image = null;
    try
    image = Image.createImage("/Duke.png");
    }catch (Exception ex) {}
    ImageItem item = new
    m = new
    ImageItem(null,image,ImageItem.LAYOUT_CENTER,null);
    append(item);
    I copied Duke.png in the same directory with midlet
    class file. But I can't see the image. I can get
    correct result by using J2ME wireless toolkit.
    Anybody know how to use Sun ONE Studio to load image?
    Thank you in advance!
    Hi,
    I have the same problem that you had with the path to the .png file in
    sun one studio 4, ME.
    Have did you solve it?
    I have all my .java files and the .png file in the same dir. and
    the call for creating the Image look like this:
    logo = Image.createImage("/splash3.png");
    and it does not work.
    The .png file is in the jar content.
    Will be thankful for all help!

  • How to migrate projects from sun one studio 5

    hi,
    can anybody tell me how to migrate existing projects from sun one studio 5 to sun java studio 8 projects?
    regards
    guenther

    Hi,
    It has been a while since I have had access to sun one studio 5. If I remember correctly, it was based on Netbeans 3.5.1. It turns out the Sun Java Studio Enterprise 7 release was based on Netbeans 3.6. Both of these Netbeans versions used mounted filesystems rather than the new project system. There is a migration guide from JSE 7 to JSE 8 available:
    http://developers.sun.com/prodtech/javatools/jsenterprise/reference/techart/jse8/intro_migration_jse8.html
    I think this migration guide will apply to your situation as well.
    Let me know if this helps.
    Thanks,
    George

  • Q: How to setting the Sun ONE Studio JDK and Class(and file) Path.

    1.I'll use two JDK version.
    2.I'll add the Oracle JDBC driver.
    3.In my city, I'm didn't find the Sun ONE Studio book.(Forte for Java 4).
    need help.
    Thank you.

    Dear javaunter20000,
    I'm used the Windows XP Professional(SP1),
    I'm use the
    Class.forName("oracle.jdbc.driver.OracleDriver").newInstance();
    String url="jdbc:oracle:thin:@127.0.0.1:1521:netcob";
    String user="***"; String password="***";
    Connection conn= DriverManager.getConnection(url,user,password);
    connect Orcale, compiler return:
    ***[34:1] unreported exception java.lang.ClassNotFoundException; must be caught or declared to be thrown
    Class.forName("oracle.jdbc.driver.OracleDriver").newInstance();
    ^
    ***[34:1] unreported exception java.lang.InstantiationException; must be caught or declared to be thrown
    Class.forName("oracle.jdbc.driver.OracleDriver").newInstance();
    ^

  • I am beginner to sun one studio and sun one application server

    How can i access a cmp from a jsp page.
    in sun one application server.
    thanx in advance

    where do you get the weblogic plugin from ?
    i am intrested in doing the same thing
    thanx
    prem
    "Ivan" <[email protected]> wrote in message
    news:[email protected]..
    >
    Dear all,
    My boss require me to use Sun One Studio 4 update 1 to do the development,but
    I find it's a nightmare to deploy the EJB/ application to the WebLogic6.1.
    >
    I've already installed the weblogic plug-in in the Sun One Studio.
    During deploying I could not find any setting that ask me for theweblogic-ejb-jar.xml.
    So I think the deployment will fail.
    Is there any others tutorial or e-book that can help me to familiar withthe deployment
    process?
    Many Thanks for all of you.
    Ivan

  • Adding CMP-fields to a EJB in sun ONE studio 5

    I have a CMP EJB, and initialized its fields against a table in a database (PointBase). When I later try adding additional fields, these fields naturally doesnt exist in the database.
    Then i make a test-module for the CMP EJB. When I try mapping the CMP-fields, I get in trouble with the field that doesnt exist in the database-table.
    How can I get around this problem, must I really manually update the database schema, or can I somehow "tell" SUN ONE studio to make the field for me.

    yes, but is there a way of letting J2EE handle all
    this "Under the hood", so i dont even have to worry
    about the internal datastructure in the database?You could drop the table from the database and then have Studio or deploytool create the tables (now with the additional fields) on deployment.
    -Ian Evans
    Sun Microsystems
    J2EE Tutorial team

  • Setup MySQL datasource for Sun ONE Studio

    Hello all,
    I've tried to post this message on the Sun ONE studio forum, however, there were compilation errors with JSP pages. As I needed the answer urgently, I decided to get some help here.
    I've successfully made connection to MySQL database during the CMP development. However, when I tried to run it, it said the JNDI Datasource can't be blank and provide username & password if necessary. I went back and gave it a name as jdbc/MySQL, and also provided the username & password. I then reran the app, and I got the following error
    java.rmi.ServerException: RemoteException occurred in server thread; nested exception is: java.rmi.RemoteException: Unable to get JDBC DataSource for CMP ....
    I've mounted the mysql.jar and hacked some other things to no success. Please help.
    Thanks & regards,
    Thinh

    Hi,
    Try validating your data source using
    http://developer.iplanet.com/tech/tools/dbping_overview.jsp
    Get back in case of any issues

  • Using JMF API with Sun One Studio v4 update 1 (community ed.)

    Having great difficulty trying to utilise the JMF API I've just downloaded with Sun One Studio v4, update 1 (community edition).
    After installing the API, I tried copying the the .jar files under the lib folder of JMF to the lib folder of sun one studio.
    Although admittedly a novice in the field of adding API's I have attempted to add the .jar files into the libary of recognised modules but made no progress.
    The problem is that although JMF API is installed, Sun One Studio does not seem to be aware of this and so does not recognise any associated libraries e.g. java.media or JMFApplet.
    I would appreciate advice from anyone who knows how to configure Sun One Studio to utilise the JMF API.
    Mark

    All right, I think I may have solved it. After mounting jmf.jar I needed to update the parser database. All the libraries seem to be there.
    Can someone clarify though, the trial program i'm using makes reference to: java.media
    I don't have this module. I do instead have javax.media which I believe includes all the methods of the java version. Am I right or am I missing this crucial module??

  • Superuser without privileges installing Sun One Studio in Debian Linux

    i am trying to install Sun One Studio in my Debian Linux and when i launch the setup application it tells me that i must log in as superuser to install. Well, the thing is that i launch the installer as root, but the program doesn't seem to think the same :)
    Surprisingly, the log file doesn'l show any related error; it only shows a warning about some widgets... so this seems to be a simple bug in the installer.
    Here's the log:
    file type: 5
    file id: 0
    length: 1009
    offset: 624320
    file name: Verify.jar
    file type: 0
    file id: 1
    length: 145
    offset: 625329
    file name: instructions.txt
    file type: 2
    file id: 2
    length: 728
    offset: 625474
    file name: launch.txt
    file type: 1
    file id: 3
    length: 347
    offset: 626202
    file name: path.jvm
    file type: 1
    file id: 4
    length: 542
    offset: 626549
    file name: sunjdk14.jvm
    file type: 1
    file id: 5
    length: 584
    offset: 627091
    file name: sunjre14.jvm
    file type: 1
    file id: 6
    length: 485
    offset: 627675
    file name: sunjdk131.jvm
    file type: 1
    file id: 7
    length: 461
    offset: 628160
    file name: sunjre131.jvm
    file type: 1
    file id: 8
    length: 423
    offset: 628621
    file name: blackdownjdk131.jvm
    file type: 1
    file id: 9
    length: 418
    offset: 629044
    file name: blackdownjre131.jvm
    file type: 1
    file id: 10
    length: 548
    offset: 629462
    file name: sunjdk13.jvm
    file type: 1
    file id: 11
    length: 432
    offset: 630010
    file name: blackdownjdk13.jvm
    file type: 1
    file id: 12
    length: 433
    offset: 630442
    file name: blackdownjre13.jvm
    file type: 1
    file id: 13
    length: 461
    offset: 630875
    file name: ibmjdk13.jvm
    file type: 1
    file id: 14
    length: 468
    offset: 631336
    file name: ibmjre13.jvm
    file type: 1
    file id: 15
    length: 449
    offset: 631804
    file name: sunjre13.jvm
    file type: 6
    file id: 16
    length: 210451841
    offset: 632253
    file name: s1s5u1se-linux-en.jar
    Finding a JVM
    Initiating JVM search based on hints...
    Searching for Sun Microsystems Java Development Kit (JDK) 1.4.X for Linux in PATH variable using platform hints
    Searching for Sun Microsystems Java Development Kit (JDK) 1.4.X for Linux in PATH variable using path hints
    Searching for Sun Microsystems Java Development Kit (JDK) 1.4.X for Linux in PATH variable using platform specific JVM Path hints
    Checking JVM at /mnt/local/j2sdk1.4.2_04/ which was resolved from the platform JVM path /mnt/local/j2sdk1.4.2_04/bin
    Verifying JVM at /mnt/local/j2sdk1.4.2_04/bin/java
    for JVM: Sun Microsystems Java Development Kit (JDK) 1.4.X for Linux in PATH variable
    Executing launch script command: "/mnt/local/j2sdk1.4.2_04/bin/java" -cp "/tmp/isjbAAjZc/Verify.jar" "Verify" java.vendor java.version in working directory /mnt/local/lalala/.
    Output from the launch script execution
    StdOut:
    1739021872
    Sun Microsystems Inc.
    1.4.2_04
    ErrOut:
    Found matching JVM at /mnt/local/j2sdk1.4.2_04/
    Matching JVM home is /mnt/local/j2sdk1.4.2_04/
    Matching JVM file is /tmp/isjwSPfK2
    Executing launch script command: "/mnt/local/j2sdk1.4.2_04//bin/java" -cp "/tmp/isjxGApzS/s1s5u1se-linux-en.jar" -Dtemp.dir="/tmp" -Dis.jvm.home="/mnt/local/j2sdk1.4.2_04/" -Dis.jvm.temp="0" -Dis.media.home="/tmp/isjxGApzS/s1s5u1se-linux-en.jar" -Dis.launcher.file="/mnt/local/lalala/./s1s5u1se-linux-en.bin" -Dis.jvm.file="/tmp/isjwSPfK2" -Dis.external.home="/mnt/local/lalala/." run in working directory /mnt/local/lalala/.
    Output from the launch script execution
    StdOut:
    ErrOut:
    Warning:
    Name: scrollbar
    Class: XmScrollBar
    The scrollbar page increment is less than 1.
    Warning:
    Name: scrollbar
    Class: XmScrollBar
    The scrollbar page increment is less than 1.
    Any idea? thanks for reading!

    The error you report is not causing the problem.
    Try : http://swforum.sun.com/jive/thread.jspa?forumID=128&threadID=29443
    -Alexis

  • Installation sun one studio ver. 5 fail in mandrake

    I download sun one studio ver.5 in my mandrake linux ver. 9.0 and I have jsdk1.4.1_03. When I tried install it I received this message:
    To install sun one studio 5 you need to log in a superuser or a user with administrator privileges.
    I login in a term with root user and also start X session with root user but received this error also.
    any sugestion??

    I finally solved the problem by modifying the java source code of the installer. It did unnecessary checks for supported distributions and their versions. After removing these checks, SUN ONE Studio 5 installed and ran properly.
    Here is how to do it in short:
    1. Unzip the downloaded binary installation file into some folder. I will refer to this folder as "setuproot".
    2. Starting from the "setuprot" folder, find the file com/ibm/wizard/platform/linux/LinuxRedHatCommands.class.
    3. Decompile this file using the "Jad" Java decompiler. You can find it at http://kpdus.tripod.com/jad.html .
    4. Rename the resulting LinuxRedHatCommands.jad file to LinuxRedHatCommands.java.
    5. Modify LinuxRedHatCommands.java in the following way: Find the method "isValidDistribution()" and replace its whole body with the following line: "return true;" Save the modified file.
    5. Compile the modified java file by executing the following command from the "setuproot" folder: "javac com/ibm//wizard/platform/linux/LinuxRedHatCommands.java"
    6. Now start the installation with the "java run" command from the "setuproot" folder.
    Now it should not complain about insufficient administrative privileges.
    (A properly installed java1.4.1_02 or above SDK is a requirement for both the Studio5 and for the above instructions to work.)
    I still was not able to install the bundled Application Server7, because it's check box was disabled with a comment about my incompatible platform. I guess this will be the next step to resolve...
    Cheers,
    George

  • Build a EJB/ Application with Sun One Studio and deploy to Weblogic

    Dear all,
    My boss require me to use Sun One Studio 4 update 1 to do the development, but
    I find it's a nightmare to deploy the EJB/ application to the WebLogic 6.1.
    I've already installed the weblogic plug-in in the Sun One Studio.
    During deploying I could not find any setting that ask me for the weblogic-ejb-jar.xml.
    So I think the deployment will fail.
    Is there any others tutorial or e-book that can help me to familiar with the deployment
    process?
    Many Thanks for all of you.
    Ivan

    where do you get the weblogic plugin from ?
    i am intrested in doing the same thing
    thanx
    prem
    "Ivan" <[email protected]> wrote in message
    news:[email protected]..
    >
    Dear all,
    My boss require me to use Sun One Studio 4 update 1 to do the development,but
    I find it's a nightmare to deploy the EJB/ application to the WebLogic6.1.
    >
    I've already installed the weblogic plug-in in the Sun One Studio.
    During deploying I could not find any setting that ask me for theweblogic-ejb-jar.xml.
    So I think the deployment will fail.
    Is there any others tutorial or e-book that can help me to familiar withthe deployment
    process?
    Many Thanks for all of you.
    Ivan

  • Sun ONE Studio IDE ???

    Hello,
    I have a JSP project to which has to be created in Sun One Studio. On internet, while searching to download it, I find pages for version 5 which says, Soory no download is availbale at present and for 4 it shows how to migrate Sun One Studio projects to NetBeans.
    Can anyine help me out, where can I find Sun One Studio to download. It has the sun Applicaton Server along with it.
    I am in hurry, have already spend days looking out for the above. If anyone could help at the earliest, would appreciate.
    Thanks

    Glad you're giving up the VB for a real language.
    If none of the options listed at http://docs.sun.com/source/817-2318/ide_setup.html work, you'll probably have to reinstall.

  • Sun ONE Studio vs. NetBeans IDE 3.5

    Now that IBM's VisualAge for Java is dead, I have been looking for a replacement IDE. I have been totally frusturated by the lack of basic information on IBM's Websphere -- their own specialists had a hard time answering elementary questions -- and the "upgrade" for VA 4, which cost $100 originally, could be $1000 to $3500 depending on what piece of Websphere you get.
    Well, so I looked at Sun ONE Studio 5.0 -- then noticed that SDK 1.4.2 was out (i had the beta). I'm doing the trial period of ONE Studio, then I get NetBeans 3.5 as part of the SDK download. NetBeans is FREE and Sun ONE Studio 5.0 is $695, and "based on NetBeans."
    "Based on?" Looking at NetBeans 3.5 IDE, I don't see what Studio offers that you don't get in NetBeans. Is there any paper or comparison anybody has written comparing the two packages?
    Both are great pieces of software, but what do I pay $695 for?

    you got integration with more wizards, deployment tools and application server for both J2SE & J2EE development.
    But it's a real shame and even scandal that this tool becomes commercial and so expensive.
    So now, you don't have the choice and you have to pay for the Sun branded tool ! (except the J2ME one)
    I had the weakness to believe that Sun and its Java wanted to have a important place in the open source or at least free software world !(clearly, it's the future ). But this aggressive(695$ !!!) commercial U-turn awakes me from my dream.
    That's it for now, I return on my beloved Eclipse Platform and its plugins, digusted ...

Maybe you are looking for