Re: Please help me in my problem...
If you don't say which error message you got it will be a little difficult ! SaM Steven Ang wrote: Hello, I need some help in configurating tomcat server. I'm doing a JSP project, I have read some documentation about tomcat and it states that i need to add some line in %CATALINA_HOME%/conf/server.xml Context path=/thesis docbase=thesis debug=0 reloadable=true crossContext=true/ but after i save the server.xml and run start tomcat, i got some error message in console. I don;t know why. And also http://localhost:8080/thesis/hello.jsp returns and error message. here are my source code of hello.jsp html boby HI /body /html here are my software and hardware information WINDOWS XP JAVA SDK 1.4.2 TOMCAT 4.1.24 Pentium III 1G 128MB 20 GB Hard Drive Please help me Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Access static content ...
Hi all, I want to map my servlet with /* url pattern except the /resources directory which contains static content that I want to acces directly. Is there any particular configuration that could allow me to do so, in my web.xml file or in the server.xml config file ? I want to do that on a Tomcat 4.1 Thanks, SaM - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Access static content ...
Hi, I cannot change the code of my servlet since I use the Turbine framework. So I tried your second solution which doesn't work anymore. When I now want to access http://myserver/context/resources, I have the directory listing for / page ... Maybe anyone have an idea of what's hapening, or maybe should I give up my idea ?! Thanks, SaM Tim Funk wrote: Or you might be able to get away with this to in web.xml ... servlet-mapping url/resources/url servletdefault/servlet /servlet-mapping servlet-mapping url/resources/*/url servletdefault/servlet /servlet-mapping -Tim Tim Funk wrote: No, but this *might* work. Place it in your servlet which maps to /* ... (assuming your extending javax.servlet.http.HttpServlet) doGet(HttpServletRequest req, HttpServletResponse resp) { if (req.getRequestURI().indexOf(/resources)-1) { //Use the default servlet to serve the static content getServletContext().getNamedDispatcher(default).forward(req, resp); return; } //Normal logic } -Tim Samuel Le Berrigaud wrote: Hi all, I want to map my servlet with /* url pattern except the /resources directory which contains static content that I want to acces directly. Is there any particular configuration that could allow me to do so, in my web.xml file or in the server.xml config file ? I want to do that on a Tomcat 4.1 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Access static content ...
Of course it is a directory but tomcat lists / which contains the resources directory (in fact to list / I would only check http://myserver/context) SaM Tim Funk wrote: If http://myserver/context/resources is a directory, then that is the correct behavior on how things work. -Tim Samuel Le Berrigaud wrote: Hi, I cannot change the code of my servlet since I use the Turbine framework. So I tried your second solution which doesn't work anymore. When I now want to access http://myserver/context/resources, I have the directory listing for / page ... Maybe anyone have an idea of what's hapening, or maybe should I give up my idea ?! Thanks, SaM Tim Funk wrote: Or you might be able to get away with this to in web.xml ... servlet-mapping url/resources/url servletdefault/servlet /servlet-mapping servlet-mapping url/resources/*/url servletdefault/servlet /servlet-mapping -Tim Tim Funk wrote: No, but this *might* work. Place it in your servlet which maps to /* ... (assuming your extending javax.servlet.http.HttpServlet) doGet(HttpServletRequest req, HttpServletResponse resp) { if (req.getRequestURI().indexOf(/resources)-1) { //Use the default servlet to serve the static content getServletContext().getNamedDispatcher(default).forward(req, resp); return; } //Normal logic } -Tim Samuel Le Berrigaud wrote: Hi all, I want to map my servlet with /* url pattern except the /resources directory which contains static content that I want to acces directly. Is there any particular configuration that could allow me to do so, in my web.xml file or in the server.xml config file ? I want to do that on a Tomcat 4.1 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Access static content ...
Yes Tim Funk wrote: [Need more coffee] Does that mean that http://myserver/context/resources is serving a dir listing of the contents from http://myserver/context ? (instead of /context/resources) -Tim Samuel Le Berrigaud wrote: Of course it is a directory but tomcat lists / which contains the resources directory (in fact to list / I would only check http://myserver/context) SaM Tim Funk wrote: If http://myserver/context/resources is a directory, then that is the correct behavior on how things work. -Tim Samuel Le Berrigaud wrote: Hi, I cannot change the code of my servlet since I use the Turbine framework. So I tried your second solution which doesn't work anymore. When I now want to access http://myserver/context/resources, I have the directory listing for / page ... Maybe anyone have an idea of what's hapening, or maybe should I give up my idea ?! Thanks, SaM Tim Funk wrote: Or you might be able to get away with this to in web.xml ... servlet-mapping url/resources/url servletdefault/servlet /servlet-mapping servlet-mapping url/resources/*/url servletdefault/servlet /servlet-mapping -Tim Tim Funk wrote: No, but this *might* work. Place it in your servlet which maps to /* ... (assuming your extending javax.servlet.http.HttpServlet) doGet(HttpServletRequest req, HttpServletResponse resp) { if (req.getRequestURI().indexOf(/resources)-1) { //Use the default servlet to serve the static content getServletContext().getNamedDispatcher(default).forward(req, resp); return; } //Normal logic } -Tim Samuel Le Berrigaud wrote: Hi all, I want to map my servlet with /* url pattern except the /resources directory which contains static content that I want to acces directly. Is there any particular configuration that could allow me to do so, in my web.xml file or in the server.xml config file ? I want to do that on a Tomcat 4.1 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Access static content ...
Thanks for your help, I'll do it another way I think and I'll probably come back on that problem later on. SaM Tim Funk wrote: Then there is either - a bug in tomcat - a config error (most likely) but don't know what could be the culprit I never heard of this before. Seems quite odd. -Tim Samuel Le Berrigaud wrote: Yes Tim Funk wrote: [Need more coffee] Does that mean that http://myserver/context/resources is serving a dir listing of the contents from http://myserver/context ? (instead of /context/resources) -Tim - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem with Sym links and DefaultContext
Hello, I had some problem with sym links too, but mine are not solved at all... Could you, please, send me your server.xml file so that I can figure out what I did wrong... Any other advice would be appreciated, Thanks, SaM Lars Petersen wrote: Hi I try to get several apps with symlinks to work. If I set : Resources className=org.apache.naming.resources.FileDirContext allowLinking=true/ in the Context it works fine, but if I try it in DefaultContext it wont work. Any help available? Thanks Lars - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Pb with symbolic link
Hi everyone, I have a problem upgrading my Tomcat from 4.0.6 to 4.1.27. I had a symbolic link in a webapp context referencing some place outside this context, and had no probleme with tomcat 4.0 to access the files under the referenced folder. I upgraded my tomcat, every thing works fine except I can no longer access the files of the referenced directory ! Has anyone encontered the same problem ? Is there any solution to access those files ? Thanks, SaM - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Pb with symbolic link
Hi, this doesn't work . My webapp is , for example, called foo.war and deployed in $CATALINA_BASE/webapps and I would like $CATALINA_BASE/webapps/foo/bar to be a sym link to /home/foo/bar. What then exactly should be in server.xml ? Thanks in advance, SaM Brandon M. Blank wrote: Oops.. small typo in my last post: Don't forget to add the closing / in the Resources directive. Eg: Resources allowLinking=true should be Resources allowLinking=true/ -Original Message- From: Brandon M. Blank [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 10, 2003 9:48 AM To: 'Tomcat Users List'; [EMAIL PROTECTED] Subject: RE: Pb with symbolic link Sure, In your server.xml configuration, your context is defined by default as follows: Context path= docBase=ROOT debug=0/ To allow the use of symlinks, use this: Context path= docBase=ROOT debug=0 Resources allowLinking=true /Context Obviously change parameters as necessary for your deployment. BB -Original Message- From: Thomas Hehl [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 10, 2003 9:42 AM To: Tomcat Users List Subject: RE: Pb with symbolic link Could you put your context remark in context (:) for us newbies? Will this go in the web.xml file? Under which tags? Please forgive my ignorance;) --- Brandon M. Blank [EMAIL PROTECTED] wrote: In your context definition, add the following: Resources allowLinking=true/ Good Luck! -Original Message- From: Samuel Le Berrigaud [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 10, 2003 8:30 AM To: Tomcat Users List Subject: Pb with symbolic link Hi everyone, I have a problem upgrading my Tomcat from 4.0.6 to 4.1.27. I had a symbolic link in a webapp context referencing some place outside this context, and had no probleme with tomcat 4.0 to access the files under the referenced folder. I upgraded my tomcat, every thing works fine except I can no longer access the files of the referenced directory ! Has anyone encontered the same problem ? Is there any solution to access those files ? Thanks, SaM - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
$CATALINA_BASE/temp
Hi everybody, I'm using tomcat 4.1.27 on a Linux system. It works very well ! But I had a little problem of disk space because of the $CATALINA_BASE/temp that grows up very fast in size. In that folder I found some file s like jar_cahe*tmp. Does someone know how to limit the size of this directory ? Is there a special tomcat configuration for that Thanks, SaM - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: $CATALINA_BASE/temp
Fred Kreek wrote: At 10:46 03/09/03, you wrote: Hi everybody, I'm using tomcat 4.1.27 on a Linux system. It works very well ! But I had a little problem of disk space because of the $CATALINA_BASE/temp that grows up very fast in size. In that folder I found some file s like jar_cahe*tmp. Does someone know how to limit the size of this directory ? Is there a special tomcat configuration for that Thanks, SaM - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] try quota? I would have prefered a way to configure Tomcat so that it would limit the size of its folder itself ... Do someone know about that ? Regards, SaM -- F. Kreek Kamer J2-278 e-mail: [EMAIL PROTECTED] Klinische InformatieKunde tel: +31-20-566 6687 AMC - Amsterdamfax: +31-20-691 9840 Meibergdreef 15 1105 AZ Amsterdam There are 10 types of people when it comes to binary, those that understand it.. and those who don't. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tomcat+apache
I think you have only one virtual host in your Tomcat server.xml file Host name=localhost debug=0 appBase=webapps unpackWARs=true autoDeploy=true /Host you should add one with the name coresponding with your IP address like : Host name=10.0.0.1 debug=0 appBase=webapps unpackWARs=true autoDeploy=true /Host I think then it will work... regards, SaM frankie wrote: Dear all, i can build the mod_jk and setup the apache + tomcat + j2sdk+mysql+jdbc sucessfully,now i still have some problems want to ask you!! when i testing the server in local,i can access the jsp file without specific the port number, for example:http://localhost/examples/jsp/index.htm when i use other computer to test it , it cannot access the jsp file for example:http://10.0.0.1/examples/jsp/index,htm(can not access!!) but if specific the port 8080,it can works!! for example:http://10.0.0.1:8080/examples/jsp/index.htm(can access) Also the apache is work,i can see the apache welcome page if i type http://10.0.0.1 regards,Frankie -- Webmail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]