File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to deploy servelts and jsp in JBoss?

 
kittu karan
Ranch Hand
Posts: 63
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HI,
I am kiran.How to run and deploy servlets and jsp programs in jboss? what is deployment folder in jboss?
 
Jaikiran Pai
Marshal
Pie
Posts: 10444
227
IntelliJ IDE Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Create a WAR and place it %JBOSS_HOME%/server/default/deploy folder.
 
Rajeev R Tumkur
Greenhorn
Posts: 17
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's better to use Eclipse with JBoss. Then it's easy for you to start with servlets & JSP.
1. Create an entry for JBoss 4.2.2 server.
2. Create new dynamic web project.
3. Create servlet/ jsp
4. Right click on project. Run as 'Run on Server'
 
Jaikiran Pai
Marshal
Pie
Posts: 10444
227
IntelliJ IDE Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"Rajeev DR"

Please check your private message for a message from JavaRanch.
 
Swosti Dipan Pal
Ranch Hand
Posts: 70
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you haven't installed eclipse then, you can follow the following approach.

1. Go to the directory where you have installed you JBoss.
2.Then go to \server\default\deploy and put your WAR there.

If this doesn't work, then please provide your working environment details and I will be able to reply you accordingly.

Thanks
 
Nishita Jain
Ranch Hand
Posts: 97
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
Even I am facing difficulty in deploying war file..
war structure is like this.



I have printed hi on index jsp.
but its giving me error like this
java.io.FileNotFoundException:

I dont understand what is the problem.

Thanks in advance
Nishita
 
Jaikiran Pai
Marshal
Pie
Posts: 10444
227
IntelliJ IDE Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Caused by: java.io.FileNotFoundException: D:\jboss-4.2.0.GA\server\default\tmp\deploy\tmp2203h-exp.war\D:\workspace\h\.classpath


Probably, the war is not packaged correctly. What does



output?
 
Nishita Jain
Ranch Hand
Posts: 97
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
Thanks for help.
But this error is solved.
I just made war file using ant (before taht I was making war from command prompt )and it worked..
I dont know how but it worked.


Thanks,
Nishita
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic