Wildfly deployment scanner "jbosstoolsscanner1" - wildfly

I have standalone installation of Wildfly server on path C:\Tools\wildfly-10.1.0.Final and in standalone.xml defined following deployment scanner:
<subsystem xmlns="urn:jboss:domain:deployment-scanner:2.0">
<deployment-scanner path="deployments" relative-to="jboss.server.base.dir" scan-interval="5000" runtime-failure-causes-rollback="${jboss.deployment.scanner.rollback.on.failure:false}"/>
</subsystem>
For developing Java EE apps I use Eclipse IDE with JBoss Tools pluging for enterpirse development. Recently I started to use latest Eclipse update (Oxygen 3) with newest JBoss Tools 4.5.2 Final.
When I configure new Wildfly server and start using it it automaticali inserts fallowing scanner in standalone.xml:
<subsystem xmlns="urn:jboss:domain:deployment-scanner:2.0">
<deployment-scanner name="jbosstoolsscanner1" path="C:\Tools\wildfly-10.1.0.Final\standalone" deployment-timeout="5000"/>
</subsystem>
This scanner starts to deploy bunch of files to Wildfly including standalone.xml, then Wildfly goes nuts.
How to disable this automatic scanner or at least how to change folder which this scanner scans (to change path attribute to proper deployments folder of Wildfly)?

To disable the Deployment Scanner, stop your Wildfly. In Eclipse open the Servers-View and double-click on your server. In 'Deployment Scanners' uncheck the following options:
Add missing deployment scanners after server startup
Remove added deployment scanners before shutdown

I was having the same problem. I manually modified standalone-full.xml to remove deployment-scanner for jbosstoolsscanner1. That has fixed it for me. I am not very sure though if this has any side-effects.

Related

Migration from JBOSS-3.3.2 to JBOSS EAP 7.1

I am in process of migrating one of our web application from JBOSS-3.3.2 to JBOSS EAP 7.1. As Jboss 3 will not support JDK1.8*. I was instructed to migrate the jboss to latest jboss version available in our repository.
I referred the following link but it confuses me as both the versions folder structures are different.
https://access.redhat.com/documentation/en-us/red_hat_jboss_enterprise_application_platform/7.1/html-single/installation_guide
One thing I understood is I have to use standalone/deployments folder for my application(war) to be deployed.
In 3.x we have run.jar, run.sh, run.conf. But in newer versions these are not available instead we have jboss-eap.conf, jboss-eap-rhel.sh but no run.jar any where.
Is there any guide or steps available to be followed for migration.
I was not able to find in google.
In the latest JBoss EAP, you have to start the JBoss EAP server using standalone.sh (for standalone mode) or domain.sh(for domain mode) file.
The .sh file is located under $JBOSS_HOME/bin directory.
For configuration, you can configure using standalone.conf or standalone.xml file in standalone mode and for domain mode, you have to add configuration inside domain.xml file.
For migration please refer to the official document.

Jboss 6 in Eclipse runtime installation configuration directory

I have an existing JBoss project on which I am working on.
Currently every time I make a change, even to a JSP file, I have to run an ANT build to make a EAR file and then import the file in JBoss localhost that I started from the command line.
I would like to run JBoss in Eclipse to make development easier.
I have installed JBoss Tools from Eclipse's Marketplace. However, when I try to install a runtime environment, I cannot get past the configuration screen. Even when I point the configuration directory to the directory with my standalone.xml.
This is the picture of screen I cannot pass
Any ideas?
On your New Server Runtime Environment window, instead of selecting JBoss 6.x Runtime from the JBoss Community folder option, you should instead select the folder Red Hat JBoss Middleware and choose the JBoss Enterprise Application Platform 6.1+ Runtime:
That's the runtime suited for JBoss EAP 6.4.0.
Afterwards you just need to set your Home Directory path.

Not able to deploy war in JBoss AS 7 through Eclipse luna.

I am using Eclipse luna with Jboss tools 4.2.0.Beta2 and JbossAS 7.1.1.
I am deployed my application from eclipse and started Jboss.
Then i'm getting a problem that deployment starts completes the deployment and again re deploy the application.
Its happening for more than 2 times and undeploys.
I am not able to deploy my application.
Please share the resolution for the above problem.
On your standalone.xml edit deployment-scanner with enabled="true" and auto-deploy-exploded="true"
<deployment-scanner path="deployments" relative-to="jboss.server.base.dir" scan-enabled="true" scan-interval="5000" auto-deploy-exploded="true" deployment-timeout="1200" runtime-failure-causes-rollback="${jboss.deployment.scanner.rollback.on.failure:false}"/>

Weblogic hot deployment during development (like WSSD/RAD)

All my previous projects were on websphere. I am right now in a team developing an application on weblogic.
In Websphere development (WSSD/RAD) the server was more "integrated" with the IDE, so a build could automatically trigger an incremental deployment to the (development/local) server.
Is such a setup possible in a weblogic environment? I googled for some weblogic plugins for eclipse, but I dont see this mentioned as a feature.
What is the best setup for development on weblogic+eclipse, so that the build/deploy/restart overhead is minimal during development?
There is a WebLogic ant task for redeploying an application. I'm using this from a command-line build.xml as a separate 'redeploy' target, under WLS 9.2, but it can be added to Eclipse's build quite easily I think:
<!-- Redeploy the application to WebLogic Server -->
<wldeploy
action="redeploy" verbose="true" name="<application name>"
user="<admin user>" password="<admin password>"
adminurl="t3://<admin server URL>" targets="<server name>" />
<server name> might be a managed server, or could be your admin server, depending on your configuration.
If you're using sessions and are going to be redeploying frequently, you may find it helpful add a persistent-store-type to your weblogic.xml to allow sessions to span redeploys, if you aren't doing so already - but as so often, depends what you're doing with your application.
Edited to add link to docs

jboss 5.0.1 doesnt support hot deployment?

when i hot deploy a bean jar , it doesnt works. it needs a Jboss restart. hot deployment works fine with Jboss 4.2.2. but Jboss 5.0.1 doesnt support hot deployment?
By default hot deployment is turned on for all JBoss versions. For JBoss 5.X check if you have proper configuration in $JBOSS_HOME/server/xxx/deploy/hdscanner-jboss-beans.xml file.
That's the theory however. In JBoss 5.0.X I had a serious issues with hot deployment mechanism, for instance I could deploy application only one time, the redeployment demanded server restart (as in your case). This issue is partly gone in JBoss 5.1, so if you can upgrade to that version.
You can also try theoretically the savest method of deployment through managed beans facility:
$JBOOS_HOME/bin/twiddle invoke "jboss.system:service=MainDeployer" deploy /my/path/to/app/myapp.ear
Also make sure if your JAR file is proper, configuration files are properly formulated. JBoss 5.X is much more restrictive then previous versions when it comes to configuration files. For istance in JBoss 4.X persistence.xml file need not have XML Schema declaration, in JBoss 5.X it is required, etc.