Sagar Sharma

Ranch Hand
+ Follow
since Aug 31, 2000
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Sagar Sharma

Hi,
I wanted to know whether I could develop J2ME programs and run them on a Nokia 9210 communicator. If so then what is the process of porting the KVM to the phone and running my programs on it???
Pls respond ASAP.
Thanks
Sagar
23 years ago
PLS REPLY URGENTLY!!!
23 years ago
Pls reply urgently!!!
Sagar
23 years ago
Hi,
I am using RMI over IIOP ina commercial project and I am using tnameserv as the naming server as usual.
Is it allright to use this in a commercial application. I may have upto 100 concurrent users making method calls on the RMI server. Will the server handle this efficiently!!!
Please do reply back urgently.
Regards
Sagar
23 years ago
Dear all,
Thanks for your response but as suggested by David I alwaiys start the server with the -D java.rmi.codebase property which holds the URL where my Stub is.
Yet now if I remove the RemoteInterface from the directory where my client is (on a separate machine) I am not able to compile the client and it still gives me an error in the line where I cast the remote reference to the RemoteInterface. It says "class 'remoteinterface not found' ".
Please throw some more light o this as I also believe that the remote interface should not be present with the client and should be reference remotely through the stub but my client fails to compile if I dont include it in the Client's directory.
Pls reply to me urgently!!!
Sagar
23 years ago
Hi all,
Pls do let me know if there are any ways to reduce the time for an RMI -IIOP call. Are there any methods following which I could reduce the response time of the remote method call. In my application the RMIClient takes a lot of time in Initializing the Context.
Thanks and Regards

Sagar Sharma
23 years ago
dear all,

i am have deployed a servlet called "Transaction_Servlet" in the weblogic/myserver/servletclasses directory and also included this path in the classpath.
I also have several servlets running under this directoru so i think that all configurations are correct.
I am getting this peculiar exception thrown when I try to invoke the above mentioned servlet through an html page.
I am trying to access the database through this servlet. The database connection is working fine on the network.
Pls help me urgently

please do let me know as to what does this error specify and what does it means.
Tue Mar 06 12:53:24 GMT+05:30 2001:<I> <WebLogicServer> WebLogic Server started
Tue Mar 06 12:53:38 GMT+05:30 2001:<I> <ListenThread> Adding address: sagar_serv
er/192.168.1.74 to licensed client list
Tue Mar 06 12:53:38 GMT+05:30 2001:<I> <NT Performance Pack> Allocating: '2' NT
reader threads
Tue Mar 06 12:53:40 GMT+05:30 2001:<I> <ServletContext-General> file: init
Tue Mar 06 12:53:40 GMT+05:30 2001:<E> <ServletContext-General> Servlet failed w
ith Exception
java.net.SocketException: socket write error (code=10053)
at java.net.SocketOutputStream.socketWrite(Native Method)
at java.net.SocketOutputStream.write(SocketOutputStream.java:87)
at weblogic.servlet.internal.ChunkUtils.writeChunks(ChunkUtils.java, Com
piled Code)
at weblogic.servlet.internal.ServletOutputStreamImpl.flush(ServletOutput
StreamImpl.java:121)
at weblogic.servlet.internal.ServletOutputStreamImpl.writeStream(Servlet
OutputStreamImpl.java, Compiled Code)
at weblogic.servlet.FileServlet.sendFile(FileServlet.java:199)
at weblogic.servlet.FileServlet.service(FileServlet.java:56)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:105)
at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletCon
textImpl.java:742)
at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletCon
textImpl.java:686)
at weblogic.servlet.internal.ServletContextManager.invokeServlet(Servlet
ContextManager.java:247)
at weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.jav
a:361)
at weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:261)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java, Compiled Code)
Tue Mar 06 12:53:55 GMT+05:30 2001:<E> <ServletContext-General> Error loading se
rvlet: Transaction_Servlet
java.lang.NoClassDefFoundError: com/brokat/twister/toolkit/accessor/TTAccessorWr
apper
at java.lang.ClassLoader.resolveClass0(Native Method)
at java.lang.ClassLoader.resolveClass(ClassLoader.java:545)
at weblogic.utils.classloaders.GenericClassLoader.reallyLoadClass(Generi
cClassLoader.java, Compiled Code)
at weblogic.utils.classloaders.RecursiveReloadOnModifyClassLoader$Slave.
loadClass(RecursiveReloadOnModifyClassLoader.java:234)
at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClass
Loader.java:146)
at weblogic.utils.classloaders.RecursiveReloadOnModifyClassLoader.findLo
calClass(RecursiveReloadOnModifyClassLoader.java:109)
at weblogic.utils.classloaders.GenericClassLoader.reallyLoadClass(Generi
cClassLoader.java, Compiled Code)
at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClass
Loader.java:172)
at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClass
Loader.java:146)
at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubI
mpl.java:291)
at weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.
java:164)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:99)
at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletCon
textImpl.java:742)
at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletCon
textImpl.java:686)
at weblogic.servlet.internal.ServletContextManager.invokeServlet(Servlet
ContextManager.java:247)
at weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.jav
a:361)
at weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:261)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java, Compiled Code)
Tue Mar 06 12:53:55 GMT+05:30 2001:<E> <ServletContext-General> Servlet failed w
ith Exception
javax.servlet.ServletException: Servlet class: Transaction_Servlet could not be
resolved - a class upon which this class depends wasn't found
at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubI
mpl.java:305)
at weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.
java:164)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:99)
at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletCon
textImpl.java:742)
at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletCon
textImpl.java:686)
at weblogic.servlet.internal.ServletContextManager.invokeServlet(Servlet
ContextManager.java:247)
at weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.jav
a:361)
at weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:261)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java, Compiled Code)

Cheers

Sagar
23 years ago
u r not getting the stub from the remote server...check if u have already got the stub with ur client or not ...
sagar
23 years ago
Hi,
I have tried removing the Remote Interface from the client machine but the code did not compile giving me the error "myInterface class not found" in the line when i cast to it using PortableRemoteObject.
Pls help if I am wrong somewhere.
I have bounded the remote object as ;
MyImplementation abc=new MyImplementation()
also i am casting in the following way;
MyInterface xyz=(MyInterface)PortableRemoteOPbject.narrow(objref,MyInterface.class);
Please e know as to why am i not able to compile the Client without having the remote interface on its side.
Thanks and Regards

Sagar
23 years ago
hi,
In my rmi-iiop call to a remote server I have placed the stb class and the Remote interface class along with the client and I am able to complete the call successfully.
my question is that do I really need to place the remote interface with the client and Stb classes.
If I try to remove the remote interface from the client directory then it gives me an error saying that "Remote Interface is not found.
I thought that the remote interface need not be with the client and the stb class.
please clarufy on this if I am wrong i.e. do i really need the remote interface with the client in order to make the rmi-iiop call.
Thanks and regards
sagar

23 years ago
Hi,
I have compiled the servlet and it is in the package "stocktr".
I have made the following changes to the weblogic.properties file:
weblogic.httpd.register.UserRegistration_Servlet=stocktr.UserRegistration_Servlet
And I have placed the servlet in the directory: E:/weblogic/myserver/servletclasses/stocktr/UserRegistration_Servlet.class
The HTML page which is calling the servlet is in the directory : ../public_html/reg.html
The ACTION tag has the following attribute : "stocktr.UserRegistration_Servlet"
I am getting Error 404 when i press the submit button.
Please let me know where am i wrong and what do i need to do urgently.
Thanks

Sagar
23 years ago
How do i compile my ejb from the command prompt?
Please help me

sagar