社区
其他技术讨论专区
帖子详情
AutoBindRoutes: Controller在jar里时候,使用jetty:run时不能注册
weixin_38058748
2014-11-25 10:51:13
@绝望的八皮 你好,想跟你请教个问题: webapp项目里依赖一个jar包,在这个jar包里有controller的定义,当使用mvn jetty:run时,不能找到controller,因为jfinal-ext是在src\main\webapp\WEB-INF\lib下面搜索的,和在target\classes下面搜索的。 对这种情况,不知有什么好的解决方案? 谢谢!
...全文
18
7
打赏
收藏
AutoBindRoutes: Controller在jar里时候,使用jetty:run时不能注册
@绝望的八皮 你好,想跟你请教个问题: webapp项目里依赖一个jar包,在这个jar包里有controller的定义,当使用mvn jetty:run时,不能找到controller,因为jfinal-ext是在src\main\webapp\WEB-INF\lib下面搜索的,和在target\classes下面搜索的。 对这种情况,不知有什么好的解决方案? 谢谢!
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用AI写文章
7 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
Comet Reverse Ajax
EXAMPLE CODE FOR "Comet & Reverse Ajax" by Crane & McCarthy, FirstPress 2008 GENERAL SETUP The examples presented here use Groovy on Grails, a Java-based web technology stack. More details at http://grails.org. To get up and
run
ning: 0. Install Java on tyour machine if you need to. You'll need the JDK, not just the
run
time (JRE). 1. download and install Grails for your platform. The most recent version of Grails at time of writing is 1.0.3, which uses
Jetty
6.1.7 internally. The
Jetty
cometd examples require
Jetty
6.1.11 or higher, so... 2. Download a recent version of
Jetty
(e.g. 6.1.11) and replace the
Jetty
jar
files in your grails installation. The files that I modified were: -
jetty
-6.1.x.
jar
-
jetty
-naming-6.1.x.
jar
-
jetty
-plus-6.1.x.
jar
-
jetty
-util-6.1.x.
jar
3. Unzip the source folder into a directory. There are two Grails projects in here: CHAPTERS 1-3 are covered by the Grails application 'magpoetry1'. Go into that directory in a command prompt, and issue the command 'grails
run
-app' to get started, then navigate to http://localhost:8080/magpoetry1/ to view the application. Javascripts, GSPs and Groovy
controller
code can all be edited live while the server is
run
ning. CHAPTERS 6-7 are covered by the Grails application 'cometd', which can be
run
in a similar fashion.
2小
时
学会springboot源码
2小
时
学会springboot
jetty
启动报错: java.net.
Bind
Exception: Address already in use
安装
jetty
后,
使用
下面的命名启动
jetty
:java -
jar
start.
jar
在启动
jetty
时
,程序一致在报错,其中错误日志如下所示:java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.Nati...
Caused by: java.lang.ClassNotFoundException: org.eclipse.
jetty
.continuation.ContinuationThrowable
1、错误描述2017-03-14 10:43:02.328:INFO:oejs.Server:
jetty
-8.1.21.v20160908 2017-03-14 10:43:02.951:WARN:oejw.WebAppContext:Failed startup of context o.e.j.w.WebAppContext{/,file:/F:/workspace/TYIF/src/main
SpringBoot学习(四):内嵌Servlet引擎(Tomcat,
Jetty
等)的实现原理
概述 SpringBoot
使用
main方法启动的一个重要特性是,不需要打包成war部署到Tomcat这种Servlet容器中,而是只需打包成
jar
,然后通过java或mvn等命令运行这个
jar
包,然后应用就可以在指定的端口监听客户端的连接请求了。 在SpringBoot内部主要是引用了embedded的Tomcat或
Jetty
等作为Servlet引擎,由该Servlet引擎负责接收Web请求并交给应用处理和生成响应,从而可以将应用打包成
jar
,直接在命令行启动,以独立进程的方式运行,无需依赖Tom.
其他技术讨论专区
476
社区成员
790,963
社区内容
发帖
与我相关
我的任务
其他技术讨论专区
其他技术讨论专区
复制链接
扫一扫
分享
社区描述
其他技术讨论专区
其他
技术论坛(原bbs)
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章