Installing and running “naked” hybris platform

Log of an exercise to install and start the Hybris without all those fancy modules

Starting point: hybris-platform-4.7.1.zip

Install point: /opt/hybris-platform/hybris-platform-4.7.1

Start (with HSQLdb)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
~ $ cd /opt/hybris-platform/hybris-platform-4.7.1
hybris-platform-4.7.1 $ cd bin/platform/
platform $ pwd
/opt/hybris-platform/hybris-platform-4.7.1/bin/platform
 
 
platform $ . ./setantenv.sh
Setting ant home to: /opt/hybris-platform/hybris-platform-4.7.1/bin/platform/apache-ant-1.8.2
Apache Ant(TM) version 1.8.2 compiled on April 21 2011
platform $ ant clean all | tee ant-clean-all.log

=> Select develop

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
....
....
   
   [echo] [jspcompile] compiling.. /opt/hybris-platform/hybris-platform-4.7.1/bin/platform/tomcat-6/work/Catalina/localhost/hmc
   [yjavac] Compiling 205 source files to /opt/hybris-platform/hybris-platform-4.7.1/bin/platform/tomcat-6/work/Catalina/localhost/hmc
    [touch] Creating /opt/hybris-platform/hybris-platform-4.7.1/bin/platform/tomcat-6/work/Catalina/localhost/hmc/jspcompile_touch
[stopwatch] [build: 43.686 sec]
server:
     [echo]
     [echo] Configuring server at /opt/hybris-platform/hybris-platform-4.7.1/bin/platform/tomcat-6
     [echo] Using config set at /opt/hybris-platform/hybris-platform-4.7.1/config/tomcat
     [echo]            
    [mkdir] Created dir: /opt/hybris-platform/hybris-platform-4.7.1/log/tomcat
    [mkdir] Created dir: /opt/hybris-platform/hybris-platform-4.7.1/data/media
     [copy] Copying 8 files to /opt/hybris-platform/hybris-platform-4.7.1/bin/platform/tomcat-6
     [copy] Copying 6 files to /opt/hybris-platform/hybris-platform-4.7.1/bin/platform/tomcat-6
     [copy] Copying 1 file to /opt/hybris-platform/hybris-platform-4.7.1/bin/platform/tomcat-6/lib
     [echo]
     [echo] Embedded server does not seem to be running (no PID found). No restart necessary.
     [echo]                        
all:
     [echo] Build finished on 17-August-2012 19:43:22.
     [echo]        
BUILD SUCCESSFUL
Total time: 1 minute 26 seconds

Goto http://localhost:9001/ - redirects to http://localhost:9001/platform/init

List of modules that goes up:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
core
hmc
servicelayer
task
commons
cronjob
lucenesearch
impex
validation
variants
europe1
category
catalog
virtualjdbc
platformservices
workflow
processengine
ldap
comments
cockpit
mcc
advancedsavedquery
admincockpit

Initialization log

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
Initialization
Dropping ALL tables ...
 
Initialize system ...
 
Please wait. This step can take some minutes to complete.
If you do not receive any feedback on this page in this time, consult the applicationserver logs for possible errors.
Dropping old and creating new empty system ...
>>> Remove objects ...
>>> Create types ...
>>> Modify types ...
>>> Create objects ...
>>> Setting licence ...
Restarting tenant ...
 
Clearing hmc configuration from database ...
 
 
Creating essential data ...
 
Creating essential data for core ...
Creating essential data for mediaweb ...
Creating essential data for maintenanceweb ...
Creating essential data for hmc ...
Creating essential data for servicelayer ...
Creating essential data for task ...
Creating essential data for paymentstandard ...
Creating essential data for deliveryzone ...
Creating essential data for commons ...
Creating essential data for cronjob ...
Creating essential data for lucenesearch ...
Creating essential data for impex ...
Creating essential data for validation ...
Creating essential data for variants ...
Creating essential data for europe1 ...
Creating essential data for category ...
Creating essential data for catalog ...
Creating essential data for virtualjdbc ...
Creating essential data for platformservices ...
Creating essential data for workflow ...
Creating essential data for processengine ...
Creating essential data for platformwebservices ...
Creating essential data for ldap ...
Creating essential data for hac ...
Creating essential data for comments ...
Creating essential data for cockpit ...
Creating essential data for mcc ...
Creating essential data for advancedsavedquery ...
Creating essential data for admincockpit ...
 
Localizing types ...
 
Creating project data ...
 
Creating project data for core ...
Creating project data for hmc ...
Creating project data for servicelayer ...
Creating project data for task ...
Creating project data for commons ...
Creating project data for cronjob ...
Creating project data for lucenesearch ...
Creating project data for impex ...
Creating project data for validation ...
Creating project data for variants ...
Creating project data for europe1 ...
Creating project data for category ...
Creating project data for catalog ...
Creating project data for virtualjdbc ...
Creating project data for platformservices ...
Creating project data for workflow ...
Creating project data for processengine ...
Creating project data for ldap ...
Creating project data for comments ...
Creating project data for cockpit ...
Creating project data for mcc ...
Creating project data for advancedsavedquery ...
Creating project data for admincockpit ...
 
 
FINISHED. The initialization took: 0d 00h:01m:08s:235ms

Exploring

REST Client

1
2
3
4
5
6
$ cd /opt/restClient/
restClient $ ll
total 44280
-rw-r--r--@ 1 miro  staff   8.4M 17 Aug 20:15 restclient-cli-2.5-jar-with-dependencies.jar
-rw-r--r--@ 1 miro  staff    13M 17 Aug 20:16 restclient-ui-2.5-jar-with-dependencies.jar
restClient $ java -jar restclient-ui-2.5-jar-with-dependencies.jar

must enter admin/nimda into tool

Follow http://localhost:9001/ws410/rest/countries

1
2
3
4
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<countries xmlns:ns2="http://wadl.dev.java.net/2009/02" uri="http://localhost:9001/ws410/rest/countries">
<country isocode="DE" pk="8796093055010" uri="http://localhost:9001/ws410/rest/countries/DE"/>
</countries>

Interesting catalog tool - comparison:

Admin Cockpit

http://localhost:9001/admincockpit/index.zul

Virtual JDBC

Available at http://localhost:9001/virtualjdbc/

This extension offers the functionality to connect to a database using a virtual JDBC connection. This allows to create reports in real-time on live data without risks of corrupting data.

To connect via HTTP the jdbc url looks like:

1
2
[jdbc:hybris:sql:http://localhost:9001/virtualjdbc/service]()
[jdbc:hybris:flexiblesearch:http://localhost:9001/virtualjdbc/service;tenant=master]()

Detailed documentation can be found at virtualjdbc Extension.