如何在命令提示符下使用jetty-runner执行war文件 [英] how to execute war file using jetty-runner in command prompt

查看:101
本文介绍了如何在命令提示符下使用jetty-runner执行war文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在将Java类文件转换为War文件,因此我想通过命令提示符执行war文件.谁能向我建议如何通过命令提示符成功运行.

当我在Eclipse控制台中显示以下错误时,通过命令提示符运行.

D:\> java -jar c:\ Jetty-runner.jar --port 8080 C:\ firstsample.war
现在正在部署我的war文件,但它将出现以下错误:-如果您的Web应用程序需要一个Transacation管理器,请找到一个,请配置一个,我遇到了这种类型错误......

I am converting java class file as War File , So I want to execute war file via command prompt . can any one suggest to me how i can run successfully through command prompt.

When I Have run through command prompt below Error showing in my Eclipse Console .

D:\> java -jar c:\Jetty-runner.jar --port 8080 C:\firstsample.war
now deploying my war file, but it will error like-- no Transacation manager found if your webapp require one , please configure one , this type error i faced ......

推荐答案

码头文档 [
Jetty Documentation[^]

You need to decide: Jetty or Tomcat. You can''t have both. What do you want to do with them?


这篇关于如何在命令提示符下使用jetty-runner执行war文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