I am using netbeans 6.9.1 with glassFish server.I created a web application with glassfish server. while running the application, its running in address http://localhost:29927/. But i want to view my application in browser in the address http://vigneshsr (vigneshsr is my computer name). How to do it,where to change the port number in glassfish (as we do it in apache tomcat).Guide me.
Thanks in advance.
You can configure glassfish using the admin web gui at http://localhost:4848
Here you can configure your network listeners to change the port etc.
If you want to use a different address on your local system, you'll need to configure your hosts file, this link explains how to do this:- Edit Hosts File
Related
Like the title says I publish my ASP.NET Core API to the file system on the PC I developed this application on. If I run this published version HTTPS is working fine. When I transfer the published folder to another machine though, HTTPS is not available anymore. Is there anyone that can help me with this problem?
According to your description, I suggest you could firstly check the https port is opened or not.
netstat -aon
If you find the 443 port is on using. Then you could check the pid. By using task manager.
If the process is not IIS or asp.net core process, you could end that process and restart the asp.net core process. Then it will work well.
I have installd IIS server in windows azure virtual machine using ARM template also deployed one application. But when I am accessing the DNS name/Public IP of my VM the default IIS server is coming. I am unable to access my website.
Please give some idea how to access the deployed website using DNS name or public IP.
I am following the below github template for application deployment:
https://github.com/Azure/azure-quickstart-templates/tree/master/201-web-app-vm-dsc
In case you are using Visual Studio 2012 or higher, you can create PublishProfile and use the Publish feature in order to deploy your Web App to Azure service. Refer to the Build->Publish menu item.
I don't know if your website is reachable on port 80 but you have to setup a VM endpoint if you want your site to be published on another port than the default one.
Hope it helps !
If you're using the sample quickstart "as is" the problem is likely that you're missing the virtual application in the path (it's probably not the best sample). If you're hitting the VM using an URI like this:
http://your-dns-name.westus.cloudapp.azure.com
You need to add the web app path onto the end, e.g.
http://your-dns-name.westus.cloudapp.azure.com/webapplication
You can double check the name of the web application by using IIS Manager on the VM, but I think that should be the default name for that quickstart sample.
I am able to start Glassfish through command line. However, when I try to start the server through Eclipse I encounter the following error:
The Eclipse plugin cannot communicate with the GlassFish server, status is :CREDENTIAL_ERROR
I have checked my login credentials (admin/adminadmin) and they are correct (I'm able to login into the admin console on port 4848 with the same user/pass). Here is my system info:
OS: OS X 10.6.7
Eclipse: Indigo Service Release 1
Glassfish V3.0.1
Glassfish Plugin: GlassFish Server Open Source Edition 3 (Java EE 6)
GlassFish user/pass: admin/adminadmin
Please let me know if there is a solution to the problem.
Here is what worked for me - after some googling I saw a post saying the error message is misleading and it might be a port conflict. In my Eclipse I have a proxy server entry which uses port 8080 (same as GF). So I changed port to 9090 in domain.xml and GF started no problem. My system is Win7x64, Eclipse 3.7.1, GF 3.1.1
In the "Servers" view, right-click on the glassfish server and choose "Open"
Within the section "Application Server", ensure that "Use Anonymous Connection for Administrator Commands" is NOT checked off.
Application Server
You can edit some runtime properties fro the Application Server(GlassFish or Sun)
Domain Directory
Admin Name
Admin Password
Admin Server Port Number
_ Use Anonumous Connection for admin Commands.
^
If checked, eclipse plugin does not use your login credentials (admin/adminadmin) .
kill java process from task manager if it not show java process then restart your pc >> it work for me
As has been stated a few times here, the port conflict will cause this. I found that I could not edit the port information in Eclipse, I had to edit the domain.xml file. I searched for 8080, which took me straight to the tag. In here, i changed http-listener-1 form 8080 to 8000.
I then had to remove the GlassFish Server from the Servers tab in eclipse, and re-add it back. (this was many times faster than restarting Eclipse). now the new port is identified, and I was able to start GlassFish server.
Note: I am using the Oracle Enterprise Pack for Eclipse, not the generic eclipse plug-in.
In my case, i did "ps -ef | grep java" and realized there was a glassfish process already running. I think it started as part of the installation. I killed it and started the server from Eclipse again and it worked like a charm
There is another service at 8080 (or your port definition in GF settings).
For me, stop this service and try start GF by Eclipse.
Check for Tomcat running, or others apps.
Take a look at your Anti-Virus Web Scanning settings. Mine had an entry for port 8080 to be scanned for http traffic. I removed it and the server could then be launched without a problem from within Eclipse.
Regards
Chris
This is caused to me from AVG Network Scanner Service.
This service is occupying port 8080 !
I had the problem. Fixed by changing permissions of the domain folder to be writable.
I thought I would just replace the localhost with my computer and it will work but it does not:
http://10.90.108.66/MyWebApplication/Default.aspx
How can I make it work so I can share the url?
Are you using cassini/the visual studio web development server?
if so, this doesn't accept remote connections, you'll have to host it in an instance of IIS
Im testing an ASP.NEt site. When I execute it, it starts the ASP.NET Development Server and opens up a page.
Now I want to test it in the intranet I have.
Can I use this server or I need to configure IIS in this machine?
Do I need to configure something for it to work?
I've changed the localhost to the correct IP and I opened up the firewall.
Thanks
Yes you can! And you don't need IIS
Just use a simple Java TCP tunnel. Download this Java app & just tunnel the traffic back.
http://jcbserver.uwaterloo.ca/cs436/software/tgui/tcpTunnelGUI.shtml
In command prompt, you'd then run the java app like this... Let's assume you want external access on port 80 and your standard debug environment runs on port 1088...
java -jar tunnel.jar 80 localhost 1088
(Also answered here: Accessing asp. net development server external to VM)
No, you can't. It's set up so it only works on localhost, and I couldn't find any workarounds to make it work.
But, here's what I've been doing - I created the website on a specific port in IIS and opened that port up so it's visible on the network. I pointed that IIS website to my website's root folder (the one with web.config in it). Then I continued to use the ASP.NET Development server on that local machine while developing - both IIS and the ASP.NET Development Server can access the files at the same time (unless you're doing something wacky).
Let me know if there's a challenge with running IIS on your machine and I'll update my answer.
I realize this isn't a direct answer to your question, but an alternative to debugging using the ASP development server is to attach to the IIS process: How do I attach the debugger to IIS instead of ASP.NET Development Server?
Nope, stupidly (IMHO) there's no way to get the default ASP.net development server to serve pages to IPs other than localhost. What I did was to use UltiDev Cassini which is very quick to set up and is basically a version of the ASP.net development server compiled by UltiDev, and it will serve pages to any IP address.
Just for those who don't want/cant set up IIS for whatever reason...
Use fiddler or similar on your host - set your browser on the client VM to use the proxy then just use localhost:dev_port as usual on the client.
All requests from the client goto the proxy on your dev machine which routes to localhost on the dev machine and the ASP.net dev server thinks the request is from your dev machine!
You can recompile Cassini to get it to work - there's a fairly easy to remove check for localhost in there. Or, I'm pretty sure Ultidev's Cassini doesn't have this restriction. Both of these are easier to setup than IIS.
But, yeah, the builtin WebDev.WebServer doesn't work....Hmm, unless you run something like AnalogX's Proxy on your dev box and point it to the WebDev port. That should work (though I haven't tried it, it should take < 2 mins to setup).
You can use Cassini to expose your web apps externally. You just need to proxy the connection. I wrote a simple program to do this that you can run in another VS instance. Just change the port to match the port Cassini is using.
https://gist.github.com/945649
You can do port redirection using SOAP Toolkit 3.0
Once installed, go to My Programs > Microsoft Soap Toolkit 3 > Trace Utility
Once Trace Utility opened, go to File > New > Formatted Trace
In the dialog insert your ASP .NET Development Server port in Forward To Destination Port field.
It's only a workaround for testing purposes
I believe the built in ASP.NET server only works on localhost. You'll have to use IIS.
Compile all you website in Debug mode, then create the website and publish it in IIS (make sure you can view it from other machine). Then attach the VS2010 Debugger to the process with the AppPool of your website (the process is called w3wp.exe when IIS>v5 and aspnet_wp.exe when IIS<5).
If you make some changes, just replace the package contents on the physical path of the website, and there you go again.