2012-07-25 251 views
0

我正在努力解決這個問題。之前它爲我工作,突然間當我在接口和實現類中做了一些更改,並且在嘗試構建時,我收到以下錯誤。我試着卸載weblogic,jdk,一切。但是我仍然有這個問題。請幫我..我用weblogic10.0,jdk1.5.0_22,jre105.0_22,Eclipse的靛藍ejb編譯失敗

Buildfile: C:\CeNAnalyticalPhase1\CeNStorageService\build.xml 
clean: 
    [delete] Deleting directory C:\CeNAnalyticalPhase1\CeNStorageService\ant.build 
    [delete] Deleting directory C:\CeNAnalyticalPhase1\CeNStorageService\dist 
    [delete] Deleting directory C:\CeNAnalyticalPhase1\CeNStorageService\testreport 
prepare: 
    [mkdir] Created dir: C:\CeNAnalyticalPhase1\CeNStorageService\ant.build 
    [mkdir] Created dir: C:\CeNAnalyticalPhase1\CeNStorageService\ant.build\classes 
    [mkdir] Created dir: C:\CeNAnalyticalPhase1\CeNStorageService\ant.build\testclasses 
    [mkdir] Created dir: C:\CeNAnalyticalPhase1\CeNStorageService\dist 
    [mkdir] Created dir: C:\CeNAnalyticalPhase1\CeNStorageService\testreport 
    [mkdir] Created dir: C:\CeNAnalyticalPhase1\CeNStorageService\testreport\html 
    [mkdir] Created dir: C:\CeNAnalyticalPhase1\CeNStorageService\ant.build\classes\META-INF 
    [copy] Copying 3 files to C:\CeNAnalyticalPhase1\CeNStorageService\ant.build\classes\META-INF 
compile: 
    [javac] C:\CeNAnalyticalPhase1\CeNStorageService\build.xml:194: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds 
    [javac] Compiling 179 source files to C:\CeNAnalyticalPhase1\CeNStorageService\ant.build\classes 
    [javac] C:\CeNAnalyticalPhase1\CeNStorageService\src\com\pfizer\pgrd\chemistry\enotebook\storage\tests\TestCreateParallelNotebook.java:74: warning: [deprecation] createParallelExperiment(java.lang.String,java.lang.String) in com.pfizer.pgrd.chemistry.enotebook.storage.delegate.StorageDelegate has been deprecated 
    [javac]    NotebookPageModel pageModel = storageObj.createParallelExperiment(spid, "27071975"); 
    [javac]                 ^
    [javac] C:\CeNAnalyticalPhase1\CeNStorageService\src\com\pfizer\pgrd\chemistry\enotebook\storage\tests\TestCreateParallelNotebook.java:144: warning: [deprecation] createParallelExperiment(java.lang.String,java.lang.String) in com.pfizer.pgrd.chemistry.enotebook.storage.delegate.StorageDelegate has been deprecated 
    [javac]  NotebookPageModel pageModel = storageObj.createParallelExperiment(spid, nbK); 
    [javac]             ^
    [javac] C:\CeNAnalyticalPhase1\CeNStorageService\src\com\pfizer\pgrd\chemistry\enotebook\storage\tests\TestNotebookInsertDAO.java:238: warning: [deprecation] putBytes(long,byte[]) in oracle.sql.BLOB has been deprecated 
    [javac]    tempBlob.putBytes(1, bytes); 
    [javac]        ^
    [javac] C:\CeNAnalyticalPhase1\CeNStorageService\src\com\pfizer\pgrd\chemistry\enotebook\storage\tests\loadtests\CreateExperimentTest.java:41: warning: [deprecation] createParallelExperiment(java.lang.String,java.lang.String) in com.pfizer.pgrd.chemistry.enotebook.storage.delegate.StorageDelegate has been deprecated 
    [javac]      NotebookPageModel page = ssi.createParallelExperiment(spid,notebook); 
    [javac]                 ^
    [javac] Note: Some input files use unchecked or unsafe operations. 
    [javac] Note: Recompile with -Xlint:unchecked for details. 
    [javac] 4 warnings 
