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 10:20:38 GMT
Hello, Jacek !

>> 1. Is there any detailed description for openejb.xml format ?

> I don't know about more user-friendly description than the schema itself [1]. What do
you need it for? Provided you do some advanced stuff you shouldn't need it yet.

> [1] https://svn.apache.org/repos/asf/openejb/trunk/openejb3/container/openejb-core/src/main/resources/schema/openejb.xsd

Thanks, it's better than nothing, but it's not enough. I want to define message container.
Where can I find parameters description, like InstanceLimit, etc. ? Or where can I find datasource
parameters description, like maximum allowed connections, etc. ? 

>> 2. OpenEJB 3.0 beta 1 works strange with JNDI:
>>
>>         IAddressLH addr=(IAddressLH)findContext.lookup("AddressEJBLocalHome");  //
works good
>>         findContext.bind("AddressEntity", addr);                                //
works good
>>         Object o=findContext.lookup("AddressEntity");                           //
doesn't works - javax.naming.NameNotFoundException: Name "AddressEntity" not found.
>>         at org.apache.openejb.core.ivm.naming.IvmContext.federate(IvmContext.java:172)
>>         at org.apache.openejb.core.ivm.naming.IvmContext.lookup(IvmContext.java:129)
>>         at javax.naming.InitialContext.lookup(InitialContext.java:392)

> I need to reproduce it. It might be a bug. I see you use EJB 2.1-style ejbs. Is that
really necessary? Why do you bind ejb objects to jndi?

Sure, it's necessary. I store some objects in JNDI. Also, I'm working with EJB2.1 since my
projects works with WebLogic 8.1.
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.

>> Running org.apache.openejb.jee.oejb3.OpenejbJarTest
>> Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.328 sec <<<
FAILURE!

>Is this trunk or a openejb3.0-beta-1 branch? Could you show us target/surefire-reports/org.apache.openejb.jee.oejb3.OpenejbJarTest.txt?

Yes, this is trunk(http://svn.apache.org/repos/asf/openejb/trunk/openejb3). 

I see container\openejb-jee\target\surefire-reports\org.apache.openejb.jee.oejb3.OpenejbJarTest.txt
:

=====================================
-------------------------------------------------------------------------------
Test set: org.apache.openejb.jee.oejb3.OpenejbJarTest
-------------------------------------------------------------------------------
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.313 sec <<< FAILURE!
testAll(org.apache.openejb.jee.oejb3.OpenejbJarTest)  Time elapsed: 0.281 sec  <<<
ERROR!
javax.xml.bind.UnmarshalException
 - with linked exception:
[com.sun.org.apache.xerces.internal.impl.io.MalformedByteSequenceException: Invalid byte 1
of 1-byte UTF-8 sequence.]
	at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:196)
	at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:167)
	at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmarshallerImpl.java:137)
	at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmarshallerImpl.java:184)
	at org.apache.openejb.jee.oejb3.OpenejbJarTest.testAll(OpenejbJarTest.java:49)
	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:597)
	at junit.framework.TestCase.runTest(TestCase.java:168)
	at junit.framework.TestCase.runBare(TestCase.java:134)
	at junit.framework.TestResult$1.protect(TestResult.java:110)
	at junit.framework.TestResult.runProtected(TestResult.java:128)
	at junit.framework.TestResult.run(TestResult.java:113)
	at junit.framework.TestCase.run(TestCase.java:124)
	at junit.framework.TestSuite.runTest(TestSuite.java:232)
	at junit.framework.TestSuite.run(TestSuite.java:227)
	at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:81)
	at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62)
	at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140)
	at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127)
	at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
	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:597)
	at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:334)
	at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:977)
Caused by: com.sun.org.apache.xerces.internal.impl.io.MalformedByteSequenceException: Invalid
byte 1 of 1-byte UTF-8 sequence.
	at com.sun.org.apache.xerces.internal.impl.io.UTF8Reader.invalidByte(UTF8Reader.java:674)
	at com.sun.org.apache.xerces.internal.impl.io.UTF8Reader.read(UTF8Reader.java:547)
	at com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.load(XMLEntityScanner.java:1742)
	at com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.scanData(XMLEntityScanner.java:1242)
	at com.sun.org.apache.xerces.internal.impl.XMLScanner.scanComment(XMLScanner.java:756)
	at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanComment(XMLDocumentFragmentScannerImpl.java:1034)
	at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.next(XMLDocumentScannerImpl.java:936)
	at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:645)
	at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:140)
	at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:508)
	at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:807)
	at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737)
	at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:107)
	at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1205)
	at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:522)
	at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:194)
	... 27 more

=====================================

>> Running org.apache.openejb.jee.JeeTest Tests run: 6, Failures: 0, 
>> Errors: 1, Skipped: 0, Time elapsed: 0.765 sec <<< FAILURE!
>> Running org.apache.openejb.jee.jpa.PersistenceXmlTest
>> Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.016 sec <<<
FAILURE!

>I need the corresponding txt files too. You may also disable running the tests at openejb3
build with -Dmaven.test.skip as follows:

The same error in the other failed tests.

>  mvn -Dmaven.test.skip clean install

>Don't forget to run the build with -Dassemble.

I forgot it before, thank you. But I have the same result with -Dassemble now.

>BTW, What documentation do you follow to build openejb? What documentation is not provided?
What do you miss as far as the documentation's concerned?

I used http://openejb.apache.org/source-code.html for build openejb from sources. I get sources
from http://svn.apache.org/repos/asf/openejb/trunk/openejb3, then run "mvn clean install -Dassemble"


WBR, Alex.

Mime
View raw message