Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build fails - FormHelper.java:27: cannot access ims.framework.FormName #21

Open
jonnyry opened this issue Feb 20, 2016 · 17 comments
Open

Comments

@jonnyry
Copy link

jonnyry commented Feb 20, 2016

This is a build using the latest (10.5.1) version of openMAXIMS.

Output:

X:\Code\OpenMaxims\Source Library\openmaxims_workspace\WebApp>ant -f WebAppBuild.xml
Buildfile: WebAppBuild.xml

display:
     [echo] ant.file = X:\Code\OpenMaxims\Source Library\openmaxims_workspace\WebApp\WebAppBuild.xml
     [echo] ant.home = X:\Java\apache-ant-1.6.5\bin\..
     [echo] ant.project.name = openMAXIMS
     [echo] ant.java.version = 1.5
     [echo] ant.version = Apache Ant version 1.6.5 compiled on June 2 2005
     [echo] basedir = X:\Code\OpenMaxims\Source Library\openmaxims_workspace\WebApp
     [echo] user.name = jonny
     [echo] user.home = C:\Users\jonny
     [echo] java.home = C:\Program Files (x86)\Java\jdk1.5.0_22\jre

init:

Alerts:
    [javac] Compiling 10 source files to X:\Code\OpenMaxims\Source Library\openmaxims_workspace\Alerts\bin
    [javac] X:\Code\OpenMaxims\Source Library\openmaxims_workspace\Alerts\src\ims\alerts\FormHelper.java:27: cannot access ims.framework.FormName
    [javac] bad class file: X:\Code\OpenMaxims\Source Library\openmaxims_workspace\WebApp\WEB-INF\lib\base.jar(ims/framework/FormName.class)
    [javac] class file has wrong version 50.0, should be 49.0
    [javac] Please remove or make sure it appears in the correct subdirectory of the classpath.
    [javac] public final class FormHelper extends ims.framework.FormName
    [javac]                                                    ^
    [javac] 1 error

BUILD FAILED
X:\Code\OpenMaxims\Source Library\openmaxims_workspace\WebApp\build_common.xml:187: Compile failed; see the compiler error output for details.

Total time: 1 second
@anupsaund
Copy link

+1 I am having the same issue.

@anupsaund
Copy link

λ build_openMAXIMS.bat

cd openmaxims_workspace\webapp

ant -f WebAppBuild.xml
Buildfile: WebAppBuild.xml

display:
     [echo] ant.file = c:\openMAXIMS\openmaxims_workspace\WebApp\WebAppBuild.xml
     [echo] ant.home = C:\Program Files\ANT\bin\..
     [echo] ant.project.name = openMAXIMS
     [echo] ant.java.version = 1.5
     [echo] ant.version = Apache Ant version 1.6.5 compiled on June 2 2005
     [echo] basedir = C:\openMAXIMS\openmaxims_workspace\WebApp
     [echo] user.name = Administrator
     [echo] user.home = C:\Users\Administrator
     [echo] java.home = C:\Program Files (x86)\Java\jdk1.5.0_22\jre

init:

Alerts:
    [javac] Compiling 10 source files to C:\openMAXIMS\openmaxims_workspace\Alerts\bin
    [javac] C:\openMAXIMS\openmaxims_workspace\Alerts\src\ims\alerts\FormHelper.java:27: cannot access ims.framework.FormName
    [javac] bad class file: C:\openMAXIMS\openmaxims_workspace\WebApp\WEB-INF\lib\base.jar(ims/framework/FormName.class)
    [javac] class file has wrong version 50.0, should be 49.0
    [javac] Please remove or make sure it appears in the correct subdirectory of the classpath.
    [javac] public final class FormHelper extends ims.framework.FormName
    [javac]                                                    ^
    [javac] 1 error

BUILD FAILED
C:\openMAXIMS\openmaxims_workspace\WebApp\build_common.xml:187: Compile failed; see the compiler error output for details.

Total time: 1 second
λ java -version
java version "1.5.0_22"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_22-b03)
Java HotSpot(TM) Client VM (build 1.5.0_22-b03, mixed mode, sharing)

@openmaxims
Copy link
Contributor

Hi,

You seem to be using Java 1.5. Please use Java 1.6u45.

Regards,

Paul Cooper
Research Director
+44 7977 464061

[cid:536F4EF7-950B-40CD-9AD1-8AF5A114991B]

On 5 Apr 2016, at 12:50, Anup Saund <[email protected]mailto:[email protected]> wrote:

