grizzly

    6熱度

    2回答

    我想在Grizzly上使用Guice + Jersey 2.0。根據這個How to use guice-servlet with Jersey 2.0?的討論,目前澤西島2沒有直接的Guice集成,但它可以使用HK2作爲橋樑來實現。我還檢查了Github https://github.com/piersy/jersey2-guice-example-with-test中的示例項目。該項目使用Je

    5熱度

    1回答

    我試圖使用Grizzly的com.sun.grizzly.http.embed.GrizzlyWebServer部署基於Jersey-Spring的REST API。我也想使用相同的靜態內容。以下是我有: String host = "localhost"; int port = 8081; // For jersey + Spring ServletAdapter jAdapter =

    4熱度

    2回答

    我使用的是灰熊HttpServer其中有註冊了兩個HttpHandler實例: /api/*下有一個REST新澤西州 - 風格的應用程序提供產品的API,並 /*下有一個StaticHttpHandler這提供靜態HTML/JavaScript內容(其中包括與API對話/api/ 對於身份驗證我目前正在保護only使用Jersey ContainerRequestFilter實現HTTP Basi

    27熱度

    3回答

    我遇到了一個問題,即我的可部署jar遇到了一個在IntelliJ本地運行時沒有發生的異常。 例外: Receiving an event {id=2, socket=0c317829-69bf-43d6-b598-7c0c550635bb, type=getDashboard, data={workstationUuid=ddec1caa-a97f-4922-833f-632da07ffc11},

    0熱度

    1回答

    我結合jax-rs HelloWorld example和building executable jar 我的期望是到裏面一個JAR文件的所有依賴創造這個世界你好。 heroku上包提取後我添加這pom.xml中(如在第二討論中描述的編輯+主類只是Main): <plugin> <groupId>org.apache.maven.plugins</groupId> <artif

    0熱度

    2回答

    我沒有使用任何XML配置,並且在運行時正在做所有事情。 我的應用程序運行和澤西我的API工作,但我沒有看到任何日誌正在寫入。我希望看到類似INFO: [MyApp] Initializing log4j from [classpath:environment-${MY_ENVIRONMENT}.properties] 這個應用程序啓動時確認它看到log4j配置。 我已經避免使用log4j.prop

    1熱度

    1回答

    我目前嘗試了灰熊框架2.3.6。 我使用以下行家依賴性: <dependency> <groupId>org.glassfish.grizzly</groupId> <artifactId>grizzly-framework</artifactId> <version>2.3.6</version> </dependency> <depend

    2熱度

    1回答

    如何設置或增加連接限制或最大連接數限制?在篦條篩HttpServer工作線程的池大小我與創建: HttpServer server = HttpServer.createSimpleServer(host, port);

    8熱度

    2回答

    我無法在我的Jersey服務中激活gzip編碼。這是我已經試過: 開始了從Getting Started Guide的jersey-quickstart-grizzly2原型。 新增rc.register(org.glassfish.grizzly.http.GZipContentEncoding.class); (也試圖rc.register(org.glassfish.jersey.messa

    2熱度

    1回答

    我試圖實現一個自定義的灰熊HttpHandler,但很難試圖簡單地從傳入的請求中提取路徑信息。請參見下面的小例子: public class PathInfoTest { public static void main(String[] args) throws IOException { final HttpServer httpServer = new HttpServe