• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Allaire JRun: How to make alias of servlet

 
Ranch Hand
Posts: 191
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,
On Allaire Jrun, How do I define alias for the servlet: Specifically,
1)If my servlet class file (Eg. HelloServlet.class) resides in this directory
c:\Program Files\Allaire\JRun\servers\default\default-app\web-inf\classes, then what should be my fully qualified servlet class name ?
2)What should be my address in the web-browser for running this alias servlet ?
Currently, I run it with this address:
http://localhost:8100/servlet/HelloServlet
I can run with class name, but just don't know how to refer it with an alias name ?
Please help.
Thankyou,
Vishakha
 
Ranch Hand
Posts: 107
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
looking at your install path, I assume that you're using jrun 3.x. Unfortunately I don't use jrun 3.x at home, but from memory, click on 'applications' in the lhs of the jmc. On the right hand side you should see various options, create/deploy/remove application, etc. Choose create an application. Once the application has been created, you should notice, again on the left hand side, that a node has been created for your app. Expand the node, and you should see servlet mappings and another servlet node (servlet xxx?). In the servlet mappings section you should be able to associate a path (e.g. /path) w/ an alias, and in the other section (aliases in jrun 2.3.3) you can establish an alias for a class.
search the pdfs in the docs folder and you will find a ton of information on establishing aliases for servlets (p 110~??) if my post is incoherent.
If you're in fact using jrun 2.3.3 and your install path is just a coincidence, launch the administrator from the system tray (assuming winnt, etc.) and click on the jcp for jse (didn't you mention that you were going to use iis in a different thread, your url looks as if you're still using the jws), and then click service config. You should see servlet mappings and aliases in the first few tabs.
 
Ranch Hand
Posts: 1055
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I would just like to add to (2).
Suppose you have:
class = HelloServlet
name or alias = hi
mapping = /hello
To access the HelloServlet, you can use
http://localhost:8100/hello
http://localhost:8100/servlet/hi
http://localhost:8100/servlet/HelloServlet
All URLs are equivalent.
-anthony
 
Anthony Villanueva
Ranch Hand
Posts: 1055
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
JRun 4.0 is available here.
-anthony
 
reply
    Bookmark Topic Watch Topic
  • New Topic