Markus
one thing to check in your resource definition <!-- A boolean indicating if
the jndi-name should be prefixed with java: which causes the DataSource to only
be accessible from within the jboss server vm. The default is true. -->
<use-java-context>true</use-java-context>
another is to check if the naming service is live for your app server..which
AppServer are you implementing on?
Mit Freundlichen Gruben
Martin
______________________________________________
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger
sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung
oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem
Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung.
Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung
fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le
destinataire prévu, nous te demandons avec bonté que pour satisfaire informez
l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est
interdite. Ce message sert à l'information seulement et n'aura pas n'importe
quel effet légalement obligatoire. Étant donné que les email peuvent facilement
être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité
pour le contenu fourni.
Subject: Axis2 JNDI java:comp/env not resolved
Date: Tue, 8 Nov 2011 10:11:18 +0100
From: [email protected]
To: [email protected]
After migrating from axis2 1.4.x to axis2 1.5.1 the jndi lookup fails. The data
sources are configured with CATALINA_HOME/conf/context.xml and run with axis2
1.4.x. Now, with axis2 1.5.1 (also tried 1.5.6) the jndi lookup fails:Name
java:comp is not bound in this Context
CATALINA_HOME/conf/context.xml:…<Resource name="jdbc/MyDB" auth="Container"
type="javax.sql.DataSource"
driverClassName="oracle.jdbc.OracleDriver" …> We are using this jndi
url: java:comp/env/jdbc/MyDB The access path is
tomcat->axis2->axis2-service->spring->hibernate, but also
tomcat->axis2->axis2-service fails using direct jndi lookup: InitialContext ic
= new …;ic.lookup(“java:comp/env/jdbc/MyDB”); //
failsic.lookup(“java:comp/env”); // failsic.lookup(“java:comp”); // fails Very
curious: it seems to be a windows problem only. Running the same tomcat-/axis
installation under unix has no problem. (directly copied system from unix).
Setting parameter ServiceTCCL to composite (axis2.xml) has no effect. Any idea
what’s wrong? Regards,markus