|
From: Antoine L. <ant...@yo...> - 2012-08-31 09:35:51
|
Hi Markus, Thanks for your answer. I will do like that. I would prefer to add it directly in the ejb... I understand the problems of changing the compilation files. Have a nice weekend. Best regards, Antoine Le 30/08/2012 09:11, Markus Kilås a écrit : > Hi Antoine, > > On 2012-08-29 15:27, Antoine Louiset wrote: >> Hi everyone, >> >> I want to create my own Authorizer class, so I had one class in >> Signserver-ejb to do this. >> >> In the isAuthorized method, I want to call a web service. So I add a web >> service client with netbeans in signserver-ejb. No problem here, when I >> clean and build this ejb, it works. >> >> The problem comes when I want to run : ant clean deploy for the project. >> The build fails because it doesn't find the generated sources (generated >> by jax ws). >> >> The cause is that in signserver.xmli, there is a tag javac which starts >> the compilation of signserver-ejb. The generated sources are not present >> at this moment so it fails. >> >> Why signserver-ejb is build like that and not with its build.xml ? > From the beginning the different sub projects did not have there own > build xml and everything was built from signserver.xmli. Now we are > switching to use the build scripts generated by NetBeans IDE. In trunk > the change of the build script has got further and SignServer-ejb.jar is > built just like any other module. > >> I try to exclude this file in the javac tag, the compilation works but >> signserver-ejb.jar in dist-server directory does not include this file >> while it is present in the output jar of the module >> (modules/signserver-ejb/build/). >> >> Do you have any ideas to solve this problem ? > If it is possible to not have the code inside SignServer-ejb but instead > create a sub project for your customer Authorizer I would recommend > that. In that case your project would be a Java Library project and the > jar file end up in signerserver.ear/lib. > > For instance you can have a look at SignServer-Module-Renewal which uses > web services. > > > Best regards, > Markus > >> Thanks a lot. >> >> Have a good afternoon. >> >> Best regards, >> >> >> Antoine Louiset >> >> >> >> ------------------------------------------------------------------------------ >> Live Security Virtual Conference >> Exclusive live event will cover all the ways today's security and >> threat landscape has changed and how IT managers can respond. Discussions >> will include endpoint security, mobile security and the latest in malware >> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >> >> >> >> _______________________________________________ >> SignServer-develop mailing list >> Sig...@li... >> https://lists.sourceforge.net/lists/listinfo/signserver-develop >> > > |