Help coderanch get a
new server
by contributing to the fundraiser

Ryan Greenwood

Greenhorn
+ Follow
since Sep 16, 2002
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Ryan Greenwood

Thanks for the reply Randy. Problem is I can't even get the server running, without getting the UnmarshalException etc. The classpath is set to the server classes(which includes the ProductImpl_Stub.class) and the ClassNotFoundException appears to be related to stub classes - ProductImpl_Stub. This leads me to believe that tomcat is not finding the stubs??
21 years ago
I am new to rmi. Attempting to run an example out of CoreJava volII. I have followed the steps in the tutorial, however there seems to be a grey area which seems to relate either to class paths, or to class loading??
The source is provided by Cay Horstmann.
The steps are:
1. Compile the source - no packaging
2. rmic -v1.2 the ProductImpl class for stub generation
3. create three directories to test deployment - client, download, server.
4. into server put ProductServer.class, ProductImpl.class, Product.class, ProductImpl_Stub.class
5. into download put ProductImpl_Stub.class, Product.class
6. into client put ProductClient.class, Product.class, client.policy
5. ensure client.policy grants SocketPermission to connect to "*:1024-65535" and "*:8080" (tomcat)
6. move download to webapps directory in tomcat home - presumably this is the directory which tomcat will search to find the specfied resource?
7. start tomcat
8. start new shell and set classpath=
9. start rmiregistry &
10. start new shell and set classpath to the server directory
11. java -Djava.rmi.codebase=http://localhost:8080/download/ ProductServer &
UnMarshalException - nested ClassNotFoundException
21 years ago
Frank I hear what you say and I like the concept. Can you give me some idea of a time scale related to size of project when using TTD based on your experiences?
Thanks for the links Ilja. Frank, thanks for the advice, I am Bull Et but logging on from another machine, I couldn't remember my password (and couldn't re-find it) so I simply re-registered. Just a note though. The comment on ERD and conceptual models were never meant to be associated as part of the ooad process in tandem. This was merely an observation that when one identifies concepts in the problem domain and comes up with say, Invoice, InvoiceLine etc. the process of concept identification produces very similar results. I guess the question should be as follows: At which point does one say 'This concept does not warrant a class eg. User as per Franks example, and should it simply be part of a procedural process' ?
consider using xml to set properties. Sun seem to suggest it as the preferred method
21 years ago
I have code using class loaders to find resources eg. Icon i = new ImageIcon(this.getClass().getClassLoader().getResource("logo.jpg")); - Works perfectly in Linux and Win98 but WinXP gives NullPointerException when attempting the line accessing the resource. Can anyone help??
21 years ago