RE: Problem setting Host

2009-06-08 Thread Peter Crowther
 From: hellian [mailto:rashedulhasan2...@yahoo.com]
 I've been facing problem setting my Host property with Tomcat
 5.5. Please
 have a look on the code below and let me know what's wrong
 with my code.







 Now if I use the url nexusroi.com, it doesn't work whereas the url
 nexusroi.com/nexus does work well. Can anyone help me resolve this?

Cool, someone else using invisible ink :-).

We could help more if you supplied the code.

- Peter

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



RE: Problem setting Host

2009-06-08 Thread Martin Gainty

nexus is a commercial software vendor and is responsible for their errors so i 
would contact them first

in the meanwhile you can help yourself find the root of this problem
by enabling logging so you can see the exception displayed in the logs 
(my logs are located at $CATALINA_HOME/logs/$HOSTNAME.-MM-DD.log)

http://tomcat.apache.org/tomcat-6.0-doc/logging.html

Martin Gainty 
__ 
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
 
Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger 
sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung 
oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem 
Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. 
Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung 
fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le 
destinataire prévu, nous te demandons avec bonté que pour satisfaire informez 
l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est 
interdite. Ce message sert à l'information seulement et n'aura pas n'importe 
quel effet légalement obligatoire. Étant donné que les email peuvent facilement 
être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité 
pour le contenu fourni.




 Date: Mon, 8 Jun 2009 03:50:38 -0700
 From: rashedulhasan2...@yahoo.com
 To: users@tomcat.apache.org
 Subject: Problem setting Host
 
 
 Hello
 
 I've been facing problem setting my Host property with Tomcat 5.5. Please
 have a look on the code below and let me know what's wrong with my code.
 
  
   

   
   
 
 Now if I use the url nexusroi.com, it doesn't work whereas the url
 nexusroi.com/nexus does work well. Can anyone help me resolve this?
 
 
 
 
 -- 
 View this message in context: 
 http://www.nabble.com/Problem-setting-Host-tp23921857p23921857.html
 Sent from the Tomcat - User mailing list archive at Nabble.com.

_
Windows Live™: Keep your life in sync. 
http://windowslive.com/explore?ocid=TXT_TAGLM_WL_BR_life_in_synch_062009

RE: Problem setting Host

2009-06-08 Thread hellian

Sorry...I added the code, I don't know why it disappeared. Anyway the code ia
as follows:

 Host name=nexusroi.com appBase=C:\superior\nexus\war
deployOnStartup=true autoDeploy=false unpackWARs=true
deployXML=false xmlValidation=false xmlNamespaceAware=false
 Context path=/nexus docBase=C:\superior\nexus\war
workDir=C:\superior\nexus\work reloadable=true
  Resource auth=Container name=jdbc/NEXUS type=javax.sql.DataSource
password=root driverClassName=com.mysql.jdbc.Driver maxIdle=2
maxWait=2000 username=root url=jdbc:mysql://localhost:3306/nexus
maxActive=4 / 
  /Context
  /Host


Peter Crowther wrote:
 
 From: hellian [mailto:rashedulhasan2...@yahoo.com]
 I've been facing problem setting my Host property with Tomcat
 5.5. Please
 have a look on the code below and let me know what's wrong
 with my code.







 Now if I use the url nexusroi.com, it doesn't work whereas the url
 nexusroi.com/nexus does work well. Can anyone help me resolve this?
 
 Cool, someone else using invisible ink :-).
 
 We could help more if you supplied the code.
 
 - Peter
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Problem-setting-Host-tp23921857p23922502.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


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



RE: Problem setting Host

2009-06-08 Thread Caldarale, Charles R
 From: hellian [mailto:rashedulhasan2...@yahoo.com]
 Subject: RE: Problem setting Host
 
  Host name=nexusroi.com appBase=C:\superior\nexus\war
 deployOnStartup=true autoDeploy=false unpackWARs=true
 deployXML=false xmlValidation=false xmlNamespaceAware=false
  Context path=/nexus docBase=C:\superior\nexus\war
 workDir=C:\superior\nexus\work reloadable=true
   Resource auth=Container name=jdbc/NEXUS
 type=javax.sql.DataSource
 password=root driverClassName=com.mysql.jdbc.Driver maxIdle=2
 maxWait=2000 username=root url=jdbc:mysql://localhost:3306/nexus
 maxActive=4 /
   /Context
   /Host

First, placing Context elements in server.xml is extremely bad practice.  The 
Context element should be in the webapp's META-INF/context.xml file, or in 
conf/Catalina/[host]/[appName].xml; where you have it requires a restart of 
Tomcat anytime you make changes.  Note that when in the proper locations, the 
path and docBase attributes must not be used in a Context element.

Second, docBase and appBase must *never* be the same.  The appBase directory is 
where each of your webapps should be placed; it must not point to a specific 
webapp.

Third, if you want a webapp to be the default one, it must be named ROOT (case 
sensitive, even on Windows).

Fourth, unless you are using multiple Host elements, there is no point in 
changing the name attribute; you can leave it at localhost.

So, if you want this nexus webapp to be the default, change appBase to 
C:\superior, put the webapp in C:\superior\ROOT, place your Context element 
in C:\superior\ROOT\META-INF\context.xml, and remove the path and docBase 
attributes from the Context.  If the webapp is distributed as a .war file 
that you don't want to modify, place the .war in C:\superior\ROOT.war, and the 
Context element in conf\Catalina\[host]\ROOT.xml.

If you are not using multiple Host elements, put the Host name back to 
localhost; regardless, make sure the defaultHost of your Engine points to one 
of your Host elements.

Other directory locations will also work, as long as you maintain the proper 
relationship between appBase and the location of the webapp.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.


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



Re: Problem setting Host

2009-06-08 Thread André Warnier

Peter Crowther wrote:

From: hellian [mailto:rashedulhasan2...@yahoo.com]
I've been facing problem setting my Host property with Tomcat
5.5. Please
have a look on the code below and let me know what's wrong
with my code.







Now if I use the url nexusroi.com, it doesn't work whereas the url
nexusroi.com/nexus does work well. Can anyone help me resolve this?


Cool, someone else using invisible ink :-).

We could help more if you supplied the code.


Did you try heating up the message over a candle ?

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