Skip to content

Commit

Permalink
EE10-rydding og oppsett som virker for k9 (#2735)
Browse files Browse the repository at this point in the history
* EE10-rydding og oppsett som virker for k9

* Siste felles
  • Loading branch information
jolarsen committed Dec 10, 2023
1 parent bc5b244 commit bdf7aed
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 28 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
<non-jta-data-source>jdbc/defaultDS</non-jta-data-source>

<properties>
<property name="hibernate.dialect" value="org.hibernate.dialect.OracleDialect"/>
<property name="hibernate.connection.autocommit" value="false"/>
<property name="hibernate.jdbc.use_get_generated_keys" value="true"/>
<property name="org.hibernate.flushMode" value="COMMIT"/>
Expand Down
16 changes: 0 additions & 16 deletions integrasjontjenester/pdfgen/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,6 @@
<groupId>com.openhtmltopdf</groupId>
<artifactId>openhtmltopdf-pdfbox</artifactId>
<exclusions>
<exclusion>
<!-- openhtmltopdf-pdfbox er ikke enig med seg selv hvilken versjon av pdfbox som skal brukes, se under -->
<groupId>org.apache.pdfbox</groupId>
<artifactId>pdfbox</artifactId>
</exclusion>
<exclusion>
<!-- unngår commons-logging siden den forkludrer logging -->
<groupId>commons-logging</groupId>
Expand All @@ -51,17 +46,6 @@
<artifactId>openhtmltopdf-slf4j</artifactId>
</dependency>

<dependency>
<groupId>org.apache.pdfbox</groupId>
<artifactId>pdfbox</artifactId>
<exclusions>
<exclusion>
<groupId>commons-logging</groupId>
<artifactId>commons-logging</artifactId>
</exclusion>
</exclusions>
</dependency>

<dependency>
<groupId>com.openhtmltopdf</groupId>
<artifactId>openhtmltopdf-svg-support</artifactId>
Expand Down
13 changes: 4 additions & 9 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>no.nav.foreldrepenger.felles</groupId>
<artifactId>fp-bom</artifactId>
<version>3.0.0</version>
<version>3.0.1</version>
</parent>

<groupId>no.nav.foreldrepenger.tilbakekreving</groupId>
Expand Down Expand Up @@ -35,8 +35,8 @@
<sonar.projectKey>navikt_fptilbake</sonar.projectKey>

<!-- Jakarta deps -->
<felles.version>7.0.0</felles.version>
<prosesstask.version>5.0.0</prosesstask.version>
<felles.version>7.0.2</felles.version>
<prosesstask.version>5.0.2</prosesstask.version>
<fpkontrakter.version>9.0.2</fpkontrakter.version>
<abakus-kontrakt.version>2.0.1</abakus-kontrakt.version>
<verapdf-validation-model.version>1.24.1</verapdf-validation-model.version>
Expand Down Expand Up @@ -82,7 +82,7 @@
<dependency>
<groupId>no.nav.foreldrepenger.felles</groupId>
<artifactId>fp-bom</artifactId>
<version>3.0.0</version>
<version>3.0.1</version>
<scope>import</scope>
<type>pom</type>
</dependency>
Expand Down Expand Up @@ -377,11 +377,6 @@
<artifactId>openhtmltopdf-slf4j</artifactId>
<version>${openhtmltopdf.version}</version>
</dependency>
<dependency>
<groupId>org.apache.pdfbox</groupId>
<artifactId>pdfbox</artifactId>
<version>2.0.24</version>
</dependency>
<dependency>
<groupId>xml-apis</groupId>
<artifactId>xml-apis</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion web/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@
</dependency>

<dependency>
<groupId>org.jboss</groupId>
<groupId>io.smallrye</groupId>
<artifactId>jandex</artifactId>
</dependency>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -182,9 +182,11 @@ private static ContextHandler createContext() throws IOException {
ctx.setParentLoaderPriority(true);
// må hoppe litt bukk for å hente web.xml fra classpath i stedet for fra filsystem.
String descriptor;
String baseResource;
try (var factory = ResourceFactory.closeable()) {
var resource = factory.newClassLoaderResource("/WEB-INF/web.xml", false);
descriptor = resource.getURI().toURL().toExternalForm();
baseResource = factory.newResource(".").getRealURI().toURL().toExternalForm();
}
ctx.setDescriptor(descriptor);

Expand All @@ -194,7 +196,7 @@ private static ContextHandler createContext() throws IOException {
if (Fagsystem.K9TILBAKE.equals(appname)) {
ctx.setBaseResource(createResourceCollection(ctx));
} else {
ctx.setBaseResourceAsString(".");
ctx.setBaseResourceAsString(baseResource);
}

ctx.setInitParameter("org.eclipse.jetty.servlet.Default.dirAllowed", "false");
Expand Down

0 comments on commit bdf7aed

Please sign in to comment.