Java

NAVIGATION
CATEGORIES
REFERRENCE
LINKS
  • Jetspeed2 Portlet Reposition Problem

    6 answers - 743 bytes - related search similar search Add To My Delicious Add To My Stumble Upon Add To My Google Mark Add To My Facebook Add To My Digg Add To My Reddit

    Hi Santiago
    Thanks for quick response
    I am using this is M3 version. From where I can download M4 version.
    Regards
    Rakesh
    Santiago Gala <sgala (AT) apache (DOT) orgwrote:
    El mar, 09-08-2005 a las 02:13 -0700, Tomba Rakesh :
    Hi All
    Portlet reposition have some problem. After reposition the
    portlets, the changes does not reflect to page view mode. If anybody
    fix this problem before, kindly share me how to resolve this. Regards
    Rakesh
    This problem was fixed by a recent commit by Scott, that will go into
    M4. What version are you using?
    Regards
    Santiago
    Do You Yahoo!?
    Tired of spam? Yahoo! Mail has the best spam protection around
    http://mail.yahoo.com
  • No.1 | | 1154 bytes | |

    El mar, 09-08-2005 a las 03:55 -0700, Tomba Rakesh :
    Hi Santiago

    Thanks for quick response

    I am using this is M3 version. From where I can download M4 version.

    M4 is still the development branch, where current activity is going on.

    The main focus for this milestone is documentation and bug fixing. I'm
    not sure when a new milestone will be released, at the very least we
    need to test the latest build changes and bugfixes and make the
    documentation progress.

    Regards
    Santiago

    Regards
    Rakesh

    Santiago Gala <sgala (AT) apache (DOT) orgwrote:
    El mar, 09-08-2005 a las 02:13 -0700, Tomba Rakesh :
    Hi All

    Portlet reposition have some problem. After reposition the
    portlets, the changes does not reflect to page view mode. If anybody
    fix this problem before, kindly share me how to resolve this. Regards
    Rakesh

    This problem was fixed by a recent commit by Scott, that will go into
    M4. What version are you using?

    Regards
    Santiago

    Do You Yahoo!?
    Tired of spam? Yahoo! Mail has the best spam protection around
    http://mail.yahoo.com
  • No.2 | | 3362 bytes | |

    Here is a detailed list of the steps I went through to get the PHP
    bridge working, as I promised in an earlier post. I certainly do not
    claim to be an expert, but this worked for me. I am running Linux
    (Centos 4.0), and I am using MySQL instead of the default Hypersonic
    database.

    1. Download and install JDK, Tomcat, Ant, and Maven. Be sure to
    set up all the necessary environment variables and add the bin
    directories to the PATH. The versions I installed were:
    java 1.4.2, Tomcat 5.0.30, Ant 1.6.5, and Maven 1.0.2.
    2. Add a user with a management role to Tomcat.
    3. Download libphp4.so from

    Add an environment variable called LD_LIBRARY_PATH
    that points to the directory where libphp4.so resides.
    4. Download the jetspeed source code.
    5. Modify the file <jetspeed-source>/portal/maven.xml to
    contain the correct directory and war names for deleting the
    php demo application. In the goal remove.wars (~line 704),
    be sure you have the lines

    <delete dir="${}/php"/>
    <delete file="${}/php.war"/>

    (In my version of maven.xml, PHP is capitalized for both of
    these tasks.)
    6. Move the css and hosts directories from
    <jetspeed-source>/applications/php/src/webapp to
    <jetspeed-source>/
    7. Modify the file
    <jetspeed-source>/
    to include the php demo portlet. For example, add the following
    code snippet:

    <fragment id="dp-20" type="portlet" name="php::php-demo">
    <property layout="TwoColumns" name="row" value="4" />
    <property layout="TwoColumns" name="column" value="1" />
    </fragment>

    8. Create a mysql database to hold the php demo data.
    9. Edit
    <jetspeed-source>/
    hosts/conf/config.php to match the hostname, database name,
    username, and password for the database created in step 8.
    10. Run the script
    <jetspeed-source>/
    against the database created in step 8 to populate it with php
    demo data.
    11. Download the latest version of the JDBC driver for MySQL from
    and copy
    it to $CATALINA_HME/common/endorsed/
    12. Create MySQL test and production databases for jetspeed.
    13. Create a $USER_HME/build.properties file to match all of
    these settings. For example, mine looks like this:

    = /
    = /
    = 5
    = /
    = /
    = sbutman
    = <password>
    # My SQL driver paths for test and production

    #
    # configure MySQL Test DB (only needed when running unit tests)
    #

    =
    = com.mysql.jdbc.Driver
    = jetspeed
    = <password>
    #
    # configure MySQL Production DB
    #

    = jdbc:mysql://macbeth/jetspeed
    = com.mysql.jdbc.Driver
    = jetspeed
    = <password>

    14. Stop the tomcat server if it is running.
    15. Run maven allClean.
    16. Run maven allBuild.
    17. Run maven quickStart.
    18. Restart the tomcat server and give it several minutes to unpack
    all of the jars and wars.
    19. Access the jetspeed portal page. You should see the php demo
    application toward the bottom of the right-hand side of the screen.

    Hope this helps.

    To unsubscribe, e-mail: jetspeed-user-unsubscribe (AT) portals (DOT) apache.org
    For additional commands, e-mail: jetspeed-user-help (AT) portals (DOT) apache.org
  • No.3 | | 4779 bytes | |

    Hi Steve,

    Much appreciated! I've managed to get the PHP Portlet working now

    I've spent a little time trying to get this working on my Linux machine
    (running Gentoo 2005.0). After reading your last email, I removed PHP
    from my machine and downloaded libphp4.so from the ITGroundwork site,
    and it works!

    But just to be difficult, I'm now trying to get PHP 4.4.0 (the file
    provided by ITGroundwork is for 4.3.6 - and ultimately I still want to
    get PHP 5.0.x working, but that can wait) working with Jetspeed. When I
    compile PHP manually and use the libphp4.so file that is created I still
    get the same errors as I do on Windows (see my first email in this thread).

    For reference, I'm trying to use Tomcat 5.0.28 and the JDK 1.4.2.

    I'm compiling PHP using the following:

    ./configure $JAVA_HME $TMCAT_HME
    make && make install

    This puts the PHP libraries in /usr/local/lib/php, including libphp4.so.
    So I modified my LD_LIBRARY_PATH:

    export LD_LIBRARY_PATH=$

    Restart Tomcat, open the PHP Portlet, and all I get are exceptions in
    the Tomcat logs.

    At this stage, I'm thinking I've missed an option when compiling PHP,
    but I can't see anything else in the help that looks relevant.

    If anyone has any clues, they would be much appreciated :)

    Thanks again,

    John

    Steve Butman wrote:
    Here is a detailed list of the steps I went through to get the PHP
    bridge working, as I promised in an earlier post. I certainly do not
    claim to be an expert, but this worked for me. I am running Linux
    (Centos 4.0), and I am using MySQL instead of the default Hypersonic
    database.

    1. Download and install JDK, Tomcat, Ant, and Maven. Be sure to
    set up all the necessary environment variables and add the bin
    directories to the PATH. The versions I installed were:
    java 1.4.2, Tomcat 5.0.30, Ant 1.6.5, and Maven 1.0.2.
    2. Add a user with a management role to Tomcat.
    3. Download libphp4.so from

    Add an environment variable called LD_LIBRARY_PATH
    that points to the directory where libphp4.so resides.
    4. Download the jetspeed source code.
    5. Modify the file <jetspeed-source>/portal/maven.xml to
    contain the correct directory and war names for deleting the
    php demo application. In the goal remove.wars (~line 704),
    be sure you have the lines

    <delete dir="${org.jetspeed.deploy.war.dir}/php"/>
    <delete file="${}/php.war"/>

    (In my version of maven.xml, PHP is capitalized for both of
    these tasks.)
    6. Move the css and hosts directories from
    <jetspeed-source>/applications/php/src/webapp to
    <jetspeed-source>/
    7. Modify the file
    <jetspeed-source>/
    to include the php demo portlet. For example, add the following
    code snippet:

    <fragment id="dp-20" type="portlet" name="php::php-demo">
    <property layout="TwoColumns" name="row" value="4" />
    <property layout="TwoColumns" name="column" value="1" />
    </fragment>

    8. Create a mysql database to hold the php demo data.
    9. Edit
    <jetspeed-source>/
    hosts/conf/config.php to match the hostname, database name,
    username, and password for the database created in step 8.
    10. Run the script
    <jetspeed-source>/
    against the database created in step 8 to populate it with php
    demo data.
    11. Download the latest version of the JDBC driver for MySQL from
    and copy
    it to $CATALINA_HME/common/endorsed/
    12. Create MySQL test and production databases for jetspeed.
    13. Create a $USER_HME/build.properties file to match all of
    these settings. For example, mine looks like this:

    = /
    = /
    = 5
    = /
    = /
    = sbutman
    = <password>
    # My SQL driver paths for test and production

    #
    # configure MySQL Test DB (only needed when running unit tests)
    #

    =
    = com.mysql.jdbc.Driver
    = jetspeed
    = <password>
    #
    # configure MySQL Production DB
    #

    = jdbc:mysql://macbeth/jetspeed
    = com.mysql.jdbc.Driver
    = jetspeed
    = <password>

    14. Stop the tomcat server if it is running.
    15. Run maven allClean.
    16. Run maven allBuild.
    17. Run maven quickStart.
    18. Restart the tomcat server and give it several minutes to unpack
    all of the jars and wars.
    19. Access the jetspeed portal page. You should see the php demo
    application toward the bottom of the right-hand side of the screen.

    Hope this helps.

    To unsubscribe, e-mail: jetspeed-user-unsubscribe (AT) portals (DOT) apache.org
    For additional commands, e-mail: jetspeed-user-help (AT) portals (DOT) apache.org
  • No.4 | | 5717 bytes | |

    John--
    I'm afraid you've reached the limits of my technical abilities.

    When I first started experimenting with the PHP bridge, I, too, tried
    compiling PHP from source and was unsuccessful. I noticed that the .so
    file that I generated was much smaller than the one on the itgroundwork
    site. What the difference is, I do not know.

    Check this post:
    %3c430961E1.5050301 (AT) apache (DOT) org%3e
    It sounds like Roger might be working on exactly what you're looking
    for.

    Please post when you've been successful. I would like to compile from
    source, too, but it sounds like it's more urgent for you than for me.

    Best of luck.

    Thu, 2005-08-25 at 14:46 +1000, John Voysey wrote:
    Hi Steve,

    Much appreciated! I've managed to get the PHP Portlet working now

    I've spent a little time trying to get this working on my Linux machine
    (running Gentoo 2005.0). After reading your last email, I removed PHP
    from my machine and downloaded libphp4.so from the ITGroundwork site,
    and it works!

    But just to be difficult, I'm now trying to get PHP 4.4.0 (the file
    provided by ITGroundwork is for 4.3.6 - and ultimately I still want to
    get PHP 5.0.x working, but that can wait) working with Jetspeed. When I
    compile PHP manually and use the libphp4.so file that is created I still
    get the same errors as I do on Windows (see my first email in this thread).

    For reference, I'm trying to use Tomcat 5.0.28 and the JDK 1.4.2.

    I'm compiling PHP using the following:

    ./configure $JAVA_HME $TMCAT_HME
    make && make install

    This puts the PHP libraries in /usr/local/lib/php, including libphp4.so.
    So I modified my LD_LIBRARY_PATH:

    export LD_LIBRARY_PATH=$

    Restart Tomcat, open the PHP Portlet, and all I get are exceptions in
    the Tomcat logs.

    At this stage, I'm thinking I've missed an option when compiling PHP,
    but I can't see anything else in the help that looks relevant.

    If anyone has any clues, they would be much appreciated :)

    Thanks again,

    John

    Steve Butman wrote:
    Here is a detailed list of the steps I went through to get the PHP
    bridge working, as I promised in an earlier post. I certainly do not
    claim to be an expert, but this worked for me. I am running Linux
    (Centos 4.0), and I am using MySQL instead of the default Hypersonic
    database.

    1. Download and install JDK, Tomcat, Ant, and Maven. Be sure to
    set up all the necessary environment variables and add the bin
    directories to the PATH. The versions I installed were:
    java 1.4.2, Tomcat 5.0.30, Ant 1.6.5, and Maven 1.0.2.
    2. Add a user with a management role to Tomcat.
    3. Download libphp4.so from

    Add an environment variable called LD_LIBRARY_PATH
    that points to the directory where libphp4.so resides.
    4. Download the jetspeed source code.
    5. Modify the file <jetspeed-source>/portal/maven.xml to
    contain the correct directory and war names for deleting the
    php demo application. In the goal remove.wars (~line 704),
    be sure you have the lines

    <delete dir="${org.jetspeed.deploy.war.dir}/php"/>
    <delete file="${}/php.war"/>

    (In my version of maven.xml, PHP is capitalized for both of
    these tasks.)
    6. Move the css and hosts directories from
    <jetspeed-source>/applications/php/src/webapp to
    <jetspeed-source>/
    7. Modify the file
    <jetspeed-source>/
    to include the php demo portlet. For example, add the following
    code snippet:

    <fragment id="dp-20" type="portlet" name="php::php-demo">
    <property layout="TwoColumns" name="row" value="4" />
    <property layout="TwoColumns" name="column" value="1" />
    </fragment>

    8. Create a mysql database to hold the php demo data.
    9. Edit
    <jetspeed-source>/
    hosts/conf/config.php to match the hostname, database name,
    username, and password for the database created in step 8.
    10. Run the script
    <jetspeed-source>/
    against the database created in step 8 to populate it with php
    demo data.
    11. Download the latest version of the JDBC driver for MySQL from
    and copy
    it to $CATALINA_HME/common/endorsed/
    12. Create MySQL test and production databases for jetspeed.
    13. Create a $USER_HME/build.properties file to match all of
    these settings. For example, mine looks like this:

    = /
    = /
    = 5
    = /
    = /
    = sbutman
    = <password>
    # My SQL driver paths for test and production

    #
    # configure MySQL Test DB (only needed when running unit tests)
    #

    =
    = com.mysql.jdbc.Driver
    = jetspeed
    = <password>
    #
    # configure MySQL Production DB
    #

    = jdbc:mysql://macbeth/jetspeed
    = com.mysql.jdbc.Driver
    = jetspeed
    = <password>

    14. Stop the tomcat server if it is running.
    15. Run maven allClean.
    16. Run maven allBuild.
    17. Run maven quickStart.
    18. Restart the tomcat server and give it several minutes to unpack
    all of the jars and wars.
    19. Access the jetspeed portal page. You should see the php demo
    application toward the bottom of the right-hand side of the screen.

    Hope this helps.

    To unsubscribe, e-mail: jetspeed-user-unsubscribe (AT) portals (DOT) apache.org
    For additional commands, e-mail: jetspeed-user-help (AT) portals (DOT) apache.org

    To unsubscribe, e-mail: jetspeed-user-unsubscribe (AT) portals (DOT) apache.org
    For additional commands, e-mail: jetspeed-user-help (AT) portals (DOT) apache.org
  • No.5 | | 6384 bytes | |

    Unfortunately you have to recompile PHP 4.4 and create a new libphp4.so
    library.
    As I mentioned earlier I'm putting together a package with the modified
    PHP source code for the servlet and java api one for version 4 and one
    for version 5.
    I'll be done by the end of the week.

    Hope it helps
    Roger

    John Voysey wrote:

    Hi Steve,

    Much appreciated! I've managed to get the PHP Portlet working now

    I've spent a little time trying to get this working on my Linux
    machine (running Gentoo 2005.0). After reading your last email, I
    removed PHP from my machine and downloaded libphp4.so from the
    ITGroundwork site, and it works!

    But just to be difficult, I'm now trying to get PHP 4.4.0 (the file
    provided by ITGroundwork is for 4.3.6 - and ultimately I still want to
    get PHP 5.0.x working, but that can wait) working with Jetspeed. When
    I compile PHP manually and use the libphp4.so file that is created I
    still get the same errors as I do on Windows (see my first email in
    this thread).

    For reference, I'm trying to use Tomcat 5.0.28 and the JDK 1.4.2.

    I'm compiling PHP using the following:

    ./configure $JAVA_HME $TMCAT_HME
    make && make install

    This puts the PHP libraries in /usr/local/lib/php, including
    libphp4.so. So I modified my LD_LIBRARY_PATH:

    export LD_LIBRARY_PATH=$

    Restart Tomcat, open the PHP Portlet, and all I get are exceptions in
    the Tomcat logs.

    At this stage, I'm thinking I've missed an option when compiling PHP,
    but I can't see anything else in the help that looks relevant.

    If anyone has any clues, they would be much appreciated :)

    Thanks again,

    John

    Steve Butman wrote:
    >
    >Here is a detailed list of the steps I went through to get the PHP
    >bridge working, as I promised in an earlier post. I certainly do not
    >claim to be an expert, but this worked for me. I am running Linux
    >(Centos 4.0), and I am using MySQL instead of the default Hypersonic
    >database.
    >>

    >1. Download and install JDK, Tomcat, Ant, and Maven. Be sure to
    >set up all the necessary environment variables and add the bin
    >directories to the PATH. The versions I installed were: java
    >1.4.2, Tomcat 5.0.30, Ant 1.6.5, and Maven 1.0.2.
    >2. Add a user with a management role to Tomcat.
    >3. Download libphp4.so from
    >Add an
    >environment variable called LD_LIBRARY_PATH that points to the
    >directory where libphp4.so resides.
    >4. Download the jetspeed source code.
    >5. Modify the file <jetspeed-source>/portal/maven.xml to contain
    >the correct directory and war names for deleting the php demo
    >application. In the goal remove.wars (~line 704), be sure you
    >have the lines
    >>

    ><delete dir="${org.jetspeed.deploy.war.dir}/php"/>
    ><delete file="${}/php.war"/>
    >>

    >(In my version of maven.xml, PHP is capitalized for both of
    >these tasks.)
    >6. Move the css and hosts directories from
    ><jetspeed-source>/applications/php/src/webapp to
    ><jetspeed-source>/
    >7. Modify the file
    ><jetspeed-source>/
    >to include the php demo portlet. For example, add the following
    >code snippet:
    >>

    ><fragment id="dp-20" type="portlet" name="php::php-demo">
    ><property layout="TwoColumns" name="row" value="4" />
    ><property layout="TwoColumns" name="column" value="1" />
    ></fragment>
    >>

    >8. Create a mysql database to hold the php demo data.
    >9. Edit <jetspeed-source>/
    >hosts/conf/config.php to match the hostname, database name,
    >username, and password for the database created in step 8.
    >10. Run the script
    ><jetspeed-source>/
    >against the database created in step 8 to populate it with php
    >demo data.
    >11. Download the latest version of the JDBC driver for MySQL from
    >and copy it
    >to $CATALINA_HME/common/endorsed/
    >12. Create MySQL test and production databases for jetspeed.
    >13. Create a $USER_HME/build.properties file to match all of
    >these settings. For example, mine looks like this:
    >>

    >= /
    >=
    >/
    >= 5
    >=
    >/
    >=
    >/
    >= sbutman
    >= <password>
    ># My SQL driver paths for test and production
    >
    >>

    >
    >>

    >#
    >
    >>

    ># configure MySQL Test DB (only needed when running unit tests)
    >#
    >
    >>

    >
    >=
    >
    >= com.mysql.jdbc.Driver
    >= jetspeed
    >= <password>
    >#
    >
    >>

    ># configure MySQL Production DB
    >#
    >
    >>

    >
    >=
    >jdbc:mysql://macbeth/jetspeed
    >= com.mysql.jdbc.Driver
    >= jetspeed
    >= <password>
    >>

    >14. Stop the tomcat server if it is running.
    >15. Run maven allClean.
    >16. Run maven allBuild.
    >17. Run maven quickStart.
    >18. Restart the tomcat server and give it several minutes to unpack
    >all of the jars and wars.
    >19. Access the jetspeed portal page. You should see the php demo
    >application toward the bottom of the right-hand side of the screen.
    >>

    >Hope this helps.
    >>
    >>

    >
    >To unsubscribe, e-mail: jetspeed-user-unsubscribe (AT) portals (DOT) apache.org
    >For additional commands, e-mail: jetspeed-user-help (AT) portals (DOT) apache.org
    >>

    >


    To unsubscribe, e-mail: jetspeed-user-unsubscribe (AT) portals (DOT) apache.org
    For additional commands, e-mail: jetspeed-user-help (AT) portals (DOT) apache.org
  • No.6 | | 1103 bytes | |

    Hi Roger,

    Just wondering how this was going? I've still had no luck compiling a
    PHP (4.x or 5.x) library myself that will run with Jetspeed.

    I've been using the libphp4.so binary provided by ITGroundwork to get
    some idea of how the interactions between PHP and Jetspeed work.

    However, as I've started converting my project to a portlet, I've found
    the provided PHP binary is lacking some features I require (for
    instance, support for databases).

    Any help would be appreciated. Thanks,

    John

    Roger Ruttimann wrote:
    Unfortunately you have to recompile PHP 4.4 and create a new libphp4.so
    library.
    As I mentioned earlier I'm putting together a package with the modified
    PHP source code for the servlet and java api one for version 4 and one
    for version 5.
    I'll be done by the end of the week.

    Hope it helps
    Roger

    To unsubscribe, e-mail: jetspeed-user-unsubscribe (AT) portals (DOT) apache.org
    For additional commands, e-mail: jetspeed-user-help (AT) portals (DOT) apache.org

Re: Jetspeed2 Portlet Reposition Problem


max 4000 letters.
Your nickname that display:
In order to stop the spam: 9 + 8 =
QUESTION ON "Java"

EMSDN.COM