RE: does tomcat work without apache? ... a real beginner asks some basic!?
Howdy, >i downloaded the lastes tomcat-version (for windows xp!), installed it >right as the installer did. called once "localhost" and i got the >greeting-screen from tomcat (meant: installation was ok!). Good. >but then the problems began. how to get my site into tomcat. all the >ways i tried failed. there was always the same problem: the >//index.jsp was found, but the other files weren't: instead of >///.jsp it looked for in /.jsp!! so with >the servlets: i coded "//servlet/" and it looked for >. If you have a war file, simply copy it into tomcat's webapps directory. Links in your servlets, JSPs, HTML pages should be appropriately relative. Give us an example of a link that doesn't work: I bet it's a link to /servlet/myservlet as opposed to /mywar/servlet/myservlet or better yet ../servlet/myservlet. You should map all your servlets in web.xml. >questions: can i use tomcat "just right out of the box" or is this a fas >too privimitive way to use this heavy program? Yes, you can use it right out of the box: it's designed for that. >must i install apache as well or is tomcat sufficient? You don't need Apache at this point: tomcat by itself is fine. >where should i look for a solution for my (for me: heavy) problem?? This is the place. Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: does tomcat work without apache? ... a real beginner asks some basic!?
hello shapira - and greetings and thank to ann -, thank you for your time spent on my problem. here are more details: 1. the long line in server.xml, where i declared the context for "sygenews": charsetMapperClass="org.apache.catalina.util.CharsetMapper" cookies="true" crossContext="true" debug="0" docBase="C:\Programme\Apache Group\Tomcat 4.1\webapps\sygenews" mapperClass="org.apache.catalina.core.StandardContextMapper" path="/sygenews" privileged="false" reloadable="true" swallowOutput="false" useNaming="true" wrapperClass="org.apache.catalina.core.StandardWrapper"> the directory-name is sygenews, the war-file-name is sygenews.war, and i want it to place beneath "webapps"-dir in tomcat. as i told you: with localhost:8080/sygenews the index.jsp was found, but: my "/formates.css" - link didn't work - wrong font appeared. why could this be? and the next problem (as you thought): the link "/servlet/sygenews.index" (/WEB-INF/classes/sygenews/index.class) was not found - it showed: localhost:8080/servlet/sygenews.index not available. in netbeans i have a project: sygenews, there are the files in normal order: /*.jsp, /WEB-INF/classes/*.java, *.class. i right-clicked on document-root and chose: make war-file (or similar); the war-file was made. in tomcat i installed it in the manager-mask (upload a war-file to install - out of my project-dir). it installed "ok", i clicked the new link and there it was... (as i described above). in netbeans it worked - i copied already the server.xml-file from netbeans to tomcat, but the result was the same. now to the path-question: i coded every link as "/...". i want to be sure, that the searching should begin on top to find everything (out of sub-dirs). is this so wrong? isn't it un-sure where i will go, if i write "../..."? and - sorry for repeating - in nb it works. must i declare a special connector? what is the right mapping of servlets in my web.xml? is this one ok: ... sygenews.news ... /servlet/sygenews.news so did i in my project-web.xml (but somehow blind, by hand...). bye hans Shapira, Yoav schrieb: Howdy, i downloaded the lastes tomcat-version (for windows xp!), installed it right as the installer did. called once "localhost" and i got the greeting-screen from tomcat (meant: installation was ok!). Good. but then the problems began. how to get my site into tomcat. all the ways i tried failed. there was always the same problem: the //index.jsp was found, but the other files weren't: instead of ///.jsp it looked for in /.jsp!! so with the servlets: i coded "//servlet/" and it looked for . If you have a war file, simply copy it into tomcat's webapps directory. Links in your servlets, JSPs, HTML pages should be appropriately relative. Give us an example of a link that doesn't work: I bet it's a link to /servlet/myservlet as opposed to /mywar/servlet/myservlet or better yet ../servlet/myservlet. You should map all your servlets in web.xml. questions: can i use tomcat "just right out of the box" or is this a fas too privimitive way to use this heavy program? Yes, you can use it right out of the box: it's designed for that. must i install apache as well or is tomcat sufficient? You don't need Apache at this point: tomcat by itself is fine. where should i look for a solution for my (for me: heavy) problem?? This is the place. Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: does tomcat work without apache? ... a real beginner asks some basic!?
hello, would it be a solution, if i declared another "host" in server.xml with appbase=" if yes: how could i get there? greetings hans - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: does tomcat work without apache? ... a real beginner asks some basic!?
Howdy, Your context is all default settings: you can take the whole declaration out of server.xml and let tomcat auto-deploy your war file. The problem with your HTML links, like the one for your stylesheet, is that they're absolute: /myFile.css is from the server root. There's nothing at the server root. Change the links to have the webapp name in the beginning, e.g. /sygenews/myFile.css. You can confirm for yourself these links work by entering them into your browser: http://yourserver:yourport/myFile.css will not work (404 error) http://yourserver:yourport/sygenews/myFile.css will work. These are fairly basic concepts: you might want to go through a couple of HTML/servlet tutorials. Yoav Shapira Millennium ChemInformatics >-Original Message- >From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] >Sent: Wednesday, October 22, 2003 4:33 PM >To: Tomcat Users List >Subject: Re: does tomcat work without apache? ... a real beginner asks some >basic!? > >hello shapira - and greetings and thank to ann -, > >thank you for your time spent on my problem. > >here are more details: > >1. the long line in server.xml, where i declared the context for >"sygenews": >cachingAllowed="true" >charsetMapperClass="org.apache.catalina.util.CharsetMapper" >cookies="true" >crossContext="true" debug="0" >docBase="C:\Programme\Apache Group\Tomcat 4.1\webapps\sygenews" >mapperClass="org.apache.catalina.core.StandardContextMapper" >path="/sygenews" privileged="false" reloadable="true" >swallowOutput="false" >useNaming="true" >wrapperClass="org.apache.catalina.core.StandardWrapper"> > >the directory-name is sygenews, the war-file-name is sygenews.war, and i >want it to place beneath "webapps"-dir in tomcat. > >as i told you: with localhost:8080/sygenews the index.jsp was found, >but: my "/formates.css" - link didn't work - wrong font appeared. >why could this be? > >and the next problem (as you thought): the link >"/servlet/sygenews.index" (/WEB-INF/classes/sygenews/index.class) was >not found - it showed: localhost:8080/servlet/sygenews.index not available. > >in netbeans i have a project: sygenews, there are the files in normal >order: /*.jsp, /WEB-INF/classes/*.java, *.class. i right-clicked on >document-root and chose: make war-file (or similar); the war-file was made. >in tomcat i installed it in the manager-mask (upload a war-file to >install - out of my project-dir). >it installed "ok", i clicked the new link and there it was... (as i >described above). > >in netbeans it worked - i copied already the server.xml-file from >netbeans to tomcat, but the result was the same. > >now to the path-question: >i coded every link as "/...". i want to be sure, that the searching >should begin on top to find everything (out of sub-dirs). is this so >wrong? isn't it un-sure where i will go, if i write "../..."? >and - sorry for repeating - in nb it works. > >must i declare a special connector? >what is the right mapping of servlets in my web.xml? is this one ok: >... >sygenews.news >... >/servlet/sygenews.news > >so did i in my project-web.xml (but somehow blind, by hand...). > >bye >hans > >Shapira, Yoav schrieb: > >>Howdy, >> >> >> >>>i downloaded the lastes tomcat-version (for windows xp!), installed it >>>right as the installer did. called once "localhost" and i got the >>>greeting-screen from tomcat (meant: installation was ok!). >>> >>> >> >>Good. >> >> >> >>>but then the problems began. how to get my site into tomcat. all the >>>ways i tried failed. there was always the same problem: the >>>//index.jsp was found, but the other files weren't: instead of >>>///.jsp it looked for in /.jsp!! so with >>>the servlets: i coded "//servlet/" and it looked for >>>. >>> >>> >> >>If you have a war file, simply copy it into tomcat's webapps directory. >>Links in your servlets, JSPs, HTML pages should be appropriately >>relative. Give us an example of a link that doesn't work: I bet it's a >>link to /servlet/myservlet as opposed to /mywar/servlet/myservlet or >>better yet ../servlet/myservlet. >> >>You should map all your servlets in web.xml. >> >> >> >>>questions: can i use tomcat "just right out of the box" or is this a >>> >>> >>fas >> >> >>>too privim
Re: does tomcat work without apache? ... a real beginner asks some basic!?
hello, i really let tomcat do the job... with the paths: isn't it so, that "docBase=..." means, that all my links would be added to this entry? and why does it work in netbeans (i tried to find any differences but i didn't!)? tell me, that i mustn't recode all my links! and: installing my files under a domain: isn't it allowed(?) too, to say "/formats.css"?? hans Shapira, Yoav schrieb: Howdy, Your context is all default settings: you can take the whole declaration out of server.xml and let tomcat auto-deploy your war file. The problem with your HTML links, like the one for your stylesheet, is that they're absolute: /myFile.css is from the server root. There's nothing at the server root. Change the links to have the webapp name in the beginning, e.g. /sygenews/myFile.css. You can confirm for yourself these links work by entering them into your browser: http://yourserver:yourport/myFile.css will not work (404 error) http://yourserver:yourport/sygenews/myFile.css will work. These are fairly basic concepts: you might want to go through a couple of HTML/servlet tutorials. Yoav Shapira Millennium ChemInformatics -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 22, 2003 4:33 PM To: Tomcat Users List Subject: Re: does tomcat work without apache? ... a real beginner asks some basic!? hello shapira - and greetings and thank to ann -, thank you for your time spent on my problem. here are more details: 1. the long line in server.xml, where i declared the context for "sygenews": cachingAllowed="true" charsetMapperClass="org.apache.catalina.util.CharsetMapper" cookies="true" crossContext="true" debug="0" docBase="C:\Programme\Apache Group\Tomcat 4.1\webapps\sygenews" mapperClass="org.apache.catalina.core.StandardContextMapper" path="/sygenews" privileged="false" reloadable="true" swallowOutput="false" useNaming="true" wrapperClass="org.apache.catalina.core.StandardWrapper"> the directory-name is sygenews, the war-file-name is sygenews.war, and i want it to place beneath "webapps"-dir in tomcat. as i told you: with localhost:8080/sygenews the index.jsp was found, but: my "/formates.css" - link didn't work - wrong font appeared. why could this be? and the next problem (as you thought): the link "/servlet/sygenews.index" (/WEB-INF/classes/sygenews/index.class) was not found - it showed: localhost:8080/servlet/sygenews.index not available. in netbeans i have a project: sygenews, there are the files in normal order: /*.jsp, /WEB-INF/classes/*.java, *.class. i right-clicked on document-root and chose: make war-file (or similar); the war-file was made. in tomcat i installed it in the manager-mask (upload a war-file to install - out of my project-dir). it installed "ok", i clicked the new link and there it was... (as i described above). in netbeans it worked - i copied already the server.xml-file from netbeans to tomcat, but the result was the same. now to the path-question: i coded every link as "/...". i want to be sure, that the searching should begin on top to find everything (out of sub-dirs). is this so wrong? isn't it un-sure where i will go, if i write "../..."? and - sorry for repeating - in nb it works. must i declare a special connector? what is the right mapping of servlets in my web.xml? is this one ok: ... sygenews.news ... /servlet/sygenews.news so did i in my project-web.xml (but somehow blind, by hand...). bye hans Shapira, Yoav schrieb: Howdy, i downloaded the lastes tomcat-version (for windows xp!), installed it right as the installer did. called once "localhost" and i got the greeting-screen from tomcat (meant: installation was ok!). Good. but then the problems began. how to get my site into tomcat. all the ways i tried failed. there was always the same problem: the //index.jsp was found, but the other files weren't: instead of ///.jsp it looked for in /.jsp!! so with the servlets: i coded "//servlet/" and it looked for . If you have a war file, simply copy it into tomcat's webapps directory. Links in your servlets, JSPs, HTML pages should be appropriately relative. Give us an example of a link that doesn't work: I bet it's a link to /servlet/myservlet as opposed to /mywar/servlet/myservlet or better yet ../servlet/myservlet. You should map all your servlets in web.xml. questions: can i use tomcat "just right out of the box" or is this a fas too privimitive way to use this heavy program? Yes, you can use it right out of the box: it's designe
RE: does tomcat work without apache? ... a real beginner asks some basic!?
Howdy, >with the paths: isn't it so, that "docBase=..." means, that all my links >would be added to this entry? and why does it work in netbeans (i tried >to find any differences but i didn't!)? No. Be careful to note the difference between a context's path and its docBase. You probably want a context whose path is "", so that people can point their browser at http://yourserver:yourport/ and see your webapp. Why it works in NetBeans is probably because NetBeans deploys your webapp to the "" context by default. I'm not familiar enough with NetBeans to comment further. >tell me, that i mustn't recode all my links! You should have coded them relatively in the first place to avoid this problem. Setting the context path to "" will save you the need to rewrite your links. >and: installing my files under a domain: isn't it allowed(?) too, to say >"/formats.css"?? It is allowed. Whether it makes sense to the container or not depends on your configuration. Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: does tomcat work without apache? ... a real beginner asks some basic!?
hi, i tried the path="" with my tomcat, and the result was the same. how does this "http://yourserver:yourport"; work in "real"-life: must i do several tomcat-installation, shall there be more " please give me one more hint! thank you hans Shapira, Yoav schrieb: Howdy, with the paths: isn't it so, that "docBase=..." means, that all my links would be added to this entry? and why does it work in netbeans (i tried to find any differences but i didn't!)? No. Be careful to note the difference between a context's path and its docBase. You probably want a context whose path is "", so that people can point their browser at http://yourserver:yourport/ and see your webapp. Why it works in NetBeans is probably because NetBeans deploys your webapp to the "" context by default. I'm not familiar enough with NetBeans to comment further. tell me, that i mustn't recode all my links! You should have coded them relatively in the first place to avoid this problem. Setting the context path to "" will save you the need to rewrite your links. and: installing my files under a domain: isn't it allowed(?) too, to say "/formats.css"?? It is allowed. Whether it makes sense to the container or not depends on your configuration. Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: does tomcat work without apache? ... a real beginner asks some basic!?
Howdy, I'm quickly getting tired of this. You should really read the configuration reference in the tomcat docs, especially docBase and path, and make sure you understand them. You don't need multiple Engines or Hosts, one (the default) is enough. Don't have absolute links, i.e links that start with /, in your webapp. They should all be relative, i.e start with ./ or ../. If they have to start with /, it must be / + your webapp name + /the file, i.e. /sygenews/myfile.html. Yoav Shapira Millennium ChemInformatics >-Original Message- >From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] >Sent: Thursday, October 23, 2003 1:58 PM >To: Tomcat Users List >Subject: Re: does tomcat work without apache? ... a real beginner asks some >basic!? > >hi, > >i tried the path="" with my tomcat, and the result was the same. how >does this "http://yourserver:yourport"; work in "real"-life: must i do >several tomcat-installation, shall there be more "more " >please give me one more hint! > >thank you >hans > >Shapira, Yoav schrieb: > >>Howdy, >> >> >> >>>with the paths: isn't it so, that "docBase=..." means, that all my >>> >>> >>links >> >> >>>would be added to this entry? and why does it work in netbeans (i tried >>>to find any differences but i didn't!)? >>> >>> >> >>No. Be careful to note the difference between a context's path and its >>docBase. You probably want a context whose path is "", so that people >>can point their browser at http://yourserver:yourport/ and see your >>webapp. >> >>Why it works in NetBeans is probably because NetBeans deploys your >>webapp to the "" context by default. I'm not familiar enough with >>NetBeans to comment further. >> >> >> >>>tell me, that i mustn't recode all my links! >>> >>> >> >>You should have coded them relatively in the first place to avoid this >>problem. Setting the context path to "" will save you the need to >>rewrite your links. >> >> >> >>>and: installing my files under a domain: isn't it allowed(?) too, to >>> >>> >>say >> >> >>>"/formats.css"?? >>> >>> >> >>It is allowed. Whether it makes sense to the container or not depends >>on your configuration. >> >>Yoav Shapira >> >> >> >>This e-mail, including any attachments, is a confidential business >communication, and may contain information that is confidential, >proprietary and/or privileged. This e-mail is intended only for the >individual(s) to whom it is addressed, and may not be saved, copied, >printed, disclosed or used by anyone else. If you are not the(an) intended >recipient, please immediately delete this e-mail from your computer system >and notify the sender. Thank you. >> >> >>- >>To unsubscribe, e-mail: [EMAIL PROTECTED] >>For additional commands, e-mail: [EMAIL PROTECTED] >> >> >> >> This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: does tomcat work without apache? ... a real beginner asks some basic!?
dear yoav shapira, please don't take it personal! it's me who is sitting lots of hours and trying... thank your for your time spent to answer my emails. i have one last question and i hope i get a last answer: what you told me in your last email (with absolute and relative paths) - is this not only true for my private-tomcat-environment but also, when i once have an own domain like "www.myapp.at"? greetings and thank you so much for your help hans horwath Shapira, Yoav schrieb: Howdy, I'm quickly getting tired of this. You should really read the configuration reference in the tomcat docs, especially docBase and path, and make sure you understand them. You don't need multiple Engines or Hosts, one (the default) is enough. Don't have absolute links, i.e links that start with /, in your webapp. They should all be relative, i.e start with ./ or ../. If they have to start with /, it must be / + your webapp name + /the file, i.e. /sygenews/myfile.html. Yoav Shapira Millennium ChemInformatics -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, October 23, 2003 1:58 PM To: Tomcat Users List Subject: Re: does tomcat work without apache? ... a real beginner asks some basic!? hi, i tried the path="" with my tomcat, and the result was the same. how does this "http://yourserver:yourport"; work in "real"-life: must i do several tomcat-installation, shall there be more " please give me one more hint! thank you hans Shapira, Yoav schrieb: Howdy, with the paths: isn't it so, that "docBase=..." means, that all my links would be added to this entry? and why does it work in netbeans (i tried to find any differences but i didn't!)? No. Be careful to note the difference between a context's path and its docBase. You probably want a context whose path is "", so that people can point their browser at http://yourserver:yourport/ and see your webapp. Why it works in NetBeans is probably because NetBeans deploys your webapp to the "" context by default. I'm not familiar enough with NetBeans to comment further. tell me, that i mustn't recode all my links! You should have coded them relatively in the first place to avoid this problem. Setting the context path to "" will save you the need to rewrite your links. and: installing my files under a domain: isn't it allowed(?) too, to say "/formats.css"?? It is allowed. Whether it makes sense to the container or not depends on your configuration. Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: does tomcat work without apache? ... a real beginner asks some basic!?
Howdy, >dear yoav shapira, > >please don't take it personal! it's me who is sitting lots of hours and >trying... Don't worry about me ;) I get enough amusement out of this mailing list to make up for the annoyance ;) >what you told me in your last email (with absolute and relative paths) - >is this not only true for my private-tomcat-environment but also, when i >once have an own domain like "www.myapp.at"? Yes, it's true for that as well. Use relative links. Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]