Skip to content

Commit

Permalink
NoClassDefFoundError when starting application with WhoopsModule inst…
Browse files Browse the repository at this point in the history
…alled fix #3420

- upgrade whoops version
  • Loading branch information
jknack committed May 12, 2024
1 parent c619a37 commit b7f7761
Show file tree
Hide file tree
Showing 12 changed files with 58 additions and 117 deletions.
6 changes: 3 additions & 3 deletions modules/jooby-whoops/NOTE.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
To make a new release:

- https://github.com/filp/whoops/releases
- This repo used 2.7.1
- https://github.com/filp/whoops/tags
- This repo used 2.15.4
- Unzip the release
- copy to test/resources/whoops/views
- copy *.php files to test/resources/whoops/views
- Run GenerateHTML
- Verify all php lines were converted (manually)
- Run WhoopsTest
11 changes: 11 additions & 0 deletions modules/jooby-whoops/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,12 @@
<optional>true</optional>
</dependency>

<dependency>
<groupId>org.unbescape</groupId>
<artifactId>unbescape</artifactId>
<version>1.1.6.RELEASE</version>
</dependency>

<!-- Test dependencies -->
<dependency>
<groupId>org.junit.jupiter</groupId>
Expand Down Expand Up @@ -85,10 +91,15 @@
<minimizeJar>true</minimizeJar>
<artifactSet>
<includes>
<!-- <include>org.unbescape:unbescape</include>-->
<include>io.pebbletemplates:pebble</include>
</includes>
</artifactSet>
<relocations>
<!-- <relocation>-->
<!-- <pattern>org.unbescape</pattern>-->
<!-- <shadedPattern>io.jooby.internal.unbescape</shadedPattern>-->
<!-- </relocation>-->
<relocation>
<pattern>io.pebbletemplates.pebble</pattern>
<shadedPattern>io.jooby.internal.pebble</shadedPattern>
Expand Down
1 change: 1 addition & 0 deletions modules/jooby-whoops/src/main/java/module-info.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
requires static com.github.spotbugs.annotations;
requires typesafe.config;
requires org.slf4j;
requires unbescape;

// SHADED: All content after this line will be removed at build time
requires static io.pebbletemplates;
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -290,13 +290,12 @@ header {
border-radius: 6px;
background-color: rgba(255, 255, 255, .05);
}
.frame-comment a {
font-weight: bold;
text-decoration: none;
}
.frame-comment a:hover {
color: #4bb1b1;
}

.frame-comment a {
font-weight: bold;
text-decoration: underline;
color: #c6c6c6;
}

.frame-comment:not(:last-child) {
border-bottom: 1px dotted rgba(0, 0, 0, .3);
Expand Down Expand Up @@ -372,49 +371,6 @@ header {
font: 14px "Inconsolata", "Fira Mono", "Source Code Pro", Monaco, Consolas, "Lucida Console", monospace;
}

/* prettify code style
Uses the Doxy theme as a base */
pre .str, code .str { color: #BCD42A; } /* string */
pre .kwd, code .kwd { color: #4bb1b1; font-weight: bold; } /* keyword*/
pre .com, code .com { color: #888; font-weight: bold; } /* comment */
pre .typ, code .typ { color: #ef7c61; } /* type */
pre .lit, code .lit { color: #BCD42A; } /* literal */
pre .pun, code .pun { color: #fff; font-weight: bold; } /* punctuation */
pre .pln, code .pln { color: #e9e4e5; } /* plaintext */
pre .tag, code .tag { color: #4bb1b1; } /* html/xml tag */
pre .htm, code .htm { color: #dda0dd; } /* html tag */
pre .xsl, code .xsl { color: #d0a0d0; } /* xslt tag */
pre .atn, code .atn { color: #ef7c61; font-weight: normal;} /* html/xml attribute name */
pre .atv, code .atv { color: #bcd42a; } /* html/xml attribute value */
pre .dec, code .dec { color: #606; } /* decimal */
pre.code-block, code.code-block, .frame-args.code-block, .frame-args.code-block samp {
font-family: "Inconsolata", "Fira Mono", "Source Code Pro", Monaco, Consolas, "Lucida Console", monospace;
background: #333;
color: #e9e4e5;
}
pre.code-block {
white-space: pre-wrap;
}

pre.code-block a, code.code-block a {
text-decoration:none;
}

.linenums li {
color: #A5A5A5;
}

.linenums li.current{
background: rgba(255, 100, 100, .07);
}
.linenums li.current.active {
background: rgba(255, 100, 100, .17);
}

pre:not(.prettyprinted) {
padding-left: 60px;
}

#plain-exception {
display: none;
}
Expand Down
Loading

0 comments on commit b7f7761

Please sign in to comment.