Hi All,
I try to run the script created with workshop and I got error. Any idea what is mdimport task is doing?
There is absolutely NO documentation about it. Any help would be appreciated.
Part of the generated build script:
<target name="init" depends="check.setup,init.env,check.params,check.versions,init.typedefs" unless="init.executed">
What JAR file did you import the mdimport task from?
AtulSha mahajan
Greenhorn
Joined: Dec 08, 2010
Posts: 4
posted
0
number of war files reading from workspace.xml file... But when it reached at mdimport, it throws null pointer exception.
And the month ago same code was working fine.
Please find the below mention details of build script error
BUILD FAILED
/portalappdev/stc/stc_portal/selfcare/config/build.xml:82: java.lang.NullPointer
Exception
at org.apache.tools.ant.Task.perform(Task.java:373)
at org.apache.tools.ant.Target.execute(Target.java:341)
at org.apache.tools.ant.Target.performTasks(Target.java:369)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExe
cutor.java:40)
at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
at org.apache.tools.ant.Main.runBuild(Main.java:668)
at org.apache.tools.ant.Main.startAnt(Main.java:187)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
Caused by: java.lang.NullPointerException at java.io.FileInputStream.<init>(FileInputStream.java:103)
at com.bea.workshop.common.util.DomUtil.doc(DomUtil.java:73)
at com.bea.workshop.common.util.DomUtil.root(DomUtil.java:118)
at com.bea.workshop.cmdline.antlib.eclipse.wtp.WtpUtil.createVirtualFile
System(WtpUtil.java:63)
at com.bea.workshop.wls.antlib.mdimport.EarLibrariesContainerResolver.re
solve(EarLibrariesContainerResolver.java:42)
at com.bea.workshop.cmdline.antlib.eclipse.java.JavaImportParticipant.re
solve(JavaImportParticipant.java:383)
at com.bea.workshop.cmdline.antlib.eclipse.java.JavaImportParticipant.ge
tRawClasspath(JavaImportParticipant.java:257)
at com.bea.workshop.cmdline.antlib.eclipse.java.JavaImportParticipant.ge
tResolvedClasspath(JavaImportParticipant.java:280)
at com.bea.workshop.cmdline.antlib.eclipse.java.JavaImportParticipant.ex
ecute(JavaImportParticipant.java:147)
at com.bea.workshop.cmdline.antlib.eclipse.ImportProjectMetadataTask.exe
cute(ImportProjectMetadataTask.java:149)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
at org.apache.tools.ant.Task.perform(Task.java:364)
... 10 more
--- Nested Exception ---
java.lang.NullPointerException at java.io.FileInputStream.<init>(FileInputStream.java:103)
at com.bea.workshop.common.util.DomUtil.doc(DomUtil.java:73)
at com.bea.workshop.common.util.DomUtil.root(DomUtil.java:118)
at com.bea.workshop.cmdline.antlib.eclipse.wtp.WtpUtil.createVirtualFile
System(WtpUtil.java:63)
at com.bea.workshop.wls.antlib.mdimport.EarLibrariesContainerResolver.re
solve(EarLibrariesContainerResolver.java:42)
at com.bea.workshop.cmdline.antlib.eclipse.java.JavaImportParticipant.re
solve(JavaImportParticipant.java:383)
at com.bea.workshop.cmdline.antlib.eclipse.java.JavaImportParticipant.ge
tRawClasspath(JavaImportParticipant.java:257)
at com.bea.workshop.cmdline.antlib.eclipse.java.JavaImportParticipant.ge
tResolvedClasspath(JavaImportParticipant.java:280)
at com.bea.workshop.cmdline.antlib.eclipse.java.JavaImportParticipant.ex
ecute(JavaImportParticipant.java:147)
at com.bea.workshop.cmdline.antlib.eclipse.ImportProjectMetadataTask.exe
cute(ImportProjectMetadataTask.java:149)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
at org.apache.tools.ant.Task.perform(Task.java:364)
at org.apache.tools.ant.Target.execute(Target.java:341)
at org.apache.tools.ant.Target.performTasks(Target.java:369)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExe
cutor.java:40)
at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
at org.apache.tools.ant.Main.runBuild(Main.java:668)
at org.apache.tools.ant.Main.startAnt(Main.java:187)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
I suspect that you are doing something with WLS. Is that true? If so, the problem appears to be something in the WLS extensions to Ant, in which case I will move this port to the WLS forum.
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to
run our stuff on 16 servers instead of 3.