Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: Java command
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 19-Nov-12 15:49pm
Edited 20-Nov-12 16:09pm
v3

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

Jetty Documentation[^]
 
You need to decide: Jetty or Tomcat. You can't have both. What do you want to do with them?
  Permalink  
Comments
muralitau at 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. at 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 at 21-Nov-12 2:48am
   
they need configure jetty runner , how can i configure jetty runner in eclipse..
TorstenH. at 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)

  Print Answers RSS
0 OriginalGriff 475
1 Maciej Los 349
2 Richard MacCutchan 220
3 BillWoodruff 219
4 Mathew Soji 160
0 OriginalGriff 8,759
1 Sergey Alexandrovich Kryukov 7,407
2 DamithSL 5,639
3 Maciej Los 5,269
4 Manas Bhardwaj 4,986


Advertise | Privacy | Mobile
Web02 | 2.8.1411028.1 | Last Updated 20 Nov 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100