Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Java > Java and JDK > EJB
Password Reminder
Register
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
EJB Be sure to indicate the version you use.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the EJB section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
DRM-free e-books 300x50
 
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old March 16th, 2006, 01:17 AM
Registered User
 
Join Date: Mar 2006
Location: bangalore, karnataka, India.
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to sujansays
Default Client Class not found.

I wrote a stateless session bean (simple Hello World)
I deployed the jar file in the Weblogic7 successfully. While running the client file
>java Client.java
I get the below error.

Exception in thread "main" java.lang.NoClassDefFoundError: Client (wrong name: s
ession/Client)
        at java.lang.ClassLoader.defineClass0(Native Method)
....................
My classpath is set to...
C:\bea\jdk131_03lib\tools.jar;C:\bea\weblogic700se rver\lib\weblogic_sp.jar;C:\bea\weblogic700\server \lib\weblogic.jar;C:\bea\weblogic700\server\lib\we blogic.jar;C:\bea\weblogic700\server\lib\webservic es.jar;C:\bea\weblogic700\server\lib\webservicecli ent.jar;.

I use Weblogic 7. jdk 1.3.1_03 that is provided by Weblogic7 itself.

Thanks in advance.

Sujan M.
  #2 (permalink)  
Old April 14th, 2006, 01:04 AM
Registered User
 
Join Date: Nov 2004
Location: Bhubaneswar, Orissa, India.
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to anirbanbasuz
Default

Hi,

You have to put the jar file of the ejb in the classpath of the client program.
Try and let me know if still any issues.

Thanks,
Anirban

Anirban Basu
  #3 (permalink)  
Old May 19th, 2006, 03:51 PM
Authorized User
 
Join Date: Apr 2005
Location: , , India.
Posts: 71
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Did you try to put the present directory in the classpath and try?
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
connecting client to client (Socket programming) maricar C# 0 September 25th, 2008 04:34 AM
Class DB Not Found darkestangel1980 PHP Databases 0 July 2nd, 2007 05:27 AM
class Not found exception Poman Prashant Java Databases 2 June 7th, 2007 03:26 AM
Property access from Class within Partial Class zoltac007 C# 2005 0 December 1st, 2006 01:01 AM
Regarding Class Library (.dll) from class file manish.sharma04 BOOK: Wrox's ASP.NET 2.0 Visual Web Developer 2005 Express Edition Starter ISBN: 978-0-7645-8807-5 1 March 3rd, 2006 07:32 AM



All times are GMT -4. The time now is 05:44 PM.


Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.