facebook

simplebean tutorial

  1. MyEclipse Archived
  2.  > 
  3. Documentation
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #212733 Reply

    Svens
    Member

    while trying to complete the simple bean tutorial ir get folowing errors

    jboss log :
    –<cut>–
    Depends On Me:
    ObjectName: jboss.j2ee:jndiName=ejb/SimplebeanHome,plugin=pool,service=EJB
    state: CREATED
    I Depend On:
    Depends On Me:
    ObjectName: jboss.j2ee:jndiName=ejb/SimplebeanHome,service=EJB
    state: FAILED
    I Depend On:
    Depends On Me: RuntimeMBeanException: java.lang.SecurityException: Invalid authentication attempt, principal=null
    Cause: java.lang.SecurityException: Invalid authentication attempt, principal=null

    MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM:
    ObjectName: jboss.j2ee:jndiName=ejb/SimplebeanHome,plugin=pool,service=EJB
    state: CREATED
    I Depend On:
    Depends On Me:
    ObjectName: jboss.jca:service=LocalTxCM,name=DefaultDS
    state: NOTYETINSTALLED
    I Depend On:
    Depends On Me: jboss.mq:service=StateManager
    jboss.mq:service=PersistenceManager

    ObjectName: jboss.j2ee:jndiName=ejb/SimplebeanHome,service=EJB
    state: FAILED
    I Depend On:
    Depends On Me: RuntimeMBeanException: java.lang.SecurityException: Invalid authentication attempt, principal=null
    Cause: java.lang.SecurityException: Invalid authentication attempt, principal=null
    _________________________________________________________
    am trying the tutorial wit hsql db i think the problems is there:
    hsqldb-ds.xml looks like this:
    __________________________________________________________
    <?xml version=”1.0″ encoding=”UTF-8″?>
    <!– The Hypersonic embedded database JCA connection factory config
    $Id: hsqldb-ds.xml,v 1.1.2.13 2004/04/19 12:47:36 ejort Exp $ –>
    <datasources>
    <local-tx-datasource>
    <jndi-name>MyDS</jndi-name>
    <connection-url>jdbc:hsqldb:”C:/jboss/jboss-3.2.5/server/default/data/hypersonic/localDB”</connection-url>
    <driver-class>org.hsqldb.jdbcDriver</driver-class>
    <user-name>sa</user-name>
    <password></password>

    <!– This mbean can be used when using in process persistent db –>
    <mbean code=”org.jboss.jdbc.HypersonicDatabase”
    name=”jboss:service=Hypersonic,database=localDB”>
    <attribute name=”Database”>localDB</attribute>
    <attribute name=”InProcessMode”>true</attribute>
    </mbean>
    </datasources>
    __________________________________________________________
    jbosscmp-jdbc.xml looks like this:
    ___________________________________________________________
    <jbosscmp-jdbc>
    <defaults>
    <datasource>java:/MyDS</datasource>
    <datasource-mapping>Hypersonic SQL</datasource-mapping>
    </defaults>

    <enterprise-beans>

    <!–
    To add beans that you have deployment descriptor info for, add
    a file to your XDoclet merge directory called jbosscmp-jdbc-beans.xml
    that contains the <entity></entity> markup for those beans.
    –>

    <entity>
    <ejb-name>Simplebean</ejb-name>
    <table-name>tsimplebean</table-name>

    <cmp-field>
    <field-name>id</field-name>
    <column-name>fid</column-name>

    </cmp-field>
    <cmp-field>
    <field-name>name</field-name>
    <column-name>fname</column-name>

    </cmp-field>

    <!– jboss 3.2 features –>
    <!– optimistic locking does not express the exclusions needed –>
    </entity>

    </enterprise-beans>

    </jbosscmp-jdbc>

    pls help tis is the 5 tutorial am trying on ejb this must work
    thanx
    Sven

    #212765 Reply

    Riyad Kalla
    Member

    Sven,
    I’ve asked someone to look at this.

    #212819 Reply

    Greg
    Member

    Which tutorial are you using? If you have a link to it, post it here so we can get a better idea of what might be going wrong.

    #212977 Reply

    gyzheng
    Member

    I would like to see a working example as well using Eclipse-MyEclipse-JBoss-HypersonicDatabase

    I tried the tutorial from http://www.laliluna.de/tutorial/simpleEJB/xDoclet_jboss_first_EJB.html and got similar error as Sven.

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: simplebean tutorial

You must be logged in to post in the forum log in