Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am writing the following code... But i am getting an error as... http:// localhost:8080/geoserver/ at at Try.main(

Am i doing it right? I am new at this geoserver as well as client server coding...


public class Try{

    public static void main(String args[]) throws Exception{

        URL hp= new URL ("http://localhost:8080/geoserver");

        try {

            URL myURL = new URL("http://localhost:8080/geoserver/");

            URLConnection myURLConnection = myURL.openConnection();


            BufferedReader in = new BufferedReader(new InputStreamReader (myURLConnection.getInputStream()));

            String inputLine;

            while((inputLine = in.readLine()) != null )



        catch (Exception e){
            System.out.println("Into CATCH");
share|improve this question
is geoserver running? what happens if you just try to connect to localhost:8080? – iant Oct 16 '12 at 7:49
Yes geoserver running... if i connect to localhost:8080 through the above code i get ORACLE DATABASE 10g EXPRESS EDITION LICENSE AGREEMENT Letter as ouput page... – Nikhil Oct 16 '12 at 7:54

You have Oracle XE installed on your system that's taking port 8080, you either move GeoServer on a different port, or move the XE admin UI to another port

share|improve this answer
How do i change my geoserver port? I tried this but it doesnt work.... it still works on 8080 – Nikhil Oct 16 '12 at 8:13
reinstall and select port 8088 in the install settings – Mapperz Oct 16 '12 at 13:34

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.