ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 2619] New: - ejbc encounters java.io.IOException
Date Fri, 13 Jul 2001 17:02:48 GMT
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=2619

*** shadow/2619	Fri Jul 13 10:02:48 2001
--- shadow/2619.tmp.5945	Fri Jul 13 10:02:48 2001
***************
*** 0 ****
--- 1,90 ----
+ +============================================================================+
+ | ejbc encounters java.io.IOException                                        |
+ +----------------------------------------------------------------------------+
+ |        Bug #: 2619                        Product: Ant                     |
+ |       Status: NEW                         Version: 1.3                     |
+ |   Resolution:                            Platform: PC                      |
+ |     Severity: Blocker                  OS/Version: Windows NT/2K           |
+ |     Priority: Other                     Component: Core                    |
+ +----------------------------------------------------------------------------+
+ |  Assigned To: ant-dev@jakarta.apache.org                                   |
+ |  Reported By: gregm@bea.com                                                |
+ +----------------------------------------------------------------------------+
+ |          URL:                                                              |
+ +============================================================================+
+ |                              DESCRIPTION                                   |
+ Please excuse this if it is a dup.
+ 
+ I'm running with:  1.3 ant
+                    1.3.1 jdk
+                    NT 4.0 SP6 (2 1.0 ghz cpu's)
+ 
+ What I think is happening is the jar command before the ejbc command
+ still has the c:\weblogic\src_131sj\tempdir\META-INF\MANIFEST.MF
+ file opened.  Here's a snipet of the ant script:
+ 
+   <jar jarfile="${tempdir}/PRE_${bean}.jar"
+        basedir="${tempdir}" includes="META-INF/**, weblogic/**" />
+   <echo message="building ${deploymentdir}/${bean}.jar"/>
+   <java classname="weblogic.ejbc">
+      <sysproperty key="bea.home" value="${src} "/>
+      <arg line="-noexit -keepgenerated -compiler ${JAVACOMPILER}"/>
+      <arg line="${tempdir}/PRE_${bean}.jar ${tempdir}"/>
+   </java>
+ 
+ I can only reproduce on a 2 cpu (1.0 ghz each) NT box, I can't for example
+ reproduce on a single 800mhz NT box.  And even on the 2 cpu box it happens
+ only every other run.  Here's the error, the error is thrown by the ejbc 
+ compiler when it tries to overwrite the manifest file:
+ 
+       [jar] Building jar: 
+ C:\weblogic\src_131sj\tempdir\PRE_RobinHomeRobinIdemStateless.jar
+       [jar] Warning: selected jar files include a META-INF/MANIFEST.MF which 
+ will be ignored (please use manifest attribute to jar task)
+      
+ BUILD FAILED
+ 
+ C:\weblogic\dev\src\tools\build-cluster.xml:432: 
+ weblogic.utils.compiler.ToolFailureException: Failed to create working 
+ directory: java.io.IOException: Unable to overwrite file: 
+ c:\weblogic\src_131sj\tempdir\META-INF\MANIFEST.MF
+ --- Nested Exception ---
+ weblogic.utils.compiler.ToolFailureException: Failed to create working 
+ directory: java.io.IOException: Unable to overwrite file: 
+ c:\weblogic\src_131sj\tempdir\META-INF\MANIFEST.MF
+ 	at weblogic.ejbc20.runBody(ejbc20.java:345)
+ 	at weblogic.utils.compiler.Tool.run(Tool.java:79)
+ 	at weblogic.ejbc.main(ejbc.java:20)
+ 	at java.lang.reflect.Method.invoke(Native Method)
+ 	at org.apache.tools.ant.taskdefs.ExecuteJava.execute
+ (ExecuteJava.java:127)
+ 	at org.apache.tools.ant.taskdefs.Java.run(Java.java:260)
+ 	at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:123)
+ 	at org.apache.tools.ant.taskdefs.Java.execute(Java.java:87)
+ 	at org.apache.tools.ant.Target.execute(Target.java:153)
+ 	at org.apache.tools.ant.Project.runTarget(Project.java:898)
+ 	at org.apache.tools.ant.Project.executeTarget(Project.java:536)
+ 	at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:213)
+ 	at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:103)
+ 	at org.apache.tools.ant.Target.execute(Target.java:153)
+ 	at org.apache.tools.ant.Project.runTarget(Project.java:898)
+ 	at org.apache.tools.ant.Project.executeTarget(Project.java:536)
+ 	at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:213)
+ 	at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:103)
+ 	at org.apache.tools.ant.Target.execute(Target.java:153)
+ 	at org.apache.tools.ant.Project.runTarget(Project.java:898)
+ 	at org.apache.tools.ant.Project.executeTarget(Project.java:536)
+ 	at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:213)
+ 	at org.apache.tools.ant.Target.execute(Target.java:153)
+ 	at org.apache.tools.ant.Project.runTarget(Project.java:898)
+ 	at org.apache.tools.ant.Project.executeTarget(Project.java:536)
+ 	at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:213)
+ 	at org.apache.tools.ant.Target.execute(Target.java:153)
+ 	at org.apache.tools.ant.Project.runTarget(Project.java:898)
+ 	at org.apache.tools.ant.Project.executeTarget(Project.java:536)
+ 	at org.apache.tools.ant.Project.executeTargets(Project.java:510)
+ 	at org.apache.tools.ant.Main.runBuild(Main.java:421)
+ 	at org.apache.tools.ant.Main.main(Main.java:149)
+ 
+ thanks for any help
+ Greg

Mime
View raw message