Return-Path: Delivered-To: apmail-geronimo-user-archive@www.apache.org Received: (qmail 35942 invoked from network); 11 Jan 2007 12:23:00 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 11 Jan 2007 12:23:00 -0000 Received: (qmail 78636 invoked by uid 500); 11 Jan 2007 12:22:58 -0000 Delivered-To: apmail-geronimo-user-archive@geronimo.apache.org Received: (qmail 78550 invoked by uid 500); 11 Jan 2007 12:22:58 -0000 Mailing-List: contact user-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: user@geronimo.apache.org List-Id: Delivered-To: mailing list user@geronimo.apache.org Received: (qmail 78490 invoked by uid 99); 11 Jan 2007 12:22:57 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Jan 2007 04:22:57 -0800 X-ASF-Spam-Status: No, hits=2.5 required=10.0 tests=DNS_FROM_RFC_ABUSE,HTML_MESSAGE X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [61.95.162.76] (HELO Kecgate02.infosys.com) (61.95.162.76) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Jan 2007 04:22:47 -0800 Received: from INDHUBBHS02.ad.infosys.com ([192.168.200.82]) by Kecgate02.infosys.com with InterScan Messaging Security Suite; Thu, 11 Jan 2007 17:43:00 +0530 Received: from BLRKECMSG04.ad.infosys.com ([172.25.213.134]) by INDHUBBHS02.ad.infosys.com with Microsoft SMTPSVC(6.0.3790.1830); Thu, 11 Jan 2007 17:49:47 +0530 Received: from BLRKECMSG13.ad.infosys.com ([172.22.147.5]) by BLRKECMSG04.ad.infosys.com with Microsoft SMTPSVC(6.0.3790.1830); Thu, 11 Jan 2007 17:49:46 +0530 x-mimeole: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C7357A.C85E5984" Subject: RE: java.lang.NoSuchMethodError - Reg Date: Thu, 11 Jan 2007 17:49:44 +0530 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: RE: java.lang.NoSuchMethodError - Reg Thread-Index: Acc1esdM+nhEo8VqT+WdZDJez60Jcg== From: "Kamalanathan Raman" To: X-OriginalArrivalTime: 11 Jan 2007 12:19:46.0891 (UTC) FILETIME=[C87791B0:01C7357A] X-Virus-Checked: Checked by ClamAV on apache.org This is a multi-part message in MIME format. ------_=_NextPart_001_01C7357A.C85E5984 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable =20 Thanks Manu for replying......... When I give that , iam getting this particular error . can u suggest how to get rid of this . Iam attaching the stack trace of the error. =20 16:40:51,128 FATAL [DatasourceConnectionProvider] Could not find datasource: wlbx-ds javax.naming.NameNotFoundException: wlbx-ds at com.sun.jndi.rmi.registry.RegistryContext.lookup(Unknown Source) at com.sun.jndi.rmi.registry.RegistryContext.lookup(Unknown Source) at javax.naming.InitialContext.lookup(Unknown Source) at net.sf.hibernate.connection.DatasourceConnectionProvider.configure(Datas ourceConnectionProvider.java:45) at net.sf.hibernate.connection.ConnectionProviderFactory.newConnectionProvi der(ConnectionProviderFactory.java:83) at net.sf.hibernate.impl.SessionFactoryImpl.(SessionFactoryImpl.java: 153) at net.sf.hibernate.cfg.Configuration.buildSessionFactory(Configuration.jav a:627) at com.symcor.wlbx.util.ServiceLocator.getDataSource(ServiceLocator.java:19 6) at com.symcor.wlbx.dao.core.DataSourceUtils.getDataSourceFromJNDI(DataSourc eUtils.java:62) at com.symcor.wlbx.dao.core.DAOFactory.getConnection(DAOFactory.java:135) at com.symcor.wlbx.dao.DB2OrganizationDAO.getOrgProfile(DB2OrganizationDAO. java:995) at com.symcor.wlbx.dao.DB2OrganizationDAO.getLBXList(DB2OrganizationDAO.jav a:1168) at com.symcor.wlbx.dao.imp.ImportProfileTask.loadCachedData(ImportProfileTa sk.java:158) at com.symcor.wlbx.dao.imp.ImportProfileTask.(ImportProfileTask.java: 233) at com.symcor.wlbx.web.servlet.ImportServlet.init(ImportServlet.java:144) =20 Thanks and Regards, Kamal =20 -----Original Message----- From: Manu George [mailto:manu.t.george@gmail.com]=20 Sent: Thursday, January 11, 2007 4:10 PM To: user@geronimo.apache.org Subject: Re: java.lang.NoSuchMethodError - Reg =20 Hi Kamal, Sorry abt that . I gave you a wrong example.You need to add org.objectweb.asm.ClassWriter this information is in geronimo-module-1.1.xsd in the schema directory =20 Thanks Manu =20 On 1/11/07, Kamalanathan Raman wrote: >=20 >=20 >=20 >=20 > Hi Manu, >=20 >=20 >=20 > Iam attaching the Geronimo-application.xml , if I attach the attribute , its throwing >=20 > Caused by: org.apache.xmlbeans.XmlException: Invalid deployment descriptor: [error: cvc-complex-type.2.3: Element 'hidden-classes@http://geronimo.apache.org/xml/ns/deployment-1.1' with element-only content type cannot have text content.] >=20 > Descriptor: >=20 > So kindly correct me where I have gone wrong. >=20 >=20 >=20 > >=20 > >=20 > >=20 > >=20 > >=20 > geronimo >=20 > geronimo-mail >=20 > 1.1.1 >=20 > jar >=20 > >=20 >=20 >=20 > >=20 > geronimo >=20 > geronimo-javamail-transport >=20 > 1.1.1 >=20 > jar >=20 > >=20 > >=20 > org.objectweb.asm.ClassWriter >=20 > >=20 > >=20 >=20 >=20 > >=20 > smtp >=20 > false >=20 > localhost >=20 > >=20 > mail.debug=3Dtrue >=20 > mail.smtp.port=3D25 >=20 > mail.from=3Dsymwas@wimdev01.symprod.com >=20 > >=20 > >=20 >=20 >=20 > >=20 >=20 >=20 > Thanks and Regards, >=20 > Kamal >=20 > ________________________________ =20 >=20 > From: Manu George [mailto:manu.t.george@gmail.com] > Sent: Thursday, January 11, 2007 2:29 PM >=20 > To: user@geronimo.apache.org > Subject: Re: java.lang.NoSuchMethodError - Reg >=20 >=20 >=20 >=20 > Hi, >=20 > hidden-classes >=20 > Lists packages or classes that may be in a parent class loader, but should not be exposed from there to the web application. This is typically used when the web application wants to use a different version of a library that one of its parent configurations (or Geronimo itself) uses. For example, Geronimo 1.0 uses Log4J 1.2.8. If the web application wanted to use a newer version, it could include the newer version in WEB-INF/lib and then add org.apache.log4j to the list of hidden-classes so that the Log4J classes could not be loaded from a parent class loader. >=20 > This is the explanation in Aaron Mulders book. The url for the book is - http://www.chariotsolutions.com/geronimo/geronimo-1.1/geronimo-html-one- page.html >=20 > eg below >=20 > > > > > sample > daytrader-oracle-tomcat > 1.1 > car > > > > geronimo > j2ee-server > car > > org.apache.log4j > > >=20 > This will block all child packages and classes under org.apache.log4j > from being exposed to the application. Hope this helps >=20 > thanks > Manu >=20 >=20 >=20 >=20 >=20 > On 1/11/07, Kamalanathan Raman wrote: >=20 >=20 >=20 > Hi Manu, >=20 >=20 >=20 > Thanks for replying . Can u send a sample code as to how to use the hidden class attribute. >=20 >=20 >=20 > Thanks and Regards, >=20 > Kamal >=20 >=20 >=20 > ________________________________ =20 >=20 > From: Manu George [mailto:manu.t.george@gmail.com] > Sent: Thursday, January 11, 2007 2:02 PM > To: user@geronimo.apache.org > Subject: Re: java.lang.NoSuchMethodError - Reg >=20 >=20 >=20 >=20 > Hi, > It can be due to a wrong version of that class loaded in the classloader . i.e another version of the class without that method may be present. You should use the hidden classes attribute of the plan to hide the conflicting classes/packages. i.e. the ones used by geronimo and your app. This will make the classloader not see the classes loaded by geronimo. >=20 > Thanks > Manu >=20 >=20 > On 1/11/07, Kamalanathan Raman wrote: >=20 >=20 >=20 > Hi , >=20 >=20 >=20 > When I run my deployed application. I get this following error , got struck up in this error for long time , can any one help me out in solving this issue.I have attached the stack trace of the error. Thanks in advance for ur reply >=20 >=20 >=20 >=20 >=20 > 13:44:45,813 INFO [Configuration] processing foreign key constraints >=20 > 13:44:45,891 ERROR [[/wlbx]] StandardWrapper.Throwable >=20 > java.lang.NoSuchMethodError: org.objectweb.asm.ClassWriter.visitMethod(ILjava/lang/String;Ljava/lang/ String;[Ljava/lang/String;)Lorg/objectweb/asm/CodeVisitor; >=20 > at net.sf.cglib.ASMBackend.begin_constructor( ASMBackend.java:297 ) >=20 > at net.sf.cglib.CodeGenerator.begin_constructor( CodeGenerator.java:281 ) >=20 > at net.sf.cglib.CodeGenerator.begin_constructor( CodeGenerator.java:274 ) >=20 > at net.sf.cglib.CodeGenerator.generateNullConstructor( CodeGenerator.java:970 ) >=20 > at net.sf.cglib.KeyFactoryGenerator.generate( KeyFactoryGenerator.java:105 ) >=20 > at net.sf.cglib.CodeGenerator.define( CodeGenerator.java:163 ) >=20 > at net.sf.cglib.KeyFactory.create( KeyFactory.java:114 ) >=20 > at net.sf.hibernate.impl.SessionFactoryImpl.( SessionFactoryImpl.java:297 ) >=20 > at net.sf.hibernate.cfg.Configuration.buildSessionFactory( Configuration.java:627) >=20 > at com.symcor.wlbx.util.ServiceLocator.getDataSource( ServiceLocator.java:196 ) >=20 > at com.symcor.wlbx.web.servlet.ReportServlet.initializeResourceLookups(Repo rtServlet.java:912 ) >=20 > at com.symcor.wlbx.web.servlet.ReportServlet.init( ReportServlet.java:668 ) >=20 > at org.apache.catalina.core.StandardWrapper.loadServlet( StandardWrapper.java:1105 ) >=20 > at org.apache.catalina.core.StandardWrapper.load( StandardWrapper.java:932 ) >=20 > at org.apache.catalina.core.StandardContext.loadOnStartup( StandardContext.java:3915 ) >=20 > at org.apache.catalina.core.StandardContext.start( StandardContext.java:4176 ) >=20 > at org.apache.geronimo.tomcat.GeronimoStandardContext.access$201(GeronimoSt andardContext.java:67 ) >=20 > at org.apache.geronimo.tomcat.GeronimoStandardContext$SystemMethodValve.inv oke( GeronimoStandardContext.java:337 ) >=20 > at org.apache.geronimo.tomcat.valve.GeronimoBeforeAfterValve.invoke(Geronim oBeforeAfterValve.java:31 ) >=20 > at org.apache.geronimo.tomcat.GeronimoStandardContext.start( GeronimoStandardContext.java:192 ) >=20 > at org.apache.catalina.core.ContainerBase.addChildInternal( ContainerBase.java:759 ) >=20 > at org.apache.catalina.core.ContainerBase.addChild( ContainerBase.java:739 ) >=20 > at org.apache.catalina.core.StandardHost.addChild( StandardHost.java:524 ) >=20 > at org.apache.geronimo.tomcat.TomcatContainer.addContext( TomcatContainer.java:313 ) >=20 > at org.apache.geronimo.tomcat.TomcatContainer$$FastClassByCGLIB$$9370b073.i nvoke() >=20 > at net.sf.cglib.reflect.FastMethod.invoke( FastMethod.java:53 ) >=20 > at org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInv oker.java:38 ) >=20 > at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke( GBeanOperation.java:122 ) >=20 > 13:44:45,891 ERROR [[/wlbx]] Servlet /wlbx threw load() exception >=20 > java.lang.NoSuchMethodError: org.objectweb.asm.ClassWriter.visitMethod(ILjava/lang/String;Ljava/lang/ String;[Ljava/lang/String;)Lorg/objectweb/asm/CodeVisitor; >=20 > at net.sf.cglib.ASMBackend.begin_constructor( ASMBackend.java:297 ) >=20 > at net.sf.cglib.CodeGenerator.begin_constructor( CodeGenerator.java:281 ) >=20 > at net.sf.cglib.CodeGenerator.begin_constructor( CodeGenerator.java:274 ) >=20 > at net.sf.cglib.CodeGenerator.generateNullConstructor( CodeGenerator.java:970 ) >=20 > at net.sf.cglib.KeyFactoryGenerator.generate( KeyFactoryGenerator.java:105 ) >=20 > at net.sf.cglib.CodeGenerator.define( CodeGenerator.java:163) >=20 > at net.sf.cglib.KeyFactory.create( KeyFactory.java:114 ) >=20 > at net.sf.hibernate.impl.SessionFactoryImpl.( SessionFactoryImpl.java:297 ) >=20 > at net.sf.hibernate.cfg.Configuration.buildSessionFactory( Configuration.java:627 ) >=20 > at com.symcor.wlbx.util.ServiceLocator.getDataSource( ServiceLocator.java:196 ) >=20 > at com.symcor.wlbx.web.servlet.ReportServlet.initializeResourceLookups( ReportServlet.java:912 ) >=20 > at com.symcor.wlbx.web.servlet.ReportServlet.init( ReportServlet.java:668 ) >=20 > at org.apache.catalina.core.StandardWrapper.loadServlet( StandardWrapper.java:1105 ) >=20 > at org.apache.catalina.core.StandardWrapper.load( StandardWrapper.java:932 ) >=20 > at org.apache.catalina.core.StandardContext.loadOnStartup( StandardContext.java:3915 ) >=20 > at org.apache.catalina.core.StandardContext.start( StandardContext.java:4176 ) >=20 > at org.apache.geronimo.tomcat.GeronimoStandardContext.access$201( GeronimoStandardContext.java:67 ) >=20 > at org.apache.geronimo.tomcat.GeronimoStandardContext$SystemMethodValve.inv oke(GeronimoStandardContext.java:337 ) >=20 > at org.apache.geronimo.tomcat.valve.GeronimoBeforeAfterValve.invoke(Geronim oBeforeAfterValve.java:31 ) >=20 > at org.apache.geronimo.tomcat.GeronimoStandardContext.start( GeronimoStandardContext.java:192 ) >=20 > at org.apache.catalina.core.ContainerBase.addChildInternal( ContainerBase.java:759 ) >=20 > at org.apache.catalina.core.ContainerBase.addChild( ContainerBase.java:739 ) >=20 > at org.apache.catalina.core.StandardHost.addChild( StandardHost.java:524 ) >=20 > at org.apache.geronimo.tomcat.TomcatContainer.addContext( TomcatContainer.java:313 ) >=20 > at org.apache.geronimo.tomcat.TomcatContainer$$FastClassByCGLIB$$9370b073.i nvoke() >=20 > at net.sf.cglib.reflect.FastMethod.invoke( FastMethod.java:53 ) >=20 > at org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInv oker.java:38 ) >=20 > at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke( GBeanOperation.java:122 ) >=20 > 13:44:45,969 INFO [PropertyMessageResources] Initializing, config=3D'org.apache.struts.util.LocalStrings', returnNull=3Dtrue >=20 > 13:44:45,969 INFO [PropertyMessageResources] Initializing, config=3D'org.apache.struts.action.ActionResources', returnNull=3Dtrue >=20 > 13:44:46,751 INFO [PropertyMessageResources] Initializing, config=3D'ApplicationResources', returnNull=3Dtrue >=20 > 13:44:46,813 INFO [ValidatorPlugIn] Loading validation rules file from '/WEB-INF/validator-rules.xml' >=20 > 13:44:46,938 INFO [ValidatorPlugIn] Loading validation rules file from '/WEB-INF/validation.xml' >=20 > 13:44:47,125 INFO [ImportFTPClient] Default save path is @FTP_TO_PATH@\ >=20 > java.lang.NumberFormatException : For input string: "@IMPORT_TASK_PERIOD@" >=20 > at java.lang.NumberFormatException.forInputString(Unknown Source) >=20 > at java.lang.Long.parseLong(Unknown Source) >=20 > at java.lang.Long.(Unknown Source) >=20 > at com.symcor.wlbx.web.servlet.ImportServlet.init( ImportServlet.java:137 ) >=20 > at javax.servlet.GenericServlet.init( GenericServlet.java:168 ) >=20 > at org.apache.catalina.core.StandardWrapper.loadServlet( StandardWrapper.java:1105 ) >=20 > at org.apache.catalina.core.StandardWrapper.load( StandardWrapper.java:932 ) >=20 > at org.apache.catalina.core.StandardContext.loadOnStartup( StandardContext.java:3915 ) >=20 > at org.apache.catalina.core.StandardContext.start( StandardContext.java:4176 ) >=20 > at org.apache.geronimo.tomcat.GeronimoStandardContext.access$201(GeronimoSt andardContext.java:67 ) >=20 > at org.apache.geronimo.tomcat.GeronimoStandardContext$SystemMethodValve.inv oke(GeronimoStandardContext.java:337 ) >=20 > at org.apache.geronimo.tomcat.valve.GeronimoBeforeAfterValve.invoke(Geronim oBeforeAfterValve.java:31 ) >=20 > at org.apache.geronimo.tomcat.GeronimoStandardContext.start( GeronimoStandardContext.java:192 ) >=20 > at org.apache.catalina.core.ContainerBase.addChildInternal( ContainerBase.java:759 ) >=20 > at org.apache.catalina.core.ContainerBase.addChild( ContainerBase.java:739 ) >=20 > at org.apache.catalina.core.StandardHost.addChild( StandardHost.java:524 ) >=20 > at org.apache.geronimo.tomcat.TomcatContainer.addContext( TomcatContainer.java:313 ) >=20 > at org.apache.geronimo.tomcat.TomcatContainer$$FastClassByCGLIB$$9370b073.i nvoke() >=20 > at net.sf.cglib.reflect.FastMethod.invoke( FastMethod.java:53 ) >=20 > at org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke( FastMethodInvoker.java:38 ) >=20 > java.lang.NoClassDefFoundError >=20 > at net.sf.hibernate.cfg.Configuration.buildSessionFactory( Configuration.java:627 ) >=20 > at com.symcor.wlbx.util.ServiceLocator.getDataSource( ServiceLocator.java:196 ) >=20 > at com.symcor.wlbx.dao.core.DataSourceUtils.getDataSourceFromJNDI( DataSourceUtils.java:62 ) >=20 > at com.symcor.wlbx.dao.core.DAOFactory.getDAOFactory( DAOFactory.java:105 ) >=20 > at com.symcor.wlbx.dao.imp.ImportProfileTask.loadCachedData( ImportProfileTask.java:156 ) >=20 > at com.symcor.wlbx.dao.imp.ImportProfileTask.( ImportProfileTask.java:233 ) >=20 > at com.symcor.wlbx.web.servlet.ImportServlet.init( ImportServlet.java:144 ) >=20 > at javax.servlet.GenericServlet.init( GenericServlet.java:168 ) >=20 > at org.apache.catalina.core.StandardWrapper.loadServlet( StandardWrapper.java:1105 ) >=20 > at org.apache.catalina.core.StandardWrapper.load( StandardWrapper.java:932 ) >=20 > at org.apache.catalina.core.StandardContext.loadOnStartup( StandardContext.java:3915 ) >=20 > at org.apache.catalina.core.StandardContext.start( StandardContext.java:4176 ) >=20 > at org.apache.geronimo.tomcat.GeronimoStandardContext.access$201( GeronimoStandardContext.java:67 ) >=20 > at org.apache.geronimo.tomcat.GeronimoStandardContext$SystemMethodValve.inv oke(GeronimoStandardContext.java:337 ) >=20 > at org.apache.geronimo.tomcat.valve.GeronimoBeforeAfterValve.invoke(Geronim oBeforeAfterValve.java:31 ) >=20 > at org.apache.geronimo.tomcat.GeronimoStandardContext.start( GeronimoStandardContext.java:192 ) >=20 > at org.apache.catalina.core.ContainerBase.addChildInternal( ContainerBase.java:759 ) >=20 > at org.apache.catalina.core.ContainerBase.addChild( ContainerBase.java:739 ) >=20 > at org.apache.catalina.core.StandardHost.addChild( StandardHost.java:524 ) >=20 > at org.apache.geronimo.tomcat.TomcatContainer.addContext( TomcatContainer.java:313 ) >=20 > at org.apache.geronimo.tomcat.TomcatContainer$$FastClassByCGLIB$$9370b073.i nvoke() >=20 > at net.sf.cglib.reflect.FastMethod.invoke( FastMethod.java:53 ) >=20 > at org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInv oker.java:38 ) >=20 > at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke( GBeanOperation.java:122 ) >=20 >=20 >=20 > Thanks and Regards, >=20 > Kamal >=20 >=20 > **************** CAUTION - Disclaimer ***************** > This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely for the use of the addressee(s). If you are not the intended recipient, please notify the sender by e-mail and delete the original message. Further, you are not to copy, disclose, or distribute this e-mail or its contents to any other person and any such actions are unlawful. This e-mail may contain viruses. Infosys has taken every reasonable precaution to minimize this risk, but is not liable for any damage you may sustain as a result of any virus in this e-mail. You should carry out your own virus checks before opening the e-mail or attachment. Infosys reserves the right to monitor and review the content of all messages sent to or from this e-mail address. Messages sent to or from this e-mail address may be stored on the Infosys e-mail system. > ***INFOSYS******** End of Disclaimer ********INFOSYS*** >=20 >=20 >=20 >=20 =20 ------_=_NextPart_001_01C7357A.C85E5984 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

 

