- This topic has 3 replies, 2 voices, and was last updated 20 years, 4 months ago by Riyad Kalla.
-
AuthorPosts
-
akmalhussainMemberI am using Eclipse 3 with the latest release of MyEclilpseIDE with the latestest fix. I get the problem with both JBoss 3 and 4 on a Windows XP Prof. PC.
I created a new EJB project and a new Session Bean using the wizards.
When I accept the default class level xdoclet it all works fine:
@ejb.bean name = “TestSessionBean”
type = “Stateless”
display-name = “TestSessionBean”
description = “TestSessionBean EJB”
view-type = “remote”
jndi-name = “ejb/TestSessionBeanHome”When I change it to generate both remote and local interfaces for the EJB as: view-type = “both”, I get XML validation failure on the generated jboss.xml file.
The generated jboss.xml file contains:
<session>
<ejb-name>TestSessionBean</ejb-name>
<jndi-name>ejb/TestSessionBeanHome</jndi-name>
<local-jndi-name>TestSessionBeanLocal</local-jndi-name>
</session>The following are from the Eclipse problem tab relating to the above:
Element type “local-jndi-name” must be declared. jboss.xml HelloWorld/src/META-INF line 18 10 September 2004 15:21:58
The content of element type “session” must match “(ejb-name,jndi-name?,configuration-name?,security-proxy?,ejb-ref*,resource-ref*,resource-env-ref*,clustered?,cluster-config?)”. jboss.xml HelloWorld/src/META-INF line 20 10 September 2004 15:21:58
I have tried changing the Jboss URL in the DOCTYPE but it stills fails.
I think the XML validation is being done with at old version of the JBoss DTD. How do I get it to point to a new DTD – assuming this is the problem?
Thanks,
Akmal.
Riyad KallaMemberAkmal,
You need to set the “Version” value for the JBoss subtask to the version you want (e.g. 3.2, 4.0, etc.). Also make sure to check the checkbox next to it. Then erase the jboss.xml file and rerun XDoclet.
akmalhussainMemberThank you for the very quick reply and solution.
Regards,
Akmal.
Riyad KallaMemberNo problem, glad it worked.
-
AuthorPosts