Win a copy of Beginning Java 17 Fundamentals: Object-Oriented Programming in Java 17 this week in the Java in General forum!
  • 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:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

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
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic