tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexander Buloichik" <Alexander_Buloic...@epam.com>
Subject RE: newbie questions
Date Wed, 12 Dec 2007 11:59:25 GMT
Hello, Jacek ! 

>> Another problem what OpenEJB doesn't understand ejb-jar.xml from EJB2.1. It's not
a great problem for me, but it can be problem for other peoples.

Sorry, I mean EJB2.0(I'm using WebLogic 8.1).

>Could you send the ejb-jar.xml in question?

Sorry, I can't send full ejb-jar.xml, but there is a part which can't be loaded:
=================================
        <message-driven>
            <ejb-name>MailSenderEJB</ejb-name>
            <ejb-class>pack.MailSenderBean</ejb-class>
            <transaction-type>Container</transaction-type>
            <acknowledge-mode>Auto-acknowledge</acknowledge-mode>
            <message-driven-destination>
                <destination-type>javax.jms.Queue</destination-type>
                <subscription-durability>Durable</subscription-durability>
            </message-driven-destination>
        </message-driven>
        
        <message-driven>
            <ejb-name>SearchJMS</ejb-name>
            <ejb-class>pack.SearchJMSBean</ejb-class>
            <transaction-type>Container</transaction-type>
            <acknowledge-mode>Auto-acknowledge</acknowledge-mode>
            <message-driven-destination>
                <destination-type>javax.jms.Topic</destination-type>
                <subscription-durability>NonDurable</subscription-durability>
            </message-driven-destination>
        </message-driven>
=================================
It's not valid by http://java.sun.com/xml/ns/javaee/ejb-jar_3_0.xsd of course, but it's valid
by http://java.sun.com/dtd/ejb-jar_2_0.dtd


>> javax.xml.bind.UnmarshalException
>>  - with linked exception:
>> [com.sun.org.apache.xerces.internal.impl.io.MalformedByteSequenceExcep
>> tion: Invalid byte 1 of 1-byte UTF-8 sequence.]

>Never seen it before. Is it on Java 5? Describe your build environment so we could hunt
it down.

My system is Windows XP with java 1.6_03. I found problem. My system locale is be_BY. So,
my ejb-jar-example1.xml contains line:
=====================
<!-- $Rev: 600204 $ $Date: 2007-12-02 00:35:03 +0200 (??, 02 ??? 2007) $ -->
=====================
But in JeeTest.java we read this UTF-8 file by unspecified charset in the method readContent.


WBR, Alex.

Mime
View raw message