A simple web search didn't really turn up any examples... so I'm wondering if anyone could point me to any information on configuring Spring on Glassfish? Everything I've been finding is horribly outdated.
Thanks!
Download Netbeans 6.8 it will give you glassfish and spring configured by default.
http://netbeans.org/community/releases/68/
Configuring Spring is not really related to the fact that you are using GlassFish or Tomcat or whatever, you just configure it for an application that you then deploy on a server.
If you have a specific GlassFish related issue, you should probably clarify the question.
Related
I have a web app built with Java, Spring MVC, and JDBC. The result is a WAR file.
To run it, the user has to install Java 8 JDK and Tomcat, and deploy the WAR file to the Tomcat server.
It would be great if they could just download the one file run it as a standalone application.
That is, run "the WAR file" and just browse to http://localhost:8080/myapp
Also, on Windows it would be great it was setup as a Server (like Tomcat is when installed with the installer).
Is there any way to do this? Maybe with Spring Boot or something new like that?
Yep, Spring boot is the way to go.
It allows you to build an executable Jar with all dependencies and a Tomcat (by default, can be changed) embedded.
But users will still need to download a JRE to execute the Jar, and a database if it's required, but you can use en embedded database like H2, HSQLDB..., depends what is your needs.
Yes . you can use spring boot to achieve your results. Kindly refer the below link for sample code
https://mkyong.com/spring-boot/spring-boot-hello-world-example-jsp/
You can use embedded jetty server using maven but that would require you to setup few things your app and may have align your existing app, please check this article for more information.
Jetty is similar to tomcat server in terms of running spring application, there are not much difference in terms of development. Tomcat is just more famous.
Other option as others said, is to migrate your app to spring boot which would be easy if you already have app written in spring (But that depends how much code you have and how much time you have)
im new to Java Spring and when i am starting netbeans with a new web project, i have the option to choose a framework. When I'm choosing Spring MVC, i have got an embedded tomcat out of the box. I liked it very much! So easy it can be! But this make it complicated to understand what is happing behind. I want to know, how to create a https connection, without configuring in the tomcat settings. (Or is this the only way?) I tried this one, but than you have to start tomcat manually with the batch-file. When using http-connection und you running your project it usally reachable and you do not need to start tomcat! I dont know how it works, but i think it starts the embedded tomcat and listing to a random port, the url is printing out when starting project. Another question is, where can i change the url name? Now i have this one:
http://localhost:8084/projectname/
And i want to give a customer name. Maybe someone answer to this question or post a link with useful information how to configure embedded tomcat. For me it is important to keep the default construction of java spring in netbeans!
And i want to use the dispatcher.xml, web.xml -> So don't want to switsch to use tomcat in my javacode! Hope that this is possible!
Thank you very much, Mira.
I have a java application which I was running using tomcat server. Now I need to run the same application in jboss server.I am new to jboss, I tried deploying war file in jboss but not able to do so.
I don't know what changes needs to be done for application to run on jboss.
Any one please guide me.
Thank you.
An obvious answer would be Read The Friendly Manual.
You can configure JBoss to autodeploy files in the standalone/deployed/ directory for example, you can also use the maven-jboss7 plugin to handle deployment from maven.
I'm sure the jboss community forums have plenty of examples.
I am currently developing a portal for a client, and as a part of the delivery, i have to give them minimal configuration of jboss 4.2.3GA
I want to ask You, if dotcms has any minimum system requirements specification.
If not, can you recommend me the best way to get that minimal configuration?
I am using dotcms 1.7a with deploy on a cluster.
Thanks
As I know the best solution will be to start with all configuration and remove unnecessery services. I don't know dotCMS and cannot tell what services should be removed.
Here you can find more information about removing services from JBoss:
Tuning and Slimming JBossAS
JBoss 5.x Tuning/Slimming
I'm making a little project with Seam, Hibernate and JSF. This project run on JBoss 5.1.
My boss wants to deploy this project on WebLogic. I read on the seam documentation that seam and WebLogic don't work fine together.
I would like to know if I can use Hibernate (with JPA) and JSF on WebLogic and what framework (struts, spring?) I can use to replace Seam.
Edit: I read in the seam documentation (chapter 39, weblogic integration) and I find that:
For several releases of Weblogic there has been an issue with how Weblogic generates stubs and compiles EJB's that use variable arguments in their methods. This is confirmed in the Weblogic 9.X and 10.0.MP1 versions. Unfortunately the 10.3 version only partially addresses the issue as detailed below. So, I want to know if other problems like this exist.
Edit 2: I use Weblogic 10.3
What do you mean by "don't work fine together"? I've already seen Seam applications on WebLogic and the Seam documentation provides detailed instruction to run Seam on WebLogic without mentioning any blocking issue.
If you have something specific in mind, please clarify. But in the current state of the question, my advice would be to stick to Seam and to deploy your application on WLS.