• 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
  • Paul Clapham
  • Tim Cooke
  • Jeanne Boyarsky
  • Liutauras Vilda
Sheriffs:
  • Frank Carver
  • Henry Wong
  • Ron McLeod
Saloon Keepers:
  • Tim Moores
  • Frits Walraven
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Himai Minh

JBoss - servlets/jsp

 
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Farmers know to never drive a tractor near a honey locust tree. But a tiny ad is okay:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic