Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / November 2006

Tip: Looking for answers? Try searching our database.

Trouble changing Tomcat webapps directory

Thread view: 
laredotornado@zipmail.com - 03 Nov 2006 15:35 GMT
Hello,

I just instaleld Tomcat 5.5 on Fedora Core 5 Linux.  Everything works
fine if I make absolutely no changes to anything, including server.xml
with this host element ...

     <Host name="localhost" appBase="webapps"
      unpackWARs="true" autoDeploy="true"
      xmlValidation="false" xmlNamespaceAware="false">

However, I want to change the default webapps directory.  I notice when
I change to any other directory (the one below exists and has 775
permissions)

     <Host name="localhost" appBase="/usr/local/apache2/htdocs"
      unpackWARs="true" autoDeploy="true"
      xmlValidation="false" xmlNamespaceAware="false">

I get this error by doing "wget" ...

[root@localhost bin]# wget http://localhost:8080/
--08:29:46--  http://localhost:8080/
          => `index.html'
Resolving localhost... 127.0.0.1
Connecting to localhost|127.0.0.1|:8080... connected.
HTTP request sent, awaiting response... 400 No Host matches server name
localhost
08:29:46 ERROR 400: No Host matches server name localhost.

Any ideas where I might start troubleshooting the problem?

Thanks, - Dave
Simon Brooke - 03 Nov 2006 20:33 GMT
> Hello,
>
[quoted text clipped - 26 lines]
>
> Any ideas where I might start troubleshooting the problem?

Edit your hosts file and add the line

127.0.0.1       localhost

If you're using a UNIX-like system, this file is /etc/hosts; if you're
using a Microsoft system it's somewhere under System\Win32, I think. In
any case, it is called just 'hosts'.

Signature

simon@jasmine.org.uk (Simon Brooke) http://www.jasmine.org.uk/~simon/

       Morning had broken, and there was nothing left for us to do
       but pick up the pieces.

Steven J. Sobol - 03 Nov 2006 21:13 GMT

> Edit your hosts file and add the line
>
[quoted text clipped - 3 lines]
> using a Microsoft system it's somewhere under System\Win32, I think. In
> any case, it is called just 'hosts'.

On Windows:

c:\windows\system32\drivers\etc\hosts, except Windows NT and Windows 2000 Pro,
on those systems its c:\winnt\system32\drivers\etc\hosts

Signature

Steve Sobol, Professional Geek ** Java/VB/VC/PHP/Perl ** Linux/*BSD/Windows
Victorville, California     PGP:0xE3AE35ED

It's all fun and games until someone starts a bonfire in the living room.

Simon Brooke - 03 Nov 2006 22:55 GMT
>  
>> Edit your hosts file and add the line
[quoted text clipped - 9 lines]
> c:\windows\system32\drivers\etc\hosts, except Windows NT and Windows 2000
> Pro, on those systems its c:\winnt\system32\drivers\etc\hosts

Thanks.

I think that demonstrates just how expert I am with Windows!

Signature

simon@jasmine.org.uk (Simon Brooke) http://www.jasmine.org.uk/~simon/

       Hobbit ringleader gives Sauron One in the Eye.

Tor Iver Wilhelmsen - 04 Nov 2006 16:17 GMT
> c:\windows\system32\drivers\etc\hosts, except Windows NT and Windows
> 2000 Pro, on those systems its c:\winnt\system32\drivers\etc\hosts

Whichever it is, it's available in the %windir% env variable. :)


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.