You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by va...@onvol.net on 2004/09/27 12:22:30 UTC
Webapp Problem
Dear All,
Now the problem is:
When i enter the home page (www.export4u.co.uk), the index page (index.html) within ROOT directory is called. BUT I want the index page to be displayed under the micsexport webapp directory.
What changes i do have to make to CONTEXT ELEMENT
So that My index page is LOADED from my WEBAPP (MicsExport which is at at the same level as ROOT). Please have a look at context element that i am using
<Host name="localhost" debug="0" appBase="webapps" unpackWARs="true" autoDeploy="true">
<Host name="www.export4u.co.uk" appBase="C:/Program Files/Apache Software Foundation/Tomcat 5.0/webapps/MicsExport">
<!--<Context path="/hSolutions" docBase="."/> -->
<Alias>export4u.co.uk</Alias>
<Context path="" docBase="MicsExport" debug="5"/>
</Host>
</Host>
I tried many hit and trials with path and docbase but couldnt manage
Can someone tell me how to disable this ROOT context. After spending so much time on it, i am not going to leave this ROOT Context... .... :)
What changes do i need to do in server.xml and corresponding web.xml (if in case).
Thank you very much again for help.
regards
p.s.
Thankx Zorgalina,
I read the documentation many times.
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/context.html
I couldnt solve the problem
vaneet
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: Webapp Problem
Posted by Anto Paul <an...@gmail.com>.
I think you have to move
<Host name="www.export4u.co.uk
-----
</Host>
Outside the <Host name="localhost" debug="0" appBase="webapps"
unpackWARs="true" autoDeploy="true">
Anto Paul
On Mon, 27 Sep 2004 12:22:30 +0200, vaneet@onvol.net <va...@onvol.net> wrote:
> Dear All,
>
> Now the problem is:
> When i enter the home page (www.export4u.co.uk), the index page (index.html) within ROOT directory is called. BUT I want the index page to be displayed under the micsexport webapp directory.
>
> What changes i do have to make to CONTEXT ELEMENT
> So that My index page is LOADED from my WEBAPP (MicsExport which is at at the same level as ROOT). Please have a look at context element that i am using
>
> <Host name="localhost" debug="0" appBase="webapps" unpackWARs="true" autoDeploy="true">
>
> <Host name="www.export4u.co.uk" appBase="C:/Program Files/Apache Software Foundation/Tomcat 5.0/webapps/MicsExport">
> <!--<Context path="/hSolutions" docBase="."/> -->
> <Alias>export4u.co.uk</Alias>
> <Context path="" docBase="MicsExport" debug="5"/>
> </Host>
> </Host>
>
> I tried many hit and trials with path and docbase but couldnt manage
> Can someone tell me how to disable this ROOT context. After spending so much time on it, i am not going to leave this ROOT Context... .... :)
>
> What changes do i need to do in server.xml and corresponding web.xml (if in case).
>
> Thank you very much again for help.
> regards
>
> p.s.
> Thankx Zorgalina,
> I read the documentation many times.
> http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/context.html
> I couldnt solve the problem
>
> vaneet
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>
--
To strive,to seek,to find and not to yield
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: WEB APP PROBLEM !!!!!!!!!!
Posted by Anto Paul <an...@gmail.com>.
There is one Apache sitting there. When I tried the URL the content
was served. This is what I got.
HTTP/1.1 200 OK
Date: Mon, 27 Sep 2004 13:33:15 GMT
Server: Apache/1.3.29 (Unix)
Transfer-Encoding: chunked
Content-Type: text/html
<HTML><HEAD>
<META NAME="description" content="">
<META NAME="keywords" content="">
<TITLE>www. Export4U.co.uk</TITLE>
</HEAD>
<FRAMESET ROWS="100%,*" BORDER="0" FRAMEBORDER="0">
<FRAME SRC="http://micsexport.servepics.com/" SCROLLING="AUTO" NAME="bannerframe
" NORESIZE>
</FRAMESET>
<NOFRAMES>
www. Export4U.co.uk
<P>
<DIV ALIGN="CENTER"><A HREF="http://micsexport.servepics.com/">http://export4u.c
o.uk/</A></DIV>
</NOFRAMES>
</HTML>
Please try connecting to Tomcat directly.
Anto Paul
On Mon, 27 Sep 2004 15:17:33 +0200, vaneet@onvol.net <va...@onvol.net> wrote:
> i did two things
>
> 1) REMOVED the ROOT Folder from webapp directory of tomcat
> 2) According to specification of apache, i removed the host called localhost and hence i had to change the entry in
>
> <Engine name="Catalina" defaultHost="www.export4u.co.uk" debug="0">
>
> NOW.........................
> I am attaching the server.xml file.
> I am tired of trying this f...ing stuff
> i am sorry for the foul language . please have a look and me know
>
> After trying what u told me .. it is displaying blank page
>
> check out yourself
> http://www.export4u.co.uk
>
> -----------------------------------------------------------
> >------=_NextPart_000_0003_01C4A4A3.4CF6BE40
> >Content-Type: text/plain;
> > charset="us-ascii"
> >Content-Transfer-Encoding: 7bit
> >
> >Hi
> >
> >> When i remove the
> >> <Host = localhost..................... > i get following error in stderr
> >file.
> >
> >> java.io.IOException: The filename, directory name, or volume label syntax
> >is incorrect
> >
> >is this correct:
> > C:/Program Files/Apache Software Foundation/Tomcat 5.0/webapps
> >???
> >
> >Try this:
> > C:/Program Files/Apache Software Foundation/Tomcat 5.0/webapps/
> >
> >But it should work.
> >
> >For me, the following works:
> >
> ><Host name="localhost" debug="0" appBase="webapps"
> > unpackWARs="true" autoDeploy="false"
> > xmlValidation="false" xmlNamespaceAware="false">
> > <Context path="" docBase="d:/mywebapp" debug="0"
> >reloadable="false"/>
> ></Host>
> >
> >
> >Regards,
> > Steffen
> >
> >------=_NextPart_000_0003_01C4A4A3.4CF6BE40
> >Content-Type: application/x-pkcs7-signature;
> > name="smime.p7s"
> >Content-Transfer-Encoding: base64
> >Content-Disposition: attachment;
> > filename="smime.p7s"
> >
> >MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIIJVzCCAt8w
> >ggJIoAMCAQICAw0GrjANBgkqhkiG9w0BAQQFADBiMQswCQYDVQQGEwJaQTElMCMGA1UEChMcVGhh
> >d3RlIENvbnN1bHRpbmcgKFB0eSkgTHRkLjEsMCoGA1UEAxMjVGhhd3RlIFBlcnNvbmFsIEZyZWVt
> >YWlsIElzc3VpbmcgQ0EwHhcNMDQwOTEyMTQ1NzEwWhcNMDUwOTEyMTQ1NzEwWjCBpzENMAsGA1UE
> >BBMESGVpbDEQMA4GA1UEKhMHU3RlZmZlbjEVMBMGA1UEAxMMU3RlZmZlbiBIZWlsMSIwIAYJKoZI
> >hvcNAQkBFhN1bmlAc3RlZmZlbi1oZWlsLmRlMSQwIgYJKoZIhvcNAQkBFhVsaXN0c0BzdGVmZmVu
> >LWhlaWwuZGUxIzAhBgkqhkiG9w0BCQEWFG1haWxAc3RlZmZlbi1oZWlsLmRlMIGfMA0GCSqGSIb3
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>
>
>
--
To strive,to seek,to find and not to yield
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: Re: Thankx
Posted by va...@onvol.net.
i am sorry mike.....
but i didnt mean to show my anger.
Some people on list are trying to help me but somehow the problem is not coming to end.
anyways, i know the workaround but i still want to solve that way.
i will keep in mind next time i ask help on this mailing list
Vaneet
-----------------------------------------------------------
>Do you honestly expect anyone to help you by taking your frustration out
>on this mailing list? Take your anger elsewhere.
>
>
>-Mike Fowler
>"I could be a genius if I just put my mind to it, and I,
>I could do anything, if only I could get 'round to it"
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: WEB APP PROBLEM !!!!!!!!!!
Posted by Mike Fowler <to...@mlfowler.com>.
Do you honestly expect anyone to help you by taking your frustration out
on this mailing list? Take your anger elsewhere.
-Mike Fowler
"I could be a genius if I just put my mind to it, and I,
I could do anything, if only I could get 'round to it"
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
AW: WEB APP PROBLEM !!!!!!!!!!
Posted by Steffen Heil <li...@steffen-heil.de>.
Hi
As Anto wrote:
Is there an apache in the mix?
PLEASE, try to get tomcat to work standalone at first.
THEN try to connect apache.
If the problem still occurs, send more information:
JDK version, Tomcat exact version, Windows version,
all installations paths, environment settings, machine's ips,
dns settings, hosts file settings, and so on.
I am sure, we will be able to fix this, give it some time.
Regards,
Steffen
-----Ursprüngliche Nachricht-----
Von: vaneet@onvol.net [mailto:vaneet@onvol.net]
Gesendet: Montag, 27. September 2004 15:18
An: tomcat-user@jakarta.apache.org
Betreff: WEB APP PROBLEM !!!!!!!!!!
i did two things
1) REMOVED the ROOT Folder from webapp directory of tomcat
2) According to specification of apache, i removed the host called localhost
and hence i had to change the entry in
<Engine name="Catalina" defaultHost="www.export4u.co.uk" debug="0">
NOW.........................
I am attaching the server.xml file.
I am tired of trying this f...ing stuff i am sorry for the foul language .
please have a look and me know
After trying what u told me .. it is displaying blank page
check out yourself
http://www.export4u.co.uk
-----------------------------------------------------------
>------=_NextPart_000_0003_01C4A4A3.4CF6BE40
>Content-Type: text/plain;
> charset="us-ascii"
>Content-Transfer-Encoding: 7bit
>
>Hi
>
>> When i remove the
>> <Host = localhost..................... > i get following error in
>> stderr
>file.
>
>> java.io.IOException: The filename, directory name, or volume label
>> syntax
>is incorrect
>
>is this correct:
> C:/Program Files/Apache Software Foundation/Tomcat 5.0/webapps ???
>
>Try this:
> C:/Program Files/Apache Software Foundation/Tomcat 5.0/webapps/
>
>But it should work.
>
>For me, the following works:
>
><Host name="localhost" debug="0" appBase="webapps"
> unpackWARs="true" autoDeploy="false"
> xmlValidation="false" xmlNamespaceAware="false">
> <Context path="" docBase="d:/mywebapp" debug="0"
>reloadable="false"/>
></Host>
>
>
>Regards,
> Steffen
>
>------=_NextPart_000_0003_01C4A4A3.4CF6BE40
>Content-Type: application/x-pkcs7-signature;
> name="smime.p7s"
>Content-Transfer-Encoding: base64
>Content-Disposition: attachment;
> filename="smime.p7s"
>
>MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIIJVzC
>CAt8w
>ggJIoAMCAQICAw0GrjANBgkqhkiG9w0BAQQFADBiMQswCQYDVQQGEwJaQTElMCMGA1UEChM
>cVGhh
>d3RlIENvbnN1bHRpbmcgKFB0eSkgTHRkLjEsMCoGA1UEAxMjVGhhd3RlIFBlcnNvbmFsIEZ
>yZWVt
>YWlsIElzc3VpbmcgQ0EwHhcNMDQwOTEyMTQ1NzEwWhcNMDUwOTEyMTQ1NzEwWjCBpzENMAs
>GA1UE
>BBMESGVpbDEQMA4GA1UEKhMHU3RlZmZlbjEVMBMGA1UEAxMMU3RlZmZlbiBIZWlsMSIwIAY
>JKoZI
>hvcNAQkBFhN1bmlAc3RlZmZlbi1oZWlsLmRlMSQwIgYJKoZIhvcNAQkBFhVsaXN0c0BzdGV
>mZmVu
>LWhlaWwuZGUxIzAhBgkqhkiG9w0BCQEWFG1haWxAc3RlZmZlbi1oZWlsLmRlMIGfMA0GCSq
>GSIb3
WEB APP PROBLEM !!!!!!!!!!
Posted by va...@onvol.net.
i did two things
1) REMOVED the ROOT Folder from webapp directory of tomcat
2) According to specification of apache, i removed the host called localhost and hence i had to change the entry in
<Engine name="Catalina" defaultHost="www.export4u.co.uk" debug="0">
NOW.........................
I am attaching the server.xml file.
I am tired of trying this f...ing stuff
i am sorry for the foul language . please have a look and me know
After trying what u told me .. it is displaying blank page
check out yourself
http://www.export4u.co.uk
-----------------------------------------------------------
>------=_NextPart_000_0003_01C4A4A3.4CF6BE40
>Content-Type: text/plain;
> charset="us-ascii"
>Content-Transfer-Encoding: 7bit
>
>Hi
>
>> When i remove the
>> <Host = localhost..................... > i get following error in stderr
>file.
>
>> java.io.IOException: The filename, directory name, or volume label syntax
>is incorrect
>
>is this correct:
> C:/Program Files/Apache Software Foundation/Tomcat 5.0/webapps
>???
>
>Try this:
> C:/Program Files/Apache Software Foundation/Tomcat 5.0/webapps/
>
>But it should work.
>
>For me, the following works:
>
><Host name="localhost" debug="0" appBase="webapps"
> unpackWARs="true" autoDeploy="false"
> xmlValidation="false" xmlNamespaceAware="false">
> <Context path="" docBase="d:/mywebapp" debug="0"
>reloadable="false"/>
></Host>
>
>
>Regards,
> Steffen
>
>------=_NextPart_000_0003_01C4A4A3.4CF6BE40
>Content-Type: application/x-pkcs7-signature;
> name="smime.p7s"
>Content-Transfer-Encoding: base64
>Content-Disposition: attachment;
> filename="smime.p7s"
>
>MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIIJVzCCAt8w
>ggJIoAMCAQICAw0GrjANBgkqhkiG9w0BAQQFADBiMQswCQYDVQQGEwJaQTElMCMGA1UEChMcVGhh
>d3RlIENvbnN1bHRpbmcgKFB0eSkgTHRkLjEsMCoGA1UEAxMjVGhhd3RlIFBlcnNvbmFsIEZyZWVt
>YWlsIElzc3VpbmcgQ0EwHhcNMDQwOTEyMTQ1NzEwWhcNMDUwOTEyMTQ1NzEwWjCBpzENMAsGA1UE
>BBMESGVpbDEQMA4GA1UEKhMHU3RlZmZlbjEVMBMGA1UEAxMMU3RlZmZlbiBIZWlsMSIwIAYJKoZI
>hvcNAQkBFhN1bmlAc3RlZmZlbi1oZWlsLmRlMSQwIgYJKoZIhvcNAQkBFhVsaXN0c0BzdGVmZmVu
>LWhlaWwuZGUxIzAhBgkqhkiG9w0BCQEWFG1haWxAc3RlZmZlbi1oZWlsLmRlMIGfMA0GCSqGSIb3
AW: AW: Webapp Problem
Posted by Steffen Heil <li...@steffen-heil.de>.
Hi
> When i remove the
> <Host = localhost..................... > i get following error in stderr
file.
> java.io.IOException: The filename, directory name, or volume label syntax
is incorrect
is this correct:
C:/Program Files/Apache Software Foundation/Tomcat 5.0/webapps
???
Try this:
C:/Program Files/Apache Software Foundation/Tomcat 5.0/webapps/
But it should work.
For me, the following works:
<Host name="localhost" debug="0" appBase="webapps"
unpackWARs="true" autoDeploy="false"
xmlValidation="false" xmlNamespaceAware="false">
<Context path="" docBase="d:/mywebapp" debug="0"
reloadable="false"/>
</Host>
Regards,
Steffen
Re: AW: Webapp Problem
Posted by va...@onvol.net.
Dear Stefan,
Thankx for that.
When i remove the
<Host = localhost..................... >
i get following error in stderr file.
org.apache.commons.digester.Digester startElement
SEVERE: Begin event threw exception
java.io.IOException: The filename, directory name, or volume label syntax is incorrect
at java.io.WinNTFileSystem.canonicalize(Native Method)
at java.io.File.getCanonicalPath(Unknown Source)
at java.io.File.getCanonicalFile(Unknown Source)
at org.apache.catalina.startup.SetDocBaseRule.begin(SetDocBaseRule.java:137)
at org.apache.commons.digester.Rule.begin(Rule.java:200)
at org.apache.commons.digester.Digester.startElement(Digester.java:1273)
at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown Source)
at org.apache.xerces.impl.XMSep 27, 2004 1:30:24 PM org.apache.commons.digester.Digester startElement
SEVERE: Begin event threw exception
java.io.IOException: The filename, directory name, or volume label syntax is incorrect
at java.io.WinNTFileSystem.canonicalize(Native Method)
at java.io.File.getCanonicalPath(Unknown Source)
at java.io.File.getCanonicalFile(Unknown Source)
at org.apache.catalina.startup.SetDocBaseRule.begin(SetDocBaseRule.java:137)
at org.apache.commons.digester.Rule.begin(Rule.java:200)
at org.apache.commons.digester.Digester.startElement(Digester.java:1273)
at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
at org.apache.xerces.parsers.Sep 27, 2004 1:34:26 PM org.apache.commons.digester.Digester startElement
SEVERE: Begin event threw exception
java.io.IOException: The filename, directory name, or volume label syntax is incorrect
at java.io.WinNTFileSystem.canonicalize(Native Method)
at java.io.File.getCanonicalPath(Unknown Source)
at java.io.File.getCanonicalFile(Unknown Source)
at org.apache.catalina.startup.SetDocBaseRule.begin(SetDocBaseRule.java:137)
at org.apache.comm
i am attaching my server.xml file.
please have a look and let me know where things are wrong
thankx
vaneet
-----------------------------------------------------------
>------=_NextPart_000_007B_01C4A490.C2E9BAC0
>Content-Type: text/plain;
> charset="us-ascii"
>Content-Transfer-Encoding: 7bit
>
>Hi
>
>First, do NOT nest hosts!
>Second, context's docBase is relative to hosts's appBase, so your path is
>wrong.
>
>Try:
>
><Host name="localhost" debug="0" appBase="webapps" unpackWARs="true"
>autoDeploy="true">
></Host>
>
><Host name="www.export4u.co.uk" appBase="C:/Program Files/Apache Software
>Foundation/Tomcat 5.0/webapps">
> <Alias>export4u.co.uk</Alias>
> <Context path="" docBase="MicsExport" debug="5"/>
></Host>
>
>Or better only:
>
><Host name="www.export4u.co.uk" appBase="webapps">
> <Alias>export4u.co.uk</Alias>
> <Context path="" docBase="MicsExport" debug="5"/>
></Host>
>
>
>Regards,
> Steffen
>
>------=_NextPart_000_007B_01C4A490.C2E9BAC0
>Content-Type: application/x-pkcs7-signature;
> name="smime.p7s"
>Content-Transfer-Encoding: base64
>Content-Disposition: attachment;
> filename="smime.p7s"
>
>MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIIJVzCCAt8w
>ggJIoAMCAQICAw0GrjANBgkqhkiG9w0BAQQFADBiMQswCQYDVQQGEwJaQTElMCMGA1UEChMcVGhh
>d3RlIENvbnN1bHRpbmcgKFB0eSkgTHRkLjEsMCoGA1UEAxMjVGhhd3RlIFBlcnNvbmFsIEZyZWVt
>YWlsIElzc3VpbmcgQ0EwHhcNMDQwOTEyMTQ1NzEwWhcNMDUwOTEyMTQ1NzEwWjCBpzENMAsGA1UE
>BBMESGVpbDEQMA4GA1UEKhMHU3RlZmZlbjEVMBMGA1UEAxMMU3RlZmZlbiBIZWlsMSIwIAYJKoZI
>hvcNAQkBFhN1bmlAc3RlZmZlbi1oZWlsLmRlMSQwIgYJKoZIhvcNAQkBFhVsaXN0c0BzdGVmZmVu
>LWhlaWwuZGUxIzAhBgkqhkiG9w0BCQEWFG1haWxAc3RlZmZlbi1oZWlsLmRlMIGfMA0GCSqGSIb3
>DQEBAQUAA4GNADCBiQKBgQC6Og/0jdTLBUj6rITunEfZSdsWvPbDCX9XYoh7lN6rvjO/UY4eVWos
>OC1f/tfA8YpQceRdNSEbx9czHSA7CJBgbhcGzTgDmbIplnj5zhEmOCm15FW5AXKgwV+xqJe+HYLg
AW: Webapp Problem
Posted by Steffen Heil <li...@steffen-heil.de>.
Hi
First, do NOT nest hosts!
Second, context's docBase is relative to hosts's appBase, so your path is
wrong.
Try:
<Host name="localhost" debug="0" appBase="webapps" unpackWARs="true"
autoDeploy="true">
</Host>
<Host name="www.export4u.co.uk" appBase="C:/Program Files/Apache Software
Foundation/Tomcat 5.0/webapps">
<Alias>export4u.co.uk</Alias>
<Context path="" docBase="MicsExport" debug="5"/>
</Host>
Or better only:
<Host name="www.export4u.co.uk" appBase="webapps">
<Alias>export4u.co.uk</Alias>
<Context path="" docBase="MicsExport" debug="5"/>
</Host>
Regards,
Steffen