I'm trying to integrate IIS 7 and glassfish server.
So that the webpages from my web app are pulled up from the glassfish server over the internet.
I just wrote a blog post about this. It's pretty simple to do. All you need to do is install a server farm to route your requests to Glassfish instead. Check this post out for more detailed instructions.
http://jstoup.wordpress.com/2012/04/25/how-to-integrate-glassfish-with-iis/
Related
I am new to web development, I am learning it on the way as I develop my application.
I have an ASP.NET Core 6 MVC app that basically does this:
Starts with a Login
After login you can view the data
You can manipulate data on the view page
You can view some logs, and acknowledge them
So, my app works just fine when I run it from VS 2022.
I would like to deploy the app, so it can be used within the company. It all works on an internal network.
I have two options for deployment and to host the app from:
Windows Server 2019 (IIS)
Synology NAS
It really doesn't matter for me, but I have been through more than a dozen of tutorials/videos, but could not get it work either way.
I have tried different publishing methods.
I have .NET Core Hosting 7.0.2 and Web Deployment installed on the Windows server.
Basically my published file structure doesn't look like in some of the tutorials.
The furthest I've got is that I can load the page on the Windows Server 2019 machine, it shows the login page, but after I press "Login" it says ".../LoginController" Page not found.
So, after this chaos, can anyone give me some guidance where should I look for the solution? I thought it would be a good idea to use MVC, but now I think it would be much easier with a simple ASP Web app...
Eventually, after I got to the Login page (as I mentioned), I figured out the problem there. I am using cookies, which were set to "secure" in the program, but I was usint http instead of https. As a test, I have set the cookies' "Secure" property to "false", after that it worked.
At least I know where to go next.
My company is looking to develop a web product that will need to run on both Websphere and IIS. Ideally, we would like to use the same framework for both, but I am currently ignorant of the options, if there are any. On IIS, we would most likely use ASP MVC, and JSP on Websphere. Is there some common technology we could use on both platforms?
IIS is a web server. Websphere (or what just the term Websphere commonly refers to) is an application server, Websphere Application Server (WAS). IIS would be more comparable to IHS (IBM HTTP Server) or Apache HTTP Server.
So the answer to "Is there some common technology we could use on both platforms" is probably JSP since WAS is mostly just a Java application server.
A reference for running JSP on IIS Lightweight servlet engine for serving java application via IIS
Here is a more detailed discussion on application vs web servers
What is the difference between application server and web server?
A more general note: Getting the same application to run exactly the same in both environments will likely be a difficult task for any moderately interesting application.
What would be truly common to both is HTML, CSS, and JavaScript. That is, client-side technologies rather than server frameworks. So I'd recommend at least considering one of the JavaScript MVC frameworks. TodoMVC.com compares several of them.
I have a plain-vanilla MVC 4 Web Api project created using VS2012.
The (/api/Values) works out-of-the-box on the localhost but NOT when deployed on IIS (packages created using the standard "Publish..." from the project menu).
After been through lot of articles and reading suggestion for similar issue I found the Route tester which visualized how IIS was interpreting the request.
As the screenshot revels, the IIS is interpreting ~/api/values as ~/api/values.aspx
Any input on why this is happening and suggestion on how to resolve it is highly appreciated.
Thanks a lot for the help.
I am a new Java developer and I would like to develop a JSF mobile application. I know I could use JSF 2.0 together with Richfaces, IceFaces or PrimeFaces to develop my app, but I think it would run only on the server and I am not sure if it would have access to offline storage and device’s camera, required by the application.
Question: is it possible to use Phonegap or a similar framework to make my JSF mobile app go native?
I don't think JSF and phonegap can be used together. Phonegap's app is HTML/CSS/javascript app, which doesn't require server. It is client only. JSF app is client-server: application logic mostly located on server and all html generated by server. You can't port it to phone now.
If you need access phone's stuff: offline storage, camera, you can create app in phonegap, sends ajax request to your server. Server can provide some API and you can write it in java. You don't need JSF in this case. Google for REST and Spring for java web services. Or better check this question: https://stackoverflow.com/questions/1710199/which-is-the-best-java-rest-api-restlet-or-jersey
You might want to look at Primeface Mobile. It is a UI toolkit for writing JSF web applications tailored for mobile clients.
http://www.primefaces.org/showcase-labs/mobile/index.jsf
I have too many doubts about this topic.
I want to create a clean url website. I know it's possible using .htaccess. Is .htaccsess support in all servers? Where did I get the server information? Using Php info?
.htaccess files are used in web servers such as Apache. Many other web servers like Sun Java System Web Server and Zeus Web Server implement the same synthax. But if you're using PHP, you are probably using Apache.
Source: Wikipedia
You can get info about the web server by using the phpinfo() function in PHP.