This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
C:\projects\advice>javac -classpath %CLASSPATH%;adviceappClient.jar adviceclient.java C:\projects\advice>java -classpath %CLASSPATH%;adviceappClient.jar adviceclient java.lang.ClassCastException at com.sun.corba.se.internal.javax.rmi.PortableRemoteObject.narrow(Porta bleRemoteObject.java:293) at javax.rmi.PortableRemoteObject.narrow(PortableRemoteObject.java:134) at adviceclient.go(adviceclient.java:21) at adviceclient.main(adviceclient.java:11) CLASSPATH=.;c:\j2sdk1.4.2\jre\lib\rt.jar;c:\j2sdk1.4.2\lib\tools.jar;c:\j2sdk1.4.2\lib;.;c:\j2sdkee1.3.1\lib\j2ee.jar;%CLASSPATH% PATH IS C:\j2sdkee1.3.1\bin;c:\j2sdk1.4.2\bin;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem
Failure is not when you fall down; its only when you fail to get up again.
Joined: Oct 01, 2003
i got these errors after i took out the package headfirst statements from advice.java advicebean.java advicehome.java and after removing import headfirst.* from adviceclient.java plese help help.....i am stuck here past 3 days and my SCBCD date is nearing Pradeep
I've noticed that the j2ee reference implementation tools aren't always good about cleaning out old code when you make a change and redeploy. There is a cleanup batch file, try running that. Then rebuild and redeploy your ejb jar. Hopefully that will do the trick.
Howdy -- you can get the code from either the O'Reilly site or from: wickedlysmart site Just click on the Head First EJB book icon and you'll get the link to the code jar. You really should keep the import statements!! Cheers, kathy
Joined: Oct 01, 2003
Kathy, on what files is the HFECODE(jar file) built ,what method should my adviceclient have?is it getAdvice() or gettheMessage()? Pradeep
Cowgirl and Author
Joined: Oct 10, 2002
Howdy -- in the code jar file the method is NOT getAdvice(), but getMessage(). (Not, getTheMessage()). So that method name is reflected in the client code and the component interface as well. cheers, Kathy