- This topic has 3 replies, 4 voices, and was last updated 20 years, 4 months ago by gyzheng.
-
AuthorPosts
-
SvensMemberwhile 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=nullMBEANS 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=PersistenceManagerObjectName: 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
Riyad KallaMemberSven,
I’ve asked someone to look at this.
GregMemberWhich 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.
gyzhengMemberI 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.
-
AuthorPosts