I'd recommend just changing the name of the machine. I ran into this
problem years ago and ran into all kinds of nasty problems - I had an
issue open with Microsoft for over a month until an ACTUAL developer
tracked it down as the culprit. I've made sure that no machine I'd ever
have to interact with had an underscore again!

Not that it's always credible, but Wikipedia actually has a pretty good
summary in the 'Restrictions on valid host names' section. Read the
RFC's for more detail.

http://en.wikipedia.org/wiki/Hostname

Bob


-----Original Message-----
From: Danny Gallagher [mailto:dannygallagh...@gmail.com] 
Sent: Thursday, June 24, 2010 2:44 PM
To: users@tomcat.apache.org
Subject: underscore in a hostname

Tomcat 6.0
Windows XP

Installed tomcat, everything looks fine, I can run the manager
application

Then I try to deploy a war file that is a spring based sample
application.

Getting an exception about an invalid character in my hostname.
My computer name does in fact have an underscore in it.

Did some poking around to try to find a way around this, not clear on
what
to do.

Am I better off just changing my computer name to something with no
underscore?
Is there a tomcat configuration where I can change it to my IP or
localhost?
I searched for my computer name in the conf directory and did not see
anywhere it was used.
Why did the manager application not complain about the same issue? Only
the
spring application.

Thanks for any nudge (or shove) in the right direction.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to