[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[aspectj-users] ClassNotFoundException when enablig aspecJ nature in WEB Application

Hi All guys!

 

 

I sure that my question is a newbie question

 

I am using aspectJ plugged in IBM Rad6 (Eclipse 3.0 based), JVM 1.4.

 

Testing on simple program was OK, but when I decided to test in a real project WEB application I have some problems with class loading. Following some of errors that I found in log.

 

I installed in LIB folder aspectjrt.jar as suggested in aspect docs.

 

All comes back ok when I remove aspectJ “nature” from the project.

 

Can you help me?

Similar experiences?

 

 

Regards

Olindo Pindaro

----

 

[14/03/08 12.23.12:174 CET] 00000015 SystemOut     O query 'Select * from GEN_TIPOPROCESSO where COD_NOME=?'

[14/03/08 12.23.12:189 CET] 00000015 SystemOut     O CARICO la classe del driver JDBC-ODBC

[14/03/08 12.23.12:205 CET] 00000015 SystemOut     O Errore ottenendo al connessione al DB

java.lang.ClassNotFoundException: COM.ibm.db2.jdbc.app.DB2Driver

            at com.ibm.ws.classloader.CompoundClassLoader.findClass(CompoundClassLoader.java(Compiled Code))

            at com.ibm.ws.classloader.CompoundClassLoader.loadClass(CompoundClassLoader.java(Compiled Code))

            at java.lang.ClassLoader.loadClass(ClassLoader.java(Compiled Code))

            at java.lang.Class.forName1(Native Method)

            at java.lang.Class.forName(Class.java(Compiled Code))

            at it.kedrios.data.connection.DbConnectionOdbc.getConnection(DbConnectionOdbc.java:69)

            at it.kedrios.data.connection.DbConnectionOdbc$1.getConnection(DbConnectionOdbc.java:52)

            at org.apache.commons.dbutils.QueryRunner.prepareConnection(QueryRunner.java:195)

            at org.apache.commons.dbutils.QueryRunner.query(QueryRunner.java:306)

            at it.kedrios.general.back.db.generico.Tipoprocesso.getByName(Tipoprocesso.java:57)

            at it.kedrios.general.back.helpers.processoHelper.getTipoprocessoByCodice(processoHelper.java:178)

            at it.kedrios.general.back.services.ProcessiListCmd.<clinit>(ProcessiListCmd.java:57)

            at java.lang.Class.newInstance2(Native Method)

            at java.lang.Class.newInstance1(Class.java(Compiled Code))

            at org.apache.commons.digester.ObjectCreateRule.begin(ObjectCreateRule.java(Compiled Code))

 

 

 

Content: com.ibm.ws.util.ResRefJndiLookupInfo@7a8cab9a ResRefJndiLookupInfo: Look up Name="conf/trap";JndiLookupInfo: jndiName="conf/trap"; providerURL=""; initialContextFactory=""

 

Dati eccezioni:

javax.naming.NameNotFoundException: Context: KEDDPINDAROO-CNode01Cell/nodes/KEDDPINDAROO-CNode01/servers/server1, name: conf/trap: First component in name conf/trap not found.  Root exception is org.omg.CosNaming.NamingContextPackage.NotFound: IDL:omg.org/CosNaming/NamingContext/NotFound:1.0

            at com.ibm.ws.naming.ipcos.WsnOptimizedNamingImpl.handleNameNotFound(WsnOptimizedNamingImpl.java:2000)

            at com.ibm.ws.naming.ipcos.WsnOptimizedNamingImpl.getNextWsnOptimizedNamingContext(WsnOptimizedNamingImpl.java:1321)

            at com.ibm.ws.naming.cosbase.WsnOptimizedNamingImplBase.getTargetContext(WsnOptimizedNamingImplBase.java:3024)

            at com.ibm.ws.naming.cosbase.WsnOptimizedNamingImplBase$LeafOperationData.<init>(WsnOptimizedNamingImplBase.java:3489)

            at com.ibm.ws.naming.cosbase.WsnOptimizedNamingImplBase.resolve_complete_info(WsnOptimizedNamingImplBase.java:1427)

            at com.ibm.WsnOptimizedNaming._NamingContextStub.resolve_complete_info(Unknown Source)

            at com.ibm.ws.naming.jndicos.CNContextImpl.cosResolve(CNContextImpl.java:4045)

            at com.ibm.ws.naming.jndicos.CNContextImpl.doLookup(CNContextImpl.java:1776)

            at com.ibm.ws.naming.jndicos.CNContextImpl.doLookup(CNContextImpl.java:1737)

 

 

"Due cose riempiono l'animo di ammirazione e venerazione sempre nuova e crescente, ....: il cielo stellato sopra di me, e la legge morale in me." (E. Kant - Critica della Ragion Pratica - 1788)

 




*******************Internet Email Confidentiality Footer******************* 
Qualsiasi utilizzo non autorizzato del presente messaggio nonchàdei suoi allegati Ã vietato e potrebbe costituire reato. Se ha ricevuto per errore il presente messaggio, Le saremmo grati se ci inviasse, via e-mail, una comunicazione al riguardo e provvedesse nel contempo alla distruzione del messaggio stesso e dei suoi eventuali allegati. Le dichiarazioni contenute nel presente messaggio nonche' nei suoi eventuali allegati devono essere attribuite al mittente e non possono essere necessariamente considerate come autorizzate da Kedrios S.p.A.; le medesime dichiarazioni non impegnano Kedrios S.p.A. nei confronti del destinatario o di terzi. Kedrios S.p.A. non si assume alcuna responsabilita' per eventuali intercettazioni, modifiche o danneggiamenti del presente messaggio e-mail. 
Any unauthorized use of this e-mail or any of its attachments is prohibited and could constitute an offence. If you are not the intended addressee please advise immediately the sender by using the reply facility in your e-mail software and destroy the message and its attachments. The statements and opinions expressed in this e-mail message are those of the author of the message and do not necessarily represent those of Kedrios S.p.A. Besides, The contents of this message shall be understood as neither given nor endorsed by Kedrios S.p.A.. Kedrios S.p.A. does not accept liability for corruption, interception or amendment, if any, or the consequences thereof.