Why build Labkey but the ./build/deploy/modules is empty?

LabKey Support Forum (Inactive)
Why build Labkey but the ./build/deploy/modules is empty? wit2wit  2016-10-14 23:42
Status: Closed
 
I am using Ant build to compile the generated a new target, but ./build/deploy/modules is empty. Why?

Thanks
 
 
Jon (LabKey DevOps) responded:  2016-10-16 19:46
Hello,

If you go through your stack trace error, you'll see clearly that it mentions the Java heap space is mentioned:

Caused by: java.lang.OutOfMemoryError: Java heap space
C:\LabKey16.1-42836.12-src\server\build.xml:2040: The following error occurred while executing this line:
C:\LabKey16.1-42836.12-src\server\build.xml:1346: java.lang.OutOfMemoryError: Java heap space

You will need to increase the amount of memory for Java to use for Ant to create the artifacts from the source code.

Please refer to this link on StackOverflow for more details: http://stackoverflow.com/questions/36330540/increase-memory-for-ant

Regards,

Jon
 
wit2wit responded:  2016-10-20 18:55
According to the http://StackOverflow.com/questions/36330540/increase-memory-for-Ant. "Set ANT_OPTS=-Xmx2G-XX:MaxPermSize=512m"should be placed where?

Thanks
 
wit2wit responded:  2016-10-26 22:40
Can you build Labkey successful environment requirements?

Thanks
 
Jon (LabKey DevOps) responded:  2016-10-26 22:48
Hello,

I am sorry, but we really need more details from you in order to better help you. We are not able to properly assist you through single sentence responses, especially for something as complicated as development issues/questions.

The more details you can provide us with what you're looking for, the more effective our answer will be and it will be delivered in a more timely manner.

Please provide a more detailed description of your issue/needs and we will do our best to answer them. We will not be able to help you otherwise.

Regards,

Jon
 
wit2wit responded:  2016-10-28 22:33
I adjusted the the Build File Properties options "Maxinum heap size(Mb) 1024 Maxinum stack size(Mb) 20".the "Java.lang.OutOfMemoryError:Java heap space error" goes away.Please help me diagnosis the remaining errors.

Thanks
 
Jon (LabKey DevOps) responded:  2016-10-29 00:48
Hello,

There are a lot of errors in your logs and it looks like most of them are due to configuration problems.

Have you gone through our "Set up a Development Machine" documentation?

https://www.labkey.org/home/Documentation/wiki-page.view?name=build

Also, what type of IDE are you using here? Are you using IntelliJ or something else?

One of the distinct things is that noticeable is that you are running this on a Windows machine and it also appears that you're not pulling from our SVN repository since the file paths you have listed look like they're downloaded bits that contain source files rather than the code being pulled down from our SVN repository.

For example:

C:\LabKey16.1-42836.12-src\server\build.xml:507: The file C:\LabKey16.1-42836.12-src\server/config.properties does not exist. Please choose a database platform by running 'ant pick_pg' or 'ant pick_mssql'

Did you make sure you had setup all of the appropriate .properties files for your instance before you tried to run an "ant build"? Did you run an "ant pick_pg" to get a PostgreSQL configuration chosen or an "ant pick_mssql" to get an MS SQL configuration chosen for the LabKey instance after setting up the .properties files as mentioned in our development docs that I mentioned earlier?

Regards,

Jon
 
wit2wit responded:  2016-11-29 23:02
I successfully build .. /build/deploy/modules. But an error is up and running.

Thanks
 
Jon (LabKey DevOps) responded:  2016-11-30 00:25
Hello,

Did you look at the error message? It indicates that the Core module couldn't be found and indicates that you need to make sure the Tomcat user can create directories under the <LABKEY_HOME>/modules directory.

Did you read through my last response and go through our Setup A Development Machine documentation?

https://www.labkey.org/home/Documentation/wiki-page.view?name=build

In order to help you, we need more details from you and we need you to answer the questions we've asked. Otherwise, we are not going to be able to assist you further due to the lack of information.

Regards,

Jon
 
wit2wit responded:  2016-12-07 00:57
I checked Labkey-errors and found the "Line31inXMLdocumentfromURL[file:/C:/LabKey16.1-42836.12-src/build/deploy/modules/adjudication/config/module.xml]isinvalid; nested exception is org.xml.sax.SAXParseException; lineNumber: 31; columnNumber: 45; Invalid byte 2 of 2-byte UTF-8 sequence."
I found that there are many differences my build and LabKey16.2-45209.14-community-bin of adjudication module.xml. See annex. Please help me to find out the cause of the error.

thanks
 
Jon (LabKey DevOps) responded:  2016-12-07 15:17
Hello,

Doing a diff between the Adjudication module and the Announcement module is not recommended since they're both designed to do completely different things.

Looking over your error, it looks like you have characters that are not appearing as UTF-8 characters. What version of Tomcat are you running? Depending on the version of Tomcat you have, you might need to do some URIEncoding.

Regards,

Jon
 
wit2wit responded:  2016-12-09 21:32
My Tomcat is 8.0.33. the server.xml see annex. I think is the module.xml could not be resolved.

Thanks
 
Jon (LabKey DevOps) responded:  2016-12-15 22:50
Hello,

Did you read the error and check the module.xml file? It clearly states:

org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 31 in XML document from URL [file:/C:/LabKey16.1-42836.12-src/build/deploy/modules/adjudication/config/module.xml] is invalid; nested exception is org.xml.sax.SAXParseException; lineNumber: 31; columnNumber: 43; Invalid byte 1 of 1-byte UTF-8 sequence.

I couldn't open that module.xml file directly and had to use a vim editor to view it and found this on line 31:

         <property name="buildTime" value="Ê®¶þÔÂ 7 2016, 2:52 ÏÂÎç"/>

That isn't a valid build time value, not when the header of the module.xml file is set to use UTF-8:

         <?xml version="1.0" encoding="UTF-8"?>

That buildTime should look more like this:

        <property name="buildTime" value="December 8 2016, 1:33 PM"/>

Can you make changes to it so the date field looks normal and readable?

Regards,

Jon