Thanks Manu for replying......... When I give that <dep:hidden-classes> , iam getting this particular error . can u = suggest how to get rid of this . Iam attaching the stack trace of the = error.

 

16:40:51,128 FATAL [DatasourceConnectionProvider] Could not = find datasource: wlbx-ds

javax.naming.NameNotFoundException: wlbx-ds

      at com.sun.jndi.rmi.registry.RegistryContext.lookup(Unknown = Source)

      at com.sun.jndi.rmi.registry.RegistryContext.lookup(Unknown = Source)

      at javax.naming.InitialContext.lookup(Unknown Source)

      at net.sf.hibernate.connection.DatasourceConnectionProvider.configure(DatasourceConnectionProvider.java:45)

      at net.sf.hibernate.connection.ConnectionProviderFactory.newConnectionProvid= er(ConnectionProviderFactory.java:83)

      at net.sf.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:153)

      at = net.sf.hibernate.cfg.Configuration.buildSessionFactory(<= font size=3D2 color=3Dnavy face=3D"Courier New">Configuration.java:627)

      at com.symcor.wlbx.util.ServiceLocator.getDataSource(ServiceLocator.java:196)

      at com.symcor.wlbx.dao.core.DataSourceUtils.getDataSourceFromJNDI(DataSourceUtils.java:62)

      at = com.symcor.wlbx.dao.core.DAOFactory.getConnection(DAOFactory.java:135)

      at com.symcor.wlbx.dao.DB2OrganizationDAO.getOrgProfile(DB2OrganizationDAO.java:995)

      at com.symcor.wlbx.dao.DB2OrganizationDAO.getLBXList(DB2OrganizationDAO.java:1168)

      at = com.symcor.wlbx.dao.imp.ImportProfileTask.loadCachedData(ImportProfileTask.java:158)

      at com.symcor.wlbx.dao.imp.ImportProfileTask.<init>(<= font size=3D2 color=3Dnavy face=3D"Courier New">ImportProfileTask.java:233)

      at com.symcor.wlbx.web.servlet.ImportServlet.init(ImportServlet.java:144)

 

Thanks and Regards,

Kamal

 

-----Original Message-----
From: Manu George [mailto:manu.t.george@gmail.com]
Sent: Thursday, January 11, 2007 4:10 PM
To: user@geronimo.apache.org
Subject: Re: java.lang.NoSuchMethodError - = Reg

 

Hi Kamal,

           = ; Sorry abt that . I gave you a wrong example.You need = to

add <dep:hidden-classes><dep:filter>org.objectweb.asm.ClassWriter= </dep:filter></dep:hidden-classes>

this information is in geronimo-module-1.1.xsd in the schema = directory

 

Thanks

Manu

 

On 1/11/07, Kamalanathan = Raman <Kamalanathan_Raman@infosys.com> = wrote:

> 

> 

> 

> 

> Hi Manu,

> 

> 

> 

> Iam attaching the Geronimo-application.xml , if I attach = the <dep:hidden-classes> attribute , its = throwing

> 

> Caused by: org.apache.xmlbeans.XmlException: Invalid = deployment descriptor: [error: cvc-complex-type.2.3: Element 'hidden-classes@http://geronimo.apache.org/xml/ns/deployment-1.1' with = element-only content type cannot have text content.]

> 

> Descriptor: <xml-fragment xmlns:dep=3D"http://geronimo.apache.org/xml/ns/deployment-1.1"&= gt;

