Forum Problems Installing LAMS: Re: Re: Re: 404 error


 
Search: 

4: Re: Re: Re: 404 error
In response to 3 02/19/07 05:19 PM
[ Reply | Forward ]
http://localhost:8080 would show a 'Welcome to JBoss' page if it were LAMS that were responding. I think you might have another app running on 8080 on your machine (Sun Java System Application Server Platform Edition 9.0_01 maybe?)

You can check this by checking your C:\lams\jboss-4.0.2\server\default\log\boot.log and server.log - it will have an error about ports being occupied. Alternatively, make sure you've shutdown LAMS, and at a command prompt, run 'netstat -an', and check if port 8080 is open for listening. If it is, you have another app using the port.

Posted by Jun-Dir Liew

5: Re: Re: Re: Re: 404 error
In response to 4 02/19/07 10:57 PM
[ Reply | Forward ]
Hi, yes you are correct, I do have the Sun Java System Application Server Platform Edition 9.0_01 running on 8080.

I followed the installation instructions and left most of the defaults.

What do I need to do to correct this?

thanks
Owen

Posted by owen kessell

6: Re: Re: Re: Re: Re: 404 error
In response to 5 02/19/07 11:17 PM
[ Reply | Forward ]
You can uninstall and reinstall lams, making sure the server url you enter at install time does not use port 8080.  This won't work if your other app uses other ports that jboss also needs, but is the neat way to go about it.

The other way is to edit the config for your current installation to change the port, but the link inside c:\lams\index.html won't work anymore unless you update that too.

To edit your current config, open C:\lams\jboss-4.0.2\server\default\conf\jboss-service.xml in Wordpad, and uncomment the following block (it's commented out by default):

<mbean code="org.jboss.services.binding.ServiceBindingManager"
    name="jboss.system:service=ServiceBindingManager">
    <attribute name="ServerName">ports-01</attribute>
    <attribute name="StoreURL">${jboss.home.url}/docs/examples/binding-manager/sample-bindings.xml</attribute>
    <attribute name="StoreFactoryClassName">
      org.jboss.services.binding.XMLServicesStoreFactory
    </attribute>
  </mbean>

In addition to this, follow Fiona's steps above to update the url in the database to be 'http://localhost:8180/lams' instead of the url with 8080.

Then start LAMS.  The URL should now use port 8180 instead of 8080.

Posted by Jun-Dir Liew

7: Re: Re: Re: Re: Re: Re: 404 error
In response to 6 02/22/07 06:41 PM
[ Reply | Forward ]
Okay

I uninstalled LAMS, then reinstalled choosing port 8180 as suggested.

However when I try to run 'http://localhost:8180/lams' I get a HTP 400 error, Bad Request?

How can I check that port 8180 is open and available?

thanks
Owen

Posted by owen kessell

8: Re: Re: Re: Re: Re: Re: Re: 404 error
In response to 7 02/25/07 07:14 PM
[ Reply | Forward ]
There's a freeware program I use that will show you what programs are using which ports - it's called ActivePorts. It doesn't install spyware/malware.

http://www.download.com/3000-2085-10062969.html

Posted by Jun-Dir Liew

Reply to first post on this page
Back to Problems Installing LAMS