hello alesj and j2ee_junkie

according to the great help provided by both of you,
i did manage almost 90% of my problems
i connected from stand alone tomcat to Jboss on port 1099 and i listed all the 
objects bind by jboss

then i downloaded netbeans 5.5 J2EE preview and created a sample ejb module in 
it using Jboss as the J2EE server
when i deployed it i got the following error in jboss

21:19:34,046 ERROR [MainDeployer] Could not create deployment: 
file:/D:/jboss-4.0.3SP1/server/default/deploy/EJBModule.jar
org.jboss.deployment.DeploymentException: 
ejb-jar.xml must either obey the right xml schema or define a valid DOCTYPE! 

when i looked in to the ejb-jar.xml i found that it had only schema def.  here 
is the file

<?xml version="1.0" encoding="UTF-8"?>
  | <ejb-jar version="3.0" xmlns="http://java.sun.com/xml/ns/javaee"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee 
http://java.sun.com/xml/ns/javaee/ejb-jar_3_0.xsd";>
  | </ejb-jar>


when i created ejbmodule in EJB 2.1 format using netbeans 5.0 it wrote the 
ejb-jar.xml for me
so i copied that to my ejb-jar.xml and created the 
new ejb-jar.xml file as follows

<?xml version="1.0" encoding="UTF-8"?>
  | <ejb-jar version="3.0" xmlns="http://java.sun.com/xml/ns/javaee"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee 
http://java.sun.com/xml/ns/javaee/ejb-jar_3_0.xsd";>
  |     <display-name>EJBModule</display-name>
  |     <enterprise-beans>
  |         <session>
  |             <display-name>UserLoginBeanSB</display-name>
  |             <ejb-name>UserLoginBean</ejb-name>
  |             
<remote>com.mycompany.myproject.ejb.login.UserLoginRemote</remote>
  |             
<ejb-class>com.mycompany.myproject.ejb.login.UserLoginBean</ejb-class>
  |             <session-type>Stateless</session-type>
  |             <transaction-type>Container</transaction-type>
  |         </session>
  |         </enterprise-beans>
  |     <assembly-descriptor>
  |         <container-transaction>
  |             <method>
  |                 <ejb-name>UserLoginBean</ejb-name>
  |                 <method-name>*</method-name>
  |             </method>
  |             <trans-attribute>Required</trans-attribute>
  |         </container-transaction>
  |         </assembly-descriptor>
  |     </ejb-jar>
  | 
  | 

then also it showed the same error
where will i get the doc to create ejb-jar.xml 
in EJB3 schema ????

thank you

Sony

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3932678#3932678

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3932678


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to