I've developed a webapplication under tomcat with a datasource. It works
fine, however, I'm trying to do a standalone application that uses the
classes of this webapplication, everything works until it tries to get the
context in order to get a connection to the database.
How can I get the application's context within Tomcat from outside the
webapplication? And then be able to get a connection to the database.




This is the run-time error that it throws:

javax.naming.NoInitialContextException: Need to specify class name in
environment or system property, or as an applet parameter, or in an
application resource f
ile:  java.naming.factory.initial
        at
javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:6
40)


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to