Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > Environment Issue

Reply
Thread Tools

Environment Issue

 
 
Mike
Guest
Posts: n/a
 
      06-20-2007


I use JBuilder on windows to develop jsps and java classes for
web-apps that involve jdbc calls to a linux box running Tomcat and
Mysql.

I've been using Driver Manger in my classes up to now and was able to
do querries from JBuilder to Mysql on the linux box. I am in the
process of switching to connection pooling and JNDI.

I installed Tomcat on my windows machine and set the url under
resources to point to the linux box.

In JBuilder I set the output to the classes dir of WEB-INF for the
web-app on the localhost. I created a simple class to do a querry. I
get results with a jsp that makes use of the class, however, when I
try to execute the class from JBuilder, I get a
"NoInitialContextException" error.

Is there a way to execute the classes from JBuilder even thoght they
are "contained" in Tomcat?
 
Reply With Quote
 
 
 
 
Roedy Green
Guest
Posts: n/a
 
      06-22-2007
On Wed, 20 Jun 2007 22:11:49 GMT, (Mike) wrote, quoted
or indirectly quoted someone who said :

>"NoInitialContextException" error.


see http://mindprod.com/jgloss/jdbc.html
where I talk about datasources. That may get you going.
--
Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Cisco DHCP issue with multi-o/s environment Dan Cisco 3 07-06-2007 01:41 PM
70-284 Lab Environment, Need Virtual Environment brooklynbridge508@hotmail.com MCSA 4 05-02-2007 09:49 AM
Setting an environment variable from another environment variable marcwentink@hotmail.com Java 5 04-04-2007 10:39 PM
shared hosting environment issue =?Utf-8?B?cm9kY2hhcg==?= ASP .Net 0 08-26-2006 02:04 AM
Testing Environment Issue Jeremy S. ASP .Net 2 01-15-2005 08:06 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57