-
1. Re: jboss-scanning.xml supported in AS7?
alesj Apr 13, 2012 4:21 PM (in response to raylite3)1 of 1 people found this helpfulNo, at least afaik.
-
2. Re: jboss-scanning.xml supported in AS7?
smarlow Apr 13, 2012 4:47 PM (in response to raylite3)1 of 1 people found this helpfulYou probably don't want to use exclude-unlisted-classes and list each class individually but you could.
How many persistence units do you have in the application and how much time is spent scanning for entities during deployment?
-
3. Re: jboss-scanning.xml supported in AS7?
raylite3 Apr 13, 2012 6:28 PM (in response to smarlow)Sorry, it's not a EJB jar but a WAR with a large number of jars within it. I got my tests mixed up.
I have created a "library WAR" that my other deployments will depend on. And this library WAR does not have any persistence contexts or session beans within it.
I have setup my Eclipse to build a exploded WAR (build/war/library.war/WEB-INF/lib, etc). From my standaone.xml I point to build/war as one of the deployment directories.
When I start up the server, I see this error in server.log
22:22:09,241 ERROR [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) JBAS015052: Did not receive a response to the deployment operation within the allowed timeout period [60 seconds]. Check the server configuration file and the server logs to find more about the status of the deployment.
Is there any way to increase the timeout period?
-
4. Re: jboss-scanning.xml supported in AS7?
smarlow Apr 13, 2012 6:38 PM (in response to raylite3)Is there any way to increase the timeout period?
Yes, in as7/standalone/configuration/standalone.xml update the following section:
<subsystem xmlns="urn:jboss:domain:deployment-scanner:1.1"> <deployment-scanner path="deployments" relative-to="jboss.server.base.dir" scan-interval="5000"/> </subsystem>
Try changing scan-interval to a higher number.
-
5. Re: jboss-scanning.xml supported in AS7?
raylite3 Apr 15, 2012 2:03 AM (in response to smarlow)I found I needed to add the deployment-timeout attribute to change the timeout value.
<subsystem xmlns="urn:jboss:domain:deployment-scanner:1.1">
<deployment-scanner path="deployments" relative-to="jboss.server.base.dir" scan-interval="5000" deployment-timeout="120"/>
</subsystem>Now it completes the deployment.