buyaosowd 2014年01月23日
hello world with hibernate
我是看的书java peristence with hibernate里面的例子HelloWorld with ejb3
http://pan.baidu.com/s/1hqr8wAg
项目在这里报错:
我估计是没什么ejb容器 但是书上说什么这是个内嵌的ejb3容器 怎么跑不起来



15:56:24,093 ERROR AbstractKernelController:440 - Error installing to Configured: name=helloWorldDatasourceFactory state=Instantiated
java.lang.IllegalArgumentException: Null value metadata
at org.jboss.kernel.plugins.config.Configurator.getPropertySetterJoinPoint(Configurator.java:496)
at org.jboss.kernel.plugins.config.Configurator.getPropertySetterJoinPoint(Configurator.java:443)
at org.jboss.kernel.plugins.config.Configurator.getPropertySetterJoinPoints(Configurator.java:407)
at org.jboss.kernel.plugins.config.AbstractKernelConfigurator.getPropertySetterJoinPoints(AbstractKernelConfigurator.java:120)
at org.jboss.kernel.plugins.dependency.ConfigureAction.installAction(ConfigureAction.java:52)
at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.install(KernelControllerContextAction.java:100)
at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:226)
at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:709)
at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:429)
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:538)
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:472)
at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:274)
at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:177)
at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deployBean(AbstractKernelDeployer.java:291)
at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deployBeans(AbstractKernelDeployer.java:261)
at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deploy(AbstractKernelDeployer.java:117)
at org.jboss.kernel.plugins.deployment.xml.BeanXMLDeployer.deploy(BeanXMLDeployer.java:95)
at org.jboss.ejb3.embedded.EJB3StandaloneBootstrap.deployXmlResource(EJB3StandaloneBootstrap.java:97)
at hello.HelloWorld.main(HelloWorld.java:16)
Exception in thread "main" java.lang.RuntimeException: java.lang.IllegalStateException: Incompletely deployed:

*** DEPLOYMENTS IN ERROR: Name -> Error
helloWorldDatasourceFactory -> java.lang.IllegalArgumentException: Null value metadata

*** DEPLOYMENTS MISSING DEPENDENCIES: Name -> Dependency{Required State:Actual State}
HelloWorldDS -> helloWorldDatasourceFactory{Instantiated:**ERROR**}

at org.jboss.ejb3.embedded.EJB3StandaloneBootstrap.deployXmlResource(EJB3StandaloneBootstrap.java:103)
at hello.HelloWorld.main(HelloWorld.java:16)
Caused by: java.lang.IllegalStateException: Incompletely deployed:

*** DEPLOYMENTS IN ERROR: Name -> Error
helloWorldDatasourceFactory -> java.lang.IllegalArgumentException: Null value metadata

*** DEPLOYMENTS MISSING DEPENDENCIES: Name -> Dependency{Required State:Actual State}
HelloWorldDS -> helloWorldDatasourceFactory{Instantiated:**ERROR**}

at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.internalValidate(AbstractKernelDeployer.java:241)
at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.validate(AbstractKernelDeployer.java:161)
at org.jboss.ejb3.embedded.EJB3StandaloneBootstrap.deployXmlResource(EJB3StandaloneBootstrap.java:99)
... 1 more
...全文
102 点赞 收藏 5
写回复
5 条回复

还没有回复,快来抢沙发~

发动态
发帖子
Java EE
创建于2007-09-28

3.7w+

社区成员

22.5w+

社区内容

J2EE只是Java企业应用。我们需要一个跨J2SE/WEB/EJB的微容器,保护我们的业务核心组件(中间件),以延续它的生命力,而不是依赖J2SE/J2EE版本。
社区公告
暂无公告