glassfish troubleshooting etiketine sahip kayıtlar gösteriliyor. Tüm kayıtları göster
glassfish troubleshooting etiketine sahip kayıtlar gösteriliyor. Tüm kayıtları göster

11 Şubat 2010 Perşembe

java.lang.NoSuchMethodError: org.objectweb.asm.ClassWriter.(Z)V when deploying to glassfish

i have recently downloaded glassfish v2.1.1 and got the following error while trying to deploy my app:

javax.persistence.PersistenceException: No Persistence provider for EntityManager named CleanerPU: Provider named org.hibernate.ejb.HibernatePersistence threw unexpected exception at create EntityManagerFactory:
java.lang.NoSuchMethodError
java.lang.NoSuchMethodError: org.objectweb.asm.ClassWriter.(Z)V
at net.sf.cglib.core.DebuggingClassWriter.(DebuggingClassWriter.java:47)
...

i googled for a while and found: http://tai-dev.blog.co.uk/2010/01/21/nosuchmethoderror-org-objectweb-asm-classwriter-when-deploying-your-app-to-a-new-instance-of-glassfish-v2-1-1-it-looks-like-the-upgraded-fins-are-7849068/
according to the link this is due to lib differences between glassfish v2.1.0 and v2.1.1
and the solution is manually deleting the asm-3.1.jar file in the glassfish-install-dir/lib/directory and copy an old version of asm-.jar in its place. i replaced with the asm.jar coming with netbeans 6.5.1 ide and it worked!

26 Haziran 2009 Cuma

troubleshooting: Glassfish deployment error

The Error:
While trying to deploy a composite application to glassfish server (Netbeans 6.5 is used), i got the following error:
ERROR: Successful execution of Start: SecondCompositeApp
WARNING: (JBIMA0405) Start of service assembly SecondCompositeApp succeeded partially; some service units failed to start.
    * Component: sun-http-binding
      ERROR: (SOAPBC_START_1) HTTPBC-E00205: Start failed. java.lang.Exception: LifecycleException:  PWC3985: Protocol handler initialization failed: java.net.BindException: Address already in use: 8080
    * Component: sun-bpel-engine
      INFO: (JBIMA0409) Lifecycle operation start succeeded for Service Unit SecondCompositeApp-SecondBpelModule.

The Solution:

Just change the http-listener port in glassfish-v2.1/domains/domain1/config/domain.xml from 8080 to 9090.  Luckily,  this fixed the problem in my case :)