compile-ejb: 
    [wlappc] C:\CeNAnalyticalPhase1\CeNStorageService\ant.build\classes\com\pfizer\pgrd\chemistry\enotebook\storage\ejb\StorageRemote_ptetod_LocalHomeImpl.java:73: warning: non-varargs call of varargs method with inexact argument type for last parameter; 
    [wlappc] cast to java.lang.Class for a varargs call 
    [wlappc] cast to java.lang.Class[] for a non-varargs call and to suppress this warning 
    [wlappc]  "ejbCreate", null); 
    [wlappc]    ^
    [wlappc] C:\CeNAnalyticalPhase1\CeNStorageService\ant.build\classes\com\pfizer\pgrd\chemistry\enotebook\storage\ejb\StorageRemote_ptetod_LocalHomeImpl.java:77: warning: non-varargs call of varargs method with inexact argument type for last parameter; 
    [wlappc] cast to java.lang.Class for a varargs call 
    [wlappc] cast to java.lang.Class[] for a non-varargs call and to suppress this warning 
    [wlappc]   "ejbPostCreate", null); 
    [wlappc]      ^
    [wlappc] C:\CeNAnalyticalPhase1\CeNStorageService\ant.build\classes\com\pfizer\pgrd\chemistry\enotebook\storage\ejb\StorageRemote_ptetod_Impl.java:11: com.pfizer.pgrd.chemistry.enotebook.storage.ejb.StorageRemote_ptetod_Impl is not abstract and does not override abstract method getSubmittedBatchAttachments(java.util.List) in com.pfizer.pgrd.chemistry.enotebook.storage.ejb.StorageRemote_ptetod_Intf 
    [wlappc] public final class StorageRemote_ptetod_Impl 
    [wlappc]   ^
    [wlappc] C:\CeNAnalyticalPhase1\CeNStorageService\ant.build\classes\com\pfizer\pgrd\chemistry\enotebook\storage\ejb\StorageRemote_ptetod_HomeImpl.java:132: warning: non-varargs call of varargs method with inexact argument type for last parameter; 
    [wlappc] cast to java.lang.Class for a varargs call 
    [wlappc] cast to java.lang.Class[] for a non-varargs call and to suppress this warning 
    [wlappc]  "ejbCreate", null); 
    [wlappc]    ^
    [wlappc] C:\CeNAnalyticalPhase1\CeNStorageService\ant.build\classes\com\pfizer\pgrd\chemistry\enotebook\storage\ejb\StorageRemote_ptetod_HomeImpl.java:136: warning: non-varargs call of varargs method with inexact argument type for last parameter; 
    [wlappc] cast to java.lang.Class for a varargs call 
    [wlappc] cast to java.lang.Class[] for a non-varargs call and to suppress this warning 
    [wlappc]   "ejbPostCreate", null); 
    [wlappc]      ^
    [wlappc] Note: Some input files use unchecked or unsafe operations. 
    [wlappc] Note: Recompile with -Xlint:unchecked for details. 
    [wlappc] 1 error 
    [wlappc] 4 warnings 

BUILD FAILED 
C:\CeNAnalyticalPhase1\CeNStorageService\build.xml:214: weblogic.utils.compiler.ToolFailureException: [J2EE:160119]Appc is unable to process the file 'C:\CeNAnalyticalPhase1\CeNStorageService\ant.build\classes'. The following error occurred: 

Compiler failed executable.exec 

    at weblogic.ejb20.ejbc.EJBCompiler.doCompile(EJBCompiler.java:274) 
    at weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:476) 
    at weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:387) 
    at weblogic.appc.compileEJB(appc.java:802) 
    at weblogic.appc.compileEJB(appc.java:776) 
    at weblogic.appc.compileInput(appc.java:463) 
    at weblogic.appc.runBody(appc.java:184) 
    at weblogic.utils.compiler.Tool.run(Tool.java:192) 
    at weblogic.utils.compiler.Tool.run(Tool.java:147) 
    at weblogic.appc.main(appc.java:1030) 
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 
    at java.lang.reflect.Method.invoke(Method.java:585) 
    at weblogic.ant.taskdefs.j2ee.CompilerTask.invokeMain(CompilerTask.java:278) 
    at weblogic.ant.taskdefs.j2ee.Appc.privateExecute(Appc.java:200) 
    at weblogic.ant.taskdefs.j2ee.Appc.execute(Appc.java:124) 
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291) 
    at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source) 
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 
    at java.lang.reflect.Method.invoke(Method.java:585) 
    at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) 
    at org.apache.tools.ant.Task.perform(Task.java:348) 
    at org.apache.tools.ant.Target.execute(Target.java:390) 
    at org.apache.tools.ant.Target.performTasks(Target.java:411) 
    at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399) 
    at org.apache.tools.ant.Project.executeTarget(Project.java:1368) 
    at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41) 
    at org.eclipse.ant.internal.launching.remote.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32) 
    at org.apache.tools.ant.Project.executeTargets(Project.java:1251) 
    at org.eclipse.ant.internal.launching.remote.InternalAntRunner.run(InternalAntRunner.java:424) 
    at org.eclipse.ant.internal.launching.remote.InternalAntRunner.main(InternalAntRunner.java:138) 

