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. > >
