Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Trouble integrating ant build (j2ee/weblogic)
Trouble integrating ant build (j2ee/weblogic) [message #238061] Fri, 10 November 2006 20:05
Eclipse UserFriend
Originally posted by: ukchucktown.yahoo.com

I've had little success trying to integrate a fairly complex j2ee ant build
with Eclipse. I started by creating a custom Ant builder for each of my
projects and disabled the default Java builder. The ant file in question is
not part of my workspace so I linked to the external file in the Ant
Builder dialog. When I do a clean, eclipse properly executes the clean
target in my build file. With the Java builder disabled I could never get
eclipse to perform a build. If I enabled the Java builder (the information
I found online said to disable the default Java builder when building
externally with an ant script).

Anyway, if I enabled the Java builder and executed a build I get the error
shown below. The same ant build runs fine in Intellij using the same ant
version, 1.6.5. I'm certain it's a classloader problem but I'm not sure
where to start. I'm not an expert on eclipse. Any suggestions appreciated.

Grant

============================================================ =====================

build:
[wlwBuild] [Build] Application Clean Starting
[wlwBuild] [Build]
[wlwBuild] [Build] Application Build Status: lmiuAdapter
[wlwBuild] [Build] BUILD STARTED
[wlwBuild] [Build] clean:
[wlwBuild] [Build] BUILD SUCCESSFUL
[wlwBuild] [Build] Clean project lmiuAdapter complete.
[wlwBuild] [Build] Application Clean complete. No errors in 1 projects.
[wlwBuild] [Build] Application Build Starting
[wlwBuild] [Build]
[wlwBuild] [Build] Application Build Status: lmiuAdapter
[wlwBuild] [Build] BUILD STARTED
[wlwBuild] [Build] build:
[wlwBuild] [Build] Executing defaultWebAppBuild.xml...
[wlwBuild] [Build] cleanBeforeBuildTarget:
[wlwBuild] [Build] clean:
[wlwBuild] [Build] Compiling webapp lmiuAdapter...
[wlwBuild] [Build] lmiuAdapter: Compiling webapp resource files...
[wlwBuild] [Build] lmiuAdapter: Compiled webapp resource files in 5298
milliseconds
[wlwBuild] [Build] lmiuAdapter: Found no JSP files requiring
build/rebuild
[wlwBuild] [Build] lmiuAdapter: Compiling 3 Weblogic Workshop files...
[wlwBuild] [Build] ERROR
[wlwBuild] [Build] DESCRIPTION:Can't find implementation class for
gov.seahawk.datafeed.lmiu.LMIUToXML
[wlwBuild] [Build] SUGGESTION:You may be missing a web logic component
such as WLI.
[wlwBuild] [Build] ERROR
[wlwBuild] [Build] DESCRIPTION:An unexpected exception occurred while
attempting to locate the run-time information for this Web Service. Error:
java.lang.reflect.InvocationTargetException:null
[wlwBuild] [Build] SUGGESTION:An unexpected error occurred. Please
contact support@bea.com for further assistance.
[wlwBuild] [Build] java.io.IOException: CreateProcess: "C:\Program
Files\Java\bin\java.exe" -ea -Xss512k -Xmx256m -jar C
\bea\weblogic81\javelin\lib\javelin.jar @C
\DOCUME~1\GRANT~1.LEW\LOCALS~1\Temp\javelin-javac-args-17671 .tmp error=3
[wlwBuild] [Build] at java.lang.ProcessImpl.create(Native Method)
[wlwBuild] [Build] at java.lang.ProcessImpl.<init>(Unknown Source)
[wlwBuild] [Build] at java.lang.ProcessImpl.start(Unknown Source)
[wlwBuild] [Build] at java.lang.ProcessBuilder.start(Unknown Source)
[wlwBuild] [Build] at java.lang.Runtime.exec(Unknown Source)
[wlwBuild] [Build] at java.lang.Runtime.exec(Unknown Source)
[wlwBuild] [Build] at
javelin.CodeGenUtil.externalCompile(CodeGenUtil.java:174)
[wlwBuild] [Build] at
javelin.SourceProject.endBuild(SourceProject.java:1515)
[wlwBuild] [Build] at javelin.work.WorkBuild.end(WorkBuild.java:72)
[wlwBuild] [Build] at
javelin.work.WorkCompileFiles.run(WorkCompileFiles.java:162)
[wlwBuild] [Build] at
javelin.threading.WorkList$ExclusiveThread.run(WorkList.java :333)
[wlwBuild] [Build] C
\devroot\seahawk\modules\datafeed\lmiu\.workshop\lmiuAdapter \EJB\ProjectBeans\com\bea\wlw\runtime\core\bean\SyncDispatch er_k1mrl8_EOImpl.java:13:
cannot access java.rmi.Remote
[wlwBuild] [Build] bad class file: C:\Program
Files\Java\jre1.5.0_04\lib\rt.jar(java/rmi/Remote.class)
[wlwBuild] [Build] class file has wrong version 49.0, should be 48.0
[wlwBuild] [Build] Please remove or make sure it appears in the correct
subdirectory of the classpath.
[wlwBuild] [Build] public final class SyncDispatcher_k1mrl8_EOImpl
[wlwBuild] [Build] ^
[wlwBuild] [Build] 1 error
[wlwBuild] [Build] ERROR
[wlwBuild] [Build] DESCRIPTION:An unexpected exception occurred while
attempting to generate the Enterprise Java Beans or JMS Message Queues
required for this Web Service. Error:
com.bea.wlw.runtime.core.dispatcher.DispCache$CacheException
[J2EE:160119]Appc is unable to process the file 'C
\devroot\seahawk\modules\datafeed\lmiu\.workshop\lmiuAdapter \EJB\ProjectBeans'.
The following error occurred:
[wlwBuild] Compiler failed executable.exec at
weblogic.ejb20.ejbc.EJBCompiler.doCompile(EJBCompiler.java:2 74) at
weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java: 476) at
weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java: 387) at
weblogic.appc.compileEJB(appc.java:809) at
weblogic.appc.compileEJB(appc.java:778) at
weblogic.appc.compileInput(appc.java:465) at
weblogic.appc.runBody(appc.java:186) at
weblogic.utils.compiler.Tool.run(Tool.java:192) at
weblogic.utils.compiler.Tool.run(Tool.java:147) at
weblogic.appc.main(appc.java:1037) at
com.bea.wlw.runtime.core.bean.EJBGenerator.generateJar(EJBGe nerator.java:287)
at
com.bea.wlw.runtime.core.dispatcher.DispResources.generateJa rs(DispResources.java:686)
at
com.bea.wlw.runtime.core.dispatcher.DispCache.ensureDispUnit (DispCache.java:719)
at
com.bea.wlw.runtime.core.dispatcher.DispUnit.findDispGroup(D ispUnit.java:295)
at
com.bea.wlw.runtime.core.dispatcher.DispResources.generateMe tadata(DispResources.java:513)
at
com.bea.wlw.runtime.core.dispatcher.DispCache.ensureDispUnit (DispCache.java:615)
at
com.bea.wlw.runtime.core.ear.WebAppBuildTask.compileWlw(WebA ppBuildTask.java:1358)
at
com.bea.wlw.runtime.core.ear.WebAppBuildTask.compileWebApp(W ebAppBuildTask.java:840)
at
com.bea.wlw.runtime.core.ear.WebAppBuildTask.doCompile(WebAp pBuildTask.java:421)
at
com.bea.wlw.runtime.core.ear.WebAppBuildTask.execute(WebAppB uildTask.java:246)
at org.apache.tools.ant.Task.perform(Task.java:341) at
org.apache.tools.ant.Target.execute(Target.java:309) at
org.apache.tools.ant.Target.performTasks(Target.java:336) at
workshop.workspace.ant.AntSvcImpl$AntThread.executeTarget(An tSvcImpl.java:495)
at workshop.workspace.ant.AntSvcImpl$AntThread.run(AntSvcImpl.j ava:441)
java.io.IOException: Compiler failed executable.exec at
weblogic.utils.compiler.CompilerInvoker.compileMaybeExit(Com pilerInvoker.java:470)
at
weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvo ker.java:328)
at
weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvo ker.java:336)
at weblogic.ejb20.ejbc.EJBCompiler.doCompile(EJBCompiler.java:2 70) at
weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java: 476) at
weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java: 387) at
weblogic.appc.compileEJB(appc.java:809) at
weblogic.appc.compileEJB(appc.java:778) at
weblogic.appc.compileInput(appc.java:465) at
weblogic.appc.runBody(appc.java:186) at
weblogic.utils.compiler.Tool.run(Tool.java:192) at
weblogic.utils.compiler.Tool.run(Tool.java:147) at
weblogic.appc.main(appc.java:1037) at
com.bea.wlw.runtime.core.bean.EJBGenerator.generateJar(EJBGe nerator.java:287)
at
com.bea.wlw.runtime.core.dispatcher.DispResources.generateJa rs(DispResources.java:686)
at
com.bea.wlw.runtime.core.dispatcher.DispCache.ensureDispUnit (DispCache.java:719)
at
com.bea.wlw.runtime.core.dispatcher.DispUnit.findDispGroup(D ispUnit.java:295)
at
com.bea.wlw.runtime.core.dispatcher.DispResources.generateMe tadata(DispResources.java:513)
at
com.bea.wlw.runtime.core.dispatcher.DispCache.ensureDispUnit (DispCache.java:615)
at
com.bea.wlw.runtime.core.ear.WebAppBuildTask.compileWlw(WebA ppBuildTask.java:1358)
at
com.bea.wlw.runtime.core.ear.WebAppBuildTask.compileWebApp(W ebAppBuildTask.java:840)
at
com.bea.wlw.runtime.core.ear.WebAppBuildTask.doCompile(WebAp pBuildTask.java:421)
at
com.bea.wlw.runtime.core.ear.WebAppBuildTask.execute(WebAppB uildTask.java:246)
at org.apache.tools.ant.Task.perform(Task.java:341) at
org.apache.tools.ant.Target.execute(Target.java:309) at
org.apache.tools.ant.Target.performTasks(Target.java:336) at
workshop.workspace.ant.AntSvcImpl$AntThread.executeTarget(An tSvcImpl.java:495)
at workshop.workspace.ant.AntSvcImpl$AntThread.run(AntSvcImpl.j ava:441)
--------------- nested within: ------------------
weblogic.utils.compiler.ToolFailureException: [J2EE:160121]Errors
encountered while compiling module 'C
\devroot\seahawk\modules\datafeed\lmiu\.workshop\lmiuAdapter \EJB\ProjectBeans':
Compiler failed executable.exec - with nested exception: [ Compiler failed
executable.exec ] at weblogic.appc.compileEJB(appc.java:783) at
weblogic.appc.compileInput(appc.java:465) at
weblogic.appc.runBody(appc.java:186) at
weblogic.utils.compiler.Tool.run(Tool.java:192) at
weblogic.utils.compiler.Tool.run(Tool.java:147) at
weblogic.appc.main(appc.java:1037) at
com.bea.wlw.runtime.core.bean.EJBGenerator.generateJar(EJBGe nerator.java:287)
at
com.bea.wlw.runtime.core.dispatcher.DispResources.generateJa rs(DispResources.java:686)
at
com.bea.wlw.runtime.core.dispatcher.DispCache.ensureDispUnit (DispCache.java:719)
at
com.bea.wlw.runtime.core.dispatcher.DispUnit.findDispGroup(D ispUnit.java:295)
at
com.bea.wlw.runtime.core.dispatcher.DispResources.generateMe tadata(DispResources.java:513)
at
com.bea.wlw.runtime.core.dispatcher.DispCache.ensureDispUnit (DispCache.java:615)
at
com.bea.wlw.runtime.core.ear.WebAppBuildTask.compileWlw(WebA ppBuildTask.java:1358)
at
com.bea.wlw.runtime.core.ear.WebAppBuildTask.compileWebApp(W ebAppBuildTask.java:840)
at
com.bea.wlw.runtime.core.ear.WebAppBuildTask.doCompile(WebAp pBuildTask.java:421)
at
com.bea.wlw.runtime.core.ear.WebAppBuildTask.execute(WebAppB uildTask.java:246)
at org.apache.tools.ant.Task.perform(Task.java:341) at
org.apache.tools.ant.Target.execute(Target.java:309) at
org.apache.tools.ant.Target.performTasks(Target.java:336) at
workshop.workspace.ant.AntSvcImpl$AntThread.executeTarget(An tSvcImpl.java:495)
at workshop.workspace.ant.AntSvcImpl$AntThread.run(AntSvcImpl.j ava:441)
[Build] SUGGESTION:An unexpected error occurred. Please contact
support@bea.com for further assistance.
[wlwBuild] [Build] ERROR
[wlwBuild] [Build] DESCRIPTION:An unexpected exception occurred while
attempting to locate the run-time information for this Web Service. Error:
java.lang.NullPointerException:null
[wlwBuild] [Build] SUGGESTION:An unexpected error occurred. Please
contact support@bea.com for further assistance.
[wlwBuild] [Build] ERROR
[wlwBuild] [Build] DESCRIPTION:Can't find implementation class for
gov.seahawk.datafeed.lmiu.WebClient
[wlwBuild] [Build] SUGGESTION:You may be missing a web logic component
such as WLI.
[wlwBuild] [Build] ERROR
[wlwBuild] [Build] DESCRIPTION:An unexpected exception occurred while
attempting to locate the run-time information for this Web Service. Error:
java.lang.reflect.InvocationTargetException:null
[wlwBuild] [Build] SUGGESTION:An unexpected error occurred. Please
contact support@bea.com for further assistance.
[wlwBuild] [Build] lmiuAdapter: Compiled 3 WLW files in 6422
milliseconds
[wlwBuild] [Build] lmiuAdapter: Found no controls requiring bean
creation
[wlwBuild] [Build] lmiuAdapter: Created control beans for 0 controls in
0 milliseconds
[wlwBuild] [Build] java.io.IOException: CreateProcess: "C:\Program
Files\Java\bin\java.exe" -ea -Xss512k -Xmx256m -jar C
\bea\weblogic81\javelin\lib\javelin.jar @C
\DOCUME~1\GRANT~1.LEW\LOCALS~1\Temp\javelin-javac-args-17672 .tmp error=3
[wlwBuild] [Build] at java.lang.ProcessImpl.create(Native Method)
[wlwBuild] [Build] at java.lang.ProcessImpl.<init>(Unknown Source)
[wlwBuild] [Build] at java.lang.ProcessImpl.start(Unknown Source)
[wlwBuild] [Build] at java.lang.ProcessBuilder.start(Unknown Source)
[wlwBuild] [Build] at java.lang.Runtime.exec(Unknown Source)
[wlwBuild] [Build] at java.lang.Runtime.exec(Unknown Source)
[wlwBuild] [Build] at
javelin.CodeGenUtil.externalCompile(CodeGenUtil.java:174)
[wlwBuild] [Build] at
javelin.SourceProject.endBuild(SourceProject.java:1515)
[wlwBuild] [Build] at javelin.work.WorkBuild.end(WorkBuild.java:72)
[wlwBuild] [Build] at
javelin.work.WorkCompileFiles.run(WorkCompileFiles.java:162)
[wlwBuild] [Build] at
javelin.threading.WorkList$ExclusiveThread.run(WorkList.java :333)
[wlwBuild] [Build] BUILD FAILED
[wlwBuild] [Build] Build failed with 6 error(s).
[wlwBuild] [Build]
[wlwBuild] [Build] Application Build had errors.
[wlwBuild] [Build]
[wlwBuild] [Build] EAR archiving started.
[wlwBuild] [Build] BUILD STARTED
[wlwBuild] [Build] build:
[wlwBuild] [Build] Building zip: C
\devroot\seahawk\modules\datafeed\lmiu\lmiu.ear
[wlwBuild] [Build] BUILD SUCCESSFUL
[wlwBuild] java.lang.reflect.InvocationTargetException
[wlwBuild] java.lang.reflect.InvocationTargetException
[wlwBuild] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
[wlwBuild] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown
Source)
[wlwBuild] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
Source)
[wlwBuild] at java.lang.reflect.Method.invoke(Unknown Source)
[wlwBuild] at workshop.core.Compile.start(Compile.java:19)
[wlwBuild] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
[wlwBuild] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown
Source)
[wlwBuild] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
Source)
[wlwBuild] at java.lang.reflect.Method.invoke(Unknown Source)
[wlwBuild] at workshop.core.Starter.invokeStart(Starter.java:38)
[wlwBuild] at workshop.core.Compile.main(Compile.java:9)
[wlwBuild] Caused by: java.lang.NoClassDefFoundError:
org/apache/crimson/tree/XmlDocument
[wlwBuild] at
workshop.util.ide.PreferencesNode._export(PreferencesNode.ja va:540)
[wlwBuild] at
workshop.util.ide.PreferencesNode.exportSubtree(PreferencesN ode.java:820)
[wlwBuild] at
workshop.util.ide.PreferencesNode.flush(PreferencesNode.java :984)
[wlwBuild] at workshop.core.App$15.run(App.java:1010)
[wlwBuild] at
workshop.core.asynctask.AsyncTaskManager.showDialogWhileRunn ing(AsyncTaskManager.java:272)
[wlwBuild] at
workshop.core.asynctask.AsyncTaskManager.showDialogWhileRunn ing(AsyncTaskManager.java:482)
[wlwBuild] at workshop.core.App.exit(App.java:1004)
[wlwBuild] at
workshop.core.CompileHelper.compile(CompileHelper.java:332)
[wlwBuild] ... 11 more
BUILD FAILED
C:\devroot\seahawk\modules\build.xml:84: The following error occurred while
executing this line:
C:\devroot\seahawk\modules\datafeed\build.xml:6: The following error
occurred while executing this line:
C:\devroot\seahawk\modules\datafeed\lmiu\build.xml:8: The following error
occurred while executing this line:
C:\devroot\seahawk\modules\datafeed\lmiu\build-workshop.xml: 74: Java
returned: -1
Total time: 39 seconds
Previous Topic:Developing an app that needs root privileges ?
Next Topic:problem with java.library.path
Goto Forum:
  


Current Time: Tue Apr 23 16:03:39 GMT 2024

Powered by FUDForum. Page generated in 0.03381 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top