I am completely new to Terracotta and trying to understand it by following an example given in this post - Integrating Terracotta EHCache for Hibernate with Spring PetClinic
I was able to download and make the Sprin's petclinic application up and running but I am stuck on what software to download for terracotta as given in Step 4:
Step 4 - Install Terracotta
Download Terracotta from the http://www.terracotta.org/download. Unzip
and install into $TC_HOME
I went to terracotta site and got confused on what software I need to download for working on the example that I am following.
I followed the SO post for Is Terracota Cluster still opensource? and registered myself with terracotta and then again I see multiple softwares available for download in Terracotta site
Please help me on what is the software I need to download for this example.
Once you are on the Terracotta Open Source download page, what you want is the link inside section Terracotta Server Array which points to the terracotta-{version}.tar.gz archive.
Note that registration is not mandatory and can be skipped - see X icon on top right of the registration form.
Related
I have been trying to understand and clone the spring mvc login and registration process. As far as I know I am following the same code and process. Only thing I have changed is database details.0 Which works fine I am able to insert the data into the MySQL (8.0.27) database using test file. I am getting the same error even when I am trying his code I am getting error.
here is my code: https://drive.google.com/drive/folders/1JNkZp_O1Lh0y_1NdZ-A85KI1gfgy0_Em?usp=sharing
here is GitHub code: https://github.com/javabyranjith/spring-framework-mvc/tree/master/springmvc-userlogin
Errors I am getting:
action keyword in form was giving error "element loginProcess is not found"-> so I changed it to the form action then it worked
The origin server did not find a current representation for the target resource or is not willing to disclose that one exists.
my questions are
can a different version of Apache Tomcat(10.0.13) server can cause the issue?
since I am using new Eclipse so I have updated the new libraries can this cause the issues?
Please suggest the changes so that I can run this project. Suggest the changes here or directly change it in the google drive folder.
Tomcat 10 does not work with Spring 5. Downgrade to Tomcat 9.
10th has jakarta packages renamed from javax, which spring 5 does not support.
Friendly advice, if you are using code from git, they left versions of stuff like java and tomcat for a reason, and the newest versions like Tomcat 10 and JDK17 went through a lot of changes, so always try with suggested versions and try to migrate them to higher ones. Except for Tomcat 10, you will have to wait for Spring 6 for that.
As for the new eclipse, it does not make any difference, the maven project is still the maven project, src, and pom.xml, the structure remained the same.
First try with suggested versions then you can ramp them up once you are sure that it is working.
Terracotta server array is successfully running but the management console that comes with the Terracotta Server Open Source Software (OSS) kit is not working. when the terracotta server array is started ,it says "2019-01-05 11:58:16,739 INFO - Management server started on 0.0.0.0:9540" but I get a not found error when I try to hit the url. Can anybody suggest how to view the caches stored inside terracotta or how can I access the management console?
According to "http://ww1.terracotta.org/documentation/4.1/tms/tms#enable-agent", management-console/bin/start-tmc.sh can be used to start the terracotta management console. But in the kit "TERRACOTTA SERVER 4.X AND OLDER" downloaded from "http://www.terracotta.org/open-source/" doesnt contain an file as start-tmc.sh
the way it works is that the Terracotta Server exposes REST endpoints via the built-in management server that's running on 0.0.0.0:9540 (hence why you see 2019-01-05 11:58:16,739 INFO - Management server started on 0.0.0.0:9540).
And then, you have the TMC (Terracotta Management Console) component that delivers the UI portion, and reaches back to the Terracotta management server to fetch the stats / data etc...
Now, the open-source version does not offer the Management Console...so that's why you don't see the "start-tmc.sh" in the kit.
But you should be able to access the REST endpoints from the built-in Terracotta Management Server anyway...
It should be accessible at: http://host:port/tc-management-api
And from there, you should be able to fetch all sort of data items using various REST calls (eg. /agents/topologies/ for the server topology, etc...)
Here is the latest doc for the Terracotta REST if you want to explore further:
https://documentation.softwareag.com/onlinehelp/Rohan/terracotta_436/bigmemory-max/webhelp/index.html#page/bigmemory-max-webhelp%2Fto-title_terracotta_rest_developer_guide.html%23
Finally, as explained in the doc (at https://documentation.softwareag.com/onlinehelp/Rohan/terracotta_436/bigmemory-max/webhelp/index.html#page/bigmemory-max-webhelp%2Fco-use_rest_api_versions.html%23), there are 2 API versions available...with the "v2" version being available and recommended for Terracotta 4.2 and higher (hence you should use the v2 with 4.3.6)
Lost of example REST calls at https://documentation.softwareag.com/onlinehelp/Rohan/terracotta_436/bigmemory-max/webhelp/index.html#page/bigmemory-max-webhelp%2Fco-oper_examples_of_uris.html%23... but couple here as well:
curl http://localhost:9540/tc-management-api/v2/agents/info
curl http://localhost:9540/tc-management-api/v2/agents/topologies/
curl http://localhost:9540/tc-management-api/v2/agents/cacheManagers/
Hope that helps.
I needed to deploy IBM Filenet P8 Content engine in my local system. How can I get the ear file to deploy it locally? I searched in the net, but I didn't get any link for downloading.
Installing Content Engine is much more than deploying corresponding EAR. While you can obtain that EAR via IBM Fix Central as part of any fix pack for Content Engine, this won't get you anywhere. A lot of configuration is required during the installation.
You would need IBM passport advantage access to get the binaries for installation. I don't think there's a way to get to other than this.
In order to know which revision number the application is built from, we use to give the ears we deploy to Glassfish names like myapp_2012-01-20_rev22123.ear. Then we can simply login to Glassfish and see what version is deployed in the web interface (as the appname is the name of the ear file). A downside of this approach is that we need to do a manual undeploy/redeploy to update the name...
But I would like to script the undeploy/deploy process, and having each version of an ear get a different name is not very suitable to scripting this redeployment process. Glassfish 2 does not support the "list applications" goal that Glassfish 3 has, which I could have used to retrieve the application name to undeploy.
So is there any good strategy that will easily allow us to see what version is deployed of an application, and that does not suffer from the above fault?
It would be preferable if this meant we did not have to change the existing applications (like add a jsp page or something to show the current scm revision), but a change in a Maven build script would be acceptable.
I faced a similar issue, I finally came around it by using maven-buildnumber-plugin and writing a simple servlet to get build information. You can find the details in the blog post I made.
Why not use the built-in GlassFish Server versioning to assign a version number at deploy time? This will also enable you to rollback to prior versions. For example:
asadmin deploy --name MyApplication:2012-01-20_rev22123 MyApplication.ear
There is more information on application versioning here:
http://docs.oracle.com/cd/E18930_01/html/821-2417/gihzx.html#gkhhv
Hope this helps.
and if yes, where it could be found?!
According to this infoq entry, they have opensourced it. But right now, there is not such a product in their website.
This page, http://terracotta.org/dl/oss-download-catalog , has the links to the opensource version of terracotta and related products. You may be presented with a page requiring you to register prior to the download. I tried downloading from there yesterday, and I was able to successfully download terracotta and get it running locally.
Look here:
Terracota Source Repository