[
http://jira.codehaus.org/browse/MOJO-585?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=137057#action_137057
]
Jon Osborn commented on MOJO-585:
---------------------------------
The latest 2.9.1-SNAPSHOT release contains a fix. The dependencies should be
applied at the plugin level. This will allow the plugin dependencies to be
separate from your project dependencies and fix any related issues.
> 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
> Assignee: Jon Osborn
>
> 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