On Thu, Mar 19, 2009 at 1:11 AM, David Blevins <[email protected]>wrote:
> FYI, some info from Vadim. > > Karan, I ran with a similar path as you > '~/work/openejb3/валпм/simple-stateless' and wound up with the same issue > that Vadim reports. I really don't know the first thing about running with > foreign character sets, so have no idea if I'm approach it wrong. I just > renamed my examples dir to 'валпм' and made no other changes to my system or > anything else. > > Is this a system/jvm configuration kind of thing? I just added support for the russian language in Ubuntu and did not have to do anything extra. So not sure why I am not getting the same error. I did not do any settings on the jvm. > > > Vadim, I'm not sure if this is significant but the path in your command > prompt (C:\Users\Vaio\Documents\Исследования\Java) looks different than the > path in your maven log output (C:\Users\Vaio\Documents\╚ёёыхфютрэш \Java). > No idea if that means anything. I also note that maven reports the use of > platform encoding "Cp1251", any idea if that is the right encoding? > > > -David > > > Begin forwarded message: > > Resent-From: <[email protected]> >> From: Вадим <[email protected]> >> Date: March 17, 2009 2:05:43 AM PDT >> To: "'David Blevins'" <[email protected]> >> Subject: RE: OpenEJB issue >> >> Here is some output from windows cmd console and surefire log file. It >> happens when I run the process from " >> C:\Users\Vaio\Documents\Исследования\Java\OpenEJB\openejb-examples-3.1\simple-stateless". >> If I do that from for example " >> C:\Users\Vaio\Documents\openejb-examples-3.1\simple-stateless" there is no >> problem! >> >> Output from windows cmd console: >> >> Microsoft Windows [Версия 6.0.6001] >> (C) Корпорация Майкрософт, 2006. Все права защищены. >> >> >> C:\Users\Vaio\Documents\Исследования\Java\OpenEJB\openejb-examples-3.1\simple-st >> ateless>mvn clean install >> [INFO] Scanning for projects... >> [INFO] >> ------------------------------------------------------------------------ >> [INFO] Building OpenEJB :: Examples :: Simple Stateless Pojo >> [INFO] task-segment: [clean, install] >> [INFO] >> ------------------------------------------------------------------------ >> [INFO] [clean:clean] >> [INFO] Deleting directory C:\Users\Vaio\Documents\╚ёёыхфютрэш >> \Java\OpenEJB\open >> ejb-examples-3.1\simple-stateless\target >> [INFO] [resources:resources] >> [WARNING] Using platform encoding (Cp1251 actually) to copy filtered >> resources, >> i.e. build is platform dependent! >> [INFO] Copying 1 resource >> [INFO] [compiler:compile] >> [INFO] Compiling 3 source files to C:\Users\Vaio\Documents\╚ёёыхфютрэш >> \Java\Ope >> nEJB\openejb-examples-3.1\simple-stateless\target\classes >> [INFO] [resources:testResources] >> [WARNING] Using platform encoding (Cp1251 actually) to copy filtered >> resources, >> i.e. build is platform dependent! >> [INFO] skip non existing resourceDirectory >> C:\Users\Vaio\Documents\╚ёёыхфютрэш \ >> Java\OpenEJB\openejb-examples-3.1\simple-stateless\src\test\resources >> [INFO] [compiler:testCompile] >> [INFO] Compiling 1 source file to C:\Users\Vaio\Documents\╚ёёыхфютрэш >> \Java\Open >> EJB\openejb-examples-3.1\simple-stateless\target\test-classes >> [INFO] [surefire:test] >> [INFO] Surefire report directory: C:\Users\Vaio\Documents\╚ёёыхфютрэш >> \Java\Open >> EJB\openejb-examples-3.1\simple-stateless\target\surefire-reports >> >> ------------------------------------------------------- >> T E S T S >> ------------------------------------------------------- >> Running org.superbiz.calculator.CalculatorTest >> Apache OpenEJB 3.1 build: 20081009-03:31 >> http://openejb.apache.org/ >> INFO - openejb.home = C:\Users\Vaio\Documents\╚ёёыхфютрэш >> \Java\OpenEJB\openejb- >> examples-3.1\simple-stateless >> INFO - openejb.base = C:\Users\Vaio\Documents\╚ёёыхфютрэш >> \Java\OpenEJB\openejb- >> examples-3.1\simple-stateless >> INFO - Configuring Service(id=Default Security Service, >> type=SecurityService, pr >> ovider-id=Default Security Service) >> INFO - Configuring Service(id=Default Transaction Manager, >> type=TransactionManag >> er, provider-id=Default Transaction Manager) >> INFO - Configuring enterprise application: classpath.ear >> INFO - Enterprise application "classpath.ear" loaded. >> INFO - Assembling app: classpath.ear >> INFO - Deployed Application(path=classpath.ear) >> Tests run: 2, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 0.638 sec >> <<< FA >> ILURE! >> >> Results : >> >> Tests in error: >> testCalculatorViaRemoteInterface(org.superbiz.calculator.CalculatorTest) >> testCalculatorViaLocalInterface(org.superbiz.calculator.CalculatorTest) >> >> Tests run: 2, Failures: 0, Errors: 2, Skipped: 0 >> >> [INFO] >> ------------------------------------------------------------------------ >> [ERROR] BUILD FAILURE >> [INFO] >> ------------------------------------------------------------------------ >> [INFO] There are test failures. >> >> Please refer to C:\Users\Vaio\Documents\╚ёёыхфютрэш >> \Java\OpenEJB\openejb-exampl >> es-3.1\simple-stateless\target\surefire-reports for the individual test >> results. >> >> [INFO] >> ------------------------------------------------------------------------ >> [INFO] For more information, run Maven with the -e switch >> [INFO] >> ------------------------------------------------------------------------ >> [INFO] Total time: 12 seconds >> [INFO] Finished at: Tue Mar 17 11:59:22 MSK 2009 >> [INFO] Final Memory: 13M/29M >> [INFO] >> ------------------------------------------------------------------------ >> >> C:\Users\Vaio\Documents\Исследования\Java\OpenEJB\openejb-examples-3.1\simple-st >> ateless> >> >> >> Surefire log: >> >> ------------------------------------------------------------------------------- >> Test set: org.superbiz.calculator.CalculatorTest >> >> ------------------------------------------------------------------------------- >> Tests run: 2, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 0.633 sec >> <<< FAILURE! >> testCalculatorViaRemoteInterface(org.superbiz.calculator.CalculatorTest) >> Time elapsed: 0.56 sec <<< ERROR! >> javax.naming.NameNotFoundException: Name "CalculatorImplRemote" 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 >> org.apache.openejb.core.ivm.naming.ContextWrapper.lookup(ContextWrapper.java:115) >> at javax.naming.InitialContext.lookup(InitialContext.java:392) >> at >> org.superbiz.calculator.CalculatorTest.testCalculatorViaRemoteInterface(CalculatorTest.java:47) >> 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:164) >> at junit.framework.TestCase.runBare(TestCase.java:130) >> 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:120) >> at junit.framework.TestSuite.runTest(TestSuite.java:228) >> at junit.framework.TestSuite.run(TestSuite.java:223) >> at >> org.junit.internal.runners.OldTestClassRunner.run(OldTestClassRunner.java:35) >> 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:345) >> at >> org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009) >> >> testCalculatorViaLocalInterface(org.superbiz.calculator.CalculatorTest) >> Time elapsed: 0.021 sec <<< ERROR! >> javax.naming.NameNotFoundException: Name "CalculatorImplLocal" 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 >> org.apache.openejb.core.ivm.naming.ContextWrapper.lookup(ContextWrapper.java:115) >> at javax.naming.InitialContext.lookup(InitialContext.java:392) >> at >> org.superbiz.calculator.CalculatorTest.testCalculatorViaLocalInterface(CalculatorTest.java:64) >> 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:164) >> at junit.framework.TestCase.runBare(TestCase.java:130) >> 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:120) >> at junit.framework.TestSuite.runTest(TestSuite.java:228) >> at junit.framework.TestSuite.run(TestSuite.java:223) >> at >> org.junit.internal.runners.OldTestClassRunner.run(OldTestClassRunner.java:35) >> 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:345) >> at >> org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009) >> >> >> >> >> >> >> >> -----Original Message----- >> From: David Blevins [mailto:[email protected]] >> Sent: Tuesday, March 17, 2009 6:00 AM >> To: [email protected] >> Cc: Вадим >> Subject: Re: OpenEJB issue >> >> Vadim, >> >> In your email you mention 'META_INF/ejb-jar.xml'. Not sure if that >> was a typo, but definitely make sure to use 'META-INF' as opposed to >> 'META_INF'. I don't think we check for that mistake, but we certainly >> could add that. >> >> -David >> >> On Mar 16, 2009, at 7:49 PM, Karan Malhi wrote: >> >> Here is the output with russian characters in directory name: >>> >>> ka...@jee:~/temp/i18n/валпм/simple-stateless$ mvn clean install >>> [INFO] Scanning for projects... >>> [INFO] >>> ------------------------------------------------------------------------ >>> [INFO] Building OpenEJB :: Examples :: Simple Stateless Pojo >>> [INFO] task-segment: [clean, install] >>> [INFO] >>> ------------------------------------------------------------------------ >>> [INFO] [clean:clean] >>> [INFO] Deleting directory >>> /home/karan/temp/i18n/валпм/simple-stateless/target >>> [INFO] [resources:resources] >>> [INFO] Using default encoding to copy filtered resources. >>> [INFO] [compiler:compile] >>> [INFO] Compiling 3 source files to >>> /home/karan/temp/i18n/валпм/simple-stateless/target/classes >>> [INFO] [resources:testResources] >>> [INFO] Using default encoding to copy filtered resources. >>> [INFO] [compiler:testCompile] >>> [INFO] Compiling 1 source file to >>> /home/karan/temp/i18n/валпм/simple-stateless/target/test-classes >>> [INFO] [surefire:test] >>> [INFO] Surefire report directory: >>> /home/karan/temp/i18n/валпм/simple-stateless/target/surefire- >>> reports >>> >>> ------------------------------------------------------- >>> T E S T S >>> ------------------------------------------------------- >>> Running org.superbiz.calculator.CalculatorTest >>> Apache OpenEJB 3.1.1-SNAPSHOT build: 20090309-10:29 >>> http://openejb.apache.org/ >>> INFO - openejb.home = /home/karan/temp/i18n/валпм/simple- >>> stateless >>> INFO - openejb.base = /home/karan/temp/i18n/валпм/simple- >>> stateless >>> INFO - Configuring Service(id=Default Security Service, >>> type=SecurityService, provider-id=Default Security Service) >>> INFO - Configuring Service(id=Default Transaction Manager, >>> type=TransactionManager, provider-id=Default Transaction Manager) >>> INFO - Found EjbModule in classpath: >>> /home/karan/temp/i18n/валпм/simple-stateless/target/classes >>> INFO - Beginning load: >>> /home/karan/temp/i18n/валпм/simple-stateless/target/classes >>> INFO - Configuring enterprise application: classpath.ear >>> INFO - Configuring Service(id=Default Stateless Container, >>> type=Container, >>> provider-id=Default Stateless Container) >>> INFO - Auto-creating a container for bean CalculatorImpl: >>> Container(type=STATELESS, id=Default Stateless Container) >>> INFO - Enterprise application "classpath.ear" loaded. >>> INFO - Assembling app: classpath.ear >>> INFO - Jndi(name=CalculatorImplLocal) --> Ejb(deployment- >>> id=CalculatorImpl) >>> INFO - Jndi(name=CalculatorImplRemote) --> Ejb(deployment- >>> id=CalculatorImpl) >>> INFO - Created Ejb(deployment-id=CalculatorImpl, ejb- >>> name=CalculatorImpl, >>> container=Default Stateless Container) >>> INFO - Deployed Application(path=classpath.ear) >>> Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: >>> 1.589 sec >>> >>> Results : >>> >>> Tests run: 2, Failures: 0, Errors: 0, Skipped: 0 >>> >>> [INFO] [jar:jar] >>> [INFO] Building jar: >>> /home/karan/temp/i18n/валпм/simple-stateless/target/simple- >>> stateless-1.1-SNAPSHOT.jar >>> [INFO] [install:install] >>> [INFO] Installing >>> /home/karan/temp/i18n/валпм/simple-stateless/target/simple- >>> stateless-1.1-SNAPSHOT.jar >>> to >>> /home/karan/.m2/repository/org/superbiz/simple-stateless/1.1- >>> SNAPSHOT/simple-stateless-1.1-SNAPSHOT.jar >>> [INFO] >>> ------------------------------------------------------------------------ >>> [INFO] BUILD SUCCESSFUL >>> [INFO] >>> ------------------------------------------------------------------------ >>> [INFO] Total time: 7 seconds >>> [INFO] Finished at: Mon Mar 16 21:57:58 GMT-05:00 2009 >>> [INFO] Final Memory: 25M/654M >>> [INFO] >>> ------------------------------------------------------------------------ >>> >>> >>> On Mon, Mar 16, 2009 at 10:45 PM, David Blevins <[email protected] >>> >>>> wrote: >>>> >>> >>> Hi Vadim, >>>> >>>> We're having trouble replicating the issue [see below]. Pulling >>>> you into >>>> the thread in hopes we can figure out a way to reproduce it. >>>> >>>> -David >>>> >>>> >>>> On Mar 16, 2009, at 7:04 PM, Karan Malhi wrote: >>>> >>>> works fine for me. I am using Gurmukhi language. Below is my >>>> output , look >>>> >>>>> for the name of directory under ~/temp/i18n which contains the >>>>> simple-stateless example. Did i misunderstand the issue here? >>>>> ka...@jee:~/temp/i18n/ਐਠਰ/simple-stateless$ mvn clean install >>>>> [INFO] Scanning for projects... >>>>> [INFO] >>>>> >>>>> ------------------------------------------------------------------------ >>>>> [INFO] Building OpenEJB :: Examples :: Simple Stateless Pojo >>>>> [INFO] task-segment: [clean, install] >>>>> [INFO] >>>>> >>>>> ------------------------------------------------------------------------ >>>>> [INFO] [clean:clean] >>>>> [INFO] Deleting directory >>>>> /home/karan/temp/i18n/ਐਠਰ/simple-stateless/target >>>>> [INFO] [resources:resources] >>>>> [INFO] Using default encoding to copy filtered resources. >>>>> [INFO] [compiler:compile] >>>>> [INFO] Compiling 3 source files to >>>>> /home/karan/temp/i18n/ਐਠਰ/simple-stateless/target/classes >>>>> [INFO] [resources:testResources] >>>>> [INFO] Using default encoding to copy filtered resources. >>>>> [INFO] [compiler:testCompile] >>>>> [INFO] Compiling 1 source file to >>>>> /home/karan/temp/i18n/ਐਠਰ/simple-stateless/target/test-classes >>>>> [INFO] [surefire:test] >>>>> [INFO] Surefire report directory: >>>>> /home/karan/temp/i18n/ਐਠਰ/simple-stateless/target/surefire- >>>>> reports >>>>> >>>>> ------------------------------------------------------- >>>>> T E S T S >>>>> ------------------------------------------------------- >>>>> Running org.superbiz.calculator.CalculatorTest >>>>> Apache OpenEJB 3.1.1-SNAPSHOT build: 20090309-10:29 >>>>> http://openejb.apache.org/ >>>>> INFO - openejb.home = /home/karan/temp/i18n/ਐਠਰ/simple- >>>>> stateless >>>>> INFO - openejb.base = /home/karan/temp/i18n/ਐਠਰ/simple- >>>>> stateless >>>>> INFO - Configuring Service(id=Default Security Service, >>>>> type=SecurityService, provider-id=Default Security Service) >>>>> INFO - Configuring Service(id=Default Transaction Manager, >>>>> type=TransactionManager, provider-id=Default Transaction Manager) >>>>> INFO - Found EjbModule in classpath: >>>>> /home/karan/temp/i18n/ਐਠਰ/simple-stateless/target/classes >>>>> INFO - Beginning load: >>>>> /home/karan/temp/i18n/ਐਠਰ/simple-stateless/target/classes >>>>> INFO - Configuring enterprise application: classpath.ear >>>>> INFO - Configuring Service(id=Default Stateless Container, >>>>> type=Container, >>>>> provider-id=Default Stateless Container) >>>>> INFO - Auto-creating a container for bean CalculatorImpl: >>>>> Container(type=STATELESS, id=Default Stateless Container) >>>>> INFO - Enterprise application "classpath.ear" loaded. >>>>> INFO - Assembling app: classpath.ear >>>>> INFO - Jndi(name=CalculatorImplLocal) --> >>>>> Ejb(deployment-id=CalculatorImpl) >>>>> INFO - Jndi(name=CalculatorImplRemote) --> >>>>> Ejb(deployment-id=CalculatorImpl) >>>>> INFO - Created Ejb(deployment-id=CalculatorImpl, ejb- >>>>> name=CalculatorImpl, >>>>> container=Default Stateless Container) >>>>> INFO - Deployed Application(path=classpath.ear) >>>>> Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: >>>>> 1.659 sec >>>>> >>>>> Results : >>>>> >>>>> Tests run: 2, Failures: 0, Errors: 0, Skipped: 0 >>>>> >>>>> [INFO] [jar:jar] >>>>> [INFO] Building jar: >>>>> >>>>> /home/karan/temp/i18n/ਐਠਰ/simple-stateless/target/simple- >>>>> stateless-1.1-SNAPSHOT.jar >>>>> [INFO] [install:install] >>>>> [INFO] Installing >>>>> >>>>> /home/karan/temp/i18n/ਐਠਰ/simple-stateless/target/simple- >>>>> stateless-1.1-SNAPSHOT.jar >>>>> to >>>>> >>>>> /home/karan/.m2/repository/org/superbiz/simple-stateless/1.1- >>>>> SNAPSHOT/simple-stateless-1.1-SNAPSHOT.jar >>>>> [INFO] >>>>> >>>>> ------------------------------------------------------------------------ >>>>> [INFO] BUILD SUCCESSFUL >>>>> [INFO] >>>>> >>>>> ------------------------------------------------------------------------ >>>>> [INFO] Total time: 7 seconds >>>>> [INFO] Finished at: Mon Mar 16 21:10:44 GMT-05:00 2009 >>>>> [INFO] Final Memory: 25M/658M >>>>> [INFO] >>>>> >>>>> ------------------------------------------------------------------------ >>>>> >>>>> >>>>> On Mon, Mar 16, 2009 at 8:02 PM, David Blevins <[email protected] >>>>> >>>>>> wrote: >>>>>> >>>>> >>>>> Had someone write me offline about non-ascii paths. Anyone have >>>>> any idea >>>>> >>>>>> how to fix this? >>>>>> >>>>>> Would also be great to have a test case for it as well, though >>>>>> I'm not >>>>>> sure >>>>>> how we would go about that either. >>>>>> >>>>>> -David >>>>>> >>>>>> Begin forwarded message: >>>>>> >>>>>> Resent-From: <[email protected]> >>>>>> >>>>>> From: Вадим <xxx> >>>>>>> Date: March 14, 2009 1:59:52 PM PDT >>>>>>> To: <[email protected]> >>>>>>> Subject: OpenEJB issue >>>>>>> >>>>>>> Hi, David! >>>>>>> >>>>>>> My name is Vadim and I’m doing a little research for my >>>>>>> company. I’ve >>>>>>> downloaded OpenEJB right now and spent over 2 hours to start an >>>>>>> example >>>>>>> from >>>>>>> the examples archive! >>>>>>> Sorry if there is a procedure to report issues and I don’t >>>>>>> follow it, >>>>>>> but >>>>>>> I haven’t enough time to find it out. >>>>>>> The issue is that OpenEJB can’t see directories containing >>>>>>> ‘META_INF/ejb-jar.xml’ if the directory path contains non-ANSI >>>>>>> characters. >>>>>>> I’m using Windows Vista. For example, if I put the examples to >>>>>>> ‘C:/Documents/[My Name]’, where [My Name] contains Russian >>>>>>> characters, >>>>>>> the >>>>>>> examples won’t work! They will throw exception telling that no >>>>>>> EJB found >>>>>>> in >>>>>>> JNDI. Server log says that no EJBs were deployed. >>>>>>> I hope that this issue that produces a very bad impression about >>>>>>> the >>>>>>> product on the first-time user will be fixed. >>>>>>> WBR >>>>>>> >>>>>>> >>>>>>> >>>>>> >>>>>> >>>>> -- >>>>> Karan Singh Malhi >>>>> >>>>> >>>> >>>> >>> >>> -- >>> Karan Singh Malhi >>> >> >> >> > -- Karan Singh Malhi
