maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Terala, Satish \(IS Consultant\)" <STer...@consultantemail.com>
Subject RE: Help! Maven weblogic plugin: NoClassDefFoundError with com/bea/xml/XmlException
Date Fri, 20 Jul 2007 18:18:17 GMT
Do you have xbean.jar as a dependency in your project.

This class is part of xbean.jar distributed with weblogic.

-Satish

-----Original Message-----
From: Vaidya, Supriya A (US - Chicago)
[mailto:supriyavaidya@deloitte.com] 
Sent: Friday, July 20, 2007 1:34 PM
To: Maven Users List
Subject: RE: Help! Maven weblogic plugin: NoClassDefFoundError with
com/bea/xml/XmlException

Hi - could someone please point me in the right direction with this
error?
 

________________________________

From: Vaidya, Supriya A (US - Chicago) 
Sent: Friday, July 20, 2007 10:36 AM
To: 'Maven Users List'
Subject: Maven weblogic plugin: NoClassDefFoundError with
com/bea/xml/XmlException


Hi:
 
I have installed the following jars:
 
mvn install:install-file
-Dfile=C:\bea\weblogic92\server\lib\weblogic.jar -DgroupId=weblogic
-DartifactId=weblogic -Dversion=9.0 -Dpackaging=jar -DgeneratePom=true

 

mvn install:install-file
-Dfile=C:\bea\weblogic92\server\lib\webservices.jar -DgroupId=weblogic
-DartifactId=webservices -Dversion=9.0 -Dpackaging=jar
-DgeneratePom=true

 

mvn install:install-file -Dfile=C:\bea\weblogic92\server\lib\xbean.jar
-DgroupId=weblogic -DartifactId=xbean -Dversion=9.0 -Dpackaging=jar
-DgeneratePom=true

 

mvn install:install-file -Dfile=C:\bea\weblogic92\server\lib\wlxbean.jar
-DgroupId=weblogic -DartifactId=wlxbean -Dversion=9.0 -Dpackaging=jar
-DgeneratePom=true

 

mvn install:install-file
-Dfile=C:\bea\weblogic92\common\lib\wlw-util.jar -DgroupId=weblogic
-DartifactId=wlw-util -Dversion=9.0 -Dpackaging=jar -DgeneratePom=true

 

mvn install:install-file
-Dfile=C:\bea\weblogic92\server\lib\wlw-langx.jar -DgroupId=weblogic
-DartifactId=wlw-langx -Dversion=9.0 -Dpackaging=jar -DgeneratePom=true

 

mvn install:install-file
-Dfile=C:\bea\weblogic92\javelin\lib\bcel-5.1.jar -DgroupId=weblogic
-DartifactId=bcel -Dversion=9.0 -Dpackaging=jar -DgeneratePom=true

mvn install:install-file
-Dfile=C:\bea\weblogic92\javelin\lib\javelinx.jar -DgroupId=weblogic
-DartifactId=javelinx -Dversion=9.0 -Dpackaging=jar -DgeneratePom=true

 

mvn install:install-file
-Dfile=C:\bea\weblogic92\server\lib\schema\weblogic-container-binding.ja
r -DgroupId=weblogic -DartifactId=weblogic-container-binding
-Dversion=9.0 -Dpackaging=jar -DgeneratePom=true

 

When running the command mvn weblogic:appc - I get the following error:

 

<Jul 20, 2007 10:26:23 AM CDT> <Error> <J2EE> <BEA-160187>
<weblogic.appc failed
 to compile your application. Recompile with the -verbose option for
more detail
s. Please see the error message(s) below.>
[ERROR] Exception encountered during APPC processing
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)
        at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi
nManager.java:443)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
ultLifecycleExecutor.java:539)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandalone
Goal(DefaultLifecycleExecutor.java:493)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau
ltLifecycleExecutor.java:463)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan
dleFailures(DefaultLifecycleExecutor.java:311)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen
ts(DefaultLifecycleExecutor.java:278)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
fecycleExecutor.java:143)
        at
org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:280)
        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)
Caused by: weblogic.utils.compiler.ToolFailureException:
com/bea/xml/XmlExceptio
n
        at
weblogic.application.compiler.FlowDriver.handleStateChangeException(F
lowDriver.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 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
weblogic.ant.taskdefs.j2ee.CompilerTask.invokeMain(CompilerTask.java:
290)
        ... 21 more
Caused by: java.lang.NoClassDefFoundError: com/bea/xml/XmlException
        at
weblogic.application.descriptor.AbstractDescriptorLoader2.getDescript
orManager(AbstractDescriptorLoader2.java:301)
        at
weblogic.application.descriptor.AbstractDescriptorLoader2.getDescript
orBeanFromReader(AbstractDescriptorLoader2.java:749)

 
I know that the com/bea/xml/XmlException class is contained in
xbean.jar, which has been installed and included as a dependency:
 
 <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>
      <scope>compile</scope>
    </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>
 
 <dependency>
      <groupId>weblogic</groupId>
      <artifactId>webservices</artifactId>
      <version>9.0</version>
    </dependency>
 
 <dependency>
      <groupId>weblogic</groupId>
      <artifactId>wlxbean</artifactId>
      <version>9.0</version>
    </dependency>
 
 <dependency>
  <groupId>web-maven</groupId>
  <artifactId>web-maven</artifactId>
  <version>1.0</version>
  <scope>compile</scope>
 </dependency>

 
So what am I doing wrong?!?! 


This message (including any attachments) contains confidential
information intended for a specific individual and purpose, and is
protected by law.  If you are not the intended recipient, you should
delete this message. 


Any disclosure, copying, or distribution of this message, or the taking
of any action based on it, is strictly prohibited. [v.E.1]

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Mime
View raw message