aspose file tools*
The moose likes Ant, Maven and Other Build Tools and the fly likes Error While packaging ear Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "Error While packaging ear" Watch "Error While packaging ear" New topic
Author

Error While packaging ear

Alok Jindal
Greenhorn

Joined: Jan 22, 2007
Posts: 1
Hi all,

I'm working on a project which has ejb, web and java projects. I need to package them to a ear using maven 2.x and i'm getting the following error when i'm trying package it.

[INFO] Scanning for projects...
[INFO] -------------------------------------------------------------------------
---
[INFO] Building ear file
[INFO] task-segment: [package]
[INFO] -------------------------------------------------------------------------
---
[INFO] [ear:generate-application-xml]
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [ear:ear]
[INFO] Copying artifact[war nv-rc:webqa:rc] to[webqa-rc.war]
[INFO] ------------------------------------------------------------------------
[ERROR] FATAL ERROR
[INFO] ------------------------------------------------------------------------
[INFO] null
[INFO] ------------------------------------------------------------------------
[INFO] Trace
java.lang.NullPointerException
at com.trend.iwss.jscan.appscan.runtime.PolicyRuntime.getB64StrProp(Poli
cyRuntime.java:188)
at com.trend.iwss.jscan.appscan.runtime.PolicyRuntime.<init>(PolicyRunti
me.java:91)
at com.trend.iwss.jscan.appscan.runtime.FileIOPolicyRuntime.<init>(FileI
OPolicyRuntime.java:159)
at com.trend.iwss.jscan.appscan.runtime.FileIOPolicyRuntime$Factory.make
(FileIOPolicyRuntime.java:449)
at com.trend.iwss.jscan.appscan.runtime.PolicyRuntime.accessInstance(Pol
icyRuntime.java:225)
at com.trend.iwss.jscan.appscan.runtime.PolicyRuntime.preFilter(PolicyRu
ntime.java:127)
at com.trend.iwss.jscan.appscan.runtime.FileIOPolicyRuntime.preFilter(Fi
leIOPolicyRuntime.java:166)
at org.apache.maven.plugin.ear.EarMojo.execute(EarMojo.java:152)
at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi
nManager.java:412)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
ultLifecycleExecutor.java:534)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLi
fecycle(DefaultLifecycleExecutor.java:475)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau
ltLifecycleExecutor.java:454)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan
dleFailures(DefaultLifecycleExecutor.java:306)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen
ts(DefaultLifecycleExecutor.java:273)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
fecycleExecutor.java:140)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)

at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1 minute 47 seconds
[INFO] Finished at: Mon Jan 22 17:18:20 GMT+05:30 2007
[INFO] Final Memory: 4M/8M
[INFO] ------------------------------------------------------------------------


Any input on this error would be helpful.

Thanks and Regards
Alok
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Error While packaging ear