File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JBoss/WildFly and the fly likes JBoss - servlets/jsp Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "JBoss - servlets/jsp" Watch "JBoss - servlets/jsp" New topic
Author

JBoss - servlets/jsp

shishir gupta
Greenhorn

Joined: Apr 30, 2004
Posts: 28
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

Joined: Mar 18, 2003
Posts: 57
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

Joined: Apr 30, 2004
Posts: 28
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

Joined: Mar 18, 2003
Posts: 57
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

Joined: Apr 30, 2004
Posts: 28
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JBoss - servlets/jsp