Problem with JNDI Resources JavaMail Sessions

2008-10-02 Thread Schneider, Sebastian
Hey Team, I have some problems with the example of JNDI Resources JavaMail Sessions. I get the error: The constructor MimeMessage(Session) is undefined A extract from the HOW-TO page: Context initCtx = new InitialContext(); Context envCtx = (Context) initCtx.lookup(java:comp/env); Session

AW: Problem with JNDI Resources JavaMail Sessions

2008-10-02 Thread Schneider, Sebastian
Hey guys, I found the solution. I had import the wrong Session-class. So long, Sebastian Hey Team, I have some problems with the example of JNDI Resources JavaMail Sessions. I get the error: The constructor MimeMessage(Session) is undefined A extract from the HOW-TO page: Context

Re: Problem with JNDI environment entry resources

2008-09-03 Thread Paul Pepper
being the only change). I'm hesitant to raise a bug for fear of being flamed again! Thanks, Paul. 2008/9/3 Caldarale, Charles R [EMAIL PROTECTED]: From: Paul Pepper [mailto:[EMAIL PROTECTED] Subject: Problem with JNDI environment entry resources Can anyone suggest what I might have missed

Re: Problem with JNDI environment entry resources

2008-09-03 Thread Paul Pepper
: [EMAIL PROTECTED] To: users@tomcat.apache.org Subject: Problem with JNDI environment entry resources Tomcat 6.0.18 java version 1.6.0_06 (sun-java6-jdk on Ubuntu 8.04 i386) I'm attempting to create environment entry resources, of type java.lang.String, within conf/server.xml and access them

RE: Problem with JNDI environment entry resources

