Announcement

Collapse
No announcement yet.

Weblogic MBeanMaker

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Weblogic MBeanMaker

    Hallo,

    ich bin gerade daran mit dem weblogic.jar aus dem Weblogic-Web-App-Server ein MBean zu erstellen.

    Der Weblogic Server läuft auf Linux.

    Das ist meine Eingabe:

    java -cp .:temp:tempClassesDir:weblogic.jar:/opt/bea/jrockit90_150_03/lib/tools.jar:xbean.jar:velocity-dep-1.3.1.jar:wlutil.jar:wlxbean.jar:wlbase.jar:jms51-interop.jar:binxml.jar:api.jar:/opt/bea/weblogic90/server/lib/mbeantypes/wlManagementImplSource.jar:/opt/bea/weblogic90/server/lib/mbeantypes/wlManagementMBean.jar:/opt/bea/weblogic90/server/lib/mbeantypes/wlSecurityProviders.jar -DcreateStubs=true -DMJF=testMBean.jar -DMDF=/opt/bea/weblogic90/server/lib/TestMBean.xml -Dfiles=/opt/bea/weblogic90/server/lib/temp/ weblogic.management.commo.WebLogicMBeanMaker

    1. Die *.java Klassen werden erstellt. -> -MDF
    2. Beim Erstellen des JAR-File bekomme ich folgende Meldung:

    Parsing the MBean definition file: /opt/bea/weblogic90/server/lib/TestMBean.xml
    Creating an MJF from the contents of directory /opt/bea/weblogic90/server/lib/temp/...
    Compiling the files...
    Creating the list.
    Doing the compile.
    Note: * uses or overrides a deprecated API.
    Note: Recompile with -Xlint:deprecation for details.
    WLMaker-SubProcess: :
    WLMaker-SubProcess: :
    WLMaker-SubProcess: :
    WLMaker-SubProcess: : Generating the implementations for security MBeans
    WLMaker-SubProcess: : no annotation found for key [i]
    WLMaker-SubProcess: : no annotation found for key [velocityCount]
    WLMaker-SubProcess: : no annotation found for key [line]
    WLMaker-SubProcess: : no annotation found for key [f]
    WLMaker-SubProcess: : no annotation found for key [m]
    WLMaker-SubProcess: : no annotation found for key [p]
    WLMaker-SubProcess: : no annotation found for key [n]
    WLMaker-SubProcess: : Error: /opt/bea/weblogic90/server/lib/PredicateReaderMBean.java(0): Custom operation String[] getRegisteredPredicates(String param0) must be implemented by DefaultAuthorizerImpl
    WLMaker-SubProcess: : Error: /opt/bea/weblogic90/server/lib/PredicateReaderMBean.java(0): Custom operation boolean isRegisteredPredicate(String param0) must be implemented by DefaultAuthorizerImpl
    WLMaker-SubProcess: : Error: /opt/bea/weblogic90/server/lib/PredicateEditorMBean.java(0): Custom operation void registerPredicate(String param0) must be implemented by DefaultAuthorizerImpl
    WLMaker-SubProcess: : Error: /opt/bea/weblogic90/server/lib/PredicateEditorMBean.java(0): Custom operation void unregisterPredicate(String param0) must be implemented by DefaultAuthorizerImpl
    WLMaker-SubProcess: : weblogic.descriptor.beangen.BeanGenerationExceptio n: 4 errors occurred during processing DefaultAuthorizerMBean
    WLMaker-SubProcess: : at weblogic.descriptor.beangen.BeanClass.implement(Be anClass.java:865)
    WLMaker-SubProcess: : at weblogic.descriptor.beangen.BeanClass.<init>(BeanC lass.java:54)
    WLMaker-SubProcess: : at weblogic.descriptor.beangen.BeanGenerator$1.intern alGet(BeanGenerator.java:41)
    WLMaker-SubProcess: : at weblogic.apache.org.apache.velocity.context.Abstra ctContext.get(AbstractContext.java:238)
    WLMaker-SubProcess: : at weblogic.apache.org.apache.velocity.context.Intern alContextAdapterImpl.get(InternalContextAdapterImp l.java:200)
    WLMaker-SubProcess: : at weblogic.apache.org.apache.velocity.runtime.parser .node.ASTReference.getVariableValue(ASTReference.j ava:705)
    WLMaker-SubProcess: : at weblogic.apache.org.apache.velocity.runtime.parser .node.ASTReference.execute(ASTReference.java:183)
    WLMaker-SubProcess: : at weblogic.apache.org.apache.velocity.runtime.parser .node.ASTReference.render(ASTReference.java:250)
    WLMaker-SubProcess: : at weblogic.apache.org.apache.velocity.runtime.parser .node.SimpleNode.render(SimpleNode.java:271)
    WLMaker-SubProcess: : at weblogic.apache.org.apache.velocity.Template.merge (Template.java:296)
    WLMaker-SubProcess: : at weblogic.utils.codegen.CodeGenerator.generate(Code Generator.java:147)
    WLMaker-SubProcess: : at weblogic.descriptor.beangen.BeanGenerator.generate (BeanGenerator.java:30)
    WLMaker-SubProcess: : at weblogic.management.commo.BeanGenDriver.main(BeanG enDriver.java:152)
    WLMaker-SubProcess: : Stopped draining WLMaker-SubProcess:
    WLMaker-SubProcess: : Stopped draining WLMaker-SubProcess:
    BeanGen code generation failed

    Kann mir jemand sagen was abgeht?...wo mache ich was falsch?

    Danke im Voraus!

  • #2
    ...Bitte helft mir!Es ist extrem wichtig!

    Comment


    • #3
      ::: GESCHAFFT :::

      ...habe das MDF - xml file auf das Minimum angepasst und geparst.
      Dann habe ich alle jar-libs aus dem $WL_HOME/webserver90/server/bin/ in den Classpath eingefügt und es funkt! ;-)

      Comment


      • #4
        ...nächstes Problem!!!!

        --> Nun habe ich ein MBean als Jar-file und möchte, dass mein Weblogic es einliest.
        Wie muss ich genau vorgehen?...wo muss ich es hinein kopieren?

        ...Vorschlag? :-/

        Comment

        Working...
        X