Re: Where is Orion's copy of ejb-jar dtd?
I got it work :) The short hint: check that every method you invoke exists and your JSP syntax. The long story == 1. I started using Orion and built an application that simply sniffes the user name and roles using an EJB named SecuritySniffer. 2. On deployment, I got an error similar to that one: Error loading package at file:/C:/@web/ClassNotes/EjbJmsJndi/@StudentEjbApp/, Error parsing META-INF /ejb-jar.xml in C:\@web\ClassNotes\EjbJmsJndi\@StudentEjbApp: Fatal error at line 377: Character conversion error: "Unconvertible UTF-8 character beginning with 0x91" (line number may be too low). 3. After surfing a lot the mails about that same error, 4. I left Orion sleep for one week, 5. also renamed its directory 6. Today I tested my application again and finally got the correct error message: ...about the invocation - from a JSP - of an EJB method that did not exist. 7. After correcting the method invocation, everything went fine. It seems that Orion is very sensible to little errors, and it does not inform - or erroneously informs - about errors. Each time I have had a strange error ("...but everything should work ?!"), such as "The page cannot be displayed" or the one above, the real error was of syntactical nature, and in general in my JSP; ranging from malformed JSP, or bad imports, or non existing methods, etc. As a rule of thumb: If everything should work correctly and is correctly configured and it does not, have a look at your code, you probably made a too evident error (names confusion, tags not closed, etc.) Cheers
Re: Where is Orion's copy of ejb-jar dtd?
Unfortunately, i get exactely the same error with the sample example atm.ear . All of those aplications run fine with Sun's j2ee. And the support is not responding so i'll go for an other application server. rodolphe ?xml version="1.0"? !DOCTYPE ejb-jar PUBLIC '-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 1.1//EN' 'http://java.sun.com/j2ee/dtds/ejb-jar_1_1.dtd' ejb-jar display-nameHelloWorld Bean jar/display-name descriptionA simple HelloWorld/description this display-name and description tags are in the wrong place, see below the repeating tags. just remove it. enterprise-beans session display-nameHelloWorld/display-name descriptionA simple HelloWorld/description ejb-namecom.genesys.is.helloworld.ejb.HelloWorld/ejb-name homecom.genesys.is.helloworld.ejb.HelloWorldHome/home remotecom.genesys.is.helloworld.ejb.HelloWorld/remote ejb-classcom.genesys.is.helloworld.ejb.HelloWorldEJB/ejb-class session-typeStateless/session-type transaction-typeContainer/transaction-type /session /enterprise-beans -- Claudio Miranda SUN Certified Programmer for JAVA 2
Re: Where is Orion's copy of ejb-jar dtd?
Rodolphe Godreul wrote: ?xml version="1.0"? !DOCTYPE ejb-jar PUBLIC '-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 1.1//EN' 'http://java.sun.com/j2ee/dtds/ejb-jar_1_1.dtd' ejb-jar display-nameHelloWorld Bean jar/display-name descriptionA simple HelloWorld/description this display-name and description tags are in the wrong place, see below the repeating tags. just remove it. enterprise-beans session display-nameHelloWorld/display-name descriptionA simple HelloWorld/description ejb-namecom.genesys.is.helloworld.ejb.HelloWorld/ejb-name homecom.genesys.is.helloworld.ejb.HelloWorldHome/home remotecom.genesys.is.helloworld.ejb.HelloWorld/remote ejb-classcom.genesys.is.helloworld.ejb.HelloWorldEJB/ejb-class session-typeStateless/session-type transaction-typeContainer/transaction-type /session /enterprise-beans -- Claudio Miranda SUN Certified Programmer for JAVA 2 begin:vcard n:Miranda;Claudio x-mozilla-html:FALSE org:EverSystems;Research Developmet - Internet New Tech adr:;;;Sao Paulo;SP;;Brazil version:2.1 email;internet:[EMAIL PROTECTED] title:SUN Certified Programmer for JAVA 2 fn:Claudio Miranda end:vcard
Re: Where is Orion's copy of ejb-jar dtd?
Hi all ! I am just beginning to evaluate orion for our needs but i get stuck with the same error : Error loading package at file:[]/helloworld-ejb.jar, Error parsing META-INF/ejb-jar.xml in [...]/helloworld-ejb.jar: Fatal error at line 377: Character conversion error: "Unconvertible UTF-8 character beginning with 0x91" (line number may be too low). thanks for any help... rodolphe this is my ejb.jar.xml : - ?xml version="1.0"? !DOCTYPE ejb-jar PUBLIC '-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 1.1//EN' 'http://java.sun.com/j2ee/dtds/ejb-jar_1_1.dtd' ejb-jar display-nameHelloWorld Bean jar/display-name descriptionA simple HelloWorld/description enterprise-beans session display-nameHelloWorld/display-name descriptionA simple HelloWorld/description ejb-namecom.genesys.is.helloworld.ejb.HelloWorld/ejb-name homecom.genesys.is.helloworld.ejb.HelloWorldHome/home remotecom.genesys.is.helloworld.ejb.HelloWorld/remote ejb-classcom.genesys.is.helloworld.ejb.HelloWorldEJB/ejb-class session-typeStateless/session-type transaction-typeContainer/transaction-type /session /enterprise-beans assembly-descriptor /assembly-descriptor /ejb-jar - it's in orion.jar in the META-INF dir but it's just the official sun version as far as I know. your errors don't indicate that it's a dtd problem. the first looks like you use non-7bit-ascii characters and didn't declare the correct encoding in your xml (just a guess). robert At 08:00 07.11.00 , you wrote: The reason I ask is that I think it' screwed up. When I try to run an app with -validateXML turned on i get: Error loading package at file:/C:/@web/ClassNotes/EjbJmsJndi/@StudentEjbApp/, Error parsing META-INF /ejb-jar.xml in C:\@web\ClassNotes\EjbJmsJndi\@StudentEjbApp: Fatal error at line 377: Character conversion error: "Unconvertible UTF-8 character beginning with 0x91" (line number may be too low). When I run it again using the xerces parser I get: Error loading package at file:/C:/@web/ClassNotes/EjbJmsJndi/@StudentEjbApp/, Error parsing META-INF /ejb-jar.xml in C:\@web\ClassNotes\EjbJmsJndi\@StudentEjbApp: Fatal error at line 912 offset 1: A ') ' is required in the declaration of element type "role-source". Warning at line 1: Valid documents must have a !DOCTYPE declaration. Fatal error at line 1: Document root element is missing. Dave Ford Smart Soft - The Java Training Company http://www.SmartSoftTraining.com
Re: Where is Orion's copy of ejb-jar dtd?
At 18:15 07.11.00 , you wrote: the first looks like you use non-7bit-ascii characters and didn't declare the correct encoding in your xml (just a guess). I don't think that's it. Here is the dd: could it be that you have some kind of invisible control character in there? usually this results in weird failure modes. other than that i have no clue what it could be. robert ?xml version="1.0"? !DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 1.1//EN" "http://java.sun.com/j2ee/dtds/ejb-jar_1_1.dtd" ejb-jar enterprise-beans session ejb-nameejb/Math/ejb-name homemath.MathHome/home remotemath.Math/remote ejb-classmath.MathBean/ejb-class session-typeStateless/session-type transaction-typeContainer/transaction-type /session /enterprise-beans /ejb-jar Any ideas? I'm stumped! Dave Ford Smart Soft - The Java Training Company http://www.SmartSoftTraining.com (-) Robert Krüger (-) SIGNAL 7 Gesellschaft für Informationstechnologie mbH (-) Brüder-Knauß-Str. 79 - 64285 Darmstadt, (-) Tel: 06151 665401, Fax: 06151 665373 (-) [EMAIL PROTECTED], www.signal7.de
Re: Where is Orion's copy of ejb-jar dtd?
I've just moved a bit closer to a solution. I found in the docs that I can specify (as a command line argumnet "which" xml parser to use: java -Dxml.parser=xerces -jar orion.jar -validateXML or java -Dxml.parser=javax.xml -jar orion.jar -validateXML Upon using the xerces parser, I got a new error message: Error loading package at file:/C:/@web/ClassNotes/EjbJmsJndi/@StudentEjbApp/, Error parsing META-INF /ejb-jar.xml in C:\@web\ClassNotes\EjbJmsJndi\@StudentEjbApp: Fatal error at line 912 offset 1: A ') ' is required in the declaration of element type "role-source". Warning at line 1: Valid documents must have a !DOCTYPE declaration. Fatal error at line 1: Document root element is missing. I see the word "role-source", which is no where to be found in the ejb-jar 1.1 DTD but IS in the 2.0 DTD. Thus, it is validating against the 2.0 DTD in spite of the fact that my ejb-jar.xml contains a 1.1 DOCTYPE declaration at the top: !DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 1.1//EN" "http://java.sun.com/j2ee/dtds/ejb-jar_1_1.dtd" So my new question is, how do I tell Orion to use the 1.1 DTD instead of 2.0 DTD to validate my ejb-jar.xml? Since this is a new question, I'll post it under a different heading also. Dave Ford Smart Soft - The Java Training Company http://www.SmartSoftTraining.com
Re: Where is Orion's copy of ejb-jar dtd?
could it be that you have some kind of invisible control character in there? Thanks Rober. I don't think that's it though. I got the same error with the Orion provided "news" ejb. I think It's trying to validate against the 2.0 DTD. Dave Ford Smart Soft - The Java Training Company http://www.SmartSoftTraining.com
Where is Orion's copy of ejb-jar dtd?
The reason I ask is that I think it' screwed up. When I try to run an app with -validateXML turned on i get: Error loading package at file:/C:/@web/ClassNotes/EjbJmsJndi/@StudentEjbApp/, Error parsing META-INF /ejb-jar.xml in C:\@web\ClassNotes\EjbJmsJndi\@StudentEjbApp: Fatal error at line 377: Character conversion error: "Unconvertible UTF-8 character beginning with 0x91" (line number may be too low). When I run it again using the xerces parser I get: Error loading package at file:/C:/@web/ClassNotes/EjbJmsJndi/@StudentEjbApp/, Error parsing META-INF /ejb-jar.xml in C:\@web\ClassNotes\EjbJmsJndi\@StudentEjbApp: Fatal error at line 912 offset 1: A ') ' is required in the declaration of element type "role-source". Warning at line 1: Valid documents must have a !DOCTYPE declaration. Fatal error at line 1: Document root element is missing. Dave Ford Smart Soft - The Java Training Company http://www.SmartSoftTraining.com
Re: Where is Orion's copy of ejb-jar dtd?
it's in orion.jar in the META-INF dir but it's just the official sun version as far as I know. your errors don't indicate that it's a dtd problem. the first looks like you use non-7bit-ascii characters and didn't declare the correct encoding in your xml (just a guess). robert At 08:00 07.11.00 , you wrote: The reason I ask is that I think it' screwed up. When I try to run an app with -validateXML turned on i get: Error loading package at file:/C:/@web/ClassNotes/EjbJmsJndi/@StudentEjbApp/, Error parsing META-INF /ejb-jar.xml in C:\@web\ClassNotes\EjbJmsJndi\@StudentEjbApp: Fatal error at line 377: Character conversion error: "Unconvertible UTF-8 character beginning with 0x91" (line number may be too low). When I run it again using the xerces parser I get: Error loading package at file:/C:/@web/ClassNotes/EjbJmsJndi/@StudentEjbApp/, Error parsing META-INF /ejb-jar.xml in C:\@web\ClassNotes\EjbJmsJndi\@StudentEjbApp: Fatal error at line 912 offset 1: A ') ' is required in the declaration of element type "role-source". Warning at line 1: Valid documents must have a !DOCTYPE declaration. Fatal error at line 1: Document root element is missing. Dave Ford Smart Soft - The Java Training Company http://www.SmartSoftTraining.com (-) Robert Krüger (-) SIGNAL 7 Gesellschaft für Informationstechnologie mbH (-) Brüder-Knauß-Str. 79 - 64285 Darmstadt, (-) Tel: 06151 665401, Fax: 06151 665373 (-) [EMAIL PROTECTED], www.signal7.de
Re: Where is Orion's copy of ejb-jar dtd?
the first looks like you use non-7bit-ascii characters and didn't declare the correct encoding in your xml (just a guess). I don't think that's it. Here is the dd: ?xml version="1.0"? !DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 1.1//EN" "http://java.sun.com/j2ee/dtds/ejb-jar_1_1.dtd" ejb-jar enterprise-beans session ejb-nameejb/Math/ejb-name homemath.MathHome/home remotemath.Math/remote ejb-classmath.MathBean/ejb-class session-typeStateless/session-type transaction-typeContainer/transaction-type /session /enterprise-beans /ejb-jar Any ideas? I'm stumped! Dave Ford Smart Soft - The Java Training Company http://www.SmartSoftTraining.com