> 

> So kindly correct me where I have gone = wrong.

> 

> 

> 

> <?xml version=3D"1.0" = encoding=3D"UTF-8" ?>

> 

>     <application xmlns=3D"http://geronimo.apache.org/xml/ns/j2ee/application-1.1"= ;>

> 

>          &= nbsp;  <dep:environment xmlns:dep=3D"http://geronimo.apache.org/xml/ns/deployment-1.1"&= gt;

> 

>          &= nbsp;           &n= bsp;  <dep:dependencies>

> 

>          &= nbsp;           &n= bsp;           &nb= sp;  <dep:dependency>

> 

>          &= nbsp;           &n= bsp;           &nb= sp;           &nbs= p;            = ;  <dep:groupId>geronimo</dep:groupId><= /p>

> 

>          &= nbsp;           &n= bsp;           &nb= sp;           &nbs= p;            = ;  <dep:artifactId>geronimo-mail</dep:artifactId>

> 

>          &= nbsp;           &n= bsp;                  &= nbsp;           &n= bsp;       <dep:version>1.1.1<= ;/dep:version>

> 

>          &= nbsp;           &n= bsp;           &nb= sp;           &nbs= p;            = ;   <dep:type>jar</dep:type>

> 

>          &= nbsp;           &n= bsp;           &nb= sp;  </dep:dependency>

