|
From: Antoine L. <ant...@yo...> - 2012-07-25 08:02:12
Attachments:
smime.p7s
|
Hi everyone,
I try to launch all the tests with glassfish 2.1.1. The application is
deployed.
The compilation is ok but when I run the tests, I get this error :
/opt/signserver/modules/SignServer-Test-System/nbproject/build-impl.xml:1432:
The following error occurred while executing this line:
/opt/signserver/modules/SignServer-Test-System/nbproject/build-impl.xml:525:
The following error occurred while executing this line:
/opt/signserver/modules/SignServer-Test-System/nbproject/build-impl.xml:498:
*unsupported element customize*
I check in the properties of the project SignServer-Test-System, there
were two libraries which were not found in the compile tests part :
jbossclient-all.jar and appserv-rt.jar. The variable
{$j2ee.appserver.home} was not recognized for appserv-rt.jar, it was
replaced by j2ee.appserver.home without $ and {}.
For the jbossclient-all.jar, I don't know what to do because I use
glassfish, I don't know if this is the problem...
I try to delete the customize tag but there were other errors in the
build-impl.xml...
Have you got any ideas ?
Thanks a lot !
--
Antoine Louiset
Responsable du projet Yousign Mail : ant...@yo...
|
|
From: ejbca-support <ejb...@pr...> - 2012-07-25 08:25:55
|
Hi Antoine, You need to set appserver.type in signserver_build.properties I hope you haven't changed build-impl.xml, you are not supposed to do that :-) br Anders Primekey tech support ----- PrimeKey Solutions offers commercial EJBCA and SignServer support subscriptions and training courses. Please see www.primekey.se or contact in...@pr... for more information. http://www.primekey.se/Services/Support/ http://www.primekey.se/Services/Training/ On 2012-07-25 10:02, Antoine Louiset wrote: > Hi everyone, > > I try to launch all the tests with glassfish 2.1.1. The application is deployed. > > The compilation is ok but when I run the tests, I get this error : > /opt/signserver/modules/SignServer-Test-System/nbproject/build-impl.xml:1432: The following error occurred while executing this line: > /opt/signserver/modules/SignServer-Test-System/nbproject/build-impl.xml:525: The following error occurred while executing this line: > /opt/signserver/modules/SignServer-Test-System/nbproject/build-impl.xml:498: *unsupported element customize* > > I check in the properties of the project SignServer-Test-System, there were two libraries which were not found in the compile tests part : jbossclient-all.jar and appserv-rt.jar. The variable {$j2ee.appserver.home} was not recognized for appserv-rt.jar, it was replaced by j2ee.appserver.home without $ and {}. > > For the jbossclient-all.jar, I don't know what to do because I use glassfish, I don't know if this is the problem... > > I try to delete the customize tag but there were other errors in the build-impl.xml... > > Have you got any ideas ? > > Thanks a lot ! > > -- > Antoine Louiset > Responsable du projet Yousign Mail : ant...@yo... > > > > ------------------------------------------------------------------------------ > 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 > |
|
From: Antoine L. <ant...@yo...> - 2012-07-25 08:54:48
Attachments:
smime.p7s
|
Thanks for your answer. appserver.type is already set to glassfish. I didn't change build-impl.xml, it was just to test. Have you got other ideas ? Best regards, Le 25/07/2012 10:25, ejbca-support a écrit : > Hi Antoine, > You need to set appserver.type in signserver_build.properties > > I hope you haven't changed build-impl.xml, you are not supposed to do that :-) > > br > Anders > Primekey tech support > > ----- > PrimeKey Solutions offers commercial EJBCA and SignServer support subscriptions > and training courses. Please see www.primekey.se or contact in...@pr... > for more information. > http://www.primekey.se/Services/Support/ > http://www.primekey.se/Services/Training/ > > > > > On 2012-07-25 10:02, Antoine Louiset wrote: >> Hi everyone, >> >> I try to launch all the tests with glassfish 2.1.1. The application is deployed. >> >> The compilation is ok but when I run the tests, I get this error : >> /opt/signserver/modules/SignServer-Test-System/nbproject/build-impl.xml:1432: The following error occurred while executing this line: >> /opt/signserver/modules/SignServer-Test-System/nbproject/build-impl.xml:525: The following error occurred while executing this line: >> /opt/signserver/modules/SignServer-Test-System/nbproject/build-impl.xml:498: *unsupported element customize* >> >> I check in the properties of the project SignServer-Test-System, there were two libraries which were not found in the compile tests part : jbossclient-all.jar and appserv-rt.jar. The variable {$j2ee.appserver.home} was not recognized for appserv-rt.jar, it was replaced by j2ee.appserver.home without $ and {}. >> >> For the jbossclient-all.jar, I don't know what to do because I use glassfish, I don't know if this is the problem... >> >> I try to delete the customize tag but there were other errors in the build-impl.xml... >> >> Have you got any ideas ? >> >> Thanks a lot ! >> >> -- >> Antoine Louiset >> Responsable du projet Yousign Mail : ant...@yo... >> >> >> >> ------------------------------------------------------------------------------ >> 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 >> -- Antoine Louiset Responsable du projet Yousign Mail : ant...@yo... |
|
From: Markus K. <ma...@pr...> - 2012-07-25 08:58:39
|
Hi Antoine, It looks very strange... Which versions of Java and Ant are you using? Have you set SIGNSERVER_HOME? Best regards, Markus On 2012-07-25 10:47, Antoine Louiset wrote: > Thanks for your answer. > > appserver.type is already set to glassfish. > > I didn't change build-impl.xml, it was just to test. > > Have you got other ideas ? > > Best regards, > > Le 25/07/2012 10:25, ejbca-support a écrit : >> Hi Antoine, >> You need to set appserver.type in signserver_build.properties >> >> I hope you haven't changed build-impl.xml, you are not supposed to do >> that :-) >> >> br >> Anders >> Primekey tech support >> >> ----- >> PrimeKey Solutions offers commercial EJBCA and SignServer support >> subscriptions >> and training courses. Please see www.primekey.se or contact >> in...@pr... >> for more information. >> http://www.primekey.se/Services/Support/ >> http://www.primekey.se/Services/Training/ >> >> >> >> >> On 2012-07-25 10:02, Antoine Louiset wrote: >>> Hi everyone, >>> >>> I try to launch all the tests with glassfish 2.1.1. The application >>> is deployed. >>> >>> The compilation is ok but when I run the tests, I get this error : >>> /opt/signserver/modules/SignServer-Test-System/nbproject/build-impl.xml:1432: >>> The following error occurred while executing this line: >>> /opt/signserver/modules/SignServer-Test-System/nbproject/build-impl.xml:525: >>> The following error occurred while executing this line: >>> /opt/signserver/modules/SignServer-Test-System/nbproject/build-impl.xml:498: >>> *unsupported element customize* >>> >>> I check in the properties of the project SignServer-Test-System, >>> there were two libraries which were not found in the compile tests >>> part : jbossclient-all.jar and appserv-rt.jar. The variable >>> {$j2ee.appserver.home} was not recognized for appserv-rt.jar, it was >>> replaced by j2ee.appserver.home without $ and {}. >>> >>> For the jbossclient-all.jar, I don't know what to do because I use >>> glassfish, I don't know if this is the problem... >>> >>> I try to delete the customize tag but there were other errors in the >>> build-impl.xml... >>> >>> Have you got any ideas ? >>> >>> Thanks a lot ! >>> >>> -- >>> Antoine Louiset >>> Responsable du projet Yousign Mail : ant...@yo... >>> >>> >>> >>> ------------------------------------------------------------------------------ >>> >>> 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 >>> > > > > ------------------------------------------------------------------------------ > 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 |
|
From: Markus K. <ma...@pr...> - 2012-07-25 09:00:53
|
In addition, if you have specified the application path in signserver_build.properties it might be that you anyway have to specify it as an environment variable for running the tests. export APPSRV_HOME=PATH_TO_GLASSFISH BR, Markus On 2012-07-25 11:00, Markus Kilås wrote: > Hi Antoine, > > It looks very strange... Which versions of Java and Ant are you using? > > Have you set SIGNSERVER_HOME? > > Best regards, > Markus > > On 2012-07-25 10:47, Antoine Louiset wrote: >> Thanks for your answer. >> >> appserver.type is already set to glassfish. >> >> I didn't change build-impl.xml, it was just to test. >> >> Have you got other ideas ? >> >> Best regards, >> >> Le 25/07/2012 10:25, ejbca-support a écrit : >>> Hi Antoine, >>> You need to set appserver.type in signserver_build.properties >>> >>> I hope you haven't changed build-impl.xml, you are not supposed to do >>> that :-) >>> >>> br >>> Anders >>> Primekey tech support >>> >>> ----- >>> PrimeKey Solutions offers commercial EJBCA and SignServer support >>> subscriptions >>> and training courses. Please see www.primekey.se or contact >>> in...@pr... >>> for more information. >>> http://www.primekey.se/Services/Support/ >>> http://www.primekey.se/Services/Training/ >>> >>> >>> >>> >>> On 2012-07-25 10:02, Antoine Louiset wrote: >>>> Hi everyone, >>>> >>>> I try to launch all the tests with glassfish 2.1.1. The application >>>> is deployed. >>>> >>>> The compilation is ok but when I run the tests, I get this error : >>>> /opt/signserver/modules/SignServer-Test-System/nbproject/build-impl.xml:1432: >>>> The following error occurred while executing this line: >>>> /opt/signserver/modules/SignServer-Test-System/nbproject/build-impl.xml:525: >>>> The following error occurred while executing this line: >>>> /opt/signserver/modules/SignServer-Test-System/nbproject/build-impl.xml:498: >>>> *unsupported element customize* >>>> >>>> I check in the properties of the project SignServer-Test-System, >>>> there were two libraries which were not found in the compile tests >>>> part : jbossclient-all.jar and appserv-rt.jar. The variable >>>> {$j2ee.appserver.home} was not recognized for appserv-rt.jar, it was >>>> replaced by j2ee.appserver.home without $ and {}. >>>> >>>> For the jbossclient-all.jar, I don't know what to do because I use >>>> glassfish, I don't know if this is the problem... >>>> >>>> I try to delete the customize tag but there were other errors in the >>>> build-impl.xml... >>>> >>>> Have you got any ideas ? >>>> >>>> Thanks a lot ! >>>> >>>> -- >>>> Antoine Louiset >>>> Responsable du projet Yousign Mail : ant...@yo... >>>> >>>> >>>> >>>> ------------------------------------------------------------------------------ >>>> >>>> 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 >>>> >> >> >> >> ------------------------------------------------------------------------------ >> 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 |
|
From: Antoine L. <ant...@yo...> - 2012-07-25 09:44:49
Attachments:
smime.p7s
|
Hi Markus, Thanks for your answer. Here the results of the echo command of my environment variables. vm-manager@debian6:/opt/signserver$ echo $APPSRV_HOME /opt/glassfish kvm-manager@debian6:/opt/signserver$ echo $SIGNSERVER_HOME /opt/signserver kvm-manager@debian6:/opt/signserver$ echo $ANT_HOME /usr/share/ant kvm-manager@debian6:/opt/signserver$ echo $ANT_OPTS -Xmx512m -XX:MaxPermSize=256m kvm-manager@debian6:/opt/signserver$ echo $SIGNSERVER_NODEID node1 These environment variables are set in /etc/bash.bashrc I change the MaxPermSize to 256 instead of 128. kvm-manager@debian6:/opt/signserver$ java -version java version "1.6.0_26" Java(TM) SE Runtime Environment (build 1.6.0_26-b03) Java HotSpot(TM) Client VM (build 20.1-b02, mixed mode, sharing) kvm-manager@debian6:/opt/signserver$ ant -version Apache Ant version 1.8.0 compiled on March 11 2010 I don't use client authentication with certificate. I don't know if it could be linked. Thanks for your help, have a nice day ! Le 25/07/2012 11:02, Markus Kilås a écrit : > export APPSRV_HOME= -- Antoine Louiset Tél : +33 6 76 66 80 34 Responsable du projet Yousign Mail : ant...@yo... |
|
From: Markus K. <ejb...@pr...> - 2012-07-25 12:40:58
|
It all looks okay to me.
If you use client certificates or not shouldn't make the compilation
fail so it must be something else.
I am not sure I fully understand what you mean by "The variable
{$j2ee.appserver.home} was not recognized for appserv-rt.jar, it was
replaced by j2ee.appserver.home without $ and {}." Do you mean that you
get an error or other message where you can see that the variable
${j2ee.appserver.home} was not replaced with the actual path to the
application server?
Could you also send the complete output when you run "ant test:run"?
I would try to checkout SignServer again to see that it isn't any
corrupted files.
Best regards,
Markus
On 2012-07-25 11:26, Antoine Louiset wrote:
> Hi Markus,
>
> Thanks for your answer. Here the results of the echo command of my
> environment variables.
>
> vm-manager@debian6:/opt/signserver$ echo $APPSRV_HOME
> /opt/glassfish
> kvm-manager@debian6:/opt/signserver$ echo $SIGNSERVER_HOME
> /opt/signserver
> kvm-manager@debian6:/opt/signserver$ echo $ANT_HOME
> /usr/share/ant
> kvm-manager@debian6:/opt/signserver$ echo $ANT_OPTS
> -Xmx512m -XX:MaxPermSize=256m
> kvm-manager@debian6:/opt/signserver$ echo $SIGNSERVER_NODEID
> node1
>
> These environment variables are set in /etc/bash.bashrc
>
> I change the MaxPermSize to 256 instead of 128.
>
> kvm-manager@debian6:/opt/signserver$ java -version
> java version "1.6.0_26"
> Java(TM) SE Runtime Environment (build 1.6.0_26-b03)
> Java HotSpot(TM) Client VM (build 20.1-b02, mixed mode, sharing)
>
> kvm-manager@debian6:/opt/signserver$ ant -version
> Apache Ant version 1.8.0 compiled on March 11 2010
>
> I don't use client authentication with certificate. I don't know if it
> could be linked.
>
> Thanks for your help, have a nice day !
>
> Le 25/07/2012 11:02, Markus Kilås a écrit :
>> export APPSRV_HOME=
>
>
>
> ------------------------------------------------------------------------------
> 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
>
--
PrimeKey Solutions offers a commercial EJBCA support subscription and
training for EJBCA. Please see www.primekey.se or contact
in...@pr... for more information.
http://www.primekey.se/Services/Support/
http://www.primekey.se/Services/Training/
|
|
From: Antoine L. <ant...@yo...> - 2012-07-25 15:54:35
|
In fact, the library {$j2ee.appserver.home}/appserv-rt.jar was not
recognized by NetBeans. I think j2ee.appserver.home is not regognized
because I do not add glassfish server in NetBeans (I don't find the
plugin for the new version of NetBeans 7.2).
I made a mistake in my precedent mail. Do not consider the problem of $
and {}.
You will find attached output_test.txt which contains all the results of
the command and the output_test_error.txt for the error output.
I do not understand erros in output_test.txt : "[junit]
Testcase:testReloadConfiguration(org.signserver.adminws.client.AdminWebServiceTest):
Caused an ERROR
[junit] Failed to access the WSDL at:
https://localhost:8181/signserver/AdminWSService/AdminWS?wsdl.
It failed with:
[junit] java.lang.RuntimeException: Unexpected error:
java.security.InvalidAlgorithmParameterException: the trustAnchors
parameter must be non-empty."
The property j2ee.web-nohttps has to set to true to launch the tests but
there are many cases where we use https so I do not understand. Is this
functionality used in glassfish ?
Thanks a lot !
Good evening Markus !
Best regards,
Le 25/07/2012 14:42, Markus Kilås a écrit :
> It all looks okay to me.
>
> If you use client certificates or not shouldn't make the compilation
> fail so it must be something else.
>
> I am not sure I fully understand what you mean by "The variable
> {$j2ee.appserver.home} was not recognized for appserv-rt.jar, it was
> replaced by j2ee.appserver.home without $ and {}." Do you mean that you
> get an error or other message where you can see that the variable
> ${j2ee.appserver.home} was not replaced with the actual path to the
> application server?
>
> Could you also send the complete output when you run "ant test:run"?
>
> I would try to checkout SignServer again to see that it isn't any
> corrupted files.
>
>
> Best regards,
> Markus
>
>
> On 2012-07-25 11:26, Antoine Louiset wrote:
>> Hi Markus,
>>
>> Thanks for your answer. Here the results of the echo command of my
>> environment variables.
>>
>> vm-manager@debian6:/opt/signserver$ echo $APPSRV_HOME
>> /opt/glassfish
>> kvm-manager@debian6:/opt/signserver$ echo $SIGNSERVER_HOME
>> /opt/signserver
>> kvm-manager@debian6:/opt/signserver$ echo $ANT_HOME
>> /usr/share/ant
>> kvm-manager@debian6:/opt/signserver$ echo $ANT_OPTS
>> -Xmx512m -XX:MaxPermSize=256m
>> kvm-manager@debian6:/opt/signserver$ echo $SIGNSERVER_NODEID
>> node1
>>
>> These environment variables are set in /etc/bash.bashrc
>>
>> I change the MaxPermSize to 256 instead of 128.
>>
>> kvm-manager@debian6:/opt/signserver$ java -version
>> java version "1.6.0_26"
>> Java(TM) SE Runtime Environment (build 1.6.0_26-b03)
>> Java HotSpot(TM) Client VM (build 20.1-b02, mixed mode, sharing)
>>
>> kvm-manager@debian6:/opt/signserver$ ant -version
>> Apache Ant version 1.8.0 compiled on March 11 2010
>>
>> I don't use client authentication with certificate. I don't know if it
>> could be linked.
>>
>> Thanks for your help, have a nice day !
>>
>> Le 25/07/2012 11:02, Markus Kilås a écrit :
>>> export APPSRV_HOME=
>>
>>
>> ------------------------------------------------------------------------------
>> 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
>>
>
--
Antoine Louiset
Responsable du projet Yousign Mail : ant...@yo...
|
|
From: ejbca-support <ejb...@pr...> - 2012-07-25 18:21:27
|
This seems wrong:
[echo] j2ee.web-nohttps = false
So does this:
[copy] Warning: /opt/glassfish/client does not exist.
Regards
Anders
On 2012-07-25 17:36, Antoine Louiset wrote:
> In fact, the library {$j2ee.appserver.home}/appserv-rt.jar was not
> recognized by NetBeans. I think j2ee.appserver.home is not regognized
> because I do not add glassfish server in NetBeans (I don't find the
> plugin for the new version of NetBeans 7.2).
>
> I made a mistake in my precedent mail. Do not consider the problem of $
> and {}.
>
> You will find attached output_test.txt which contains all the results of
> the command and the output_test_error.txt for the error output.
>
> I do not understand erros in output_test.txt : "[junit]
> Testcase:testReloadConfiguration(org.signserver.adminws.client.AdminWebServiceTest):
> Caused an ERROR
> [junit] Failed to access the WSDL at:
> https://localhost:8181/signserver/AdminWSService/AdminWS?wsdl.
> It failed with:
> [junit] java.lang.RuntimeException: Unexpected error:
> java.security.InvalidAlgorithmParameterException: the trustAnchors
> parameter must be non-empty."
>
> The property j2ee.web-nohttps has to set to true to launch the tests but
> there are many cases where we use https so I do not understand. Is this
> functionality used in glassfish ?
>
> Thanks a lot !
>
> Good evening Markus !
>
> Best regards,
>
> Le 25/07/2012 14:42, Markus Kilås a écrit :
>> It all looks okay to me.
>>
>> If you use client certificates or not shouldn't make the compilation
>> fail so it must be something else.
>>
>> I am not sure I fully understand what you mean by "The variable
>> {$j2ee.appserver.home} was not recognized for appserv-rt.jar, it was
>> replaced by j2ee.appserver.home without $ and {}." Do you mean that you
>> get an error or other message where you can see that the variable
>> ${j2ee.appserver.home} was not replaced with the actual path to the
>> application server?
>>
>> Could you also send the complete output when you run "ant test:run"?
>>
>> I would try to checkout SignServer again to see that it isn't any
>> corrupted files.
>>
>>
>> Best regards,
>> Markus
>>
>>
>> On 2012-07-25 11:26, Antoine Louiset wrote:
>>> Hi Markus,
>>>
>>> Thanks for your answer. Here the results of the echo command of my
>>> environment variables.
>>>
>>> vm-manager@debian6:/opt/signserver$ echo $APPSRV_HOME
>>> /opt/glassfish
>>> kvm-manager@debian6:/opt/signserver$ echo $SIGNSERVER_HOME
>>> /opt/signserver
>>> kvm-manager@debian6:/opt/signserver$ echo $ANT_HOME
>>> /usr/share/ant
>>> kvm-manager@debian6:/opt/signserver$ echo $ANT_OPTS
>>> -Xmx512m -XX:MaxPermSize=256m
>>> kvm-manager@debian6:/opt/signserver$ echo $SIGNSERVER_NODEID
>>> node1
>>>
>>> These environment variables are set in /etc/bash.bashrc
>>>
>>> I change the MaxPermSize to 256 instead of 128.
>>>
>>> kvm-manager@debian6:/opt/signserver$ java -version
>>> java version "1.6.0_26"
>>> Java(TM) SE Runtime Environment (build 1.6.0_26-b03)
>>> Java HotSpot(TM) Client VM (build 20.1-b02, mixed mode, sharing)
>>>
>>> kvm-manager@debian6:/opt/signserver$ ant -version
>>> Apache Ant version 1.8.0 compiled on March 11 2010
>>>
>>> I don't use client authentication with certificate. I don't know if it
>>> could be linked.
>>>
>>> Thanks for your help, have a nice day !
>>>
>>> Le 25/07/2012 11:02, Markus Kilås a écrit :
>>>> export APPSRV_HOME=
>>>
>>> ------------------------------------------------------------------------------
>>> 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
>>>
|
|
From: Markus K. <ma...@pr...> - 2012-07-25 18:34:03
|
NetBeans IDE 7.2 was just recently released and has until now not been
tested for SignServer development.
If you open any of the SignServer projects in version 7.2 it will
upgrade the auto-generated build scripts. For some reasons (bug in
NetBeans IDE?) the new build script does not compile.
Reverting the changes automagically done in */build-impl.xml,
*/genfiles.properties, */project.properties and */project.xml and use
NetBeans IDE 7.1.2 should work until the problem is found and fixed.
Best regards,
Markus
On 2012-07-25 17:36, Antoine Louiset wrote:
> In fact, the library {$j2ee.appserver.home}/appserv-rt.jar was not
> recognized by NetBeans. I think j2ee.appserver.home is not regognized
> because I do not add glassfish server in NetBeans (I don't find the
> plugin for the new version of NetBeans 7.2).
>
> I made a mistake in my precedent mail. Do not consider the problem of $
> and {}.
>
> You will find attached output_test.txt which contains all the results of
> the command and the output_test_error.txt for the error output.
>
> I do not understand erros in output_test.txt : "[junit]
> Testcase:testReloadConfiguration(org.signserver.adminws.client.AdminWebServiceTest):
> Caused an ERROR
> [junit] Failed to access the WSDL at:
> https://localhost:8181/signserver/AdminWSService/AdminWS?wsdl.
> It failed with:
> [junit] java.lang.RuntimeException: Unexpected error:
> java.security.InvalidAlgorithmParameterException: the trustAnchors
> parameter must be non-empty."
>
> The property j2ee.web-nohttps has to set to true to launch the tests but
> there are many cases where we use https so I do not understand. Is this
> functionality used in glassfish ?
>
> Thanks a lot !
>
> Good evening Markus !
>
> Best regards,
>
> Le 25/07/2012 14:42, Markus Kilås a écrit :
>> It all looks okay to me.
>>
>> If you use client certificates or not shouldn't make the compilation
>> fail so it must be something else.
>>
>> I am not sure I fully understand what you mean by "The variable
>> {$j2ee.appserver.home} was not recognized for appserv-rt.jar, it was
>> replaced by j2ee.appserver.home without $ and {}." Do you mean that you
>> get an error or other message where you can see that the variable
>> ${j2ee.appserver.home} was not replaced with the actual path to the
>> application server?
>>
>> Could you also send the complete output when you run "ant test:run"?
>>
>> I would try to checkout SignServer again to see that it isn't any
>> corrupted files.
>>
>>
>> Best regards,
>> Markus
>>
>>
>> On 2012-07-25 11:26, Antoine Louiset wrote:
>>> Hi Markus,
>>>
>>> Thanks for your answer. Here the results of the echo command of my
>>> environment variables.
>>>
>>> vm-manager@debian6:/opt/signserver$ echo $APPSRV_HOME
>>> /opt/glassfish
>>> kvm-manager@debian6:/opt/signserver$ echo $SIGNSERVER_HOME
>>> /opt/signserver
>>> kvm-manager@debian6:/opt/signserver$ echo $ANT_HOME
>>> /usr/share/ant
>>> kvm-manager@debian6:/opt/signserver$ echo $ANT_OPTS
>>> -Xmx512m -XX:MaxPermSize=256m
>>> kvm-manager@debian6:/opt/signserver$ echo $SIGNSERVER_NODEID
>>> node1
>>>
>>> These environment variables are set in /etc/bash.bashrc
>>>
>>> I change the MaxPermSize to 256 instead of 128.
>>>
>>> kvm-manager@debian6:/opt/signserver$ java -version
>>> java version "1.6.0_26"
>>> Java(TM) SE Runtime Environment (build 1.6.0_26-b03)
>>> Java HotSpot(TM) Client VM (build 20.1-b02, mixed mode, sharing)
>>>
>>> kvm-manager@debian6:/opt/signserver$ ant -version
>>> Apache Ant version 1.8.0 compiled on March 11 2010
>>>
>>> I don't use client authentication with certificate. I don't know if it
>>> could be linked.
>>>
>>> Thanks for your help, have a nice day !
>>>
>>> Le 25/07/2012 11:02, Markus Kilås a écrit :
>>>> export APPSRV_HOME=
>>>
>>>
>>> ------------------------------------------------------------------------------
>>>
>>> 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
>>>
>>
>
>
>
> ------------------------------------------------------------------------------
> 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
|
|
From: Markus K. <ma...@pr...> - 2012-07-25 19:07:27
|
I have created https://jira.primekey.se/browse/DSS-511 for the issue. BR, Markus On 2012-07-25 20:35, Markus Kilås wrote: > NetBeans IDE 7.2 was just recently released and has until now not been > tested for SignServer development. > > If you open any of the SignServer projects in version 7.2 it will > upgrade the auto-generated build scripts. For some reasons (bug in > NetBeans IDE?) the new build script does not compile. > > Reverting the changes automagically done in */build-impl.xml, > */genfiles.properties, */project.properties and */project.xml and use > NetBeans IDE 7.1.2 should work until the problem is found and fixed. > > Best regards, > Markus > > > On 2012-07-25 17:36, Antoine Louiset wrote: >> In fact, the library {$j2ee.appserver.home}/appserv-rt.jar was not >> recognized by NetBeans. I think j2ee.appserver.home is not regognized >> because I do not add glassfish server in NetBeans (I don't find the >> plugin for the new version of NetBeans 7.2). >> >> I made a mistake in my precedent mail. Do not consider the problem of $ >> and {}. >> >> You will find attached output_test.txt which contains all the results of >> the command and the output_test_error.txt for the error output. >> >> I do not understand erros in output_test.txt : "[junit] >> Testcase:testReloadConfiguration(org.signserver.adminws.client.AdminWebServiceTest): >> Caused an ERROR >> [junit] Failed to access the WSDL at: >> https://localhost:8181/signserver/AdminWSService/AdminWS?wsdl. >> It failed with: >> [junit] java.lang.RuntimeException: Unexpected error: >> java.security.InvalidAlgorithmParameterException: the trustAnchors >> parameter must be non-empty." >> >> The property j2ee.web-nohttps has to set to true to launch the tests but >> there are many cases where we use https so I do not understand. Is this >> functionality used in glassfish ? >> >> Thanks a lot ! >> >> Good evening Markus ! >> >> Best regards, >> >> Le 25/07/2012 14:42, Markus Kilås a écrit : >>> It all looks okay to me. >>> >>> If you use client certificates or not shouldn't make the compilation >>> fail so it must be something else. >>> >>> I am not sure I fully understand what you mean by "The variable >>> {$j2ee.appserver.home} was not recognized for appserv-rt.jar, it was >>> replaced by j2ee.appserver.home without $ and {}." Do you mean that you >>> get an error or other message where you can see that the variable >>> ${j2ee.appserver.home} was not replaced with the actual path to the >>> application server? >>> >>> Could you also send the complete output when you run "ant test:run"? >>> >>> I would try to checkout SignServer again to see that it isn't any >>> corrupted files. >>> >>> >>> Best regards, >>> Markus >>> >>> >>> On 2012-07-25 11:26, Antoine Louiset wrote: >>>> Hi Markus, >>>> >>>> Thanks for your answer. Here the results of the echo command of my >>>> environment variables. >>>> >>>> vm-manager@debian6:/opt/signserver$ echo $APPSRV_HOME >>>> /opt/glassfish >>>> kvm-manager@debian6:/opt/signserver$ echo $SIGNSERVER_HOME >>>> /opt/signserver >>>> kvm-manager@debian6:/opt/signserver$ echo $ANT_HOME >>>> /usr/share/ant >>>> kvm-manager@debian6:/opt/signserver$ echo $ANT_OPTS >>>> -Xmx512m -XX:MaxPermSize=256m >>>> kvm-manager@debian6:/opt/signserver$ echo $SIGNSERVER_NODEID >>>> node1 >>>> >>>> These environment variables are set in /etc/bash.bashrc >>>> >>>> I change the MaxPermSize to 256 instead of 128. >>>> >>>> kvm-manager@debian6:/opt/signserver$ java -version >>>> java version "1.6.0_26" >>>> Java(TM) SE Runtime Environment (build 1.6.0_26-b03) >>>> Java HotSpot(TM) Client VM (build 20.1-b02, mixed mode, sharing) >>>> >>>> kvm-manager@debian6:/opt/signserver$ ant -version >>>> Apache Ant version 1.8.0 compiled on March 11 2010 >>>> >>>> I don't use client authentication with certificate. I don't know if it >>>> could be linked. >>>> >>>> Thanks for your help, have a nice day ! >>>> >>>> Le 25/07/2012 11:02, Markus Kilås a écrit : >>>>> export APPSRV_HOME= >>>> >>>> >>>> ------------------------------------------------------------------------------ >>>> >>>> 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 >>>> >>> >> >> >> >> ------------------------------------------------------------------------------ >> 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 |
|
From: Markus K. <ma...@pr...> - 2012-07-27 07:40:23
|
Hi Antoine, The documentation for developers is lacking a bit... What we have is doc/DEVELOP.txt which gives an introduction to testing and refers further to the Testing chapter of the manual: http://www.signserver.org/manual/complete.en.html#Testing However, there should also be a note saying that you will have to configure the 8442/8443 ports if you are using GlassFish. Also for the tests the port number should be taken from the signserver_build.properties configuration file but I don't think it is like that everywhere yet. I have registered https://jira.primekey.se/browse/DSS-512 for updating the manual. For the trust anchor error, I think some tests assume there to be a truststore (for instance a copy of your cacerts.jks) available as p12/truststore.jks with password changeit. Look in the test code and you should find some code loading keystores. Best regards, Markus On 2012-07-26 19:34, Antoine Louiset wrote: > You were right ! It works with NetBeans 7.1.2 !!! > > I have one remark for the tests. In many files, you put the number of > the port. For example, the address for the WSDL files. When you change > the number of ports for the http-listener, you have to change it > everywere. By default, glassfish listen to 8181 for https without client > authentication (I change it to 8442 to be the same as jboss, it could be > interesting to put it in the doc). It will be better to set it once for > everywhere. It is just a small improvement which could run the tests > without errors faster. > > However, my error of the trust anchors is always there. > [junit] > Testcase:testReloadConfiguration(org.signserver.adminws.client.AdminWebServiceTest): > Caused an ERROR > [junit] Failed to access the WSDL at: > https://localhost:8181/signserver/AdminWSService/AdminWS?wsdl. > It failed with: > [junit] java.lang.RuntimeException: Unexpected error: > java.security.InvalidAlgorithmParameterException: the trustAnchors > parameter must be non-empty." > > Is there something to do with cacert or anything else to run tests ? > > Thanks a lot Markus, > > Le 25/07/2012 20:35, Markus Kilås a écrit : >> Reverting the changes automagically done in */build-impl.xml, >> */genfiles.properties, */project.properties and */project.xml and use >> NetBeans IDE 7.1.2 should work until the problem is found and fixed. > -- 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 |
|
From: Markus K. <ma...@pr...> - 2012-07-27 08:08:23
|
Hi Antoine, (Please include the mailing list address when replying to threads in the list: sig...@li...). See answers below. On 2012-07-27 09:57, Antoine Louiset wrote: > I try to list all the things to do to install signserver in the good > way. I will send to the community a server script which install > signserver in a new linux server. Great, that sounds like a useful script. > > I think there is a problem with enabling a lot of modules to run the > tests, especially module which should not be used in production (for > example clusterclassloader) because we have to launch tests before > sending in production. I think only tests of activated modules should be > launched. Currently the tests are only meant to be run at development time. They are not built to being run in production. One reason is that they might leave data behind in the database. Best regards, Markus > > Best regards, > > Le 27/07/2012 09:41, Markus Kilås a écrit : >> Hi Antoine, >> >> The documentation for developers is lacking a bit... What we have is >> doc/DEVELOP.txt which gives an introduction to testing and refers >> further to the Testing chapter of the manual: >> http://www.signserver.org/manual/complete.en.html#Testing >> >> However, there should also be a note saying that you will have to >> configure the 8442/8443 ports if you are using GlassFish. Also for the >> tests the port number should be taken from the >> signserver_build.properties configuration file but I don't think it is >> like that everywhere yet. >> >> I have registered https://jira.primekey.se/browse/DSS-512 for updating >> the manual. >> >> For the trust anchor error, I think some tests assume there to be a >> truststore (for instance a copy of your cacerts.jks) available as >> p12/truststore.jks with password changeit. Look in the test code and you >> should find some code loading keystores. >> >> >> Best regards, >> Markus >> >> On 2012-07-26 19:34, Antoine Louiset wrote: >>> You were right ! It works with NetBeans 7.1.2 !!! >>> >>> I have one remark for the tests. In many files, you put the number of >>> the port. For example, the address for the WSDL files. When you change >>> the number of ports for the http-listener, you have to change it >>> everywere. By default, glassfish listen to 8181 for https without client >>> authentication (I change it to 8442 to be the same as jboss, it could be >>> interesting to put it in the doc). It will be better to set it once for >>> everywhere. It is just a small improvement which could run the tests >>> without errors faster. >>> >>> However, my error of the trust anchors is always there. >>> [junit] >>> Testcase:testReloadConfiguration(org.signserver.adminws.client.AdminWebServiceTest): >>> >>> Caused an ERROR >>> [junit] Failed to access the WSDL at: >>> https://localhost:8181/signserver/AdminWSService/AdminWS?wsdl. >>> It failed with: >>> [junit] java.lang.RuntimeException: Unexpected error: >>> java.security.InvalidAlgorithmParameterException: the trustAnchors >>> parameter must be non-empty." >>> >>> Is there something to do with cacert or anything else to run tests ? >>> >>> Thanks a lot Markus, >>> >>> Le 25/07/2012 20:35, Markus Kilås a écrit : >>>> Reverting the changes automagically done in */build-impl.xml, >>>> */genfiles.properties, */project.properties and */project.xml and use >>>> NetBeans IDE 7.1.2 should work until the problem is found and fixed. >> >> > -- 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 |