Re: [JBoss-user] Simple Hello-World Webservice for 3.2?
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: > 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";> > > > > > > > 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
RE: [JBoss-user] Simple Hello-World Webservice for 3.2?
Hi all, > -Original Message- > From: Jung , Dr. Christoph [mailto:christoph.jung@;infor.de] > Put the class into your .wsr and voilĂ . That's what I was trying and trying ... with no success. Now I finally found out, that someone put a package statement at the very top of my file, that I missed. So Axis was looking under hello.wsr/hello/hello/math.class instead of hello.wsr/math.class Thanks to all :-) 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 email 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
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: 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";> 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
Re: [JBoss-user] Simple Hello-World Webservice for 3.2?
I've renamed the ear to _ear.zip so you can easily open it. Hope this helps. Ricardo - Original Message - From: "Rupp,Heiko" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, October 22, 2002 2:05 PM Subject: RE: [JBoss-user] Simple Hello-World Webservice for 3.2? > Bruce, > > > I have a simple hello world type of example for jboss-net at: > > http://www.csd.abdn.ac.uk/~bscharla/teaching/mtp_software/jbos > s/jboss-net-HelloWorld.shtml > > > I have seen this and enjoyed it already. > > What I would really apreciate is to see > - a completely packaged hello.wsr > - view of the resulting tree > i.e. > jboss/server/deploy//hello.wsr > or such. > > I thank you very much for your efforts. > > Heiko > > > --- > 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://ad.doubleclick.net/clk;4699841;7576301;v? > http://www.sun.com/javavote > ___ > JBoss-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-user > HelloEJB_ear.zip Description: Zip compressed data
RE: [JBoss-user] Simple Hello-World Webservice for 3.2?
Bruce, > I have a simple hello world type of example for jboss-net at: > http://www.csd.abdn.ac.uk/~bscharla/teaching/mtp_software/jbos s/jboss-net-HelloWorld.shtml I have seen this and enjoyed it already. What I would really apreciate is to see - a completely packaged hello.wsr - view of the resulting tree i.e. jboss/server/deploy//hello.wsr or such. I thank you very much for your efforts. Heiko --- 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://ad.doubleclick.net/clk;4699841;7576301;v? http://www.sun.com/javavote ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Simple Hello-World Webservice for 3.2?
At 18:33 21/10/2002 +0200, you wrote: Hi, does anyone have a very simple "Hello World" kind of webservice? I am currently somewhat stuck, starting with the fact that in 3.2 jboss.net is on /jboss-net and not on /axis as the documentation says. Also the admin servlet does not work here. Is there a property to turn on the listing of installed services? Thanks in advance Heiko -- Bancotec GmbH EMail: [EMAIL PROTECTED] Calwer Str. 33 Telefon: +49 711 222 992 0 D-70173 Stuttgart Telefax: +49 711 222 992 999 Heiko, I have a simple hello world type of example for jboss-net at: http://www.csd.abdn.ac.uk/~bscharla/teaching/mtp_software/jboss/jboss-net-HelloWorld.shtml HOWEVER, this is based on a slightly older version of jboss-net, so will not work as is. I'm currently in the process of updating it sometime this week. Read the caveat carefully at the top of the page. You should be able to modify it alright. Otherwise, as I said, I'll be updating it shortly. You'll also find a link to an ejb example too. cheers, Bruce Dr. Bruce Scharlau Dept. of Computing Science University of Aberdeen Aberdeen AB24 3UE 01224 272193 http://www.csd.abdn.ac.uk/~bscharla mailto:scharlau@;csd.abdn.ac.uk --- 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://ad.doubleclick.net/clk;4699841;7576301;v? http://www.sun.com/javavote ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user