How to configure JSF 2.3 with Tomcat in IntelliJ? - java

I am building JSF project, it is my first project, and when I am trying to run the program on the server which is tomcat-9 and no thing change in .xhtml file display on the browser.
May someone help me and explain how to configure IntelliJ with JSF ?
see project structure here

There are many getting started sites.
For example https://www.jetbrains.com/help/idea/javaserver-faces-jsf.html.

Related

Create Project Java Web without maven and Ide

I am trying to create an application for creating java web projects in a personalized, automated way, without maven, without IDE, but so far I have not seen anything on the internet that would suit me. Could someone guide me or tell me how I can do it?
I consider your question differently that you want to create an application which when run can automatically create web projects !! If that is correct you need to write set of programs which would make files necessary for your web project like generate java files, Jsp files, XML, properties etc depending on complexity of your web projects, also if customized with parameters it can make different kinds of projects. Then you will need to make war file which is going to be the final deploy-able component with these files. This is all that you would do manually through IDE and maven would be the jar files you would need if any. Let me know if you need any more help.
Please accept and like if you appreciate my gesture to help with my ideas n experience.

build lucene web application with tomcat

I had developed a lucene search engine (with Lucene 5.2.1) and now I want to embed it into a very simple web application (it has demonstrative purpose, it will run in localhost).
This web application should let the user insert some keywords and navigate through search results (in other words it should let the user read the index that I had created, with appropriate html formatting). I had already made some simple html GUI with Bootstrap.
I'm very new to web applications, but I had been told that a good idea would be embedding Lucene in a TomCat server. I had visited this link, but it's quite old and not very detailed. I have tried to look for "lucene tomcat" but I get results about SolR or very specific posts.
Can anyone please suggest me a good resource or a general approach to my issue?
Many thanks
My solution:
I wrapped my search engine library into a JAR file.
I downloaded zipped version of TomCat 8 and installed it into my Eclipse environment as a new Runtime Enviroment.
I made a Dynamic Web Project in Eclipse (see this video lesson) using TomCat 8 server.
I put the JAR into my webapp (should be something like WebContent\WEB-INF\lib\searchEngine.jar)
I created a Servlet to handle user input.
I did the rest using very simple JSP pages, embedding Java code that uses my JAR (I know, that is not so good but it works!)
Cheers!

Can i use Coinbase API with dynamic web application without using Maven?

I'm new in Coinbase, but little confused. I get stuck every time with Coinbase API. Have a look at this API .. https://github.com/coinbase/coinbase-java
I want to make a project with this API using JSP. Where customer could play a role with Bitcoin. But If you see this API, it generally says to use Maven. But i don't know Maven. I've good handling at jsp and servlet. Simply i just know to create a project as "dynamic web project" into Eclipse.
So, Is it possible to use Coinbase API with dynamic web project without using Maven anymore. Please help.
Help, would be appreciated!
Yes, you can just download jar from maven repository http://mvnrepository.com/artifact/com.coinbase.api/coinbase-java/1.5.0 (and all its dependencies...). I highly recommend for you to learn what is maven (or gradle) and just use it to control your libraries. The best solution for now is to just install maven and git and follow the steps in Manual section on this page. It will produce for you ready to use jar lib which you can add to your project. The $YOUR_JAR_DIRECTORY change with folder where you want to build this lib.

Which Java library contains the javax.faces.webapp.FacesServlet class?

I'm working on a NetBeans project and can't seem to get my website to run properly because my internal Apache Tomcat server keeps returning an error that it cannot load the FacesServlet class. Which available library contains this? Currently I have the Java EE Web 7 API and Java DB libraries loaded on.
You use service like findjar to find jars that contain some class:
http://www.findjar.com/class/javax/faces/webapp/FacesServlet.html
Oh, just now found out it was under the JSF 2.2 library! Sometimes it just pays to ask to think more about it! :)

How to view BIRT reports using Java in Eclipse

I'm creating an appointment booking and financial application for a start-up business opening soon. Everything is going well and I'm nearing the end of this project, yet I would like to create reports that the user can run, print and export. I have added the BIRT developer into Eclipse and have successfully created several reports which preview well. What I would like to know is how I can get the reports to run from Java code? I have searched the web for ages and have not found a solution. The reports are sitting in the same project folder as all my classes.
Your help is most appreciated..
Thanks
If your application is a web application you can use BIRT engine inside your WAR and create all your reports and charts, and then share them using the application server.
Otherwise, if your application is an Eclipse based application, I think you should use the BIRT eclipse plugin, that contains the engine, to build reports and then you can use the default eclipse file association to show them to users (ie using internal browser).
I believe the most common way of sharing BIRT reports is to use Apache Tomcat. This tool allows the report to be run as HTML, PDF, Excel 2003, and a number of other formats. As both BIRT and Apache Tomcat are open source, initiation is not as simple as more costly products but there are a number of solutions on the web for any problem you might encounter.
http://tomcat.apache.org/

Categories