Re: invalid reference to login form
Propes, Barry L wrote: on that note, it's also showing "The request sent by the client was syntactically incorrect." My web.xml is correct and I haven't changed it recently. I'm almost thinking that the Tomcat server could use a restart, but hopefully that's all there is to it. -Original Message- From: Propes, Barry L [mailto:[EMAIL PROTECTED] Sent: Friday, May 25, 2007 4:04 PM To: Tomcat Users List Subject: invalid reference to login form Hi, I'm having some users get this error reaching a portion of the secured section of my app. They oddly enough can access certain pages within the directory of this application, by logging in appropriately through the form. However, another file in the same directory gives them this error - "Invalid Direct reference to Form Login page." We see that occasionally, I think it's after someone has left the login form open for close to the session expiry period, but we are unable to replicate it accurately. Which Tomcat version are you using? We've also seen a variety of issues when using AJAX components that attempt to submit requests after a session has timed out, including replacement of the original request* (resulting in post-auth redirects to AJAX script urls) and the popular IDR... * Not a technical issue so much as something we forgot to factor. p Thanks! Barry - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] smime.p7s Description: S/MIME Cryptographic Signature
Re: DBCP
Mohammed Zabin wrote: Thank you Christ For instance, I usually see "oracle.jdbc.driver.OracleDriver" instead of what you have above. It's as you stated above. But with Oracle 9i and onwards, the driver must be oracle.jdbc.OracleDriver, anyways, i am looking for a solution, and I am sure that i'll find one, thank you If you've not found it yet you need to carefully re-read the advice we've offered. I think we've identified the problem and advised a solution each time, I also think you're changing more than just what we've recommended you change, and thus introducing more problems. Your last issue was that you have moved the Resource definition to GlobalResources, then failed to add the ResourceLink that makes it available to the Context. Your previous issue was that you hadn't added the driver jar to the correct place for Tomcat's classloaders to find it. The issue before that* was that your Resource config definition was incorrect, as were the previous two attempts. Before that your JSP was faulty as you hadn't imported any of the classes you needed. p * Hopefully I've got these in the right order. server.xml : GlobalResource def yourapp.xml : Context def, ResourceLink web.xml : web app deployment desc, Resource Ref your.jsp: imports, active code On 5/25/07, Christopher Schultz <[EMAIL PROTECTED]> wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mohammed, Mohammed Zabin wrote: > I put the jar file in my WEB-INF/lib and CATALINA_HOME/lib and CLASSPATH, > but nothing changed, I got the same error No, you are getting a different error. The first one was ClassNotFoundException. Now, you are getting: org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create JDBC driver of class '' for connect URL 'null' Those are not the same. Search the archives for "Cannot create JDBC driver of class ''" and I'm sure you'll find this question answered hundreds of times over. It usually turns out to be an incorrect JDBC URL or an incorrect driver class name. Please check these over /carefully/: driverClassName="oracle.jdbc.OracleDriver" url="jdbc:oracle:thin:@127.0.0.1:1521:orcldb" For instance, I usually see "oracle.jdbc.driver.OracleDriver" instead of what you have above. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGVvxA9CaO5/Lv0PARArmAAJsEdBWX6X0TcjTLZ30hFYNjACEAZQCgr9+d 7ag9qjj7Q+Uxg23E0P21XyU= =EAkm -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] smime.p7s Description: S/MIME Cryptographic Signature
Re: DBCP
Thank you You know what, all that advises made me somewhat confused, i have reread Tomcat Documentation, now, am not sure about the following: 1. Which is best, servlet.xml or context.xml? 2. If it is servlet.xml, which servlet.xml, is it the config file for the container, or my web application servlet.xml file. 3. Where shall i put jdbc driver class file, in my web application META-INF or in Tomcat lib folder. I susbect with jdbc driver, if you look at otn.oracle, you will find many drivers for all jdks, but there is no one for JDK 6. On 5/26/07, Pid <[EMAIL PROTECTED]> wrote: Mohammed Zabin wrote: > Thank you Christ >> For instance, I usually see "oracle.jdbc.driver.OracleDriver" instead of >> what you have above. > > It's as you stated above. But with Oracle 9i and onwards, the driver > must be > oracle.jdbc.OracleDriver, anyways, > i am looking for a solution, and I am sure that i'll find one, thank you If you've not found it yet you need to carefully re-read the advice we've offered. I think we've identified the problem and advised a solution each time, I also think you're changing more than just what we've recommended you change, and thus introducing more problems. Your last issue was that you have moved the Resource definition to GlobalResources, then failed to add the ResourceLink that makes it available to the Context. Your previous issue was that you hadn't added the driver jar to the correct place for Tomcat's classloaders to find it. The issue before that* was that your Resource config definition was incorrect, as were the previous two attempts. Before that your JSP was faulty as you hadn't imported any of the classes you needed. p * Hopefully I've got these in the right order. server.xml : GlobalResource def yourapp.xml : Context def, ResourceLink web.xml : web app deployment desc, Resource Ref your.jsp: imports, active code > On 5/25/07, Christopher Schultz <[EMAIL PROTECTED]> wrote: >> >> -BEGIN PGP SIGNED MESSAGE- >> Hash: SHA1 >> >> Mohammed, >> >> Mohammed Zabin wrote: >> > I put the jar file in my WEB-INF/lib and CATALINA_HOME/lib and >> CLASSPATH, >> > but nothing changed, I got the same error >> >> No, you are getting a different error. The first one was >> ClassNotFoundException. Now, you are getting: >> >> org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create >> JDBC driver of class '' for connect URL 'null' >> >> Those are not the same. >> >> Search the archives for "Cannot create JDBC driver of class ''" and I'm >> sure you'll find this question answered hundreds of times over. >> >> It usually turns out to be an incorrect JDBC URL or an incorrect driver >> class name. Please check these over /carefully/: >> >> driverClassName="oracle.jdbc.OracleDriver" >> url="jdbc:oracle:thin:@127.0.0.1:1521:orcldb" >> >> For instance, I usually see "oracle.jdbc.driver.OracleDriver" instead of >> what you have above. >> >> - -chris >> >> -BEGIN PGP SIGNATURE- >> Version: GnuPG v1.4.7 (MingW32) >> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org >> >> iD8DBQFGVvxA9CaO5/Lv0PARArmAAJsEdBWX6X0TcjTLZ30hFYNjACEAZQCgr9+d >> 7ag9qjj7Q+Uxg23E0P21XyU= >> =EAkm >> -END PGP SIGNATURE- >> >> - >> To start a new topic, e-mail: users@tomcat.apache.org >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> >
Re: DBCP
Mohammed Zabin wrote: Thank you (Please just reply to the list, not 'all') You know what, all that advises made me somewhat confused, i have reread Tomcat Documentation, now, am not sure about the following: 1. Which is best, servlet.xml or context.xml? You must add information to all of config files, it's not optional, I think the documentation is pretty clear on what needs to be added to each file. (Below, < ... > is a location or name of something on your system). 2. If it is servlet.xml, which servlet.xml, is it the config file for the container, or my web application servlet.xml file. I'm not aware of a Tomcat configuration file called "servlet.xml". Tomcat uses the following files (in addition to your web app's files): /conf/server.xml - main config /conf/context.xml - default/all contexts /conf/web.xml - main config You can configure the Context by placing the definition in - EITHER: /conf//.xml OR: /META-INF/context.xml You should also configure your servlet definitions and the remainder of your application as per the spec in: /WEB-INF/web.xml 3. Where shall i put jdbc driver class file, in my web application META-INF or in Tomcat lib folder. Not META-INF, WEB-INF and META-INF are different locations, with different purposes. You can place the oracle jar file in - EITHER: /lib OR: /WEB-INF/lib I susbect with jdbc driver, if you look at otn.oracle, you will find many drivers for all jdks, but there is no one for JDK 6. It's not the driver, it's your config. Tomcat+Oracle is successfully deployed by many people all over the world. So, in summary, as an *example* to demonstrate some possible locations for various bits of config, you might have: Resource def in GlobalResources, 'testhost' Host def: /path/to/tomcat6/conf/server.xml ResourceLink in Context: /path/to/tomcat6/conf/testhost/ROOT.xml oracle-XXX.jar in /path/to/tomcat6/lib Resource ref, servlets in: /path/to/testhost/webapps/ROOT/WEB-INF/web.xml JSP in: /path/to/testhost/webapps/ROOT/test.jsp p p.s. Chuck, if you read this, I'm betting that you'll need to get your path attribute standard response ready. On 5/26/07, Pid <[EMAIL PROTECTED]> wrote: Mohammed Zabin wrote: > Thank you Christ >> For instance, I usually see "oracle.jdbc.driver.OracleDriver" instead of >> what you have above. > > It's as you stated above. But with Oracle 9i and onwards, the driver > must be > oracle.jdbc.OracleDriver, anyways, > i am looking for a solution, and I am sure that i'll find one, thank you If you've not found it yet you need to carefully re-read the advice we've offered. I think we've identified the problem and advised a solution each time, I also think you're changing more than just what we've recommended you change, and thus introducing more problems. Your last issue was that you have moved the Resource definition to GlobalResources, then failed to add the ResourceLink that makes it available to the Context. Your previous issue was that you hadn't added the driver jar to the correct place for Tomcat's classloaders to find it. The issue before that* was that your Resource config definition was incorrect, as were the previous two attempts. Before that your JSP was faulty as you hadn't imported any of the classes you needed. p * Hopefully I've got these in the right order. server.xml : GlobalResource def yourapp.xml : Context def, ResourceLink web.xml : web app deployment desc, Resource Ref your.jsp: imports, active code > On 5/25/07, Christopher Schultz <[EMAIL PROTECTED]> wrote: >> >> -BEGIN PGP SIGNED MESSAGE- >> Hash: SHA1 >> >> Mohammed, >> >> Mohammed Zabin wrote: >> > I put the jar file in my WEB-INF/lib and CATALINA_HOME/lib and >> CLASSPATH, >> > but nothing changed, I got the same error >> >> No, you are getting a different error. The first one was >> ClassNotFoundException. Now, you are getting: >> >> org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create >> JDBC driver of class '' for connect URL 'null' >> >> Those are not the same. >> >> Search the archives for "Cannot create JDBC driver of class ''" and I'm >> sure you'll find this question answered hundreds of times over. >> >> It usually turns out to be an incorrect JDBC URL or an incorrect driver >> class name. Please check these over /carefully/: >> >> driverClassName="oracle.jdbc.OracleDriver" >> url="jdbc:oracle:thin:@127.0.0.1:1521:orcldb" >> >> For instance, I usually see "oracle.jdbc.driver.OracleDriver" instead of >> what you have above. >> >> - -chris >> >> -BEGIN PGP SIGNATURE- >> Version: GnuPG v1.4.7 (MingW32) >> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org >> >> iD8DBQFGVvxA9CaO5/Lv0PARArmAAJsEdBWX6X0TcjTLZ30hFYNjACEAZQCgr9+d >> 7ag9qjj7Q+Uxg23E0P21XyU= >> =EAkm >> -END PGP SIGNATURE- >> >> - >> To start a new top
Re: DBCP
Thank you Pid for your patience with me, Thank you all guys, the problem finally sovled, and the connection established. The problem was because of i didn't state the , I put it like this: in Context.xml, and i removed all occurences of jdbc class drivers but in CATALINA_HOME/lib. By the way, it is the advice of David Smith and Pid. Thank you guys, Thank you ver much :). Jotnarta On 5/26/07, Pid <[EMAIL PROTECTED]> wrote: Mohammed Zabin wrote: > Thank you (Please just reply to the list, not 'all') > You know what, all that advises made me somewhat confused, i have reread > Tomcat Documentation, now, am not sure about the following: > 1. Which is best, servlet.xml or context.xml? You must add information to all of config files, it's not optional, I think the documentation is pretty clear on what needs to be added to each file. (Below, < ... > is a location or name of something on your system). > 2. If it is servlet.xml, which servlet.xml, is it the config file for the > container, or my web application servlet.xml file. I'm not aware of a Tomcat configuration file called "servlet.xml". Tomcat uses the following files (in addition to your web app's files): /conf/server.xml - main config /conf/context.xml - default/all contexts /conf/web.xml - main config You can configure the Context by placing the definition in - EITHER: /conf//.xml OR: /META-INF/context.xml You should also configure your servlet definitions and the remainder of your application as per the spec in: /WEB-INF/web.xml > 3. Where shall i put jdbc driver class file, in my web application META-INF > or in Tomcat lib folder. Not META-INF, WEB-INF and META-INF are different locations, with different purposes. You can place the oracle jar file in - EITHER: /lib OR: /WEB-INF/lib > I susbect with jdbc driver, if you look at otn.oracle, you will find many > drivers for all jdks, but there is no one for JDK 6. It's not the driver, it's your config. Tomcat+Oracle is successfully deployed by many people all over the world. So, in summary, as an *example* to demonstrate some possible locations for various bits of config, you might have: Resource def in GlobalResources, 'testhost' Host def: /path/to/tomcat6/conf/server.xml ResourceLink in Context: /path/to/tomcat6/conf/testhost/ROOT.xml oracle-XXX.jar in /path/to/tomcat6/lib Resource ref, servlets in: /path/to/testhost/webapps/ROOT/WEB-INF/web.xml JSP in: /path/to/testhost/webapps/ROOT/test.jsp p p.s. Chuck, if you read this, I'm betting that you'll need to get your path attribute standard response ready. > On 5/26/07, Pid <[EMAIL PROTECTED]> wrote: >> >> Mohammed Zabin wrote: >> > Thank you Christ >> >> For instance, I usually see "oracle.jdbc.driver.OracleDriver" instead >> of >> >> what you have above. >> > >> > It's as you stated above. But with Oracle 9i and onwards, the driver >> > must be >> > oracle.jdbc.OracleDriver, anyways, >> > i am looking for a solution, and I am sure that i'll find one, thank >> you >> >> If you've not found it yet you need to carefully re-read the advice >> we've offered. I think we've identified the problem and advised a >> solution each time, I also think you're changing more than just what >> we've recommended you change, and thus introducing more problems. >> >> Your last issue was that you have moved the Resource definition to >> GlobalResources, then failed to add the ResourceLink that makes it >> available to the Context. >> >> Your previous issue was that you hadn't added the driver jar to the >> correct place for Tomcat's classloaders to find it. >> >> The issue before that* was that your Resource config definition was >> incorrect, as were the previous two attempts. >> >> Before that your JSP was faulty as you hadn't imported any of the >> classes you needed. >> >> >> p >> >> >> * Hopefully I've got these in the right order. >> >> >> server.xml : GlobalResource def >> yourapp.xml : Context def, ResourceLink >> web.xml : web app deployment desc, Resource Ref >> your.jsp: imports, active code >> >> >> >> >> >> > On 5/25/07, Christopher Schultz <[EMAIL PROTECTED]> wrote: >> >> >> >> -BEGIN PGP SIGNED MESSAGE- >> >> Hash: SHA1 >> >> >> >> Mohammed, >> >> >> >> Mohammed Zabin wrote: >> >> > I put the jar file in my WEB-INF/lib and CATALINA_HOME/lib and >> >> CLASSPATH, >> >> > but nothing changed, I got the same error >> >> >> >> No, you are getting a different error. The first one was >> >> ClassNotFoundException. Now, you are getting: >> >> >> >> org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create >> >> JDBC driver of class '' for connect URL 'null' >> >> >> >> Those are not the same. >> >> >> >> Search the archives for "Cannot create JDBC driver of class ''" and >> I'm >> >> sure you'll find this question answered hundreds of times over. >> >> >> >> It usually turns out to be an incorrect JDBC URL or an incorrect >> driver >> >> class name. Please check thes
http request header through iis 6
Hello everyone, i can't manage to get a custom http-request header to reach tomcat from a applet through iis 6 and latest isapi_redirect JK-1.2.23. tha applet with tomcat works ok using port 8080 (direct tomcat connection) but doesn't using port 80 (virtual folder on iis 6 and isapi filter) everything else works in the web application. i'm using a uriworkingmap like: /context/*=worker1 and /context/servlet/*=worker1 and i know the servlet is really invoked (POST with enctype="multipart/form-data") but request.getHeader("custom-header-name") simply returns null using iis can it be a known bug or a misconfiguration on iis ? thanx to everyone. Marco - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Upgrading to Tomcat 6 problems
On 5/25/07, Joe <[EMAIL PROTECTED]> wrote: Hello, I just upgraded to Tomcat 6.0.13 from 5.5.9 (no particular reason for the upgrade, just keeping up to date). I am running Java 1.6. However, instantly I'm having trouble that > I cannot resolve regardless of endless hours of searching for and trying to apply answers > to previous similar problems. After starting Tomcat, I get the following errors within the log file for every web application: I've upgraded from 5.5.x to 6.0.x with no problems at all, and I use JSTL also. I recommend getting a ~fresh~ install of Tomcat 6.0.13 . Then simply configure your webapps with their respective xml files Tomcat 6.0.13 supports Servlet 2.5 specification and JSP 2.1 specification. The EL requires your web.xml to be conformant to either Servlet 2.5 or Servlet 2.4 specifications. So in your web app's WEB-INF/web.xml , make sure you have define web-app exactly as: one of the two: http://java.sun.com/xml/ns/javaee"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="http://java.sun.com/xml/ns/javaee web-app_2_5.xsd" version="2.5"> OR http://java.sun.com/xml/ns/j2ee"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd";> If you're using JSTL 1.1 or higher there's no need to explicitly define the TLDs within web.xml , as they're already defined in JSTL's jar file. You just need the correct jstl and standard jar files. In your JSPs make sure the taglib URIs are correct, (refer to the JSTL Taglib API for your version of JSTL) -Regards Rashmi - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JSP pages mixing for concurrent users
On 5/22/07, Florian <[EMAIL PROTECTED]> wrote: Hi. I have a group of developers that are experiencing an intermitent problem with some of the their JSP pages when concurrent users are using the application. They have had a hard time reproducing the issue in the development environement so the details are still sketchy. I wanted to post this anyway hoping someone would recognize this as a know issue. From my understanding 1 session corresponds to 1 browser instance. If 2 different users login with the same browser instance then sessions could get mixed up if the first user did not log out, and if the session wasn't invalidated when the first user logged out. Sessions normally time-out after an interval, so if 2nd user logged in to the same browser instance before the session timeout and while the 1st users session was still active, then the sessions could mix up. While debugging you could always print the session id of the user and see if user B's session id is the same as user A's session id. -Rashmi - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
subdomain name redirect to different context path
Hi all, I would like to point 'forums.mysite.com' to 'www.mysite.com:8080/forums' How could I do that with tomcat conf ? or I need to match the requested url in a redirect servlet ? or is it even a DNS zone file question ? Thanks, ran
Re: subdomain name redirect to different context path
On 5/26/07, Ran <[EMAIL PROTECTED]> wrote: Hi all, I would like to point 'forums.mysite.com' to 'www.mysite.com:8080/forums' How could I do that with tomcat conf ? or I need to match the requested url in a redirect servlet ? or is it even a DNS zone file question ? You could write a redirect javax.servlet.Filter Thanks, ran Regards Rashmi - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: subdomain name redirect to different context path
Rashmi Rubdi wrote: On 5/26/07, Ran <[EMAIL PROTECTED]> wrote: Hi all, I would like to point 'forums.mysite.com' to 'www.mysite.com:8080/forums' How could I do that with tomcat conf ? or I need to match the requested url in a redirect servlet ? or is it even a DNS zone file question ? You could write a redirect javax.servlet.Filter Thanks, ran forums.mysite.com = forums.mysite.com:80 Configure an HTTP connector to listen on 80, (rather than 8080), then configure a virtualhost for 'forums.mysite.com', all of which is assuming you've got a DNS record for this subdomain that points to your server. You then need to deploy the 'forums' web application as the ROOT* context to make it work without a subdirectory. * Case is important, lookup the docs. p Regards Rashmi - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] smime.p7s Description: S/MIME Cryptographic Signature
Re: JSP pages mixing for concurrent users
Rashmi Rubdi wrote: On 5/22/07, Florian <[EMAIL PROTECTED]> wrote: Hi. I have a group of developers that are experiencing an intermitent problem with some of the their JSP pages when concurrent users are using the application. They have had a hard time reproducing the issue in the development environement so the details are still sketchy. I wanted to post this anyway hoping someone would recognize this as a know issue. From my understanding 1 session corresponds to 1 browser instance. You've managed not to tell us what the issue is so far, only that you think it's intermittent and that it occurs when more than one person is using the app. What is the problem exactly? (And the usual: tell us OS, server version etc etc). p If 2 different users login with the same browser instance then sessions could get mixed up if the first user did not log out, and if the session wasn't invalidated when the first user logged out. Sessions normally time-out after an interval, so if 2nd user logged in to the same browser instance before the session timeout and while the 1st users session was still active, then the sessions could mix up. While debugging you could always print the session id of the user and see if user B's session id is the same as user A's session id. -Rashmi - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] smime.p7s Description: S/MIME Cryptographic Signature
Tomcat Netbeans Project... WildCat
Everyone probably knows by now that I think Tomcat is pure magic. I been trying to find a way to bridge the gap between the super keen user and the developer. One can become and expert user, and still find those guru's in the dev list intimidating. It probably isnt as big a deal for the linux user... linux itself is a development tool, but to the windows user, getting from expert user to someone that can find their way around the code is not so easy. So what I've been up to is converting (as little as possible) Tomcat to a pure Netbeans project. I call it Wild Cat... because it should never be confused with the professional Tomcat. Its turning out to be a magic play zone and an excellent way to get to know the code. This is where I'm at + One can dump the src into a Netbeans project, click compile and you have a working Tomcat. + That means one can run it in debug, and watch it working from the inside. + Its tomcat 6.0.13... but is wears a Tomcat 5.5 mask... the reason I did that is so that to netbeans (remember netbeans is a servlet dev environment)... is so that if you tell Netbeans that the DIST folder or BUILD folder of WildCat is a Tomcat 5.5 server... it thinks it is, and Tomcat (Wildcat) works just the same from inside netbeans, and from the servlet dev env. + So... you can run your servlets against the Tomcat source... now that is cool. I havent had a chance to test it yet, but where I'm trying to get to is the ability to debug from servlet straight into Tomcat source. + Can also start and stop it from the Bin scripts... and one can also just double click on WildCat, and you get a GUI... and you can control it from their... the GUI also has a teminal window so you can watch the Tomcat messages. + Its not meant to be a slick package like tomcat... its a huge jar with 2 libs... but its a magic way to watch Tomcat working. Thats as far as I've got... but I need a little help before sticking the source on a site for everyone to play with. I develop on windows... and I'm looking for a linux person that is super keen on Tomcat and also runs Netbeans. Someone that wants to play with Tomcats source and that will pick up linux problems... like scripts and I may have used a \ somewhere in the code. Thanks... I'll stick it on a site as soon as I got it all tested. Johnny Kewl eMail: Johnkewlstuff.co.za -- replace with @ -- Cell: +027-72- 473-9331 Java Developer (Tomcat Aficionado) Free Tomcat software at http://coolese.100free.com/
Re: JSP pages mixing for concurrent users
Me thinks this is your problem. You have some variables being shared which are not thread safe. > -All JSP pages extend a common class which writes the header and footer > using the JspWriter. -Tim Florian wrote: Hi. I have a group of developers that are experiencing an intermitent problem with some of the their JSP pages when concurrent users are using the application. They have had a hard time reproducing the issue in the development environement so the details are still sketchy. I wanted to post this anyway hoping someone would recognize this as a know issue. The scenario: User A is requesting JSP page X and User B is requesting JSP page Y. The symptoms: User A: instead of seeing Page X, user X sees the header of page X and then Page Y with the date from user B's session. User B: sees a blank page. Additional clues: -The user session are unaffected by the event described above. A simple refresh allows the user to recover. -A "stream has already been closed" exception is thrown by the code for Page X when an attempt is made to write to it. -All JSP pages extend a common class which writes the header and footer using the JspWriter. -No static or instance variables are used. -Using Tomcat 5.5.17 -Using 1.4 on Solaris 10. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
404 message when trying to test a servlet
Greetings, I suspect the class file may be in the wrong directory. I get the message /basic-servlet/servlet/CurrencyConverter , which is confusing in that the class file is in the following directory C:\Program Files\Apache Software Foundation\Tomcat 4.1\webapps\basic-servlet\WEB-INF\classes. The html page is being found ok but when I do a submit and it tries to bring up the servlet I get the above. I really appreciate any help you can give. P.s. when I start tomcat I only get the following messages Starting service Tomcat-Standalone Apache Tomcat/4.1.36-LE-jdk14 I am able to access http://localhost:8080/index.jsp Sincerely, D
Re: 404 message when trying to test a servlet
"Dean" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Greetings, > > > > I suspect the class file may be in the wrong directory. I get the message > /basic-servlet/servlet/CurrencyConverter , which is confusing in that the > class file is in the following directory C:\Program Files\Apache Software > Foundation\Tomcat 4.1\webapps\basic-servlet\WEB-INF\classes. The html > page > is being found ok but when I do a submit and it tries to bring up the > servlet I get the above. > The invoker servlet has been disabled in the default config for ages (because it is evil :). You can enable it at your own risk in conf/web.xml, but that isn't recommended. Use an explicit servlet-mapping instead. Having classes in the default package will prevent you from upgrading later on. You really should put your class in a package. > > > I really appreciate any help you can give. > > > > P.s. when I start tomcat I only get the following messages > > Starting service Tomcat-Standalone > > Apache Tomcat/4.1.36-LE-jdk14 > > > > I am able to access http://localhost:8080/index.jsp > > > > Sincerely, > > > > D > > > > - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JSP pages mixing for concurrent users
"Tim Funk" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Me thinks this is your problem. You have some variables being shared which > are not thread safe. > Most common reason why, but intermediate caching proxies can do this too. > > -All JSP pages extend a common class which writes the header and footer > > using the JspWriter. > > > -Tim > > Florian wrote: >> Hi. >> >> I have a group of developers that are experiencing an intermitent problem >> with some of the their JSP pages when concurrent users are using the >> application. >> They have had a hard time reproducing the issue in the development >> environement >> so the details are still sketchy. I wanted to post this anyway hoping >> someone would recognize this as a know issue. >> >> The scenario: >> User A is requesting JSP page X and User B is requesting JSP page Y. >> >> The symptoms: >> User A: instead of seeing Page X, user X sees the header of page X and >> then Page Y with the date from user B's session. >> >> User B: sees a blank page. >> >> Additional clues: >> -The user session are unaffected by the event described above. A simple >> refresh allows the user to recover. >> -A "stream has already been closed" exception is thrown by the code for >> Page X >> when an attempt is made to write to it. >> -All JSP pages extend a common class which writes the header and footer >> using the JspWriter. >> -No static or instance variables are used. >> -Using Tomcat 5.5.17 >> -Using 1.4 on Solaris 10. > > > - > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Excluding JSP compiler from Tomcat
"lightbulb432" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > The JSP spec says that if you precompile JSPs you can reduce the JSP > container footprint by excluding the JSP compiler. How can this be done in > Tomcat? You should be able to remove jasper-compiler.jar and jasper-compiler-jdt.jar from $CATALINA_HOME/common/lib (for a whopping savings of 1.5MB). I haven't tested it, so your milage may very :). > > Thanks. > -- > View this message in context: > http://www.nabble.com/Excluding-JSP-compiler-from-Tomcat-tf3817429.html#a10807251 > Sent from the Tomcat - User mailing list archive at Nabble.com. > > > - > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: subdomain name redirect to different context path
On 5/26/07, Pid <[EMAIL PROTECTED]> wrote: Rashmi Rubdi wrote: > On 5/26/07, Ran <[EMAIL PROTECTED]> wrote: >> Hi all, >> I would like to point 'forums.mysite.com' to 'www.mysite.com:8080/forums' >> How could I do that with tomcat conf ? or I need to match the >> requested url >> in a redirect servlet ? or is it even a DNS zone file question ? > > You could write a redirect javax.servlet.Filter > >> Thanks, >> ran >> forums.mysite.com = forums.mysite.com:80 Configure an HTTP connector to listen on 80, (rather than 8080), then configure a virtualhost for 'forums.mysite.com', all of which is assuming you've got a DNS record for this subdomain that points to your server. You then need to deploy the 'forums' web application as the ROOT* context to make it work without a subdirectory. I think he wants to redirect or forward all requests from 'forums.mysite.com' to 'www.mysite.com:8080/forums' in that case wouldn't he be setting up a Filter that redirects or forwards a request from forums.mysite.com to www.mysite.com:8080/forums ? * Case is important, lookup the docs. p > Regards > Rashmi - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: subdomain name redirect to different context path
> From: Rashmi Rubdi [mailto:[EMAIL PROTECTED] > Subject: Re: subdomain name redirect to different context path > > I think he wants to redirect or forward all requests from > 'forums.mysite.com' to 'www.mysite.com:8080/forums' > > in that case wouldn't he be setting up a Filter that redirects or > forwards a request from forums.mysite.com to > www.mysite.com:8080/forums ? The filter is likely not necessary, if Pid's instructions are followed. What is absolutely required is a DNS registration for forums.mysite.com, otherwise no one will be able to reach the site. Once that's in place along with a connector configured for port 80 rather than 8080, deploying the forums webapp as ROOT is all that's required - no programming necessary. - 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 start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]