`λ build_openMAXIMS.bat

cd openmaxims_workspace\webapp

ant -f WebAppBuild.xml
Buildfile: WebAppBuild.xml

display:
[echo] ant.file = c:\openMAXIMS\openmaxims_workspace\WebApp\WebAppBuild.xml
[echo] ant.home = C:\Program Files\ANT\bin..
[echo] ant.project.name = openMAXIMS
[echo] ant.java.version = 1.5
[echo] ant.version = Apache Ant version 1.6.5 compiled on June 2 2005
[echo] basedir = C:\openMAXIMS\openmaxims_workspace\WebApp
[echo] user.name = Administrator
[echo] user.home = C:\Users\Administrator
[echo] java.home = C:\Program Files (x86)\Java\jdk1.5.0_22\jre

init:

Alerts:
[javac] Compiling 10 source files to C:\openMAXIMS\openmaxims_workspace\Alerts\bin
[javac] C:\openMAXIMS\openmaxims_workspace\Alerts\src\ims\alerts\FormHelper.java:27: cannot access ims.framework.FormName
[javac] bad class file: C:\openMAXIMS\openmaxims_workspace\WebApp\WEB-INF\lib\base.jar(ims/framework/FormName.class)
[javac] class file has wrong version 50.0, should be 49.0
[javac] Please remove or make sure it appears in the correct subdirectory of the classpath.
[javac] public final class FormHelper extends ims.framework.FormName
[javac] ^
[javac] 1 error

BUILD FAILED
C:\openMAXIMS\openmaxims_workspace\WebApp\build_common.xml:187: Compile failed; see the compiler error output for details.

Total time: 1 second`


You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHubhttps://github.com//issues/21#issuecomment-205768017

@anupsaund
Copy link

OK, Thanks

I downloaded and changed the Java version and got a little bit further...
I now get a different error.

λ build_openMAXIMS.bat

cd openmaxims_workspace\webapp

ant -f WebAppBuild.xml
Buildfile: WebAppBuild.xml

display:
     [echo] ant.file = c:\openMAXIMS\openmaxims_workspace\WebApp\WebAppBuild.xml
     [echo] ant.home = C:\Program Files\ANT\bin\..
     [echo] ant.project.name = openMAXIMS
     [echo] ant.java.version = 1.5
     [echo] ant.version = Apache Ant version 1.6.5 compiled on June 2 2005
     [echo] basedir = C:\openMAXIMS\openmaxims_workspace\WebApp
     [echo] user.name = Administrator
     [echo] user.home = C:\Users\Administrator
     [echo] java.home = C:\Program Files\Java\jdk1.6.0_45\jre

init:

Alerts:
    [javac] Compiling 10 source files to C:\openMAXIMS\openmaxims_workspace\Alerts\bin

DomainObjects:
    [javac] Compiling 1435 source files to C:\openMAXIMS\openmaxims_workspace\DomainObjects\bin
    [javac] Note: Some input files use or override a deprecated API.
    [javac] Note: Recompile with -Xlint:deprecation for details.
    [javac] Note: Some input files use unchecked or unsafe operations.
    [javac] Note: Recompile with -Xlint:unchecked for details.

ValueObjects:
    [javac] Compiling 18147 source files to C:\openMAXIMS\openmaxims_workspace\ValueObjects\bin


    [javac] The system is out of resources.
    [javac] Consult the following stack trace for details.
    [javac] java.lang.OutOfMemoryError: GC overhead limit exceeded
    [javac]     at com.sun.tools.javac.util.Position$LineMapImpl.build(Position.java:139)
    [javac]     at com.sun.tools.javac.util.Position.makeLineMap(Position.java:63)
    [javac]     at com.sun.tools.javac.parser.Scanner.getLineMap(Scanner.java:1105)
    [javac]     at com.sun.tools.javac.main.JavaCompiler.parse(JavaCompiler.java:512)
    [javac]     at com.sun.tools.javac.main.JavaCompiler.parse(JavaCompiler.java:550)
    [javac]     at com.sun.tools.javac.main.JavaCompiler.parseFiles(JavaCompiler.java:804)
    [javac]     at com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:727)
    [javac]     at com.sun.tools.javac.main.Main.compile(Main.java:353)
    [javac]     at com.sun.tools.javac.main.Main.compile(Main.java:279)
    [javac]     at com.sun.tools.javac.main.Main.compile(Main.java:270)
    [javac]     at com.sun.tools.javac.Main.compile(Main.java:69)
    [javac]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [javac]     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    [javac]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    [javac]     at java.lang.reflect.Method.invoke(Method.java:597)
    [javac]     at org.apache.tools.ant.taskdefs.compilers.Javac13.execute(Javac13.java:55)
    [javac]     at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:931)
    [javac]     at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:757)
    [javac]     at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
    [javac]     at org.apache.tools.ant.Task.perform(Task.java:364)
    [javac]     at org.apache.tools.ant.Target.execute(Target.java:341)
    [javac]     at org.apache.tools.ant.Target.performTasks(Target.java:369)
    [javac]     at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
    [javac]     at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
    [javac]     at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
    [javac]     at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
    [javac]     at org.apache.tools.ant.Main.runBuild(Main.java:668)
    [javac]     at org.apache.tools.ant.Main.startAnt(Main.java:187)
    [javac]     at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
    [javac]     at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)

