aspose file tools*
The moose likes JBoss/WildFly and the fly likes How to deploy servelts and jsp in JBoss? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "How to deploy servelts and jsp in JBoss?" Watch "How to deploy servelts and jsp in JBoss?" New topic
Author

How to deploy servelts and jsp in JBoss?

kittu karan
Ranch Hand

Joined: Mar 09, 2008
Posts: 63
HI,
I am kiran.How to run and deploy servlets and jsp programs in jboss? what is deployment folder in jboss?
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 10288
    
168

Create a WAR and place it %JBOSS_HOME%/server/default/deploy folder.


[My Blog] [JavaRanch Journal]
Rajeev R Tumkur
Greenhorn

Joined: Sep 13, 2007
Posts: 17
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'


_ _____________ _ <br />Regards,<br />Rajeev
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 10288
    
168

"Rajeev DR"

Please check your private message for a message from JavaRanch.
Swosti Dipan Pal
Ranch Hand

Joined: Sep 23, 2005
Posts: 70
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


Thanks<br />-Swosti
Nishita Jain
Ranch Hand

Joined: Mar 30, 2006
Posts: 97
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


Nishita
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 10288
    
168

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

Joined: Mar 30, 2006
Posts: 97
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
 
Don't get me started about those stupid light bulbs.
 
subject: How to deploy servelts and jsp in JBoss?