• 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

need help in chat server project

 
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
it should be c:\jdk1.3\bin
 
Amit Madan
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Sheriff
Posts: 7001
6
Eclipse IDE Python C++ Debian Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Are you here to take over the surface world? Because this tiny ad will stop you!
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic