Hi Jonathan I am using Eclipse Galileo build 20090621-0832 I've just downloaded OpenEJB 3.1.1 and extract it without any modification
Today I tried to change the JDK from 1.5.09 to 1.6 and it worked! and then I found out the JDK was set as Java home for Eclipse so I change it back to 1.5 but with JRE home and now it works I am really sorry because I think it was my mistake I should understand it earlier than this Thank you so much Jonathan for your effort on this. Jonathan Gallimore-2 wrote: > > Thanks for the log. I've been having a look but I can't reproduce the > error > here. What version of Eclipse are you using (I'm using 3.5 Galileo at the > moment)? > > Is your copy of OpenEJB modified at all - are you using different > libraries > or a different config file, or is it an unmodified 3.1.1? > > Thanks for your patience with this, hopefully we'll get to the bottom of > it. > > Jon > > On Mon, Nov 16, 2009 at 6:00 AM, is_maximum <[email protected]> wrote: > >> >> Hi Jonathan >> I can start it up from command line and I was able to deploy my >> application >> externally as well but in Eclipse it doesn't work >> >> here is the log of OpenEJB >> http://old.nabble.com/file/p26367255/openejb.log openejb.log >> >> Thanks >> >> >> Jonathan Gallimore-2 wrote: >> > >> > It should definitely work without having an application deployed. Does >> it >> > start ok if you start it manually from the command line? Looks like >> you're >> > using OpenEJB 3.1.1 - I have 3.1.2 here, but I'll try it with the same >> > version that you have. >> > >> > From your stack trace, it looks like something is trying to be deployed >> - >> > possibly something built in if you have nothing deployed. I'll have a >> dig >> > around the stack trace you supplied. Do you have an openejb.log file in >> > the >> > $OPENEJB_HOME/logs folder you can post? >> > >> > Jon >> > >> > On Sun, Nov 15, 2009 at 5:32 PM, is_maximum <[email protected]> wrote: >> > >> >> >> >> I'll try to start it with a basic ejb module but I was expected the >> >> server >> >> can start up with no application >> >> >> >> >> >> Jonathan Gallimore-2 wrote: >> >> > >> >> > Hi Mohammad, >> >> > >> >> > I'm not sure what's going on here - if you export your EJB module to >> an >> >> > EJB >> >> > JAR in Eclipse, and drop it in the apps folder of your OpenEJB >> >> standalone >> >> > server does it start ok? >> >> > >> >> > Are you able to setup a basic project that reproduces the problem >> that >> >> I >> >> > might be able to have a look at? >> >> > >> >> > Jon >> >> > >> >> > On Sat, Nov 14, 2009 at 6:08 AM, is_maximum <[email protected]> >> wrote: >> >> > >> >> >> >> >> >> Hi David, >> >> >> I still get this error! I set the JDK in eclipse.ini but it didn't >> >> work. >> >> >> the >> >> >> class javax.ejb.EJBHome is in a jar file named javaee5 or something >> >> like >> >> >> that in "lib" directory of OpenEJB but it seems this plugin can't >> load >> >> >> it! >> >> >> >> >> >> >> >> >> >> >> >> is_maximum wrote: >> >> >> > >> >> >> > Yes it's Sun's JDK version 1.5.09 >> >> >> > >> >> >> > >> >> >> > David Blevins wrote: >> >> >> >> >> >> >> >> Do you know if that is the Sun or IBM (or some other) JDK? >> >> >> >> >> >> >> >> -David >> >> >> >> >> >> >> >> On Nov 12, 2009, at 10:54 AM, is_maximum wrote: >> >> >> >> >> >> >> >>> >> >> >> >>> Well it's JDK 1.5.09 >> >> >> >>> >> >> >> >>> I'm not sure but I think this is because in Eclipse the jre has >> >> been >> >> >> >>> set and >> >> >> >>> I have to change to use JDK. >> >> >> >>> Now I'm at home and tomorrow I will test it >> >> >> >>> >> >> >> >>> >> >> >> >>> >> >> >> >>> >> >> >> >>> David Blevins wrote: >> >> >> >>>> >> >> >> >>>> That's very strange. Can you post your java vendor and >> version? >> >> >> >>>> >> >> >> >>>> -David >> >> >> >>>> >> >> >> >>>> On Nov 12, 2009, at 4:40 AM, is_maximum wrote: >> >> >> >>>> >> >> >> >>>>> >> >> >> >>>>> Hi >> >> >> >>>>> I get following error when starting the server : >> >> >> >>>>> >> >> >> >>>>> Apache OpenEJB 3.1.1 build: 20090530-06:18 >> >> >> >>>>> http://openejb.apache.org/ >> >> >> >>>>> org.apache.openejb.OpenEJBException: >> >> >> >>>>> java.lang.TypeNotPresentException: Type >> >> >> >>>>> [unknown] not present: Type [unknown] not present >> >> >> >>>>> at >> >> >> >>>>> >> >> >> >> org.apache.openejb.assembler.classic.Assembler.build(Assembler.java: >> >> >> >>>>> 285) >> >> >> >>>>> at >> >> org.apache.openejb.OpenEJB$Instance.<init>(OpenEJB.java:137) >> >> >> >>>>> at org.apache.openejb.OpenEJB.init(OpenEJB.java:286) >> >> >> >>>>> at org.apache.openejb.server.Server.init(Server.java:63) >> >> >> >>>>> at org.apache.openejb.server.Main.initServer(Main.java:155) >> >> >> >>>>> at org.apache.openejb.server.Main.main(Main.java:128) >> >> >> >>>>> 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:585) >> >> >> >>>>> at org.apache.openejb.cli.MainImpl.main(MainImpl.java:152) >> >> >> >>>>> at >> org.apache.openejb.cli.Bootstrap.main(Bootstrap.java:103) >> >> >> >>>>> Caused by: java.lang.TypeNotPresentException: Type [unknown] >> not >> >> >> >>>>> present >> >> >> >>>>> at >> >> >> >>>>> sun >> >> >> >>>>> .reflect >> >> >> >>>>> .annotation >> >> >> >>>>> .TypeNotPresentExceptionProxy >> >> >> >>>>> .generateException(TypeNotPresentExceptionProxy.java:27) >> >> >> >>>>> at >> >> >> >>>>> sun >> >> >> >>>>> .reflect >> >> >> >>>>> .annotation >> >> >> >>>>> .AnnotationInvocationHandler >> >> >> >>>>> .invoke(AnnotationInvocationHandler.java: >> >> >> >>>>> 56) >> >> >> >>>>> at $Proxy49.value(Unknown Source) >> >> >> >>>>> at >> >> >> >>>>> org.apache.openejb.config.AnnotationDeployer >> >> >> >>>>> $ProcessAnnotatedBeans.deploy(AnnotationDeployer.java:1147) >> >> >> >>>>> at >> >> >> >>>>> org.apache.openejb.config.AnnotationDeployer >> >> >> >>>>> $ProcessAnnotatedBeans.deploy(AnnotationDeployer.java:616) >> >> >> >>>>> at >> >> >> >>>>> org >> >> >> >>>>> .apache >> >> >> >>>>> >> >> .openejb.config.AnnotationDeployer.deploy(AnnotationDeployer.java: >> >> >> >>>>> 186) >> >> >> >>>>> at >> >> >> >>>>> org.apache.openejb.config.ConfigurationFactory >> >> >> >>>>> $Chain.deploy(ConfigurationFactory.java:247) >> >> >> >>>>> at >> >> >> >>>>> org >> >> >> >>>>> .apache >> >> >> >>>>> .openejb >> >> >> >>>>> .config >> >> >> >>>>> .ConfigurationFactory >> >> >> >>>>> .configureApplication(ConfigurationFactory.java: >> >> >> >>>>> 601) >> >> >> >>>>> at >> >> >> >>>>> org >> >> >> >>>>> .apache >> >> >> >>>>> .openejb >> >> >> >>>>> .config >> >> >> >>>>> .ConfigurationFactory >> >> >> >>>>> .configureApplication(ConfigurationFactory.java: >> >> >> >>>>> 551) >> >> >> >>>>> at >> >> >> >>>>> org >> >> >> >>>>> .apache >> >> >> >>>>> .openejb >> >> >> >>>>> .config >> >> >> >>>>> .ConfigurationFactory >> >> >> >>>>> .getOpenEjbConfiguration(ConfigurationFactory.java:380) >> >> >> >>>>> at >> >> >> >>>>> org >> >> >> >>>>> .apache >> >> >> >>>>> .openejb >> >> >> >>>>> >> >> >> >> .assembler.classic.Assembler.getOpenEjbConfiguration(Assembler.java: >> >> >> >>>>> 292) >> >> >> >>>>> at >> >> >> >>>>> >> >> >> >> org.apache.openejb.assembler.classic.Assembler.build(Assembler.java: >> >> >> >>>>> 271) >> >> >> >>>>> ... 11 more >> >> >> >>>>> Caused by: java.lang.NoClassDefFoundError: javax/ejb/EJBHome >> >> >> >>>>> at java.lang.ClassLoader.defineClass1(Native Method) >> >> >> >>>>> at java.lang.ClassLoader.defineClass(ClassLoader.java:620) >> >> >> >>>>> at >> >> >> >>>>> >> >> java.security.SecureClassLoader.defineClass(SecureClassLoader.java: >> >> >> >>>>> 124) >> >> >> >>>>> at >> >> java.net.URLClassLoader.defineClass(URLClassLoader.java:260) >> >> >> >>>>> at >> java.net.URLClassLoader.access$100(URLClassLoader.java:56) >> >> >> >>>>> at java.net.URLClassLoader$1.run(URLClassLoader.java:195) >> >> >> >>>>> at java.security.AccessController.doPrivileged(Native >> Method) >> >> >> >>>>> at >> java.net.URLClassLoader.findClass(URLClassLoader.java:188) >> >> >> >>>>> at java.lang.ClassLoader.loadClass(ClassLoader.java:306) >> >> >> >>>>> at java.lang.ClassLoader.loadClass(ClassLoader.java:299) >> >> >> >>>>> at >> >> sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268) >> >> >> >>>>> at java.lang.ClassLoader.loadClass(ClassLoader.java:251) >> >> >> >>>>> at >> >> java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) >> >> >> >>>>> at java.lang.Class.forName0(Native Method) >> >> >> >>>>> at java.lang.Class.forName(Class.java:242) >> >> >> >>>>> at >> >> >> >>>>> org >> >> >> >>>>> >> >> >> >> .apache.openejb.core.TempClassLoader.loadClass(TempClassLoader.java: >> >> >> >>>>> 91) >> >> >> >>>>> at >> >> >> >>>>> org >> >> >> >>>>> >> >> >> >> .apache.openejb.core.TempClassLoader.loadClass(TempClassLoader.java: >> >> >> >>>>> 66) >> >> >> >>>>> at >> >> java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) >> >> >> >>>>> at java.lang.Class.forName0(Native Method) >> >> >> >>>>> at java.lang.Class.forName(Class.java:242) >> >> >> >>>>> at >> >> >> >>>>> sun >> >> >> >>>>> .reflect >> >> >> >>>>> .generics >> >> >> >>>>> .factory >> >> >> >>>>> >> >> .CoreReflectionFactory.makeNamedType(CoreReflectionFactory.java:95) >> >> >> >>>>> at >> >> >> >>>>> sun >> >> >> >>>>> .reflect >> >> >> >>>>> >> >> .generics.visitor.Reifier.visitClassTypeSignature(Reifier.java:107) >> >> >> >>>>> at >> >> >> >>>>> sun >> >> >> >>>>> .reflect >> >> >> >>>>> >> >> >> >> .generics.tree.ClassTypeSignature.accept(ClassTypeSignature.java:31) >> >> >> >>>>> at >> >> >> >>>>> sun >> >> >> >>>>> >> >> >> >> .reflect.annotation.AnnotationParser.parseSig(AnnotationParser.java: >> >> >> >>>>> 370) >> >> >> >>>>> at >> >> >> >>>>> sun >> >> >> >>>>> .reflect >> >> >> >>>>> >> >> .annotation.AnnotationParser.parseClassValue(AnnotationParser.java: >> >> >> >>>>> 351) >> >> >> >>>>> at >> >> >> >>>>> sun >> >> >> >>>>> .reflect >> >> >> >>>>> >> >> >> >> .annotation.AnnotationParser.parseMemberValue(AnnotationParser.java: >> >> >> >>>>> 280) >> >> >> >>>>> at >> >> >> >>>>> sun >> >> >> >>>>> .reflect >> >> >> >>>>> >> >> .annotation.AnnotationParser.parseAnnotation(AnnotationParser.java: >> >> >> >>>>> 222) >> >> >> >>>>> at >> >> >> >>>>> sun >> >> >> >>>>> .reflect >> >> >> >>>>> .annotation >> >> >> >>>>> .AnnotationParser.parseAnnotations2(AnnotationParser.java: >> >> >> >>>>> 69) >> >> >> >>>>> at >> >> >> >>>>> sun >> >> >> >>>>> .reflect >> >> >> >>>>> >> >> >> >> .annotation.AnnotationParser.parseAnnotations(AnnotationParser.java: >> >> >> >>>>> 52) >> >> >> >>>>> at >> java.lang.Class.initAnnotationsIfNecessary(Class.java:3031) >> >> >> >>>>> at java.lang.Class.getAnnotation(Class.java:2989) >> >> >> >>>>> at java.lang.Class.isAnnotationPresent(Class.java:3001) >> >> >> >>>>> at >> >> >> >>>>> org >> >> >> >>>>> .apache >> >> >> >>>>> >> >> >> >> .xbean.finder.ClassFinder.findAnnotatedClasses(ClassFinder.java:241) >> >> >> >>>>> at >> >> >> >>>>> org.apache.openejb.config.AnnotationDeployer >> >> >> >>>>> $DiscoverAnnotatedBeans.deploy(AnnotationDeployer.java:441) >> >> >> >>>>> at >> >> >> >>>>> org.apache.openejb.config.AnnotationDeployer >> >> >> >>>>> $DiscoverAnnotatedBeans.deploy(AnnotationDeployer.java:249) >> >> >> >>>>> at >> >> >> >>>>> org >> >> >> >>>>> .apache >> >> >> >>>>> >> >> .openejb.config.AnnotationDeployer.deploy(AnnotationDeployer.java: >> >> >> >>>>> 184) >> >> >> >>>>> ... 17 more >> >> >> >>>>> >> >> >> >>>>> >> >> >> >>>>> what is the problem? I've set the openEjb home directory and >> >> >> >>>>> everything >> >> >> >>>>> seems ok >> >> >> >>>>> >> >> >> >>>>> ----- >> >> >> >>>>> -- >> >> >> >>>>> Regards >> >> >> >>>>> >> >> >> >>>>> Mohammad Norouzi >> >> >> >>>>> >> >> >> >>>>> Help each other to reach the future faster >> >> >> >>>>> >> >> >> >>>>> http://pixelshot.wordpress.com Pixelshot Photoblog >> >> >> >>>>> >> >> >> >>>>> http://brainable.blogspot.com Brainable Blog >> >> >> >>>>> >> >> >> >>>>> >> >> >> >>>>> -- >> >> >> >>>>> View this message in context: >> >> >> >>>>> >> >> >> >> >> >> http://old.nabble.com/exception-in-OpenEJB-eclipse-plugin-tp26317952p26317952.html >> >> >> >>>>> Sent from the OpenEJB User mailing list archive at >> Nabble.com. >> >> >> >>>>> >> >> >> >>>>> >> >> >> >>>> >> >> >> >>>> >> >> >> >>>> >> >> >> >>> >> >> >> >>> >> >> >> >>> ----- >> >> >> >>> -- >> >> >> >>> Regards >> >> >> >>> >> >> >> >>> Mohammad Norouzi >> >> >> >>> >> >> >> >>> Help each other to reach the future faster >> >> >> >>> >> >> >> >>> http://pixelshot.wordpress.com Pixelshot Photoblog >> >> >> >>> >> >> >> >>> http://brainable.blogspot.com Brainable Blog >> >> >> >>> >> >> >> >>> >> >> >> >>> -- >> >> >> >>> View this message in context: >> >> >> >>> >> >> >> >> >> >> http://old.nabble.com/exception-in-OpenEJB-eclipse-plugin-tp26317952p26324346.html >> >> >> >>> Sent from the OpenEJB User mailing list archive at Nabble.com. >> >> >> >>> >> >> >> >>> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> > >> >> >> > >> >> >> >> >> >> >> >> >> ----- >> >> >> -- >> >> >> Regards >> >> >> >> >> >> Mohammad Norouzi >> >> >> >> >> >> Help each other to reach the future faster >> >> >> >> >> >> http://pixelshot.wordpress.com Pixelshot Photoblog >> >> >> >> >> >> http://brainable.blogspot.com Brainable Blog >> >> >> >> >> >> >> >> >> -- >> >> >> View this message in context: >> >> >> >> >> >> http://old.nabble.com/exception-in-OpenEJB-eclipse-plugin-tp26317952p26347496.html >> >> >> Sent from the OpenEJB User mailing list archive at Nabble.com. >> >> >> >> >> >> >> >> > >> >> > >> >> >> >> >> >> ----- >> >> -- >> >> Regards >> >> >> >> Mohammad Norouzi >> >> >> >> Help each other to reach the future faster >> >> >> >> http://pixelshot.wordpress.com Pixelshot Photoblog >> >> >> >> http://brainable.blogspot.com Brainable Blog >> >> >> >> >> >> -- >> >> View this message in context: >> >> >> http://old.nabble.com/exception-in-OpenEJB-eclipse-plugin-tp26317952p26361253.html >> >> Sent from the OpenEJB User mailing list archive at Nabble.com. >> >> >> >> >> > >> > >> >> >> ----- >> -- >> Regards >> >> Mohammad Norouzi >> >> Help each other to reach the future faster >> >> http://pixelshot.wordpress.com Pixelshot Photoblog >> >> http://brainable.blogspot.com Brainable Blog >> >> >> -- >> View this message in context: >> http://old.nabble.com/exception-in-OpenEJB-eclipse-plugin-tp26317952p26367255.html >> Sent from the OpenEJB User mailing list archive at Nabble.com. >> >> > > ----- -- Regards Mohammad Norouzi Help each other to reach the future faster http://pixelshot.wordpress.com Pixelshot Photoblog http://brainable.blogspot.com Brainable Blog -- View this message in context: http://old.nabble.com/exception-in-OpenEJB-eclipse-plugin-tp26317952p26402628.html Sent from the OpenEJB User mailing list archive at Nabble.com.
