1 Reply Latest reply on Jan 4, 2011 11:00 AM by kabirkhan

    Deploying zkdemo in JBoss 6 with AOP loadtime weaving enabled

    fambad

      Hello,

       

      I have a problem deploying my ZK web application on JBoss 6 when having aop loadtime weaving activated. It can be readjusted using the ZKDemo application downloadable at "http://www.zkoss.org/download/zk.dsp" (zk-demo-5.0.5.zip).

       

      At first I tried to deploy the ZK Demo (Works fine at JBoss 5.1 and 4.3) without loadtime weaving activated.

      The deployment of the war file tooks over one minute in JBoss 6. I think this is not normal because the deployment tooks just a few seconds in JBoss 5.1.

       

       

      Then I activated loadtime weaving to use JBoss AOP. When I deploy the zkdemo.war file the deployment tooks very long.

       

      And in the log output I see follow messages (this is just an extract):

       

      17:30:40,183 WARN  [org.jboss.aop.instrument.Instrumentor] Could not find class org.hibernate.ejb.metamodel.AbstractManagedType.1 (or one of its implemented interfaces) that org.hibernate.ejb.metamode

      l.AbstractManagedType$1 references.  It may not be in your classpath and you may not be getting field and constructor weaving for this class.

      17:30:40,189 WARN  [org.jboss.aop.instrument.Instrumentor] Could not find class org.hibernate.ejb.metamodel.AbstractIdentifiableType.1 (or one of its implemented interfaces) that org.hibernate.ejb.met

      amodel.AbstractIdentifiableType$1 references.  It may not be in your classpath and you may not be getting field and constructor weaving for this class.

      17:30:40,213 WARN  [org.jboss.aop.instrument.Instrumentor] Could not find class org.hibernate.ejb.metamodel.AttributeFactory$SingularAttributeMetadataImpl.1 (or one of its implemented interfaces) that

      org.hibernate.ejb.metamodel.AttributeFactory$SingularAttributeMetadataImpl$1 references.  It may not be in your classpath and you may not be getting field and constructor weaving for this class.

      17:30:40,266 WARN  [org.jboss.aop.instrument.Instrumentor] Could not find class org.hibernate.ejb.metamodel.AttributeFactory$PluralAttributeMetadataImpl.1 (or one of its implemented interfaces) that o

      rg.hibernate.ejb.metamodel.AttributeFactory$PluralAttributeMetadataImpl$1 references.  It may not be in your classpath and you may not be getting field and constructor weaving for this class.

      17:30:45,823 WARN  [org.jboss.aop.instrument.Instrumentor] Could not find class org.apache.commons.io.FileCleaningTracker (or one of its implemented interfaces) that org.apache.commons.fileupload.disk

      .DiskFileItemFactory references.  It may not be in your classpath and you may not be getting field and constructor weaving for this class.

      17:30:45,860 WARN  [org.jboss.aop.instrument.Instrumentor] Could not find class org.apache.commons.io.FileCleaningTracker (or one of its implemented interfaces) that org.apache.commons.fileupload.serv

      let.FileCleanerCleanup references.  It may not be in your classpath and you may not be getting field and constructor weaving for this class.

      17:30:46,028 WARN  [org.jboss.aop.instrument.Instrumentor] AOP Instrumentor failed to transform org.apache.commons.logging.impl.AvalonLogger

      17:30:46,034 WARN  [org.jboss.aop.instrument.Instrumentor] Could not find class org.apache.log.Hierarchy (or one of its implemented interfaces) that org.apache.commons.logging.impl.LogKitLogger refere

      nces.  It may not be in your classpath and you may not be getting field and constructor weaving for this class.

      17:30:46,035 WARN  [org.jboss.aop.instrument.Instrumentor] Could not find class org.apache.log.Logger (or one of its implemented interfaces) that org.apache.commons.logging.impl.LogKitLogger reference

      s.  It may not be in your classpath and you may not be getting field and constructor weaving for this class.

      17:30:47,106 WARN  [org.jboss.aop.instrument.Instrumentor] Could not find class inkedListIterator (or one of its implemented interfaces) that org.hornetq.utils.PriorityLinkedListImpl$PriorityLinkedLis

      tIterator references.  It may not be in your classpath and you may not be getting field and constructor weaving for this class.

      17:30:47,299 WARN  [org.jboss.aop.instrument.Instrumentor] Could not find class org.bouncycastle.cms.RecipientId (or one of its implemented interfaces) that com.lowagie.text.pdf.PdfReader references.

      It may not be in your classpath and you may not be getting field and constructor weaving for this class.

      17:30:47,301 WARN  [org.jboss.aop.instrument.Instrumentor] Could not find class org.bouncycastle.cms.CMSEnvelopedData (or one of its implemented interfaces) that com.lowagie.text.pdf.PdfReader referen

      ces.  It may not be in your classpath and you may not be getting field and constructor weaving for this class.

      17:30:47,303 WARN  [org.jboss.aop.instrument.Instrumentor] Could not find class org.bouncycastle.cms.RecipientInformation (or one of its implemented interfaces) that com.lowagie.text.pdf.PdfReader ref

      erences.  It may not be in your classpath and you may not be getting field and constructor weaving for this class.

      17:30:47,315 WARN  [org.jboss.aop.instrument.Instrumentor] Could not find class org.bouncycastle.cms.RecipientInformationStore (or one of its implemented interfaces) that com.lowagie.text.pdf.PdfReade

      r references.  It may not be in your classpath and you may not be getting field and constructor weaving for this class.

      17:30:47,499 WARN  [org.jboss.aop.instrument.Instrumentor] Could not find class org.bouncycastle.crypto.params.ParametersWithIV (or one of its implemented interfaces) that com.lowagie.text.pdf.crypto.

      AESCipher references.  It may not be in your classpath and you may not be getting field and constructor weaving for this class.

      17:30:47,501 WARN  [org.jboss.aop.instrument.Instrumentor] Could not find class org.bouncycastle.crypto.paddings.PaddedBufferedBlockCipher (or one of its implemented interfaces) that com.lowagie.text.

      pdf.crypto.AESCipher references.  It may not be in your classpath and you may not be getting field and constructor weaving for this class.

      17:30:47,503 WARN  [org.jboss.aop.instrument.Instrumentor] Could not find class org.bouncycastle.crypto.BlockCipher (or one of its implemented interfaces) that com.lowagie.text.pdf.crypto.AESCipher re

      ferences.  It may not be in your classpath and you may not be getting field and constructor weaving for this class.

      17:30:47,516 WARN  [org.jboss.aop.instrument.Instrumentor] Could not find class org.bouncycastle.crypto.CipherParameters (or one of its implemented interfaces) that com.lowagie.text.pdf.crypto.AESCiph

      er references.  It may not be in your classpath and you may not be getting field and constructor weaving for this class.

      17:30:47,527 WARN  [org.jboss.aop.instrument.Instrumentor] Could not find class org.bouncycastle.crypto.engines.AESFastEngine (or one of its implemented interfaces) that com.lowagie.text.pdf.crypto.AE

      SCipher references.  It may not be in your classpath and you may not be getting field and constructor weaving for this class.

      17:30:47,537 WARN  [org.jboss.aop.instrument.Instrumentor] Could not find class org.bouncycastle.crypto.params.KeyParameter (or one of its implemented interfaces) that com.lowagie.text.pdf.crypto.AESC

      ipher references.  It may not be in your classpath and you may not be getting field and constructor weaving for this class.

      17:30:47,549 WARN  [org.jboss.aop.instrument.Instrumentor] Could not find class org.bouncycastle.crypto.modes.CBCBlockCipher (or one of its implemented interfaces) that com.lowagie.text.pdf.crypto.AES

      Cipher references.  It may not be in your classpath and you may not be getting field and constructor weaving for this class.

      17:30:47,740 WARN  [org.jboss.aop.instrument.Instrumentor] Could not find class org.bouncycastle.asn1.ASN1OctetString (or one of its implemented interfaces) that com.lowagie.text.pdf.PdfPKCS7 referenc

      es.  It may not be in your classpath and you may not be getting field and constructor weaving for this class.

      17:30:47,743 WARN  [org.jboss.aop.instrument.Instrumentor] Could not find class org.bouncycastle.ocsp.CertificateID (or one of its implemented interfaces) that com.lowagie.text.pdf.PdfPKCS7 references

      .  It may not be in your classpath and you may not be getting field and constructor weaving for this class.

      17:30:47,744 WARN  [org.jboss.aop.instrument.Instrumentor] Could not find class org.bouncycastle.ocsp.SingleResp (or one of its implemented interfaces) that com.lowagie.text.pdf.PdfPKCS7 references.

      It may not be in your classpath and you may not be getting field and constructor weaving for this class.

      17:30:47,756 WARN  [org.jboss.aop.instrument.Instrumentor] Could not find class org.bouncycastle.asn1.ocsp.BasicOCSPResponse (or one of its implemented interfaces) that com.lowagie.text.pdf.PdfPKCS7 r

      eferences.  It may not be in your classpath and you may not be getting field and constructor weaving for this class.

      17:30:47,766 WARN  [org.jboss.aop.instrument.Instrumentor] Could not find class org.bouncycastle.asn1.cms.ContentInfo (or one of its implemented interfaces) that com.lowagie.text.pdf.PdfPKCS7 referenc

      es.  It may not be in your classpath and you may not be getting field and constructor weaving for this class.

      17:30:47,777 WARN  [org.jboss.aop.instrument.Instrumentor] Could not find class org.bouncycastle.asn1.DEREncodableVector (or one of its implemented interfaces) that com.lowagie.text.pdf.PdfPKCS7 refer

      ences.  It may not be in your classpath and you may not be getting field and constructor weaving for this class.

      17:30:47,788 WARN  [org.jboss.aop.instrument.Instrumentor] Could not find class org.bouncycastle.asn1.DERNull (or one of its implemented interfaces) that com.lowagie.text.pdf.PdfPKCS7 references.  It

      may not be in your classpath and you may not be getting field and constructor weaving for this class.

      17:30:47,812 WARN  [org.jboss.aop.instrument.Instrumentor] Could not find class org.bouncycastle.asn1.DERTaggedObject (or one of its implemented interfaces) that com.lowagie.text.pdf.PdfPKCS7 referenc

      es.  It may not be in your classpath and you may not be getting field and constructor weaving for this class.

      17:30:47,837 WARN  [org.jboss.aop.instrument.Instrumentor] Could not find class org.bouncycastle.asn1.ASN1Sequence (or one of its implemented interfaces) that com.lowagie.text.pdf.PdfPKCS7 references.

        It may not be in your classpath and you may not be getting field and constructor weaving for this class.

      17:30:47,848 WARN  [org.jboss.aop.instrument.Instrumentor] Could not find class org.bouncycastle.asn1.cms.Attribute (or one of its implemented interfaces) that com.lowagie.text.pdf.PdfPKCS7 references

      .  It may not be in your classpath and you may not be getting field and constructor weaving for this class.

      17:30:47,873 WARN  [org.jboss.aop.instrument.Instrumentor] Could not find class org.bouncycastle.asn1.ASN1InputStream (or one of its implemented interfaces) that com.lowagie.text.pdf.PdfPKCS7 referenc

      es.  It may not be in your classpath and you may not be getting field and constructor weaving for this class.

      17:30:47,875 WARN  [org.jboss.aop.instrument.Instrumentor] Could not find class org.bouncycastle.asn1.ASN1OutputStream (or one of its implemented interfaces) that com.lowagie.text.pdf.PdfPKCS7 referen

      ces.  It may not be in your classpath and you may not be getting field and constructor weaving for this class.

      17:30:47,884 WARN  [org.jboss.aop.instrument.Instrumentor] Could not find class org.bouncycastle.asn1.DERUTCTime (or one of its implemented interfaces) that com.lowagie.text.pdf.PdfPKCS7 references.

      It may not be in your classpath and you may not be getting field and constructor weaving for this class.

       

      ... Many More such messages.

       

       

      After that the real deployment of the application starts and this took about one minute like I would deploy the application without loadtime weaving on.

       

      What happens here? In JBoss 5 my application works fine but I can't deploy it in JBoss 6.

       

      Please help.

        • 1. Re: Deploying zkdemo in JBoss 6 with AOP loadtime weaving enabled
          kabirkhan

          Those messages can just be ignored. They simply take into account this case:

           

          class Test {

             public static void main (String[] args){

                System.out.println("Hello");

             }

           

             public void unused(){

                some.class.not.on.RuntimeClassPath c = new some.class.not.on.RuntimeClassPath();

             }

          }

           

          Since the classes referenced by unused() are not on the runtime classpath they can not be found, which at weaving time gives the messages you described. At runtime the class will work fine as long as you don't call unused().

           

          So the main problem is why your application does not work. Have you tried with the released version of AS 6?