• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

Remote Java client

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have developed a small web app runing on WAS 4.0.3, which uses a servlet that access a session bean successfully.
Now I am trying to create a remote command-line Java client, which will access the same session bean from a remote workstation.
When running the client in WSAD the application executes correctly. When I try to execute the appliation outside of WSAD I get the following exception:
javax.naming.NoInitialContextException: Cannot instantiate class: com.ibm.websphere.naming.WsnInitialContextFactory [Root exception is java.lang.ClassNotFoundException: com.ibm.websphere.naming.WsnInitialContextFactory]
Exception in thread "main" java.lang.NoClassDefFoundError: com/palmharbor/roi/ejb/InventoryManagerHome
at com.palmharbor.roi.remote.TestClient.main(TestClient.java:76)
After reading all the other posts, I'm guessing I need to deploy some JAR files with my app on the remote workstation, but I am not sure which ones. Can anyone tell me exactly what I need to deploy with my app to get it to successfully connect to WAS?
The JRE I am using on the remote workstation is the same one used in WSAD.
Regards,
Thomas
 
The harder I work, the luckier I get. -Sam Goldwyn So tiny. - this ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic