Do not use on any
shared computer
September 7, 2008 01:30am pdt
 
[x]
Attachment Details

Error compiling ear file java.io.IOException

Zone: J2EE
I get the following error when I try to compile my code?

Here is the ant target that includes - build.xml:711

<target name="appc"
          depends="init,compile,lib,ear"
          description="compile JSP and EJB files">
    <java fork="yes"
          classpath="${compile.classpath.appc}"
          classname="weblogic.appc"
          failonerror="true">
      <env key="CLASSPATH" path="${compile.classpath.appc}"/>
      <jvmarg line="-Djava.io.tmpdir=${appc.compile.tmp.dir.name}"/>
      <arg line="-output ${ear.filename}
          -compiler javac
          -classpath ${compile.classpath} -keepgenerated"/>
      <arg value="${ear.filename}" />
    </java>
  </target>


Any ideas?
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64:
65:
66:
67:
68:
69:
70:
71:
72:
73:
74:
75:
76:
77:
78:
79:
80:
81:
82:
83:
84:
85:
86:
87:
88:
89:
90:
91:
92:
93:
94:
95:
96:
97:
98:
99:
100:
101:
102:
103:
104:
105:
106:
107:
108:
109:
110:
111:
112:
113:
114:
115:
116:
117:
118:
119:
120:
121:
122:
123:
124:
125:
126:
127:
128:
129:
130:
131:
132:
133:
134:
135:
136:
137:
138:
139:
140:
141:
142:
143:
144:
145:
146:
147:
148:
[ear] Building ear: C:\Projects\hrt\build\ear\hrt.ear
appc:
     [java] Error: [jspc]: 0 file(s) failed:
     [java] [J2EE:160119]Appc is unable to process the file 'C:\Projects\hrt\build\ear\hrt.ear'. The following error occurred:
     [java] [Compilation errors : ]
     [java] java.io.IOException: CreateProcess: javac -classpath "C:\Program Files\Javasoft\jre\1.4.2_13\lib\rt.jar;C:\Program Files\Javasoft\jre\1.4.2_13\lib\i18n.jar;C:\Program Files\Javasoft\jre\1.4.2_13\lib\sunrsasign.jar;C:\Program Files\Javasoft\jre\1.4.2_13\lib\jsse.jar;C:\Program Files\Javasoft\jre\1.4.2_13\lib\jce.jar;C:\Program Files\Javasoft\jre\1.4.2_13\lib\charsets.jar;C:\Program Files\Javasoft\jre\1.4.2_13\classes;C:\software\bea\weblogic\8.1\sp4\server\lib\weblogic.jar;C:\software\bea\weblogic\8.1\sp4\server\lib\wlcipher.jar;C:\software\bea\weblogic\8.1\sp4\server\lib\webservices.jar;C:\software\bea\weblogic\8.1\sp4\server\lib\xmlx.jar;C:\software\bea\weblogic\8.1\sp4\server\lib\jconn2.jar;C:\software\bea\weblogic\8.1\sp4\server\lib\jConnect.jar;C:\software\bea\weblogic\8.1\sp4\server\lib\EccpressoAsn1.jar;C:\software\bea\weblogic\8.1\sp4\server\lib\EccpressoCore.jar;C:\software\bea\weblogic\8.1\sp4\server\lib\EccpressoJcae.jar;C:\software\bea\weblogic\8.1\sp4\server\lib\ant\ant.jar;C:\software\bea\weblogic\8.1\sp4\server\lib\
     [java] at java.lang.Win32Process.create(Native Method)
     [java] at java.lang.Win32Process.<init>(Unknown Source)
     [java] at java.lang.Runtime.execInternal(Native Method)
     [java] at java.lang.Runtime.exec(Unknown Source)
     [java] at java.lang.Runtime.exec(Unknown Source)
     [java] at java.lang.Runtime.exec(Unknown Source)
     [java] at weblogic.utils.Executable.exec(Executable.java:227)
     [java] at weblogic.utils.Executable.exec(Executable.java:156)
     [java] at weblogic.utils.Executable.exec(Executable.java:142)
     [java] at weblogic.utils.compiler.CompilerInvoker.execCompiler(CompilerInvoker.java:249)
     [java] at weblogic.utils.compiler.CompilerInvoker.compileMaybeExit(CompilerInvoker.java:427)
     [java] at weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvoker.java:328)
     [java] at weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvoker.java:336)
     [java] at weblogic.jspc.doCompile(jspc.java:842)
     [java] at weblogic.jspc.runJspc(jspc.java:654)
     [java] at weblogic.jspc.runJspc(jspc.java:444)
     [java] at weblogic.servlet.jsp.JspcInvoker.compile(JspcInvoker.java:164)
     [java] at weblogic.appc.compileWAR(appc.java:859)
     [java] at weblogic.appc.compileModules(appc.java:650)
     [java] at weblogic.appc.compileEAR(appc.java:733)
     [java] at weblogic.appc.compileInput(appc.java:458)
     [java] at weblogic.appc.runBody(appc.java:184)
     [java] at weblogic.utils.compiler.Tool.run(Tool.java:192)
     [java] at weblogic.utils.compiler.Tool.run(Tool.java:147)
     [java] at weblogic.appc.main(appc.java:1030)
     [java] at weblogic.servlet.jsp.JspcInvoker.compile(JspcInvoker.java:174)
     [java] at weblogic.appc.compileWAR(appc.java:859)
     [java] at weblogic.appc.compileModules(appc.java:650)
     [java] at weblogic.appc.compileEAR(appc.java:733)
     [java] at weblogic.appc.compileInput(appc.java:458)
     [java] at weblogic.appc.runBody(appc.java:184)
     [java] at weblogic.utils.compiler.Tool.run(Tool.java:192)
     [java] at weblogic.utils.compiler.Tool.run(Tool.java:147)
     [java] at weblogic.appc.main(appc.java:1030)
     [java] java.lang.Exception: [Compilation errors : ]
     [java] java.io.IOException: CreateProcess: javac -classpath "C:\Program Files\Javasoft\jre\1.4.2_13\lib\rt.jar;C:\Program Files\Javasoft\jre\1.4.2_13\lib\i18n.jar;C:\Program Files\Javasoft\jre\1.4.2_13\lib\sunrsasign.jar;C:\Program Files\Javasoft\jre\1.4.2_13\lib\jsse.jar;C:\Program Files\Javasoft\jre\1.4.2_13\lib\jce.jar;C:\Program Files\Javasoft\jre\1.4.2_13\lib\charsets.jar;C:\Program Files\Javasoft\jre\1.4.2_13\classes;C:\software\bea\weblogic\8.1\sp4\server\lib\weblogic.jar;C:\software\bea\weblogic\8.1\sp4\server\lib\wlcipher.jar;C:\software\bea\weblogic\8.1\sp4\server\lib\webservices.jar;C:\software\bea\weblogic\8.1\sp4\server\lib\xmlx.jar;C:\software\bea\weblogic\8.1\sp4\server\lib\jconn2.jar;C:\software\bea\weblogic\8.1\sp4\server\lib\jConnect.jar;C:\software\bea\weblogic\8.1\sp4\server\lib\EccpressoAsn1.jar;C:\software\bea\weblogic\8.1\sp4\server\lib\EccpressoCore.jar;C:\software\bea\weblogic\8.1\sp4\server\lib\EccpressoJcae.jar;C:\software\bea\weblogic\8.1\sp4\server\lib\ant\ant.jar;C:\software\bea\weblogic\8.1\sp4\server\lib\
     [java] at java.lang.Win32Process.create(Native Method)
     [java] at java.lang.Win32Process.<init>(Unknown Source)
     [java] at java.lang.Runtime.execInternal(Native Method)
     [java] at java.lang.Runtime.exec(Unknown Source)
     [java] at java.lang.Runtime.exec(Unknown Source)
     [java] at java.lang.Runtime.exec(Unknown Source)
     [java] at weblogic.utils.Executable.exec(Executable.java:227)
     [java] at weblogic.utils.Executable.exec(Executable.java:156)
     [java] at weblogic.utils.Executable.exec(Executable.java:142)
     [java] at weblogic.utils.compiler.CompilerInvoker.execCompiler(CompilerInvoker.java:249)
     [java] at weblogic.utils.compiler.CompilerInvoker.compileMaybeExit(CompilerInvoker.java:427)
     [java] at weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvoker.java:328)
     [java] at weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvoker.java:336)
     [java] at weblogic.jspc.doCompile(jspc.java:842)
     [java] at weblogic.jspc.runJspc(jspc.java:654)
     [java] at weblogic.jspc.runJspc(jspc.java:444)
     [java] at weblogic.servlet.jsp.JspcInvoker.compile(JspcInvoker.java:164)
     [java] at weblogic.appc.compileWAR(appc.java:859)
     [java] at weblogic.appc.compileModules(appc.java:650)
     [java] at weblogic.appc.compileEAR(appc.java:733)
     [java] at weblogic.appc.compileInput(appc.java:458)
     [java] at weblogic.appc.runBody(appc.java:184)
     [java] at weblogic.utils.compiler.Tool.run(Tool.java:192)
     [java] at weblogic.utils.compiler.Tool.run(Tool.java:147)
     [java] at weblogic.appc.main(appc.java:1030)
     [java] at weblogic.jspc.doCompile(jspc.java:864)
     [java] at weblogic.jspc.runJspc(jspc.java:654)
     [java] at weblogic.jspc.runJspc(jspc.java:444)
     [java] at weblogic.servlet.jsp.JspcInvoker.compile(JspcInvoker.java:164)
     [java] at weblogic.appc.compileWAR(appc.java:859)
     [java] at weblogic.appc.compileModules(appc.java:650)
     [java] at weblogic.appc.compileEAR(appc.java:733)
     [java] at weblogic.appc.compileInput(appc.java:458)
     [java] at weblogic.appc.runBody(appc.java:184)
     [java] at weblogic.utils.compiler.Tool.run(Tool.java:192)
     [java] at weblogic.utils.compiler.Tool.run(Tool.java:147)
     [java] at weblogic.appc.main(appc.java:1030)
     [java] --------------- nested within: ------------------
     [java] weblogic.utils.compiler.ToolFailureException: [J2EE:160121]Errors encountered while compiling module 'hrt.war':
     [java] [Compilation errors : ]
     [java] java.io.IOException: CreateProcess: javac -classpath "C:\Program Files\Javasoft\jre\1.4.2_13\lib\rt.jar;C:\Program Files\Javasoft\jre\1.4.2_13\lib\i18n.jar;C:\Program Files\Javasoft\jre\1.4.2_13\lib\sunrsasign.jar;C:\Program Files\Javasoft\jre\1.4.2_13\lib\jsse.jar;C:\Program Files\Javasoft\jre\1.4.2_13\lib\jce.jar;C:\Program Files\Javasoft\jre\1.4.2_13\lib\charsets.jar;C:\Program Files\Javasoft\jre\1.4.2_13\classes;C:\software\bea\weblogic\8.1\sp4\server\lib\weblogic.jar;C:\software\bea\weblogic\8.1\sp4\server\lib\wlcipher.jar;C:\software\bea\weblogic\8.1\sp4\server\lib\webservices.jar;C:\software\bea\weblogic\8.1\sp4\server\lib\xmlx.jar;C:\software\bea\weblogic\8.1\sp4\server\lib\jconn2.jar;C:\software\bea\weblogic\8.1\sp4\server\lib\jConnect.jar;C:\software\bea\weblogic\8.1\sp4\server\lib\EccpressoAsn1.jar;C:\software\bea\weblogic\8.1\sp4\server\lib\EccpressoCore.jar;C:\software\bea\weblogic\8.1\sp4\server\lib\EccpressoJcae.jar;C:\software\bea\weblogic\8.1\sp4\server\lib\ant\ant.jar;C:\software\bea\weblogic\8.1\sp4\server\lib\
     [java] at java.lang.Win32Process.create(Native Method)
     [java] at java.lang.Win32Process.<init>(Unknown Source)
     [java] at java.lang.Runtime.execInternal(Native Method)
     [java] at java.lang.Runtime.exec(Unknown Source)
     [java] at java.lang.Runtime.exec(Unknown Source)
     [java] at java.lang.Runtime.exec(Unknown Source)
     [java] at weblogic.utils.Executable.exec(Executable.java:227)
     [java] at weblogic.utils.Executable.exec(Executable.java:156)
     [java] at weblogic.utils.Executable.exec(Executable.java:142)
     [java] at weblogic.utils.compiler.CompilerInvoker.execCompiler(CompilerInvoker.java:249)
     [java] at weblogic.utils.compiler.CompilerInvoker.compileMaybeExit(CompilerInvoker.java:427)
     [java] at weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvoker.java:328)
     [java] at weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvoker.java:336)
     [java] at weblogic.jspc.doCompile(jspc.java:842)
     [java] at weblogic.jspc.runJspc(jspc.java:654)
     [java] at weblogic.jspc.runJspc(jspc.java:444)
     [java] at weblogic.servlet.jsp.JspcInvoker.compile(JspcInvoker.java:164)
     [java] at weblogic.appc.compileWAR(appc.java:859)
     [java] at weblogic.appc.compileModules(appc.java:650)
     [java] at weblogic.appc.compileEAR(appc.java:733)
     [java] at weblogic.appc.compileInput(appc.java:458)
     [java] at weblogic.appc.runBody(appc.java:184)
     [java] at weblogic.utils.compiler.Tool.run(Tool.java:192)
     [java] at weblogic.utils.compiler.Tool.run(Tool.java:147)
     [java] at weblogic.appc.main(appc.java:1030)
     [java] - with nested exception:
     [java] [
     [java] [Compilation errors : ]
     [java] java.io.IOException: CreateProcess: javac -classpath "C:\Program Files\Javasoft\jre\1.4.2_13\lib\rt.jar;C:\Program Files\Javasoft\jre\1.4.2_13\lib\i18n.jar;C:\Program Files\Javasoft\jre\1.4.2_13\lib\sunrsasign.jar;C:\Program Files\Javasoft\jre\1.4.2_13\lib\jsse.jar;C:\Program Files\Javasoft\jre\1.4.2_13\lib\jce.jar;C:\Program Files\Javasoft\jre\1.4.2_13\lib\charsets.jar;C:\Program Files\Javasoft\jre\1.4.2_13\classes;C:\software\bea\weblogic\8.1\sp4\server\lib\weblogic.jar;C:\software\bea\weblogic\8.1\sp4\server\lib\wlcipher.jar;C:\software\bea\weblogic\8.1\sp4\server\lib\webservices.jar;C:\software\bea\weblogic\8.1\sp4\server\lib\xmlx.jar;C:\software\bea\weblogic\8.1\sp4\server\lib\jconn2.jar;C:\software\bea\weblogic\8.1\sp4\server\lib\jConnect.jar;C:\software\bea\weblogic\8.1\sp4\server\lib\EccpressoAsn1.jar;C:\software\bea\weblogic\8.1\sp4\server\lib\EccpressoCore.jar;C:\software\bea\weblogic\8.1\sp4\server\lib\EccpressoJcae.jar;C:\software\bea\weblogic\8.1\sp4\server\lib\ant\ant.jar;C:\software\bea\weblogic\8.1\sp4\server\lib\
     [java] at java.lang.Win32Process.create(Native Method)
     [java] at java.lang.Win32Process.<init>(Unknown Source)
     [java] at java.lang.Runtime.execInternal(Native Method)
     [java] at java.lang.Runtime.exec(Unknown Source)
     [java] at java.lang.Runtime.exec(Unknown Source)
     [java] at java.lang.Runtime.exec(Unknown Source)
     [java] at weblogic.utils.Executable.exec(Executable.java:227)
     [java] at weblogic.utils.Executable.exec(Executable.java:156)
     [java] at weblogic.utils.Executable.exec(Executable.java:142)
     [java] at weblogic.utils.compiler.CompilerInvoker.execCompiler(CompilerInvoker.java:249)
     [java] at weblogic.utils.compiler.CompilerInvoker.compileMaybeExit(CompilerInvoker.java:427)
     [java] at weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvoker.java:328)
     [java] at weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvoker.java:336)
     [java] at weblogic.jspc.doCompile(jspc.java:842)
     [java] at weblogic.jspc.runJspc(jspc.java:654)
     [java] at weblogic.jspc.runJspc(jspc.java:444)
     [java] at weblogic.servlet.jsp.JspcInvoker.compile(JspcInvoker.java:164)
     [java] at weblogic.appc.compileWAR(appc.java:859)
     [java] at weblogic.appc.compileModules(appc.java:650)
     [java] at weblogic.appc.compileEAR(appc.java:733)
     [java] at weblogic.appc.compileInput(appc.java:458)
     [java] at weblogic.appc.runBody(appc.java:184)
     [java] at weblogic.utils.compiler.Tool.run(Tool.java:192)
     [java] at weblogic.utils.compiler.Tool.run(Tool.java:147)
     [java] at weblogic.appc.main(appc.java:1030)
     [java] ]
     [java] at weblogic.appc.compileModules(appc.java:660)
     [java] at weblogic.appc.compileEAR(appc.java:733)
     [java] at weblogic.appc.compileInput(appc.java:458)
     [java] at weblogic.appc.runBody(appc.java:184)
     [java] at weblogic.utils.compiler.Tool.run(Tool.java:192)
     [java] at weblogic.utils.compiler.Tool.run(Tool.java:147)
     [java] at weblogic.appc.main(appc.java:1030)
 
BUILD FAILED
C:\Projects\hrt\build.xml:711: Java returned: 1
Start your free trial to view this solution
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

Question Stats
Zone: Programming
Question Asked By: amjava
Solution Provided By: Kuldeepchaturvedi
Participating Experts: 2
Solution Grade: A
Views: 20
Translate:
Loading Advertisement...
 
[+][-]Assisted Solution by Ajay-Singh

Rank: Master

Assisted Solution by Ajay-Singh:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
[+][-]Accepted Solution by Kuldeepchaturvedi
Accepted Solution by Kuldeepchaturvedi:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
[+][-]Author Comment by amjava
Author Comment by amjava:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
[+][-]Assisted Solution by Kuldeepchaturvedi
Assisted Solution by Kuldeepchaturvedi:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
Loading Advertisement...
20080723-EE-VQP-34 / EE_QW_2_20070628