RE: How to get data source in JRun4

2002-08-19 Thread Barry Charles

JRun 4.0 uses a simpler JNDI structure than 3.1 did.  Take a look in the data-source 
section of jrun-resources.xml for your server.  There should be a field called 
jndi-name.  That value is all you need to use to look up the datasource, without any 
prefixes.  Hope this helps.

Barry Charles

-Original Message-
From: Zhang, Yuying [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 19, 2002 10:55 AM
To: JRun-Talk
Subject: How to get data source in JRun4


Hi,
 
We are just starting to migrate our Jrun server from 3.1 to 4.0. We have a Data Souce 
set up in JRun4.0 and test sucessfully in JMC. However, when we use 
dataSource =(DataSource)ctx.lookup(java:comp/env/jdbc/ + dsName); to get 
connection from this data source, it would throw the following exceptions:
 
An error occured while processing your request: javax.naming.NameNotFoundException: No 
such binding: jdbc
 at jrun.naming.ContextManager.getBinding(ContextManager.java:515)
 at jrun.naming.ContextManager.getBinding(ContextManager.java:521)
 at jrun.naming.ContextManager.getObject(ContextManager.java:525)
 at jrun.naming.ContextManager.lookup(ContextManager.java:292)
 at jrun.naming.JRunNamingContext.lookup(JRunNamingContext.java:485)
 at jrun.naming.JRunNamingContext.lookup(JRunNamingContext.java:622)
 at jrun.naming.JRunNamingContext.lookup(JRunNamingContext.java:466)
 at javax.naming.InitialContext.lookup(InitialContext.java:347)
 at rxgui.db.Adaptor.getDataSource(Adaptor.java:68)
 at rxgui.db.Adaptor.getConnection(Adaptor.java:38)
 at jrun__footer2ejspb._jspService(jrun__footer2ejspb.java:73)
 at jrun.jsp.runtime.HttpJSPServlet.service(HttpJSPServlet.java:43)
 at jrun.jsp.JSPServlet.service(JSPServlet.java:106)
 at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:106)
 at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
 at jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:241)
 at jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:527)
 at jrun.servlet.http.WebService.invokeRunnable(WebService.java:172)
 at jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPool.java:348)
 at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:451)
 at jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.java:294)
 at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)
 
Chained to ...
Could not lookup data sourcebr
Stack Trace is : prefont color=blackrxgui.RxException: 
javax.naming.NameNotFoundException: No such binding: jdbc
 at jrun.naming.ContextManager.getBinding(ContextManager.java:515)
 at jrun.naming.ContextManager.getBinding(ContextManager.java:521)
 at jrun.naming.ContextManager.getObject(ContextManager.java:525)
 at jrun.naming.ContextManager.lookup(ContextManager.java:292)
 at jrun.naming.JRunNamingContext.lookup(JRunNamingContext.java:485)
 at jrun.naming.JRunNamingContext.lookup(JRunNamingContext.java:622)
 at jrun.naming.JRunNamingContext.lookup(JRunNamingContext.java:466)
 at javax.naming.InitialContext.lookup(InitialContext.java:347)
 at rxgui.db.Adaptor.getDataSource(Adaptor.java:68)
 at rxgui.db.Adaptor.getConnection(Adaptor.java:38)
 at jrun__footer2ejspb._jspService(jrun__footer2ejspb.java:73)
 at jrun.jsp.runtime.HttpJSPServlet.service(HttpJSPServlet.java:43)
 at jrun.jsp.JSPServlet.service(JSPServlet.java:106)
 at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:106)
 at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
 at jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:241)
 at jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:527)
 at jrun.servlet.http.WebService.invokeRunnable(WebService.java:172)
 at jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPool.java:348)
 at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:451)
 at jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.java:294)
 at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)
 
Chained to ...
Could not lookup data source
 at rxgui.db.Adaptor.getDataSource(Adaptor.java:72)
 at rxgui.db.Adaptor.getConnection(Adaptor.java:38)
 at jrun__footer2ejspb._jspService(jrun__footer2ejspb.java:73)
 at jrun.jsp.runtime.HttpJSPServlet.service(HttpJSPServlet.java:43)
 at jrun.jsp.JSPServlet.service(JSPServlet.java:106)
 at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:106)
 at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
 at jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:241)
 at jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:527)
 at jrun.servlet.http.WebService.invokeRunnable(WebService.java:172)
 at jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPool.java:348)
 at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:451)
 at jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.java:294

RE: Java/Javac Compiler

2002-04-02 Thread Barry Charles

It sounds like you may need to add classpath info.  Soething like this:

javac *.java -classpath c:\jrun\nozomi\lib\ejb2_0.jar;c:\jrun\nozomi\lib\jta.jar;

Your classpath may difer, of course.  Hope this helps.

Barry Charles
JRun QA

-Original Message-
From: Chris Jenkins [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 02, 2002 1:08 PM
To: JRun-Talk
Subject: Java/Javac Compiler


I wish there was an archives to search because i'm new to the list and I
hope this hasn't been discussed before.  I'm trying to compile my .java
files.  At the command prompt i type java file.java.  I receive an error
stating.

exception in thread main java.lang.NoClassDefFoundError

I'm running jrun 3.1

Archives: http://www.mail-archive.com/jrun-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
__
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm
Archives: http://www.mail-archive.com/jrun-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Migration tool

2002-03-28 Thread Barry Charles

Hello.

This is my first time posting here.  I just wanted to let people know that JRun 4.0 
comes with a migration tool.  It will migrate JRun 3.x servers, apps, and 
configuration settings over to 4.0.  Just type migrate your_jrun3x_root from the bin 
directory of JRun 4.0.  You'll still have to do some configuring yourself, and the 
tool won't change your code, but it will take care of alot of the basics for you.  So 
please, give it a try, and let me know what you think.  Thanks.

Barry Charles
JRun QA
__
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.
Archives: http://www.mail-archive.com/jrun-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists