Ok, for apps to deploys automatically in apps/ I needed to add
autoDeploy="true" to the Deployment tag in tomee.xml.

--

Start, Stop, Reload, Undeploy

So now the ear is deployed ! But how can I manage it if its not in the web
manager...
It looks like I can delete the .ear but is it a clean way to undeploy ?

Or any command line for this ?

Restarting the server works, but there is a DuplicateDeploymentIdException
in the logs

SEVERE: Failed Auto-Deployment of: C:\Program Files\Apache Software
Foundation\apache-tomee-plus-1.6.0-SNAPSHOT\apps\JPCS4.ear
org.apache.openejb.DuplicateDeploymentIdException: Application cannot be
deployed as it contains deployment-ids which are in use: app: C:\Program
Files\Apache Software Foundation\apache-tomee-plus-1.6.0-SNAPSHOT\apps\JPCS4
    ServerProjectLockManagerBean
    PromutuelQueueBean
    PromutuelWS
    CalendarServerDataSource
    ActualSynchronization
    ProjectSynchronizationService
        at
org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:652)
        at
org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:612)
        at
org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:608)
        at 
org.apache.openejb.config.AutoDeployer.fileAdded(AutoDeployer.java:95)
        at org.apache.openejb.config.AutoDeployer.scan(AutoDeployer.java:288)
        at org.apache.openejb.config.AutoDeployer$1.run(AutoDeployer.java:213)
        at java.util.TimerThread.mainLoop(Timer.java:555)
        at java.util.TimerThread.run(Timer.java:505)



--

*adjusting exclude/include*

META-INF/scan.xml Didn't work.

I had to modify *conf/system.properties* but I absolutely hate this method.
What if many apps are
deployed on the server ? include/exclude are going to be a real mess. I
really feel that it
should be possible to put those IN the ear/war for each app, in their
META-INF/something.xml ...


Thank you for your anwers!



--
View this message in context: 
http://openejb.979440.n4.nabble.com/Couple-of-questions-it-works-but-ear-tp4663190p4663214.html
Sent from the OpenEJB User mailing list archive at Nabble.com.

Reply via email to