Click here to Skip to main content
15,885,944 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more:
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 ......
Posted
Updated 20-Nov-12 15:09pm
v3

1 solution

Jetty Documentation[^]

You need to decide: Jetty or Tomcat. You can't have both. What do you want to do with them?
 
Share this answer
 
Comments
muralitau 20-Nov-12 21:06pm    
i need jetty only , because i need execute war file , so how can i run war file in command prompt , i use this command
D:\> java -jar c:\Jetty-runner.jar --port 8080 C:\firstsample.war
but
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 ......
TorstenH. 21-Nov-12 1:59am    
you normally put your war-file onto the app server and start the server. It will automatically use the war file.
Please read the documentation - you will get into that by clicking on your version on the red (kind of) bar on top of the linked page.
muralitau 21-Nov-12 2:48am    
they need configure jetty runner , how can i configure jetty runner in eclipse..
TorstenH. 21-Nov-12 4:31am    
let's keep it here.
Jetty Runner tutorial
It should be enough to use a simple Jetty.

Do you want to use it local or web based?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900