• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JBoss - servlets/jsp

 
shishir gupta
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am new to JBoss. I have installed JBoss 3.2.1. I want to run my servlets and jsp in JBoss. please guide me how to do it. I mean is there any classpath to be set? It's urgent. pl help me. I have read the documentation but unable to solve the problem. I know where to place my servlets and jsp (ie.in server/default/deploy/myfolder.war).
Regards
shishir
 
emm raha
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Shishir:
Could you post the error messages you're getting. Also, have you tested your install by placing a simple standalone jsp in its own folder? Or deployed a known working (downloaded) WAR file? It is unclear whether the problem is (a) with your install (b) with your syntax/files (c) with some backend piece your jsp/servlet files are interacting with.
Thanks.
 
shishir gupta
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How to deploy servlets in JBoss3.2.3? I am able to deply my jsp. The directory structure which i am following is as follows:
server/default/deploy/mydir.war/WEB-INF/classes.
in classes folder i save my servlets.
In order to run jsp :
http://localhost:8080/mydir/myjsp
it works fine.
when i try to run my servlets:
http://localhost:8080/mydir/myservlet
or
http://localhost:8080/mydir/servlet/myservlet
it gives status 404 the requested resource is not available error.
I have configured jboss-web.xml
<jboss-web>
<context-root>/</context-root>
</jboss-web>
Kindly let me know how to deply my servlets?
 
emm raha
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Potential problem causers:
Have you also configured web.xml with <servlet>...</servlet> & <servlet-mapping>...</servlet-mapping>?
Also (I'm sure this is the case) but I'm assuming your compiled servlets are in the classes directory?
Aside:
I'm a JBoss novice myself, and have found Tomcat easier to configure for JSP/servlet deployment. If you're not using EJBs, have you considered using that instead?
 
shishir gupta
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yes, i have configured web.xml and my compiled servlets are in classes directory too. i have tried my hand on tomcat and can easily deploy jsp and servlets in it. but as i have to learn to deploy ejb's i have to learn jboss.
thanks
shishir
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic