Perhaps this was missed the first time. I think the answer should be fairly
simple. How do I get my servlet to pull in my jndi.properties file, which
right now is in the WEB-INF/classes directory, instead of whatever one it
seems to be pulling in that is directing it to tomcat?
Regards
Eric
We are using tomcat 5.0.28 and our servlet needs to load jndi.properties
from a jndi.properties file in our WEB-INF/classes directory but it seems to
be getting it from elsewhere and so our servlet, which needs to call a bean
on a separate application server instance (in this case jboss) fails
rom: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, October 27, 2004 11:04 AM
>To: Tomcat Users List
>Subject: RE: BUG? TC 5.0.xx: WEB-INF/classes/jndi.properties found but
>INITIAL_CONTEXT_FACTORY property gets overwritten by TC [Auf Viren geprüft]
>
>
>Dear Yoav,
>
Dear Yoav,
>>My understanding of J2EE standards is that the servlet container tries
>>to find the file jndi.properties on the application classpath and if
found
>>initializes the context environment with properties from there.
>I don't think this understanding is corre
Hi,
>My understanding of J2EE standards is that the servlet container tries
>to find the file jndi.properties on the application classpath and if found
>initializes the context environment with properties from there.
I don't think this understanding is correct for containers an
Task:
=
I want to use
LdapContext lctx = new InitialLdapContext();
that is InitialLdapContext without environment parameters.
My understanding of J2EE standards is that the servlet container tries
to find the file jndi.properties on the application classpath and if found
initializes the
Hi,
You're not missing anything. Since I'm short on time for explanations
today, I'll just say that jndi.properties is basically nice for
examples/tutorials and simple applications, but the proper paradigm for
an application server is the explicit context properties population th
;
p.put(Context.URL_PKG_PREFIXES,
"jboss.naming:org.jnp.interfaces");
p.put(Context.PROVIDER_URL, "192.168.1.84:1099");
Defining the parameters in the jndi.properties does
not work.
I looked up the old posts and tried this solution
too..
props.load(
servlet.getServle
> when i deploy the war to Tomcat, and want to get my entity bean I can't
> find the Contex where my entity bean is.
I ran into the same problem with JBoss and Tomcat running in separate
JVM's.
> Where can i put my jndi.properties file.
> Any ideas???
Yup.t
a.naming.factory.url.pkgs",
"org.jboss.naming:org.jnp.interfaces");
env.put("java.naming.provider.url", "jnp://localhost:1099");
Context ctx = new InitialContext(env);
In my jsp i have inserted the above code for finding the entity bean, and it
works ok.
I want this informati
I've got Tomcat 4.1.12 and JBoss 3.0.4 running on separate machines/VMs.
I've put a jndi.properties file pointing to the JBoss JNDI server in my WEB-
INF/classes directorybut my servlet does not pick it up for some
reasonand just grabs Tomcats JNDI instance instead.
Anyone k
the moment.
Cheers,
Larry
> -Original Message-
> From: Olaf Jahn [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, August 20, 2002 6:40 AM
> To: Tomcat Users List
> Subject: Re: Tomcat 3.3 does not find jndi.properties
>
>
> "Larry Isaacs" <[EMAIL PROTECTED
I wrote:
> Thanks a lot, the problem does not exist any more with the lastest
> 3.3.2-dev. The jndi.properties file placed in WEB-INF/classes is now
> found and read.
I little experimenting showed that this is already fixed in 3.3.1. So I
just switch vom Tomcat 3.3a to 3.3.1 and e
s not exist any more with the lastest
3.3.2-dev. The jndi.properties file placed in WEB-INF/classes is now
found and read.
When is a release of 3.3.2 to be expected?
Regards
Olaf
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
--
> From: Olaf Jahn [mailto:[EMAIL PROTECTED]]
> Sent: Monday, August 19, 2002 12:42 PM
> To: 'Tomcat Users List'
> Subject: Tomcat 3.3 does not find jndi.properties
>
>
> Hi,
>
> my Tomcat 3.3a does not find the jndi.properties file regardless of
> wher
Hi,
my Tomcat 3.3a does not find the jndi.properties file regardless of
where I put it inside the web application tree. That is, I tried the
web app root as well as WEB-INF/lib and WEB-INF/classes.
Only if I place it directly into jre/lib the file is found, which of
course is not really an
Hi,
I want to get hold of my service classes on a seperate box via jndi/tomcat.
Could someone give me an example of what a tomcat specific jndi.properties
should look like.
Thanks very much.
Regards,
Michael
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional comma
ine-2/howto/jboss-howto.html
(The list of moved JARs in this second HOWTO is
excessive)
--- Andrew <[EMAIL PROTECTED]> wrote: > Hi, I've
some ejbeans on other host(EJB
> container) and I want to use it
> in Tomcat(4.0.1). My question is:
> How I can specify/place jndi.prop
Hi, I've some ejbeans on other host(EJB container) and I want to use it
in Tomcat(4.0.1). My question is:
How I can specify/place jndi.properties file for successful lookup my
beans.If Tomcat supports some other means through
webapp configuration options (I mean Tomcat jndi namespace)-
"McDowell, Mark" <[EMAIL PROTECTED]> writes:
> I'll preface this with *I am NOT an expert* :)
Me neither.
> The only information I'm aware of is that if the jndi.properties
> file is in the CLASSPATH, it should be found Try adding
> WEB-INF/clas
I'll preface this with *I am NOT an expert* :)
The only information I'm aware of is that if the jndi.properties
file is in the CLASSPATH, it should be found Try adding
WEB-INF/classes to the CLASSPATH prior to starting Tomcat...
Mark
-Original Message-
From: Jim Crossl
I'm reposting due to a lack of response. I've searched the archives,
and I'm doing everything mentioned there, yet I still can't seem to
get the default InitialContext to load the jndi.properties from the
application's classpath.
PREVIOUS POST:
How do I make the defau
How do I make the default InitialContext use the jndi.properties in
my application's WEB-INF/classes directory?
I'm using 3.2.2 with the correct Interceptor:
I'm open to upgrading my Tomcat if that's the only way.
Thanks.
--
To unsubscribe: <mailto:[EMAIL PRO
Hi,
I am having problems with jndi.properties being read from my
WEB-INF/classes directory. I have seen this problem referenced once on
the tomcat-dev mailing list -- someone submitted a patch, but apparently
it did not get committed. (I couldn't find a reason why, so I am not
sure if tha
jndi.properties file placed in WEB-INF/classes dir of
my application.
Is the latter method incorrect?
erik
___
Do You Yahoo!?
Del dine bilder med andre på http://no.photos.yahoo.com
-
To
25 matches
Mail list logo