TLDR: On Java 9/10, a web app in Tomcat has no access to JAXB even though its reference implementation is present on the class path. Edit: No, this is not a duplicate of How to resolve java.lang.NoClassDefFoundError: javax/xml/bind/JAXBException in Java 9 – as you can tell by the What I tried section, I…
Tag: tomcat
Eclipse irreversible Dynamic Web Module 4.0 selection; Tomcat 9 doesn’t support it
I’m using Eclipse Oxygen.2 (4.7.2) on Windows 10 with Java 8. I have a faceted project I run inside Eclipse using Tomcat. I had been using Tomcat 8.5, but on a new system I upgraded to Tomcat 9. Of course I removed the Tomcat 8.5 server and server runtime within Eclipse, and added back a Tomcat 9 server…
tomcat 5 java.lang.UnsatisfiedLinkError: tomcatapache-tomcat-5.5.36bintcnative-1.dll: Can’t load IA 32-bit .dll on a AMD 64-bit platform
I am on a brand new laptop, so it only has stuff I have installed on it in the last week, so i am pretty certain it doesn’t have old stuff hanging around. This is rather large as i have tried to include EVERYTHING. my java home is pointing to a 64 bit java 8, but because of “stuff” (TM)
which tomcat version is suitable for java 8
Recently, our online web service using tomcat 7.0.23.0 and JVM 1.7.0_51-b13 need to upgrade to java 8, which tomcat version is suitable for java 8 ? Answer See this link http://tomcat.apache.org/whichversion.html for details about which tomcat versions are supported on which java versions. According to that l…
How to setup multiple connection pools when multiple datasources are used in Spring Boot?
I have a Spring Boot application that connects to two separate databases. All works fine (I followed the steps in the docs and a tutorial), although in order to customize the Tomcat JDBC connection pool settings, I had to manually configure it (because by defining multiple data sources, the Boot auto-configur…
java.lang.NoClassDefFoundError: javax/el/ELManager
I’m working on a webapp in Spring using Spring Tool Suite. If I build and deploy the application there using the IDE onto the provided Pivotal tc Server, it works just fine. However, if I do a manual “mvn clean package” build and attempt to deploy it to a standalone Tomcat server (using newe…
keytool error: java.io.IOException: keystore password was incorrect
Created a Certificate for Tomcat, trying to get it installed in new keystore, and getting error (Edit: ran it with -v option, now getting more info): Sadly, it’s correct, the passphrase has two “®”. So, given what I’ve done (the private key has the non-ASCII password), how much of a pa…
Spring Boot application in eclipse, the Tomcat connector configured to listen on port XXXX failed to start
I’m developing a REST API using Spring Framework. First I wasn’t able to run my application because of the same problem. The port 8080 on my computer is busy. Then I found out that one alternative to solve this problem is creating an application.properties file under src/main/resources folder. Tha…
How to deploy a java jar file to remote server through maven
I want to deploy a jar file to a remote server and run it. Is there a plugin for maven can do this process? I know that tomcat for maven plugin can deploy the war file to remote server, but my project …
Tomcat 8 is not able to handle get request with ‘|’ in query parameters?
I am using Tomcat 8. In one case I need to handle external request coming from external source where the request has a parameters where it is separated by |. Request is looks like this: http://localhost:8080/app/handleResponse?msg=name|id| In this case I am getting following error. EDIT 1 It works with Apache…