jayashreek <[EMAIL PROTECTED]> wrote:
> Hi all,
>
>     This is the first time I am writing in. Sorry for the lengthy
> explanation.
>     I am currently learning servlets using the Professional Java Server
> Programming by wrox publishing. I have come upto chap. 5 in which a chat
> application is created. To run the application you need to configure the
> servlet engine. They have used LWS. I am using ServletExec Isapi2.2 with
> IIS . Please could you tell me how to adapt the LWS settings for my
> engine. I have tried but it doesn't work.
>
> I require help and urgently.

ServletExec 2.x uses the same format for servlets.properties and
rules.properties as LWS, but if I remember correctly, ServletExec 2.x
doesn't allow you to define multiple servlet contexts. You should be able
to get it running with ServletExec using the default context if you
update servlets.properties and rules.properties as described in the book,
but instead of invoking the main servlet with /chat/chatAdmin, just
use /chatAdmin.

Also note that WROX decided to rename all packages in the source code, but
unfortunately forgot to change the names in the text. The servlets.properties
file must therefore look like this instead:

servlet.chatAdmin.code=com.wrox.context.chat.ChatAdminServlet
servlet.chatAdmin.initArgs=chatprops=<path-to-chat-properties>
servlet.listRooms.code=com.wrox.context.chat.ListRoomsServlet
servlet.chatRoom.code=com.wrox.context.chat.ChatRoomServlet

You also need to create the chat.properties file before you start the
servlet container (ServletExec).

If you still don't get it to work, send me a private mail.

Hans
--
Hans Bergsten           [EMAIL PROTECTED]
Gefion Software         http://www.gefionsoftware.com

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to