...
- Download or unzip grouper-ui
- e.g. for the 1.4 branch
- Run ant - exit
- Edit the build.properties,
- set the grouper.folder if not ../grouper
- set dist.home, e.g. dist.home=dist
- set no metainf context: should.copy.context.xml.to.metainf=false
- Run ant - dist
- Edit your tomcat_home/conf/server.xml, add a context for the UI
- <Engine defaultHost="localhost" name="Catalina">
<Realm className="org.apache.catalina.realm.UserDatabaseRealm" resourceName="UserDatabase"/>
<Host appBase="webapps" autoDeploy="true" name="localhost" unpackWARs="true" xmlNamespaceAware="false" xmlValidation="false">
<Context docBase="C:\dev_inst\eclipse\workspace_v33\grouper-ui\dist\grouper" path="/grouper" reloadable="false"/>
</Host>
</Engine> - Edit the <Connectors to have uri encoding of utf8
<Connector URIEncoding="UTF-8"
- <Engine defaultHost="localhost" name="Catalina">
- Add the user/pass to your tomcat_home/conf/tomcat-users.xml
- <tomcat-users>
<role rolename="grouper_user"/>
<user username="mchyzer" password="whateveryouwant" roles="grouper_user"/>
</tomcat-users>
- <tomcat-users>
- Start tomcat
- Go to URL: http://localhost:8080/grouper (or wherever you mapped this to tomcat)
- You should be able to login with the credentials in the tomcat-users.xml, and you should see the act as admin dropdown in the upper right
...
- Checkout or download grouper web services
- e.g. for the 1.4 branch
- Stop tomcat
- Do a build in ws: ant quick
- Change these settings in the build.properties:
- grouper.lib.dir=../grouper/lib/grouper
grouper.jar.name=../grouper/dist/lib/grouper.jar
grouper.conf.dir=../grouper/conf
generated.client.project.dir=../grouper-ws-java-generated-client_HEAD
- grouper.lib.dir=../grouper/lib/grouper
- Edit these lines in the grouper-ws.properties
- ws.act.as.group = etc:webServiceActAsUsers
ws.client.user.group.name = etc:webServiceUsers
- ws.act.as.group = etc:webServiceActAsUsers
- Do another build: ant quick
- Edit your tomcat_home/conf/server.xml, add a context for the WS
- <Engine defaultHost="localhost" name="Catalina">
<Realm className="org.apache.catalina.realm.UserDatabaseRealm" resourceName="UserDatabase"/>
<Host appBase="webapps" autoDeploy="true" name="localhost" unpackWARs="true" xmlNamespaceAware="false" xmlValidation="false">
<Context docBase="C:\dev_inst\eclipse\workspace_v33\grouper-ui\dist\grouper" path="/grouper" reloadable="false"/>
<Context docBase="C:\dev_inst\eclipse\workspace_v33\grouper-ws_HEAD\build\dist\grouper-ws" path="/grouperWs" reloadable="false"/>
</Host>
</Engine>
- <Engine defaultHost="localhost" name="Catalina">
- Start tomcat
...
To use hsql, you should go in server mode. To do this,
- start the server:
Code Block |
---|
F:\temp\grouper1.4\grouper-api-1.4.1\bin>java -cp ..\lib\jdbcSamples\hsqldb.jar org.hsqldb.Server -database.0 file:grouper -dbname.0 grouper
|
* Change your grouper.hibernate.properties:
Code Block |
---|
hibernate.dialect = org.hibernate.dialect.HSQLDialect
hibernate.connection.driver_class = org.hsqldb.jdbcDriver
hibernate.connection.url = jdbc:hsqldb:hsql://localhost/grouper
hibernate.connection.username = sa
hibernate.connection.password =
|
* Start admin tool if you like
Code Block |
---|
F:\temp\grouper1.4\grouper-api-1.4.1\bin>java -cp ..\lib\jdbcSamples\hsqldb.jar org.hsqldb.util.DatabaseManager -url jdbc:hsqldb:hsql://localhost/grouper
|
* To delete the database, delete the files from the dir where you started hsqldb: grouper.log, grouper.properties, grouper.script