recently, i bought "enterprise javabeans, 4th ed" by richard monson-haefel, bill burke and sacha labourey.
i have installations of jboss 3.2.3 (java 1.4.1) on my gentoo linux server and jboss 4.0.0 rc2 (java 1.5.0-rc-b63) on windows xp sp2 on my tabletpc/localhost. i strongly prefer to use the jboss4 server as this is a) the future and b) i do prototyping only (stability isn't an issue for me right now). on jboss4/localhost i checked out most of the examples in the jboss workbook included with "rmh-ejb". however, the one i needed most, "exercise 15.1: web services and ejb 2.1" doesn't seem to work on my local jboss4 server. first it failed to build, probably due to deprecated/missing jboss.net support in jboss4. so i tried to replace <fileset dir="${jboss.home}/server/default/deploy/jboss-net.sar"> | with <fileset dir="${jboss.home}/server/default/deploy/jboss-ws4ee.sar"> on line 15 in ex15_1\build.xml using this, ant didn't complain when building the server-side of the example ('ant wsdl', 'ant ejbjar'). however, when restarting jboss4, the server log reads: 12:00:09,420 INFO [EJBDeployer] Deployed: | file:/C:/jboss-4.0.0RC2/server/defaul | t/deploy/titan.jar | 12:00:09,621 ERROR [ServiceDeployer] Cannot startup webservice | for: titan.jar | java.lang.IllegalArgumentException: The wsdl file should be | located in: META-INF | /wsdl/ etc. my questions: ************* q1: *** how can i make this example work (nicely) with jboss4? if the example, as downloaded from http://examples.oreilly.com/entjbeans4/workbook.zip, doesn't work with jboss4 indeed, i'd kindly ask to release an update of it as quickly as possible. jboss4 is suggested in the workbook and i believe most people prefer a web service example using jboss-ws4ee (j2ee 1.4 compliant) instead of jboss-net (the axis way, deprecated). q2: *** apart from the problem described above, running the client of exercise 15.1 threw some exceptions. do you have any idea what's wrong here and how i can make it work in my environment (jboss4, java 1.5.0-rc-b63, windows xp sp2)? the following steps worked fine: 'ant clean.db' | 'ant createdb' | the following threw exceptions: C:\unison_sync\thesis\working\current\code\examples\oreilly\workbook\ex15_1>MakeReservation | 1 106 1 5000.00 | Buildfile: build.xml | | prepare: | | compile: | | ejbjar: | | run.client: | [java] Exception in thread "main" java.rmi.ServerException: | RemoteException occurred in server thread; nested excep | tion is: | [java] java.rmi.ServerException: EJBException:; nested | exception is: | [java] javax.ejb.EJBException: failed | [java] at | sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:325) | [java] at | sun.rmi.transport.Transport$1.run(Transport.java:153) | [java] at | java.security.AccessController.doPrivileged(Native Method) | | [cut] | | [java] at | org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:191) | [java] ... 25 more | [java] Java Result: 1 | | BUILD SUCCESSFUL | Total time: 3 seconds any help appreciated, regards dani p.s. it can be safely assumed that line wrappings are correct, despite of wrong appearance above. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3847844#3847844 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3847844 ------------------------------------------------------- This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 Project Admins to receive an Apple iPod Mini FREE for your judgement on who ports your project to Linux PPC the best. Sponsored by IBM. Deadline: Sept. 13. Go here: http://sf.net/ppc_contest.php _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user