-
1. Re: ejb-jar.xml must either obey the right xml schema or def
bjornbjorn May 16, 2006 5:20 AM (in response to bjornbjorn)I still get this problem.
I do not get it if I specify:
<!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN" "http://java.sun.com/dtd/ejb-jar_2_0.dtd">
at the top - but that causes problems when deploying since it will try to validate the beans as 2.0 beans and not 3.0 beans.
Anyone? -
2. Re: ejb-jar.xml must either obey the right xml schema or def
bjornbjorn May 16, 2006 7:52 AM (in response to bjornbjorn)Also, why doesn't the ejb-jar.xml from the EJB3 tutorial work? (http://docs.jboss.org/ejb3/app-server/reference/build/reference/en/html/partial_deployment_descriptors.html#d0e656)
Does it mean something is wrong with my server, or is it the tutorial which has an old ejb-jar.xml? -
3. Re: ejb-jar.xml must either obey the right xml schema or def
bitl May 25, 2006 12:13 PM (in response to bjornbjorn)Start your file with:
<?xml version="1.0"?> <ejb-jar version="3.0" xmlns="http://java.sun.com/xml/ns/j2ee">
I have concluded the solution reading this:
http://www.theserverside.com/discussions/thread.tss?thread_id=38282
At least it helped me to resolve your (and my) issue under jboss-4.0.4.GA. -
4. Re: ejb-jar.xml must either obey the right xml schema or def
smajima May 31, 2006 6:00 AM (in response to bjornbjorn)"bitl" wrote:
Start your file with:<?xml version="1.0"?> <ejb-jar version="3.0" xmlns="http://java.sun.com/xml/ns/j2ee">
I have concluded the solution reading this:
http://www.theserverside.com/discussions/thread.tss?thread_id=38282
At least it helped me to resolve your (and my) issue under jboss-4.0.4.GA.
I tried this one. But there is still an error.
org.jboss.deployment.DeploymentException: expected one enterprise-beans tag
at org.jboss.metadata.MetaData.getUniqueChild(MetaData.java:113)
.......
Does anyone solve this problem? -
5. Re: ejb-jar.xml must either obey the right xml schema or def
smajima Jun 2, 2006 9:37 AM (in response to bjornbjorn)I installed Jboss-4.0.4.GA-Patch1-Installer.jar.
And I checked by Jboss-Seam examples. They worked. -
6. Re: ejb-jar.xml must either obey the right xml schema or def
digua Jun 7, 2006 7:23 AM (in response to bjornbjorn)It's strange because I intalled the same software and I deployed same project, but I got the error message.
-
7. Re: ejb-jar.xml must either obey the right xml schema or def
nadiaismail Jun 9, 2006 7:16 AM (in response to bjornbjorn)I get the same problem too .. did anyone manage to solve it?
-
8. Re: ejb-jar.xml must either obey the right xml schema or def
nadiaismail Jun 9, 2006 8:10 AM (in response to bjornbjorn)I had the same problem, and I realised that I had install JBoss All, instead of JBoss EJBProfile. Its resolved now with no changed necessary to the seam examples...
-
9. Re: ejb-jar.xml must either obey the right xml schema or def
timaar Jun 15, 2006 3:19 AM (in response to bjornbjorn)Tried changing the ejb file:
<?xml version="1.0"?> <ejb-jar version="3.0" xmlns="http://java.sun.com/xml/ns/j2ee">
No succes it now gives:expected one enterprise-beans tag
I don't have a line break in between as suggested in:http://www.theserverside.com/discussions/thread.tss?thread_id=38282
I changed my jboss server with the patch version as provided in solution:Jboss-4.0.4.GA-Patch1-Installer.jar
http://sourceforge.net/project/showfiles.php?group_id=22866&package_id=16942
Anyone has other suggestion I really want to try this out but if the examples doesn't even work. I think that this is really a BETA! Not for testing yet...
:s -
10. Re: ejb-jar.xml must either obey the right xml schema or def
timaar Jun 15, 2006 4:35 AM (in response to bjornbjorn)A question that I have and that might cause this issue is that in the Seam tutorial (http://docs.jboss.com/seam/1.0.0.GA/reference/en/html/tutorial.html#d0e198).
It states:
...
Next, make sure you set the location of your Tomcat 5.5 installation in the build.properties file in the root folder of your Seam installation.
...
My question now is: Do you have to install Tomcat seperate? Because the JBoss uses tomcat (it is build in I guess).
If we want to use the built-in tomcat of JBoss AS to what directory should we point it? -
12. Re: ejb-jar.xml must either obey the right xml schema or def
vashistvishal Jul 15, 2006 9:58 AM (in response to bjornbjorn)Okiee,
I encountered this beast today as i was trying to get some hand on SEAM after i heard lots of good reviews. As mentioned in one of the posts here I 're-installed JBoss', using JEMS installer, using ption 'ejb3' on installer menu, previously i opted for option 'ALL'.
And when i deployed example of 'booking' from SEAM it deployed sucessfully.
Prior to this i had the above mentioned errors and i tried changing ejb-jar file as suggested above, but all those things didn't work.
So if you reinstall JBoss using ejb3 option than it will be fine, it is also metoined on JBoss app server download page specifically.
http://labs.jboss.com/portal/jbossas/download
I hope this helps, sometimes trying to become smart can bite you badly, as i encountered :)
Vishal -
13. Re: ejb-jar.xml must either obey the right xml schema or def
r.marinho.gomes Jul 25, 2006 8:21 AM (in response to bjornbjorn)Hey Galera!!!
Try this:
<?xml version="1.0" encoding="UTF-8"?>
<ejb-jar 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"
version="3.0">
...
--
Ricardo Marinho Gomes
r.marinho.gomes@gmail.com -
14. Re: ejb-jar.xml must either obey the right xml schema or def
klsateesh Jul 27, 2006 2:46 PM (in response to bjornbjorn)HI All,
I am getting the same error..
Insatlled JBoss-4.0.4GA and selected the ALL Option
and the SEAM Version i am using is jboss-seam-1.0.1.GA
When i don't use the below lines<?xml version="1.0"?> <ejb-jar version="3.0" xmlns="http://java.sun.com/xml/ns/j2ee">
i am getting the error8907jboss-seam-registration.ear-contents/jboss-seam-registration.jar org.jboss.deployment.DeploymentException: ejb-jar.xml must either obey the right xml schema or define a valid DOCTYPE! at org.jboss.metadata.ApplicationMetaData.importEjbJarXml(ApplicationMetaData.java:339) at org.jboss.metadata.XmlFileLoader.load(XmlFileLoader.java:166)
and when i use the above i am getting the Error8911jboss-seam-registration.ear-contents/jboss-seam-registration.jar org.jboss.deployment.DeploymentException: expected one enterprise-beans tag at org.jboss.metadata.MetaData.getUniqueChild(MetaData.java:113) at org.jboss.metadata.ApplicationMetaData.importEjbJarXml(ApplicationMetaData.java:371) at org.jboss.metadata.XmlFileLoader.load(XmlFileLoader.java:166) at org.jboss.ejb.EJBDeployer.create(EJBDeployer.java:541) 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:585) at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155) at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94) at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133) at org.jboss.mx.server.Invocation.invoke(Invocation.java:88) at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142) at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97) at org.jboss.system.InterceptorServiceMBeanSupport.invokeNext(InterceptorServiceMBeanSupport.java:238) at org.jboss.ws.server.WebServiceDeployer.create(WebServiceDeployer.java:99)
Has any one solved this one yet !!
Thanks
Sateesh