Scott,

I already done both ways and nothing.

How do I know if  they're running on the same JVM ?

Regards,

Marcelo Bellezo

Scott Stirling wrote:

> If the Database bean and the EJB server are in the same JVM, then you should
> not use the alaire.ejipt.ContextFactory.  Just use the no-args
> InitialContext() constructor.
>
> If the bean and the EJB server are in different JVMs, you must set the new
> (as of beta 2), jdbc.[datasourcename].remotelyAccessible=true property in
> local.properties.
>
> Hope this helps.
>
> Scott Stirling
>
> > -----Original Message-----
> > From: Marcelo Bellezo [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, April 09, 2001 9:46 AM
> > To: JRun-Talk
> > Subject: dataSource:javax.naming.NameNotFoundException
> >
> >
> > Hello all,
> >
> > this error was not ocurring at JRun 3.0 service pack 2a version
> > 3.02a.11614 but now is occurring at JRun 3.1 version 3.1.13533.
> >
> > I already read migration.pdf file at page 19, title Migrating Data
> > Sources.
> >
> > webpersonnel is my data source name defined at JMC -> Jrun Default
> > Server -> JDBC Data Sources and also defined in my
> > webpersonnel_ejb.jar
> > at ejb-jar.xml.
> > asm.sql.Database is a bean that I wrote to encapsulate some Database
> > functions, pay attention that this is not an EJB, I'm
> > deploying it in a
> > jar file called asm.jar, this file is declared at
> > global.properties file
> > at user.classpath.
> >
> > Database code snnipet:
> >    try{
> >       Properties properties = new Properties();
> >       properties.setProperty( Context.INITIAL_CONTEXT_FACTORY,
> > "allaire.ejipt.ContextFactory" );
> >       properties.setProperty( Context.PROVIDER_URL,
> > "ejipt://localhost:2323" );
> >       Context ctx = InitialContext(properties);
> >       dataSource = (DataSource) ctx.lookup(
> > "java:comp/env/jdbc/webpersonnel" );
> >    catch( NamingException ne ){
> >       throw new RuntimeException("Error looking up dataSource:" +
> > ne.toString());
> >    }
> >
> >
> > java.lang.RuntimeException: Error looking up
> > dataSource:javax.naming.NameNotFoundException: webpersonnel not found
> >  at asm.sql.Database.<init>(Database.java:54)
> >  at asm.seguranca.User.isValidUser(User.java:50)
> >  at LoginServlet.doPost(LoginServlet.java:36)
> >  at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
> >  at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> >  at allaire.jrun.servlet.JRunSE.service(../servlet/JRunSE.java:1402)
> >  at
> > allaire.jrun.session.JRunSessionService.service(../session/JRu
> > nSessionService.java:1082)
> >
> >  at
> > allaire.jrun.servlet.JRunSE.runServlet(../servlet/JRunSE.java:1256)
> >  at
> > allaire.jrun.servlet.JRunRequestDispatcher.forward(../servlet/
> > JRunRequestDispatcher.java:89)
> >
> >  at allaire.jrun.servlet.JRunSE.service(../servlet/JRunSE.java:1520)
> >  at
> > allaire.jrun.servlet.JvmContext.dispatch(../servlet/JvmContext
> > .java:361)
> >
> >  at allaire.jrun.http.WebEndpoint.run(../http/WebEndpoint.java:113)
> >  at allaire.jrun.ThreadPool.run(../ThreadPool.java:272)
> >  at allaire.jrun.WorkerThread.run(../WorkerThread.java:75)
> >
> > Any ideas ?
> >
> > Regards,
> >
> > Marcelo Bellezo
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to