(beginner) Need help with a client [Beginner]

Hi, i'm danny and i'm following tutorials and lessons, and i created my own server and i tried to make my own webclient. My Teacher send me a webclient and he said that i only have to change the ip adress into mines (runescapeworld143.zapto.org) and compile it. The whole problem is now my teacher is on holiday and i called him if he would help me he said that i must ask it to the forums of oracle, so here is my question.
Ok the source is here if you wanna download it [http://updatedannyskape.webs.com/client.jar.src.zip]
My teacher say's that the current ip = 188.165.201.65:port43594
and you have to change it in you're ip adress (runescapeworld143.zapto.org)
but the problem is now i searched the whole document for 188.165.201.65 but i can't find it, can somebody help me out where i can find this?
I also tried to compile the source but there are over the 100 errors
Maybe this is because i created my own compiler ?
I don't know but here is the compiler code
@echo off
cd .
"C:\Program Files\Java\jdk1.6.0_20\bin\javac.exe" -sourcepath scr/*.java
pause[Compiler error picture|http://updatedannyskape.webs.com/error.png]
I hope you are able to help me, Already thanks !
Edited by: Codenowy on Aug 18, 2010 1:21 PM
Edited by: Codenowy on Aug 18, 2010 1:22 PM

Open your file in QuickTime Player then press command & J keys to access the Properties window.
Click on *Video Track* then *Other Settings*.
Actvate the checkbox next to *Cache (hint)*.

Similar Messages

  • [Beginner] Need Help with my source [Beginner]

    Hi, i'm danny and i'm following tutorials and lessons, and i created my own server and i tried to make my own webclient. My Teacher send me a webclient and he said that i only have to change the ip adress into mines (runescapeworld143.zapto.org) and compile it. The whole problem is now my teacher is on holiday and i called him if he would help me he said that i must ask it to the forums of oracle, so here is my question.
    Ok the source is here if you wanna download it [http://updatedannyskape.webs.com/client.jar.src.zip]
    My teacher say's that the current ip = 188.165.201.65:port43594
    and you have to change it in you're ip adress (runescapeworld143.zapto.org)
    but the problem is now i searched the whole document for 188.165.201.65 but i can't find it, can somebody help me out where i can find this?
    I also tried to compile the source but there are over the 100 errors
    Maybe this is because i created my own compiler ?
    I don't know but here is the compiler code
    @echo off
    cd .
    "C:\Program Files\Java\jdk1.6.0_20\bin\javac.exe" -sourcepath scr/*.java
    pause[Compiler error picture|http://updatedannyskape.webs.com/error.png]
    I hope you are able to help me, Already thanks !
    Edited by: Codenowy on Aug 18, 2010 1:21 PM
    Edited by: Codenowy on Aug 18, 2010 1:22 PM

    Or are there any files missing ?

  • Beginner needs help with simple code.

    I just statrted learnind java, and I need some help with this simple program. For some reason everytime I enter my Farenheit value, the Celsius conversion returns as 0.0. Would really appreciate the help. Thanks.
    Here's the code:
    public class TempConverter
    public static void main(String[] args)
    double F = Double.parseDouble(args[0]);
    System.out.println("Temperature in Farenheit is: " + F);
    double C = 5 / 9;
    C *= (F - 32);
    System.out.println("Temperature in Celsius is: " + C);
    }

    double C = 5 / 9This considers "5" and "9" to be integers and does an integer division, discarding the remainder. The result of that division is 0. Trydouble C = 5.0/9.0;

  • Beginner - Need Help With Soundboard

    Hey everyone,
    I'm just learning Flash, and from various online tutorials, I
    have managed to get this far with the soundboard I want to make.
    Example Soundboard -
    Here
    As you can see from the example, this will be a very simple
    soundboard. All I want it to do is trigger and loop sounds, like it
    does now. But I have a couple things more I want it to do.
    In the example, in the "Over" state of the buttons, I've
    added text to show what each button will trigger (Test Loop 1, Test
    Loop 2).
    But once the sound is triggered (via OnRelease) and the user
    moves the cursor off the button - I want the Over state mode of the
    button to remain showing as the audio loop plays (so the user
    visually sees what audio loop is currently playing).
    How would I do this?
    Also, I'm considering making each button be it's own on/off
    control, instead of a completely separate "Off" button.
    I've found 4-5 different online tutorials to accomplish this
    same feature. And have tried and succeeded at doing some of them.
    But what I would like to know is, what method would be the
    easiest and most compatible, inconjunction to what I would like to
    do above?
    Last question...
    On the example soundboard, I notice that if you hover the
    cursor over where the text appears (Test Loop 1, Test Loop 2) it
    flickers the Over state of the buttons.
    Why does it do this, and can that be prevented?
    I know for a lot of you, these are probably simple questions.
    So, Hopefully someone can help me out. I've already done a lot
    searching for solutions, as well as tried the Flash "Help". But as
    a beginner, I'm not sure exactly what I need to search for.
    Any help will be sincerely appreciated!
    Thanks!

    1. you need to use movieclip buttons instead of true buttons
    to have better control of their up, over and down states.
    2. you can make each button a toggle by using toggle variable
    that you have execute one set of statements when the toggle is true
    and another set with the toggle variable is false. you'll "toggle"
    that variable each time your button is released
    3. you're seeing those problems with the text flickering
    because that text must be part of your buttons hit area..

  • Raw Beginner need help with Adobe Photoshop CS2

    I am reading Photoshop CS2 for digital photographers by Scott Kelby. I am looking at pg 55 if any one has this book and would like to visually see what I am about to describe. I own Adobe Photoshop CS2 software. After bringing up Adobe bride RAW on my PC, I then see all the settings, Exposure, Shadows, Brightness, Contrast, and Saturation.. Located directly above all of these settings is Auto and Default which you can click on and adjust all settings at the same time. If you don't like what you see you click on Default to go back to the original, you can then make your adjustments individually. In my CS2 book there is an Auto box you can check or un-check beside each setting, Exposure, Shadows, Brightness, and Contrast. My question is how do I get the Auto box beside each setting so I can simply put a check in that box and preview changes individually instead of the Auto and Default on top which changes every setting at the same time? I hope this make since to you, if not I will try to explain again.

    Thank you Ramon for your help. I will just be happy with what I have, which works fine but I thought it might be better for me to have the individual Auto check box for each setting. Thank you for the tip to double-click the sliders to reset it to default, it works in CS2 also:) Actually this gives me more control and works out great now that I think about it. I am sure there are more handy little tips I should know about but don't because I am a beginner in learning RAW. Hopefully I'll stumble across a book or some thing over the internet that will help me with my learning curve.

  • Beginner needs help with CMR field problem

    Hello,
    I have two ejbs, one called EstablishmentEJB and another called VisitorCommentsEJB. The relationship is of one EstablishmentEJB instance to many VisitorCommentsEJB instances.
    Here are the definitions for the tables:
    CREATE TABLE establishments (
      DB_ESTABLISHMENT_ID int(11) NOT NULL default '0',
      DB_POSTCODE varchar(100) NOT NULL default '',
      DB_ESTABLISHMENT_NAME varchar(255) NOT NULL default '',
      PRIMARY KEY  (DB_ESTABLISHMENT_ID)
    ) TYPE=InnoDB;
    CREATE TABLE visitors_comments (
      DB_VISITOR_COMMENT_ID int(11) NOT NULL auto_increment,
      DB_ESTABLISHMENT_ID int(11) NOT NULL default '0',
      DB_COMMENT varchar(255) NOT NULL default '',
      PRIMARY KEY  (DB_VISITOR_COMMENT_ID)
    ) TYPE=InnoDB;Here are the xml DDs:
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <!--
    <!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN" "http://java.sun.com/dtd/ejb-jar_2_0.dtd">
    <ejb-jar>
    -->
    <ejb-jar xmlns="http://java.sun.com/xml/ns/j2ee"
               xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
               xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
               http://java.sun.com/xml/ns/j2ee/ejb-jar_2_1.xsd"
               version="2.1">
         <description>test guide</description>
         <display-name>test guide</display-name>
         <enterprise-beans>
              <!--===========Establishment================ -->
              <entity>
                   <ejb-name>EstablishmentEJB</ejb-name>
                   <home>com.softwareag.test_guide.establishmentEJB.PGEstablishmentHome</home>
                   <remote>com.softwareag.test_guide.establishmentEJB.PGEstablishment</remote>
                   <local-home>com.softwareag.test_guide.establishmentEJB.PGEstablishmentLocalHome</local-home>
                   <local>com.softwareag.test_guide.establishmentEJB.PGEstablishmentLocal</local>
                   <ejb-class>com.softwareag.test_guide.establishmentEJB.PGEstablishmentBean</ejb-class>
                   <persistence-type>Container</persistence-type>
                   <prim-key-class>java.lang.Integer</prim-key-class>
                   <reentrant>false</reentrant>
                   <cmp-version>2.x</cmp-version>
                   <abstract-schema-name>Establishment</abstract-schema-name>
                   <cmp-field>
                        <field-name>id</field-name>
                   </cmp-field>
                   <cmp-field>
                        <field-name>name</field-name>
                   </cmp-field>
                   <primkey-field>id</primkey-field>
              </entity>
              <!--===========Grade================ -->
              <entity>
                   <ejb-name>GradeEJB</ejb-name>
                   <home>com.softwareag.test_guide.gradeEJB.PGGradeHome</home>
                   <remote>com.softwareag.test_guide.gradeEJB.PGGrade</remote>
                   <local-home>com.softwareag.test_guide.gradeEJB.PGGradeLocalHome</local-home>
                   <local>com.softwareag.test_guide.gradeEJB.PGGradeLocal</local>
                   <ejb-class>com.softwareag.test_guide.gradeEJB.PGGradeBean</ejb-class>
                   <persistence-type>Container</persistence-type>
                   <prim-key-class>java.lang.Integer</prim-key-class>
                   <reentrant>false</reentrant>
                   <cmp-version>2.x</cmp-version>
                   <abstract-schema-name>Grade</abstract-schema-name>
                   <cmp-field>
                        <field-name>id</field-name>
                   </cmp-field>
                   <cmp-field>
                        <field-name>grade</field-name>
                   </cmp-field>
                   <primkey-field>id</primkey-field>
              </entity>
              <!--===========VisitorsComment================ -->
              <entity>
                   <ejb-name>VisitorCommentEJB</ejb-name>
                   <home>com.softwareag.test_guide.visitorCommentEJB.PGVisitorCommentHome</home>
                   <remote>com.softwareag.test_guide.visitorCommentEJB.PGVisitorComment</remote>
                   <local-home>com.softwareag.test_guide.visitorCommentEJB.PGVisitorCommentLocalHome</local-home>
                   <local>com.softwareag.test_guide.visitorCommentEJB.PGVisitorCommentLocal</local>
                   <ejb-class>com.softwareag.test_guide.visitorCommentEJB.PGVisitorCommentBean</ejb-class>
                   <persistence-type>Container</persistence-type>
                   <prim-key-class>java.lang.Integer</prim-key-class>
                   <reentrant>false</reentrant>
                   <cmp-version>2.x</cmp-version>
                   <abstract-schema-name>VisitorsComment</abstract-schema-name>
                   <cmp-field>
                        <field-name>id</field-name>
                   </cmp-field>
                   <cmp-field>
                        <field-name>comment</field-name>
                   </cmp-field>
                   <primkey-field>id</primkey-field>
              </entity>
              <!--===========Country================ -->
              <entity>
                   <ejb-name>CountryEJB</ejb-name>
                   <home>com.softwareag.test_guide.countryEJB.PGCountryHome</home>
                   <remote>com.softwareag.test_guide.countryEJB.PGCountry</remote>
                   <local-home>com.softwareag.test_guide.countryEJB.PGCountryLocalHome</local-home>
                   <local>com.softwareag.test_guide.countryEJB.PGCountryLocal</local>
                   <ejb-class>com.softwareag.test_guide.countryEJB.PGCountryBean</ejb-class>
                   <persistence-type>Container</persistence-type>
                   <prim-key-class>java.lang.Integer</prim-key-class>
                   <reentrant>false</reentrant>
                   <cmp-version>2.x</cmp-version>
                   <abstract-schema-name>Country</abstract-schema-name>
                   <cmp-field>
                        <field-name>id</field-name>
                   </cmp-field>
                   <cmp-field>
                        <field-name>countryName</field-name>
                   </cmp-field>
                   <primkey-field>id</primkey-field>
              </entity>
              <!--===========Category================ -->
              <entity>
                   <ejb-name>CategoryEJB</ejb-name>
                   <home>com.softwareag.test_guide.categoryEJB.PGCategoryHome</home>
                   <remote>com.softwareag.test_guide.categoryEJB.PGCategory</remote>
                   <local-home>com.softwareag.test_guide.categoryEJB.PGCategoryLocalHome</local-home>
                   <local>com.softwareag.test_guide.categoryEJB.PGCategoryLocal</local>
                   <ejb-class>com.softwareag.test_guide.categoryEJB.PGCategoryBean</ejb-class>
                   <persistence-type>Container</persistence-type>
                   <prim-key-class>java.lang.Integer</prim-key-class>
                   <reentrant>false</reentrant>
                   <cmp-version>2.x</cmp-version>
                   <abstract-schema-name>Category</abstract-schema-name>
                   <cmp-field>
                        <field-name>id</field-name>
                   </cmp-field>
                   <cmp-field>
                        <field-name>category</field-name>
                   </cmp-field>
                   <primkey-field>id</primkey-field>
              </entity>
              <!--===========SearchEngineValueListHandler================ -->
              <session>
                   <ejb-name>PGSearchEngineValueListHandlerEJB</ejb-name>
                   <home>com.softwareag.test_guide.searchEngineEJB.PGSearchEngineValueListHandlerHome</home>
                   <remote>com.softwareag.test_guide.searchEngineEJB.PGSearchEngineValueListHandler</remote>
                   <local-home>com.softwareag.test_guide.searchEngineEJB.PGSearchEngineValueListHandlerLocalHome</local-home>
                   <local>com.softwareag.test_guide.searchEngineEJB.PGSearchEngineValueListHandlerLocal</local>
                   <ejb-class>com.softwareag.test_guide.searchEngineEJB.PGSearchEngineValueListHandlerBean</ejb-class>
                   <session-type>Stateful</session-type>
                   <transaction-type>Container</transaction-type>
                    <resource-ref>
                   <res-ref-name>jdbc/test_guia</res-ref-name>
                   <res-type>javax.sql.DataSource</res-type>
                   <res-auth>Application</res-auth>
                   </resource-ref>
              </session>
              <!--===========SessionFacade================ -->
              <session>
                   <ejb-name>PGSessionFacadeEJB</ejb-name>
                   <home>com.softwareag.test_guide.sessionFacadeEJB.PGSessionFacadeHome</home>
                   <remote>com.softwareag.test_guide.sessionFacadeEJB.PGSessionFacade</remote>
                   <local-home>com.softwareag.test_guide.sessionFacadeEJB.PGSessionFacadeLocalHome</local-home>
                   <local>com.softwareag.test_guide.sessionFacadeEJB.PGSessionFacadeLocal</local>
                   <ejb-class>com.softwareag.test_guide.sessionFacadeEJB.PGSessionFacadeBean</ejb-class>
                   <session-type>Stateless</session-type>
                   <transaction-type>Container</transaction-type>
                   <resource-ref>
                   <res-ref-name>jdbc/test_guia</res-ref-name>
                   <res-type>javax.sql.DataSource</res-type>
                   <res-auth>Application</res-auth>
                   </resource-ref>
              </session>
         </enterprise-beans>
         <relationships>
              <!--===========Establishments-VisitorComments================-->
              <ejb-relation>
                   <ejb-relation-name>Establishment-VisitorComment</ejb-relation-name>
                   <ejb-relationship-role>
                        <ejb-relationship-role-name>Establishment-has-many-comments</ejb-relationship-role-name>
                        <multiplicity>One</multiplicity>
                        <relationship-role-source>
                             <ejb-name>EstablishmentEJB</ejb-name>
                        </relationship-role-source>
                        <cmr-field>
                             <cmr-field-name>visitorComments</cmr-field-name>
                             <cmr-field-type>java.util.Collection</cmr-field-type>
                        </cmr-field>
                   </ejb-relationship-role>
                   <ejb-relationship-role>
                        <ejb-relationship-role-name>Comment-belongs-to-Establishment</ejb-relationship-role-name>
                        <multiplicity>Many</multiplicity>
                        <relationship-role-source>
                             <ejb-name>VisitorCommentEJB</ejb-name>
                        </relationship-role-source>
                   </ejb-relationship-role>
              </ejb-relation>
              <!--===========Establishments-Grades================-->
              <ejb-relation>
                   <ejb-relation-name>Establishment-Grade</ejb-relation-name>
                   <ejb-relationship-role>
                        <ejb-relationship-role-name>Establishment-has-many-grades</ejb-relationship-role-name>
                        <multiplicity>One</multiplicity>
                        <relationship-role-source>
                             <ejb-name>EstablishmentEJB</ejb-name>
                        </relationship-role-source>
                        <cmr-field>
                             <cmr-field-name>grades</cmr-field-name>
                             <cmr-field-type>java.util.Collection</cmr-field-type>
                        </cmr-field>
                   </ejb-relationship-role>
                   <ejb-relationship-role>
                        <ejb-relationship-role-name>Grade-belongs-to-Establishment</ejb-relationship-role-name>
                        <multiplicity>Many</multiplicity>
                        <relationship-role-source>
                             <ejb-name>GradeEJB</ejb-name>
                        </relationship-role-source>
                   </ejb-relationship-role>
              </ejb-relation>
              <!--===========Establishments-Countries================-->
              <ejb-relation>
                   <ejb-relation-name>Country-Establishment</ejb-relation-name>
                   <ejb-relationship-role>
                        <ejb-relationship-role-name>Country-has-many-establishments</ejb-relationship-role-name>
                        <!--========== One or Many here?? ==========-->
                        <multiplicity>Many</multiplicity>
                        <relationship-role-source>
                             <ejb-name>CountryEJB</ejb-name>
                        </relationship-role-source>
                   </ejb-relationship-role>
                   <ejb-relationship-role>
                        <ejb-relationship-role-name>Establishment-has-many-countries</ejb-relationship-role-name>
                        <multiplicity>Many</multiplicity>
                        <relationship-role-source>
                             <ejb-name>EstablishmentEJB</ejb-name>
                        </relationship-role-source>
                        <cmr-field>
                             <cmr-field-name>countries</cmr-field-name>
                             <cmr-field-type>java.util.Collection</cmr-field-type>
                        </cmr-field>
                   </ejb-relationship-role>
              </ejb-relation>
              <!--===========Establishments-Categories ================-->
              <ejb-relation>
                   <ejb-relation-name>Establishment-Category</ejb-relation-name>
                   <ejb-relationship-role>
                        <ejb-relationship-role-name>Establishment-has-many-categories</ejb-relationship-role-name>
                        <multiplicity>Many</multiplicity>
                        <relationship-role-source>
                             <ejb-name>EstablishmentEJB</ejb-name>
                        </relationship-role-source>
                        <cmr-field>
                             <cmr-field-name>categories</cmr-field-name>
                             <cmr-field-type>java.util.Collection</cmr-field-type>
                        </cmr-field>
                   </ejb-relationship-role>
                   <ejb-relationship-role>
                        <ejb-relationship-role-name>Category-has-many-establishments</ejb-relationship-role-name>
                        <multiplicity>Many</multiplicity>
                        <relationship-role-source>
                             <ejb-name>CategoryEJB</ejb-name>
                        </relationship-role-source>
                   </ejb-relationship-role>
              </ejb-relation>
         </relationships>
    </ejb-jar>
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <jonas-ejb-jar xmlns="http://www.objectweb.org/jonas/ns"
               xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
               xsi:schemaLocation="http://www.objectweb.org/jonas/ns
                http://www.objectweb.org/jonas/ns/jonas-ejb-jar_4_0.xsd" >
    <!--
    <!DOCTYPE jonas-ejb-jar PUBLIC "-//ObjectWeb//DTD JOnAS 3.2//EN" "http://www.objectweb.org/jonas/dtds/jonas-ejb-jar_3_2.dtd">
    <jonas-ejb-jar>
    -->
    <!-- ===============SearchEngineValueListHandler=======================-->
      <jonas-session>
        <ejb-name>PGSearchEngineValueListHandlerEJB</ejb-name>
        <jndi-name>PGSearchEngineValueListHandlerEJBHome</jndi-name>
        <jonas-resource>
          <res-ref-name>jdbc/test_guia</res-ref-name>
          <jndi-name>test_guia</jndi-name>
        </jonas-resource>
      </jonas-session>
      <!-- ===============SessionFacade=======================-->
      <jonas-session>
        <ejb-name>PGSessionFacadeEJB</ejb-name>
        <jndi-name>PGSessionFacadeEJBHome</jndi-name>
         <jonas-resource>
          <res-ref-name>jdbc/test_guia</res-ref-name>
          <jndi-name>test_guia</jndi-name>
        </jonas-resource>
      </jonas-session>
    <!-- ===============Establishment=======================-->
      <jonas-entity>
        <ejb-name>EstablishmentEJB</ejb-name>
        <jndi-name>PGEstablishmentHome</jndi-name>
             <cleanup>none</cleanup>
         <jdbc-mapping>
          <jndi-name>test_guia</jndi-name>
          <jdbc-table-name>ESTABLISHMENTS</jdbc-table-name>
          <cmp-field-jdbc-mapping>
         <field-name>id</field-name>
         <jdbc-field-name>DB_ESTABLISHMENT_ID</jdbc-field-name>
          </cmp-field-jdbc-mapping>
          <cmp-field-jdbc-mapping>
         <field-name>name</field-name>
    <jdbc-field-name>DB_ESTABLISHMENT_NAME</jdbc-field-name>
          </cmp-field-jdbc-mapping>
        </jdbc-mapping>
    </jonas-entity>
      <!-- ===============Grade=======================-->
        <jonas-entity>
        <ejb-name>GradeEJB</ejb-name>
        <jndi-name>PGgradeHome</jndi-name>
         <cleanup>none</cleanup>
         <jdbc-mapping>
          <jndi-name>test_guia</jndi-name>
          <jdbc-table-name>GRADES</jdbc-table-name>
          <cmp-field-jdbc-mapping>
         <field-name>id</field-name>
         <jdbc-field-name>DB_GRADE_ID</jdbc-field-name>
          </cmp-field-jdbc-mapping>
          <cmp-field-jdbc-mapping>
         <field-name>grade</field-name>
         <jdbc-field-name>DB_GRADE</jdbc-field-name>
          </cmp-field-jdbc-mapping>
        <!--
         <cmp-field-jdbc-mapping>
         <field-name>establishment_id</field-name>
         <jdbc-field-name>DB_ESTABLISHMENT_ID</jdbc-field-name>
        </cmp-field-jdbc-mapping>
         -->
        </jdbc-mapping>
      </jonas-entity>
      <!-- ===============Visitor�s comments=======================-->
        <jonas-entity>
        <ejb-name>VisitorCommentEJB</ejb-name>
        <jndi-name>PGVisitorCommentHome</jndi-name>
         <cleanup>none</cleanup>
         <jdbc-mapping>
          <jndi-name>test_guia</jndi-name>
          <jdbc-table-name>VISITORS_COMMENTS</jdbc-table-name>
          <cmp-field-jdbc-mapping>
         <field-name>id</field-name>
         <jdbc-field-name>DB_VISITOR_COMMENT_ID</jdbc-field-name>
          </cmp-field-jdbc-mapping>
          <cmp-field-jdbc-mapping>
         <field-name>comment</field-name>
         <jdbc-field-name>DB_COMMENT</jdbc-field-name>
          </cmp-field-jdbc-mapping>
            <!--
           <cmp-field-jdbc-mapping>
         <field-name>establishment_id</field-name>
         <jdbc-field-name>DB_ESTABLISHMENT_ID</jdbc-field-name>
          </cmp-field-jdbc-mapping>
         -->
        </jdbc-mapping>
      </jonas-entity>
        <!-- ===============Countries=======================-->
        <jonas-entity>
        <ejb-name>CountryEJB</ejb-name>
        <jndi-name>PGcountryHome</jndi-name>
              <cleanup>none</cleanup>
        <jdbc-mapping>
          <jndi-name>test_guia</jndi-name>
          <jdbc-table-name>COUNTRIES</jdbc-table-name>
          <cmp-field-jdbc-mapping>
         <field-name>id</field-name>
         <jdbc-field-name>DB_COUNTRY_ID</jdbc-field-name>
          </cmp-field-jdbc-mapping>
          <cmp-field-jdbc-mapping>
         <field-name>countryName</field-name>
         <jdbc-field-name>DB_COUNTRY_NAME_FR</jdbc-field-name>
          </cmp-field-jdbc-mapping>
        </jdbc-mapping>
      </jonas-entity>
      <!-- ===============Categories=======================-->
        <jonas-entity>
        <ejb-name>CategoryEJB</ejb-name>
        <jndi-name>PGcategoryHome</jndi-name>
        <cleanup>none</cleanup>
         <jdbc-mapping>
          <jndi-name>test_guia</jndi-name>
          <jdbc-table-name>CATEGORIES</jdbc-table-name>
          <cmp-field-jdbc-mapping>
         <field-name>id</field-name>
         <jdbc-field-name>DB_CATEGORY_ID</jdbc-field-name>
          </cmp-field-jdbc-mapping>
          <cmp-field-jdbc-mapping>
         <field-name>category</field-name>
         <jdbc-field-name>DB_CATEGORY_NAME_FR</jdbc-field-name>
          </cmp-field-jdbc-mapping>
        </jdbc-mapping>
      </jonas-entity>
      <!--===========Establishments-VisitorComments================-->
      <jonas-ejb-relation>
          <ejb-relation-name>Establishment-VisitorComment</ejb-relation-name>
          <jonas-ejb-relationship-role>
            <ejb-relationship-role-name>Comment-belongs-to-Establishment</ejb-relationship-role-name>
            <foreign-key-jdbc-mapping>
              <foreign-key-jdbc-name>DB_ESTABLISHMENT_ID</foreign-key-jdbc-name>
            </foreign-key-jdbc-mapping>
          </jonas-ejb-relationship-role>
        </jonas-ejb-relation>
         <!--===========Establishments-Grades================-->
           <jonas-ejb-relation>
          <ejb-relation-name>Establishment-Grade</ejb-relation-name>
          <jonas-ejb-relationship-role>
            <ejb-relationship-role-name>Grade-belongs-to-Establishment</ejb-relationship-role-name>
            <foreign-key-jdbc-mapping>
              <foreign-key-jdbc-name>DB_ESTABLISHMENT_ID</foreign-key-jdbc-name>
            </foreign-key-jdbc-mapping>
          </jonas-ejb-relationship-role>
        </jonas-ejb-relation>
         <!--===========Establishments-Countries================-->
          <jonas-ejb-relation>
          <ejb-relation-name>Country-Establishment</ejb-relation-name>
          <jdbc-table-name>COUNTRIES_ESTABLISHMENTS</jdbc-table-name>
          <jonas-ejb-relationship-role>
            <ejb-relationship-role-name>Country-has-many-establishments</ejb-relationship-role-name>
            <foreign-key-jdbc-mapping>
              <foreign-key-jdbc-name>DB_ESTABLISHMENT_ID</foreign-key-jdbc-name>
            </foreign-key-jdbc-mapping>
          </jonas-ejb-relationship-role>
          <jonas-ejb-relationship-role>
            <ejb-relationship-role-name>Establishment-has-many-countries</ejb-relationship-role-name>
            <foreign-key-jdbc-mapping>
              <foreign-key-jdbc-name>DB_COUNTRY_ID</foreign-key-jdbc-name>
            </foreign-key-jdbc-mapping>
          </jonas-ejb-relationship-role>
        </jonas-ejb-relation>
         <!--===========Establishments-Categories ================-->
          <jonas-ejb-relation>
          <ejb-relation-name>Establishment-Category</ejb-relation-name>
          <jdbc-table-name>ESTABLISHMENTS_CATEGORIES</jdbc-table-name>
          <jonas-ejb-relationship-role>
            <ejb-relationship-role-name>Establishment-has-many-categories</ejb-relationship-role-name>
            <foreign-key-jdbc-mapping>
              <foreign-key-jdbc-name>DB_CATEGORY_ID</foreign-key-jdbc-name>
            </foreign-key-jdbc-mapping>
          </jonas-ejb-relationship-role>
          <jonas-ejb-relationship-role>
            <ejb-relationship-role-name>Category-has-many-establishments</ejb-relationship-role-name>
            <foreign-key-jdbc-mapping>
              <foreign-key-jdbc-name>DB_ESTABLISHMENT_ID</foreign-key-jdbc-name>
            </foreign-key-jdbc-mapping>
          </jonas-ejb-relationship-role>
        </jonas-ejb-relation>
    </jonas-ejb-jar>Here are the two classes for the beans
    package com.softwareag.test_guide.establishmentEJB;
    import java.util.Collection;
    import java.util.Iterator;
    import javax.ejb.CreateException;
    import javax.ejb.EntityBean;
    import javax.ejb.EntityContext;
    import javax.ejb.RemoveException;
    import com.softwareag.test_guide.ejb.util.PGServiceLocator;
    import com.softwareag.test_guide.ejb.util.PGServiceLocatorException;
    import com.softwareag.test_guide.gradeEJB.PGGradeLocal;
    import com.softwareag.test_guide.visitorCommentEJB.PGVisitorCommentLocal;
    import com.softwareag.test_guide.visitorCommentEJB.PGVisitorCommentLocalHome;
    * @author Julien Martin
    public abstract class PGEstablishmentBean implements EntityBean {
         public Integer ejbCreate(
              Integer id,
              String name,
              Collection visitorComments,
              Collection grades,
              Collection countries,
              Collection categories)
              throws CreateException {
              setId(id);
              setName(name);
              setVisitorComments(visitorComments);
              setGrades(grades);
              return null;
         public void ejbPostCreate(
              Integer id,
              String name,
              Collection visitorComments,
              Collection grades,
              Collection countries,
              Collection categories) {
              setCountries(countries);
              setCategories(categories);
         //Business methods
         public int getAverageGrade() {
              Collection grades = this.getGrades();
              if (grades.size() == 0) {
                   return 0;
              } else {
                   Iterator iterator = grades.iterator();
                   int total = 0;
                   while (iterator.hasNext()) {
                        PGGradeLocal pGGradeLocal = (PGGradeLocal) iterator.next();
                        Integer amount = pGGradeLocal.getGrade();
                        total = total + amount.intValue();
                   float average = total / grades.size();
                   int roundedAverage = Math.round(average);
                   return roundedAverage;
         public void addComment(Integer id, String comment) {
              try {
                   PGVisitorCommentLocalHome pGcommentHome =
                        (PGVisitorCommentLocalHome) PGServiceLocator.getInstance().getLocalHome("PGVisitorCommentHome_L");
                   PGVisitorCommentLocal pGcomment = pGcommentHome.create(id, comment);
                   Collection pGcomments = this.getVisitorComments();
                   pGcomments.add(pGcomment);
              } catch (PGServiceLocatorException e) {
                   e.printStackTrace();
              } catch (CreateException e) {
                   e.printStackTrace();
         //Persistence fields
         public abstract Integer getId();
         public abstract void setId(Integer id);
         public abstract String getName();
         public abstract void setName(String name);
         //Relation fields
         public abstract Collection getVisitorComments();
         public abstract void setVisitorComments(Collection visitorComments);
         public abstract Collection getGrades();
         public abstract void setGrades(Collection grades);
         public abstract Collection getCountries();
         public abstract void setCountries(Collection countries);
         public abstract Collection getCategories();
         public abstract void setCategories(Collection categories);
         //Callback methods
         public void setEntityContext(EntityContext ec) {
         public void unsetEntityContext() {
         public void ejbLoad() {
         public void ejbStore() {
         public void ejbActivate() {
         public void ejbPassivate() {
         public void ejbRemove() throws RemoveException {
    package com.softwareag.test_guide.visitorCommentEJB;
    import javax.ejb.CreateException;
    import javax.ejb.EntityBean;
    import javax.ejb.EntityContext;
    import javax.ejb.RemoveException;
    * @author Julien Martin
    public abstract class PGVisitorCommentBean implements EntityBean {
         public Integer ejbCreate(Integer id, String comment)throws CreateException {
              setId(id);
              setComment(comment);
              return null;
         public void ejbPostCreate(Integer id, String comment) {}
         //Persistence fields
         public abstract Integer getId();
         public abstract void setId(Integer id);
         public abstract String getComment();
         public abstract void setComment(String comment);
    //     public abstract Integer getEstablishment_id();
    //     public abstract void setEstablishment_id(Integer establishment_id);
         //Callback methods
         public void setEntityContext(EntityContext ec) {}
         public void unsetEntityContext() {}
         public void ejbLoad() {}
         public void ejbStore() {}
         public void ejbActivate() {}
         public void ejbPassivate() {}
         public void ejbRemove() throws RemoveException  {}
    }I get the following error from MYSQL:
    22:57:10,203 : JOnASVisitorCommentEJBBean.ejbPostCreate : Failed to create bean:
    java.sql.SQLException: General error,  message from server: "Column 'DB_ESTABLISHMENT_ID' cannot be null"
            at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:1626)
            at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:886)
            at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:945)
            at com.mysql.jdbc.Connection.execSQL(Connection.java:1844)
            at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1602)
            at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1488)
            at jorm.rdb.mysql.VisitorsCommentBinding.insertVISITORS_COMMENTSTable(VisitorsCommentBinding.java:558)
            at jorm.rdb.mysql.VisitorsCommentBinding.write(VisitorsCommentBinding.java:147)
            at com.softwareag.test_guide.visitorCommentEJB.JOnASVisitorCommentEJBBean.ejbPostCreate(JOnASVisitorCommentEJBBean.java:283)
            at com.softwareag.test_guide.visitorCommentEJB.JOnASVisitorCommentEJBLocalHome.create(JOnASVisitorCommentEJBLocalHome.java:76)
            at com.softwareag.test_guide.establishmentEJB.PGEstablishmentBean.addComment(PGEstablishmentBean.java:71)
            at com.softwareag.test_guide.establishmentEJB.JOnASEstablishmentEJBLocal.addComment(JOnASEstablishmentEJBLocal.java:170)
            at com.softwareag.test_guide.sessionFacadeEJB.PGSessionFacadeBean.addComment(PGSessionFacadeBean.java:80)
            at com.softwareag.test_guide.sessionFacadeEJB.JOnASPGSessionFacadeEJBLocal.addComment(JOnASPGSessionFacadeEJBLocal.java:168)
            at com.softwareag.test_guide.web.temp.PGBusinessDelegate.addComment(PGBusinessDelegate.java:93)
            at com.softwareag.test_guide.web.temp.PGCommentsManagedBean.addCommentAction(PGCommentsManagedBean.java:13)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:324)
            at com.sun.faces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:126)
            at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:72)
            at javax.faces.component.UICommand.broadcast(UICommand.java:312)
            at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:267)
            at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:381)
            at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:75)
            at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
            at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:90)
            at javax.faces.webapp.FacesServlet.service(FacesServlet.java:197)
            at sun.reflect.GeneratedMethodAccessor208.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:324)
            at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:241)
            at java.security.AccessController.doPrivileged(Native Method)
            at javax.security.auth.Subject.doAsPrivileged(Subject.java:499)
            at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:263)
            at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:157)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
            at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:50)
            at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:140)
            at java.security.AccessController.doPrivileged(Native Method)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:136)
            at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
            at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
            at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
            at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
            at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
            at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
            at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
            at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
            at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
            at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
            at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
            at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
            at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
            at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
            at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
            at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
            at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
            at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:793)
            at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:702)
            at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:571)
            at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:644)
            at java.lang.Thread.run(Thread.java:536)
    22:57:10,203 : JFactory.postInvoke : system exception in business method:
    javax.ejb.EJBException: Failed to create bean: General error,  message from server: "Column 'DB_ESTABLISHMENT_ID' cannot be null"
            at com.softwareag.test_guide.visitorCommentEJB.JOnASVisitorCommentEJBBean.ejbPostCreate(JOnASVisitorCommentEJBBean.java:288)
            at com.softwareag.test_guide.visitorCommentEJB.JOnASVisitorCommentEJBLocalHome.create(JOnASVisitorCommentEJBLocalHome.java:76)
            at com.softwareag.test_guide.establishmentEJB.PGEstablishmentBean.addComment(PGEstablishmentBean.java:71)
            at com.softwareag.test_guide.establishmentEJB.JOnASEstablishmentEJBLocal.addComment(JOnASEstablishmentEJBLocal.java:170)
            at com.softwareag.test_guide.sessionFacadeEJB.PGSessionFacadeBean.addComment(PGSessionFacadeBean.java:80)
            at com.softwareag.test_guide.sessionFacadeEJB.JOnASPGSessionFacadeEJBLocal.addComment(JOnASPGSessionFacadeEJBLocal.java:168)
            at com.softwareag.test_guide.web.temp.PGBusinessDelegate.addComment(PGBusinessDelegate.java:93)
            at com.softwareag.test_guide.web.temp.PGCommentsManagedBean.addCommentAction(PGComments                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              

    Thanks all for replying,
    The error occurs when I run the client and not at deploy time. Here is the client code:
         public void addComment(Integer primaryKey, String comment) {
              System.out.println("primaryKey------>" + primaryKey);
              try {
                   PGEstablishmentLocalHome establishmentHome = (PGEstablishmentLocalHome) PGServiceLocator.getInstance().getLocalHome("PGEstablishmentHome_L");
                   PGEstablishmentLocal establishmentLocal = establishmentHome.findByPrimaryKey(primaryKey);
                   establishmentLocal.addComment(primaryKey,comment);
              } catch (PGServiceLocatorException e) {
                   e.printStackTrace();
              } catch (FinderException e) {
                   e.printStackTrace();
    u haven't defined the PK entry in the Establishment EJB Bean in DDYes look in the standard DD.
    What's more I need both DD as I would with most ejb containers.
    The field DB_ESTABLISHMENT_ID is required and I cannot set it to NULL.
    Any other help greatly appreciated.
    Julien Martin.

  • Beginner - need help with custom profiles

    I've got 30-day demo versions of both Aperture and Lightroom trying to work out which is best for printing using custom profiles I've had done for a selection of textured art papers for use on my Epson R2400. I've read the printing documentation for both products.
    In Aperture, I select print from the menu and open the print dialogue window. Then I open the printer settings window choosing the correct media and switching off Epson 'Color Adjustment' and saving the settings. Then I'm selecting my color profile from Aperture's 'ColorSync Profile' option in the print window and making sure 'Black Point Compensation' is selected. Then I'm pressing print.
    In Lightroom 2, I select print from the menu and scroll down to the 'Color Management' tab in the print module. Here I'm choosing my custom profile from the drop down list and setting rendering intent as 'Perceptual'. On clicking the print button the default print window opens and I'm switching off Epson 'Color Adjustment' and selecting my preferred paper type. Then I'm pressing print.
    Now I will admit that I'm new to printing with profiles and a complete newbie to Aperture and Lightroom. However, my prints from Lightroom are absolutely perfect, but colours are differing in Aperture prints. In particular, prints are slightly lighter and washed-out. I'm wondering if I might be missing a step somewhere in Aperture? It seems strange that both applications follow roughly the same print procedure yet I'm getting different results using the same profiles and images. I'd much rather use Aperture so I'm trying to seek an explanation for the change in colors.
    Any suggestions would be appreciated.

    A lot of people including me have had problems in this area. There may have been some problems but in my case I was so absorbed in trying different solutions it is hard to say what worked when.
    This works for me using an HP 9180:
    1. In the View drop down select Printing Profile and choose your paper. This step is not critical but can be helpful.
    2. select Print Image and we will work through the menu in sequence.
    3. Select your printer
    4. Click on Print settings
    Click on the Cover Page arrows and you will be given a number of other choices. Select Paper Type/Quality. Select your paper and possibly adjust the other values but generally I leave these alone unless i specifically want Borderless printing.
    Click save
    5. back on the print menu select paper size. I usually select best fit next.
    6. Select Colorsync Profile and again select your paper.
    7. Keep Black Point clicked on.
    8. I find that I need to set my Gamma between 1.10 and 1.20.
    9. I usually click on the Loupe and check to see if Sharpening is needed.
    10. Adjust scaling and width to your needs.
    11. I then Print as I have not found that Previewing helps me to improve my Workflow.
    It may all seem straightforward but this now works for me.
    When this all started there were many saying how important it was to calibrate the screen, many tried this but is still did not help solve the problem. From what i understand all the Canon printers are capable of giving excellent results with Aperture. i hope that you join the community of satosfied users. Good luck.

  • Absolute Beginner needs help with applet

    Hello folks,
    I know I have already started a topic on this, but it was getting a bit long and I wasn't getting anywhere with it. Here's my problem... first of all, I am new to Java, especially with Applets. I attempted to create the HelloWorld applet from this site's First Cup of Java tutorial. I was able to compile the java file fine, but when I attemted to add the applet to an html file, I get a message at the bottom taskbar saying "load: class HelloWorld not found". I can't figure out what is wrong with my code. I have all my files (html, java, and class files) in one folder, with no subfolders at all. In case it matters, I'm on a Windows 98 machine with IE 6.0 for my browser. Here is the code:
    First my HelloWorld.java file, which, as I said, compiles with no problems
    import java.applet.*;
    import java.awt.*;
    * The HelloWorld class implements an applet that
    * simply displays "Hello World!".
    public class HelloWorld extends Applet {
         public void paint (Graphics g) {
              //Display "Hello World!"
              g.drawString("Hello World!", 50, 25);
    }And here is the HTML file which is supposed to display the applet:
    <html>
         <head>
              <title>A Simple Program</title>
         </head>
         <body>
              Here is the output of my program:
              <applet code="HelloWorld.class" width="150" height="25">
              </applet>
         </body>
    </html>Can someone please check this and see what, if anything, is wrong?

    Hi Chris,
    This isn't going to help much. I took your Java code
    and put it in a file HelloWorld.java. I took your HTML
    code and put it in a file HelloWorld.html. I compiled
    HelloWorld.java with javac so that I had HelloWorld.class.
    I then ran the program with appletviewer by typing
    appletviewer HelloWorld.html.
    It loaded and ran fine.
    Since that sounds like exactly what you are doing,
    I'm not sure what else to suggest. (I could also
    run it by opening the HTML file with IE.)
    There are only two things that still suggest themselves,
    and they seem like long-shots:
    1) Is the file named HelloWorld.java that contains your
    code (including the capital W)? This is obviously a
    long-shot because your code shouldn't compile if this
    was set incorrectly.
    2) Is it possible that you have the CLASSPATH environmental
    variable set? Some programs (like QuickTime for Java)
    will set the CLASSPATH and then Java just stops working.
    You can find out by typing SET at the command prompt and
    looking for CLASSPATH. If you find it, then you'll probably
    need to remove it from your AUTOEXEC.BAT (in Windows 98),
    or update it to include the runtime classes for the SDK.
    --Steve                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Oracle Beginner Needs Help with 8.1.6/W2K Password

    Hey all,
    I just started reading this cool forum and I need your help. I have been using Oracle 8.1.5 for win 98 for a while with scott/tiger. Now I switched to 8.1.6 for W2K and none of the password combinations seem to work. As I am a student just testing Oracle out, what should I do? If this is not a licensing issue, can someone help me out? Thanks for your time...
    Regards,
    Eralp

    <BLOCKQUOTE><font size="1" face="Verdana, Arial, Helvetica">quote:</font><HR>Originally posted by Eralp Pinardag ([email protected]):
    Hey all,
    I just started reading this cool forum and I need your help. I have been using Oracle 8.1.5 for win 98 for a while with scott/tiger. Now I switched to 8.1.6 for W2K and none of the password combinations seem to work. As I am a student just testing Oracle out, what should I do? If this is not a licensing issue, can someone help me out? Thanks for your time...
    Regards,
    Eralp<HR></BLOCKQUOTE>
    Try system/manager !! (i.e. Login=SYSTEM and Password=MANAGER)
    Cheers!
    r@m@
    null

  • Beginner needs help with JBuilder4

    Hi all,
    Hope u can help me.
    When I try to Run my Swing Application, JBuilder4 always brings a tomcat configuration console.
    Thx in advance

    You need to set the project properties.
    Go to Project > Project Properties and click the Run tab.
    Choose the Application tab on the Run page, and click the ellipsis (...) button opposite the "Main class:" label. Now find your package in the class browser, and select the class containing the main method you want to use.
    Note that you must have your application set up correctly as a project, with a package directory structure (usually done for you by the new project wizard) else you'll not find your class listed.
    Hope this helps.

  • Beginner - Need Help with Text

    I can't seem to get text in a table cell to do what I want.
    For instance, I can't use the 'tab' button as I would do in
    Microsoft Word - is this something that is not possible in
    Dreamweaver (8)? To compensate for that, I tried to just use the
    space bar to seperate things but that doesn't work either - seems
    like I can only insert one space and that's all. I've tried the
    'align' buttons, but that moves ALL of the text rather than the
    desired line.
    EX) Currently: Name School Dates
    EX) Desired: Name School Dates
    Can somone please help me?

    Wow - okay. You're first mistake is thinking that Dreamweaver
    will act as
    Microsoft Word. Period.
    That's never the case, nor will it ever be the case. You need
    to close down
    Dreamweaver, and start by reading some basic tutorials on
    HTML and CSS. A
    good place to start -
    http://w3schools.com
    Also, I'd reccomend picking up some books on the subjects as
    well. For CSS
    I'd reccomend anything by Eric Meyer. To answer your
    question, though it
    will seem useless as you probably aren't sure what to do with
    the answer is
    to give your paragraph tags a text-indent definition of a few
    pixels inside
    your CSS.
    HTH, take care,
    Shane H
    [email protected]
    http://www.avenuedesigners.com
    =============================================
    Back for 2007, close-up magic:
    http://deceptivemagic.com
    Web dev articles, photography, and more:
    http://sourtea.com
    =============================================
    Proud GAWDS member
    http://www.gawds.org/showmember.php?memberid=1495
    Delivering accessible websites to all ...
    =============================================
    "mpax91" <[email protected]> wrote in
    message
    news:eufcj9$lld$[email protected]..
    >I can't seem to get text in a table cell to do what I
    want. For instance,
    >I
    > can't use the 'tab' button as I would do in Microsoft
    Word - is this
    > something
    > that is not possible in Dreamweaver (8)? To compensate
    for that, I tried
    > to
    > just use the space bar to seperate things but that
    doesn't work either -
    > seems
    > like I can only insert one space and that's all. I've
    tried the 'align'
    > buttons, but that moves ALL of the text rather than the
    desired line.
    >
    > Can somone please help me?
    >

  • Beginner needs help with css layout

    i'm new to using dw (cs3) and css, though i have some
    background in html and coding. i'm creating a page using the "one
    column elastic, centered, header and footer" layout and i have a
    banner header with a horizontal spry menu bar at the bottom of the
    header. the background color of the buttons on the menu bar is red,
    and there's a yellow 5px border on the top and bottom of the red
    menu bar, so it looks like there's red bar with yellow piping above
    and below it, and this bar is between the header and body section
    of the page. i've set these colors in the "ul.MenuBarHorizontal a"
    rule.
    now, the issue i have is that my menu bar does not extend
    across the entire column, so there's empty space to the right of my
    menu bar (between the end of the menu bar and the far right
    column). i'd like the look of the red and yellow menu bar to extend
    all the way across, but i can't figure out how to do this in css.
    do i:
    extend the menu bar all the way across the width of the page?
    i can't figure out how to do this.
    insert an image to make it appear as though the red and
    yellow bar keeps extending to the right? if so, how will that image
    remain elastic along with my page?
    or is there a better solution?
    i'm very new to css and i'm doing my best to figure out how
    everything fits together. the last web site i built was in 1997 and
    it was done in notepad. any help would be tremendous. i'm in
    kinshasa, in the democratic republic of congo, and truth be told
    there aren't a lot of dw gurus out here.
    thanks in advance...

    Can you post a link to your page, please?
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "charliemooreiv" <[email protected]> wrote
    in message
    news:[email protected]...
    > i'm new to using dw (cs3) and css, though i have some
    background in html
    > and
    > coding. i'm creating a page using the "one column
    elastic, centered,
    > header
    > and footer" layout and i have a banner header with a
    horizontal spry menu
    > bar
    > at the bottom of the header. the background color of the
    buttons on the
    > menu
    > bar is red, and there's a yellow 5px border on the top
    and bottom of the
    > red
    > menu bar, so it looks like there's red bar with yellow
    piping above and
    > below
    > it, and this bar is between the header and body section
    of the page. i've
    > set
    > these colors in the "ul.MenuBarHorizontal a" rule.
    >
    > now, the issue i have is that my menu bar does not
    extend across the
    > entire
    > column, so there's empty space to the right of my menu
    bar (between the
    > end of
    > the menu bar and the far right column). i'd like the
    look of the red and
    > yellow menu bar to extend all the way across, but i
    can't figure out how
    > to do
    > this in css.
    >
    > do i:
    >
    > extend the menu bar all the way across the width of the
    page? i can't
    > figure
    > out how to do this.
    >
    > insert an image to make it appear as though the red and
    yellow bar keeps
    > extending to the right? if so, how will that image
    remain elastic along
    > with
    > my page?
    >
    > or is there a better solution?
    >
    > i'm very new to css and i'm doing my best to figure out
    how everything
    > fits
    > together. the last web site i built was in 1997 and it
    was done in
    > notepad.
    > any help would be tremendous. i'm in kinshasa, in the
    democratic republic
    > of
    > congo, and truth be told there aren't a lot of dw gurus
    out here.
    >
    > thanks in advance...
    >

  • Beginner need help with a script

    I have a little experience with Linux, I am finding that darwin is a little different and not everything works the same as it does with linux.
    I have a tomcat service running and i would like to automate a scrip to stop the service, update the war file, then restart the service.
    I would also like to add a way to verify the service is stopped before removing and replacing the file.
    Here is the current process
    Terminal window 1
    ssh admin@box1
    /bin/Tomcat7.sh stop
    ps auxww | grep box
    rm /webapps/console.war
    Terminal window 2
    scp - /newbuild/console.war admin@box1:/webapps/console.war
    Terminal window 1
    /bin/Tomcat7.sh start
    ps auxww |grep box
    tail -100f /logs/catalina-daemon.out
    repeat for box2
    i do this process twice a week and would love a way to automate it

    I tried to removing () but the script only displayed an output of "Tomcat_server_system" instead of asking me for the admin password to BOX1
    The next task i need to do is add variables to the script.
    I have 2 servers, each server runs 3 instances of Tomcat
    I would like a prompt to ask the following
    Server 2 or Server 3?
    BOX2=$2server2.test.com
    BOX3=$3server3.test.com
    Then ask
    Tomcat1, 2 or 3?
    TOMCAT1=$1tomcat1
    TOMCAT2=$2tomcat2
    TOMCAT3=$3tomcat3
    Finally it will ask
    What is the build #?
    BUILD#=$XX
    (this could be any number, which needs to be entered into the scp line)
    Based on what the user choses it would run the following code
    ssh admin@${BOX} "${TOMCAT}/bin/Tomcat7.sh stop; ps auxww | grep ${BOX}; rm ${TOMCAT}/webapps/console.war"
    scp - /build${BUILD}/console.war admin@${BOX}:${TOMCAT}/webapps/console.war
    ssh admin@${BOX} "${TOMCAT}/bin/Tomcat7.sh start; ps auxww |grep ${BOX}; tail -100f ${TOMCAT}/logs/catalina-daemon.out"

  • Beginner needs help with SOAP with attachments

    Hello,
    I would like for a ws client to retrieve an image from a ws endpoint. I am totally confused as to what encoding style to choose as well as how to implement it.
    Here is the code for the client:
    package pack;
    import java.awt.Image;
    import java.io.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    public class ServletFetchesAttachment extends HttpServlet {
        protected void processRequest(HttpServletRequest request, HttpServletResponse response)
        throws ServletException, IOException {
            System.out.println("processRequest");
            PrintWriter out = response.getWriter();
            try {
                Image img =  getProvidesAttachmentSEIPort().retrieveAttachment();
            } catch(java.rmi.RemoteException ex) {
                ex.printStackTrace();
            } catch(Exception ex) {
                ex.printStackTrace();
            out.close();
        // <editor-fold defaultstate="collapsed" desc="HttpServlet methods. Click on the + sign on the left to edit the code.">
        /** Handles the HTTP <code>GET</code> method.
         * @param request servlet request
         * @param response servlet response
        protected void doGet(HttpServletRequest request, HttpServletResponse response)
        throws ServletException, IOException {
            processRequest(request, response);
        /** Handles the HTTP <code>POST</code> method.
         * @param request servlet request
         * @param response servlet response
        protected void doPost(HttpServletRequest request, HttpServletResponse response)
        throws ServletException, IOException {
            processRequest(request, response);
        /** Returns a short description of the servlet.
        public String getServletInfo() {
            return "Short description";
        // </editor-fold>
        private pack.ProvidesAttachment getProvidesAttachment() {
            pack.ProvidesAttachment providesAttachment = null;
            try {
                javax.naming.InitialContext ic = new javax.naming.InitialContext();
                providesAttachment = (pack.ProvidesAttachment) ic.lookup("java:comp/env/service/ProvidesAttachment");
            } catch(javax.naming.NamingException ex) {
                ex.printStackTrace();
            return providesAttachment;
        private pack.ProvidesAttachmentSEI getProvidesAttachmentSEIPort() {
            pack.ProvidesAttachmentSEI providesAttachmentSEIPort = null;
            try {
                providesAttachmentSEIPort = getProvidesAttachment().getProvidesAttachmentSEIPort();
            } catch(javax.xml.rpc.ServiceException ex) {
                ex.printStackTrace();
            return providesAttachmentSEIPort;
    }Here is the code for the endpoint:
    package pack;
    import java.awt.Image;
    import java.awt.Toolkit;
    import java.net.MalformedURLException;
    import java.net.URL;
    public class ProvidesAttachmentImpl implements ProvidesAttachmentSEI{
        public Image retrieveAttachment() throws java.rmi.RemoteException {
            URL url=null;
            Image image = null;
            try {
                url = new URL("file:///home//julien//tests//logo.gif");
                image = Toolkit.getDefaultToolkit().createImage(url);
            } catch (MalformedURLException ex) {
                ex.printStackTrace();
            return image;
    }Here is the wsdl:
    <?xml version="1.0" encoding="UTF-8"?>
    <definitions name="ProvidesAttachment" targetNamespace="urn:ProvidesAttachment/wsdl" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:ns2="http://java.sun.com/jax-rpc-ri/internal" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="urn:ProvidesAttachment/wsdl" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
      <types>
        <schema targetNamespace="http://java.sun.com/jax-rpc-ri/internal" xmlns="http://www.w3.org/2001/XMLSchema" xmlns:soap11-enc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns="http://java.sun.com/jax-rpc-ri/internal" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
          <import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
          <simpleType name="image">
            <restriction base="base64Binary"/></simpleType></schema>
      </types>
      <message name="ProvidesAttachmentSEI_retrieveAttachmentResponse">
        <part name="result" type="ns2:image"/>
      </message>
      <message name="ProvidesAttachmentSEI_retrieveAttachment">
      </message>
      <portType name="ProvidesAttachmentSEI">
        <operation name="retrieveAttachment">
          <input message="tns:ProvidesAttachmentSEI_retrieveAttachment"/>
          <output message="tns:ProvidesAttachmentSEI_retrieveAttachmentResponse"/>
        </operation>
      </portType>
      <binding name="ProvidesAttachmentSEIBinding" type="tns:ProvidesAttachmentSEI">
        <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
        <operation name="retrieveAttachment">
          <soap:operation soapAction=""/>
          <input>
            <soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:ProvidesAttachment/wsdl" use="encoded"/>
          </input>
          <output>
            <soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:ProvidesAttachment/wsdl" use="encoded"/>
          </output>
        </operation>
      </binding>
      <service name="ProvidesAttachment">
        <port binding="tns:ProvidesAttachmentSEIBinding" name="ProvidesAttachmentSEIPort">
          <soap:address location="http://ordinateur:8080/WebAppProvidesAttachment/ProvidesAttachment"/>
        </port>
      </service>
    </definitions>Any help greatly appreciated.
    Thanks in advance,
    Julien.

    double C = 5 / 9This considers "5" and "9" to be integers and does an integer division, discarding the remainder. The result of that division is 0. Trydouble C = 5.0/9.0;

  • Beginner needs help with gotoAndPlay syntax

    Hello out there.
    I am modifying a Flash template which I downloaded recently
    The following code has been placed on a symbol which is defined as a button.
    on (release) {
    _root.link = 3;
    _root.gates.gotoAndPlay ("s1");
    I interpret this code to mean that _root.gates is the instance name which is located in the root timeline and it will move the play head to the frame labeled s1 in the gates instance which I assume is a movie clip.
    How do I locate the gates instance in the flash file. I have looked at every symbol in the entire flash file and none of them have instance names.
    Please help if you can. Thanks

    You've probably narrowed it down to being an object from the library.  Now you need to see if it is either on the stage or is loaded dynamically.
    If you right click on the object in the library and select Linkage..., you'll be able to see if it might be loaded dynamically.  In order to load it dynamically, in the Liinkage panel it will need to have the Export for Actionscript option checked (and one other) and will have an Identifier defined for it.  This identifier is what will be used to pull it from the library via actionscript (using the attachMovie method).
    If it doesn't have things in the Linkage established as I've described, then it likely lives on the stage.  If you are unable to find it, then it may be on a masked layer, or it may be set invisible on the timeline, or it may have a blank first frame which would make it appear as a mere dot on the stage if selected.
    Now, regardless of whether you find how it's added to the stage, if your intention is to edit this object in some way, You don't necessarily have to figure out the details of how its added to the stage.  To check if the object in the library is the one you want to edit, edit it in some simple way so that you can tell if the item you edit is the item you want edited.  If it is, then do the editing you intend.

Maybe you are looking for

  • "From" presence not displaying in Outlook 2010

    I've been working on a software product aiming presence and im integration with Microsoft Outlook using IMessenger API. Integration works as expected with Outlook 2013. However, the presence indicator of the "from" or sender does not display in Outlo

  • JDBC Sender Adapter - Restrict number of rows fetched, Oracle

    Hi, Is it possible to restrict the number of rows fetched by the JDBC Sender adapter at each run? What would the appropriate Select and Update statements be to make sure a limited number of rows are selected and flagged as processed? We are connectin

  • PS CS6 will not update to Camera Raw 7.2

    I have a fully licenesed version of CS6, along with LR 4.x. LR updated to Camera Raw 7.2 about a week ago. PS CS6 (extended 64) will not find the update. It is a pain in my sitter every time I go to edit a photo to see a warning. I do not want to hid

  • HT1349 I want to delete many duplicates in itunes on my pc

    i have threee of every song, two will play, i want to remove the duplictes and simplify my view.  i know one path is to an external hard-drive that is linked to my itunes, but don't need 'cause its on my hard drive now, twice, apparently

  • Ipod to Stereo- Low Volume from Receiver

    I have connected my Ipod to my stereo receiver (Pioneer VSX-1015Tx) using a Monster Ipod to RCA. I have tried using various inputs on the receiver, but in each I have to crank up the volume to get a good sound. Does the Ipod need an amplifier? Does a