Scott,

clarifying, asm.sql.Database is a normal class that access the Database via Datasource 
name declared on my JMC.
This problem was solved inserting jdbc.webpersonnel.remotelyAccessible=true in Default 
Server local.properties, but
it doesn't make sense to me, because I'm declaring the webpersonnel Datasource in 
deploy time via deploy.properties
and also, it doesn't exists until the deploy.
Other thing, I'm starting only Default Server, so according to you, I'm have just one 
JVM, why I had to put this
property to work if  I'm accessing internally on the same JVM?

Best regards,

Marcelo Bellezo

Scott Stirling wrote:

> Can you clarify what you mean here:
>
> > 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
>
> If it's not an EJB, what is it?  And how will JRun know how to deal with it?
>
> Scott
>
> P.S. They are both running in the same JVM if you start up only one program,
> i.e., JRun.  If you start the JRun server and the EJB server separately,
> then there are two JVMs.
>
> > -----Original Message-----
> > From: Marcelo Bellezo [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, April 09, 2001 2:06 PM
> > To: JRun-Talk
> > Subject: Re: dataSource:javax.naming.NameNotFoundException
> >
> >
> > 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