jetty

Xerces JAR on GAE project's classpath leads to “SAXParserFactoryImpl not found”

穿精又带淫゛_ 提交于 2019-12-06 08:17:26
I'm using the Eclipse plugin for Google App Engine and I'm having a strange issue with a Xerces dependency. On of my classes depends on the Apache Xerces JAR which I have added to the project's classpath. This however, triggers an error when starting the Jetty app server: WARNING: failed com.google.apphosting.utils.jetty.DevAppEngineWebAppContext@6efde050 {/,/Users/lenni/dev/gate/war} javax.xml.parsers.FactoryConfigurationError: Provider org.apache.xerces.jaxp.SAXParserFactoryImpl not found When I remove the xercesImpl.jar from my classpath jetty starts fine, however then my classes don't

Is there any method to obtain in a servlet all valid session keys values on jetty?

纵然是瞬间 提交于 2019-12-06 08:16:07
I have a jetty container with two different servlets, lets call then A and B. In a special occasion a qr code code appear in servlet A (the user is already logged in and is using his desktop) and the user by using his mobile device read this qr code and is redirected the servlet B on his mobile device. The problem here is that i cant keep his session. The QR code brings the user session key however i have no way to verify if this session is valid. I would like to know if there is any special method to request the valid session keys on jetty, since both servlet are in the same server. Well the

How do I disallow particular SSL protocols in Jetty?

瘦欲@ 提交于 2019-12-06 08:15:24
问题 I have a web application running on Jetty 6 + Open JDK 7 on Debian 6.0.7. I have a security requirement to accept a TLS handshake but not an SSLv3.0 handshake when a client initiates an HTTPS connection. In my jetty.xml I set the protocol to TLS: <New class="org.mortbay.jetty.security.SslSocketConnector"> <Set name="protocol">TLS</Set> ... With this configuration, the web server still appears to accept an SSLv3.0 handshake. This has been verified with the 'sslscan' tool and running 'curl

How do I create a Jetty Server in Eclipse Juno?

点点圈 提交于 2019-12-06 08:09:38
This is what I've done so far: From " Install New Software ", I chose the site: " http://eclipse-jetty.sourceforge.net/update/ " Installed " Eclipse Jetty Feature ". Restarted Eclipse after the installation. However, Jetty does not show up in the list of servers in the New Server wizard. Any ideas what I'm doing wrong here? I'm a complete newbie to Java. I'm a C# programmer and I'm learning to use Eclipse and such. Sorry if I'm missing something obvious. UPDATE 1 Screenshot of New Server > Download additional server adapters If I attempt to install the server adapter, I see this error message

Jetty Bind DataSource in JNDI Context

安稳与你 提交于 2019-12-06 08:02:18
问题 I would like to bind DataSource object to (eclipse) jetty's JNDI context programatically. I need for testing purpose. Here's a piece of code I have now: server = new Server(SERVER_PORT); webAppContext = new WebAppContext(); webAppContext.setResourceBase("."); webAppContext.setContextPath("/" + SERVER_CONTEXT); webAppContext.addEventListener(prepareServletContextListener()); webAppContext.addFilter(GuiceFilter.class, "/*", null); webAppContext.addServlet(DefaultServlet.class, "/"); Resource r

Java servlets and database connection pooling

梦想的初衷 提交于 2019-12-06 07:18:08
问题 Just looking at examples of connection pooling on the web, they all implement connection pooling on a per servlet basis. So each servlet has its own pool of database connections. My question is, why is that preferable to something like a global pool of db connections? Since a global pool is seems more efficient than a per servlet pool.. Also, since I'm thinking about implementing such a pool. Is there a way to have a class initialized before the servlets(I'm using jetty btw)? I'm just

Jetty, Spring, Run problem

送分小仙女□ 提交于 2019-12-06 07:06:52
问题 Hi im trying to run a webapp, using spring and jetty and the following error is display: 2011-02-03 10:40:59.398::INFO: jetty-6.1.6 2011-02-03 10:41:00.637::WARN: Could not instantiate listener org.springframework.web.context.ContextLoaderListener java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown

What are “Jetty 6 Continuations” and how do they compare to the continuations found in programming languages?

十年热恋 提交于 2019-12-06 06:17:50
I'm looking for an answer that describes a "continuation" mechanism in a web server vs. a programming language. My understanding is that using continuations, it is trivial to have a "digits of pi" producer communicate with a "digits of pi" consumer, without explicit threading. I've heard very good things about Jetty continuations. I am curious what others think. I may have already found my answer, but I'm asking the question here anyway - for the record. how do they compare to the continuations found in programming languages? They have nothing in common apart from the name. It's merely a

Making JSESSIONID cookie be httpOnly in Jetty 7

独自空忆成欢 提交于 2019-12-06 06:14:39
We're running grails 2.0 + jetty 7.6.6 and need to set JSESSIONID cookie to be httpOnly. All of the answers on stackoverflow seem to refer to either Servlet 3.0 (which requires jetty 8) or to tomcat. Can anyone provide me with a clear way of setting the JSESSIONID cookie be httpOnly for jetty 7.x? I have tried adding jetty-web.xml file with the following contents, but it still didn't work (i.e. the JSESSIONID wasn't marked as httpOnly): <?xml version="1.0" encoding="ISO-8859-1"?> <!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "http://www.eclipse.org/jetty/configure.dtd"> <Configure class

Does it make sense to deploy a WAR with a webapp to Maven central repository?

☆樱花仙子☆ 提交于 2019-12-06 06:12:36
Does it make sense to do that? If yes, where can I find an example of doing that with a simple "Hello World from Web"? Do people run webapps with Jetty when they execute it from Maven? I imagine tomcat is too heavy for that. Any help will be appreciated! Thx! I deploy .war files to our internal Archiva Maven repository so that I can pull them down to assembly things like RPMS without having to hand copy files around, same with building assemblies. It also is useful when the .war is something like a service that is generic and may be included in multiple other web app compliations. That said,