Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

need help in chat server project

 
Amit Madan
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear Friends
i have done Chat server poject form java server programing book.
(wrox publication)
i have downloaded codes form site.but when i run it i got two
errors
first
in ChatRoomServlet.java and ListRoomServlet.java

getSession(boolean) in javax.servlet.http.HttpServletRequest cannot
be
applied to ()
HttpSession session=req.getSession();

second
in ChatAdminServlet.java

cannot resolve symbol
symble: method setAttribute(java.lang.String,RoomList)
location: interface javax.servlet.servletContext
getServletContext().setAttribute("roomList",roomList);

i am using jsdk2.0 for it.
Please provide me solution.
thanking you
sincerely
Amit Madan
 
Taqi Hasan
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Use servelet engine 2.1
I am sure your problem will be solved.
If not then contact me at taqihasan@hotmail.com
Regards.
Taqi
 
Amit Madan
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Taqi
i have taken tomcat 3.2 and
i face a problem to run tomcat3.2 server.
after setting JAVA_HOME & TOMCAT_HOME when i run startup.bat file it show me the message that
cannot find file 'c:\jdk1.3;\bin\java (or one of components).
Check to ensure the path and filename are correct and that all requried libraries are avaiable.
please give me the solution of this problem.
Amit Madan
 
anjan bhushan
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
it should be c:\jdk1.3\bin
 
Amit Madan
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello anjan
what you want to say i cant understand.i have also tried to give java_home=c:\jdk1.3\bin but result is same.
Amit
 
Sagar Surana
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello Amit can u give me name of some sites where i can get code for such type od projects
thankx:-)

------------------
Sagar Surana
optimist
 
Frank Carver
Sheriff
Posts: 6920
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Amit, if you look at the error message that you quote, you will see an extra ";" between "c:\jdk1.3" and "\bin\java". This indicates that you have set JAVA_HOME to be "c:\jdk1.3;" rather than the "c:\jdk1.3" which it should be, just as anjan bhushan notes.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic