jetty

Embedded Jetty and Complex Logging

ⅰ亾dé卋堺 提交于 2019-12-23 02:32:57
问题 Jetty 9 is used for the embedded server and everything works well. One thing that remains is the logging issue. Prior to that mvn:jetty-run brings his own logging setup with it and logs to the console. That is good for development. In the production environment we need something more special. Currently on start-up the SLF4J complains about, that there is no binding available, so we can chose freely. That is what we want to archive: We need to log to the console if we are starting in a non

Grails 1.2.1 with Spring 3.0.0 dependency problem under Jetty

只谈情不闲聊 提交于 2019-12-23 01:35:07
问题 Just moved to Grails 1.2.1 (used 1.1.1 before). Changed application.properties, ran grails upgrade, fixed BuildConfig and Bootstrap - everything works just fine from grails console. However, getting a problem when deploy packaged war under jetty 6.1.22: 1581 [main] ERROR org.springframework.web.context.ContextLoader - Context initialization failed org.springframework.beans.factory.access.BootstrapException: Error executing bootstraps; nested exception is java.lang.NoSuchMethodError: org

Setting dirAllowed to false in Jetty 8.1.12

吃可爱长大的小学妹 提交于 2019-12-23 01:19:17
问题 I was using Jetty 6.x where we created a spring based Jetty server with dirAllowed set to false. The config is as follows. <bean id="Server" class="org.mortbay.jetty.Server" init-method="start" destroy-method="stop"> <property name="connectors"> <list> <bean id="Connector" class="org.mortbay.jetty.nio.SelectChannelConnector"> <property name="port" value="${tnplportal.jettyServer.httpPort}" /> <property name="headerBufferSize" value="${tnplportal.jettyServer.headerBufferSize}" /> </bean> <

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

纵饮孤独 提交于 2019-12-22 22:21:52
问题 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

WELD-001300 when trying to lookup BeanManager by JNDI

别来无恙 提交于 2019-12-22 17:52:01
问题 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

how to run cxf jax-ws without build-in jetty (use tomcat instead)

眉间皱痕 提交于 2019-12-22 13:59:45
问题 every time when i run with the following inside tomcat, cxf build-in jetty is up and serving the request. <jaxws:endpoint id="wsServer" implementor="a.b.c.ServiceImpl" address="http://localhost:8080/ws"> </jaxws:endpoint> is there any way we have tomcat receiving the request and delegating to cxf? 回答1: UPDATE You can avoid using embedded Jetty by following this article: Use org.apache.cxf.transport.servlet.CXFServlet in your web.xml and don't forget to import META-INF/cxf/cxf-servlet.xml.

Anyway to replace IntelliJ with vim/emacs + commandline?

点点圈 提交于 2019-12-22 13:32:30
问题 I was looking to replace some of the most frequently used settings I have for IntelliJ with vim (or emacs, if needed) & command line tools. I use Auto-import of libraries Deployment of various services in Jetty with debugging (I use breakpoints a lot) Go to declaration, implementation, and tests. JavaLint (?) basically something like PyFlakes for Java which shows warnings, errors in-line I like IntelliJ but have been having a ton of problems with it lately and I miss not being able to use VIM

Anyway to replace IntelliJ with vim/emacs + commandline?

百般思念 提交于 2019-12-22 13:32:18
问题 I was looking to replace some of the most frequently used settings I have for IntelliJ with vim (or emacs, if needed) & command line tools. I use Auto-import of libraries Deployment of various services in Jetty with debugging (I use breakpoints a lot) Go to declaration, implementation, and tests. JavaLint (?) basically something like PyFlakes for Java which shows warnings, errors in-line I like IntelliJ but have been having a ton of problems with it lately and I miss not being able to use VIM

jetty run error for websockets project

[亡魂溺海] 提交于 2019-12-22 11:35:42
问题 I'm trying to get websockets working with jetty. I'm on eclipse. When I try to run it, following error appears on console. java.lang.NoClassDefFoundError: org/objectweb/asm/ClassVisitor I even tried with test.war that is provided with jetty. But error remains same. 回答1: Are you using the Jetty WTP Eclipse plugin to run the server? If so, then try this: http://pipecuts.wordpress.com/2011/01/30/classnotfoundexception-org-objectweb-asm-classvisitor/ It worked for me. 来源: https://stackoverflow

client-certificate authentication on jetty (karaf)

送分小仙女□ 提交于 2019-12-22 11:11:25
问题 I need to do client authentication using certificate on jetty server. I have done this on Tomcat using: <Connector protocol="org.apache.coyote.http11.Http11Protocol" port="8443" maxThreads="200" minSpareThreads="5" enableLookups="true" disableUploadTimeout="true" acceptCount="100" scheme="https" secure="true" SSLEnabled="true" keystoreFile="D:\certificates\certs\server.jks" keystoreType="JKS" keystorePass="password" truststoreFile="D:\certificates\certs\trust_store.jks" truststoreType="JKS"