BUILD FAILED
C:\openMAXIMS\openmaxims_workspace\WebApp\build_common.xml:182: Compile failed; see the compiler error output for details.

Total time: 2 minutes 33 seconds

@openmaxims
Copy link
Contributor

Hi

It seems to us that your computer has run out of memory – see about half way down.

openMAXIMS is a very large project so you need to ensure that you have sufficient resources to build it and then run it.

Regards,
Paul
Sent from my iPhone

On 5 Apr 2016, at 15:17, Anup Saund <[email protected]mailto:[email protected]> wrote:

OK, Thanks

I downloaded and changed the Java version and got a little bit further...
I now get a different error.

λ build_openMAXIMS.bat

cd openmaxims_workspace\webapp

ant -f WebAppBuild.xml
Buildfile: WebAppBuild.xml

display:
[echo] ant.file = c:\openMAXIMS\openmaxims_workspace\WebApp\WebAppBuild.xml
[echo] ant.home = C:\Program Files\ANT\bin..
[echo] ant.project.name = openMAXIMS
[echo] ant.java.version = 1.5
[echo] ant.version = Apache Ant version 1.6.5 compiled on June 2 2005
[echo] basedir = C:\openMAXIMS\openmaxims_workspace\WebApp
[echo] user.name = Administrator
[echo] user.home = C:\Users\Administrator
[echo] java.home = C:\Program Files\Java\jdk1.6.0_45\jre

init:

Alerts:
[javac] Compiling 10 source files to C:\openMAXIMS\openmaxims_workspace\Alerts\bin

DomainObjects:
[javac] Compiling 1435 source files to C:\openMAXIMS\openmaxims_workspace\DomainObjects\bin
[javac] Note: Some input files use or override a deprecated API.
[javac] Note: Recompile with -Xlint:deprecation for details.
[javac] Note: Some input files use unchecked or unsafe operations.
[javac] Note: Recompile with -Xlint:unchecked for details.

ValueObjects:
[javac] Compiling 18147 source files to C:\openMAXIMS\openmaxims_workspace\ValueObjects\bin

[javac] The system is out of resources.
[javac] Consult the following stack trace for details.
[javac] java.lang.OutOfMemoryError: GC overhead limit exceeded
[javac]     at com.sun.tools.javac.util.Position$LineMapImpl.build(Position.java:139)
[javac]     at com.sun.tools.javac.util.Position.makeLineMap(Position.java:63)
[javac]     at com.sun.tools.javac.parser.Scanner.getLineMap(Scanner.java:1105)
[javac]     at com.sun.tools.javac.main.JavaCompiler.parse(JavaCompiler.java:512)
[javac]     at com.sun.tools.javac.main.JavaCompiler.parse(JavaCompiler.java:550)
[javac]     at com.sun.tools.javac.main.JavaCompiler.parseFiles(JavaCompiler.java:804)
[javac]     at com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:727)
[javac]     at com.sun.tools.javac.main.Main.compile(Main.java:353)
[javac]     at com.sun.tools.javac.main.Main.compile(Main.java:279)
[javac]     at com.sun.tools.javac.main.Main.compile(Main.java:270)
[javac]     at com.sun.tools.javac.Main.compile(Main.java:69)
[javac]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[javac]     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[javac]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[javac]     at java.lang.reflect.Method.invoke(Method.java:597)
[javac]     at org.apache.tools.ant.taskdefs.compilers.Javac13.execute(Javac13.java:55)
[javac]     at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:931)
[javac]     at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:757)
[javac]     at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
[javac]     at org.apache.tools.ant.Task.perform(Task.java:364)
[javac]     at org.apache.tools.ant.Target.execute(Target.java:341)
[javac]     at org.apache.tools.ant.Target.performTasks(Target.java:369)
[javac]     at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
[javac]     at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
[javac]     at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
[javac]     at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
[javac]     at org.apache.tools.ant.Main.runBuild(Main.java:668)
[javac]     at org.apache.tools.ant.Main.startAnt(Main.java:187)
[javac]     at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
[javac]     at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)

BUILD FAILED
C:\openMAXIMS\openmaxims_workspace\WebApp\build_common.xml:182: Compile failed; see the compiler error output for details.

Total time: 2 minutes 33 seconds


You are receiving this because you commented.
Reply to this email directly or view it on GitHubhttps://github.com//issues/21#issuecomment-205823847

@anupsaund
Copy link

Hi Paul, I tried running it on a machine that has 16GB or RAM but I still get the out of memory error?

image

c:\openMAXIMS\openMAXIMS-master\Source Library
λ build_openMAXIMS.bat

cd openmaxims_workspace\webapp

ant -f WebAppBuild.xml
Buildfile: WebAppBuild.xml