> 

> 

> 

>          &= nbsp;           &n= bsp;           &nb= sp;  <dep:dependency>

> 

>          &= nbsp;           &n= bsp;           &nb= sp;           &nbs= p;            = ;  <dep:groupId>geronimo</dep:groupId><= /p>

> 

>          &= nbsp;           &n= bsp;           &nb= sp;           &nbs= p;            = ;  <dep:artifactId>geronimo-javamail-transport</dep:artifactId><= o:p>

> 

>          =             &= nbsp;           &n= bsp;           &nb= sp;           &nbs= p;  <dep:version>1.1.1</dep:version>

> 

>          &= nbsp;           &n= bsp;           &nb= sp;           &nbs= p;            = ;   <dep:type>jar</dep:type>

> 

>          &= nbsp;           &n= bsp;           &nb= sp;  </dep:dependency>

> 

>          &= nbsp;              </dep:dependencies>

> 

>          &= nbsp;     <dep:hidden-classes>org.objectweb.asm.ClassWriter</dep:hidden-cl= asses>

> 

>          &= nbsp;  <dep:non-overridable-classes/>

> 

>          &= nbsp;           &n= bsp;  </dep:environment>

> 

> 

> 

>     <gbean name=3D"mail/MailSession" = class=3D"org.apache.geronimo.mail.MailGBean">

> 

>         = <attribute name=3D"transportProtocol">smtp</attribute>=

> 

>         = <attribute name=3D"useDefault">false</attribute>

> 

>         = <attribute name=3D"host">localhost</attribute><= /font>

> 

>         = <attribute name=3D"properties">

> 

>          &= nbsp;  mail.debug=3Dtrue

> 

>          &= nbsp;  mail.smtp.port=3D25

> 

>          &= nbsp;  mail.from=3Dsymwas@wimdev01.symprod.com

> 

>         = </attribute>

> 

>     = </gbean>

> 

> 

> 

> </application>

> 

> 

> 

> Thanks and Regards,

> 

> Kamal

> 

>   = ________________________________

 

> 

> From: Manu George = [mailto:manu.t.george@gmail.com]

>  Sent: Thursday, January 11, 2007 2:29 = PM

> 