2008-09-03 Thread Caldarale, Charles R
From: Paul Pepper [mailto:[EMAIL PROTECTED] Subject: Re: Problem with JNDI environment entry resources Tomcat 6 docs states that docBase is a valid attribute in this situation. I'll have to check the docs again. However, docBase is only legal when the webapp is stored outside of the Host

RE: Problem with JNDI environment entry resources

2008-09-03 Thread Martin Gainty
contained within this transmission. Date: Wed, 3 Sep 2008 14:42:24 +0100 From: [EMAIL PROTECTED] To: users@tomcat.apache.org Subject: Re: Problem with JNDI environment entry resources Martin, Thanks for the suggestion, though I think there may have been some misunderstanding. I'm

Re: Problem with JNDI environment entry resources

2008-09-03 Thread Paul Pepper
I'll have to check the docs again. However, docBase is only legal when the webapp is stored outside of the Host appBase directory. Otherwise, you risk ending up with double deployment. I don't see docBase described that way in the docs - at this moment I'm referring to

Re: Problem with JNDI environment entry resources

2008-09-03 Thread David Smith
There's an implicit association based on the context path. myWebApp.xml in conf/Catalina/localhost is implicitly associated with the webapp myWebApp in the webapps directory, whether it be as a .war or expanded folder. Illegal may be a strong word -- it implies that tomcat will flat out

RE: Problem with JNDI environment entry resources

2008-09-03 Thread Caldarale, Charles R
From: Paul Pepper [mailto:[EMAIL PROTECTED] Subject: Re: Problem with JNDI environment entry resources Besides, I don't see any other documented way of associating each application with its associated Context/ element within server.xml. Because you're not supposed to put Context elements

Re: Problem with JNDI environment entry resources

2008-09-03 Thread Paul Pepper
2008/9/3 David Smith [EMAIL PROTECTED]: There's an implicit association based on the context path. myWebApp.xml in conf/Catalina/localhost is implicitly associated with the webapp myWebApp in the webapps directory, whether it be as a .war or expanded folder. Yes, I agree that the docs read

Re: Problem with JNDI environment entry resources

2008-09-03 Thread David Smith
I'm out then. I'm fine with the way tomcat operates and don't feel anything in the way context xml files are associated with webapps is ambiguous. It's really simple: 1. If you just want to deploy a webapp and don't need to define any resources like db pools, just drop the webapp in the

Problem with JNDI environment entry resources

2008-09-02 Thread Paul Pepper
Tomcat 6.0.18 java version 1.6.0_06 (sun-java6-jdk on Ubuntu 8.04 i386) I'm attempting to create environment entry resources, of type java.lang.String, within conf/server.xml and access them from web applications using JNDI. I've created a bare-bones test web app, jndistring, with the following

RE: Problem with JNDI environment entry resources

2008-09-02 Thread Caldarale, Charles R
From: Paul Pepper [mailto:[EMAIL PROTECTED] Subject: Problem with JNDI environment entry resources Can anyone suggest what I might have missed? What happens if you follow the (strongly) recommended practice of not putting Context elements in server.xml? If you don't want to put the Context

RE: Problem with JNDI environment entry resources

2008-09-02 Thread Martin Gainty
Subject: Problem with JNDI environment entry resources Tomcat 6.0.18 java version 1.6.0_06 (sun-java6-jdk on Ubuntu 8.04 i386) I'm attempting to create environment entry resources, of type java.lang.String, within conf/server.xml and access them from web applications using JNDI. I've created

RE: Problem with JNDI using a changed context root path

2008-04-22 Thread Stefan Dirschnabel
Thank you very much :). Deploying the application as ROOT.war solved all my problems ;) and in fact my parameters in the context.xml were useless. Am Montag, den 21.04.2008, 08:19 -0500 schrieb Caldarale, Charles R: From: Felix Schumacher [mailto:[EMAIL PROTECTED] Subject: Re: Problem

Problem with JNDI using a changed context root path

2008-04-21 Thread Stefan Dirschnabel
Hi, I experience a problem changing the context root path of my Tomcat 5.5. I deploy my application using a war file. Because the Application can now only be accessed using www.url.de/warfilename I changed the context root of my Tomcat. I just want the user to enter www.url.de to access the

Re: Problem with JNDI using a changed context root path

2008-04-21 Thread Felix Schumacher
On Mon, April 21, 2008 10:55 am, Stefan Dirschnabel wrote: Hi, I experience a problem changing the context root path of my Tomcat 5.5. I deploy my application using a war file. Because the Application can now only be accessed using www.url.de/warfilename I changed the context root of my

RE: Problem with JNDI using a changed context root path

2008-04-21 Thread Caldarale, Charles R
From: Felix Schumacher [mailto:[EMAIL PROTECTED] Subject: Re: Problem with JNDI using a changed context root path Remember to move the corresponding context file as well, so move conf/Catalina/localhost/mywebapp.xml to conf/Catalina/localhost/ROOT.xml. The above .xml file is not always

Problem configuring JNDI DataSource for Oracle

2006-06-22 Thread Ashvini K Saxena
I am trying to use a datasource to access an Oracle database (Tomcat 5.5.9 and Oracle 9i). I have configured a datasource in the context.xml as follows: ?xml version=1.0 encoding=UTF-8? Context reloadable=true Resource name=jdbc/reportdb type=javax.sql.DataSource

Re: Problem configuring JNDI DataSource for Oracle

2006-06-22 Thread Ashvini K Saxena
I figured it out. I had followed Tomcat documentation while doing this. The Oracle example in the documentation mentioned url as jdbc:oracle:thin:[EMAIL PROTECTED]:1521:mysid Following that I specified my url as jdbc:oracle:thin:[EMAIL PROTECTED]:1521:rep while actually it should be

Re: Problem configuring JNDI DataSource for Oracle

2006-06-22 Thread Ashvini K Saxena
Nope, with that it only gives a proper error message, Invalid connection string format, a valid format is: host:port:sid On Fri, 23 Jun 2006 00:48:54 +0530, Ashvini K Saxena [EMAIL PROTECTED] said: I figured it out. I had followed Tomcat documentation while doing this. The Oracle example in

problem with JNDI

2006-02-03 Thread Hans Sowa
Hi I'm working on a webapplikation using JNDI to lookup for a database connection. Actually it works for several times and then it stopps and I don't get an connection. I analysed it and found out that Method getConnnection has a problem. Here is my code: protected Connection

Re: problem with JNDI

2006-02-03 Thread Hans Sowa
Hallo I solved the problem. It is embarrasing to me but in some cases I didn't close the connection. So therefore I had this problem. Thanks. 2006/2/3, Hans Sowa [EMAIL PROTECTED]: Hi I'm working on a webapplikation using JNDI to lookup for a database connection. Actually it works for