How to manually deploy a web service on Tomcat 6?

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

Wait until tomcat finishes starting up

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!

Cannot edit tomcat-users.xml

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

Getting java.lang.ClassNotFoundException: com.sun.xml.internal.ws.spi.ProviderImpl despite the dependencies are defined

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>

JSESSIONID Cookie with Expiration Date in Tomcat

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.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)