[JBoss-user] DefaultDS not bound error

2003-02-03 Thread madhu sudhan
Hello,
I am using JBoss-3.0.0 and Mysql database.
In my application i am using MessageDrivenBeans(MDB),
when i am sending messages to server, in my bean it's giving an error (in 
lookup for the datasource) after getting the intial context,
 DataSource not bound why? i followed all the standard instructions to 
configure the DataSource, here the error is

8:34:39,823 ERROR [STDERR] javax.naming.NameNotFoundException: DefaultDS not 
bound
18:34:39,824 ERROR [STDERR] at 
org.jnp.server.NamingServer.getBinding(NamingServer.java:495)
18:34:39,825 ERROR [STDERR] at 
org.jnp.server.NamingServer.getBinding(NamingServer.java:503)
18:34:39,827 ERROR [STDERR] at 
org.jnp.server.NamingServer.getObject(NamingServer.java:509)
18:34:39,828 ERROR [STDERR] at 
org.jnp.server.NamingServer.lookup(NamingServer.java:282)
18:34:39,829 ERROR [STDERR] at 
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
18:34:39,830 ERROR [STDERR] at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
18:34:39,831 ERROR [STDERR] at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
18:34:39,832 ERROR [STDERR] at 
java.lang.reflect.Method.invoke(Method.java:324)
18:34:39,834 ERROR [STDERR] at 
sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:261)
18:34:39,835 ERROR [STDERR] at 
sun.rmi.transport.Transport$1.run(Transport.java:148)
18:34:39,836 ERROR [STDERR] at 
java.security.AccessController.doPrivileged(Native Method)
18:34:39,837 ERROR [STDERR] at 
sun.rmi.transport.Transport.serviceCall(Transport.java:144)

 i created the ejb-jar.xml and jboss-xml as mentioned in JBoss documentaion,
in ejb-jar.xml


The default DS
jdbc/DefaultDS
javax.sql.DataSource
Container

in jboss.xml
/
 
jdbc/DefaultDS
java:/DefaultDS

in Mdb lookup
/
 InitialContext ic = new InitialContext();
DataSource ds = (DataSource) ic.lookup("jdbc/DefaultDS");
can anyone help me? I tried all the ways..but i am unable to do
thanks in advance..

-- 
Madhu Sudhan .A
 M.Tech,MIGS,(MS)
Software Engineer
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.
infoGLYPTIC Software (P) Ltd
Ph: 523 4448/49/50, fax: 523 4451 ext: 335
Cell: 98451 05295
[EMAIL PROTECTED]
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-



---
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] DefaultDS not bound

2002-08-20 Thread David Jencks

You left out most of the standard info:

jboss version
whether DefaultDS is visible in jndiview
the log for the deployment of mysql-service.xml

Most likely if you look at these yourself and compare with the
mysql-service.xml from the jboss version you are running you will find the
problem yourself.

david jencks