java.io.IOException: Compiler failed executable.exec 
    at weblogic.utils.compiler.CompilerInvoker.compileMaybeExit(CompilerInvoker.java:469) 
    at weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvoker.java:328) 
    at weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvoker.java:336) 
    at weblogic.ejb20.ejbc.EJBCompiler.doCompile(EJBCompiler.java:270) 
    at weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:476) 
    at weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:387) 
    at weblogic.appc.compileEJB(appc.java:802) 
    at weblogic.appc.compileEJB(appc.java:776) 
    at weblogic.appc.compileInput(appc.java:463) 
    at weblogic.appc.runBody(appc.java:184) 
    at weblogic.utils.compiler.Tool.run(Tool.java:192) 
    at weblogic.utils.compiler.Tool.run(Tool.java:147) 
    at weblogic.appc.main(appc.java:1030) 
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 
    at java.lang.reflect.Method.invoke(Method.java:585) 
    at weblogic.ant.taskdefs.j2ee.CompilerTask.invokeMain(CompilerTask.java:278) 
    at weblogic.ant.taskdefs.j2ee.Appc.privateExecute(Appc.java:200) 
    at weblogic.ant.taskdefs.j2ee.Appc.execute(Appc.java:124) 
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291) 
    at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source) 
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 
    at java.lang.reflect.Method.invoke(Method.java:585) 
    at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) 
    at org.apache.tools.ant.Task.perform(Task.java:348) 
    at org.apache.tools.ant.Target.execute(Target.java:390) 
    at org.apache.tools.ant.Target.performTasks(Target.java:411) 
    at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399) 
    at org.apache.tools.ant.Project.executeTarget(Project.java:1368) 
    at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41) 
    at org.eclipse.ant.internal.launching.remote.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32) 
    at org.apache.tools.ant.Project.executeTargets(Project.java:1251) 
    at org.eclipse.ant.internal.launching.remote.InternalAntRunner.run(InternalAntRunner.java:424) 
    at org.eclipse.ant.internal.launching.remote.InternalAntRunner.main(InternalAntRunner.java:138) 

--------------- nested within: ------------------ 
weblogic.utils.compiler.ToolFailureException: [J2EE:160121]Errors encountered while compiling module 'C:\CeNAnalyticalPhase1\CeNStorageService\ant.build\classes': 

Compiler failed executable.exec 
- with nested exception: 
[ 
Compiler failed executable.exec 
] 
    at weblogic.appc.compileEJB(appc.java:781) 
    at weblogic.appc.compileInput(appc.java:463) 
    at weblogic.appc.runBody(appc.java:184) 
    at weblogic.utils.compiler.Tool.run(Tool.java:192) 
    at weblogic.utils.compiler.Tool.run(Tool.java:147) 
    at weblogic.appc.main(appc.java:1030) 
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 
    at java.lang.reflect.Method.invoke(Method.java:585) 
    at weblogic.ant.taskdefs.j2ee.CompilerTask.invokeMain(CompilerTask.java:278) 
    at weblogic.ant.taskdefs.j2ee.Appc.privateExecute(Appc.java:200) 
    at weblogic.ant.taskdefs.j2ee.Appc.execute(Appc.java:124) 
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291) 
    at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source) 
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 
    at java.lang.reflect.Method.invoke(Method.java:585) 
    at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) 
    at org.apache.tools.ant.Task.perform(Task.java:348) 
    at org.apache.tools.ant.Target.execute(Target.java:390) 
    at org.apache.tools.ant.Target.performTasks(Target.java:411) 
    at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399) 
    at org.apache.tools.ant.Project.executeTarget(Project.java:1368) 
    at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41) 
    at org.eclipse.ant.internal.launching.remote.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32) 
    at org.apache.tools.ant.Project.executeTargets(Project.java:1251) 
    at org.eclipse.ant.internal.launching.remote.InternalAntRunner.run(InternalAntRunner.java:424) 
    at org.eclipse.ant.internal.launching.remote.InternalAntRunner.main(InternalAntRunner.java:138) 
- with nested exception: 
[weblogic.utils.compiler.ToolFailureException: [J2EE:160121]Errors encountered while compiling module 'C:\CeNAnalyticalPhase1\CeNStorageService\ant.build\classes': 

Compiler failed executable.exec 
- with nested exception: 
[ 
Compiler failed executable.exec 
]] 

回答

0

感謝您的回覆。我解決了這個問題。問題是我們無法在ejb接口中使用List作爲參數。它應該作爲一個數組傳遞。當我更改爲數組時,構建就是成功。這是我的學習點。

0

堆棧跟蹤是相當清楚的:StorageRemote_ptetod_ImplStorageRemote_ptetod_Intf覆蓋抽象方法getSubmittedBatchAttachments(java.util.List)

+0

這是在ant.build類文件..創建於jvm – Nila 2012-07-26 05:31:35

+0

沒有這樣的文件,我甚至刪除了ant.build文件夾 – Nila 2012-07-26 05:34:08