dcsimg
JRUN Data Source Binding Problem
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   sheila_wang
Posted On:   Thursday, November 7, 2002 12:34 PM

I am using JRUN Server3.1 and I have my own jrun server setup and under JDBC Data Source, I created a data source to connect to Oracle database. It has been working for several months. but suddenly it stops working. In event-log file. The message shows up as followed: warning (jdbc) Binding exception: java:com namespace cannot be modified [javax.naming.NamingException: java:comp namespace cannot be modified] at com.sun.enterprise.naming.java.javaURLContext.bind(javaURLContext.java) at javax.naming.InitialContext.bind(InitialContext.java:358) at allaire.jrun.sql.JdbcBindingService.init(JdbcBindingService.java:98) at allaire.jrun.ServletService.init(ServletService.java:66) at allaire.jrun.ServletService.ini   More>>

I am using JRUN Server3.1 and I have my own jrun server setup and under JDBC Data Source, I created a data source to connect to Oracle database. It has been working for several months. but suddenly it stops working. In event-log file. The message shows up as followed:


warning (jdbc) Binding exception: java:com namespace cannot be modified [javax.naming.NamingException: java:comp namespace cannot be modified]
at com.sun.enterprise.naming.java.javaURLContext.bind(javaURLContext.java)
at javax.naming.InitialContext.bind(InitialContext.java:358)
at allaire.jrun.sql.JdbcBindingService.init(JdbcBindingService.java:98)
at allaire.jrun.ServletService.init(ServletService.java:66)
at allaire.jrun.ServletService.init(ServletService.java:31)
......


My reaction for this is firstly checking the data source name, url, driver and so on. I didn't find any typo error there. I tried testing JDBC in jrun Management Console and says "The test for the data source was successful!"
Secondly I was dounting my data source code (here is the code):


			
try {
InitialContext context = new InitialContext();
ds = (DataSource)context.lookup("java:comp/env/jdbc/nacubo1");
}
catch (NamingException e ) {
System.out.println("Login Servlet: init data source - " + e);
return;
}


I didn't find anything unusual.


I have this source code shared with my another coworker and his code is working fine in his own jrun server.


now can anybody tell me what happens here. I am frustrated by this problem all these days. Since
I have projects due very soon(which have to use this data source). Can anybody give me any helpful hints?
Thanks in advance!

-sheila

   <<Less
About | Sitemap | Contact