tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "priyaksingh@gmail.com" <priyaksi...@gmail.com>
Subject Disable auto scanning for EJBs in a NON-EJB web application in Tomee
Date Fri, 01 Feb 2019 13:16:18 GMT
Hi, 

     I am working on migrating a web-app for my organisation. We have
started using Spring 5, which needs the latest Tomee and hence the migration
process. Our application works fine on Tomee 1.7.5. We do not have any EJBs
in our web application, but Tomee 7.1.0 seems to scan for one. I have done
the following changes, but have not found any success. 

Changes made: 
1.) Create empty Scan.xml under WEB-INF folder in the applictaion 
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> 

<scan/>



2.) Update exclusions.list as follows 

default-list 

MyappJar- 

cxf-core- 

MyappWar- 



3.) Updated the system.properties under tomee/conf 

# Which paths / libraries should be scanned? 

openejb.scan.webapp.container = false 

#openejb.scan.webapp.container.includes = .*(geronimo|mp-jwt|failsafe).* 

#openejb.scan.webapp.container.excludes = 





None of the above seems to work and I get the following error. 





========== 

ERROR: 

INFO: Dumping Generated openejb-jar.xml to:
/opt/tomee/temp/openejb-jar-2341936619230328309Login.xml 

Feb 01, 2019 11:32:40 AM org.apache.openejb.config.ReportValidationResults
logResults 

SEVERE: FAIL ... Login:	Missing required persistence.xml for
@PersistenceContext ref "entityManager" to unit "workflowPersistenceUnit" 

Feb 01, 2019 11:32:40 AM org.apache.openejb.config.ReportValidationResults
logResults 

SEVERE: FAIL ... Login:	Missing required persistence.xml for
@PersistenceContext ref "entityManager" to unit
"auditLoggingPersistenceUnit" 

Feb 01, 2019 11:32:40 AM org.apache.openejb.config.ReportValidationResults
logResults 

SEVERE: Invalid EjbModule(name=Login, path=/opt/tomee/webapps/Login) 

Feb 01, 2019 11:32:40 AM org.apache.openejb.config.ReportValidationResults
logResults 

SEVERE: FAIL ... Login:	Missing required persistence.xml for
@PersistenceContext ref "entityManager" to unit "workflowPersistenceUnit" 

Feb 01, 2019 11:32:40 AM org.apache.openejb.config.ReportValidationResults
logResults 

SEVERE: FAIL ... Login:	Missing required persistence.xml for
@PersistenceContext ref "entityManager" to unit
"auditLoggingPersistenceUnit" 

Feb 01, 2019 11:32:40 AM org.apache.openejb.config.ReportValidationResults
logResults 

SEVERE: Invalid WebModule(name=Login, path=/opt/tomee/webapps/Login) 

Feb 01, 2019 11:32:40 AM org.apache.openejb.config.ReportValidationResults
deploy 

INFO: Set the 'openejb.validation.output.level' system property to VERBOSE
for increased validation details. 

Feb 01, 2019 11:32:40 AM org.apache.tomee.catalina.TomcatWebAppBuilder
startInternal 

SEVERE: Unable to deploy collapsed ear in war
StandardEngine[Catalina].StandardHost[localhost].StandardContext[/Login] 

org.apache.openejb.config.ValidationFailedException: Module failed
validation. AppModule(name=Login) 



I have few Spring beans (not EJBs), which have the annotation
"@PersistenceContext". Request help.



--
Sent from: http://tomee-openejb.979440.n4.nabble.com/TomEE-Users-f979441.html

Mime
View raw message