Automatic jsp recompile on Jboss AS 7

Most of the applications I work on are based on jsp's and usually run on Jboss AS of various versions. And even though the newer applications are maven based and run on Jboss AS 7, almost nothing have changed in a matter of development. At least I thought that nothing have changed, but that was only because my carelessness.
When you are developing web tier, there is no compiler telling you what is wrong in the real time, you depend on syntax validation only. And that enables you to do a lot of small mistakes that usually end up with error 500 and a need to redeploy the application.
But this is the case only until you discover the right configuration!
We are currently using Jboss AS 7.1.1.Final as our target runtime, but as soon as I have searched for automatic jsp recompiling, I found a known issue which affects the very same version.
This leaves you with a handful of solutions. These are the ones I find viable.
  • use the version 7.1.0.Final for development
  • use the version 6.1.0 Alpha (EAP alpha built from AS7)
  • modify your Jboss 7.1.1.Final according to this post
I personally chose to use EAP 6.1.0 Alpha, mostly because I did not wanted to use older version (7.1.0.Final) and I prefer not to tamper with core server libraries. And I generally assume that newer is better. EAP 6.1.0 Alpha corresponds to Jboss AS version 7.2.0.Alpha and I have not found any compatibility issues yet. And if you are wondering why I have not chosen the version 6.1.0 Final, it is because only the Alpha is easily downloadable (without registration).

Now the configuration itself. You can either edit standalone.xml or you can use the server's web console.

Manual standalone.xml edit. You just need to insert these three lines into subsystem "urn:jboss:domain:web". This configuration is nearly the same whether you chose Jboss AS 7.1.x or EAP 6.1.0 (the only difference is the version of the subsystem: EAP 6.1 runs 1.4 while AS 7.1.x runs 1.1).
<!-- the next line already exists -->
<subsystem xmlns="urn:jboss:domain:web:1.4" default-virtual-server="default-host" native="false">
<configuration>
   <jsp-configuration development="true" check-interval="1" modification-test-interval="1" recompile-on-fail="true"/>
</configuration>

Web console approach is a bit easier and more transparent. The only thing you need is an user with web-console access. Than is is only a matter of a few steps.
  1. select the Profile tab on top
  2. select the Web in the menu on the right
  3. select Servlet/HTTP
  4. click Edit button
  5. check the Development? checkbox
  6. (optional) under the Advanced choose a custom Check Interval
  7. click Save button
  8. restart/reload the server

That's it! All you need to do now is to start up the server and modify your jsp's all you want without the need for the redeployment. Cheers!

