I have not played too much with this example. I just got it to work for what I needed it. I used it as a reference on local interfaces. Hence I was happy to see a servlet acces an EJB through local interfaces.
But, having had some experience with EJBs perhaps we can debug this together. Okay, generally there are several places where you can place your classes and I'll try and go through them all, starting with where I think it should go. There are 6 possible places that come to mind where you can put your libraries. 1.) create a lib directory in the *.EAR and re-place the manifest of the modules (*.WAR or *.WSR) with the following: --- MANIFEST.MF start --- copy below: Manifest-Version: 1.0 Class-Path: ./lib/. --- copy above MANIFEST.MF --- the . refers to the root of the ear and the lib/. refers to all files in that directory. I recommend placing all of your libraries here and keeping your modules light as this will make the classes accessible to all your modules. 2.) The second place to put it would be on the WEB-INF/lib directory of *.WAR if only your web module requires the lib. You should check this. This directory is the standar place to put your jars for the web module. 3.) Put them on the root of the web module. This will make them accessible to anyone on the net and also to your app. This is wher you would put *.jar s for applet code that needs to be downloaded by the users. 4. 5. 6) Put them in the lib directory of of either the all, default or minimal server folders of JBoss. This will make the classes in the *.jar available to all your deployed apps. NOTE: It is never a good idea to put your classes here as you make your code server dependent. You should distribute all of your libraries with your application, that way you can just drop them from one server to another. Another word of advice is to learn how to use ANT and Xdoclet, these two tools facilitate programming of EJBs. Okay, I hope this helps. ----- Original Message ----- From: "Rupp,Heiko" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, October 23, 2002 1:11 PM Subject: RE: [JBoss-user] Simple Hello-World Webservice for 3.2? > Hi, > > > I've renamed the ear to _ear.zip so you can easily open it. > Thanks > > > Hope this helps. > > Yes, definitely. > > Now .. > > when I have server/all/deploy/hello.wsr > with META-INF/web-service.xml: > <deployment xmlns="http://xml.apache.org/axis/wsdd/" > xmlns:xsi="http://www.w3.org/2000/10/XMLSchema-instance" > xmlns:java="http://xml.apache.org/axis/wsdd/providers/java"> > <service name="testMath" provider="java:RPC"> > <parameter name="className" value="hello.math"/> > <parameter name="allowedMethods" value="add"/> > </service> > </deployment> > > Where does the hello.math class have to be ? > > The webservice itself gets deployed, but when calling it at > http://localhost:8080/jboss-net/services/testMath I get an exception > that the class 'hello.math' can not be found and Axis tells me that > it has to go 'to the right place', which isn't really specific .. > > Thanks > Heiko > -- > Bancotec GmbH EMail: [EMAIL PROTECTED] > Calwer Str. 33 Telefon: +49 711 222 992 0 > D-70173 Stuttgart Telefax: +49 711 222 992 999 > > > ------------------------------------------------------- > This sf.net emial is sponsored by: Influence the future > of Java(TM) technology. Join the Java Community > Process(SM) (JCP(SM)) program now. > http://ads.sourceforge.net/cgi-bin/redirect.pl?sunm0002en > _______________________________________________ > JBoss-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-user > ------------------------------------------------------- This sf.net email is sponsored by: Influence the future of Java(TM) technology. Join the Java Community Process(SM) (JCP(SM)) program now. http://ad.doubleclick.net/clk;4729346;7592162;s?http://www.sun.com/javavote _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
