• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

about JBoss

 
Ranch Hand
Posts: 5575
Eclipse IDE Windows XP Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

i am newbie to jboss4.2. how to change server port number and also how to deploy war file into jboss

i studied from google also,but still i want more information.

please explain me
 
Ranch Hand
Posts: 2908
1
Spring Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi,

some day back, I asked the same question and they gave me this link !

and regarding your question , you can change this file (same as tomcat server.xml) server\default\deploy\jboss-web.deployer\server.xml for the port

and

put your .war file in this directory , server\default\deploy, It deployed by JBoss, observe the console ! I`m using JBoss 4.2.2
 
Seetharaman Venkatasamy
Ranch Hand
Posts: 5575
Eclipse IDE Windows XP Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi Sagar,

Thanks, now i deploy and i can run the war.

in tomcat, we put war under webapp then after starting the folder structure of war will come...but i can not find in jbosss...where can i find that?
 
Sagar Rohankar
Ranch Hand
Posts: 2908
1
Spring Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I`m just a week older than you in using JBoss and thing is that , the JBoss is deployed it without extracting it to a "folder" . It ll work whenever you start the jBoss!

The same question I Have (about extracted folder) .May be we hav to look deeper into JBoss wiki !!
 
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You both are looking for this?
 
Sagar Rohankar
Ranch Hand
Posts: 2908
1
Spring Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
ohhh, Thanks Jaikiran !
 
Seetharaman Venkatasamy
Ranch Hand
Posts: 5575
Eclipse IDE Windows XP Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Sagar Rohankar:
ohhh, Thanks Jaikiran !



i can not understand.

can you explain?
 
Sagar Rohankar
Ranch Hand
Posts: 2908
1
Spring Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I thank Jikiran for pointing me to solution , the link he had given !
 
Seetharaman Venkatasamy
Ranch Hand
Posts: 5575
Eclipse IDE Windows XP Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Sagar Rohankar:
I thank Jikiran for pointing me to solution , the link he had given !




hi,, i read the link..i can not understand the link...

can you explain?
 
Sagar Rohankar
Ranch Hand
Posts: 2908
1
Spring Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
link says that, either you can paste the war file as it is OR you post the exploded form of war , Exploded means just unzipped the war and paste the folder in deply directory , The advantage of using exploded form is you can change the web apps resources on the fly , like JSPs !!

If there is other than this , then I failed to understand !
 
Seetharaman Venkatasamy
Ranch Hand
Posts: 5575
Eclipse IDE Windows XP Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks a lot Sagar Rohankar
 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all!

In JBoss all packaged deployments (war,ear,rar,sar files etc) are extracted to a temporary folder when they are deployed.
Look at the folder JBOSS_HOME/server/default/tmp/deploy
The folders created for the extracted archives are given names such as "tmpXXXXXarchivename.ext" (your yourapp.war file may be extracted to a folder named "tmp23623yourapp.war")

What happens when you redeploy (i.e copies a new version of yourapp.war to the "deploy" folder) is that this also gets extracted to the temp deploy folder but under a different name. This means that you may find more than one folder under tmp/deploy for your application.

The tmp/deploy folder is always emptied during startup, so it is now point in making alterations to any of the files stored there.

With "exploded deployment" JBoss will not create any temporary files but will load the files directly from the "server/servername/deploy" folder.
 
Sagar Rohankar
Ranch Hand
Posts: 2908
1
Spring Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Sondre, crystal clear now ,
 
Always look on the bright side of life. At least this ad is really tiny:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic