[
http://jira.codehaus.org/browse/MOJO-585?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_92758
]
Doug Tanner commented on MOJO-585:
----------------------------------
I am seeing a similar error, except my problem is with a WAR file. I have
added the above dependencies to my project's pom.xml. Here is the plugin
snippet from my pom:
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>weblogic-maven-plugin</artifactId>
<version>2.9.0-SNAPSHOT</version>
<configuration>
<inputArtifactPath>${basedir}/../../jar/broker.war</inputArtifactPath>
<verbose>true</verbose>
</configuration>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>appc</goal>
</goals>
</execution>
</executions>
</plugin>
And here is the error message:
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Exception encountered during APPC processing
Embedded error: weblogic.utils.compiler.ToolFailureException:
com/bea/xml/XmlException
[INFO] ------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Exception encountered
during APPC processing
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:559)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:475)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:454)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:306)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:273)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.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
jrockit.reflect.InitialMethodInvoker.invoke(Ljava.lang.Object;[Ljava.lang.Object;)Ljava.lang.Object;(Unknown
Source)
at
java.lang.reflect.Method.invoke(Ljava.lang.Object;[Ljava.lang.Object;I)Ljava.lang.Object;(Unknown
Source)
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)
Caused by: org.apache.maven.plugin.MojoExecutionException: Exception
encountered during APPC processing
at org.codehaus.mojo.weblogic.AppcMojo.execute(AppcMojo.java:185)
at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:412)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:534)
... 14 more
Caused by: weblogic.utils.compiler.ToolFailureException:
com/bea/xml/XmlException
at
weblogic.ant.taskdefs.j2ee.CompilerTask.invokeMain(CompilerTask.java:299)
at weblogic.ant.taskdefs.j2ee.Appc.privateExecute(Appc.java:250)
at weblogic.ant.taskdefs.j2ee.Appc.execute(Appc.java:159)
at org.codehaus.mojo.weblogic.AppcMojo.execute(AppcMojo.java:180)
... 16 more
Caused by: weblogic.utils.compiler.ToolFailureException:
com/bea/xml/XmlException
at
weblogic.application.compiler.FlowDriver.handleStateChangeException(FlowDriver.java:53)
at
weblogic.application.compiler.FlowDriver.nextState(FlowDriver.java:37)
at weblogic.application.compiler.FlowDriver.run(FlowDriver.java:26)
at weblogic.application.compiler.Appc.runBody(Appc.java:163)
at weblogic.utils.compiler.Tool.run(Tool.java:158)
at weblogic.utils.compiler.Tool.run(Tool.java:115)
at weblogic.application.compiler.Appc.main(Appc.java:174)
at weblogic.appc.main(appc.java:14)
at
jrockit.reflect.InitialMethodInvoker.invoke(Ljava.lang.Object;[Ljava.lang.Object;)Ljava.lang.Object;(Unknown
Source)
at
java.lang.reflect.Method.invoke(Ljava.lang.Object;[Ljava.lang.Object;I)Ljava.lang.Object;(Unknown
Source)
at
weblogic.ant.taskdefs.j2ee.CompilerTask.invokeMain(CompilerTask.java:290)
at weblogic.ant.taskdefs.j2ee.Appc.privateExecute(Appc.java:250)
at weblogic.ant.taskdefs.j2ee.Appc.execute(Appc.java:159)
at org.codehaus.mojo.weblogic.AppcMojo.execute(AppcMojo.java:180)
at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:412)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:534)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:475)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:454)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:306)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:273)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:140)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
Caused by: java.lang.NoClassDefFoundError: com/bea/xml/XmlException
at
weblogic.application.descriptor.AbstractDescriptorLoader2.getDescriptorManager(AbstractDescriptorLoader2.java:301)
at
weblogic.application.descriptor.AbstractDescriptorLoader2.getDescriptorBeanFromReader(AbstractDescriptorLoader2.java:749)
at
weblogic.application.descriptor.AbstractDescriptorLoader2.createDescriptorBean(AbstractDescriptorLoader2.java:376)
at
weblogic.application.descriptor.AbstractDescriptorLoader2.loadDescriptorBeanWithoutPlan(AbstractDescriptorLoader2.java:720)
at
weblogic.application.descriptor.AbstractDescriptorLoader2.loadDescriptorBean(AbstractDescriptorLoader2.java:729)
at
weblogic.servlet.internal.WebAppDescriptor.getWebAppBean(WebAppDescriptor.java:134)
at
weblogic.servlet.jsp.JspcInvoker.parseDescriptors(JspcInvoker.java:276)
at weblogic.servlet.jsp.JspcInvoker.compile(JspcInvoker.java:187)
at
weblogic.application.compiler.AppcUtils.compileWAR(AppcUtils.java:353)
at
weblogic.application.compiler.WARCompiler.compile(WARCompiler.java:78)
at
weblogic.application.compiler.flow.AppCompilerFlow.compileInput(AppCompilerFlow.java:118)
at
weblogic.application.compiler.flow.AppCompilerFlow.compile(AppCompilerFlow.java:43)
at
weblogic.application.compiler.FlowDriver$FlowStateChange.next(FlowDriver.java:69)
at
weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26)
at
weblogic.application.compiler.FlowDriver.nextState(FlowDriver.java:36)
at weblogic.application.compiler.FlowDriver.run(FlowDriver.java:26)
at weblogic.application.compiler.Appc.runBody(Appc.java:163)
at weblogic.utils.compiler.Tool.run(Tool.java:158)
at weblogic.utils.compiler.Tool.run(Tool.java:115)
at weblogic.application.compiler.Appc.main(Appc.java:174)
at weblogic.appc.main(appc.java:14)
at
jrockit.reflect.InitialMethodInvoker.invoke(Ljava.lang.Object;[Ljava.lang.Object;)Ljava.lang.Object;(Unknown
Source)
at
java.lang.reflect.Method.invoke(Ljava.lang.Object;[Ljava.lang.Object;I)Ljava.lang.Object;(Unknown
Source)
at
weblogic.ant.taskdefs.j2ee.CompilerTask.invokeMain(CompilerTask.java:290)
at weblogic.ant.taskdefs.j2ee.Appc.privateExecute(Appc.java:250)
at weblogic.ant.taskdefs.j2ee.Appc.execute(Appc.java:159)
at org.codehaus.mojo.weblogic.AppcMojo.execute(AppcMojo.java:180)
at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:412)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:534)
Any thoughts?
> appc causes java.lang.NoClassDefFoundError: com/bea/xml/XmlException
> --------------------------------------------------------------------
>
> Key: MOJO-585
> URL: http://jira.codehaus.org/browse/MOJO-585
> Project: Mojo
> Issue Type: Bug
> Components: weblogic
> Environment: weblogic-maven-plugin 2.9.0-SNAPSHOT
> Reporter: Willie Vu
>
> My project is to create an ejb jar. When I try to build it, I got
> java.lang.NoClassDefFoundError: com/bea/xml/XmlException
> The following is my pom.xml plugin configuration:
> <plugin>
> <groupId>org.codehaus.mojo</groupId>
> <artifactId>weblogic-maven-plugin</artifactId>
> <version>2.9.0-SNAPSHOT</version>
> <configuration>
> <adminServerHostName>localhost</adminServerHostName>
> <adminServerPort>7001</adminServerPort>
> <adminServerProtocol>http</adminServerProtocol>
> <userId>weblogic</userId>
> <password>weblogic</password>
> <upload>false</upload>
> <remote>false</remote>
> <verbose>true</verbose>
> <debug>false</debug>
> <targetNames>myserver</targetNames>
> </configuration>
> <executions>
> <execution>
> <phase>process-classes</phase>
> <goals>
> <goal>appc</goal>
> </goals>
> </execution>
> </executions>
> </plugin>
> The following is the error when mvn package is executed.
> [INFO] [weblogic:appc {execution: default}]
> [INFO] Weblogic APPC processing beginning with parameters
> AppcMojo[inputArtifactPath = c:\Documents and
> Settings\wvu\ejb\target/test-generate-descriptors-1.0-SNAPSHOT.ejb,
> projectPackaging = ejb, verbose = true, keepGenerated = true, artifacts =
> [weblogic:weblogic:jar:9.2.4:compile, com.test:ap:jar:6.0-SNAPSHOT:compile],
> outputArtifactPath = null, forceGeneration = true, lineNumbers = false,
> basicClientJar = false]
> [INFO] Argument List for Appc settings [-forceGeneration, -keepgenerated,
> -verbose, -classpath, C:\Documents and
> Settings\wvu\.m2\repository\weblogic\weblogic\9.2.4\weblogic-9.2.4.jar:C:\Documents
> and
> Settings\wvu\.m2\repository\com\test\ap\6.0-SNAPSHOT\ap-6.0-SNAPSHOT.jar,
> c:\Documents and
> Settings\wvu\ejb\target/test-generate-descriptors-1.0-SNAPSHOT.jar]
> Created working directory:
> C:\DOCUME~1\wvu\LOCALS~1\Temp\appcgen_test-generate-descriptors-1.0-SNAPSHOT.jar
> java.lang.NoClassDefFoundError: com/bea/xml/XmlException
> at
> weblogic.ejb.spi.EjbDescriptorBean.<init>(EjbDescriptorBean.java:73)
> at
> weblogic.ejb.container.dd.xml.DDUtils.createDescriptorFromJarFile(DDUtils.java:165)
> at
> weblogic.ejb.container.dd.xml.DDUtils.createReadOnlyDescriptorFromJarFile(DDUtils.java:141)
> at
> weblogic.ejb.container.ejbc.EJBCompiler.parseDescriptors(EJBCompiler.java:1351)
> at
> weblogic.ejb.container.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:431)
> at
> weblogic.application.compiler.AppcUtils.compileEJB(AppcUtils.java:297)
> at
> weblogic.application.compiler.EJBCompiler.compile(EJBCompiler.java:96)
> at
> weblogic.application.compiler.flow.AppCompilerFlow.compileInput(AppCompilerFlow.java:118)
> at
> weblogic.application.compiler.flow.AppCompilerFlow.compile(AppCompilerFlow.java:43)
> at
> weblogic.application.compiler.FlowDriver$FlowStateChange.next(FlowDriver.java:69)
> at
> weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26)
> at
> weblogic.application.compiler.FlowDriver.nextState(FlowDriver.java:36)
> at weblogic.application.compiler.FlowDriver.run(FlowDriver.java:26)
> at weblogic.application.compiler.Appc.runBody(Appc.java:163)
> at weblogic.utils.compiler.Tool.run(Tool.java:158)
> at weblogic.utils.compiler.Tool.run(Tool.java:115)
> at weblogic.application.compiler.Appc.main(Appc.java:174)
> at weblogic.appc.main(appc.java:14)
> at org.codehaus.mojo.weblogic.AppcMojo.execute(AppcMojo.java:126)
> at
> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:412)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:534)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:475)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:454)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:306)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:273)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.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(DelegatingMethodAccessorImpl.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)
> com/bea/xml/XmlException
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email