Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

particular codebase problems

 
Andrey Karachoun
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello!
Has anyone tried to configure Tomcat to make it provide java.rmi.server.codebase for your RMI application?
My problem is: when I used ClassFileServer from Java examples listening on port 2001 my codebase (in http form) worked fine; when I started using and configuring Tomcat I began getting a java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
java.lang.ClassNotFoundException: org.myapp.server.session.RemoteSessionImpl_Stub
My class files and generated stubs are in WEB-INF folder. I've heard that Tomcat somehow protects this folder from accessing - could this be the reason that caused the exception?
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13077
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That is correct. Web servers are forbidden to directly serve ANYTHING from the WEB-INF directory. You have to make the class files visible to the web server just like images or any other resource.
Bill
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic