Glassfish as webserver? [closed] - java

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 9 years ago.
Improve this question
I am trying to setup glassfish as WebServer for my web application. I have installed the
glassfish in my server and tried to upload the folder I got some error. I have another error asadmin is not recognized if I tried to access from another computer. Any body has worked previously in this issues. Please share your insights and thoughts. Thank you.

The default configuration of asadmin is not configured to respond to connections made from other computers. If it were, then after starting glassfish, anybody could start trying to configure your system, including people who have access to your network that you've never even met.
You can reconfigure glassfish to expose asadmin to external connections, but if you make a mistake, you just let strangers access to your configuration interface. That can lead to a disaster if the strangers are not friendly people.

Related

How to publish web application project? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I want to publish my project on internet through my paid web
, but they doesn't support JSP pages and glassfish.
So is there's any way to publish it?
There are different ways to deploy your build to web servers according to the server. In this situation you telling that you are using glassfish server. It allows three different methods as follows.
1. Using admin console
First thing you should be able to access admin console which is http://localhost:4848. Follow the link below the step by step guide to deploy from oracle help.
https://docs.oracle.com/cd/E19798-01/821-1757/ghgjn/index.html
2. Using command line
You should be able to access command line with asadmin commands. Use following guide to deploy using command line.
https://docs.oracle.com/cd/E19798-01/821-1757/ghgjj/index.html
3. Deploying an Application Automatically
You can deploy applications automatically by placing them in the as-install/domains/domain-name/autodeploy directory, where domain-name is the name of the domain for which you want to configure automatic deployment. Follow the link below to step by step guide.
https://docs.oracle.com/cd/E19798-01/821-1757/ghgmi/index.html

How to run a java dynamic web project from another machine using ip address [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I have developed a java dynamic web project and i am running it now via localhost:portnumber/project Name using tomcat server 6.0. I want to make this project to be run from another machines also by hitting my machine ip address.
So how can i achieve this?
Thanks in advance.
Yes, its very much doable. very easy if you are on same network. You can access it with below format
"YOUR_MACHINE_IP:PORT_NUMBER/project Name"
make sure the port is not blocked for outside requests. possible if firewall configured.

How to run java files in a web server [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 9 years ago.
Improve this question
i am creating an android application which has got two parts a client part and a server part. So the client will be asking the serveer for a particular data and server need to give it back to the client. My question is how i can run this server program (jar file ) in a web server. I have tested it locally using eclipse but i need to know how i can put this into a web server and run it there. So that the client can use a data connection and connect to the server program and get back the respose from there Sorry for the inconvenience caused and a thank you in advance
From the way you describe your server it sounds like a simple .jar file that you built. If this is the case, you can simply deploy the jar on any compatible computer (or webserver) that you have shell access to.
Build runnable jar in eclipse
Place the jar file on some server
Make sure the server has java installed (same java you used to build your runnable jar)
Run the jar using java -jar path_to_jar.jar
To answer your question, you can run this in the background of a server running other services as long as you pick a port that isn't already in use. Make sure you enable port forwarding on your router/firewall (if you have one) if you want to access the service externally.
You will require Tomcat server for running Java ,jsp
To start with hosting this link might help you.
How to host a JSP website on a webserver?

JNLP Client requests resource from server multiple times before checking jar [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 9 years ago.
Improve this question
The server reports that the JNLP client requests resources multiple times before checking jar.
It may be the wished-for resource is requested up to 10 times from the server, before finally checking and finding the it in the loaded JAR-file.
My app is deployed as an applet using dtjava.embed() and a JNLP-file.
The applet does start, but only after a big delay for the 100+ requests it sends to the server first!
Any ideas on what is causing the redundant requests, and how to fix it?
So it was actually this page which lead me to the solution:
Java WebStart slow, requesting libraries from invalid folder
I didn't know about indexing of JARs at all. Now I do. And as soon as I added an index to the JAR, the problem went away!
Thank you all.

Monitoring application-specific metrics using JMX and Hyperic [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 3 years ago.
Improve this question
My webapp exposes some application-specific metrics (think "orders placed") via JMX, which I'd like to monitor using Hyperic HQ (open source edition).
According to the Hyperic Inventory Model, my Linux server is called a Platform hosting my Tomcat 6 Server, which in turn hosts Services (e.g. "Servlet Monitor") that finally expose Metrics (e.g. "Error Count per Minute").
I assume I need to develop a custom Hyperic plugin (just an XML file, really) that would point the agent and server at the correct JMX MBeans. Ideally, I would like to see my webapp listed as a Service hosted by the Tomcat 6 Server, but looking at the Plugin Development docs, that doesn't seem to be possible.
Maybe that's not too bad anyway, because in theory, I might want to switch my app to Jetty. But I figure that's a very common use case, so are there any best practices? I couldn't really find any examples of this on the web, so I thought I might just ask the experts..
Please note: The Hyperic docs I linked to seem to require an account to view.

Categories