Any Professional can help me(Prom in rmic)

i have prob compiling my servlet server using rmic...
actually i have one inface DaytimeServer below
import java.util.Date;
import java.rmi.Remote;
import java.rmi.RemoteException;
public interface DaytimeServer extends Remote
public Date getDate() throws RemoteException;
and i am implements this interface to class DaytimeServlet.java
below
import java.io.*;
import java.net.*;
import java.util.*;
import javax.servlet.*;
import javax.servlet.http.*;
import com.oreilly.servlet.RemoteHttpServlet;
public class DaytimeServlet extends RemoteHttpServlet implements DaytimeServer{
public Date getDate()
return new Date();
public void init(ServletConfig config)throws ServletException
super.init(config);
public void doGet(HttpServletRequest req,HttpServletResponse res) throws ServletException,IOException
if("object".equals(req.getParameter("format")))
ObjectOutputStream out=new ObjectOutputStream(res.getOutputStream());
out.writeObject(getDate());
else
PrintWriter out=res.getWriter();
out.println(getDate().toString());
public void doPost(HttpServletRequest req,HttpServletResponse res)throws ServletException,IOException
doGet(req,res);
public void destroy()
super.destroy();
i have compile this file using
"javac DaytimeServlet.java"
i get a class file....
now i am creating Stub and Skeleting using Daytimeservlet class using rmic like
""rmic DaytimeServlet"
but here problem occur......
i am getting Skeleten java file but during Stub i am getting error.....i am not able to get problem....bcoz these file ie creating by rmic compiler.....
Getting error during Stub class like "line no 98 required identifier , not {"
like this ....
i am using linux System....
anybody can help me why i am getting this problem....
why i am not able to get Stub file..
Please help
it urgent

thanx for reply
actually my concept is as..........
i have one remote servle program......and one client servlet program...
i want to access remote servlet methos to client servlet program....
in above program......i am trying to creater stub and skeleton classes of remote servlet class......
thats why i am using "rmic with servlet"
now u just tell me is it possible ya its possible....
or give some other clue....
its very urgent.....
ple reply me

Similar Messages

Maybe you are looking for

  • How can I back up files onto an external if my hard disk can't be verified?

    Hi all, My Macbook Pro (2010) hangs up at the grey startup screen. The icon keeps spinning. I believe this may be because the laptop ran out of power during critical software updates. I have been able to reach disk utility by starting up with the ori

  • From Photoshop Album 1.0 to PSE 7.0 ??

    I'm finally getting around to upgrading my laptop and now need to get my extensive tagged library of images (over 10,000) from Photoshop Album 1.0 (running on XP) to Photoshop Elements 7.0 (on Vista). I need to maintain all the tags! What can I do to

  • Close spool request

    Hi, I have one program, that calls transaction code CIP2. When I run in backgound, it creates spool request but with 0 pages. And have the message: ERROR => missing close of spool request [rspoooh.c    1173] If I run this program without background a

  • Paragraphs of text in credits...

    I want to have several paragraphs for a thank you message in the credits section of my movie. Apart from Far Far Away, I can't find anything that suits blocks of text. Ideally I would like to use Scrolling but in the short time I experimented with it

  • My battery is not charging but from About This Mac the battery seems good condition. HOW?

    My battery is not charging but from About This Mac the battery seems good condition. I had tried resetting smc but not working too. What can I do? Please help. Battery Information:   Model Information:   Serial Number:          W0017PM0LBX0A   Manufa