>  To: user@geronimo.apache.org

>  Subject: Re: java.lang.NoSuchMethodError - = Reg

> 

> 

> 

> 

> Hi,

> 

>  hidden-classes

> 

> Lists packages or classes that may be in a parent class = loader, but should not be exposed from there to the web application. This is = typically used when the web application wants to use a different version of a = library that one of its parent configurations (or Geronimo itself) uses. For = example, Geronimo 1.0 uses Log4J 1.2.8. If the web application wanted to use a = newer version, it could include the newer version in WEB-INF/lib and then add org.apache.log4j to the list of hidden-classes so that the Log4J classes = could not be loaded from a parent class loader.

> 

> This is the explanation in Aaron Mulders book. The url for = the book is - http://www.chariotsolutions.com/geronimo/geronimo-1.1/geronimo-html-one-p= age.html

> 

> eg below

> 

>  <?xml version=3D"1.0" = encoding=3D"UTF-8"?>

>  <application xmlns=3D" http://geronimo.apache.org/xml/ns/j2ee/application-1.1">

>    <dep:environment xmlns:dep=3D"http://geronimo.apache.org/xml/ns/deployment-1.1 = ">

>      = <dep:moduleId>

>        <dep:groupId>sample</dep:groupId>

>     =    <dep:artifactId>daytrader-oracle-tomcat</dep:a= rtifactId>

>        <dep:version>1.1</dep:version>

>        <dep:type>car</dep:type>

>      = </dep:moduleId>

>      = <dep:dependencies>

>        = <dep:dependency>

>          <dep:groupId>geronimo</dep:groupId><= /p>

>          <dep:artifactId>j2ee-server</dep:artifactId>

>          <dep:type>car</dep:type>

>        = </dep:dependency>

>      <dep:hidden-classes>org.apache.log4j</dep:hidden-classes>

>      = <dep:non-overridable-classes/>

>    = </dep:environment>

> 

>  This will block all child packages and classes under org.apache.log4j

>  from being exposed to the application. Hope this = helps

> 

>  thanks

>  Manu

> 

> 

> 

> 

> 

> On 1/11/07, Kamalanathan = Raman <Kamalanathan_Raman@infosys.com> = wrote:

> 

> 

> 

> Hi Manu,

> 

> 

> 

> Thanks for replying . Can u send a sample code as to how to = use the hidden class attribute.

> 

> 

> 

> Thanks and Regards,

> 

> Kamal

> 

> 

> 

>   = ________________________________

 

> 

> From: Manu George = [mailto:manu.t.george@gmail.com]

>  Sent: Thursday, January 11, 2007 2:02 = PM

>  To: user@geronimo.apache.org

>  Subject: Re: java.lang.NoSuchMethodError - = Reg

> 

> 

> 

> 

> Hi,

>         It can be = due to a wrong version of that class loaded in the classloader . i.e another = version of the class without that method may be present. You should use the hidden = classes attribute of the plan to hide the conflicting classes/packages. i.e. the = ones used by geronimo and your app. This will make the classloader not see = the classes loaded by geronimo.

> 

>  Thanks

>  Manu

> 

> 

> On 1/11/07, Kamalanathan = Raman <Kamalanathan_Raman@infosys.com> = wrote:

> 

> 

> 

> Hi ,

> 

> 

> 

>       When I run my deployed application. I get this following error , got struck up in this error = for long time , can any one help me out in solving this issue.I have attached the = stack trace of the error. Thanks in advance for ur reply

> 

> 

> 

> 

> 

> 13:44:45,813 INFO  [Configuration] processing foreign = key constraints

> 

> 13:44:45,891 ERROR [[/wlbx]] = StandardWrapper.Throwable

> 

> java.lang.NoSuchMethodError: org.objectweb.asm.ClassWriter.visitMethod(ILjava/lang/String;Ljava/lang/S= tring;[Ljava/lang/String;)Lorg/objectweb/asm/CodeVisitor;

> 

>       at net.sf.cglib.ASMBackend.begin_constructor( ASMBackend.java:297 = )

> 

>       at = net.sf.cglib.CodeGenerator.begin_constructor( CodeGenerator.java:281 )

> 

>       at net.sf.cglib.CodeGenerator.begin_constructor( CodeGenerator.java:274 = )

> 

>       at net.sf.cglib.CodeGenerator.generateNullConstructor( = CodeGenerator.java:970 )

> 

>       at net.sf.cglib.KeyFactoryGenerator.generate( KeyFactoryGenerator.java:105 = )

> 

>       at net.sf.cglib.CodeGenerator.define( CodeGenerator.java:163 = )

> 

>       at net.sf.cglib.KeyFactory.create( KeyFactory.java:114 = )

> 

>       at = net.sf.hibernate.impl.SessionFactoryImpl.<clinit>( SessionFactoryImpl.java:297 )

> 

>       at net.sf.hibernate.cfg.Configuration.buildSessionFactory( = Configuration.java:627)

> 

>       at com.symcor.wlbx.util.ServiceLocator.getDataSource( = ServiceLocator.java:196 )

> 

>       at = com.symcor.wlbx.web.servlet.ReportServlet.initializeResourceLookups(Repor= tServlet.java:912 )

> 

>       at com.symcor.wlbx.web.servlet.ReportServlet.init( ReportServlet.java:668 = )

> 

>       at org.apache.catalina.core.StandardWrapper.loadServlet( = StandardWrapper.java:1105 )

> 

>       at org.apache.catalina.core.StandardWrapper.load( StandardWrapper.java:932 = )

> 

>       at org.apache.catalina.core.StandardContext.loadOnStartup( StandardContext.java:3915 )

> 

>       at org.apache.catalina.core.StandardContext.start( = StandardContext.java:4176 )

> 

>       at org.apache.geronimo.tomcat.GeronimoStandardContext.access$201(GeronimoSta= ndardContext.java:67 )

> 

>       at org.apache.geronimo.tomcat.GeronimoStandardContext$SystemMethodValve.invo= ke( GeronimoStandardContext.java:337 )

> 

>       at org.apache.geronimo.tomcat.valve.GeronimoBeforeAfterValve.invoke(Geronimo= BeforeAfterValve.java:31 )

> 

>       at org.apache.geronimo.tomcat.GeronimoStandardContext.start( GeronimoStandardContext.java:192 )

> 

>       at = org.apache.catalina.core.ContainerBase.addChildInternal( ContainerBase.java:759 )

> 

>       at org.apache.catalina.core.ContainerBase.addChild( ContainerBase.java:739 = )

> 

>       at org.apache.catalina.core.StandardHost.addChild( StandardHost.java:524 = )

> 

>       at = org.apache.geronimo.tomcat.TomcatContainer.addContext( TomcatContainer.java:313 )

> 

>       at org.apache.geronimo.tomcat.TomcatContainer$$FastClassByCGLIB$$9370b073.in= voke(<generated>)

> 

>       at net.sf.cglib.reflect.FastMethod.invoke( FastMethod.java:53 = )

> 

>       at org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInvo= ker.java:38 )