display:
     [echo] ant.file = c:\openMAXIMS\openMAXIMS-master\Source Library\openmaxims_workspace\WebApp\WebAppBuild.xml
     [echo] ant.home = C:\Program Files\ANT\bin\..
     [echo] ant.project.name = openMAXIMS
     [echo] ant.java.version = 1.5
     [echo] ant.version = Apache Ant version 1.6.5 compiled on June 2 2005
     [echo] basedir = C:\openMAXIMS\openMAXIMS-master\Source Library\openmaxims_workspace\WebApp
     [echo] user.name = Administrator
     [echo] user.home = C:\Users\Administrator
     [echo] java.home = C:\Program Files\Java\jdk1.6.0_45\jre

init:
    [mkdir] Created dir: C:\openMAXIMS\openMAXIMS-master\Source Library\openmaxims_workspace\Admin\bin
    [mkdir] Created dir: C:\openMAXIMS\openMAXIMS-master\Source Library\openmaxims_workspace\Alerts\bin
    [mkdir] Created dir: C:\openMAXIMS\openMAXIMS-master\Source Library\openmaxims_workspace\Core\bin
    [mkdir] Created dir: C:\openMAXIMS\openMAXIMS-master\Source Library\openmaxims_workspace\ClinicalAdmin\bin
    [mkdir] Created dir: C:\openMAXIMS\openMAXIMS-master\Source Library\openmaxims_workspace\Clinical\bin
    [mkdir] Created dir: C:\openMAXIMS\openMAXIMS-master\Source Library\openmaxims_workspace\DomainObjects\bin
    [mkdir] Created dir: C:\openMAXIMS\openMAXIMS-master\Source Library\openmaxims_workspace\DTOClients\bin
    [mkdir] Created dir: C:\openMAXIMS\openMAXIMS-master\Source Library\openmaxims_workspace\ValueObjects\bin

Alerts:
    [javac] Compiling 10 source files to C:\openMAXIMS\openMAXIMS-master\Source Library\openmaxims_workspace\Alerts\bin

DomainObjects:
    [javac] Compiling 1435 source files to C:\openMAXIMS\openMAXIMS-master\Source Library\openmaxims_workspace\DomainObjects\bin
    [javac] Note: Some input files use or override a deprecated API.
    [javac] Note: Recompile with -Xlint:deprecation for details.
    [javac] Note: Some input files use unchecked or unsafe operations.
    [javac] Note: Recompile with -Xlint:unchecked for details.

ValueObjects:
    [javac] Compiling 18147 source files to C:\openMAXIMS\openMAXIMS-master\Source Library\openmaxims_workspace\ValueObjects\bin


    [javac] The system is out of resources.
    [javac] Consult the following stack trace for details.
    [javac] java.lang.OutOfMemoryError: Java heap space
    [javac]     at com.sun.tools.javac.util.Position$LineMapImpl.build(Position.java:139)
    [javac]     at com.sun.tools.javac.util.Position.makeLineMap(Position.java:63)
    [javac]     at com.sun.tools.javac.parser.Scanner.getLineMap(Scanner.java:1105)
    [javac]     at com.sun.tools.javac.main.JavaCompiler.parse(JavaCompiler.java:512)
    [javac]     at com.sun.tools.javac.main.JavaCompiler.parse(JavaCompiler.java:550)
    [javac]     at com.sun.tools.javac.main.JavaCompiler.parseFiles(JavaCompiler.java:804)
    [javac]     at com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:727)
    [javac]     at com.sun.tools.javac.main.Main.compile(Main.java:353)
    [javac]     at com.sun.tools.javac.main.Main.compile(Main.java:279)
    [javac]     at com.sun.tools.javac.main.Main.compile(Main.java:270)
    [javac]     at com.sun.tools.javac.Main.compile(Main.java:69)
    [javac]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [javac]     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    [javac]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    [javac]     at java.lang.reflect.Method.invoke(Method.java:597)
    [javac]     at org.apache.tools.ant.taskdefs.compilers.Javac13.execute(Javac13.java:55)
    [javac]     at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:931)
    [javac]     at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:757)
    [javac]     at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
    [javac]     at org.apache.tools.ant.Task.perform(Task.java:364)
    [javac]     at org.apache.tools.ant.Target.execute(Target.java:341)
    [javac]     at org.apache.tools.ant.Target.performTasks(Target.java:369)
    [javac]     at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
    [javac]     at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
    [javac]     at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
    [javac]     at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
    [javac]     at org.apache.tools.ant.Main.runBuild(Main.java:668)
    [javac]     at org.apache.tools.ant.Main.startAnt(Main.java:187)
    [javac]     at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
    [javac]     at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)

BUILD FAILED
C:\openMAXIMS\openMAXIMS-master\Source Library\openmaxims_workspace\WebApp\build_common.xml:182: Compile failed; see the compiler error output for details.

Total time: 2 minutes 4 seconds

Can you recommend anything else for me to try please?

@openmaxims
Copy link
Contributor

Hi ??

