Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_java_server thread: Providing instructions on Running Chapter 5's Chat example


Message #1 by "Craig Berry" <craigb@w...> on Wed, 13 Sep 2000 11:08:55 +0100
I mean what version (2.5???) because in it you must setup separate
application servers which means that instead of
http://localhost:8080/servlet/ChatAdminServlet
it needs to be
http://localhost:8080/servlet/?????/ChatAdminServlet
where ????? is the alias or name for the application server directory.
----- Original Message -----
From: "Shriniwas Keskar" <SKeskar@w...>
To: "Java Server" <pro_java_server@p...>
Sent: Wednesday, September 20, 2000 9:33 AM
Subject: RE: Providing instructions on Running Chapter 5's Chat example


> Default host of JRun is 8000. Try that. But what are the properties files
> here in JRun?
>
> Shrini
>
> -----Original Message-----
> From: Mario Brenes [mailto:m2b@m...]
> Sent: Wednesday, September 20, 2000 9:09 AM
> To: Java Server
> Subject: Re: Providing instructions on Running Chapter 5's Chat example
>
>
> What version of JRUN are you running?
> ----- Original Message -----
> From: "Van Minh Kieu" <minh@m...>
> To: "Java Server" <pro_java_server@p...>
> Sent: Wednesday, September 20, 2000 4:24 AM
> Subject: Re: Providing instructions on Running Chapter 5's Chat example
>
>
> > Help Please,
> >
> > I manage to setup & compile the Servlet sources code, no error. But I do
> not
> > know how to access it. e.g.
http://localhost:8080/servlet/ChatAdminServlet
> > gives error below.
> >
> > 1. It there something I miss ? does it required Applet-Servlet
> Communication
> > ?
> > /servlet/ChatAdminServlet:
> >
> > javax.servlet.ServletException: ChatAdminServlet (wrong name:
> > com/wrox/context/chat/ChatAdminServlet)
> > java.lang.NoClassDefFoundError: ChatAdminServlet (wrong name:
> > com/wrox/context/chat/ChatAdminServlet)
> > at java.lang.ClassLoader.defineClass0(Native Method)
> > at java.lang.ClassLoader.defineClass(Unknown Source)
> > at java.lang.ClassLoader.defineClass(Unknown Source)
> > at
> >
> allaire.jrun.servlet.JRunServletLoader.loadClass(JRunServletLoader.java:52
5)
> > at
> >
>
allaire.jrun.servlet.JRunServletLoader.loadClass(JRunServletLoader.java:444)
> > at java.lang.ClassLoader.loadClass(Unknown Source)
> > at
> >
>
allaire.jrun.servlet.JRunServletLoader.loadServletInstance(JRunServletLoader
> > .java:227)
> > at
> >
>
allaire.jrun.servlet.JRunServletLoader.loadServletInstance(JRunServletLoader
> > .java:190)
> > at
> >
>
allaire.jrun.servlet.JRunServletLoader.loadServlet(JRunServletLoader.java:17
> > 7)
> > at allaire.jrun.servlet.JRunSE.getServletReference(JRunSE.java:1261)
> > at allaire.jrun.servlet.JRunSE.getNamedDispatcher(JRunSE.java:1531)
> > at allaire.jrun.servlet.Invoker.service(Invoker.java:64)
> > at allaire.jrun.servlet.JRunSE.service(JRunSE.java:1013)
> > at allaire.jrun.servlet.JRunSE.runServlet(JRunSE.java:925)
> > at
> >
>
allaire.jrun.servlet.JRunRequestDispatcher.forward(JRunRequestDispatcher.jav
> > a:88)
> > at allaire.jrun.servlet.JRunSE.service(JRunSE.java:1131)
> > at allaire.jrun.servlet.JvmContext.dispatch(JvmContext.java:330)
> > at allaire.jrun.http.WebEndpoint.run(WebEndpoint.java:107)
> > at allaire.jrun.ThreadPool.run(ThreadPool.java:267)
> > at allaire.jrun.WorkerThread.run(WorkerThread.java:74)
> >
> > 2. I then move all the servlet source files & remove the package name
then
> > recompile and now I get this results
> > 500 Internal Server Error
> > ChatAdminServlet: No such servlet
> > Can anyone give me more help on the this ?
> >
> > Cheers,
> >
> >
> > ----- Original Message -----
> > From: "Shriniwas Keskar" <SKeskar@w...>
> > To: "Java Server" <pro_java_server@p...>
> > Sent: Thursday, September 14, 2000 5:13 PM
> > Subject: RE: Providing instructions on Running Chapter 5's Chat example
> >
> >
> > > I would also like to be able to run this chapter 5 example in JRun. I
am
> > not
> > > able to find the properties file which will do the similar job as LWS
> file
> > > server.properties. Where do I define the servlet contexts? Also I did
> not
> > > really understand what is servlet context after all in the programming
> > > terms. How the context class is able to retain the state and hold the
> > > connection?
> > > Please let me know if anyone can.
> > >
> > > thanks
> > >
> > > Shrini
> > >
> > > -----Original Message-----
> > > From: kim [mailto:lekim@b...]
> > > Sent: Thursday, September 14, 2000 1:47 AM
> > > To: Java Server
> > > Subject: Re: Providing instructions on Running Chapter 5's Chat
example
> > >
> > >
> > > Hi Craig,
> > >
> > > I read your earlier message on running chatroom on LWS (posted on Wed,
> 26
> > > Apr 2000). In step 3, you stated that you created a directory
> > > "chatapp/com/wrox/context/chat". Unless you made an error here, this
is
> > > not going to work. Because the package com.wrox.context.chat should be
> in
> > > the classes directory.( like chatapp/classes/ )
> > >
> > > Can you verify it and give us the correct version of your protocole?
> > >
> > > TIA
> > >
> > >
> > > ---
> > > Do you know what you want from this list? How would you provide
> > programmers
> > > with the solutions they need? If you have the answers, and are willing
> to
> > > work in Birmingham (UK), then you could be a List Manager. Please send
> CVs
> > > and a covering letter to listsupport@p... for further
> information.
> > skeskar@w...
> > > $subst('Email.Unsub')
> > >
> > > ---
> > > Do you know what you want from this list? How would you provide
> > programmers with the solutions they need? If you have the answers, and
are
> > willing to work in Birmingham (UK), then you could be a List Manager.
> Please
> > send CVs and a covering letter to listsupport@p... for further
> > information.
> > minh@m...
> > $subst('Email.Unsub')
> > >
> >
> >
> > ---
> > Do you know what you want from this list? How would you provide
> programmers with the solutions they need? If you have the answers, and are
> willing to work in Birmingham (UK), then you could be a List Manager.
Please
> send CVs and a covering letter to listsupport@p... for further
> information.
> $subst('Email.Unsub')
>
>
> ---
> Do you know what you want from this list? How would you provide
programmers
> with the solutions they need? If you have the answers, and are willing to
> work in Birmingham (UK), then you could be a List Manager. Please send CVs
> and a covering letter to listsupport@p... for further information.
skeskar@w...
> $subst('Email.Unsub')
>
> ---
> Do you know what you want from this list? How would you provide
programmers with the solutions they need? If you have the answers, and are
willing to work in Birmingham (UK), then you could be a List Manager. Please
send CVs and a covering letter to listsupport@p... for further
information.
$subst('Email.Unsub')


  Return to Index