> 

>       at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke( GBeanOperation.java:122 )

> 

> 13:44:45,891 ERROR [[/wlbx]] Servlet /wlbx threw load() = exception

> 

> java.lang.NoSuchMethodError: org.objectweb.asm.ClassWriter.visitMethod(ILjava/lang/String;Ljava/lang/S= tring;[Ljava/lang/String;)Lorg/objectweb/asm/CodeVisitor;

> 

>       at net.sf.cglib.ASMBackend.begin_constructor( ASMBackend.java:297 = )

> 

>       at net.sf.cglib.CodeGenerator.begin_constructor( CodeGenerator.java:281 = )

> 

>       at net.sf.cglib.CodeGenerator.begin_constructor( CodeGenerator.java:274 = )

> 

>       at net.sf.cglib.CodeGenerator.generateNullConstructor( = CodeGenerator.java:970 )

> 

>       at net.sf.cglib.KeyFactoryGenerator.generate( KeyFactoryGenerator.java:105 = )

> 

>       at net.sf.cglib.CodeGenerator.define( = CodeGenerator.java:163)

> 

>       at net.sf.cglib.KeyFactory.create( KeyFactory.java:114 = )

> 

>       at = net.sf.hibernate.impl.SessionFactoryImpl.<clinit>( SessionFactoryImpl.java:297 )

> 

>       at net.sf.hibernate.cfg.Configuration.buildSessionFactory( = Configuration.java:627 )

> 

>       at com.symcor.wlbx.util.ServiceLocator.getDataSource( = ServiceLocator.java:196 )

> 

>       at com.symcor.wlbx.web.servlet.ReportServlet.initializeResourceLookups( ReportServlet.java:912 )

> 

>       at com.symcor.wlbx.web.servlet.ReportServlet.init( ReportServlet.java:668 = )

> 

>       at org.apache.catalina.core.StandardWrapper.loadServlet( = StandardWrapper.java:1105 )

> 

>       at org.apache.catalina.core.StandardWrapper.load( StandardWrapper.java:932 = )

> 

>       at org.apache.catalina.core.StandardContext.loadOnStartup( StandardContext.java:3915 )

> 

>       at = org.apache.catalina.core.StandardContext.start( StandardContext.java:4176 )

> 

>       at org.apache.geronimo.tomcat.GeronimoStandardContext.access$201( GeronimoStandardContext.java:67 )

> 

>       at org.apache.geronimo.tomcat.GeronimoStandardContext$SystemMethodValve.invo= ke(GeronimoStandardContext.java:337 )

> 

>       at org.apache.geronimo.tomcat.valve.GeronimoBeforeAfterValve.invoke(Geronimo= BeforeAfterValve.java:31 )

> 

>       at org.apache.geronimo.tomcat.GeronimoStandardContext.start( = GeronimoStandardContext.java:192 )

> 

>       at org.apache.catalina.core.ContainerBase.addChildInternal( = ContainerBase.java:759 )

> 

>       at org.apache.catalina.core.ContainerBase.addChild( ContainerBase.java:739 = )

> 

>       at org.apache.catalina.core.StandardHost.addChild( StandardHost.java:524 = )

> 

>       at org.apache.geronimo.tomcat.TomcatContainer.addContext( = TomcatContainer.java:313 )

> 

>       at org.apache.geronimo.tomcat.TomcatContainer$$FastClassByCGLIB$$9370b073.in= voke(<generated>)

> 

>       at = net.sf.cglib.reflect.FastMethod.invoke( FastMethod.java:53 )

> 

>       at org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInvo= ker.java:38 )

> 

>       at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke( GBeanOperation.java:122 )

> 

> 13:44:45,969 INFO  [PropertyMessageResources] = Initializing, config=3D'org.apache.struts.util.LocalStrings', = returnNull=3Dtrue

> 

> 13:44:45,969 INFO  [PropertyMessageResources] = Initializing, config=3D'org.apache.struts.action.ActionResources', = returnNull=3Dtrue

> 

> 13:44:46,751 INFO  [PropertyMessageResources] = Initializing, config=3D'ApplicationResources', = returnNull=3Dtrue

> 

> 13:44:46,813 INFO  [ValidatorPlugIn] Loading = validation rules file from '/WEB-INF/validator-rules.xml'

> 

> 13:44:46,938 INFO  [ValidatorPlugIn] Loading = validation rules file from '/WEB-INF/validation.xml'

> 

> 13:44:47,125 INFO  [ImportFTPClient] Default save path = is @FTP_TO_PATH@\

> 

> java.lang.NumberFormatException : For input string: "@IMPORT_TASK_PERIOD@"

> 

>       at = java.lang.NumberFormatException.forInputString(Unknown Source)

> 

>       at java.lang.Long.parseLong(Unknown Source)

> 

