本文介绍了ActiveWeb Web应用程序无法在Jetty下运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了示例Web应用程序,将其打包到WAR中,然后放入webapps中夹入码头.而且它不起作用.

I have created sample web application, packaged it into WAR, then put it into webapps folder into jetty. And it does not work.

证明,从上到下的窗口:

Proof, windows from top to bottom:

1)GreetingController.java

2)编译后的文件位于WAR文件内的适当位置

2) The compiled file is present inside WAR file in appropriate place

3)Web应用程序正在运行,可以识别其名称(显示文件夹内容)

3) The web application is working, it's name is recognized (folder content displayed)

4)控制器不起作用,其名称无法识别

4) Controller is not working and it's name is not recognized

还有什么要检查的?

更新

我的WAR文件: https://www.sendspace.com/file/mb94jt

推荐答案

我认为您的应用程序中缺少某些内容.您所引用的页面仅是帮助理解框架如何工作的指南.有关完整的简单示例,请参阅:

I think you are missing something in your app. The page you are referring is just a guide to help understand how the framework works. For complete simple examples, please refer to:

  • https://github.com/javalite/activeweb-bootstrap - this is a simple app with Bootstrap and no database support
  • https://github.com/javalite/activeweb-lessc - simple app without database, but with Less instead of CSS
  • https://github.com/javalite/activeweb-simple - simple ActiveWeb + ActiveJDBC webapp (CRUD)

这是入门"页面: http://javalite.io/getting_started_activeweb

希望有帮助

这篇关于ActiveWeb Web应用程序无法在Jetty下运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-22 20:21