Skip to content

Commit ecd291c

Browse files
theosirianwyc
authored andcommitted
Add Troubleshooting; Reorganize Sections
Signed-off-by: Tiago Nascimento <tiago.nascimento@spruceid.com>
1 parent bc96da7 commit ecd291c

1 file changed

Lines changed: 29 additions & 13 deletions

File tree

‎examples/java-jsp/README.md‎

Lines changed: 29 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,19 @@ Optionally, enable it at start-up with:
9595
# systemctl enable tomcat
9696
```
9797

98+
#### Create `data` directory
99+
100+
We will create a directory to store our database and key file and give `tomcat`
101+
user the appropriate permissions:
102+
103+
```bash
104+
# mkdir /opt/tomcat/data
105+
# chown tomcat:tomcat /opt/tomcat/data
106+
# chmod u+wrx /opt/tomcat/data
107+
```
108+
109+
## Building
110+
98111
### Build DIDKit
99112

100113
The web application makes use of DIDKit to handle credentials and presentations,
@@ -128,7 +141,7 @@ following commands:
128141
# ln -s target/libdidkit.dylib /usr/lib # on MacOS
129142
```
130143

131-
## Install `didkit.jar` to local Maven repository
144+
### Install `didkit.jar` to local Maven repository
132145

133146
To avoid a complicated Maven setup, the easiest way to be able to include the
134147
library in the `war` executable is adding it to the local Maven repository. To
@@ -144,18 +157,7 @@ $ mvn install:install-file \
144157
-Dpackaging=jar
145158
```
146159

147-
## Create `data` directory
148-
149-
We will create a directory to store our database and key file and give `tomcat`
150-
user the appropriate permissions:
151-
152-
```bash
153-
# mkdir /opt/tomcat/data
154-
# chown tomcat:tomcat /opt/tomcat/data
155-
# chmod u+wrx /opt/tomcat/data
156-
```
157-
158-
## Generate `.war` file
160+
### Generate `.war` file
159161

160162
To generate the `war` file, execute:
161163

@@ -179,3 +181,17 @@ To sign in and receive your credentials, you will need a CHAPI Wallet. To provid
179181
an easy way to test out this example and others we host our `svelte-chapi-wallet`
180182
example implementation over at
181183
[https://demo-wallet.spruceid.com](https://demo-wallet.spruceid.com).
184+
185+
## Troubleshooting
186+
187+
### The Apache Tomcat Native library which allows using OpenSSL was not found on the java.library.path
188+
189+
If you encounter an error which says that the Apache Tomcat Native library is
190+
missing, you will have to install it, there's documentation on how to build it
191+
[here](http://tomcat.apache.org/native-doc/), but your system's package manager
192+
might have a package for it like in the examples below:
193+
194+
```bash
195+
# apt-get install libtcnative-1 # On Ubuntu
196+
$ brew install tomcat-native # On MacOS
197+
```

0 commit comments

Comments
 (0)