|
From: Markus K. <ma...@pr...> - 2012-08-30 07:12:00
|
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 > -- Kind regards, Markus Kilås Security Consultant & Developer PrimeKey Solutions AB Anderstorpsv. 16 171 54 Solna Sweden Phone: +46 70 424 94 85 Skype: markusatskype Email: mar...@pr... www.primekey.se |