Hi all
If I do changes in the local onehippo cms and deploy it to my dev server, the
folders and files from the distribution package will extract to the right place
and accordingly it seems to work.
But the changes (for example when I edit the homepage document in the local
onehippo cms) won't display in the dev environment.
When I compare the edited document in the local onehippo console
(content/documents/myproject/content/homepage/homepage/myproject:content) with
the same document in the dev-server console (Same path) I see that the changes
aren't assumed.
For more clarity here some details:
• It doesn't exist a bootstrap-folder in the hippo project on my dev server, but I don't know if this folder is necessary on a production environment.
• There is no mysql-connector jar in the {CATALINA_HOME}/common/lib/ folder on the dev server. (geronimo[...].jar, jcr[...].jar and mail[...].jar like in the tomcat-endorsed-folder are available except the mysql-connector[...].jar)
• A hippoecm-extension.xml is on the dev server not available.
• Because the context.xml will be overwritten every deployment, I defined the context.xml in my local onehippo project like this:
<Resource
name="jdbc/repositoryDS" auth="Container" type="javax.sql.DataSource"
maxActive="20" maxIdle="10" initialSize="2" maxWait="10000"
testWhileIdle="true" testOnBorrow="false" validationQuery="SELECT 1"
timeBetweenEvictionRunsMillis="10000"
minEvictableIdleTimeMillis="60000"
username="NAME" password="PASSWORD"
driverClassName="com.mysql.jdbc.Driver"
url="jdbc:mysql://127.0.0.1/DB_TABLE?characterEncoding=utf8" />
<!-- Change the default repository storage location -->
<Parameter name="repository-directory" value="/tmp/myOwnRepo" override="false"/>
I really hope you could help me with my deployment problem
Thank you for your help.
Kind Regards
Timon
--
Hippo Community Group: The place for all discussions and announcements about Hippo CMS (and HST, repository etc. etc.)
To post to this group, send email to hippo-c...@googlegroups.com
RSS: https://groups.google.com/group/hippo-community/feed/rss_v2_0_msgs.xml?num=50
---
You received this message because you are subscribed to the Google Groups "Hippo Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hippo-communi...@googlegroups.com.
Visit this group at http://groups.google.com/group/hippo-community.
For more options, visit https://groups.google.com/d/optout.
Hi,is it maybe you are not starting with bootstrap is true?
REP_OPTS="-Drepo.bootstrap=true -Drepo.config=file:${CATALINA_BASE}/conf/repository.xml"
Hi TimonWhat are the odds your service is using wrong setenv.sh files (that is other than one under ~/tomcat/bin) ,
I presume that there are no errors logged on startup? Have you checked the initialize nodes in the console?
Also please do run 'ps aux' as Mahesh suggested as that will tell you what is actually run, even though it should and could be nothing other than your script. I'm paranoid about these things.
If there's no mysql jdbc driver jar on the dev server, it doesn't seem to connect the intended database. Maybe still using h2 file db in that directory (/tmp/myOwnRepo)?Also, database connection (datasource) should be set properly in your repository.xml. You can check if repository.xml has proper configuration to use the proper jndi data source, too.
I think one of the easiest solution is to clean up the database. Recreate the database in mysql and start up again. Then hippo repository should create tables and fill them with bootstrapping XML data on start up.
If this works and you see the changes made locally there, then repository.xml was well-configured and we can say the initial bootstrapping worked properly.In this case, your initial question can be answered like this: you must have bootstrapped new changes locally and packaged to bootstrap-content-x.x.x.jar to be deployed onto dev server, but because those content changes were not marked as reloadonstartup or unable to reload for some reason, it was not shown on restarts, perhaps.
No the jars do not need to be in the distribution. The distributions contains the war files that contain the jar files, so that's all good.What does your reloadonstart instruction look like in your hippoecm-extensions.xml?
<?xml version="1.0" encoding="UTF-8"?>
<sv:node xmlns:sv="http://www.jcp.org/jcr/sv/1.0" xmlns:ae="http://www.onehippo.org/jcr/autoexport/1.0" sv:name="hippo:initialize" ae:id="mypnehippoproject">
<sv:property sv:name="jcr:primaryType" sv:type="Name">
<sv:value>hippo:initializefolder</sv:value>
</sv:property>
<sv:node sv:name="mypnehippoproject
-webfiles-site">
<sv:property sv:name="jcr:primaryType" sv:type="Name">
<sv:value>hippo:initializeitem</sv:value>
</sv:property>
<sv:property sv:name="hippo:reloadonstartup" sv:type="Boolean">
<sv:value>true</sv:value>
</sv:property>
<sv:property sv:name="hippo:version" sv:type="String">
<sv:value>2.23.02</sv:value>
</sv:property>
<sv:property sv:name="hippo:webfilebundle" sv:type="String">
<sv:value>site</sv:value>
</sv:property>
<sv:property sv:name="hippo:sequence" sv:type="Double">
<sv:value>31000</sv:value>
</sv:property>
</sv:node>
</sv:node>
...
<Resource
name="jdbc/repositoryDS" auth="Container" type="javax.sql.DataSource"
maxActive="20" maxIdle="10" initialSize="2" maxWait="10000"
testWhileIdle="true" testOnBorrow="false" validationQuery="SELECT 1"
timeBetweenEvictionRunsMillis="10000"
minEvictableIdleTimeMillis="60000"
username="hippo" password="RsVZQ8Xk"
driverClassName="com.mysql.jdbc.Driver"
url="jdbc:mysql://127.0.0.1/onehippo_imis_dev?characterEncoding=utf8" />
<!-- Change the default repository storage location -->
<Parameter name="repository-directory" value="/tmp/myOwnRepo" override="false"/>
Thanks and regards
Timon
Hi Timon,To rule the bootstrap mechanism itself, please check that1. your initialize item has reloadonstartup set to 'true' (seems you did that)
2. the hippo:version number in the initialize item is higher (according to Maven versioning) than the version of this initialize item that has been bootstrapped before to your dev environment.
3. the dev environment does not log any warnings related to bootstrap content during the deploy
...
Hi Timon
I strongly suspect that your distribution jar may still contain older version of following jars<your project name> bootstrap-configuration-<your version>.jar<your project name>-bootstrap-content-<your version>.jar<your project name>-bootstrap-webfiles-<your version>.jarI would check your deployment libraries to make sure the jars above are suffixed with correct versions.The jars are found here (if you had followed this documentation [1] during installation)/opt/cms/tomcat/webapps/cms/WEB-INF/lib
Now, if you do find older versions of above jars, do the following first build the project and then create distribution file.1. $ mvn clean install2. $ mvn -Pdistor you can also run mvn clean install && mvn -Pdist
How are you creating the distribution artifacts?1. Jenkins or other CI server?2. Manual (mvn -Pdist)?
...
Hi Timon
I was under the impression that your update the project version first and then creating the distribution.
Here is what I do which has been working well for me.When never deploy distribution without updating the project version.I first update project version.$ mvn versions:set -DnewVersion=<versionnumber>$ mvn clean verify && mvn -Pdist
...
Whats in a name? we are all Hippos!!:-)Which hippoecm-extension.xml (configuration, content, webfiles) you are changes are versioned? all of them?
<sv:property sv:name="hippo:reloadonstartup" sv:type="Boolean">
<sv:value>true</sv:value>
</sv:property>
<sv:property sv:name="hippo:version" sv:type="String">
<sv:value>1.01.[newVersion]</sv:value>
</sv:property>
on your server, can you run$pas aux|less
...
...
Hi Timon
You will need to add versioning to the respective hippoecm-extension.xml file.for example, if you would like to deploy the changes to content then you are versioning the content related to a specific document will be versioned.If it is changes to webfiles that you would like to deploy to the server, then you would change or add version to the webfile hippoecm-extension.xml like below.
...
--
Hippo Community Group: The place for all discussions and announcements about Hippo CMS (and HST, repository etc. etc.)
To post to this group, send email to hippo-c...@googlegroups.com
RSS: https://groups.google.com/group/hippo-community/feed/rss_v2_0_msgs.xml?num=50
---
You received this message because you are subscribed to the Google Groups "Hippo Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hippo-communi...@googlegroups.com.
Visit this group at http://groups.google.com/group/hippo-community.
For more options, visit https://groups.google.com/d/optout.