Jetty, Tomcat, Nginx, Geronimo, Glassfish: I’m confused

Jetty and Tomcat are web-containers, while Geronimo, Glassfish and JBoss support the whole J2EE stack (more or less). And, tataaa, they use/include Tomcat or Jetty for web-containers. The most important part of a fullblown J2EE server besides the web-container used to be the EJB-container allowing for deployment of EJBs, having them run in a transactional … Read more

java.io.IOException: Broken pipe

The most common reason I’ve had for a “broken pipe” is that one machine (of a pair communicating via socket) has shut down its end of the socket before communication was complete. About half of those were because the program communicating on that socket had terminated. If the program sending bytes sends them out and … Read more

How to control VM arguments for maven-jetty-plugin?

The enviroment variable MAVEN_OPTS is the answer. The string content of MAVEN_OPTS is passed to JVM (java.exe). Linux: in shell type export MAVEN_OPTS=…. Windows: in shell (cmd.exe) type set MAVEN_OPTS=… For example: on Windows set MAVEN_OPTS=”-Xmx1024m” sets the heap size of the Maven process to 1024mb. Update (01.04.2013): Pass it directly to Jetty. Matthew Farwell … Read more

How do you specify the root context in your tags in web.xml?

This can’t be done in an appserver agnostic way. Context root isn’t part of the standard web.xml file. It’s either specified when you deploy the app or in an appserver specific descriptor. Glassfish: sun-web.xml; JBoss: jboss-web.xml; Weblogic: weblogic.xml; Tomcat: context.xml; WebSphere: ibm-web-ext.xml. Note: the above applies to deploying WAR files. EAR files are a different … Read more

How do I stop jetty server in clojure?

I usually have a line in my Ring app that looks like the following: (defonce server (run-jetty #’my-app {:port 8080 :join? false})) This prevents locking up the REPL. It also allows me to recompile this file without worrying that my server will get redefined. It also lets you interact at the REPL like so: user=> … Read more

How to set server port with org.eclipse.jetty:jetty-maven-plugin?

The jetty-maven-plugin documentation (for jetty 11 at the time of this answer – update) states that you can either configure the httpConnector element in the pom.xml file to setup the ServerConnector preferences or use the jetty.http.port system property to change the port or use the Jetty descriptor i.e. the way you are doing it actually. … Read more

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