Comments

  1. I am using jboss-as-7.1.1 and after making the changes it is not working.

    ReplyDelete
    Replies
    1. Hey, are you sure you have done what http://mobiarch.wordpress.com/2013/02/22/configure-automatic-publishing-from-eclipse-for-jboss-as-7/ suggests? Modifications in my post apply only to EAP 6.1.0 Alpha. If you want to use jboss-as-7.1.1, you have to replace one library as mobiarch propose.

      Delete
  2. Great Article on JSP recompile. DO you have any article on JSF compilation process please

    Java EE online training | Java Training in Chennai

    ReplyDelete
  3. Nice Info Regarding Automatic jsp recompile on Jboss AS 7 My sincere thanks for sharing this post Please Continue to share this post
    Java Training in Chennai

    ReplyDelete
  4. I am really happy to found such a helpful and fascinating post that is written in a good manner. Thanks for sharing such an informative post.
    Java Training in Chennai
    Best Java Training Center in Chennai

    ReplyDelete
  5. Great Article… I love to read your articles because your writing style is too good, it is very very helpful for all of us and I never get bored while reading your article because,
    Java Training in Chennai
    Devops Training in Bangalore

    ReplyDelete
  6. The share you really give us excitement. Thanks for your sharing. If you feel tired at work or study try to participate in our games to bring the most exciting feeling. Thank you!Python Online Training | Learn Python Online

    ReplyDelete
  7. Automatic jsp recompile on Jboss AS 7 : This Blog is Just Awesome with rare details thank you For sharing the details.
    Devops Training in Bangalore

    ReplyDelete
  8. Those guidelines additionally worked to become a good way to recognize that other people online have the identical fervor like mine to grasp great deal more around this condition.

    Best AWS training in bangalore

    ReplyDelete
  9. Hi
    I dont find this line <subsystem xmlns="urn:jboss:domain:web:1.4" on jboss7.0. can any one pls point out where can i find that tag in standalone.xml


    Thanks
    Ravi S.P

    ReplyDelete
  10. Data science Training Institute in Noida

    Webtrackker Data science Training Institute in Noida Accelerate your career in data science by starting from basics in Statistics, Data Management and Analytics to advanced topics like Neural Networks, Machine Learning and Big Data.



    http://webtrackker.com/Best-Data-Science-Training-Institute-in-Noida.php



    Data science Training Institute in Noida






    Our Other Courses:

    SAS Training Institute in Delhi
    SAS Training in Delhi

    SAS Training center in Delhi
    Sap Training Institute in delhi
    Best Sap Training center in delhi
    Sap Training in delhi
    Best Software Testing Training Institute in delhi
    Software Testing Training in delhi

    Software Testing Training center in delhi


    Best Salesforce Training Institute in delhi
    Salesforce Training in delhi
    Salesforce Training center in delhi
    Best Python Training Institute in delhi
    Python Training in delhi
    Best Python Training center in delhi
    Best Android Training Institute In delhi
    Android Training In delhi
    best Android Training center In delhi


    ReplyDelete
  11. 3D Animation and Multimedia Training in Noida
    Best institute for 3d Animation and Multimedia Course training Classes in Noida- webtrackker Is providing the 3d Animation and
    Multimedia training in noida with 100% placement supports. for more call - 8802820025.
    3D Animation and Multimedia Training in Noida
    Company Address:
    Webtrackker Technology
    C- 67, Sector- 63, Noida
    Phone: 01204330760, 8802820025
    Email: info@webtrackker.com
    Website: http://webtrackker.com/Best-institute-3dAnimation-Multimedia-Course-training-Classes-in-Noida.php

    ReplyDelete
  12. Graphics designing training institute in Noida
    Best Graphics training institute in Noida, Graphic Designing Course, classes in Noida- webtrackker is providing the graphics training in Noida with 100% placement supports. If you are looking for the Best Graphics designing training institute in Noida For more call - 8802820025.

    Graphics designing training institute in Noida, Graphics designing training in Noida, Graphics designing course in Noida, Graphics designing training center in Noida

    Company address:
    Webtrackker Technology
    C- 67, Sector- 63, Noida
    Phone: 01204330760, 8802820025
    Email: info@webtrackker.com
    Website: http://webtrackker.com/Best-institute-for-Graphic-Designing-training-course-in-noida.php

    ReplyDelete
  13. Latest News in Hindi

    Latest News in Hindi- Hindustan channel is the best online web portal in india where you read the all latest indian news in hindi. if you are looking the Latest News in Hindi, live news channel, hindi news channel, live news channels in hindi, live hindi channels then hindustan channel is best for you.
    Latest News in Hindi
    Company address:
    C- 67, Sector- 63, Noida
    Phone: 01204330760, 8802820025


    URL: https://hindustanchannel.com

    ReplyDelete
  14. Sap fico training institute in Noida

    Sap fico training institute in Noida - Webtrackker Technology is IT Company which is providing the web designing, development, mobile application, and sap installation, digital marketing service in Noida, India and out of India. Webtrackker is also providing the sap fico training in Noida with working trainers.


    WEBTRACKKER TECHNOLOGY (P) LTD.
    C - 67, sector- 63, Noida, India.
    F -1 Sector 3 (Near Sector 16 metro station) Noida, India.

    +91 - 8802820025
    0120-433-0760
    0120-4204716
    EMAIL: info@webtrackker.com
    Website: www.webtrackker.com

    ReplyDelete
  15. Thanks a lot very much for the high quality and results-oriented help. I won’t think twice to endorse your blog post to anybody who wants and needs support about this area.
    Data Science Training in Chennai
    Robotic Process Automation Training in Chennai
    Cloud Computing Training in Chennai
    Data Warehousing Training in Chennai
    Dev Ops Training in Chennai

    ReplyDelete
  16. Thank you for sharing valuable information.
    You can also check this links. Hope it can help you and your friend, who is searching a job.
    For Freshers and experienced, and salary to be depends upon face to face interview. For more details you can direct call on this number @ 9990291616
    It is totally free service. Free Free Free !!
    Required Presentation Specialist Only For Male in Gurgaon
    Thank you.

    ReplyDelete
  17. Thank you for sharing valuable information.
    You can also check this links. Hope it can help you and your friend, who is looking for job.
    If you have experienced 2 to 4 years, then you can come for interview round. For more details you can direct call on this number @ +91 8750003480.
    It is totally free service. Free Free Free !!
    Jobs in Travel Consultant Only For Female | Travel Planner
    Thank you.

    ReplyDelete
  18. This comment has been removed by the author.

    ReplyDelete
  19. "Great post! I am actually getting ready to across this information, It's very helpful for this blog.Also great with all of the valuable information you have Keep up the good work you are doing well.
    Digital Marketing Training Course in Chennai | Digital Marketing Training Course in Anna Nagar | Digital Marketing Training Course in OMR | Digital Marketing Training Course in Porur | Digital Marketing Training Course in Tambaram | Digital Marketing Training Course in Velachery

    "

    ReplyDelete
  20. Pretty blog, so many ideas in a single site, thanks for the informative article, keep updating more article.

    Bird Accessories

    ReplyDelete
  21. "Great post! I am actually getting ready to across this information, It's very helpful for this blog.Also great with all of the valuable information you have Keep up the good work you are doing well.lovely post guys.
    AngularJS training in chennai | AngularJS training in anna nagar | AngularJS training in omr | AngularJS training in porur | AngularJS training in tambaram | AngularJS training in velachery

    ReplyDelete
  22. Joadesigns offers Professional SolidWorks training options for every schedule and experience level. Whether you’re just getting started with SOLIDWORKS or need specific training on simulation, data management, electrical design or anything in between, Joadesigns has a SOLIDWORKS training course that fits your needs.

    ReplyDelete



  23. This post is so interactive and informative.keep update more information...
    Tally Course in Chennai
    Tally Classes in Chennai
    Online Tally Course

    ReplyDelete
  24. Thank you for this amazing blog ,
    If someone is looking for the best training institute for software training institute in delhi , i would like to talk about the
    High Technologies Solutions .
    it is the best place from where you get the pratical knowledge of software testing training insitute from here .

    Get software testing traning institute in training in delhi .
    High Technologies Solutions is the best place for the software testing training in delhi . this institute has no. of faculty , the faculty of this institute is very supportive.
    get the job placements from here
    Get job placements from here.
    contact us on 9311002620
    visit the website for more details -https://www.htsindia.com/software-testing-training-courses

    ReplyDelete
  25. Reimage PC Repair Crack is an online computer repair tool that will automatically fix Windows by replacing corrupt files Free Reimage Repair

    ReplyDelete
  26. In this article, we will show you how to activate Windows with Windows 7 Ultimate Crack. Remember that buying Windows 7 keys on Microsoft's official site. Windows 7 Ultimate Free Product Key

    ReplyDelete
  27. Don't worry about the gift for me on this Christmas. My dear sweet family in good health and great mood is everything I want to get. Because that's what I need .https://wishesquotz.com/christmas-wishes-for-loved-ones/

    ReplyDelete
  28. This post is so interactive and informative.keep update more information...
    Website Web scraping

    ReplyDelete
  29. Ioanna Andrianopoulou, innehaver av Afrodite’s Beauty, er opprinnelig fra Hellas hvor hun har tatt sin utdanning, men har bott og arbeidet i Sverige og Norge de siste 7 årene. Hun har over 15 års erfaring i bransjen. Som kunde kan du altså føle deg trygg på at alle behandlinger blir utført på en proffesjonell måte. Website : neglesalong oslo

    ReplyDelete
  30. I am Mohua, the food blogger. Cooking is my passion. I love learning new recipes and experiment them to make a new and unique dishes. I believe if you have a tasty food, your mood will be good.
    I have learnt many old recipes from my mother and grandmother and have given those recipes a modern touch. Anything we do by our heart always gives a positive result.
    Now a days I am looking forward to many new recipes from food articles, and recipe books of my grandmother. I have also found many new tricks and techniques by which you can prepare delicious recipes very easily. Here I am going to share all the things I have learnt. Hope you all will also enjoy this technique of cooking those recipes. Come again and again to learn more unique techniques and recipes.

    Visit here curd calories 1 cup

    ReplyDelete
  31. This comment has been removed by the author.

    ReplyDelete
  32. ERP TRAINING NOIDA is a premier institute for SAP MM training in Noida that offers high-quality training and placement assistance to aspiring SAP MM professionals. With its experienced trainers, unique training methodology, and flexible training schedules, ERP TRAINING NOIDA is the perfect destination for students who want to take their SAP MM career to the next level.

    ReplyDelete
  33. I truly awed after read this content. Do you want to improve your language skills but find it difficult to attend traditional tuition classes. Enroll in Ziyyara’s online English tuition classes today and get a chance for a free demo.
    For more info visit Online English Tuition

    ReplyDelete
  34. Animation and multimedia are rapidly growing fields, with increasing demand for skilled professionals who can create visually stunning and engaging content for a variety of industries. To meet this demand, APTRON Delhi offers top-notch Animation & Multimedia Training in Delhi programs designed to provide students with the skills and knowledge they need to succeed in this exciting field.

    ReplyDelete
  35. Our comprehensiveAutomation Testing Training in Noida is the perfect opportunity for you to become an expert in this dynamic field. With hands-on experience and an industry-relevant curriculum, we offer a tailored program that caters to both beginners and experienced professionals. During our training, you will learn essential automation testing concepts, methodologies, and tools that will propel your career to great heights. Our expert trainers guide you through various automation testing frameworks, such as Selenium WebDriver and Appium, equipping you with the skills needed to automate software testing processes efficiently.

    ReplyDelete
  36. Advanced Topics in Data Analytics at APTRON offer an exciting opportunity for individuals looking to deepen their understanding of this dynamic field. In today's data-driven world, the demand for skilled data analysts is skyrocketing, and APTRON is at the forefront of providing cutting-edge education in this domain.

    ReplyDelete

Post a Comment

Popular posts from this blog

Password hashing in Java

Running scripts written in Clojure as an executable using Inlein