The valid characters are defined in RFC 7230 and RFC 3986
If you use an upper version of Tomcat 8.5 it throws this exception if the URL path contains ‘[‘ and ‘]’. For older versions, it works.
If you use an upper version of Tomcat 8.5 it throws this exception if the URL path contains ‘[‘ and ‘]’. For older versions, it works.
How to MANUALLY build and deploy a jax-ws web service to tomcat I was trying to figure out how to MANUALLY build and deploy a web service for learning pourposes. I began with this excellent article http://java.sun.com/developer/technicalArticles/J2SE/jax_ws_2/ (new URL: http://www.oracle.com/technetwork/articles/javase/jax-ws-2-141894.html) The idea was to do the whole thing using only a notepad and the command … Read more
There are probably several ways to do this. The trick we use is: #!/bin/bash until [ “`curl –silent –show-error –connect-timeout 1 -I http://localhost:8080 | grep ‘Coyote’`” != “” ]; do echo — sleeping for 10 seconds sleep 10 done echo Tomcat is ready! Hope this helps!
According to the Tomcat Docs: Any installed Java 7 or later JRE (32-bit or 64-bit) may be used.
You add a Valve to the Context in context.xml (specifically, org.apache.catalina.valves.RemoteAddrValve). See the docs on Remote Host Filters.
I think the reason is that you can’t edit files in “Program Files” without administrator rights. I had that kind of problem several times and I usually solve it by running my text editor with admin rights. For example, to edit file with notepad in Windows 7: Find it in your start menu, click on … Read more
The first part of the answer by @reta works for me. These are the relevant dependencies from my pom (Java 10): <dependency> <groupId>javax.xml.ws</groupId> <artifactId>jaxws-api</artifactId> <version>2.3.1</version> </dependency> <dependency> <groupId>com.sun.xml.ws</groupId> <artifactId>rt</artifactId> <version>2.3.1</version> </dependency>
As of Servlet 3.0, this can simply be specified in the web.xml: <session-config> <session-timeout>720</session-timeout> <!– 720 minutes = 12 hours –> <cookie-config> <max-age>43200</max-age> <!– 43200 seconds = 12 hours –> </cookie-config> </session-config> Note that session-timeout is measured in minutes but max-age is measured in seconds.
First, you need to run Tomcat in debugging mode. The easiest way to do that is to modify the startup file (.bat or .sh depending if you are Windows or not). Find the line near or at the end of the file that contains the start command, and change it to jpda start. This will … Read more
Tomcat enables some additional debugging options at start up if you are running with a full JDK. These options require the JDK so you Tomcat checks you are actually using one if you claim that you are to ensure these options don’t fail if used. I rarely see these options being used. I think I … Read more