jetty

Anyway to replace IntelliJ with vim/emacs + commandline?

☆樱花仙子☆ 提交于 2019-12-06 10:43:47
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. http://eclim.org promises to let you use Eclipse as a headless backend for vim. So you could work

Linux下部署Java项目(jetty作为容器)常用脚本命令

放肆的年华 提交于 2019-12-06 10:28:05
startup.sh #!/bin/bash echo $(basename $(pwd)) "jetty started" cd jetty nohup java -Xmx8g -Xms8g -Xmn4g -XX:PermSize=2g -XX:MaxPermSize=4g -XX:+CMSClassUnloadingEnabled -jar -Dfile.encoding=UTF-8 start.jar --module=http >/dev/null 2>&1 & status.sh #!/bin/bash #close start.jar and debug for pid in `ps aux | grep java | grep -v "grep" | awk '{print $2}'` ; do start_path=`ls -l /proc/${pid}/cwd | awk '{print $11}'` if [[ ${start_path} =~ $(basename $(pwd)) ]] then debug_path=`ps aux | grep -v grep |grep ${pid}|awk '{print $12}'` if [[ ${debug_path} =~ "debug" ]] then echo ${pid} $(basename $(pwd)

azkaban环境搭建

时光怂恿深爱的人放手 提交于 2019-12-06 10:15:14
下载源码:git clone https://github.com/azkaban/azkaban.git 编译源码 ./gradlew distTar cp /root/soft/azkaban/azkaban-*/build/distributions/*.tar.gz /root/soft/azkabatt [root @localhost azkabatt]# cd /root/soft/azkabatt [root @localhost azkabatt]# tar zxvf azkaban-exec-server-3.81.0-1-g304593d.tar.gz [root @localhost azkabatt]# tar zxvf azkaban-web-server-3.81.0-1-g304593d.tar.gz [root @localhost azkabatt]# tar zxvf azkaban-db-3.81.0-1-g304593d.tar.gz 导入表到Mysql数据库 ariaDB [azkaban]> source create-all-sql-3.81.0-1-g304593d.sql [root @localhost azkaban-db-3.81.0-1-g304593d]# mkdir /root/keystore [root

embedding jetty server problems

 ̄綄美尐妖づ 提交于 2019-12-06 10:05:03
问题 I am having some struggles embedding a jetty server into a java app. I am using spring to configure the actual objects and I can build the webapp no problems - but I get this problem when starting up the server... 0 [main] INFO test.Server - Starting server in 'c:/workspace/test/war/' on port 9090 34615 [main] INFO test.Server - Using resource base: src/main/webapp 34615 [main] INFO test.Server - Using descriptor file: src/main/webapp/WEB-INF/web.xml 2011-09-05 12:29:36.961:INFO::Logging to

Nginx 代理到Jetty 页面跳转端口改变问题

荒凉一梦 提交于 2019-12-06 09:54:03
Nginx安装 Windows下部署Nginx只需下载安装包,解压启动服务器即可。下载官网:http://nginx.org/en/download.html 操作Nginx首先进入安装文件夹: 查看版本 Nginx -v 启动服务 start nginx 正常关闭服务 nginx -s quit 强制停止服务 nginx -s stop 重新加载配置文件(重启) nginx -s reload 重新打开日志文件 nginx -s reopen 部署完成后接着就是使用Nginx代理Jetty,Nginx为80端口,Jetty为8080端口,按理访问项目界面不需加端口即可。但是在界面跳转时出现8080端口,很诡异。经过网上查找资料修改一下配置文件即可。 server { listen 80; server_name 域名; proxy_set_header Host $host; proxy_set_header X-Forwarded-Host $host; proxy_set_header X-Forwarded-Server $host; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; location / { proxy_pass http://192.168.xxx.xxx:8080; } } 来源:

Implementing SSO between Jetty9 WebAppContexts

拟墨画扇 提交于 2019-12-06 09:24:49
问题 The Jetty 9 application I am developing automatically scans a set of JarFiles for web.xml, then programmatically imports the contained webapps as WebAppContexts. I need to implement single sign-on between the individual webapps, as explained in the following tutorial for Jetty 6: http://docs.codehaus.org/display/JETTY/Single+Sign+On+-+Jetty+HashSSORealm. Unfortunately, HashSSORealm seems to have been removed from Jetty. Are there any viable alternatives for implementing simple SSO? I did find

jetty server run php code

醉酒当歌 提交于 2019-12-06 08:59:44
问题 I want to configure so that jetty runs PHP files, but have been unsuccessful so far. I have Jetty WTP tools installed in my Eclipse IDE. When I start up the Jetty server. I got the exception: java.lang.ClassNotFoundException org.mortbay.servlet.CGI: org.mortbay.servlet.CGI and javax.servlet.UnavailableException: org.mortbay.servlet.CGI . I put a simple php file(index.php) under my WebContent folder. I also downloaded this library and added it to the classpath(Eclipse: build path and add

Getting Jersey 2.x POJO JSON support to work with Jetty

孤街醉人 提交于 2019-12-06 08:58:04
问题 I'm new RESTful web services and have been playing around with Jersey and Heroku (which uses a Jetty stack). I'm writing a simple REST API which returns a Map<String,String> in JSON for a GET request. I'm however running into a 500 eror. The error message is : HTTP Status 500 - org.glassfish.jersey.message.internal.MessageBodyProviderNotFoundException: MessageBodyWriter not found for media type=application/json, type=class java.util.LinkedHashMap, genericType=java.util.HashMap. Below is the

Jetty Utf8Appendable$NotUtf8Exception on ISO-8859 Request with Spring

人走茶凉 提交于 2019-12-06 08:52:43
问题 A Remote Service calls our Jetty Server with a Request encoded in ISO-8859-15. This special request is mapped on a Spring Controller. Jetty is not able to encode the request in right manner and shows the following exception: exception=org.eclipse.jetty.util.Utf8Appendable$NotUtf8Exception: Not valid UTF8! byte F6 in state 3} org.eclipse.jetty.util.Utf8Appendable$NotUtf8Exception: Not valid UTF8! byte F6 in state 3 at org.eclipse.jetty.util.Utf8Appendable.appendByte(Utf8Appendable.java:168) ~

How to see GWT Jetty devmode from another machine?

让人想犯罪 __ 提交于 2019-12-06 08:40:36
When I fire up Jetty, it gives me the standard URL: http://127.0.0.1:8888/index.jsp?gwt.codesvr=127.0.0.1:9997 Great. I can see this URL from my machine. However, I cannot access this URL from other machine, and replacing the 127.0.0.1 with my actual IP address does not work either. Does anyone know how I can make my server "sharable" so that other people in my network can hit off my machine as well? Try to start the server with -bindAddress option using your external IP. See this . Just follow the following Steps, Right Click on Project Go to run as ---- > Run Configurations Select Arguments