Not able to build the latest (25373) development version

LabKey Support Forum (Inactive)
Not able to build the latest (25373) development version Leo Dashevskiy  2013-03-25 11:07
Status: Closed
 
Good morning, folks!

After updating from svn, I modify the following 2 files within the server folder in the following way:

dhcp157184:server cytomatic$ diff build.xml_BAK build.xml
28c28
< <condition property="tomcat.home" value="/Library/Tomcat/6.0.35" else="/Library/Tomcat/6.0.35">
---
> <condition property="tomcat.home" value="${env.CATALINA_HOME}" else="${tomcat.home}">
dhcp157184:server cytomatic$ diff configs/pg.properties_BAK configs/pg.properties
21c21
< jdbcPassword=postgres
---
> jdbcPassword=sasa

to include the exact path to the Tomcat Apache server installation and also to include the set up password for my postgres data base system.

Within that same subfolder 'server', I run first 'ant clean', then simply 'ant'.

I get the following:

...
sub_build_gwt:

copy_public_to_module:
     [copy] Copying 4 files to /Library/LabKey/build/modules/pipeline/explodedModule/web

-sub_build_jsp_check:

sub_build_jsp:
     [echo] sub_build_jsp /Library/LabKey/server/../build/modules/core/explodedModule/lib/core_jsp.jar /Library/LabKey/server/modules/core/src ${jspUpToDate}

pre_build_jsp:
    [mkdir] Created dir: /Library/LabKey/build/modules/core/jspTempDir
    [mkdir] Created dir: /Library/LabKey/build/modules/core/jspTempDir/webapp

BUILD FAILED
/Library/LabKey/server/build.xml:2393: The following error occurred while executing this line:
/Library/LabKey/server/build.xml:661: The following error occurred while executing this line:
/Library/LabKey/server/build.xml:1567: The following error occurred while executing this line:
/Library/LabKey/server/build.xml:1619: The following error occurred while executing this line:
/Library/LabKey/server/build.xml:2061: The following error occurred while executing this line:
/Library/LabKey/server/customModules/onprc_ehr/build.xml:27: The following error occurred while executing this line:
/Library/LabKey/server/build.xml:1236: The following error occurred while executing this line:
/Library/LabKey/server/build.xml:1358: The following error occurred while executing this line:
/Library/LabKey/server/build.xml:1452: Compile failed; see the compiler error output for details.

Total time: 2 minutes 16 seconds

copy_jsp_to_webapp:
     [copy] Copying 84 files to /Library/LabKey/build/modules/core/jspTempDir/webapp

sub_jar_module:
      [jar] Building jar: /Library/LabKey/build/modules/mothership/explodedModule/lib/mothership.jar

deployApp:

What am I doing wrong and how can I remedy this to compile the latest version?
Thanks.
-Leo
 
 
jeckels responded:  2013-03-25 11:20
Hi Leo,

There is most likely additional error information higher up in your build output that will provide more detail. Can you attach the full build log?

I checked our automated build system and it hasn't hit similar errors today. I checked for potential issues that might have been introduced and quickly fixed but didn't see anything. Regardless, you could try syncing to the latest version and building again, as it might solve the problem.

Thanks,
Josh
 
Leo Dashevskiy responded:  2013-03-25 11:30
Thanks, Josh!

I'm still a noob at building the server.
Should I redirect the build's output to a file manually or is there a build log file being generated automatically somewhere? If so, where?

-Leo
 
jeckels responded:  2013-03-25 12:49
Hi Leo,

Yes, you can either redirect to a file via the command line, or copy/paste a longer chunk from your console window. There's no log file that's automatically generated when we do a build.

Thanks,
Josh
 
Leo Dashevskiy responded:  2013-03-25 12:59
Ok, so attached are my current steps.
 
jeckels responded:  2013-03-25 13:12
Hi Leo,

I see the error:

    [javac] /Library/LabKey/server/customModules/onprc_ehr/src/org/labkey/onprc_ehr/legacydata/LegacyDataManager.java:18: package com.sun.deploy.services does not exist
    [javac] import com.sun.deploy.services.ServiceManager;
    [javac] ^

I just committed a fix with revision 25379.

Are you building with JDK 1.6 or 1.7? We've migrated to 1.7, though we don't strictly require it yet, but a version difference could explain the difference in behavior.

I'd recommend switching to 1.7 when you have a chance. We'll soon be completely removing support for JDK 1.6.

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

Thanks,
Josh
 
Matthew Bellew responded:  2013-03-25 13:16
Another possibility is that you are not building with the Oracle java implementation. Are you running on Linux?
 
Leo Dashevskiy responded:  2013-03-25 14:42
Ok, thanks guys!

Josh, your fix worked.

This machine is a Mac, and it still does have the older Java 1.6 - I will make sure and upgrade.

Matt, I am also aware of always using the Oracle's Java on my dev Linux box.