[JBoss-user] [Beginners Corner] - Re: JNDI lookup returns $Proxy object

2006-04-25 Thread peafunk
Thanks for getting back to me. I finally figured this out, it was what you mentioned. I had to remove all other J2EE jar files and include jboss-j2ee.jar in the classpath. The problem was I had two different versions of javax.sql.DataSource in the classpath. Thanks for the help! View the o

[JBoss-user] [Beginners Corner] - JNDI lookup returns $Proxy object

2006-04-24 Thread peafunk
Hi, I am having an issue configuring a datasource with JBoss. When I perform a lookup of the datasource from outside of the web application, it returns a $Proxy# object instead of a javax.sql.DataSource object. I've scoured the forums here and tried to resolve this myself but haven't been abl

[JBoss-user] [Beginners Corner] - Re: JNDI Lookup timeout

2006-04-24 Thread peafunk
Ah-ha, that got it. I set the port in JNDI.properties and also added the following line to the datasource lookup and got it to work. env.put(Context.PROVIDER_URL,"localhost:1099"); Thanks for your help jaibarra. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic

[JBoss-user] [Beginners Corner] - Re: JNDI Lookup timeout

2006-04-21 Thread peafunk
Hi, Thanks for getting back to me. Yes the database server is up. Could this have to do with the port? I thought the correct port for database access was 1433 but I've seen some people use 1099. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3938734#3938

[JBoss-user] [Beginners Corner] - JNDI Lookup timeout

2006-04-20 Thread peafunk
Hi, I am trying to get a connection to a datasource but I am getting a communication exception. I'm not sure what the problem is here and I haven't seen any other posts with the same issue. Can someone please point me in the right direction? The exception I get doing a lookup for the datasou