Have you tried the advice contained in this article:

http://javaeesupportpatterns.blogspot.co.uk/2011/08/gc-overhead-limit-exceeded-problem-and.html

Regards,

Paul Cooper
Research Director
+44 7977 464061

[cid:536F4EF7-950B-40CD-9AD1-8AF5A114991B]

On 8 Apr 2016, at 13:18, Anup Saund <[email protected]mailto:[email protected]> wrote:

Hi Paul, I tried running it on a machine that has 16GB or RAM but I still get the out of memory error?

[image]https://cloud.githubusercontent.com/assets/6728822/14383326/df1354aa-fd83-11e5-83d3-536ac3d1ffcb.png

c:\openMAXIMS\openMAXIMS-master\Source Library
λ build_openMAXIMS.bat

cd openmaxims_workspace\webapp

ant -f WebAppBuild.xml
Buildfile: WebAppBuild.xml

display:
[echo] ant.file = c:\openMAXIMS\openMAXIMS-master\Source Library\openmaxims_workspace\WebApp\WebAppBuild.xml
[echo] ant.home = C:\Program Files\ANT\bin..
[echo] ant.project.name = openMAXIMS
[echo] ant.java.version = 1.5
[echo] ant.version = Apache Ant version 1.6.5 compiled on June 2 2005
[echo] basedir = C:\openMAXIMS\openMAXIMS-master\Source Library\openmaxims_workspace\WebApp
[echo] user.name = Administrator
[echo] user.home = C:\Users\Administrator
[echo] java.home = C:\Program Files\Java\jdk1.6.0_45\jre

init:
[mkdir] Created dir: C:\openMAXIMS\openMAXIMS-master\Source Library\openmaxims_workspace\Admin\bin
[mkdir] Created dir: C:\openMAXIMS\openMAXIMS-master\Source Library\openmaxims_workspace\Alerts\bin
[mkdir] Created dir: C:\openMAXIMS\openMAXIMS-master\Source Library\openmaxims_workspace\Core\bin
[mkdir] Created dir: C:\openMAXIMS\openMAXIMS-master\Source Library\openmaxims_workspace\ClinicalAdmin\bin
[mkdir] Created dir: C:\openMAXIMS\openMAXIMS-master\Source Library\openmaxims_workspace\Clinical\bin
[mkdir] Created dir: C:\openMAXIMS\openMAXIMS-master\Source Library\openmaxims_workspace\DomainObjects\bin
[mkdir] Created dir: C:\openMAXIMS\openMAXIMS-master\Source Library\openmaxims_workspace\DTOClients\bin
[mkdir] Created dir: C:\openMAXIMS\openMAXIMS-master\Source Library\openmaxims_workspace\ValueObjects\bin

Alerts:
[javac] Compiling 10 source files to C:\openMAXIMS\openMAXIMS-master\Source Library\openmaxims_workspace\Alerts\bin

DomainObjects:
[javac] Compiling 1435 source files to C:\openMAXIMS\openMAXIMS-master\Source Library\openmaxims_workspace\DomainObjects\bin
[javac] Note: Some input files use or override a deprecated API.
[javac] Note: Recompile with -Xlint:deprecation for details.
[javac] Note: Some input files use unchecked or unsafe operations.
[javac] Note: Recompile with -Xlint:unchecked for details.

ValueObjects:
[javac] Compiling 18147 source files to C:\openMAXIMS\openMAXIMS-master\Source Library\openmaxims_workspace\ValueObjects\bin

[javac] The system is out of resources.
[javac] Consult the following stack trace for details.
[javac] java.lang.OutOfMemoryError: Java heap space
[javac]     at com.sun.tools.javac.util.Position$LineMapImpl.build(Position.java:139)
[javac]     at com.sun.tools.javac.util.Position.makeLineMap(Position.java:63)
[javac]     at com.sun.tools.javac.parser.Scanner.getLineMap(Scanner.java:1105)
[javac]     at com.sun.tools.javac.main.JavaCompiler.parse(JavaCompiler.java:512)
[javac]     at com.sun.tools.javac.main.JavaCompiler.parse(JavaCompiler.java:550)
[javac]     at com.sun.tools.javac.main.JavaCompiler.parseFiles(JavaCompiler.java:804)
[javac]     at com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:727)
[javac]     at com.sun.tools.javac.main.Main.compile(Main.java:353)
[javac]     at com.sun.tools.javac.main.Main.compile(Main.java:279)
[javac]     at com.sun.tools.javac.main.Main.compile(Main.java:270)
[javac]     at com.sun.tools.javac.Main.compile(Main.java:69)
[javac]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[javac]     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[javac]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[javac]     at java.lang.reflect.Method.invoke(Method.java:597)
[javac]     at org.apache.tools.ant.taskdefs.compilers.Javac13.execute(Javac13.java:55)
[javac]     at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:931)
[javac]     at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:757)
[javac]     at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
[javac]     at org.apache.tools.ant.Task.perform(Task.java:364)
[javac]     at org.apache.tools.ant.Target.execute(Target.java:341)
[javac]     at org.apache.tools.ant.Target.performTasks(Target.java:369)
[javac]     at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
[javac]     at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
[javac]     at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
[javac]     at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
[javac]     at org.apache.tools.ant.Main.runBuild(Main.java:668)
[javac]     at org.apache.tools.ant.Main.startAnt(Main.java:187)
[javac]     at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
[javac]     at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)