On 2002.08.20 18:48:13 -0400   wrote:
> 
> 
> Hi,
> I went through the topic DefaultDB in this forum and made corresponding
> changes. But still it seemed that my problem was not addressed here. Wish
> somebody can help.
> Thanks in advance.
> Jerry
> My env:
> Database Vendor: MySql
> Database: authority
> Table:  users
> 
> | username | password |
> 
> | scott| scott123 |
> | start| start123 |
> +--+--+
> Table: userroles
> | username | userrole |
> | start| Coder|
> | scott| Echo |
> user "scott" has all previledges
> ---
> 
> mysql-service.xml:
> 
> 
> 
>  name="jboss.jca:service=LocalTxCM,name=MySqlDS">
> 
> 
> 
> 
> 
> 
> 
>  name="jboss.jca:service=LocalTxDS,name=MySqlDS">
> 
> DefaultDS
> 
> 
> 
> 
> 
>  type="java.lang.String">jdbc:mysql://localhost:3306/authority
> 
> org.gjt.mm.mysql.Driver
> 
> 
> 
> scott
> 
> scott123
> 
> 
> 
> 
> 
> 
> 
> 
> 
> optional-attribute-name="OldRarDeployment">jboss.jca:service=RARDeployment,name=JBoss
> LocalTransaction JDBC Wrapper
> 
> 
> 
> 
> 
> 
> 
> 
> 
>  name="jboss.jca:service=LocalTxPool,name=MySqlDS">
> 
> 0
> 
> 50
> 
> 5000
> 
> 15
> 
> ByContainer
> 
> 
> 
> 
> 
> optional-attribute-name="CachedConnectionManager">jboss.jca:service=CachedConnectionManager
> 
> optional-attribute-name="JaasSecurityManagerService">jboss.security:service=JaasSecurityManager
> 
> java:/TransactionManager
> 
> 
> 
> jboss.jca:service=RARDeployer
> 
> 
> 
> 
> 
> ---
> 
> login-config.xml
> 
> ---
> 
> 
> 
> 
> 
>  flag = "required" />
> 
> scott
> 
> scott
> 
> scott123
> 
> nobody
> 
> "managedConnectionFactoryName">jboss.jca:service=XaTxCM,name=MySqlDS
> 
> 
> 
> 
> 
> 
> 
> 
> 
> standardjbosscmp-jdbc.xml:
> 
> 
>
>
>   java:/DefaultDS
>   mySQL
>   
>   true
>   false
>   false
>   300
>   true
>   false
>   false
>   foreign-key
>   
>   on-load
>   1000
>   *
>   
>   1000
>
> 
> .
> 
> 
> 
> ---
> 
>  
> 
> At last: the error:
> 
> 2002-08-20 18:10:41,207 DEBUG 
>[org.jboss.jetty.security.JBossUserRealm#jaastest-domain]
> JBossUserPrincipal: start
> 2002-08-20 18:10:41,217 DEBUG 
>[org.jboss.jetty.security.JBossUserRealm#jaastest-domain]
> created JBossUserRealm::JBossUserPrincipal: scott
> 2002-08-20 18:10:41,217 DEBUG 
>[org.jboss.jetty.security.JBossUserRealm#jaastest-domain]
> authenticating: Name:scott Password:
> 2002-08-20 18:10:41,467 DEBUG 
>[org.jboss.security.plugins.JaasSecurityManager.jaastest-domain]
> Login failure
> javax.security.auth.login.LoginException:
> javax.naming.NameNotFoundException: DefaultDS not bound
>  at 
>org.jboss.security.auth.spi.DatabaseServerLoginModule.getUsersPassword(DatabaseServerLoginModule.java:110)
>  at 
>org.jboss.security.auth.spi.UsernamePasswordLoginModule.login(UsernamePasswordLoginModule.java:142)
>  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>  at 
>sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>  at java.lang.reflect.Method.invoke(Method.java:324)
>  at javax.security.auth.login.LoginContext.invoke(LoginContext.java:664)
>  at javax.security.auth.login.LoginContext.access$000(LoginContext.java:129)
>  at javax.security.auth.login.LoginContext$4.run(LoginContext.java:599)
>  at java.security.AccessController.doPrivileged(Native Method)
>  at javax.security.auth.login.LoginContext.invokeModule(LoginContext.java:596)
>  at javax.security.auth.login.LoginContext.login(LoginContext.java:523)
> 
>  
> 
> 
>  
> 
>  
> 
> 
> 
> -
> Do You Yahoo!?
> HotJobs, a Yahoo! service - Search Thousands of New Jobs
> Hi,
> I went through the topic DefaultDB in this forum and made
> corresponding changes. But still it seemed that my problem was not
> addressed here. Wish somebody can help.
> Thanks in advance.
> Jerry
> My env:
> Database Vendor: MySql
> Database: authority
> Table:  users| username | password ||
> scott    | scott123 || start    |
> start123 |+--+--+
> Table: userroles| username | userrole ||
> start    | Coder    ||
> scott    | Echo |
> user "scott" has all 
>previledges---
> mysql-service.xml:
> 
>  name="jboss.jca:service=LocalTxCM,name=MySqlDS">
>