tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Romain Manni-Bucau <rmannibu...@gmail.com>
Subject Re: 1.7.x to 7.0.x undeployOldVersions not work anymore
Date Wed, 03 Aug 2016 09:00:43 GMT
Ok,

undeployOldVersions is only working for tomcat managed webapps (this
excludes ears)

Deployment tag in tomee.xml has a redeploy flag as well which should
undeploy before redeploying, did you set it to true? If not then you deploy
twice and it fails "normally".


Romain Manni-Bucau
@rmannibucau <https://twitter.com/rmannibucau> |  Blog
<https://blog-rmannibucau.rhcloud.com> | Old Wordpress Blog
<http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> |
LinkedIn <https://www.linkedin.com/in/rmannibucau> | Tomitriber
<http://www.tomitribe.com> | JavaEE Factory
<https://javaeefactory-rmannibucau.rhcloud.com>

2016-08-03 9:54 GMT+02:00 gchauvet <gchauvet@zatarox.com>:

> My step are :
> Initial step : TomEE 7.0.1 stopped
> 1) clean apps  folder content
> 2) start tomEE (from NetBeans 8.0.x) : OK
> 3) copy EAR to apps folder
> 4) wait TomEE to managed EAR : (step1: OK) (step2 Failed, see full logs
> [1])
> 5) Test one of my deployed REST api : OK
> 6) go stage 3
>
>
>
> [1] My logs. Note that TomEE complains about an undeletable folder:
> INFOS - Updated Auto-Deployer File:
> C:\Apache\TomEE\7\0\1\apps\portal-ear-1.0-SNAPSHOT.ear
> INFOS - Starting Auto-Undeployment of: portal-ear-1.0-SNAPSHOT1470210999073
> - C:\Apache\TomEE\7\0\1\apps\portal-ear-1.0-SNAPSHOT.ear
> *INFOS - Undeploying app:
> C:\Apache\TomEE\7\0\1\apps\portal-ear-1.0-SNAPSHOT1470210999073
> AVERTISSEMENT - Failed to delete:
> C:\Apache\TomEE\7\0\1\apps\portal-ear-1.0-SNAPSHOT1470210999073*
> INFOS - Completed Auto-Undeployment of:
> portal-ear-1.0-SNAPSHOT1470210999073
> INFOS - Starting Auto-Deployment of:
> C:\Apache\TomEE\7\0\1\apps\portal-ear-1.0-SNAPSHOT.ear
> INFOS - Extracting jar:
> C:\Apache\TomEE\7\0\1\apps\portal-ear-1.0-SNAPSHOT.ear
> INFOS - Extracted path:
> C:\Apache\TomEE\7\0\1\apps\portal-ear-1.0-SNAPSHOT1470211105153
> INFOS - Extracting jar:
>
> C:\Apache\TomEE\7\0\1\apps\portal-ear-1.0-SNAPSHOT1470211105153\portal-web-1.0-SNAPSHOT.war
> INFOS - Extracted path:
>
> C:\Apache\TomEE\7\0\1\apps\portal-ear-1.0-SNAPSHOT1470211105153\portal-web-1.0-SNAPSHOT
> INFOS - Using 'openejb.deployments.classpath.filter.systemapps=false'
> INFOS - Using
> 'openejb.default.deployment-module=org.apache.openejb.config.WebModule'
> INFOS - Using
> 'openejb.default.deployment-module=org.apache.openejb.config.WebModule'
> INFOS - Found EjbModule in classpath:
>
> c:\apache\tomee\7\0\1\apps\portal-ear-1.0-snapshot1470211105153\portal-ejb-1.0-snapshot.jar
> INFOS - Using
> 'openejb.default.deployment-module=org.apache.openejb.config.WebModule'
> INFOS - Found AppModule in classpath: c:\apache\tomee\7\0\1\lib\ext
> INFOS - Found PersistenceModule in classpath:
>
> c:\apache\tomee\7\0\1\apps\portal-ear-1.0-snapshot1470211105153\lib\portal-jpa-1.0-snapshot.jar
> INFOS - Configuring enterprise application:
> C:\Apache\TomEE\7\0\1\apps\portal-ear-1.0-SNAPSHOT1470211105153
> INFOS - Auto-deploying ejb TierService:
>
> EjbDeployment(deployment-id=portal-ear-1.0-SNAPSHOT1470211105153/portal-ejb-1.0-SNAPSHOT/TierService)
> INFOS - Configuring PersistenceUnit(name=interfaces)
> INFOS - Adjusting PersistenceUnit interfaces <non-jta-data-source> to
> Resource ID 'jdbc/m14NonJta' from 'null'
> INFOS - Configuring Service(id=johnzon, type=Service, provider-id=johnzon)
> INFOS - Enterprise application
> "C:\Apache\TomEE\7\0\1\apps\portal-ear-1.0-SNAPSHOT1470211105153" loaded.
> INFOS - Creating dedicated application classloader for
> portal-ear-1.0-SNAPSHOT1470211105153
> INFOS - Assembling app:
> C:\Apache\TomEE\7\0\1\apps\portal-ear-1.0-SNAPSHOT1470211105153
> INFOS - OpenJPA dynamically loaded a validation provider.
> INFOS - PersistenceUnit(name=interfaces,
> provider=org.apache.openjpa.persistence.PersistenceProviderImpl) - provider
> time 7ms
> INFOS -
>
> Jndi(name=portal-ear-1.0-SNAPSHOT1470211105153/portal-ejb-1.0-SNAPSHOT/TierServiceLocalBean)
> -->
>
> Ejb(deployment-id=portal-ear-1.0-SNAPSHOT1470211105153/portal-ejb-1.0-SNAPSHOT/TierService)
> INFOS -
>
> Jndi(name=global/portal-ear-1.0-SNAPSHOT1470211105153/portal-ejb-1.0-SNAPSHOT/TierService!net.ciril.accountability.backend.portal.services.TierService)
> -->
>
> Ejb(deployment-id=portal-ear-1.0-SNAPSHOT1470211105153/portal-ejb-1.0-SNAPSHOT/TierService)
> INFOS -
>
> Jndi(name=global/portal-ear-1.0-SNAPSHOT1470211105153/portal-ejb-1.0-SNAPSHOT/TierService)
> -->
>
> Ejb(deployment-id=portal-ear-1.0-SNAPSHOT1470211105153/portal-ejb-1.0-SNAPSHOT/TierService)
> INFOS - Existing thread singleton service in SystemInstance():
> org.apache.openejb.cdi.ThreadSingletonServiceImpl@2bbf180e
> INFOS - OpenWebBeans Container is starting...
> INFOS - Adding OpenWebBeansPlugin : [CdiPlugin]
> INFOS - Adding OpenWebBeansPlugin : [OpenWebBeansJsfPlugin]
> INFOS - All injection points were validated successfully.
> INFOS - OpenWebBeans Container has started, it took 47 ms.
> INFOS - Created
>
> Ejb(deployment-id=portal-ear-1.0-SNAPSHOT1470211105153/portal-ejb-1.0-SNAPSHOT/TierService,
> ejb-name=TierService, container=Default Stateless Container)
> INFOS - Started
>
> Ejb(deployment-id=portal-ear-1.0-SNAPSHOT1470211105153/portal-ejb-1.0-SNAPSHOT/TierService,
> ejb-name=TierService, container=Default Stateless Container)
> INFOS - using default host: localhost
> INFOS - ------------------------- localhost -> /portal-web
> INFOS - Existing thread singleton service in SystemInstance():
> org.apache.openejb.cdi.ThreadSingletonServiceImpl@2bbf180e
> INFOS - OpenWebBeans Container is starting...
> INFOS - Adding OpenWebBeansPlugin : [CdiPlugin]
> INFOS - Adding OpenWebBeansPlugin : [OpenWebBeansJsfPlugin]
> INFOS - Using annotated mode for
>
> file:/C:/Apache/TomEE/7/0/1/apps/portal-ear-1.0-SNAPSHOT1470211105153/portal-web-1.0-SNAPSHOT/WEB-INF/beans.xml
> looking all classes to find CDI beans, maybe think to add a beans.xml if
> not
> there or add the jar to exclusions.list
> INFOS - All injection points were validated successfully.
> INFOS - OpenWebBeans Container has started, it took 47 ms.
> INFOS - At least one JAR was scanned for TLDs yet contained no TLDs. Enable
> debug logging for this logger for a complete list of JARs that were scanned
> but no TLDs were found in them. Skipping unneeded JARs during scanning can
> improve startup time and JSP compilation time.
> INFOS - Registered JAX-RS Configuration:
> {cxf.jaxrs.skip-provider-scanning=true,
>
> cxf.jaxrs.providers=johnzon,org.apache.openejb.server.cxf.rs.EJBAccessExceptionMapper}
> INFOS - Using readers:
> INFOS -      org.apache.johnzon.jaxrs.ConfigurableJohnzonProvider@4cce3392
> INFOS -      org.apache.cxf.jaxrs.provider.PrimitiveTextProvider@b73972a
> INFOS -      org.apache.cxf.jaxrs.provider.FormEncodingProvider@13bd3764
> INFOS -      org.apache.cxf.jaxrs.provider.MultipartProvider@628b77b0
> INFOS -      org.apache.cxf.jaxrs.provider.SourceProvider@48c1e776
> INFOS -      org.apache.cxf.jaxrs.provider.JAXBElementProvider@fbdece9
> INFOS -
> org.apache.openejb.server.cxf.rs.CxfRSService$TomEEJsonpProvider@4cd6db96
> INFOS -      org.apache.cxf.jaxrs.provider.StringTextProvider@6b49e809
> INFOS -      org.apache.cxf.jaxrs.provider.BinaryDataProvider@11114399
> INFOS -      org.apache.cxf.jaxrs.provider.DataSourceProvider@2c7ea08a
> INFOS - Using writers:
> INFOS -      org.apache.cxf.jaxrs.provider.StringTextProvider@6b49e809
> INFOS -      org.apache.johnzon.jaxrs.ConfigurableJohnzonProvider@4cce3392
> INFOS -      org.apache.cxf.jaxrs.provider.PrimitiveTextProvider@b73972a
> INFOS -      org.apache.cxf.jaxrs.provider.FormEncodingProvider@13bd3764
> INFOS -      org.apache.cxf.jaxrs.provider.MultipartProvider@628b77b0
> INFOS -      org.apache.cxf.jaxrs.provider.SourceProvider@48c1e776
> INFOS -      org.apache.cxf.jaxrs.provider.JAXBElementProvider@fbdece9
> INFOS -
> org.apache.openejb.server.cxf.rs.CxfRSService$TomEEJsonpProvider@4cd6db96
> INFOS -      org.apache.cxf.jaxrs.provider.BinaryDataProvider@11114399
> INFOS -      org.apache.cxf.jaxrs.provider.DataSourceProvider@2c7ea08a
> INFOS - Using exception mappers:
> INFOS -
> org.apache.cxf.jaxrs.impl.WebApplicationExceptionMapper@3b23b8e8
> INFOS - REST Application: http://localhost:8080/portal-web/
> -> org.apache.openejb.server.rest.InternalApplication@1f8e1625
> INFOS -      Service URI: http://localhost:8080/portal-web/tiers
> ->  EJB net.ciril.accountability.backend.portal.services.TierService
> INFOS -               GET http://localhost:8080/portal-web/tiers/
> ->      Response list(int, int)
> INFOS -               GET http://localhost:8080/portal-web/tiers/{id}
> ->      Response get(String)
> INFOS -               GET
> http://localhost:8080/portal-web/tiers/{id}/comptes ->      Response
> getComptes(String)
> INFOS -              POST http://localhost:8080/portal-web/tiers/
> ->      Response list(int, int, String, short, String, String, String)
> INFOS - Deployed
>
> Application(path=C:\Apache\TomEE\7\0\1\apps\portal-ear-1.0-SNAPSHOT1470211105153)
> INFOS - New File:
> C:\Apache\TomEE\7\0\1\apps\portal-ear-1.0-SNAPSHOT1470211105153
> INFOS - Starting Auto-Deployment of:
> C:\Apache\TomEE\7\0\1\apps\portal-ear-1.0-SNAPSHOT1470211105153
> INFOS - Using 'openejb.deployments.classpath.filter.systemapps=false'
> INFOS - Using
> 'openejb.default.deployment-module=org.apache.openejb.config.WebModule'
> INFOS - Using
> 'openejb.default.deployment-module=org.apache.openejb.config.WebModule'
> INFOS - Found EjbModule in classpath:
>
> c:\apache\tomee\7\0\1\apps\portal-ear-1.0-snapshot1470211105153\portal-ejb-1.0-snapshot.jar
> INFOS - Using
> 'openejb.default.deployment-module=org.apache.openejb.config.WebModule'
> INFOS - Found AppModule in classpath: c:\apache\tomee\7\0\1\lib\ext
> INFOS - Found PersistenceModule in classpath:
>
> c:\apache\tomee\7\0\1\apps\portal-ear-1.0-snapshot1470211105153\lib\portal-jpa-1.0-snapshot.jar
> INFOS - Configuring enterprise application:
> C:\Apache\TomEE\7\0\1\apps\portal-ear-1.0-SNAPSHOT1470211105153
> INFOS - Auto-deploying ejb TierService:
>
> EjbDeployment(deployment-id=portal-ear-1.0-SNAPSHOT1470211105153/portal-ejb-1.0-SNAPSHOT/TierService)
> INFOS - Configuring PersistenceUnit(name=interfaces)
> INFOS - Adjusting PersistenceUnit interfaces <non-jta-data-source> to
> Resource ID 'jdbc/m14NonJta' from 'null'
> INFOS - Configuring Service(id=johnzon, type=Service, provider-id=johnzon)
> INFOS - Enterprise application
> "C:\Apache\TomEE\7\0\1\apps\portal-ear-1.0-SNAPSHOT1470211105153" loaded.
> INFOS - Creating dedicated application classloader for
> portal-ear-1.0-SNAPSHOT1470211105153
> INFOS - Assembling app:
> C:\Apache\TomEE\7\0\1\apps\portal-ear-1.0-SNAPSHOT1470211105153
> *GRAVE - Application cannot be deployed as it contains deployment-ids which
> are in use: app:
> C:\Apache\TomEE\7\0\1\apps\portal-ear-1.0-SNAPSHOT1470211105153
> GRAVE - DeploymentId already used:
> portal-ear-1.0-SNAPSHOT1470211105153/portal-ejb-1.0-SNAPSHOT/TierService
> GRAVE - Failed Auto-Deployment of:
> C:\Apache\TomEE\7\0\1\apps\portal-ear-1.0-SNAPSHOT1470211105153
> org.apache.openejb.DuplicateDeploymentIdException: Application cannot be
> deployed as it contains deployment-ids which are in use: app:
> C:\Apache\TomEE\7\0\1\apps\portal-ear-1.0-SNAPSHOT1470211105153*
>
> portal-ear-1.0-SNAPSHOT1470211105153/portal-ejb-1.0-SNAPSHOT/TierService
>         at
>
> org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:750)
>         at
>
> org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:717)
>         at
>
> org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:713)
>         at
> org.apache.openejb.config.AutoDeployer.fileAdded(AutoDeployer.java:97)
>         at
> org.apache.openejb.config.AutoDeployer.scan(AutoDeployer.java:298)
>         at
> org.apache.openejb.config.AutoDeployer$1.run(AutoDeployer.java:222)
>         at java.util.TimerThread.mainLoop(Timer.java:555)
>         at java.util.TimerThread.run(Timer.java:505)
> INFOS - Starting OpenJPA 2.4.1
> INFOS - Using dictionary class
> "org.apache.openjpa.jdbc.sql.OracleDictionary" (Oracle Oracle Database 10g
> Release 10.2.0.5.0 - 64bit Production ,Oracle JDBC driver 12.1.0.2.0).
> INFOS - Connected to Oracle version 10.10 using JDBC driver Oracle JDBC
> driver version 12.1.0.2.0.
> AVERTISSEMENT - The type
> "net.ciril.accountability.backend.portal.models.Tiers$Adresse" must have a
> no-args constructor. Adding a public no-args constructor.
> AVERTISSEMENT - The type
> "net.ciril.accountability.backend.portal.models.Tiers$Contact" must have a
> no-args constructor. Adding a public no-args constructor.
> AVERTISSEMENT - The type
> "net.ciril.accountability.backend.portal.models.Tiers$Immatriculation" must
> have a no-args constructor. Adding a public no-args constructor.
> AVERTISSEMENT - The type
> "net.ciril.accountability.backend.portal.models.Tiers$RaisonSocial" must
> have a no-args constructor. Adding a public no-args constructor.
>
>
>
>
> --
> View this message in context:
> http://tomee-openejb.979440.n4.nabble.com/1-7-x-to-7-0-x-undeployOldVersions-not-work-anymore-tp4679579p4679591.html
> Sent from the TomEE Users mailing list archive at Nabble.com.
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message