This is fixed now in Branch_3_2. In HEAD, validation of standardjboss.xml against jboss_3_2.dtd or jboss_4_0.dtd resulted in 73 errors. It is realy broken and needs review.
alex Sunday, July 13, 2003, 1:09:20 PM, Jan Bartel wrote: JB> I have checked in the changes and testcases to Branch_3_2 to support JB> ejb-link changes. JB> I was unable to verify that the DTD changes validate for the test cases, JB> because if validation is enabled, then the standardjboss.xml file fails JB> validation (both on the 3_2_1-src release and Branch_3_2 head) with the JB> error: JB> 2003-07-13 18:32:53,843 ERROR [org.jboss.metadata.XmlFileLoader] JB> XmlFileLoader: File file:/usr/local/java/jboss/jboss-branch-3-2/ JB> build/output/jboss-3.2.2RC2/server/default/conf/standardjboss.xml JB> process error. Line: 697. Error message: The content of element JB> type "container-configuration" must match JB> "(container-name,call-logging?,invoker-proxy-binding-name?,sync-on-commit-only?,contai JB> ner-interceptors?,instance-pool?,instance-cache?,persistence-manager?,web-class-loader?,locking-policy?,container-cache-conf?,con JB> tainer-pool-conf?,commit-option?,optiond-refresh-rate?,security-domain?,cluster-config?,depends*)". JB> 2003-07-13 18:32:53,863 ERROR [org.jboss.metadata.XmlFileLoader] failed JB> to load standardjboss.xml. There could be a syntax error JB> . JB> org.jboss.deployment.DeploymentException: Invalid XML: JB> file=file:/usr/local/java/jboss/jboss-branch-3-2/build/output/jboss-3.2.2R JB> C2/server/default/conf/standardjboss.xml JB> at JB> org.jboss.metadata.XmlFileLoader.getDocument(XmlFileLoader.java:296) JB> at JB> org.jboss.metadata.XmlFileLoader.getDocument(XmlFileLoader.java:247) JB> at JB> org.jboss.metadata.XmlFileLoader.getDocumentFromURL(XmlFileLoader.java:219) JB> at org.jboss.metadata.XmlFileLoader.load(XmlFileLoader.java:156) JB> at org.jboss.ejb.EJBDeployer.create(EJBDeployer.java:433) JB> at org.jboss.deployment.MainDeployer.create(MainDeployer.java:774) JB> at org.jboss.deployment.MainDeployer.create(MainDeployer.java:766) JB> at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:629) JB> at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:603) JB> at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:587) JB> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) JB> at JB> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) JB> at JB> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) JB> at java.lang.reflect.Method.invoke(Method.java:324) JB> at JB> org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284) JB> at JB> org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549) JB> at JB> org.jboss.jmx.adaptor.rmi.RMIAdaptorImpl.invoke(RMIAdaptorImpl.java:278) JB> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) JB> at JB> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) JB> at JB> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) JB> at java.lang.reflect.Method.invoke(Method.java:324) JB> at JB> sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:261) JB> at sun.rmi.transport.Transport$1.run(Transport.java:148) JB> at java.security.AccessController.doPrivileged(Native Method) JB> at sun.rmi.transport.Transport.serviceCall(Transport.java:144) JB> at JB> sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460) JB> at JB> sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701) JB> at java.lang.Thread.run(Thread.java:536) JB> regards, JB> Jan >>> Ok, your access is restored. >> >> Thanks. >> >> Please make sure there are tests added to the >> >>> following unit tests to cover these changes: >>> >>> testsuite/src/main/org/jboss/test/naming/test/EjbLinkUnitTestCase.java >>> testsuite/src/main/org/jboss/test/web/servlets/ENCServlet.java >>> testsuite/src/main/org/jboss/test/web/test/ >>> WebIntegrationUnitTestCase.java >> >> OK, I will integrate my test cases into these. >> >> cheers, >> Jan >> >> >>> >>> xxxxxxxxxxxxxxxxxxxxxxxx >>> Scott Stark >>> Chief Technology Officer >>> JBoss Group, LLC >>> xxxxxxxxxxxxxxxxxxxxxxxx >>> >>> On Thursday, July 10, 2003, at 07:27 PM, Jan Bartel wrote: >>> >>>> I have made the changes as agreed: >>>> >>>> + both war deployer and ejb deployer to examine "ejb-link" first for >>>> both "ejb-ref" and "ejb-local-ref". >>>> >>>> + war deployer to have a switch "LenientEjbLink" allowing >>>> misconfigured ejb-links to be ignored for backward >>>> compatibility. This is set to "false" by default, meaning >>>> misconfigured ejb-links will cause a deployment error. >>>> >>>> + war deployer and ejb deployer to support a new element >>>> in jboss descriptors called "ejb-local-ref" which contains a >>>> "local-jndi-name" element, similar to the "ejb-ref" element. >>>> This "ejb-local-ref" in the jboss deployment descriptor is only >>>> consulted in the case that the "ejb-local-ref" in the standard >>>> descriptor does not contain an "ejb-link" element (or in the >>>> case of the war deployer, the "LenientEjbLink" flag has been set >>>> and the "ejb-link" contains a name that cannot be resolved). >>>> >>>> May I please have my cvs write access back so I can commit? >>>> >>>> thanks >>>> Jan >>>> >>>> Scott M Stark wrote: >>>> >>>>> Ok, then I agree with adding the ejb-local-ref support. ------------------------------------------------------- This SF.Net email sponsored by: Parasoft Error proof Web apps, automate testing & more. Download & eval WebKing and get a free book. www.parasoft.com/bulletproofapps1 _______________________________________________ JBoss-Development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