BUILD FAILED
C:\openMAXIMS\openMAXIMS-master\Source Library\openmaxims_workspace\WebApp\build_common.xml:182: Compile failed; see the compiler error output for details.

Total time: 2 minutes 4 seconds

Can you recommend anything else for me to try please?


You are receiving this because you commented.
Reply to this email directly or view it on GitHubhttps://github.com//issues/21#issuecomment-207408144

@anupsaund
Copy link

Hi Paul,

I tried modifying the setvars.bat to this;

set PATH=C:\Program Files\Java\jdk1.6.0_45\bin;C:\Program Files\ANT\bin;%path%
set ANT_OPTS="-Xmx1024m -XX:-UseGCOverheadLimit"
set JAVA_OPTS="-XX:-UseGCOverheadLimit"

I still get the out of memory error when I run build.

@anupsaund
Copy link

Hi Guys,

I tried this

set ANT_OPTS="-Xmx8G"
set JAVA_OPTS="-Xmx8G"

The build script does not fail on memory now - but I get a new fresh error...

c:\openMAXIMS\openMAXIMS-master\Source Library
λ build_openMAXIMS.bat

cd openmaxims_workspace\webapp

ant -f WebAppBuild.xml
Buildfile: WebAppBuild.xml

display:
     [echo] ant.file = c:\openMAXIMS\openMAXIMS-master\Source Library\openmaxims_workspace\WebApp\WebAppBuild.x
ml
     [echo] ant.home = C:\Program Files\ANT\bin\..
     [echo] ant.project.name = openMAXIMS
     [echo] ant.java.version = 1.5
     [echo] ant.version = Apache Ant version 1.6.5 compiled on June 2 2005
     [echo] basedir = C:\openMAXIMS\openMAXIMS-master\Source Library\openmaxims_workspace\WebApp
     [echo] user.name = Administrator
     [echo] user.home = C:\Users\Administrator
     [echo] java.home = C:\Program Files\Java\jdk1.6.0_45\jre

init:

Alerts:

DomainObjects:

ValueObjects:
    [javac] Compiling 18147 source files to C:\openMAXIMS\openMAXIMS-master\Source Library\openmaxims_workspace
\ValueObjects\bin
    [javac] C:\openMAXIMS\openMAXIMS-master\Source Library\openmaxims_workspace\ValueObjects\src\ims\emergency\
vo\beans\emergencyepisodeliteVoBean.java:31: class EmergencyEpisodeLiteVoBean is public, should be declared in
a file named EmergencyEpisodeLiteVoBean.java
    [javac] public class EmergencyEpisodeLiteVoBean extends ims.vo.ValueObjectBean
    [javac]        ^
    [javac] C:\openMAXIMS\openMAXIMS-master\Source Library\openmaxims_workspace\ValueObjects\src\ims\emergency\
vo\domain\emergencyepisodeliteVoAssembler.java:43: class EmergencyEpisodeLiteVoAssembler is public, should be d
eclared in a file named EmergencyEpisodeLiteVoAssembler.java
    [javac] public class EmergencyEpisodeLiteVoAssembler
    [javac]        ^
    [javac] C:\openMAXIMS\openMAXIMS-master\Source Library\openmaxims_workspace\ValueObjects\src\ims\emergency\
vo\emergencyepisodeliteVo.java:34: class EmergencyEpisodeLiteVo is public, should be declared in a file named E
mergencyEpisodeLiteVo.java
    [javac] public class EmergencyEpisodeLiteVo extends ims.core.admin.vo.EmergencyEpisodeRefVo implements ims.
vo.ImsCloneable, Comparable
    [javac]        ^
    [javac] C:\openMAXIMS\openMAXIMS-master\Source Library\openmaxims_workspace\ValueObjects\src\ims\emergency\
vo\emergencyepisodeliteVoCollection.java:40: class EmergencyEpisodeLiteVoCollection is public, should be declar
ed in a file named EmergencyEpisodeLiteVoCollection.java
    [javac] public class EmergencyEpisodeLiteVoCollection extends ims.vo.ValueObjectCollection implements ims.v
o.ImsCloneable, Iterable<EmergencyEpisodeLiteVo>
    [javac]        ^
    [javac] Note: Some input files use unchecked or unsafe operations.
    [javac] Note: Recompile with -Xlint:unchecked for details.
    [javac] 4 errors

