It's been awhile since I used eclipse, so forgive my lack of
specificity.  I did run into this problem several times, though, when
I was using eclipse I'm sure of it.

Are you setting up a database connection pool?  You can define these
either in server.xml or in a separate context file.  I believe the
server.xml configuration will override the context file (correct me if
I'm wrong here, but I'm pretty certain one will override the other).

Depending on how you give eclipse control of your war assembly and
tomcat lifecycle, it may create a context file automatically for you,
which is somewhere in the eclipse project
configuration/settings/preferences.

>From the command line, do a ps -aux | grep tomcat (or the equivalent
in windows if that's what you're into) and take a look at the startup
string for tomcat that is being used by eclipse.  I also recommend
examining the differences between your stand alone "working"
deployment startup string and the eclipse startup string.  Eclipse
might be creating an entirely new deployment configuration tree and
pointing to your tomcat installation for its base files, and copying
an entirely new set of configuration files to the new tomcat
deployment tree.  This is useful for bringing up multiple instances of
Tomcat in a cluster, but does get annoying and confusing sometimes for
development.

More information about the error, and information about the startup
commands for tomcat would help me advise further.

Take a little time to straighten out which set(s) of files re driving
tomcat, and one final word to the wise .. make sure you aren't
pointing to another older/stale war file that is deploying
successfully.  THAT is annoying!  ;)

John


On 2/9/19, Jerry Malcolm <techst...@malcolms.com> wrote:
> John,
>
> Specifically what "jdbc configuration" am I looking for?  I see all the
> replicated config files in the eclipse workspace plus the metadata
> folder, etc.  But I don't really define 'jdbc' explicitly in native
> tomcat (At least I don't think I do).  So I'm not sure what should be
> replicated that's possibly not.   What config file paths, etc I'm
> looking for?  I looked at the Tomcat logs in the Eclipse console.  No
> mention of JDBC other than the exception.  Is there a bit more detail on
> what to look for?
>
> Thanks.
>
> Jerry
>
> On 2/9/2019 11:08 AM, John Dale wrote:
>> Eclipse creates its own set of deployment metadata .. likely your jdbc
>> configuration is not being replicated there.  In the tomcat logs, you
>> can usually find some file paths that give a clue as to the deployment
>> information being used .. in eclipse, I would guess they are machine
>> generated paths that will surprise you.
>>
>>
>> On 2/9/19, Arjuna Bandara <arjunab...@gmail.com> wrote:
>>> Jerry,
>>>
>>> Are you running Maven project?
>>>
>>> Could you send error msg?
>>>
>>> Regards,
>>>
>>> Arjuna
>>>
>>> On Sat, 9 Feb 2019 9:46 pm Jerry Malcolm, <techst...@malcolms.com>
>>> wrote:
>>>
>>>> Any idea what could cause 'jdbc' to not be found when running eclipse,
>>>> but it is found when running outside eclipse?
>>>>
>>>> I have a fully functional Tomcat 9.0 running fine with Windows
>>>> services.  But when I define a Tomcat 9.0 server in Eclipse and start
>>>> it
>>>> up, the first time I need to access a datasource jdbc/abcxyz it fails
>>>> saying jdbc can't be found.  I figure I'm doing something wrong in the
>>>> config.  But I've tried clearing out eclipse and starting over many
>>>> times.
>>>>
>>>> Suggestions?
>>>>
>>>> Thx.
>>>>
>>>> Jerry
>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
>>>> For additional commands, e-mail: users-h...@tomcat.apache.org
>>>>
>>>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
>> For additional commands, e-mail: users-h...@tomcat.apache.org
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to