|
From: Peter S. <co...@pe...> - 2007-11-16 09:11:21
|
Hi Roberto, There's only one problem left to deploy this properly... What I'm trying to fix is so that you should be able to right click on the project AirportWatch and select "Undeploy and Deploy" - however - when I do this - the lmappletserver-addons.jar module won't deploy (its session beans). The reason for this is because that the "Undeploy and Deploy" feature uses exploded deploy - and Glassfish doesn't like that some ejb modules are packaged and others are not. Either it wants everything packed, or everything exploded - like I've described here: http://pjsjava.blogspot.com/2007/11/notes-on-glassfish-exploded-deploys-vs.html It WORKS if I do a complete packaged deploy - which I can easily do by running the ant run-deploy target. Then all ejb modules are deployed properly. Netbeans has a "Packaged archive" project type - which is supposed to enable you to use already packaged ejb modules without having the source (in this case lmappletserver-addons.jar) - and I've used this - but I expected this also to automatically make an exploded version of lmappletserver-addons.jarwhen deploying. But it doesn't seem to do so. Maybe this is a bug - have to investigate netbeans forums to see if anyone else have some experience with this. (It does seem to have one bug - since when you add such a project - it doesn't come with a clean target - and the enterprise project expects this when rebuilding). So at the moment we'll have to deploy using ant target - it works - but I'm the kind of person who likes clean setups - but maybe shouldn't spend too much time on this - but if you know something or have some tips - let me know... Tell me also if you're able to run the project. Using netbeans 6.0 it should work right out of the box- you select "Clean and Build" on the project, and then you do run the "run-deploy" ant target (you can also do this in netbeans). There's a servlet for importing airports: http://localhost:8080/AirportWatch-war/ImportServlet The road from here is to start inserting temperature data into the metalog... regards, Peter On Nov 16, 2007 2:41 AM, Roberto MIlev <rob...@gm...> wrote: > Hi Peter, > > Sure no problem, I will try it out. Just let me know of you need any help. > > Regards, > Roberto > > > > Peter Salomonsen wrote: > > Hi Roberto, > > > > As you've probably seen - I've changed some entity beans in order to > > be ejb3 compliant and make everything work with glassfish. I'm also > > building up a project using live airport data. > > > > > https://openmam.svn.sourceforge.net/svnroot/openmam/examples/AirportWatch/ > > > > This example uses jars from the lmappletserver project, and currently > > I've just got it all in there - have not set up metalog viewer applets > > - but it all seams to deploy fine. The project is a netbeans project. > > > > I will use this project for testing your functionality - and probably > > ask you along the way for help, debugging fixing... My goal is a > > development environment that can be run without having to set up > > databases etc. and this seems to be achievable in netbeans... > > > > regards, > > > > Peter > > > > > |