Dear Community,
I download the zip ssb-v7.0.1.zip and open in intellij.
when Im trying to build with Ant
i get this error
not sure what i need to do here
Thanks in advance
Dear Community,
I download the zip ssb-v7.0.1.zip and open in intellij.
when Im trying to build with Ant
i get this error
not sure what i need to do here
Thanks in advance
Hi Sara,
The SSB is used to build the IIQ war file for multiple environments, like prod, acceptance, test, dev and sandbox (and what else you can think of).
In de OutOfTheBox version there are files for an environment called sandbox.
To build for this environment using the command-line set the environment variable SPTARGET
to sandbox and run the maven build
.
When running the build with InteliJ, the simplest way to set the environment is using the server.properties
-file.
##Enter a server name equal to a build type: local, dev, test, or prod, or whichever environments you have added
#The hostnames used in servers.properties are case-sensitive. To get the proper value, you need to check an environment variable for each host entry.
#For Windows, use the value exactly as specified by the COMPUTERNAME environment variable (e.g. echo %COMPUTERNAME%).
#For Linux/Unix/Mac, use the value exactly as specified by the HOSTNAME environment variable (e.g. echo $HOSTNAME).
YOURMACHINENAME=sandbox
SAILPTAPP=prod
SAILPTDEV=dev
SAILPTTEST=test
Change the server.properties and replace YOURMACHINENAME
with the name of your computername/hostname.
In Windows use the following to get your YOURMACHINENAME
:
– Remold
See also the instructions in the SSB User Guide - Setting the environment name for a build
– Remold
Hi Remold,
thank you for you answer, after adding the hostname=computer name in the servers.properties,
Im getting the exactly same error
You need to set it as:
your_computername=sandbox
Where you need to replace your_computername
with the name of your computer.
– Remold
Thank you i see some progresss now the error is:
where i should place identiyiq zip file in my c?
C:\base\ga\identityiq-8.3.zip
Hi @fugitiva
Add IdentityIQ.zip file into the <SSB install directory>\base\ga folder
. You will be able to find more information on this under IdentityIQ Product Files heading in Services Standard Build User Guide document.
Hi Thank Jarin, im also reading that pdf, but it not very helpful…
An update so far:
as @Remold mention i update the sandbox.build.properties
and also the sandbox.build.properties, sandbox.iiq.properites
i download the patch p1 and correct the location configured in build.filelayout for the zip and patch jar file
now when I run the build i get
It seems it was the version of java, if I switch to java 11 i dont have that error, but i have the below
HI @fugitiva ,
Is this resolved?
It looks like the Application file (the one you have blanked out) can not be validated (xml)
.\config\Application ...
If you open this file, see if this file is a pure XML file. Most likely you placed a target-property in it which is not in the sandbox.target.properties file (with the %%TOBEREPLACED%%
format). At least that is the common mistake I make to get the error
– Remold
Hi Remold thank you for you help
Pleas find the screenshot
sandbox.target.properties:
%%GENERAL_ESSENTIALS_GRACE%%=30
%%GENERAL_RAPIDSETUP_GRACE%%=90
Still getting the error
Hi @fugitiva ,
This still looks like the file Application xml file looks to be incorrect, does the build folder is generated?
yes, but empty, it does not contain anything
The ant-build log shows the target ‘createCustomJar’ was successful, so you should have a a build folder in the project root.
Can you open the file:
C:\Apps\tepos\my_local_iiq\ssb-v7.0.1\build\extract\WEB-INF\config\custom\Application\ESSENTIALS\LDAP.xml
and manually validate this file?
This file is not 100% correct XML, hence the validation error.
Most likely this file still contains a target-property which was not replaced (search for %%), but there might also be other issues with it.
An other option is to import this file into a running IIQ instance using debug (not via import from File).
This would give an error and when looking in the sailpoint log file, you will get a more detailed error message (compared to ‘Could not validate document’).
– Remold
PS Sorry for the 21d delay in my response, but I needed a holiday brake
Thank you, good tip about the debug page. Let me try
The file xml looks ok, i also validate from sailpoint debug page
Question::
Most likely this file still contains a target-property which was not replaced (search for %%), but there might also be other issues with it.
What do you mean by this? where I search for %%??
Thanks in advance
Search for %% in the content of file:
C:\Apps\tepos\my_local_iiq\ssb-v7.0.1\build\extract\WEB-INF\config\custom\Application\ESSENTIALS\LDAP.xml
Bu I see another error (which was not shared initially) in one of you screenshots during the creation of the DTD. This looks like a problem with the build variable IIQHome
.
Please take a look at:
https://community.sailpoint.com/t5/IdentityIQ-Forum/SSB-build-export-failure/td-p/26297
– Remold