Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / June 2007

Tip: Looking for answers? Try searching our database.

Environment Issue

Thread view: 
Mike - 20 Jun 2007 23:11 GMT
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?
Roedy Green - 22 Jun 2007 12:04 GMT
>"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


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.