BUILD FAILED
C:\openMAXIMS\openMAXIMS-master\Source Library\openmaxims_workspace\WebApp\build_common.xml:182: Compile failed
; see the compiler error output for details.

Total time: 1 minute 0 seconds

@anupsaund
Copy link

Hi Paul,

I renamed the files - and managed to complete a build to produce a .war file.
(There were 4 in total across two directories).
Already logged as #20 ?

I have created a fork, so I can send a pull request of those file name changes back into the main branch....

Thanks for helping me through this. :)

I have deployed the WAR file but I get a directory listing when I browse to the app in Internet Explorer,

The next step for me is to run through the post build instructions to see if I can it running. - I will log any issues from that separately.

@nusreta
Copy link

nusreta commented Aug 10, 2016

Hi guys,

After resolving issues above, I got: package org.apache.commons.dbcp.dbcp does not exist (import org.apache.commons.dbcp.dbcp.BasicDataSource). Any ideas, what to do? Thanks

@dgray16
Copy link

dgray16 commented Nov 29, 2016

nsinanovic,
possible solution:
go to ims.admin.helper.QuartzProperties.java:32
and change it to import org.apache.tomcat.dbcp2.BasicDataSource; (For Tomcat 8)

If this package is missing, it means that lib cannot be taken from tomcat home folder.
So, you could try to add it manually to WEB-INF/lib folder and add it to javac classpath.

@JohnnyLe
Copy link

JohnnyLe commented Mar 22, 2017

Hi guys,

After following with solutions above, i got some errors. Any ideas, what can i do next? Thanks

image

@dgray16
Copy link

dgray16 commented Mar 22, 2017

@jonnyry
missing commonds-dbcp dependency.
Think about my reply above.

@JohnnyLe
Copy link

Hi @dgray16

I already added both commonds-dbcp.jar & tomcat-dbcp.jar but result is the same.
I'm testing with Tomcat 5.5, JDK1.6

Do you have any idea?

@dgray16
Copy link

dgray16 commented Mar 22, 2017

If JVM compiler says that it is unknown, it means that it is unknown.
Something wrong with namespaces.
Try to feed those dependencies directly to JRE (default JRE/JDK lib folder).

@JohnnyLe
Copy link

Hi @dgray16

Thank you for your help. I do with your instruction but i still get same errors. The full errors is below. Please help me.

