The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

ady_1 (1) [Avatar] Offline
#1
Hi

I'm trying to run the chapter 2 example.

I have glassfish v3 and ant installed.

If i run ant, it builds. then when i type ant run I get a stacktrace, does anyone know what I'm doing wrong?

thanks


Caused by: javax.naming.NamingException: Lookup failed for 'java:comp/env/ejb3inaction.example.buslogic.PlaceBidClient/placeBid' in SerialContext targetHost=localhost,targetPort=3700,orb'sInitialHost=localhost,orb'sInitialPort=3700 [Root exception is javax.naming.NamingException: Exception resolving Ejb for 'Remote ejb-ref name=ejb3inaction.example.buslogic.PlaceBidClient/placeBid,Remote 3.x interface =ejb3inaction.example.buslogic.PlaceBid,ejb-link=null,lookup=null,mappedName=,jndi-name=ejb3inaction.example.buslogic.PlaceBid,refType=Session' . Actual (possibly internal) Remote JNDI name used for lookup is 'ejb3inaction.example.buslogic.PlaceBid#ejb3inaction.example.buslogic.PlaceBid' [Root exception is javax.naming.NamingException: Lookup failed for 'ejb3inaction.example.buslogic.PlaceBid#ejb3inaction.example.buslogic.PlaceBid' in SerialContext targetHost=localhost,targetPort=3700,orb'sInitialHost=localhost,orb'sInitialPort=3700 [Root exception is javax.naming.NameNotFoundException: ejb3inaction.example.buslogic.PlaceBid#ejb3inaction.example.buslogic.PlaceBid not found]]]