关于Wildfly部署扫描器jbosstoolsscanner1的技术咨询
Hey there! Let's break down everything you need to know about the jbosstoolsscanner1 deployment scanner in your WildFly 10.1.0.Final + Eclipse JBoss Tools setup:
What is
jbosstoolsscanner1? It's an auto-generated deployment scanner created automatically by JBoss Tools when you connect your WildFly server to your Eclipse workspace. Unlike the default scanner you defined in standalone.xml, this one is purpose-built for development workflows:
- It syncs your workspace project changes directly to WildFly, enabling hot-deployment without manually copying WAR/EAR files to the server's
deploymentsfolder. - It's tied to your Eclipse project's build output (like the
target/folder for Maven projects) instead of the server's basedeploymentsdirectory.
Key Differences from Your Default Scanner
Let's compare it to the deployment scanner you configured in standalone.xml:
- Configuration Location: Your default scanner lives in
standalone.xml, butjbosstoolsscanner1is managed through Eclipse's server UI (not the core server config files, though it may modify temporary server configs when running via Eclipse). - Target Path: Default uses
${jboss.server.base.dir}/deployments;jbosstoolsscanner1points to a workspace-specific temporary path linked to your project's build artifacts. - Scan Behavior: The default uses a fixed 5-second scan interval.
jbosstoolsscanner1often uses trigger-based scans (triggered when you save changes in Eclipse) or shorter intervals optimized for development.
Common Tasks & Troubleshooting
- Adjusting Scanner Settings: Open your WildFly server in Eclipse's Servers view, right-click > Open, then go to the Deployment Scanners tab. Here you can:
- Enable/disable
jbosstoolsscanner1 - Modify scan intervals
- Toggle auto-deployment on save
- Enable/disable
- Fixing Duplicate Deployments: If you see your app deployed twice, check if both the default scanner and
jbosstoolsscanner1are picking up the same artifact. You can temporarily disable one (either comment out the default scanner instandalone.xmlfor testing, or disable the JBoss Tools scanner in Eclipse). - Hot-Deployment Not Working?: Verify these points:
- Your project is set to auto-build in Eclipse (check Project > Build Automatically).
- The scanner is enabled in Eclipse's server config.
- WildFly is running in development mode (the default when launched via JBoss Tools).
- Persisting the Scanner for Non-Eclipse Use: If you want to use a similar setup outside Eclipse, manually add a deployment-scanner entry to
standalone.xmlpointing to your project's build output directory, e.g.:<deployment-scanner name="jbosstoolsscanner1" path="/path/to/your/project/target" scan-interval="2000" runtime-failure-causes-rollback="false"/>
内容的提问来源于stack exchange,提问作者Mario Drzic
相关产品推荐
相关产品推荐