`Buildfile: WebAppBuild.xml

display:
[echo] ant.file = C:\openMAXIMS-master\Source Library\openmaxims_workspace
WebApp\WebAppBuild.xml
[echo] ant.home = C:\Apache Software Foundation\apache-ant-1.6.5\bin..
[echo] ant.project.name = openMAXIMS
[echo] ant.java.version = 1.5
[echo] ant.version = Apache Ant version 1.6.5 compiled on June 2 2005
[echo] basedir = C:\openMAXIMS-master\Source Library\openmaxims_workspace\W
ebApp
[echo] user.name = Administrator
[echo] user.home = C:\Users\Administrator
[echo] java.home = C:\Program Files\Java\jdk1.6.0_45\jre

init:

Alerts:

DomainObjects:

ValueObjects:

DTOClients:
[javac] Compiling 1 source file to C:\openMAXIMS-master\Source Library\openm
axims_workspace\DTOClients\bin

Admin:
[javac] Compiling 1805 source files to C:\openMAXIMS-master\Source Library\o
penmaxims_workspace\Admin\bin
[javac] C:\openMAXIMS-master\Source Library\openmaxims_workspace\Admin\src\i
ms\admin\helper\BatchScheduleSTHKServlet.java:34: package javax.servlet does not
exist
[javac] import javax.servlet.ServletException;
[javac] ^
[javac] C:\openMAXIMS-master\Source Library\openmaxims_workspace\Admin\src\i
ms\admin\helper\BatchScheduleSTHKServlet.java:35: package javax.servlet.http doe
s not exist
[javac] import javax.servlet.http.HttpServlet;
[javac] ^
[javac] C:\openMAXIMS-master\Source Library\openmaxims_workspace\Admin\src\i
ms\admin\helper\BatchScheduleSTHKServlet.java:47: cannot find symbol
[javac] symbol: class HttpServlet
[javac] public class BatchScheduleSTHKServlet extends HttpServlet
[javac] ^
[javac] C:\openMAXIMS-master\Source Library\openmaxims_workspace\Admin\src\i
ms\admin\helper\BatchScheduleSTHKServlet.java:51: cannot find symbol
[javac] symbol : class ServletException
[javac] location: class ims.admin.helper.BatchScheduleSTHKServlet
[javac] public void init()throws ServletException
[javac] ^
[javac] C:\openMAXIMS-master\Source Library\openmaxims_workspace\Admin\src\i
ms\admin\helper\BatchScheduleServlet.java:36: package javax.servlet does not exi
st
[javac] import javax.servlet.ServletException;
[javac] ^
[javac] C:\openMAXIMS-master\Source Library\openmaxims_workspace\Admin\src\i
ms\admin\helper\BatchScheduleServlet.java:37: package javax.servlet.http does no
t exist
[javac] import javax.servlet.http.HttpServlet;
[javac] ^
[javac] C:\openMAXIMS-master\Source Library\openmaxims_workspace\Admin\src\i
ms\admin\helper\BatchScheduleServlet.java:49: cannot find symbol
[javac] symbol: class HttpServlet
[javac] public class BatchScheduleServlet extends HttpServlet
[javac] ^
[javac] C:\openMAXIMS-master\Source Library\openmaxims_workspace\Admin\src\i
ms\admin\helper\BatchScheduleServlet.java:54: cannot find symbol
[javac] symbol : class ServletException
[javac] location: class ims.admin.helper.BatchScheduleServlet
[javac] public void init()throws ServletException
[javac] ^
[javac] C:\openMAXIMS-master\Source Library\openmaxims_workspace\Admin\src\i
ms\admin\helper\QuartzProperties.java:32: package org.apache.tomcat.dbcp2 does n
ot exist
[javac] import org.apache.tomcat.dbcp2.BasicDataSource;
[javac] ^
[javac] C:\openMAXIMS-master\Source Library\openmaxims_workspace\Admin\src\i
ms\admin\helper\ReportTemplateManifest.java:44: warning: sun.misc.BASE64Decoder
is Sun proprietary API and may be removed in a future release
[javac] import sun.misc.BASE64Decoder;
[javac] ^
[javac] C:\openMAXIMS-master\Source Library\openmaxims_workspace\Admin\src\i
ms\admin\helper\BatchScheduleServlet.java:56: cannot find symbol
[javac] symbol : variable super
[javac] location: class ims.admin.helper.BatchScheduleServlet
[javac] super.init();
[javac] ^
[javac] C:\openMAXIMS-master\Source Library\openmaxims_workspace\Admin\src\i
ms\admin\helper\QuartzProperties.java:56: cannot find symbol
[javac] symbol : class BasicDataSource
[javac] location: class ims.admin.helper.QuartzProperties
[javac] else if (datasource instanceof BasicDataSource)
[javac] ^
[javac] C:\openMAXIMS-master\Source Library\openmaxims_workspace\Admin\src\i
ms\admin\helper\QuartzProperties.java:58: cannot find symbol
[javac] symbol : class BasicDataSource
[javac] location: class ims.admin.helper.QuartzProperties
[javac] driverDB = ((BasicDataSource)datasourc
e).getDriverClassName();
[javac] ^
[javac] C:\openMAXIMS-master\Source Library\openmaxims_workspace\Admin\src\i
ms\admin\helper\QuartzProperties.java:59: cannot find symbol
[javac] symbol : class BasicDataSource
[javac] location: class ims.admin.helper.QuartzProperties
[javac] urlDB = ((BasicDataSource)datasourc
e).getUrl();
[javac] ^
[javac] C:\openMAXIMS-master\Source Library\openmaxims_workspace\Admin\src\i
ms\admin\helper\QuartzProperties.java:60: cannot find symbol
[javac] symbol : class BasicDataSource
[javac] location: class ims.admin.helper.QuartzProperties
[javac] userDB = ((BasicDataSource)datasourc
e).getUsername();
[javac] ^
[javac] C:\openMAXIMS-master\Source Library\openmaxims_workspace\Admin\src\i
ms\admin\helper\QuartzProperties.java:61: cannot find symbol
[javac] symbol : class BasicDataSource
[javac] location: class ims.admin.helper.QuartzProperties
[javac] passwordDB = ((BasicDataSource)datasourc
e).getPassword();
[javac] ^
[javac] C:\openMAXIMS-master\Source Library\openmaxims_workspace\Admin\src\i
ms\admin\helper\ReportTemplateManifest.java:182: warning: sun.misc.BASE64Decoder
is Sun proprietary API and may be removed in a future release
[javac] BASE64Decoder dec = new BASE64Decoder();
[javac] ^
[javac] C:\openMAXIMS-master\Source Library\openmaxims_workspace\Admin\src\i
ms\admin\helper\ReportTemplateManifest.java:182: warning: sun.misc.BASE64Decoder
is Sun proprietary API and may be removed in a future release
[javac] BASE64Decoder dec = new BASE64Decoder();
[javac] ^
[javac] Note: Some input files use or override a deprecated API.
[javac] Note: Recompile with -Xlint:deprecation for details.
[javac] Note: Some input files use unchecked or unsafe operations.
[javac] Note: Recompile with -Xlint:unchecked for details.
[javac] 15 errors
[javac] 3 warnings

BUILD FAILED
C:\openMAXIMS-master\Source Library\openmaxims_workspace\WebApp\build_common.xml
:197: Compile failed; see the compiler error output for details.

Total time: 13 seconds`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants