Menu

We have relaunched our project website

2010-08-20
2013-02-22
  • Thomas Weber

    Thomas Weber - 2010-08-20

    The pulse project website has been relaunched. We have completely overhauled the site design and added lots of new documentation.
    We hop you will like it

    Cheers,
    Thomas

     
  • Ries van twisk

    Ries van twisk - 2010-09-07

    Hello Thomas,

    are there any online Demo's available for Pulse? I am possible looking for a CMS (90% shopping system we are making) but we do need a lot of pages to be just static top menu's with sub-menus, contact form, Login system etc. etc.

    As I don't have MySQL on my system, it's currently hard to try out Pulse on my development system, and from your best guess… How hard/easy would it be to also support PostgreSQL?

    Ries

     
  • Thomas Weber

    Thomas Weber - 2010-09-07

    Hi Ries,

    currently we do not have an online demo as such, but you can check out sites running on pulse, e.g. http://pelikan-shop.co.uk which is a shopping site.

    Pulse is using Hibernate as its JPA provider which is supposed to support PostgreSQL. In order to try it out, simply place the PostgreSQL JDBC driver into WEB-INF/lib, and adjust the pulse.xml:

    <property name="hibernate.connection.driver_class">com.mysql.jdbc.Driver</property>
                <property name="hibernate.connection.url"
                    >jdbc:mysql://127.0.0.1:3306/pulse?autoReconnect=true&amp;characterEncoding=UTF-8</property>
    

    to match the Postgres JDBC driver name and JDBC-URL and comment or remove the following line:

    <property name="hibernate.dialect">org.torweg.pulse.util.MySQL5InnoDBDialectUTF8</property>
    

    Hibernate should then automatically pick the right dialect for PostgreSQL.

    If you create the database on Postgres make sure it uses UTF-8 as the default character set and a case-insensitive collation.

    If we both are lucky, that should be all.

    Cheers,
    Thomas

     
  • Ries van twisk

    Ries van twisk - 2010-09-07

    Thomas,

    in that case I will give it a swirl today/night and look around the system. I will report back my success on PostgreSQL.

    Ries

     
  • Thomas Weber

    Thomas Weber - 2010-09-13

    Ries,

    I was wondering, if you had any luck running pulse on PostgreSQL. Is there anything I can do to assist you.

    Thomas

     
  • Ries van twisk

    Ries van twisk - 2010-09-13

    Thomas,
    it's still on my todo actually, for this week…
    But thanks for asking, I am really curious about this system.

    Ries

     
  • Ries van twisk

    Ries van twisk - 2010-09-19

    Thomas,

    I tried using the source distribution but that bailed out with:

    Buildfile: build.xml                                                                                                                                                                                                                           
                                                                                                                                                                                                                                                   
    binary-distribuion:                                                                                                                                                                                                                            
       Could not load definitions from resource net/sf/antcontrib/antcontrib.properties. It could not be found.

    I am not much of a ant guru, but usually I can run ant without issues. Note, that I don't have antcontrib.properties available on my system. Should I have downloaded that?

    So, I have been downloading the binary distribution to..

    I followed the 8 steps,
    but I noticed that after running ./build.sh META-INF/context.xml still have MySQL info in there, should I have changed that?
    During deployment 173 tables where created.

    However, my log files keeps beeing filled with messages like :

    INFO: 10:07:20.932  DEBUG org.hibernate.engine.Collections - Collection found: , was:  (initialized)

    INFO: 10:07:20.933  DEBUG org.hibernate.engine.Collections - Collection found: , was:  (initialized)

    INFO: 10:07:20.933  DEBUG org.hibernate.engine.Collections - Collection found: , was:  (initialized)

    That went on and on and on and on……
    I think it took around 15 minutes, or may be even longer before the app got deployed.

    Anyways,
    when I did bring up the pulse main screen I got : http://screencast.com/t/NWM5NzEyM2

    And when I tried to login I gor redirected to: http://localhost/pulse/Pulsar/en_US.Core.homepage../,
    this should have been : http://localhost:8080/pulse/Pulsar/en_US.Core.homepage../

    Will se what I can do later..

    Ries

     
  • Thomas Weber

    Thomas Weber - 2010-09-20

    Ries,

    I do not know why you are getting so many debug messages from hibernate, because the default log4j config in WEB-INF/ sets the default level to INFO. So the deploying has been dead slow because of all the logging.

    The port problem can be solved easily. In pulse.xml you will have to adapt the following line

    <security tls-available="false" secure-port="443" default-port="80"
            server-salt="changeMeOnInstall"/>
    

    to

    <security tls-available="false" secure-port="8443" default-port="8080"
            server-salt="changeMeOnInstall"/>
    

    Regarding the context.xml please just comment the datasource. You will not need it. I will clean-up the file for the final release.

    I will also try to figure out what fails when you try to build the source dist with a stand-alone ant. I'm always using it from Eclipse and then it's working.

    Thomas

     
  • Thomas Weber

    Thomas Weber - 2010-09-20

    Ries,

    thanks again for notifying us of the defective source distributions. I have fixed all errors and included a "INSTALLING.txt" with short instructions. I am uploading the fixed packages at the moment.

    Thomas

     
  • Ries van twisk

    Ries van twisk - 2010-09-20

    Thomas,

    I have been updating to revision 2008 today and have been running the ant task,
    One thing I did notice that was the build.additional didn't check if the additional directly really existed and as such I got build failures.
    My quick solution was to comment out these sort of lines:

    <!-foreach target="compile-and-jar.subproject" param="project" list="${build.additional}"/->

    So the additional builds are not executes, however it would be better to test for directory existence and run only when the dir exist.

    Apart from that it builds fine now using ant, great!!

    I could also manage to login, and change my passwords and I see the backend interface.

    When following the little tutorial I got stuck with 'add content' : http://screencast.com/t/NzkyNzY1Y
    I don't see a way to save the content, and when I re-edit my changes are lost.
    I don't see a save button, not can I click anywhere.

    Ries

     
  • ddietz

    ddietz - 2010-09-20

    Hello Ries,

    Your problem is most probably the result of the encoding not being properly set (i.e. the default of your OS is NOT utf-8…)…

    The easiest way to confirm this error would be to have a look at the HTML source-code.
    If the encoding is the problem, then the HTML which displays the page will be truncated instead of ending with </html>.

    You should add the following line to your tomcat startup-script (usually bin/catalina.sh or bin/catalina.bat - depending on OS):

    set JAVA_OPTS=%JAVA_OPTS% -server -Dfile.encoding=utf-8
    

    Please also confirm that your server.xml has the URIencoding set for the connector, i.e.:

    <Connector port="8080" protocol="HTTP/1.1" 
                   connectionTimeout="20000" 
                   redirectPort="8443" URIEncoding="utf-8" />
    

    I hope this will solve the problem.

    Please also see http://pulse.torweg.org/site/Pulsar/en_US.CMS.displayCMS.134./ (top of page) regarding this issue…

    THX for being so patient in trying out pulse…

    Cheers Daniel

     
  • Ries van twisk

    Ries van twisk - 2010-09-20

    Daniel,

    I have never seen such a problem before, because usually I would see weird characters.. not broken HTML but well… never to old to learn, right?

    I added -Dfile.encoding=UTF8 to my JVM options and this did the trick.

    Now I am trying to add ~CMS:CMSContentDisplayer:displayCMS to the ~everybody role, and the doc states :

    "Edit this role by clicking the pencil and open the Permissions assorter. Add the permission named ~CMS:CMSContentDisplayer:displayCMS to grant everybody the permission to view CMS contents on your website. "

    However, when trying to find the 'Permissions Assorter' I am lost, this is the screen I am seeing : http://screencast.com/t/Yzg5YTE1YTQt

    The permissions and group boxes cannot be edited, only the box Description can be edited.

    Ries

     
  • ddietz

    ddietz - 2010-09-20

    Hello Ries,

    Unfortunately I cannot reproduce this problem…

    My best guess is you should drop your current database and just restart on a fresh database (since any errors which might have previously occured could have compromised the database…).

    Upon startup the pulse logfile should read a bunch of lines like:

    ...
    2010-09-20 20:56:43 INFO  [startup        ] org.torweg.pulse.invocation.lifecycle.LifecycleBundleTasks - Updated auto-generated permission: '~Store:StoreContentEditor:editStoreContent'
    2010-09-20 20:56:43 INFO  [startup        ] org.torweg.pulse.invocation.lifecycle.LifecycleBundleTasks - Updated auto-generated permission: '~Store:StoreContentEditor:editStoreContent'
    2010-09-20 20:56:43 INFO  [startup        ] org.torweg.pulse.invocation.lifecycle.LifecycleBundleTasks - Updated auto-generated permission: '~Store:StoreContentEditor:editStoreContent'
    2010-09-20 20:56:43 INFO  [startup        ] org.torweg.pulse.invocation.lifecycle.LifecycleBundleTasks - Updated auto-generated permission: '~Store:StoreContentEditor:editStoreContent'
    ...
    

    which will indicate that the permissions have been correctly auto-generated.

    The matching table in the database is the "CommandMatcher"-table and it should contain entries after the system has started…

    Should re-creating the database not solve the problem please let me know, since we will have to look into operating pulse with a postgres database….

    THX again…

    Daniel

     
  • Ries van twisk

    Ries van twisk - 2010-09-20

    Daniel,

    First I think I need to look into my deployment times, this is still around 15 minutes which makes quick testing rather hard.

    I will follow your instructions by cleaning the DB, and properly when my logfile is much lass spammed, I can properly see better if there are any messages of interest.

    Ries

     
  • Thomas Weber

    Thomas Weber - 2010-09-21

    Ries,

    the deploy and start-up of pulse on a clean database should take between 30 and 50 seconds. I think your startup is being slowed down by the excessive logging you are experiencing. Maybe there is a problem in the logging configuration you are using, because all the log messages you wrote about earlier should be suppressed as the default log level is INFO. I am not sure whether the messages drop through to another log4j appender (e.g. Tomcat's logger).

    Hope this helps (a bit).

    Thomas

     
  • Ries van twisk

    Ries van twisk - 2010-09-21

    Thomas,

    I am pretty sure this is the case of the logging problem.
    I am not using tomcat but I am using glassfish on this computer, so maybe that is doing something different.
    As soon as I have a moment free I will look into that.

    Ries

     
  • ddietz

    ddietz - 2010-09-22

    Hi Ries,

    just wanted to let you know that the problem you mentioned in your earlier post is related to a problem with Hibernate (It seemed like an assembled criteria/s was being interpreted differently by different org.hibernate.dialect.*)…

    "Edit this role by clicking the pencil and open the Permissions assorter. Add the permission named ~CMS:CMSContentDisplayer:displayCMS to grant everybody the permission to view CMS contents on your website. " However, when trying to find the 'Permissions Assorter' I am lost, this is the screen I am seeing : http://screencast.com/t/Yzg5YTE1YTQt The permissions and group boxes cannot be edited, only the box Description can be edited.

    We have fixed that "issue" - it is part of the trunk and the 0.7 branch already and will be included in the upcoming 0.7rc4 release…

    We have been testing against "PostgreSQL 9.0" on a 64bit windows - and it looked like everything works fine (now)…

    Daniel

     
  • Ries van twisk

    Ries van twisk - 2010-09-22

    Daniel,

    I will do my test against PostgreSQL 8.4, but I don't think that that really matters.
    I will cleanup my DB and get a new version from SVN and see if I can start installing from source.

    Ries

     
  • Ries van twisk

    Ries van twisk - 2010-09-23

    Daniel,

    I have compiled from source, and deployed the 'dist' directory that was created.
    One thing I noticed that WEB-INF/components/statistics was not added to the build. Because I got a error it wasn't found.

    Second, I cannot get into teh backend anymore, but I can login. Here is a screenshot : http://screencast.com/t/ZTNjMzI2

    I now got 143tables in my TB (previous I got 172) could it be that hibernate is playing a bad boy again?

    Ries

     
  • Thomas Weber

    Thomas Weber - 2010-09-23

    Ries,

    I've just uploaded RC4 which should fix all PostgreSQL related issues. The build of the source distribution should work (I tried the build and all worked fine), i.e. "statistics" should get included. I think the issues you had with the webapp are all related to the broken build.

    And yes, the database has to contain 172 tables if pulse is fully deployed, but again I believe the missing tables are result of the statistics component not getting deployed.

    Thomas

     
  • Ries van twisk

    Ries van twisk - 2010-09-24

    Thomas,
    I just did a clean checkout of the project and did a new build, but trunk/dist/WEB-INF/components doesn't contain the statistics directory. I hiwsh I could provide patches for you, but I am just to new to pulse yet…

     
  • ddietz

    ddietz - 2010-09-24

    Hello Ries,

    we have added the following topic to the "help" forum

    https://sourceforge.net/projects/pulse-java/forums/forum/943779/topic/3864651/

    which should cover all the steps related to checking out "pulse" from svn to building it…

    I hope this helps a little…

    I recommend using the (current stable) 0.7 branch….

    Let me know if this works for you…

    Cheers Daniel

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.