How can I create a war or ear file from class of java and deploy it to JBOSS 5.1.0.GA

New to IntelliJ, I am wondering, How can I create a war or ear file from class of java and deploy it to JBOSS. I have created the jar file using JAR command and getting message

C:\jboss-5.1.0.GA\bin\run.bat -c default
Calling C:\jboss-5.1.0.GA\bin\run.conf.bat
[2013-02-20 11:01:27,839] Artifact calculator-manager:jar: Server is not connected. Press 'Deploy' to start deployment.
Files was unexpected at this time.

1 comment

Please sign in to leave a comment.