[ 
http://jira.codehaus.org/browse/MOJO-585?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_106387
 ] 

John Pfeifer  commented on MOJO-585:
------------------------------------

I have installed all of the weblogic jar file to my local repository and have 
included those dependencies in both my plugin configuration and as part of the 
pom dependencies but the error persists.  Can you attach a sample pom.xml?

My plugin config looks like this, but I still get 

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)

        <groupId>org.codehaus.mojo</groupId>
        <artifactId>weblogic-maven-plugin</artifactId>
        <version>2.9.0-SNAPSHOT</version>
        <executions>
            <execution>
                <phase>package</phase>
                <goals>
                    <goal>appc</goal>
                </goals>
            </execution>
        </executions>
        <configuration>
          <keepGenerated>true</keepGenerated>
          <forceGeneration>true</forceGeneration> 
          <verbose>true</verbose> 
       

<dependency>
<groupId>weblogic</groupId>
<artifactId>xbean</artifactId>
<version>9.0</version>
</dependency>
<dependency>
<groupId>weblogic</groupId>
<artifactId>weblogic-container-binding</artifactId>
<version>9.0</version>
</dependency>
<dependency>
<groupId>weblogic</groupId>
<artifactId>weblogic</artifactId>
<version>9.0</version>
</dependency>
<dependency>
<groupId>weblogic</groupId>
<artifactId>wlw-util</artifactId>
<version>9.0</version>
</dependency>
<dependency>
<groupId>weblogic</groupId>
<artifactId>wlw-langx</artifactId>
<version>9.0</version>
</dependency>
<dependency>
<groupId>weblogic</groupId>
<artifactId>bcel</artifactId>
<version>9.0</version>
</dependency>
<dependency>
<groupId>weblogic</groupId>
<artifactId>javelinx</artifactId>
<version>9.0</version>
</dependency>
        </configuration>
      </plugin>


> 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

Reply via email to