Create a portlet by using Sun One Studio 5

Hi,
I am having Sun One Studio 5 and Portlet Builder 2.0, however I do not know how to create a portlet and deploy it into war. Please help me create a portlet using Sun One Studio 5.
Thanks in advance.
[email protected]

Liferay has a forum and you should use it - http://forums.liferay.com/ :-)
btw, I have used the liferay portal 3.2.0 with jboss/tomcat with inbuilt and custom portlets and never had such an issue. Note that you application user is not the login user to the portal. by default you have to use [email protected]/test and id/pwd.
Check the installation, dev instructions at
http://www.liferay.com/web/guest/documentation/installation/jboss_tomcat
http://www.liferay.com/web/guest/documentation/development

Similar Messages

  • 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!

  • Trouble with mapping CMR field using Sun One Studio

    I am having trouble adding a cmr between 2 entity beans. It is a simple one to one relationship, navigatable in only one direction. In the database I have a foreign key defined between the two tables that store the data for the beans.
    I add the relation by selecting the 2 beans and define it as one directional, one to one , with the name "bb". I then map the relationship field via the properties/As Sun One tab. I use the foreign key defined in the database. All seems to be well.
    Using Sun One AppServer 7 and Studio 4
    Upon deploying the application I receive:
    CMP Mapping Error in bean Sites:: Warning: The field bb is not mapped.
    Set the column mapping for the field.

    The CMR/CMP mappings is very instable.
    Sunone Studio 5 has a lot of bugs when mapping CMP/CMR but i never saw this one, try to upgrade.
    Please vote for this bug. It's killing me!!!!!!!!!!!!!!!
    http://developer.java.sun.com/developer/bugParade/bugs/4932495.html

  • How do I create an exe file using Sun One?

    Hello everyone,
    I need help in creating an executable file in Sun One, can someone please help?

    Hi all I search the forum and came up with some suggestions so I'll run with these until I exaust all of them!!! thanks anyways

  • Very New To Java, Using Sun One Studio

    I am doing a small work project for a company and they would like me to do a small project using the JavaMail API and the Java One Studio.
    Now I have some experience with Java, It is installing the JavaBeansTM Activation Framework and the JavaMail API to my Classpath.
    How do I figure out what my class path is?
    Thanks Mike

    If on windows or unix, in a shell, type set.
    If on mac OS, then I don't know. Sorry.

  • Read-Only error in Sun One Studio IDE 4

    I have been using Sun One Studio IDE 4 for months, and updated it for several time. Today I mounted a directory and wanted to create a new plain java class under this directory, but it always reported: Error: File in D:\..... is read-only. It never happened before. I am confused. Then I tried to mount other direcotries and create new java files, always got the same error. Could anyone please kindly tell me what�s wrong with the Sun One Studio? Thank you very much.
    Ellen

    Nobody familiar with Sun One Studio here? I don�t want to change IDE and could anyone please kindly help?

  • 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

  • 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

  • Wireless toolkit in sun one studio 4 update 1 mobile edition?

    I'm starting work on a MIDP 2.0 procect that requires the 2.1 wireless toolkit for JSR-172 (web services) support. I'm currently using Sun One Studio 4 update 1Mmobile Edition with the built-in 1.04 toolkit. Is there any way for me to setup the 2.1 toolkit to work with S1ME4_1?
    I know the Early Access release of ME 5 ships with 2.1 toolkit support, but my project extends beyond the 60 day license.
    Any help would be appreciated. Thanks. :-)

    Hi,
    1. install the WTK 2.1
    2. In your project in S1ME4_1 in the Explorer
    - select Runtime -> Device Emulator Registry -> Installed Emulators
    - click right on that and choose "Add... Emulator" and enter your path to the WTK 2.1 (normally you have then a new "installed emulator" (J2ME WTK2.1)
    3. Open the "Default Emulator" and change it by clicking right on the one mentioned.
    4. add the midpapi20.jar from the lib directory of WTK2.1 to the classpath (i.e. by mounting)
    Hope it works.
    Kay

  • Setting output-path in Sun One Studio

    Hi
    I didnt find a forum to fit my question, therefor I posted it here.
    My problem is that I cant set the output-path for my class-files when I�m using Sun ONE Studio 4. I go to Tools-Options-Building-Compiler Types-Internal Compilator and there I find a field named Target. There is no way I can change this since it is only a Compobox with two options: My working directory and -Not Set-
    Does anyone know if it is possible to fix this?
    /Pontus

    Hi, PonLin
    try to mount your output directory, as you did with your working directory.
    I think the Target field of "Tools-Options-Building-Compiler Types-Internal Compilator", only shows the current mounted file systems.
    Bye!!

  • Webboard project using sun java studio creator 2

    I would like to create a simple webboard using Sun Java Studio Creator 2. In the View Topic page, there are a subject and a message creator by the owner of the subject. Then there are messages reply by others. I use Table component to list all the messages. I put a Static Text and a Text Area component in a group panel. And put a group panel in a Table Column. I bind the the reply message with the Text Area.
    My problems are...
    1. The Text Area have the same value for every row.
    2. I changed the Text Area to Static Text. The binding is successful. However, it cannot display multiline message. Please suggest a component that is more suitable to bind the variable lines message. I would like each row to have different height depending on the length of the message.
    My jsp is as follows.
    <?xml version="1.0" encoding="UTF-8"?>
    <jsp:root version="1.2" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:ui="http://www.sun.com/web/ui">
        <jsp:directive.page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"/>
        <f:view>
            <ui:page binding="#{ReadTopic.page1}" id="page1">
                <ui:html binding="#{ReadTopic.html1}" id="html1">
                    <ui:head binding="#{ReadTopic.head1}" id="head1">
                        <ui:link binding="#{ReadTopic.link1}" id="link1" url="/resources/stylesheet.css"/>
                    </ui:head>
                    <ui:body binding="#{ReadTopic.body1}" id="body1" style="-rave-layout: grid">
                        <ui:form binding="#{ReadTopic.form1}" id="form1">
                            <ui:staticText binding="#{ReadTopic.staticText1}" id="staticText1" style="left: 120px; top: 24px; position: absolute"/>
                            <ui:messageGroup binding="#{ReadTopic.messageGroup1}" id="messageGroup1" style="position: absolute; left: 432px; top: 24px"/>
                            <ui:staticText binding="#{ReadTopic.staticText5}" id="staticText5" style="left: 120px; top: 72px; position: absolute" text="#{ReadTopic.topicGetNameDataProvider.value['topic.Owner']}"/>
                            <ui:staticText binding="#{ReadTopic.staticText6}" id="staticText6" style="left: 120px; top: 120px; position: absolute" text="#{ReadTopic.topicGetNameDataProvider.value['topic.Subject']}"/>
                            <ui:label binding="#{ReadTopic.label1}" id="label1" style="position: absolute; left: 24px; top: 24px" text="Topic No:"/>
                            <ui:label binding="#{ReadTopic.label2}" id="label2" style="position: absolute; left: 24px; top: 72px" text="Owner:"/>
                            <ui:label binding="#{ReadTopic.label3}" id="label3" style="position: absolute; left: 24px; top: 120px" text="Subject:"/>
                            <ui:button action="#{ReadTopic.button1_action}" binding="#{ReadTopic.button1}" id="button1"
                                style="left: 23px; top: 168px; position: absolute" text="Reply"/>
                            <ui:table augmentTitle="false" binding="#{ReadTopic.table2}" id="table2" style="left: 24px; top: 216px; position: absolute; width: 0px" width="0">
                                <script><![CDATA[
    /* ----- Functions for Table Preferences Panel ----- */
    * Toggle the table preferences panel open or closed
    function togglePreferencesPanel() {
      var table = document.getElementById("form1:table2");
      table.toggleTblePreferencesPanel();
    /* ----- Functions for Filter Panel ----- */
    * Return true if the filter menu has actually changed,
    * so the corresponding event should be allowed to continue.
    function filterMenuChanged() {
      var table = document.getElementById("form1:table2");
      return table.filterMenuChanged();
    * Toggle the custom filter panel (if any) open or closed.
    function toggleFilterPanel() {
      var table = document.getElementById("form1:table2");
      return table.toggleTableFilterPanel();
    /* ----- Functions for Table Actions ----- */
    * Initialize all rows of the table when the state
    * of selected rows changes.
    function initAllRows() {
      var table = document.getElementById("form1:table2");
      table.initAllRows();
    * Set the selected state for the given row groups
    * displayed in the table.  This functionality requires
    * the 'selectId' of the tableColumn to be set.
    * @param rowGroupId HTML element id of the tableRowGroup component
    * @param selected Flag indicating whether components should be selected
    function selectGroupRows(rowGroupId, selected) {
      var table = document.getElementById("form1:table2");
      table.selectGroupRows(rowGroupId, selected);
    * Disable all table actions if no rows have been selected.
    function disableActions() {
      // Determine whether any rows are currently selected
      var table = document.getElementById("form1:table2");
      var disabled = (table.getAllSelectedRowsCount() > 0) ? false : true;
      // Set disabled state for top actions
      document.getElementById("form1:table2:tableActionsTop:deleteTop").setDisabled(disabled);
      // Set disabled state for bottom actions
      document.getElementById("form1:table2:tableActionsBottom:deleteBottom").setDisabled(disabled);
    }]]></script>
                                <ui:tableRowGroup binding="#{ReadTopic.tableRowGroup2}" id="tableRowGroup2" rows="10"
                                    sourceData="#{ReadTopic.topicdetailDataProvider}" sourceVar="currentRow">
                                    <ui:tableColumn binding="#{ReadTopic.tableColumn4}" id="tableColumn4" width="80%">
                                        <ui:panelGroup binding="#{ReadTopic.groupPanel1}" id="groupPanel1" style="height: 94px; width: 238px">
                                            <h:panelGrid binding="#{ReadTopic.gridPanel1}" border="0" columns="2" id="gridPanel1" width="100%">
                                                <ui:label binding="#{ReadTopic.label4}" id="label4" text="No:"/>
                                                <ui:staticText binding="#{ReadTopic.staticText11}" id="staticText11" text="#{currentRow.value['topicdetail.No']}"/>
                                                <ui:label binding="#{ReadTopic.label5}" id="label5" text="Name:"/>
                                                <ui:staticText binding="#{ReadTopic.staticText12}" id="staticText12" text="#{currentRow.value['topicdetail.Name']}"/>
                                                <ui:label binding="#{ReadTopic.label6}" id="label6" text="&#3586;&#3657;&#3629;&#3588;&#3623;&#3634;&#3617;:"/>
                                                <ui:staticText binding="#{ReadTopic.staticText10}" id="staticText10" text="#{currentRow.value['topicdetail.Message']}"/>
                                            </h:panelGrid>
                                        </ui:panelGroup>
                                    </ui:tableColumn>
                                </ui:tableRowGroup>
                            </ui:table>
                        </ui:form>
                    </ui:body>
                </ui:html>
            </ui:page>
        </f:view>
    </jsp:root>

    Modify URL-PATTERN for your Faces Servlet from /faces/* to *.abc in web.xml
    change
    <servlet>
            <servlet-name>Faces Servlet</servlet-name>
            <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
            <load-on-startup>1</load-on-startup>
        </servlet>
      <servlet-mapping>
            <servlet-name>Faces Servlet</servlet-name>
            <url-pattern>/faces/*</url-pattern>
        </servlet-mapping>to
      <servlet>
           <servlet-name>Faces Servlet</servlet-name>
           <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
           <load-on-startup>1</load-on-startup>
      </servlet>
      <servlet-mapping>
            <servlet-name>Faces Servlet</servlet-name>
            <url-pattern>*.abc</url-pattern>
        </servlet-mapping>hope that might help :)
    REGARDS,
    RaHuL

  • A problem when using Sun One to create a Servlet?

    I have the Sun One Application Server installed on my computer. I used the Sun One Studio to create my first Servlet: HelloServlet. The steps are as following:
    1)First, the filesystem I mounted on Sun One Studio is:
    D:\myProgram\John\JohnEJB1.
    2)Then I created a folder(or package) under it, it�s called client. I created a html file, hello.html under this client folder, which will call a servlet later. Immediately, I transferred this client folder to a Web Module. So there is a WEB-INF under the D:\myProgram\John\JohnEJB1 in the Sun One Studio. This WEB-INF of course has one classes folder and one lib folder.
    3) Under this classes folder, which is used to save all the Servlet classes, I put my HelloServlet.java.
    4) in the web.xml, I put the following:
    <servlet>
    <servlet-name>MyHello</servlet-name>
    <display-name>MyHello</display-name>
    <servlet-class>samServlet. HelloServlet </servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name> MyHello </servlet-name>
    <url-pattern>/samTest</url-pattern>
    </servlet-mapping>
    5) Again, in the html file hello.html mentioned earlier, I put the Action like this: <FORM METHOD="GET" ACTION="/samTest">
    6) Finally, I deployed this WEB-INF to the Sun One Application Server.
    But when I went to the url: http://localhost: 80/client/hello.html to test it, when I clicked the Form Button, in other words, when the html file called the Servlet, it failed. It reported some error like NoClassDefFoundError.
    Anyone who can point out which part was wrong here? I know it�s a very basic problem. So I really appreciate your help.

    The classes folder should contain class files, not java files.

  • 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??

  • Starter question: ear created on sun one studio can't be redployed

    Just start learning sun one studio. Followed the tutorial of helloworld, test succeed on sun one studio's RI server. I tried to redeploy the ear file on sun one's application 7, got error message:
    Deployment Error -- Error while running ejbc -- Fatal Error from EJB Compiler -- -- Failed to load deployment descriptor for: hello cause: Error reading from file: C:\Sun\AppServer7\domains\domain1\server1\applications\j2ee-apps\hello_2\sun-EJBModule_Greeter.xml
    under hello_2 folder, the applicaiton server unzipped descriptor is named: EJBModule_Greeter.xml.
    shouldn't the ear file be able to redeploy without modification on any J2EE complied application server? what did I do wrong?
    Thanks for your help.
    regards.

    I'll answer my own question - for anyone else who may want to know. The tool is SUN ONE Migration tool for application servers, and it can be found at URL http://www.sun.com/migration/sunonetools.html.
    The migration is from J2EERI to S1AS. I haven't tried it out yet , but will soon.
    Earlier I asked ...
    Do I understand correctly - I must use a migration
    tool to migrate from SUN ONE to SUN ONE?

  • Creating JAR of an ejb from sun one studio 5.0

    I�ve got the following error when I�m trying to generate the jar of and ejb from sun one studio 5.0. What�s the problem?
    org/w3c/dom/Document.java [0:0] No file named org/w3c/dom/Document.java exists on disk in src.zip.
    Therefore it may not be compiled with an external compiler.
    You may need to check it out from version control or save some changes to it.
    com/ssos/ejb/information/EJBModule_InformationEJB.ejbmodule [0:0] Problem compiling class: "org/w3c/dom/Document" reason: Compile failed
    Called From: com/iplanet/services/util/XMLParser
    Called From: com/iplanet/services/ldap/DSConfigMgr
    Called From: com/iplanet/services/util/I18n
    Called From: com/iplanet/sso/SSOTokenManager
    Called From: com/iplanet/am/sdk/AMCommonUtils
    Called From: com/iplanet/am/sdk/AMException
    Called From: com/iplanet/dpro/session/service/SessionService
    Called From: com/iplanet/services/naming/WebtopNaming
    Called From: com/iplanet/dpro/session/SessionID
    Called From: com/iplanet/dpro/session/Session
    Called From: com/iplanet/am/util/Locale
    Called From: com/iplanet/sso/SSOException
    Called From: com/iplanet/sso/SSOToken
    Called From: com/ssos/ejb/information/LocalInformationEJB
    Errors compiling EJBModule_InformationEJB.

    Hep, we have the same problem. I am still trying to figure out why. I have some idea about the reason but I am testing my founding. It seems to me that the problem shows up when I add my database driver in Runtime/Databases/drivers tree (IBM DB2 driver: db2jcc.jar)
    Like I am saying I am still checking the connection. When I am convinced that indeed that is the problem, I will then try to find out why and what to do to make my life easier.
    clogon

Maybe you are looking for

  • Why does our macbook pro save pictures to downloads on my wife's account, but my side does not?

    In the beginning, everything worked fine. I dabbled with everything. Just getting the feel for os x. My account still works great, but my wife is having issues on her side. Such as, changing her desktop background, all of her friends pictures on face

  • Cannot adjust time as user, no printing either in KDE, arch 32 bit

    Hi,          I installed ntp, and tried to adjust time as it is aways wrong. Down South here in Oz it lookks liike we are in Canada or Europe! It asks for root password to auto update it from a time server, but says it is not system policy and then r

  • Unknown error (1417) and (1428)

    Hi, I have updated Itunes to version 7 and I'm trying to do the same for my ipod (version 1.2) but everytime I try, it give me a error window. When I try to update - The unknown error is (1417) and I also tried to restore instead and still gave me an

  • Window Opening Size

    Hi People; I have a window (Win1) which contains an Array of records. When I double click on one of the records(rows), the display method starts a task (Win2.display) which opens another window (Win2) which contains all of the record information. At

  • Need a windows script to check all unix db boxes are pinging ?

    Hi , I need a windows script to check all unix remote db boxes are pinging ? I need to show the output in an html file. Can anyone suggest ideas ?