>       at java.lang.Long.<init>(Unknown Source)

> 

>       at com.symcor.wlbx.web.servlet.ImportServlet.init( ImportServlet.java:137 = )

> 

>       at = javax.servlet.GenericServlet.init( GenericServlet.java:168 )

> 

>       at org.apache.catalina.core.StandardWrapper.loadServlet( = StandardWrapper.java:1105 )

> 

>       at org.apache.catalina.core.StandardWrapper.load( StandardWrapper.java:932 = )

> 

>       at = org.apache.catalina.core.StandardContext.loadOnStartup( StandardContext.java:3915 )

> 

>       at org.apache.catalina.core.StandardContext.start( = StandardContext.java:4176 )

> 

>       at = org.apache.geronimo.tomcat.GeronimoStandardContext.access$201(GeronimoSta= ndardContext.java:67 )

> 

>       at org.apache.geronimo.tomcat.GeronimoStandardContext$SystemMethodValve.invo= ke(GeronimoStandardContext.java:337 )

> 

>       at = org.apache.geronimo.tomcat.valve.GeronimoBeforeAfterValve.invoke(Geronimo= BeforeAfterValve.java:31 )

> 

>       at org.apache.geronimo.tomcat.GeronimoStandardContext.start( GeronimoStandardContext.java:192 )

> 

>       at org.apache.catalina.core.ContainerBase.addChildInternal( = ContainerBase.java:759 )

> 

>       at org.apache.catalina.core.ContainerBase.addChild( ContainerBase.java:739 = )

> 

>       at org.apache.catalina.core.StandardHost.addChild( StandardHost.java:524 = )

> 

>       at org.apache.geronimo.tomcat.TomcatContainer.addContext( = TomcatContainer.java:313 )

> 

>       at org.apache.geronimo.tomcat.TomcatContainer$$FastClassByCGLIB$$9370b073.in= voke(<generated>)

> 

>       at net.sf.cglib.reflect.FastMethod.invoke( FastMethod.java:53 = )

> 

>       at org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke( FastMethodInvoker.java:38 )

> 

> java.lang.NoClassDefFoundError

> 

>       at net.sf.hibernate.cfg.Configuration.buildSessionFactory( = Configuration.java:627 )

> 

>       at com.symcor.wlbx.util.ServiceLocator.getDataSource( = ServiceLocator.java:196 )

> 

>       at com.symcor.wlbx.dao.core.DataSourceUtils.getDataSourceFromJNDI( DataSourceUtils.java:62 )

> 

>       at com.symcor.wlbx.dao.core.DAOFactory.getDAOFactory( DAOFactory.java:105 = )

> 

>       at com.symcor.wlbx.dao.imp.ImportProfileTask.loadCachedData( ImportProfileTask.java:156 )

> 

>       at com.symcor.wlbx.dao.imp.ImportProfileTask.<init>( ImportProfileTask.java:233 )

> 

>       at com.symcor.wlbx.web.servlet.ImportServlet.init( ImportServlet.java:144 = )

> 

>       at = javax.servlet.GenericServlet.init( GenericServlet.java:168 )

> 

>       at org.apache.catalina.core.StandardWrapper.loadServlet( = StandardWrapper.java:1105 )

> 

>       at org.apache.catalina.core.StandardWrapper.load( StandardWrapper.java:932 = )

> 

>       at = org.apache.catalina.core.StandardContext.loadOnStartup( StandardContext.java:3915 )

> 

>       at org.apache.catalina.core.StandardContext.start( = StandardContext.java:4176 )

> 

>       at org.apache.geronimo.tomcat.GeronimoStandardContext.access$201( = GeronimoStandardContext.java:67 )

> 

>       at org.apache.geronimo.tomcat.GeronimoStandardContext$SystemMethodValve.invo= ke(GeronimoStandardContext.java:337 )

> 

>       at org.apache.geronimo.tomcat.valve.GeronimoBeforeAfterValve.invoke(Geronimo= BeforeAfterValve.java:31 )

> 

>       at org.apache.geronimo.tomcat.GeronimoStandardContext.start( GeronimoStandardContext.java:192 )

> 

>       at org.apache.catalina.core.ContainerBase.addChildInternal( = ContainerBase.java:759 )

> 

>       at = org.apache.catalina.core.ContainerBase.addChild( ContainerBase.java:739 )

> 

>       at org.apache.catalina.core.StandardHost.addChild( StandardHost.java:524 = )

> 

>       at org.apache.geronimo.tomcat.TomcatContainer.addContext( = TomcatContainer.java:313 )

> 

>       at org.apache.geronimo.tomcat.TomcatContainer$$FastClassByCGLIB$$9370b073.in= voke(<generated>)

> 

>       at net.sf.cglib.reflect.FastMethod.invoke( FastMethod.java:53 = )

> 

>       at org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInvo= ker.java:38 )

> 

>       at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke( GBeanOperation.java:122 )

> 

> 

> 

> Thanks and Regards,

> 

> Kamal

> 

> 

> **************** CAUTION - Disclaimer = *****************

>    This e-mail contains PRIVILEGED AND = CONFIDENTIAL INFORMATION intended solely   for the use of the addressee(s). = If you are not the intended recipient,   please notify the sender by = e-mail and delete the original message. Further,   you are not to = copy, disclose, or distribute this e-mail or its contents to   any = other person and any such actions are unlawful. This e-mail may = contain   viruses. Infosys has taken every reasonable precaution to minimize this risk,   but is not liable for any damage you may sustain as a = result of any virus in   this e-mail. You should carry out your own = virus checks before opening the   e-mail or attachment. Infosys = reserves the right to monitor and review the   content of all messages = sent to or from this e-mail address. Messages sent to   or from this = e-mail address may be stored on the Infosys e-mail = system.

>    ***INFOSYS******** End of Disclaimer ********INFOSYS***

> 

> 

> 

> 

 

------_=_NextPart_001_01C7357A.C85E5984--