@mdagit you may need to specify the content type in your response - something like:
requestContext.abortWith(Response.status(Status.FORBIDDEN).entity(Entity.entity(Map.of("error", err), MediaType.APPLICATION_JSON)).build());
requestContext.abortWith(Response.status(Status.FORBIDDEN).header(HttpHeaders.CONTENT_TYPE, MediaType.APPLICATION_XML).entity(Map.of("error", err)).build());
I'm just randomly guessing at the content type you want - but ultimately, that's the issue - the runtime doesn't know what to serialize the map to.
type(...)method on the
ResponseBuilderclass that might be cleaner than the snippets I first suggested. ex:
Unable to load class net.sf.ehcache.store.DefaultElementValueComparator. Initial cause was net.sf.ehcache.store.DefaultElementValueComparator.<init>(net.sf.ehcache.config.CacheConfiguration). We also tried to disable the cache with
<wsSecurityProvider id="default" ws-security.enable.nonce.cache="false">. But the error still appears. Did anyone one of you had the same issue and can help us out?
<plugin> <groupId>io.openliberty.tools</groupId> <artifactId>liberty-maven-plugin</artifactId> <configuration> <assemblyArtifact> <groupId>io.openliberty.beta</groupId> <artifactId>openliberty-runtime</artifactId> <version>22.214.171.124-beta</version> <type>zip</type> </assemblyArtifact> </configuration> </plugin>
sigh I fear I will never be rid of that error message. :)
the issue makes sense - it really sounds like JSON-B can't disambiguate the two properties - and in this case, they are definitely two different properties (one an
ActionMenu and the other a
boolean). But it does seem like the exception message could be more clear. I'll see what we can do to improve that. Thanks for bringing this up - and I'm glad to hear you got it resolved.
Team, Is it possible to use springBootUtility with OpenLiberty kernel-slim UBI images (e.g. - kernel-slim-java8-openj9-ubi) ?
Because, it's giving an error as
Step 3/11 : RUN springBootUtility thin --sourceAppPath=/staging/fat-order-0.0.1-SNAPSHOT.jar --targetThinAppPath=/staging/thin-order-0.0.1-SNAPSHOT.jar --targetLibCachePath=/staging/lib.index.cache
---> Running in 3023c669c4d7
/bin/sh: springBootUtility: command not found
The springBootUtility is only working with OpenLiberty full UBI images
Team, I am trying to deploy Springboot apps using open-liberty kernel-slim UBI image on OpenShift (OCP) platform using "oc new-app java~<github-url> --strategy=docker" command. but build was failing with below error message:
STEP 18: RUN features.sh
time="2021-08-10T11:26:46Z" level=warning msg="Path \"/run/secrets/etc-pki-entitlement\" from \"/etc/containers/mounts.conf\" doesn't exist, skipping"
time="2021-08-10T11:26:46Z" level=warning msg="Path \"/run/secrets/redhat.repo\" from \"/etc/containers/mounts.conf\" doesn't exist, skipping"
/bin/sh: features.sh: command not found
error: build error: error building at STEP "RUN features.sh": error while running runtime: exit status 127
If i manually deploy apps in Openshift (OCP), then there is no error and i can access the apps (same Dockerfile + deployment.yml + services.yml)
Hello (HELO/EHLO) everyone. I have a question about the mailsession feature :)
Is it possible to use the configuration of the default SSL settings? We are using
<ssl sslRef="ourdefaultSSLSettings" />
Will they also be used for mailing if I do not configure