- android - 多次调用 OnPrimaryClipChangedListener
- android - 无法更新 RecyclerView 中的 TextView 字段
- android.database.CursorIndexOutOfBoundsException : Index 0 requested, 光标大小为 0
- android - 使用 AppCompat 时,我们是否需要明确指定其 UI 组件(Spinner、EditText)颜色
在我的 Eclipse 动态 Web 项目中,我使用 JPA。我已经在 TomEE 服务器下的 tomee.xml 中创建了连接,并且工作正常。我创建了一个 persistence.xml 文件,如下所示;但是如果我尝试在 BusinessBean 中添加行 @PersistenceContext(unitName="myPersistence") 我会看到以下错误并且服务器无法启动。如果我尝试在 unitName 下插入随机名称,我也会看到相同的错误。很奇怪,请问如何解决这个问题?谢谢!
我的持久性文件:
<persistence xmlns="http://java.sun.com/xml/ns/persistence" version="1.0">
<persistence-unit name="myPersistence">
<jta-data-source>connessioneCorsoWeb</jta-data-source>
<properties>
<property name="openejb.jpa.auto-scan" value="true" />
<!-- <property name="openjpa.jdbc.SynchronizeMappings" value="buildSchema(ForeignKeys=true)" /> -->
</properties>
</persistence-unit>
</persistence>
我的错误:
Sep 06, 2018 10:47:21 AM sun.reflect.NativeMethodAccessorImpl invoke
AVVERTENZA: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:corso_web' did not find a matching property.
Sep 06, 2018 10:47:21 AM sun.reflect.NativeMethodAccessorImpl invoke
INFORMAZIONI: Server version: Apache Tomcat (TomEE)/8.5.32 (7.0.5)
Sep 06, 2018 10:47:21 AM sun.reflect.NativeMethodAccessorImpl invoke
INFORMAZIONI: Server built: Jun 20 2018 19:50:35 UTC
Sep 06, 2018 10:47:21 AM sun.reflect.NativeMethodAccessorImpl invoke
INFORMAZIONI: Server number: 8.5.32.0
Sep 06, 2018 10:47:21 AM sun.reflect.NativeMethodAccessorImpl invoke
INFORMAZIONI: OS Name: Mac OS X
Sep 06, 2018 10:47:21 AM sun.reflect.NativeMethodAccessorImpl invoke
INFORMAZIONI: OS Version: 10.13.6
Sep 06, 2018 10:47:21 AM sun.reflect.NativeMethodAccessorImpl invoke
INFORMAZIONI: Architecture: x86_64
Sep 06, 2018 10:47:21 AM sun.reflect.NativeMethodAccessorImpl invoke
INFORMAZIONI: Java Home: /Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/Contents/Home/jre
Sep 06, 2018 10:47:21 AM sun.reflect.NativeMethodAccessorImpl invoke
INFORMAZIONI: JVM Version: 1.8.0_20-b26
Sep 06, 2018 10:47:21 AM sun.reflect.NativeMethodAccessorImpl invoke
INFORMAZIONI: JVM Vendor: Oracle Corporation
Sep 06, 2018 10:47:21 AM sun.reflect.NativeMethodAccessorImpl invoke
INFORMAZIONI: CATALINA_BASE: /Volumes/Main/Workspace/Learning/JEE2/.metadata/.plugins/org.eclipse.wst.server.core/tmp0
Sep 06, 2018 10:47:21 AM sun.reflect.NativeMethodAccessorImpl invoke
INFORMAZIONI: CATALINA_HOME: /Applications/apache-tomee-plume-7.0.5
Sep 06, 2018 10:47:21 AM sun.reflect.NativeMethodAccessorImpl invoke
INFORMAZIONI: Command line argument: -Dcatalina.base=/Volumes/Main/Workspace/Learning/JEE2/.metadata/.plugins/org.eclipse.wst.server.core/tmp0
Sep 06, 2018 10:47:21 AM sun.reflect.NativeMethodAccessorImpl invoke
INFORMAZIONI: Command line argument: -Dcatalina.home=/Applications/apache-tomee-plume-7.0.5
Sep 06, 2018 10:47:21 AM sun.reflect.NativeMethodAccessorImpl invoke
INFORMAZIONI: Command line argument: -Dwtp.deploy=/Volumes/Main/Workspace/Learning/JEE2/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps
Sep 06, 2018 10:47:21 AM sun.reflect.NativeMethodAccessorImpl invoke
INFORMAZIONI: Command line argument: -Djava.endorsed.dirs=/Applications/apache-tomee-plume-7.0.5/endorsed
Sep 06, 2018 10:47:21 AM sun.reflect.NativeMethodAccessorImpl invoke
INFORMAZIONI: Command line argument: -Dfile.encoding=UTF-8
Sep 06, 2018 10:47:21 AM sun.reflect.DelegatingMethodAccessorImpl invoke
INFORMAZIONI: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: [/Users/test/Library/Java/Extensions:/Library/Java/Extensions:/Network/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java:.]
Sep 06, 2018 10:47:22 AM sun.reflect.DelegatingMethodAccessorImpl invoke
INFORMAZIONI: Initializing ProtocolHandler ["http-nio-8080"]
Sep 06, 2018 10:47:22 AM sun.reflect.DelegatingMethodAccessorImpl invoke
INFORMAZIONI: Using a shared selector for servlet write/read
Sep 06, 2018 10:47:22 AM sun.reflect.DelegatingMethodAccessorImpl invoke
INFORMAZIONI: Initializing ProtocolHandler ["ajp-nio-8009"]
Sep 06, 2018 10:47:22 AM sun.reflect.DelegatingMethodAccessorImpl invoke
INFORMAZIONI: Using a shared selector for servlet write/read
Sep 06, 2018 10:47:23 AM org.apache.openejb.util.OptionsLog info
INFORMAZIONI: Using 'openejb.jdbc.datasource-creator=org.apache.tomee.jdbc.TomEEDataSourceCreator'
Sep 06, 2018 10:47:23 AM org.apache.openejb.OpenEJB$Instance <init>
INFORMAZIONI: ********************************************************************************
Sep 06, 2018 10:47:23 AM org.apache.openejb.OpenEJB$Instance <init>
INFORMAZIONI: OpenEJB http://tomee.apache.org/
Sep 06, 2018 10:47:23 AM org.apache.openejb.OpenEJB$Instance <init>
INFORMAZIONI: Startup: Thu Sep 06 10:47:23 CEST 2018
Sep 06, 2018 10:47:23 AM org.apache.openejb.OpenEJB$Instance <init>
INFORMAZIONI: Copyright 1999-2018 (C) Apache OpenEJB Project, All Rights Reserved.
Sep 06, 2018 10:47:23 AM org.apache.openejb.OpenEJB$Instance <init>
INFORMAZIONI: Version: 7.0.5
Sep 06, 2018 10:47:23 AM org.apache.openejb.OpenEJB$Instance <init>
INFORMAZIONI: Build date: 20180710
Sep 06, 2018 10:47:23 AM org.apache.openejb.OpenEJB$Instance <init>
INFORMAZIONI: Build time: 12:28
Sep 06, 2018 10:47:23 AM org.apache.openejb.OpenEJB$Instance <init>
INFORMAZIONI: ********************************************************************************
Sep 06, 2018 10:47:23 AM org.apache.openejb.OpenEJB$Instance <init>
INFORMAZIONI: openejb.home = /Applications/apache-tomee-plume-7.0.5
Sep 06, 2018 10:47:23 AM org.apache.openejb.OpenEJB$Instance <init>
INFORMAZIONI: openejb.base = /Volumes/Main/Workspace/Learning/JEE2/.metadata/.plugins/org.eclipse.wst.server.core/tmp0
Sep 06, 2018 10:47:23 AM org.apache.openejb.cdi.CdiBuilder initializeOWB
INFORMAZIONI: Created new singletonService org.apache.openejb.cdi.ThreadSingletonServiceImpl@8909f18
Sep 06, 2018 10:47:23 AM org.apache.openejb.cdi.CdiBuilder initializeOWB
INFORMAZIONI: Succeeded in installing singleton service
Sep 06, 2018 10:47:23 AM org.apache.openejb.config.ConfigurationFactory init
INFORMAZIONI: TomEE configuration file is '/Volumes/Main/Workspace/Learning/JEE2/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/conf/openejb.xml'
Sep 06, 2018 10:47:23 AM org.apache.openejb.config.ConfigurationFactory configureService
INFORMAZIONI: Configuring Service(id=Tomcat Security Service, type=SecurityService, provider-id=Tomcat Security Service)
Sep 06, 2018 10:47:23 AM org.apache.openejb.config.ConfigurationFactory configureService
INFORMAZIONI: Configuring Service(id=Default Transaction Manager, type=TransactionManager, provider-id=Default Transaction Manager)
Sep 06, 2018 10:47:23 AM org.apache.openejb.config.ConfigurationFactory configureService
INFORMAZIONI: Configuring Service(id=My DataSource, type=Resource, provider-id=Default JDBC Database)
Sep 06, 2018 10:47:23 AM org.apache.openejb.config.ConfigurationFactory configureService
INFORMAZIONI: Configuring Service(id=My Unmanaged DataSource, type=Resource, provider-id=Default JDBC Database)
Sep 06, 2018 10:47:23 AM org.apache.openejb.config.ConfigurationFactory configureService
INFORMAZIONI: Configuring Service(id=My Singleton Container, type=Container, provider-id=Default Singleton Container)
Sep 06, 2018 10:47:23 AM org.apache.openejb.config.ConfigurationFactory configureService
INFORMAZIONI: Configuring Service(id=My Stateful Container, type=Container, provider-id=Default Stateful Container)
Sep 06, 2018 10:47:23 AM org.apache.openejb.config.ConfigurationFactory configureService
INFORMAZIONI: Configuring Service(id=My Stateless Container, type=Container, provider-id=Default Stateless Container)
Sep 06, 2018 10:47:23 AM org.apache.openejb.config.DeploymentsResolver loadFrom
AVVERTENZA: File error: <Deployments dir="apps/"> - Does not exist: /Volumes/Main/Workspace/Learning/JEE2/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/apps
Sep 06, 2018 10:47:23 AM org.apache.openejb.util.OptionsLog info
INFORMAZIONI: Using 'openejb.deployments.classpath=false'
Sep 06, 2018 10:47:23 AM org.apache.openejb.assembler.classic.Assembler createRecipe
INFORMAZIONI: Creating TransactionManager(id=Default Transaction Manager)
Sep 06, 2018 10:47:24 AM org.apache.openejb.assembler.classic.Assembler createRecipe
INFORMAZIONI: Creating SecurityService(id=Tomcat Security Service)
Sep 06, 2018 10:47:24 AM org.apache.openejb.assembler.classic.Assembler createRecipe
INFORMAZIONI: Creating Resource(id=My DataSource)
Sep 06, 2018 10:47:34 AM org.apache.openejb.config.JndiEncInfoBuilder buildEjbRefs
AVVERTENZA: Unresolved ejb reference "java:comp/env/web.Activator/activeBean" in bean "corso_web.Comp". Will attempt resolution again at runtime.
Sep 06, 2018 10:47:34 AM org.apache.openejb.config.JndiEncInfoBuilder buildEjbRefs
AVVERTENZA: Unresolved ejb reference "java:comp/env/web.Activator/activeBean" in bean "/Volumes/Main/Workspace/Learning/JEE2/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/corso_web". Will attempt resolution again at runtime.
Sep 06, 2018 10:47:34 AM org.apache.openejb.config.ReportValidationResults logResults
GRAVE: FAIL ... corso_web: Use of @PersistenceContext only applies to EntityManager references. Fix ref "java:comp/env/business.PersonaBean/erisci"
Sep 06, 2018 10:47:34 AM org.apache.openejb.config.ReportValidationResults logResults
GRAVE: Invalid EjbModule(name=corso_web, path=/Volumes/Main/Workspace/Learning/JEE2/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/corso_web)
Sep 06, 2018 10:47:34 AM org.apache.tomee.catalina.TomcatWebAppBuilder startInternal
GRAVE: Unable to deploy collapsed ear in war StandardEngine[Catalina].StandardHost[localhost].StandardContext[/corso_web]
org.apache.openejb.config.ValidationFailedException: Module failed validation. AppModule(name=corso_web)
at org.apache.openejb.config.ReportValidationResults.deploy(ReportValidationResults.java:88)
at org.apache.openejb.config.AppInfoBuilder.build(AppInfoBuilder.java:327)
at org.apache.openejb.config.ConfigurationFactory.configureApplication(ConfigurationFactory.java:1040)
at org.apache.tomee.catalina.TomcatWebAppBuilder.startInternal(TomcatWebAppBuilder.java:1281)
at org.apache.tomee.catalina.TomcatWebAppBuilder.configureStart(TomcatWebAppBuilder.java:1125)
at org.apache.tomee.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:133)
at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:94)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5154)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1421)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1411)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Sep 06, 2018 10:47:34 AM sun.reflect.NativeMethodAccessorImpl invoke
GRAVE: ContainerBase.removeChild: destroy:
org.apache.catalina.LifecycleException: An invalid Lifecycle transition was attempted ([before_destroy]) for component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/corso_web]] in state [STARTING_PREP]
at org.apache.catalina.util.LifecycleBase.invalidTransition(LifecycleBase.java:402)
at org.apache.catalina.util.LifecycleBase.destroy(LifecycleBase.java:292)
at org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:856)
at org.apache.tomee.catalina.TomcatWebAppBuilder.undeploy(TomcatWebAppBuilder.java:1651)
at org.apache.tomee.catalina.TomcatWebAppBuilder.undeploy(TomcatWebAppBuilder.java:1631)
at org.apache.tomee.catalina.TomcatWebAppBuilder.startInternal(TomcatWebAppBuilder.java:1312)
at org.apache.tomee.catalina.TomcatWebAppBuilder.configureStart(TomcatWebAppBuilder.java:1125)
at org.apache.tomee.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:133)
at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:94)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5154)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1421)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1411)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Sep 06, 2018 10:47:34 AM sun.reflect.NativeMethodAccessorImpl invoke
GRAVE: A child container failed during start
java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/corso_web]]
at java.util.concurrent.FutureTask.report(FutureTask.java:122)
at java.util.concurrent.FutureTask.get(FutureTask.java:192)
at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:941)
at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:872)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1421)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1411)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/corso_web]]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:167)
... 6 more
Caused by: org.apache.tomee.catalina.TomEERuntimeException: org.apache.openejb.config.ValidationFailedException: Module failed validation. AppModule(name=corso_web)
at org.apache.tomee.catalina.TomcatWebAppBuilder.startInternal(TomcatWebAppBuilder.java:1315)
at org.apache.tomee.catalina.TomcatWebAppBuilder.configureStart(TomcatWebAppBuilder.java:1125)
at org.apache.tomee.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:133)
at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:94)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5154)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
... 6 more
Caused by: org.apache.openejb.config.ValidationFailedException: Module failed validation. AppModule(name=corso_web)
at org.apache.openejb.config.ReportValidationResults.deploy(ReportValidationResults.java:88)
at org.apache.openejb.config.AppInfoBuilder.build(AppInfoBuilder.java:327)
at org.apache.openejb.config.ConfigurationFactory.configureApplication(ConfigurationFactory.java:1040)
at org.apache.tomee.catalina.TomcatWebAppBuilder.startInternal(TomcatWebAppBuilder.java:1281)
... 11 more
Sep 06, 2018 10:47:34 AM sun.reflect.NativeMethodAccessorImpl invoke
GRAVE: A child container failed during start
java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost]]
at java.util.concurrent.FutureTask.report(FutureTask.java:122)
at java.util.concurrent.FutureTask.get(FutureTask.java:192)
at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:941)
at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:262)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.StandardService.startInternal(StandardService.java:422)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:793)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.startup.Catalina.start(Catalina.java:681)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:353)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:493)
Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost]]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:167)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1421)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1411)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Caused by: org.apache.catalina.LifecycleException: A child container failed during start
at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:949)
at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:872)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
... 6 more
Sep 06, 2018 10:47:34 AM sun.reflect.NativeMethodAccessorImpl invoke
GRAVE: The required Server component failed to start so Tomcat is unable to start.
org.apache.catalina.LifecycleException: Failed to start component [StandardServer[8005]]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:167)
at org.apache.catalina.startup.Catalina.start(Catalina.java:681)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:353)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:493)
Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardService[Catalina]]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:167)
at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:793)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
... 7 more
Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina]]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:167)
at org.apache.catalina.core.StandardService.startInternal(StandardService.java:422)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
... 9 more
Caused by: org.apache.catalina.LifecycleException: A child container failed during start
at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:949)
at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:262)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
... 11 more
最佳答案
注入(inject)上下文的类型是什么(business.PersonaBean/erisci
)?必须是 EntityManager。如果您需要 EntityManagerFactory,请使用@PersistenceUnit。如果是 EntityManager,则可能意味着您的应用程序打包的 jpa api 与提供的 API 冲突。
关于java - @PersistenceContext(unitName ="myPersistence") 无法启动我的 TomEE Web 服务器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52162359/
我想在 TomEE 中测试 hikaricp。我已将 jar 文件添加到我的 lib 文件夹中,并尝试像这样定义资源: .... 当我这样做时,我在启动时收到以下错误: org.apache.xb
平台:TomEE Web 配置文件 1.5.0。 我正在尝试做一件非常基本的事情,为 MySQL 设置数据源。我已经阅读了官方指南(http://openejb.apache.org/configur
我最近在“Red Hat Enterprise Linux Server (6.6)”上安装了“apache-tomee-webprofile-1.7.2”。 我可以通过访问 x.x.x.x:8080
如何在 IntelliJ IDEA VM 选项中进行设置。 我需要设置 set JAVA_OPTS="-Dtomee.serialization.class.whitelist=" set CATAL
正如标题所说。我对 Java EE6 认证的内部工作原理了解不多。但是,TomEE+ 似乎只是 TomEE 的超集,所以 TomEE+ 不应该也通过 Java EE6 认证吗? 我们刚刚决定为我们内部
我正在使用 Apache TomEE(本地主机上的 apache-tomee-plus-1.5.2)处理一些 JEE 网络应用程序,并尝试从 TomEE 主页上的链接访问这些服务。 现在,我记得早些时
尝试在 Windows 上启动 TomEE 时出现以下错误: SEVERE: OpenEJBContextConfig.processAnnotationsFile: failed. java.uti
我的服务器有 48 个 CPU,在 TomEE+ 7.0.2 上托管 Java EE 7 REST API。 一些 API 在运行并行算法时需要使用尽可能多的 CPU。 并行化部分不需要任何数据库或其
所以我试图找到任何引用文档或使用这三个的重要示例。 我发现的“最好的”是: TomEE/OpenEJB JAXRS refactoring Some tips for TomEE andJAXRS c
我正在 TomEE 8 中运行我的应用程序。我想从我的数据库中读取一些属性并将其传递给应用程序。 我看到了 https://rmannibucau.wordpress.com/2014/08/06/t
我正在使用单个 TomEE 实例来部署 2 个 Web 应用程序。两个应用程序使用不同的数据库和不同的实体。 应用程序 2 集成到应用程序 1 中,因此我在运行时随时需要这两个架构。 我在 tomee
假设我有一个包含 persistence.xml 配置和 jpa 实体的 jar。我希望在不同的应用程序之间共享相同的持久性单元。 例如,部署一个 war 应用程序并注入(inject)相同的持久性单
规范:jdk1.8,TOMEE702,win10 问题:为 open-ejb3.X 安装和使用 TOMEE 的方法/内容/哪个? 网址:http://tomee.apache.org/download
我下载并安装了 TomEE 1.7.1。在启动服务器时抛出 IllegalArgumentException。 可能是什么问题,因为我还没有部署任何应用程序。 INFO: Using 'openejb
我有一个关于 TomEE 和使用 tomee.xml 中指定的数据源的奇怪问题。值得注意的是,我使用的是 Netbeans、TomEE 和 MySQL。在 Ubuntu 13.04(Xubuntu 最
无法部署应用程序,但出现异常 java.lang.Exception:持久性单元:持久性 -750441533localhost:未找到名称“openejb/PersistenceUnit/persi
我已经编写了代码,以便可以在不重新启动服务器的情况下更改 EntityManagerFactory 属性。我使用 RESTful Jersey 服务对其进行了测试。 我应该编写junit测试来测试这个
我想将 war 文件部署到 TomEE 但失败了: 原因: javax.naming.NameNotFoundException: Name openejb/Resource/applic
我在 Eclipse 中工作。我已经添加了一个启动良好的 TomEE 服务器,但似乎在创建 MySQL 数据源时出现问题。 我在 TomEE 1.7.2 中定义了以下数据源: jdbcDri
我们正在尝试从 GlassFish 迁移到 TomEE,但是在 TomEE 上部署自定义资源适配器时遇到了问题。在 GlassFish 上,只需部署 RAR 文件、配置资源适配器配置,仅此而已。我们如
我是一名优秀的程序员,十分优秀!