User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the JSP section within the Web Development category of DaniWeb, a massive community of 426,483 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,171 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our JSP advertiser: Lunarpages JSP Web Hosting
Views: 463 | Replies: 2
Reply
Join Date: May 2007
Posts: 3
Reputation: afflictedd2 is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
afflictedd2 afflictedd2 is offline Offline
Newbie Poster

Remotely Invoked Methods and JSP

  #1  
May 6th, 2008
Hi everyone,

I've been trying to use an RMI Service from a JSP page, but whenever I try it I get an error of not finding the object. I've started the rmiregistry service, and the Services Implementations registers it, and when I run a class client I have for it, it works well. but when I try a JSP page I get the following error:
http://img152.imageshack.us/img152/9882/87198913ca2.jpg

The code is the zip I include in the attachment.

Thanks you.

John
Last edited by afflictedd2 : May 6th, 2008 at 12:38 am.
Attached Files
File Type: zip MyRemote.zip (4.6 KB, 1 views)
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Nov 2004
Location: Netherlands
Posts: 5,752
Reputation: jwenting is a jewel in the rough jwenting is a jewel in the rough jwenting is a jewel in the rough jwenting is a jewel in the rough 
Rep Power: 18
Solved Threads: 199
Colleague
jwenting's Avatar
jwenting jwenting is offline Offline
duckman

Re: Remotely Invoked Methods and JSP

  #2  
May 6th, 2008
and another idiot insisting on using Java code in JSP.
And rude too, expecting people to open potentially dangerous attachments and read their content, taking a lot of time.
As people are clearly allowed to attack me but I'm not allowed to defend myself, I no longer post to this site.
Reply With Quote  
Join Date: Jun 2006
Location: India
Posts: 6,858
Reputation: ~s.o.s~ is a splendid one to behold ~s.o.s~ is a splendid one to behold ~s.o.s~ is a splendid one to behold ~s.o.s~ is a splendid one to behold ~s.o.s~ is a splendid one to behold ~s.o.s~ is a splendid one to behold ~s.o.s~ is a splendid one to behold 
Rep Power: 23
Solved Threads: 344
Moderator
Featured Poster
~s.o.s~'s Avatar
~s.o.s~ ~s.o.s~ is offline Offline
Lazy, Useless & Apathetic

Re: Remotely Invoked Methods and JSP

  #3  
May 10th, 2008
The error "MyRemote cannot be resolved to a type." seems to be pretty straightforward; you need to include the 'MyRemote' class in your JSP for it to successfully compile. I know this advice would fall on deaf ears but avoid using scriptlets in your JSP's, put the application logic in servlets instead.
I don't accept change. I don't deserve to live.

Happiness corrupts people.

Failing to value the lives of others cheapens your own.
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb JSP Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Other Threads in the JSP Forum

All times are GMT -4. The time now is 4:32 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC