jetty

Getting the real (virtual) host name under an application server

≡放荡痞女 提交于 2019-12-06 14:30:54
I have an application running under Jetty, and I want the application to return self referencing absolute URLs (when generating an RSS feed, so a client must be able to work without a "current URL" context). The problem is that I don't know ahead of time under which host name the application will be deployed, and it is quite likely that it will be deployed in a virtual hosting environment where several host names are mapped to the same IP address. I've tried using HttpServletRequest.getLocalName() , but that returns the resolved host name[1] for IP address on which the request was received

How do I set up Jetty 6 & Jboss 4.0.5 virtual hosting?

僤鯓⒐⒋嵵緔 提交于 2019-12-06 14:30:12
I have 2 webapps deployed in the same JBoss/Jetty server. In Jetty 5.1.14 I had the following jetty-web.xml which configured one of the apps to run as a virtual host (on the same port): <Configure class="org.jboss.jetty.JBossWebApplicationContext"> <Call name="addVirtualHost"><Arg>app2.localhost.com</Arg></Call> </Configure> This worked perfectly fine. Unfortunately, it doesn't work with Jetty 6.1.17 at all. First of all, "JBossWebApplicationContext" seems to now be called "JBossWebAppContext", and secondly the documentation I could find suggests that I should be using a jetty-web.xml that

Solr server HttpParse error

℡╲_俬逩灬. 提交于 2019-12-06 14:20:47
Hi when i am sending a query to solr server using http client , solr server prints exception log saying HttpParser full. I am running solrcloud 4.0 in jetty server. Is this a problem with jetty ? What could be the reason for this and how can i resolve it ? 来源: https://stackoverflow.com/questions/15973884/solr-server-httpparse-error

WELD-001300 when trying to lookup BeanManager by JNDI

我是研究僧i 提交于 2019-12-06 12:53:35
I configured Jetty 9.2.5 + Weld 2.2.7 (currently the latest versions) as described by the Weld documentation . Everything works fine, except the lookup of the BeanManager by JNDI. Lookup of other JNDI entries just work as expected. I got the error (note this is not a javax.naming.NameNotFoundException ) javax.naming.NamingException: WELD-001300: Unable to locate BeanManager The code I use: BeanManager beanManager = null; try { final Context ctx = new InitialContext(); try { // JNDI name defined by spec beanManager = (BeanManager) ctx.lookup("java:comp/BeanManager"); } catch

SolrJetty logging - how to get custom log formatter to work?

こ雲淡風輕ζ 提交于 2019-12-06 12:37:20
问题 I have a Solr server on Linux running under Jetty 6 and am trying to set up a custom formatter for java logging however I can't seem to get it to recognize my custom class. I am new to Java so it is quote possible it is an issue with how I am exporting my class or something like that. Note this is almost the same question as can be found here, however the answer there does not help since I do have a public no-parameter constructor. My formatter looks like the following (as described here):

Minimum set of files needed from Jetty to serve static content?

自闭症网瘾萝莉.ら 提交于 2019-12-06 11:57:28
Background Disclaimer: I have very little experience with Java. We previously used a wrapped version of Jetty 6 for on-demand static content (JS, CSS, images, HTML) during our Ant build so we can run unit tests with PhantomJS against an HTTP-hosted environment. However, Jetty is now on version 8.1.3 and we no longer need that wrapping (which solves a different problem which is now moot), so I wanted to update to just using Jetty 8.1.3 directly. First I downloaded the whole Jetty distribution, which weighs in at a massive ~40 MB. This works from Ant, using "start.jar"... but I don't really want

Anyone using JRuby-Rack with Rails 3?

蹲街弑〆低调 提交于 2019-12-06 11:53:15
Is anyone else out there running Rails 3 and JRuby-Rack, or Jetty and Rails 3? Any trick to it? I'm going insane with some debugging, and at this point I just want to know that it's possible. These instructions work for me: http://mathias-biilmann.net/2010/2/jruby-and-rails-3-beta-step-by-step ranjib i am using jetty-rails + rails3 for a couple of projects. jetty-rails need to be fixed , require "activesupport" need to be changed to require "active_support" (for activesupport 3.0.3) and you have also do 'require "active_support/all"' to include hash extensions (otherwise symbolize! & reverse

No cipher suites in common in Jetty 9 SSL Configuration

廉价感情. 提交于 2019-12-06 11:53:13
问题 I have spent the better part of the day on this and so far have been unable to get Jetty 9 configured to serve over HTTPS correctly. This is only for development purposes so I have generated a keystore file that I am attempting to use with Jetty. I am generating the certificate like this: keytool -keystore keystore -alias jetty -genkey -keyalg RSA This is from the Jetty instructions at https://www.eclipse.org/jetty/documentation/current/configuring-ssl.html. Output from mvn -X jetty:run when

Apache Archiva using JDK 11 throwing BeanCreationException: Error creating bean with name 'roleManager'

限于喜欢 提交于 2019-12-06 11:52:07
Using apache archiva with Oracle JDK 11 configured on Windows with class path. The exception trace shows as following on running archiva.bat console using PowerShell PS D:\Programs\apache-archiva-2.2.3\bin> .\archiva.bat console wrapper | --> Wrapper Started as Console wrapper | Launching a JVM... jvm 1 | Java HotSpot(TM) 64-Bit Server VM warning: Ignoring option MaxPermSize; support was removed in 8.0 jvm 1 | Wrapper (Version 3.2.3) http://wrapper.tanukisoftware.org jvm 1 | Copyright 1999-2006 Tanuki Software, Inc. All Rights Reserved. jvm 1 | jvm 1 | 2018-10-31 11:29:42.367:WARN:oejd

Eclipse deployment descriptor not found

不羁岁月 提交于 2019-12-06 11:32:16
I have a dynamic web project created in eclipse. I moved the location of the WebContent folder (to be located within the /src folder). However, the project still thinks that the directory is under /projectName/WEB-INF/ (I know this because when I try to open an element in the deployment descriptor it tells me that that path does not exist (it doesn't exist, but I need to have it point to the new location). How can I point the build to the new location of the WebContent folder (and WEB-INF etc.)? Thanks. Right click your dynamic web project -> Properties -> Deployment Assembly. In Web