Re: Loading System Library After Reloading Webapp
Nobody out there who could help me, please? Could this this eventuelly be a solution: Is it possible to register a class on tomcat wich is listening to tomcat startup and then loads the native library? Can i then access their native functions from every webapp? regards and thanks in advance, thomas On Wed, 16 Mar 2005 17:01:54 +0100, Thomas Chille [EMAIL PROTECTED] wrote: Hi, in our webapp we are using a native c sytem library. after reloading this webapp via the manager app i step into the following error: java.lang.UnsatisfiedLinkError: Native Library C:\eclipse3\eclipse\workspace\Phoenix\etc\bin\resmgr.dll already loaded in another classloader I know that for every webapp would be one classloader used. 1. Would be different classloaders used for every loaded instance of a webapp? 2. Could i register a listener to unloading (is this possible in java?) the library if tomcat unloading the webapp? I am using tomcat 5.0.29 regards, thomas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Application install problem
Hi, i´m using tomcat 4.1.31 and try to install an application via manager console. my application consists of an xml-file containing a context section and a war-file. when i try to install my application, the xml-file is copied into the webapps folder, but the warfile is not deployed in a folder in the webapps folder. Ist there a possibility to do this? thanks mario -- DSL Komplett von GMX +++ Supergünstig und stressfrei einsteigen! AKTION Kein Einrichtungspreis nutzen: http://www.gmx.net/de/go/dsl - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem with BASIC authentication
Hi, Compared to Manager's web.xml, it seems you don't have the section resource-env-ref with the link to your user DataBase. Perhaps, try to put the role names without a - (rather a _ or nothing) Cheers. On Thu, 17 Mar 2005 10:49:29 +0530 Karanjkar, Sanjay V \(IT\) [EMAIL PROTECTED] wrote: Hi, Anyone had a chance to look at this one yet? Thanks Sanjay -Original Message- From: Karanjkar, Sanjay V (IT) Sent: 15 March 2005 11:19 To: tomcat-user@jakarta.apache.org Subject: Problem with BASIC authentication Hi, I have the following setup: 1. A copied version of Tomcat 4.1.24 on Unix (i.e. I have merely *copied* the entire tomcat folder from another installed location instead of installing it) 2. My application WAR file referenced by the following Context in Server.xml: Context path=/ieg-sc docBase=/var/tmp/DEV/install/common/lib/tc.ieg.war reloadable=true debug=99 privileged=true ResourceLink name=users type=org.apache.catalina.UserDatabase global=UserDatabase/ /Context 3. My app's web.xml has the following: security-constraint web-resource-collection web-resource-nameMy Application/web-resource-name url-pattern/*/url-pattern /web-resource-collection auth-constraint role-nameieg-sc-user/role-name /auth-constraint user-data-constraint transport-guaranteeNONE/transport-guarantee /user-data-constraint /security-constraint !-- Define the Login Configuration for this Application -- login-config auth-methodBASIC/auth-method realm-nameMy Application/realm-name /login-config security-role role-nameieg-sc-user/role-name /security-role 4. I have defined the user/role in conf/tomcat-users.xml: ?xml version='1.0' encoding='utf-8'? tomcat-users role rolename=ieg-sc-user/ user username=userid password=passwd roles=ieg-sc-user/ /tomcat-users When I start tomcat, everything seems to run fine except that I do not get a login window! I have gone over the setup so many times now, I'm going madHave I missed something? Is it because I've copied the tomcat binaries instead of installing it? If so, why does authentication work correctly for the inbuilt Manager application..? Appreciate if you could help me.. Thanks and regards Sanjay Karanjkar NOTICE: If received in error, please destroy and notify sender. Sender does not waive confidentiality or privilege, and use is prohibited. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] NOTICE: If received in error, please destroy and notify sender. Sender does not waive confidentiality or privilege, and use is prohibited. - 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: Reload webapp and context
Hi, To reload, start, stop, deploy, undeploy contexts see the Manager : http://jakarta.apache.org/tomcat/tomcat-5.5-doc/manager-howto.html I don't know your tomcat version, but it works since TC 4. Cheers. On Thu, 17 Mar 2005 08:32:54 +0100 Roland Carlsson [EMAIL PROTECTED] wrote: Hi! I have a problem with an webapp with deploying webapps. The problem is the contextfile that since my development environment differs a little to my deployment environment have to be edited a little after deployment. But how do I force tomcat to re-load the context? Right now the only way I know about is to reboot tomcat witch leads to a full stop of all my web-apps instead of only one witch in turn leads to more complaints from my users. So, is there a way to force reload of the context when reloading the web-app? Thanks in advance Roland Carlsson - 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: Loading System Library After Reloading Webapp
Hi, see the lifecycle listeners in your Context : http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/context.html You receive start Events or Stop Events. Another issue: Your problem is because the native library is loaded by the Application ClassLoader. If you can loaded it by the Common ClassLoader, perhaps you won't have this problem... see there: http://jakarta.apache.org/tomcat/tomcat-5.0-doc/class-loader-howto.html Cheers. On Thu, 17 Mar 2005 09:22:55 +0100 Thomas Chille [EMAIL PROTECTED] wrote: Nobody out there who could help me, please? Could this this eventuelly be a solution: Is it possible to register a class on tomcat wich is listening to tomcat startup and then loads the native library? Can i then access their native functions from every webapp? regards and thanks in advance, thomas On Wed, 16 Mar 2005 17:01:54 +0100, Thomas Chille [EMAIL PROTECTED] wrote: Hi, in our webapp we are using a native c sytem library. after reloading this webapp via the manager app i step into the following error: java.lang.UnsatisfiedLinkError: Native Library C:\eclipse3\eclipse\workspace\Phoenix\etc\bin\resmgr.dll already loaded in another classloader I know that for every webapp would be one classloader used. 1. Would be different classloaders used for every loaded instance of a webapp? 2. Could i register a listener to unloading (is this possible in java?) the library if tomcat unloading the webapp? I am using tomcat 5.0.29 regards, thomas - 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: Application install problem
Hi, I post a problem like yours yesterday : http://marc.theaimsgroup.com/?l=tomcat-userm=111099252030422w=2 In our case, the warfile is not deployed in the Host.appBase. I think it's deployed in the Host.workDir. see there : http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/host.html Note: If you don't provide a Context.xml and you only provide a warfile, it is deployed in the Host.appBase. Cheers. On Thu, 17 Mar 2005 10:44:30 +0100 (MET) Mario Bittermann [EMAIL PROTECTED] wrote: Hi, i_m using tomcat 4.1.31 and try to install an application via manager console. my application consists of an xml-file containing a context section and a war-file. when i try to install my application, the xml-file is copied into the webapps folder, but the warfile is not deployed in a folder in the webapps folder. Ist there a possibility to do this? thanks mario -- DSL Komplett von GMX +++ Supergünstig und stressfrei einsteigen! AKTION Kein Einrichtungspreis nutzen: http://www.gmx.net/de/go/dsl - 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]
tomcat 5.5 connector
As tomcat provide coyote connector that is http based, Is there any connector available that are non-http based And how we can use in our project when we are using tomcat 5.5 As both web server and servlets engine, Or can we make our own connector that is non-http(say telnet) And how we can implement it - - - - - - - DISCLAIMER- - - - - - - - Unless indicated otherwise, the information contained in this message is privileged and confidential, and is intended only for the use of the addressee(s) named above and others who have been specifically authorized to receive it. If you are not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this message and/or attachments is strictly prohibited. The company accepts no liability for any damage caused by any virus transmitted by this email. Furthermore, the company does not warrant a proper and complete transmission of this information, nor does it accept liability for any delays. If you have received this message in error, please contact the sender and delete the message. Thank you.
Re: DOS kind of Attack to your RAM?
... It's not even vaguely a Java/TC question. ... Who did? What evidence is there that you were attacked? In what sense is it a DOS attack? What does it have to do with Jakarta? Well, actually (and I am no trying to go into a rhetorical diatribe), as I said, I am using HSQL in memory tables for session handling and temporary data storage and Java/TC as servlet engine. How is it so far fetched to Java/Jakarta/TC people? Again, the techniques to attack/corrupt the RAM on a server are not exactly a Java/TC issue, but aren't HSQLDB (a pure Java DBMS) in memory(/RAM only) tables and TC definitely a very Java/TC environment in which these types of attacks could happen? I wouldn't believe so, but could TC's gc be somehow reclaiming the RAM that HSQL is using? I hacked the TC source and created the session DB/table at TC start-up/bootstrapping code and the in memory temp tables in the httpservlet.init method. The thing is that apparently it happens in a temperamental (and intelligent?) way. If things get rotten in memory then the OS/TC should shut down, but it is happening as if someone is somehow able to run queries on the in memory database tables and just delete certain users data. I use HSQL in memory tables because I am working on a diskless multi-instance Apache + TCs environment. If this (attacking you RAM based OS/app) is the only option you leave open to hackers to get to you -they- will use it. Now, does sealing all webapp classes and/or using an encrypted FS and RAMDISK help? You haven't really said what 'they' have done. I only commit a transaction to the backend server when the HTTPSession has either eventually come to a natural end/committed by the user or the user has left off the session leaving an incomplete session (which is automatically reclaimed by the engine (you would use the hooks from the ServletSessionListener interface)) I have functionally a stress tested it and it works wonderfully. Then I see on the logs that some users where online doing their stuff without trouble when the data they had in RAM suddenly evaporates without leaving traces. Also last time I checked in English you always need a subject 'they' -means-, namely, 'they' and google/http://www.mail-archive.com/[EMAIL PROTECTED]/ searches tell me you are not exactly a 'no-previous-history' person. Also, sorry if I bothered you guys at tomcat-dev Please, help. - Original Message - From: Andy Armstrong [EMAIL PROTECTED] To: Tomcat Developers List tomcat-dev@jakarta.apache.org Sent: Thursday, March 17, 2005 3:13 AM Subject: Re: DOS kind of Attack to your RAM? On 17 Mar 2005, at 04:31, John Smith wrote: I know this is not exactly a Java/TC question, but that could happen to any machine in a DMZ. It's not even vaguely a Java/TC question. Today as I showcased some app to my clients there was an incident of clients entering data that is not saved. It apparently happens in some cases, all data kept in sessions I keep in a memory HSQL table only when a user is done I save the data on the back end tables But apparently they corrupted the in memory data somehow Who did? What evidence is there that you were attacked? In what sense is it a DOS attack? What does it have to do with Jakarta? How do these m*th$r fck!rs do that (any links?) and how can you avoid it? You haven't really said what 'they' have done. -- Andy Armstrong, hexten.net - 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 BASIC authentication
Hi Lionel, Thanks for your response. I tried both suggestions but no luck.. Maybe it's something to do with the fact that I've not *installed* tomcat but only copied the binaries from an installed location (then how come the maanger app works? :-( Anyways, I also have a problem when shutting down tomcat. When I run shutdown.sh, I get the following error and there are process threads that I have to kill manually I have not altered the default server.xml (Ajp13 connector is not commented out) so can someone help me? Catalina.stop: java.net.ConnectException: Connection refused java.net.ConnectException: Connection refused at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:350) at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:137) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:124) at java.net.Socket.init(Socket.java:268) at java.net.Socket.init(Socket.java:95) at org.apache.catalina.startup.Catalina.stop(Catalina.java:581) at org.apache.catalina.startup.Catalina.execute(Catalina.java:402) at org.apache.catalina.startup.Catalina.process(Catalina.java:180) at java.lang.reflect.Method.invoke(Native Method) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203) gmake: *** [stop_tomcat] Error 1 Thanks in advance Sanjay Karanjkar fc3sdi team -Original Message- From: Lionel Farbos [mailto:[EMAIL PROTECTED] Sent: 17 March 2005 09:58 To: Tomcat Users List Cc: Karanjkar, Sanjay V (IT) Subject: Re: Problem with BASIC authentication Hi, Compared to Manager's web.xml, it seems you don't have the section resource-env-ref with the link to your user DataBase. Perhaps, try to put the role names without a - (rather a _ or nothing) Cheers. On Thu, 17 Mar 2005 10:49:29 +0530 Karanjkar, Sanjay V \(IT\) [EMAIL PROTECTED] wrote: Hi, Anyone had a chance to look at this one yet? Thanks Sanjay -Original Message- From: Karanjkar, Sanjay V (IT) Sent: 15 March 2005 11:19 To: tomcat-user@jakarta.apache.org Subject: Problem with BASIC authentication Hi, I have the following setup: 1. A copied version of Tomcat 4.1.24 on Unix (i.e. I have merely *copied* the entire tomcat folder from another installed location instead of installing it) 2. My application WAR file referenced by the following Context in Server.xml: Context path=/ieg-sc docBase=/var/tmp/DEV/install/common/lib/tc.ieg.war reloadable=true debug=99 privileged=true ResourceLink name=users type=org.apache.catalina.UserDatabase global=UserDatabase/ /Context 3. My app's web.xml has the following: security-constraint web-resource-collection web-resource-nameMy Application/web-resource-name url-pattern/*/url-pattern /web-resource-collection auth-constraint role-nameieg-sc-user/role-name /auth-constraint user-data-constraint transport-guaranteeNONE/transport-guarantee /user-data-constraint /security-constraint !-- Define the Login Configuration for this Application -- login-config auth-methodBASIC/auth-method realm-nameMy Application/realm-name /login-config security-role role-nameieg-sc-user/role-name /security-role 4. I have defined the user/role in conf/tomcat-users.xml: ?xml version='1.0' encoding='utf-8'? tomcat-users role rolename=ieg-sc-user/ user username=userid password=passwd roles=ieg-sc-user/ /tomcat-users When I start tomcat, everything seems to run fine except that I do not get a login window! I have gone over the setup so many times now, I'm going madHave I missed something? Is it because I've copied the tomcat binaries instead of installing it? If so, why does authentication work correctly for the inbuilt Manager application..? Appreciate if you could help me.. Thanks and regards Sanjay Karanjkar NOTICE: If received in error, please destroy and notify sender. Sender does not waive confidentiality or privilege, and use is prohibited. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] NOTICE: If received in error, please destroy and notify sender. Sender does not waive confidentiality or privilege, and use is prohibited. - 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]
Tomcat hangs up from time to time
Hi all, Lately, I have set up Tomcat 5.5.7 on Slackware Linux 9.1. I have configured four virtual hosts for me and my workmates. We develop a few web apps with Struts, Torque, Velocity, etc. Application base directories, scratch directories and tomcat logs are located on NFS share. Common approach is edit source, compile, reload web app with org.apache.catalina.ant.ReloadTask, look at browser time and again. But about two-five times per day, Tomcat hangs up, java (version is 1.5.0_01-b08) eats much cpu (up to 90%), and no any response from Tomcat, no warnings/errors in logs. I even can't stop it with shutdown.sh! Have anyone the same problem? Any solutions, advices, thoughts? Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat hangs up from time to time
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] But about two-five times per day, Tomcat hangs up, java (version is 1.5.0_01-b08) eats much cpu (up to 90%), and no any response from Tomcat, no warnings/errors in logs. I even can't stop it with shutdown.sh! Have anyone the same problem? Any solutions, advices, thoughts? Check your JVM documentation, and then kill the main Tomcat process with the signal that causes a thread dump. Read/grep through the thread dump - who's doing what? - Peter - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
web.xml
Hi there, i think this is a fairly easy thing to do, but i'm a newbie to tomcat jsp. I am requesting the following url _http://localhost:8081/webReg.jsp_ (http://localhost:8081/webReg.jsp) which exists and dsiplays fine. However, i want to be able to request _http://localhost:8081/webReg_ (http://localhost:8081/webReg) and for tomcat to display _http://localhost:8081/webReg.jsp_ (http://localhost:8081/webReg.jsp) . What do i need to add in web.xml?
LDAP Realm Issues
I apologize for posting this again - I just didn't hear anything (a lot of sprited discussions going on at the time) and wanted to give this one more shot here before sending to the developer list. I opened a bug on this a couple of weeks ago, but it hasn't been touched. Maybe other folks have seen this behavior... I'm using the LDAP realm for AAA in my application. However, the LDAP server it connects to drops stale sessions after a pretty short time. Evidently, Tomcat tries to keep connections open so it doesn't have to connect later on. Unfortunately, this causes authentication failures because the host it wants to connect with is no longer there (er...the connection isn't, anyhow). After one failure, Tomcat drops the connection, the user tries again, and gets in. But 5 minutes later, the next user will have to try again. Here's the stack trace that get's logged: 2005-03-11 08:33:47 JNDIRealm[/iso]: Searching for billybob 2005-03-11 08:33:47 JNDIRealm[/iso]: base: ou=users,dc=mycompany,dc=com filter: ((objectClass=appUser)(uid=billybob)) 2005-03-11 08:33:47 JNDIRealm[/iso]: Exception performing authentication javax.naming.CommunicationException: Request: 7 cancelled; remaining name 'ou=users,dc=mycompany,dc=com' at com.sun.jndi.ldap.LdapRequest.getReplyBer(LdapRequest.java:60) at com.sun.jndi.ldap.Connection.readReply(Connection.java:405) at com.sun.jndi.ldap.LdapClient.getSearchReply(LdapClient.java:611) at com.sun.jndi.ldap.LdapClient.search(LdapClient.java:534) at com.sun.jndi.ldap.LdapCtx.doSearch(LdapCtx.java:1944) at com.sun.jndi.ldap.LdapCtx.searchAux(LdapCtx.java:1806) at com.sun.jndi.ldap.LdapCtx.c_search(LdapCtx.java:1731) at com.sun.jndi.toolkit.ctx.ComponentDirContext.p_search(ComponentDirContext.java:368) at com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.search(PartialCompositeDirContext.java:338) at com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.search(PartialCompositeDirContext.java:321) at javax.naming.directory.InitialDirContext.search(InitialDirContext.java:248) at org.apache.catalina.realm.JNDIRealm.getUserBySearch(JNDIRealm.java:1074) at org.apache.catalina.realm.JNDIRealm.getUser(JNDIRealm.java:967) at org.apache.catalina.realm.JNDIRealm.authenticate(JNDIRealm.java:916) at org.apache.catalina.realm.JNDIRealm.authenticate(JNDIRealm.java:809) at org.apache.catalina.authenticator.FormAuthenticator.authenticate(FormAuthenticator.java:235) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:446) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929) at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160) at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:300) at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:374) at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:743) at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:675) at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:866) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) at java.lang.Thread.run(Thread.java:595) 2005-03-11 08:33:47 JNDIRealm[/iso]: Closing directory context Any magic undocumented setting that will work around this? Thanks, Will - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: web.xml
Am Donnerstag, 17. März 2005 13:05 schrieb [EMAIL PROTECTED]: I am requesting the following url _http://localhost:8081/webReg.jsp_ (http://localhost:8081/webReg.jsp) which exists and dsiplays fine. However, i want to be able to request _http://localhost:8081/webReg_ (http://localhost:8081/webReg) and for tomcat to display _http://localhost:8081/webReg.jsp_ (http://localhost:8081/webReg.jsp) . What do i need to add in web.xml? Add welcome-filewebReg.jsp/welcome-file to the welcome-file-list-Element of web.xml. Regards mks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: web.xml
you have to use the servlet mapping, something like this (each for every mapping you need) == servlet servlet-namemyOwnJSPPage/servlet-name display-namemyOwnJSPPage/display-name descriptionmy own servlet called: myOwnJSPPage/description jsp-file/myJSP.jsp/jsp-file /servlet servlet-mapping servlet-namemyOwnJSPPage/servlet-name url-pattern/myJSP/url-pattern /servlet-mapping == On Thu, 17 Mar 2005 07:05:12 EST, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi there, i think this is a fairly easy thing to do, but i'm a newbie to tomcat jsp. I am requesting the following url _http://localhost:8081/webReg.jsp_ (http://localhost:8081/webReg.jsp) which exists and dsiplays fine. However, i want to be able to request _http://localhost:8081/webReg_ (http://localhost:8081/webReg) and for tomcat to display _http://localhost:8081/webReg.jsp_ (http://localhost:8081/webReg.jsp) . What do i need to add in web.xml? -- Adobati Omar [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem with BASIC authentication
I don't run 4 so these are only suggestions. 1. Remove the user-data-constraint 2. Change your tomcat-user.xml to look like this tomcat-users user name=userid password=passwd roles=ieg-sc-user / /tomcat-users - Original Message - From: Karanjkar, Sanjay V (IT) [EMAIL PROTECTED] To: Tomcat Users List tomcat-user@jakarta.apache.org Sent: Thursday, March 17, 2005 12:19 AM Subject: RE: Problem with BASIC authentication Hi, Anyone had a chance to look at this one yet? Thanks Sanjay -Original Message- From: Karanjkar, Sanjay V (IT) Sent: 15 March 2005 11:19 To: tomcat-user@jakarta.apache.org Subject: Problem with BASIC authentication Hi, I have the following setup: 1. A copied version of Tomcat 4.1.24 on Unix (i.e. I have merely *copied* the entire tomcat folder from another installed location instead of installing it) 2. My application WAR file referenced by the following Context in Server.xml: Context path=/ieg-sc docBase=/var/tmp/DEV/install/common/lib/tc.ieg.war reloadable=true debug=99 privileged=true ResourceLink name=users type=org.apache.catalina.UserDatabase global=UserDatabase/ /Context 3. My app's web.xml has the following: security-constraint web-resource-collection web-resource-nameMy Application/web-resource-name url-pattern/*/url-pattern /web-resource-collection auth-constraint role-nameieg-sc-user/role-name /auth-constraint user-data-constraint transport-guaranteeNONE/transport-guarantee /user-data-constraint /security-constraint !-- Define the Login Configuration for this Application -- login-config auth-methodBASIC/auth-method realm-nameMy Application/realm-name /login-config security-role role-nameieg-sc-user/role-name /security-role 4. I have defined the user/role in conf/tomcat-users.xml: ?xml version='1.0' encoding='utf-8'? tomcat-users role rolename=ieg-sc-user/ user username=userid password=passwd roles=ieg-sc-user/ /tomcat-users When I start tomcat, everything seems to run fine except that I do not get a login window! I have gone over the setup so many times now, I'm going madHave I missed something? Is it because I've copied the tomcat binaries instead of installing it? If so, why does authentication work correctly for the inbuilt Manager application..? Appreciate if you could help me.. Thanks and regards Sanjay Karanjkar NOTICE: If received in error, please destroy and notify sender. Sender does not waive confidentiality or privilege, and use is prohibited. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] NOTICE: If received in error, please destroy and notify sender. Sender does not waive confidentiality or privilege, and use is prohibited. - 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: web.xml
try the welcome-files element out. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 17 March 2005 12:05 To: tomcat-user@jakarta.apache.org Subject: web.xml Hi there, i think this is a fairly easy thing to do, but i'm a newbie to tomcat jsp. I am requesting the following url _http://localhost:8081/webReg.jsp_ (http://localhost:8081/webReg.jsp) which exists and dsiplays fine. However, i want to be able to request _http://localhost:8081/webReg_ (http://localhost:8081/webReg) and for tomcat to display _http://localhost:8081/webReg.jsp_ (http://localhost:8081/webReg.jsp) . What do i need to add in web.xml? FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE --- QAS Ltd. Developers of QuickAddress Software a href=http://www.qas.com;www.qas.com/a Registered in England: No 2582055 Registered in Australia: No 082 851 474 --- /FONT - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: web.xml
I think that he need something working not just only with welcome pages, or, maybe I have miss understood. On Thu, 17 Mar 2005 12:15:15 -, Allistair Crossley [EMAIL PROTECTED] wrote: try the welcome-files element out. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 17 March 2005 12:05 To: tomcat-user@jakarta.apache.org Subject: web.xml Hi there, i think this is a fairly easy thing to do, but i'm a newbie to tomcat jsp. I am requesting the following url _http://localhost:8081/webReg.jsp_ (http://localhost:8081/webReg.jsp) which exists and dsiplays fine. However, i want to be able to request _http://localhost:8081/webReg_ (http://localhost:8081/webReg) and for tomcat to display _http://localhost:8081/webReg.jsp_ (http://localhost:8081/webReg.jsp) . What do i need to add in web.xml? FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE --- QAS Ltd. Developers of QuickAddress Software a href=http://www.qas.com;www.qas.com/a Registered in England: No 2582055 Registered in Australia: No 082 851 474 --- /FONT - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Adobati Omar [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: web.xml
Am Donnerstag, 17. März 2005 13:17 schrieb Omar Adobati: I think that he need something working not just only with welcome pages, or, maybe I have miss understood. On re-reading the OP it seems to me that I misunderstood (and Allistair propably too), not you. Regards mks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: web.xml
yes, another (more generic) solution would be a similar servlet mapping but route all requests to a servlet capable of then forwarding to the request URI + .jsp servlet servlet-nameconvertToJspServlet/servlet-name servlet-classmy.com.ConvertToJspServlet/servlet-class /servlet servlet-mapping servlet-nameconvertToJspServlet/servlet-name url-pattern/*/url-pattern /servlet-mapping In the ConvertToJspServlet servlet you would obtain the request.getRequestURI or mapping and use a RequestDispatcher to add a .jsp suffix. At least then you don't have to add mappings in web.xml for all your JSPs. Just thinking out loud ;) ... -Original Message- From: Markus Schönhaber [mailto:[EMAIL PROTECTED] Sent: 17 March 2005 12:22 To: Tomcat Users List Subject: Re: web.xml Am Donnerstag, 17. März 2005 13:17 schrieb Omar Adobati: I think that he need something working not just only with welcome pages, or, maybe I have miss understood. On re-reading the OP it seems to me that I misunderstood (and Allistair propably too), not you. Regards mks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE --- QAS Ltd. Developers of QuickAddress Software a href=http://www.qas.com;www.qas.com/a Registered in England: No 2582055 Registered in Australia: No 082 851 474 --- /FONT - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: web.xml
I'm interested in your solution Allistair, can you better explane what my.com.ConvertToJspServlet need to make real your idea? Can you post a little of code as a sample? On Thu, 17 Mar 2005 12:26:29 -, Allistair Crossley [EMAIL PROTECTED] wrote: yes, another (more generic) solution would be a similar servlet mapping but route all requests to a servlet capable of then forwarding to the request URI + .jsp servlet servlet-nameconvertToJspServlet/servlet-name servlet-classmy.com.ConvertToJspServlet/servlet-class /servlet servlet-mapping servlet-nameconvertToJspServlet/servlet-name url-pattern/*/url-pattern /servlet-mapping In the ConvertToJspServlet servlet you would obtain the request.getRequestURI or mapping and use a RequestDispatcher to add a .jsp suffix. At least then you don't have to add mappings in web.xml for all your JSPs. Just thinking out loud ;) ... -Original Message- From: Markus Schönhaber [mailto:[EMAIL PROTECTED] Sent: 17 March 2005 12:22 To: Tomcat Users List Subject: Re: web.xml Am Donnerstag, 17. März 2005 13:17 schrieb Omar Adobati: I think that he need something working not just only with welcome pages, or, maybe I have miss understood. On re-reading the OP it seems to me that I misunderstood (and Allistair propably too), not you. Regards mks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE --- QAS Ltd. Developers of QuickAddress Software a href=http://www.qas.com;www.qas.com/a Registered in England: No 2582055 Registered in Australia: No 082 851 474 --- /FONT - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Adobati Omar [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: web.xml
Sure, Here is the doPost for ConvertToJspServlet public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException { try { RequestDispatcher rd = request.getRequestDispatcher( /jsps + request.getPathInfo() + .jsp); rd.forward(request, response); } catch (IOException ioE) { System.out.println(ioE.getMessage()); } } We already did the servlet mapping but I would suggest using a starting path to make it clear that only requests with /convert/ are mapped servlet servlet-nameconvertToJspServlet/servlet-name servlet-classmy.com.ConvertToJspServlet/servlet-class /servlet servlet-mapping servlet-nameconvertToJspServlet/servlet-name url-pattern/convert/*/url-pattern /servlet-mapping Therefore using this code http://yourserver/convert/webJsp will render a JSP from webapps/yourwebapp/jsps/webJsp.jsp Hope this helps -Original Message- From: Omar Adobati [mailto:[EMAIL PROTECTED] Sent: 17 March 2005 12:31 To: Tomcat Users List Subject: Re: web.xml I'm interested in your solution Allistair, can you better explane what my.com.ConvertToJspServlet need to make real your idea? Can you post a little of code as a sample? On Thu, 17 Mar 2005 12:26:29 -, Allistair Crossley [EMAIL PROTECTED] wrote: yes, another (more generic) solution would be a similar servlet mapping but route all requests to a servlet capable of then forwarding to the request URI + .jsp servlet servlet-nameconvertToJspServlet/servlet-name servlet-classmy.com.ConvertToJspServlet/servlet-class /servlet servlet-mapping servlet-nameconvertToJspServlet/servlet-name url-pattern/*/url-pattern /servlet-mapping In the ConvertToJspServlet servlet you would obtain the request.getRequestURI or mapping and use a RequestDispatcher to add a .jsp suffix. At least then you don't have to add mappings in web.xml for all your JSPs. Just thinking out loud ;) ... -Original Message- From: Markus Schönhaber [mailto:[EMAIL PROTECTED] Sent: 17 March 2005 12:22 To: Tomcat Users List Subject: Re: web.xml Am Donnerstag, 17. März 2005 13:17 schrieb Omar Adobati: I think that he need something working not just only with welcome pages, or, maybe I have miss understood. On re-reading the OP it seems to me that I misunderstood (and Allistair propably too), not you. Regards mks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE --- QAS Ltd. Developers of QuickAddress Software a href=http://www.qas.com;www.qas.com/a Registered in England: No 2582055 Registered in Australia: No 082 851 474 --- /FONT - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Adobati Omar [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: tomcat 5.5 connector
On Thu, Mar 17, 2005 at 11:18:00AM +0100, Rahman, Hamdur wrote: : As tomcat provide coyote connector that is http based, : Is there any connector available that are non-http based : And how we can use in our project when we are using tomcat 5.5 : As both web server and servlets engine, : Or can we make our own connector that is non-http(say telnet) : And how we can implement it I'm not sure I understand the question. What are you trying to do? Sharing that may give the rest of us ideas on how to help you. As for implementing your own Connector, the sources for Tomcat and Jk are available to the public. Download and code away! -QM -- software -- http://www.brandxdev.net tech news -- http://www.RoarNetworX.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Reload webapp and context
On Thu, Mar 17, 2005 at 08:32:54AM +0100, Roland Carlsson wrote: : do I force tomcat to re-load the context? Right now the only way I know : about is to reboot tomcat witch leads to a full stop of all my web-apps : instead of only one witch in turn leads to more complaints from my users. Perhaps a non-technical solution would help: 1/ schedule regular deployment times. Apps expect downtime during these windows, and you're free to start/stop at will. 2/ Put each app in its own JVM. Such isolation solves several headaches, not the least of which is the ability for each app to choose its own downtime window. -QM -- software -- http://www.brandxdev.net tech news -- http://www.RoarNetworX.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
SV: Reload webapp and context
Hi and thanks for your answer! Do I read you correctly that there are no solution but to restart Tomcat to reload the context completly? Lionel, the manager doesn't seem to re-read the context file under /conf/Catalina/mydomain/myapp.xml and that is the one I have have to change. Thanks in advance Roland Carlsson Den 05-03-17 13.58, skrev QM [EMAIL PROTECTED]: On Thu, Mar 17, 2005 at 08:32:54AM +0100, Roland Carlsson wrote: : do I force tomcat to re-load the context? Right now the only way I know : about is to reboot tomcat witch leads to a full stop of all my web-apps : instead of only one witch in turn leads to more complaints from my users. Perhaps a non-technical solution would help: 1/ schedule regular deployment times. Apps expect downtime during these windows, and you're free to start/stop at will. 2/ Put each app in its own JVM. Such isolation solves several headaches, not the least of which is the ability for each app to choose its own downtime window. -QM - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: SV: Reload webapp and context
On Thu, Mar 17, 2005 at 02:12:06PM +0100, Roland Carlsson wrote: : Do I read you correctly that there are no solution but to restart Tomcat to : reload the context completly? That's not at all what I said. I can't provide an authoritative answer to that question as I didn't write Tomcat. ;) With that in mind, context isoliation and scheduled maintenance/downtime windows are fairly standard practices in the J2EE realm. While they don't directly address your concern of completely reloading a context, they tangentially address your desire to start and stop Tomcat whenever you please. -QM -- software -- http://www.brandxdev.net tech news -- http://www.RoarNetworX.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
does anyone know this error??
I saw an error in my log ive never seen before: java.lang.IllegalStateException: Current state = FLUSHED, new state = CODING_END at java.nio.charset.CharsetEncoder.throwIllegalStateException(CharsetEncoder.ja va:933) at java.nio.charset.CharsetEncoder.encode(CharsetEncoder.java:529) at sun.nio.cs.StreamEncoder$CharsetSE.flushLeftoverChar(StreamEncoder.java:356) at sun.nio.cs.StreamEncoder$CharsetSE.implClose(StreamEncoder.java:412) at sun.nio.cs.StreamEncoder.close(StreamEncoder.java:158) at java.io.OutputStreamWriter.close(OutputStreamWriter.java:222) at java.io.PrintWriter.close(PrintWriter.java:137) at org.apache.catalina.connector.ResponseBase.finishResponse(ResponseBase.java: 483) at org.apache.catalina.connector.HttpResponseBase.finishResponse(HttpResponseBa se.java:253) at org.apache.catalina.connector.http.HttpResponseImpl.finishResponse(HttpRespo nseImpl.java:288) at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java: 1067) at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1151 ) at java.lang.Thread.run(Thread.java:536) What could be the problem? Maarten Janssen - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: does anyone know this error??
This error is because you have a code that's trying to write response after it's committed. If you can share the code that's causing this error then may be we can be of some help. Vinod -Original Message- From: Bedrijven.nl [mailto:[EMAIL PROTECTED] Sent: Thursday, March 17, 2005 8:45 AM To: tomcat-user@jakarta.apache.org Subject: does anyone know this error?? I saw an error in my log ive never seen before: java.lang.IllegalStateException: Current state = FLUSHED, new state = CODING_END at java.nio.charset.CharsetEncoder.throwIllegalStateException(CharsetEncode r.ja va:933) at java.nio.charset.CharsetEncoder.encode(CharsetEncoder.java:529) at sun.nio.cs.StreamEncoder$CharsetSE.flushLeftoverChar(StreamEncoder.java: 356) at sun.nio.cs.StreamEncoder$CharsetSE.implClose(StreamEncoder.java:412) at sun.nio.cs.StreamEncoder.close(StreamEncoder.java:158) at java.io.OutputStreamWriter.close(OutputStreamWriter.java:222) at java.io.PrintWriter.close(PrintWriter.java:137) at org.apache.catalina.connector.ResponseBase.finishResponse(ResponseBase.j ava: 483) at org.apache.catalina.connector.HttpResponseBase.finishResponse(HttpRespon seBa se.java:253) at org.apache.catalina.connector.http.HttpResponseImpl.finishResponse(HttpR espo nseImpl.java:288) at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.j ava: 1067) at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java: 1151 ) at java.lang.Thread.run(Thread.java:536) What could be the problem? Maarten Janssen - 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 BASIC authentication
On Thu, 17 Mar 2005 16:35:43 +0530 Karanjkar, Sanjay V \(IT\) [EMAIL PROTECTED] wrote: Hi Lionel, Thanks for your response. I tried both suggestions but no luck.. Maybe it's something to do with the fact that I've not *installed* tomcat but only copied the binaries from an installed location (then how come the maanger app works? :-( The Manager, by default, is installed but not activated. In your installation, you have - $CATALINA_HOME/server/lib/servlets-manager.jar - $CATALINA_HOME/webapps/manager.xml You have to add: role rolename=manager/ user username=userid password=password roles=manager/ And you can access to the HTML manager (in the default installation) with : http://localhost:8080/manager/html/ Anyways, I also have a problem when shutting down tomcat. When I run shutdown.sh, I get the following error and there are process threads that I have to kill manually I have not altered the default server.xml (Ajp13 connector is not commented out) so can someone help me? Catalina.stop: java.net.ConnectException: Connection refused java.net.ConnectException: Connection refused at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:350) at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:137) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:124) at java.net.Socket.init(Socket.java:268) at java.net.Socket.init(Socket.java:95) at org.apache.catalina.startup.Catalina.stop(Catalina.java:581) at org.apache.catalina.startup.Catalina.execute(Catalina.java:402) at org.apache.catalina.startup.Catalina.process(Catalina.java:180) at java.lang.reflect.Method.invoke(Native Method) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203) gmake: *** [stop_tomcat] Error 1 I think you have to re-install properly your Tomcat... (and verify your port 8080 is free, otherwise change it). Thanks in advance Sanjay Karanjkar fc3sdi team -Original Message- From: Lionel Farbos [mailto:[EMAIL PROTECTED] Sent: 17 March 2005 09:58 To: Tomcat Users List Cc: Karanjkar, Sanjay V (IT) Subject: Re: Problem with BASIC authentication Hi, Compared to Manager's web.xml, it seems you don't have the section resource-env-ref with the link to your user DataBase. Perhaps, try to put the role names without a - (rather a _ or nothing) Cheers. On Thu, 17 Mar 2005 10:49:29 +0530 Karanjkar, Sanjay V \(IT\) [EMAIL PROTECTED] wrote: Hi, Anyone had a chance to look at this one yet? Thanks Sanjay -Original Message- From: Karanjkar, Sanjay V (IT) Sent: 15 March 2005 11:19 To: tomcat-user@jakarta.apache.org Subject: Problem with BASIC authentication Hi, I have the following setup: 1. A copied version of Tomcat 4.1.24 on Unix (i.e. I have merely *copied* the entire tomcat folder from another installed location instead of installing it) 2. My application WAR file referenced by the following Context in Server.xml: Context path=/ieg-sc docBase=/var/tmp/DEV/install/common/lib/tc.ieg.war reloadable=true debug=99 privileged=true ResourceLink name=users type=org.apache.catalina.UserDatabase global=UserDatabase/ /Context 3. My app's web.xml has the following: security-constraint web-resource-collection web-resource-nameMy Application/web-resource-name url-pattern/*/url-pattern /web-resource-collection auth-constraint role-nameieg-sc-user/role-name /auth-constraint user-data-constraint transport-guaranteeNONE/transport-guarantee /user-data-constraint /security-constraint !-- Define the Login Configuration for this Application -- login-config auth-methodBASIC/auth-method realm-nameMy Application/realm-name /login-config security-role role-nameieg-sc-user/role-name /security-role 4. I have defined the user/role in conf/tomcat-users.xml: ?xml version='1.0' encoding='utf-8'? tomcat-users role rolename=ieg-sc-user/ user username=userid password=passwd roles=ieg-sc-user/ /tomcat-users When I start tomcat, everything seems to run fine except that I do not get a login window! I have gone over the setup so many times now, I'm going madHave I missed something? Is it because I've copied the tomcat binaries instead of installing it? If so, why does authentication work correctly for the inbuilt Manager application..? Appreciate if you could help me.. Thanks and regards Sanjay Karanjkar NOTICE: If received in error, please destroy and notify sender. Sender does not waive confidentiality or privilege, and use is prohibited.
RE: web.xml
I would achieve this be configuring my web.xml. Try this piece of code servlet servlet-nameMyServlet/servlet-name jsp-file/webReg.jsp/jsp-file /servlet servlet-mapping servlet-nameMyServlet/servlet-name url-pattern/webReg/url-pattern /servlet-mapping So when to submit a URL http://localhost:8081/webReg; to your container it maps to the jsp file under the servlet element. Vinod -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, March 17, 2005 7:05 AM To: tomcat-user@jakarta.apache.org Subject: web.xml Hi there, i think this is a fairly easy thing to do, but i'm a newbie to tomcat jsp. I am requesting the following url _http://localhost:8081/webReg.jsp_ (http://localhost:8081/webReg.jsp) which exists and dsiplays fine. However, i want to be able to request _http://localhost:8081/webReg_ (http://localhost:8081/webReg) and for tomcat to display _http://localhost:8081/webReg.jsp_ (http://localhost:8081/webReg.jsp) . What do i need to add in web.xml? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: does anyone know this error??
The only thing where I can find a direct writing/accesing the response is public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { try { if(request.getParameter(photoid)!=null){ String photoid = request.getParameter(photoid); Photo myPhoto = (Photo) Photo.retrieve(photoid); if(myPhoto!=null myPhoto.getPhoto()!=null){ if(myPhoto.getPhototype()!=null){ response.setContentType(myPhoto.getPhototype()); OutputStream out = response.getOutputStream(); out.write(myPhoto.getPhoto()); } } } } catch (Exception e) { Logger.getLogger(nl.onvelvet.customer.PhotoServlet).error(LogUtil.getStack Trace(e)); } } The rest is handled by Struts. -Oorspronkelijk bericht- Van: Ramu, Vinod [mailto:[EMAIL PROTECTED] Verzonden: Thursday, March 17, 2005 2:54 PM Aan: Tomcat Users List; [EMAIL PROTECTED] Onderwerp: RE: does anyone know this error?? This error is because you have a code that's trying to write response after it's committed. If you can share the code that's causing this error then may be we can be of some help. Vinod -Original Message- From: Bedrijven.nl [mailto:[EMAIL PROTECTED] Sent: Thursday, March 17, 2005 8:45 AM To: tomcat-user@jakarta.apache.org Subject: does anyone know this error?? I saw an error in my log ive never seen before: java.lang.IllegalStateException: Current state = FLUSHED, new state = CODING_END at java.nio.charset.CharsetEncoder.throwIllegalStateException(CharsetEncode r.ja va:933) at java.nio.charset.CharsetEncoder.encode(CharsetEncoder.java:529) at sun.nio.cs.StreamEncoder$CharsetSE.flushLeftoverChar(StreamEncoder.java: 356) at sun.nio.cs.StreamEncoder$CharsetSE.implClose(StreamEncoder.java:412) at sun.nio.cs.StreamEncoder.close(StreamEncoder.java:158) at java.io.OutputStreamWriter.close(OutputStreamWriter.java:222) at java.io.PrintWriter.close(PrintWriter.java:137) at org.apache.catalina.connector.ResponseBase.finishResponse(ResponseBase.j ava: 483) at org.apache.catalina.connector.HttpResponseBase.finishResponse(HttpRespon seBa se.java:253) at org.apache.catalina.connector.http.HttpResponseImpl.finishResponse(HttpR espo nseImpl.java:288) at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.j ava: 1067) at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java: 1151 ) at java.lang.Thread.run(Thread.java:536) What could be the problem? Maarten Janssen - 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: SV: Reload webapp and context
On Thu, 17 Mar 2005 14:12:06 +0100 Roland Carlsson [EMAIL PROTECTED] wrote: Hi and thanks for your answer! Do I read you correctly that there are no solution but to restart Tomcat to reload the context completly? False. Lionel, the manager doesn't seem to re-read the context file under /conf/Catalina/mydomain/myapp.xml and that is the one I have have to change. If you try a reload, or stop then start, effectively no change :-( but if you try undeploy then deploy : it works :-)) so, it is possible without restarting entirely tomcat Thanks in advance Roland Carlsson Den 05-03-17 13.58, skrev QM [EMAIL PROTECTED]: On Thu, Mar 17, 2005 at 08:32:54AM +0100, Roland Carlsson wrote: : do I force tomcat to re-load the context? Right now the only way I know : about is to reboot tomcat witch leads to a full stop of all my web-apps : instead of only one witch in turn leads to more complaints from my users. Perhaps a non-technical solution would help: 1/ schedule regular deployment times. Apps expect downtime during these windows, and you're free to start/stop at will. 2/ Put each app in its own JVM. Such isolation solves several headaches, not the least of which is the ability for each app to choose its own downtime window. -QM - 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]
How to Switch of logging in Tomcat 5.5
POST no longer working
Tomcat 5.0.28 on HP UNIX: I was using a filter (jcfifs) in one of my web.xml files. I have since removed the filter and all code refering to it. Now web forms can not post to servlets in this app. GET methods work fine, but POST does not. I am only using Tomcat, no Apache front end. Is there a security settings that I missed or otherwise boogered up? Regards, Jimmy Ray __ Do you Yahoo!? Read only the mail you want - Yahoo! Mail SpamGuard. http://promotions.yahoo.com/new_mail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Servlet pops up as download
Hello, Having some issues with an ensim tomcat 4 installation. Whenever I surf to www.mysite.com/servlet/MyServlet my browser pops up a download dialog instead of showing the page. It downloads MyServlet which does contain all the code it should normally display in the browser. I don't have much experience yet with tomcat, planning to read-up on it next month, but could someone help me with this for now? What things should I check ? Kind regards, Nick - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Servlet pops up as download
What is your content type set to? Doug - Original Message - From: Nick Wolters [EMAIL PROTECTED] To: tomcat-user@jakarta.apache.org Sent: Thursday, March 17, 2005 9:51 AM Subject: Servlet pops up as download Hello, Having some issues with an ensim tomcat 4 installation. Whenever I surf to www.mysite.com/servlet/MyServlet my browser pops up a download dialog instead of showing the page. It downloads MyServlet which does contain all the code it should normally display in the browser. I don't have much experience yet with tomcat, planning to read-up on it next month, but could someone help me with this for now? What things should I check ? Kind regards, Nick - 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: does anyone know this error??
I not sure whether you write a servlet code using STRUTS, at least I have not see one because STRUTS frame work provides one. Once the request is processed by STRUTS, it uses struts-config.xml file to forward the response to next JSP page. forward XML element in struts-config.xml file is used to forward to the next view. I would suggest you to built an action class. Transfer the code from the below get method to the new Action class. Configure you action class in struts-config.xml file to forward the requests to the Action class. Hope this helps you, Vinod -Original Message- From: Bedrijven.nl [mailto:[EMAIL PROTECTED] Sent: Thursday, March 17, 2005 9:06 AM To: 'Tomcat Users List' Subject: RE: does anyone know this error?? The only thing where I can find a direct writing/accesing the response is public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { try { if(request.getParameter(photoid)!=null){ String photoid = request.getParameter(photoid); Photo myPhoto = (Photo) Photo.retrieve(photoid); if(myPhoto!=null myPhoto.getPhoto()!=null){ if(myPhoto.getPhototype()!=null){ response.setContentType(myPhoto.getPhototype()); OutputStream out = response.getOutputStream(); out.write(myPhoto.getPhoto()); } } } } catch (Exception e) { Logger.getLogger(nl.onvelvet.customer.PhotoServlet).error(LogUtil.getS tack Trace(e)); } } The rest is handled by Struts. -Oorspronkelijk bericht- Van: Ramu, Vinod [mailto:[EMAIL PROTECTED] Verzonden: Thursday, March 17, 2005 2:54 PM Aan: Tomcat Users List; [EMAIL PROTECTED] Onderwerp: RE: does anyone know this error?? This error is because you have a code that's trying to write response after it's committed. If you can share the code that's causing this error then may be we can be of some help. Vinod -Original Message- From: Bedrijven.nl [mailto:[EMAIL PROTECTED] Sent: Thursday, March 17, 2005 8:45 AM To: tomcat-user@jakarta.apache.org Subject: does anyone know this error?? I saw an error in my log ive never seen before: java.lang.IllegalStateException: Current state = FLUSHED, new state = CODING_END at java.nio.charset.CharsetEncoder.throwIllegalStateException(CharsetEncode r.ja va:933) at java.nio.charset.CharsetEncoder.encode(CharsetEncoder.java:529) at sun.nio.cs.StreamEncoder$CharsetSE.flushLeftoverChar(StreamEncoder.java: 356) at sun.nio.cs.StreamEncoder$CharsetSE.implClose(StreamEncoder.java:412) at sun.nio.cs.StreamEncoder.close(StreamEncoder.java:158) at java.io.OutputStreamWriter.close(OutputStreamWriter.java:222) at java.io.PrintWriter.close(PrintWriter.java:137) at org.apache.catalina.connector.ResponseBase.finishResponse(ResponseBase.j ava: 483) at org.apache.catalina.connector.HttpResponseBase.finishResponse(HttpRespon seBa se.java:253) at org.apache.catalina.connector.http.HttpResponseImpl.finishResponse(HttpR espo nseImpl.java:288) at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.j ava: 1067) at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java: 1151 ) at java.lang.Thread.run(Thread.java:536) What could be the problem? Maarten Janssen - 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: Servlet pops up as download
In mozilla the download window says: text/vnd.wap.wml The file itself begins with the following: ?xml version=1.0 encoding=iso-8859-1? !DOCTYPE wml PUBLIC -//WAPFORUM//DTD WML 1.1//EN http://www.wapforum.org/DTD/wml_1.1.xml; wml . /wml In web.xml I found the following: mime-mapping !-- WML Source -- extensionwml/extension mime-typetext/vnd.wap.wml/mime-type /mime-mapping Didn't write the servlet myself though. Nick -Original Message- From: Parsons Technical Services [mailto:[EMAIL PROTECTED] Sent: donderdag 17 maart 2005 15:59 To: Tomcat Users List Subject: Re: Servlet pops up as download What is your content type set to? Doug - Original Message - From: Nick Wolters [EMAIL PROTECTED] To: tomcat-user@jakarta.apache.org Sent: Thursday, March 17, 2005 9:51 AM Subject: Servlet pops up as download Hello, Having some issues with an ensim tomcat 4 installation. Whenever I surf to www.mysite.com/servlet/MyServlet my browser pops up a download dialog instead of showing the page. It downloads MyServlet which does contain all the code it should normally display in the browser. I don't have much experience yet with tomcat, planning to read-up on it next month, but could someone help me with this for now? What things should I check ? Kind regards, Nick - 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: Servlet pops up as download
maybe you need to enable tomcat to manage the wml files. If I'm not wrong you have to chack the web.xml into yuor TOMCAT_HOME\conf to verify that the mime mapping to use wml is not commented or, at least, is presente. I'm running Tomcat 5.5.7 and I already have the mime mapping enabled and looks like this: === mime-mapping !-- WML Source -- extensionwml/extension mime-typetext/vnd.wap.wml/mime-type /mime-mapping mime-mapping !-- Compiled WML -- extensionwmlc/extension mime-typeapplication/vnd.wap.wmlc/mime-type /mime-mapping mime-mapping !-- WML Script Source -- extensionwmls/extension mime-typetext/vnd.wap.wmlscript/mime-type /mime-mapping mime-mapping !-- Compiled WML Script -- extensionwmlscriptc/extension mime-typeapplication/vnd.wap.wmlscriptc/mime-type /mime-mapping === hope this help On Thu, 17 Mar 2005 16:19:06 +0100, Nick Wolters [EMAIL PROTECTED] wrote: In mozilla the download window says: text/vnd.wap.wml The file itself begins with the following: ?xml version=1.0 encoding=iso-8859-1? !DOCTYPE wml PUBLIC -//WAPFORUM//DTD WML 1.1//EN http://www.wapforum.org/DTD/wml_1.1.xml; wml . /wml In web.xml I found the following: mime-mapping !-- WML Source -- extensionwml/extension mime-typetext/vnd.wap.wml/mime-type /mime-mapping Didn't write the servlet myself though. Nick -Original Message- From: Parsons Technical Services [mailto:[EMAIL PROTECTED] Sent: donderdag 17 maart 2005 15:59 To: Tomcat Users List Subject: Re: Servlet pops up as download What is your content type set to? Doug - Original Message - From: Nick Wolters [EMAIL PROTECTED] To: tomcat-user@jakarta.apache.org Sent: Thursday, March 17, 2005 9:51 AM Subject: Servlet pops up as download Hello, Having some issues with an ensim tomcat 4 installation. Whenever I surf to www.mysite.com/servlet/MyServlet my browser pops up a download dialog instead of showing the page. It downloads MyServlet which does contain all the code it should normally display in the browser. I don't have much experience yet with tomcat, planning to read-up on it next month, but could someone help me with this for now? What things should I check ? Kind regards, Nick - 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] -- Adobati Omar [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 5 Service Windows
yes of course i am telling it to use a different server.xml my config looks like this -config c:\config\server.xml -dave Caldarale, Charles R wrote: From: David Gladstone [mailto:[EMAIL PROTECTED] Subject: Tomcat 5 Service Windows I am currently using tomcat 5.0.27 on Windows Xp and am trying to point the service to a specific server.xml. Are you saying you want to use a server.xml other than the one in %CATALINA_HOME%\conf? I am currently using jvm. Well, that's a good start. (Sorry, couldn't resist. :-) What am i doing wrong Try looking at the registry entries to see if they make any sense. (The key is HKLM\Apache Software Foundation\Tomcat Service Manager\Tomcat5\Parameters on 5.0.19; I've switched to 5.5.7 for most stuff, so I've never installed 5.0.27 as a Windows service.) - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: POST no longer working
You might want to refer to this FAQ: http://www.catb.org/~esr/faqs/smart-questions.html The stated goal of the FAQ is: How to ask questions of hackers in a way that makes it most likely that you'll get a useful answer. George Sexton MH Software, Inc. http://www.mhsoftware.com/ Voice: 303 438 9585 -Original Message- From: Jimmy Ray [mailto:[EMAIL PROTECTED] Sent: Thursday, March 17, 2005 7:46 AM To: tomcat-user@jakarta.apache.org Subject: POST no longer working Tomcat 5.0.28 on HP UNIX: I was using a filter (jcfifs) in one of my web.xml files. I have since removed the filter and all code refering to it. Now web forms can not post to servlets in this app. GET methods work fine, but POST does not. I am only using Tomcat, no Apache front end. Is there a security settings that I missed or otherwise boogered up? Regards, Jimmy Ray __ Do you Yahoo!? Read only the mail you want - Yahoo! Mail SpamGuard. http://promotions.yahoo.com/new_mail - 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: Servlet pops up as download
and, in your browser, what is the default action for this mapping ? On Thu, 17 Mar 2005 16:19:06 +0100 Nick Wolters [EMAIL PROTECTED] wrote: In mozilla the download window says: text/vnd.wap.wml The file itself begins with the following: ?xml version=1.0 encoding=iso-8859-1? !DOCTYPE wml PUBLIC -//WAPFORUM//DTD WML 1.1//EN http://www.wapforum.org/DTD/wml_1.1.xml; wml . /wml In web.xml I found the following: mime-mapping !-- WML Source -- extensionwml/extension mime-typetext/vnd.wap.wml/mime-type /mime-mapping Didn't write the servlet myself though. Nick -Original Message- From: Parsons Technical Services [mailto:[EMAIL PROTECTED] Sent: donderdag 17 maart 2005 15:59 To: Tomcat Users List Subject: Re: Servlet pops up as download What is your content type set to? Doug - Original Message - From: Nick Wolters [EMAIL PROTECTED] To: tomcat-user@jakarta.apache.org Sent: Thursday, March 17, 2005 9:51 AM Subject: Servlet pops up as download Hello, Having some issues with an ensim tomcat 4 installation. Whenever I surf to www.mysite.com/servlet/MyServlet my browser pops up a download dialog instead of showing the page. It downloads MyServlet which does contain all the code it should normally display in the browser. I don't have much experience yet with tomcat, planning to read-up on it next month, but could someone help me with this for now? What things should I check ? Kind regards, Nick - 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: Servlet pops up as download
Mozilla doesn't understand how to deal with wml. But you can get a plug-in: http://wmlbrowser.mozdev.org/ Nick Wolters wrote: In mozilla the download window says: text/vnd.wap.wml The file itself begins with the following: ?xml version=1.0 encoding=iso-8859-1? !DOCTYPE wml PUBLIC -//WAPFORUM//DTD WML 1.1//EN http://www.wapforum.org/DTD/wml_1.1.xml; wml . /wml In web.xml I found the following: mime-mapping !-- WML Source -- extensionwml/extension mime-typetext/vnd.wap.wml/mime-type /mime-mapping Didn't write the servlet myself though. Nick -Original Message- From: Parsons Technical Services [mailto:[EMAIL PROTECTED] Sent: donderdag 17 maart 2005 15:59 To: Tomcat Users List Subject: Re: Servlet pops up as download What is your content type set to? Doug - Original Message - From: Nick Wolters [EMAIL PROTECTED] To: tomcat-user@jakarta.apache.org Sent: Thursday, March 17, 2005 9:51 AM Subject: Servlet pops up as download Hello, Having some issues with an ensim tomcat 4 installation. Whenever I surf to www.mysite.com/servlet/MyServlet my browser pops up a download dialog instead of showing the page. It downloads MyServlet which does contain all the code it should normally display in the browser. I don't have much experience yet with tomcat, planning to read-up on it next month, but could someone help me with this for now? What things should I check ? Kind regards, Nick - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Servlet pops up as download
To browse a wml file you need to use a wml browser, You can't do it just using Ie or Mozilla. Maybe you can find a wml browser on the Internet. On Thu, 17 Mar 2005 16:52:30 +0100, Lionel Farbos [EMAIL PROTECTED] wrote: and, in your browser, what is the default action for this mapping ? On Thu, 17 Mar 2005 16:19:06 +0100 Nick Wolters [EMAIL PROTECTED] wrote: In mozilla the download window says: text/vnd.wap.wml The file itself begins with the following: ?xml version=1.0 encoding=iso-8859-1? !DOCTYPE wml PUBLIC -//WAPFORUM//DTD WML 1.1//EN http://www.wapforum.org/DTD/wml_1.1.xml; wml . /wml In web.xml I found the following: mime-mapping !-- WML Source -- extensionwml/extension mime-typetext/vnd.wap.wml/mime-type /mime-mapping Didn't write the servlet myself though. Nick -Original Message- From: Parsons Technical Services [mailto:[EMAIL PROTECTED] Sent: donderdag 17 maart 2005 15:59 To: Tomcat Users List Subject: Re: Servlet pops up as download What is your content type set to? Doug - Original Message - From: Nick Wolters [EMAIL PROTECTED] To: tomcat-user@jakarta.apache.org Sent: Thursday, March 17, 2005 9:51 AM Subject: Servlet pops up as download Hello, Having some issues with an ensim tomcat 4 installation. Whenever I surf to www.mysite.com/servlet/MyServlet my browser pops up a download dialog instead of showing the page. It downloads MyServlet which does contain all the code it should normally display in the browser. I don't have much experience yet with tomcat, planning to read-up on it next month, but could someone help me with this for now? What things should I check ? Kind regards, Nick - 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] -- Adobati Omar [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: POST no longer working
On Thu, Mar 17, 2005 at 06:45:56AM -0800, Jimmy Ray wrote: : Tomcat 5.0.28 on HP UNIX: I was using a filter : (jcfifs) in one of my web.xml files. I have since : removed the filter and all code refering to it. Now : web forms can not post to servlets in this app. GET : methods work fine, but POST does not. 1/ at the risk of sounding flippant, diff the two code bases and see what changed 2/ you'll have to elaborate on what doesn't work: error messages in the browser, log messages, etc. -QM -- software -- http://www.brandxdev.net tech news -- http://www.RoarNetworX.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
org.apache.tomcat.util.threads.ThreadPool logFull
Hi, I am running a Servlet on a Tomcat 5.0.30 Instance. This Servlets gets 500 Hits a day. After approx. 10 days Tomcat doesn't reply anymore - the logs say: Mar 15, 2005 6:53:11 PM org.apache.tomcat.util.threads.ThreadPool logFull SEVERE: All threads (50) are currently busy, waiting. Increase maxThreads (50) or check the servlet status Where have all these threads gone? When looking on the status page (before the crash), there is only one active Thread - what leads to the situation where 50 threads are active? Henrik - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Logging in Tomcat 5.5
Hi, I have a webapp in tomcat. I am using a separate Log4j.xml for it, in its WEB-INF classes folder. I've also put a Log4j.xml in TOMCAT_HOME/ common/classes and set it to false so that I do not get the general Tomcat logs. But even then my project logs are getting mixed with the TOMCAT logs. Is there any way to disable TOMCAT logs. Joy Kenneth
Re: Servlet pops up as download
On Thu, 17 Mar 2005 16:57:04 +0100 Omar Adobati [EMAIL PROTECTED] wrote: To browse a wml file you need to use a wml browser, You can't do it just using Ie or Mozilla. Maybe you can find a wml browser on the Internet. I think Opera do it. On Thu, 17 Mar 2005 16:52:30 +0100, Lionel Farbos [EMAIL PROTECTED] wrote: and, in your browser, what is the default action for this mapping ? On Thu, 17 Mar 2005 16:19:06 +0100 Nick Wolters [EMAIL PROTECTED] wrote: In mozilla the download window says: text/vnd.wap.wml The file itself begins with the following: ?xml version=1.0 encoding=iso-8859-1? !DOCTYPE wml PUBLIC -//WAPFORUM//DTD WML 1.1//EN http://www.wapforum.org/DTD/wml_1.1.xml; wml . /wml In web.xml I found the following: mime-mapping !-- WML Source -- extensionwml/extension mime-typetext/vnd.wap.wml/mime-type /mime-mapping Didn't write the servlet myself though. Nick -Original Message- From: Parsons Technical Services [mailto:[EMAIL PROTECTED] Sent: donderdag 17 maart 2005 15:59 To: Tomcat Users List Subject: Re: Servlet pops up as download What is your content type set to? Doug - Original Message - From: Nick Wolters [EMAIL PROTECTED] To: tomcat-user@jakarta.apache.org Sent: Thursday, March 17, 2005 9:51 AM Subject: Servlet pops up as download Hello, Having some issues with an ensim tomcat 4 installation. Whenever I surf to www.mysite.com/servlet/MyServlet my browser pops up a download dialog instead of showing the page. It downloads MyServlet which does contain all the code it should normally display in the browser. I don't have much experience yet with tomcat, planning to read-up on it next month, but could someone help me with this for now? What things should I check ? Kind regards, Nick - 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] -- Adobati Omar [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]
Start and stop Tomcat + Cron
Hi I'd like to stop and start my tomcat using cron so I added this in the root's crontab and /etc/crontab : 00 22 * * * root /PATH/TO/JAKARTA/bin/shutdown.sh 02 22 * * * root /PATH/TO/JAKARTA/bin/startup.sh but it does work :s Any got ideas ??? Thk Cedric - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Start and stop Tomcat + Cron
Are your JAVA_HOME and other vars defined in a global context? Other than that I don't really know. Cédric Buschini wrote: Hi I'd like to stop and start my tomcat using cron so I added this in the root's crontab and /etc/crontab : 00 22 * * * root /PATH/TO/JAKARTA/bin/shutdown.sh 02 22 * * * root /PATH/TO/JAKARTA/bin/startup.sh but it does work :s Any got ideas ??? Thk Cedric - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Robert r. Sanders Chief Technologist iPOV (334) 821-5412 www.ipov.net - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Start and stop Tomcat + Cron
yes everything is fine. all vars have been export. I've done a JAVA_HOME=path/to/java then export JAVA_HOME. Same thing for CATALINA_HOME Robert r. Sanders wrote: Are your JAVA_HOME and other vars defined in a global context? Other than that I don't really know. Cédric Buschini wrote: Hi I'd like to stop and start my tomcat using cron so I added this in the root's crontab and /etc/crontab : 00 22 * * * root /PATH/TO/JAKARTA/bin/shutdown.sh 02 22 * * * root /PATH/TO/JAKARTA/bin/startup.sh but it does work :s Any got ideas ??? Thk Cedric - 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]
mod_jk + ssl on a virtual host.
I have an issue with detecting HTTPS when running on a virtual server behing mod_jk; here's my setup: For reasons that I can't currently change I have an internal server running as app.server.com (example url); it is aliased so that multiple virtual hosts (name based) are running as: x.app.server.com , y.app.server.com, z.app.server.com, etc... The server has an internal SSL certificate generated for app.server.com; this produces a warning, but otherwise works when using HTTPS to connect to x.app.server.com. Not the best solution, I know, but like I said right now I am just trying to support it. So, to complicate matters I have Tomcat (5.0.28) running on the same machine, with all the virtual hosts using Aliasx.app.server.com/Alias in my server.xml file. When connecting, I can access the web application via HTTPS; however Tomcat seems unaware that the connection is secure - request.isSecure() == false, as well as other tests that I can think of, overall annoying, but not too bad except that redirects are generated pointing to HTTP instead of HTTPS. I have tried: JkExtractSSL On JkHTTPSIndicator HTTPS Does anyone know of any work around/fix to this? Thanks, -- Robert r. Sanders Chief Technologist iPOV (334) 821-5412 www.ipov.net - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Start and stop Tomcat + Cron
Yes and it depends on your crontab version. In my version, the system-wide crontab seems like this : 00 22 * * * /PATH/TO/JAKARTA/bin/shutdown.sh and the user-wide crontab seems like this : 00 22 * * * /PATH/TO/JAKARTA/bin/shutdown.sh ... but are not executed by the same user. On Thu, 17 Mar 2005 10:27:58 -0600 Robert r. Sanders [EMAIL PROTECTED] wrote: Are your JAVA_HOME and other vars defined in a global context? Other than that I don't really know. Cédric Buschini wrote: Hi I'd like to stop and start my tomcat using cron so I added this in the root's crontab and /etc/crontab : 00 22 * * * root /PATH/TO/JAKARTA/bin/shutdown.sh 02 22 * * * root /PATH/TO/JAKARTA/bin/startup.sh but it does work :s Any got ideas ??? Thk Cedric - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Robert r. Sanders Chief Technologist iPOV (334) 821-5412 www.ipov.net - 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: JDBCRealm changes from Tomcat 5.0.x to 5.5.x
I had similar problems, and was forced to revert back to Tomcat 5.0.x. Are you using HTTP or Form-based authentication to get the user credentials? On Tue, 2005-03-08 at 11:57 -0700, Richard Mixon (qwest) wrote: Has anything changed with the way that JDBCReal handles connection timeouts in Tomcat 5.5.7? We upgraded from Tomcat 5.0.19 to Tomcat 5.5.7 in production and are now getting JDBC connection errors when the site has not been accessed for a while. This is happening when a user tries to login - we use a JDBCRealm to authenticate the user. We had this problem a while back but fixed it by adding the autoReconnect parm, but now with Tomcat 5.5. we are having the problem again. We are using MySQL 4.1.7 and version 3.1.7 of the MySQL JDBC connector. Here is the realm specification: Realm className=org.apache.catalina.realm.JDBCRealm debug=99 driverName=com.mysql.jdbc.Driver connectionURL=jdbc:mysql://dbserver1:3306/webapp1?autoReconnect=tru eamp;autoCommit=true connectionName=user1 connectionPassword=password1 userTable=PoPerson userNameCol=userid userCredCol=password userRoleTable=PoPersonRole roleNameCol=roleName / Resource name=jdbc/webapp1 type=javax.sql.DataSource auth=Container maxActive=100 maxIdle=10 maxWait=1 defaultAutoCommit=true username=user1 password=password1 driverClassName=com.mysql.jdbc.Driver url=jdbc:mysql://dbserver1:3306/ltojsw?autoRecon nect=trueamp;autoCommit=true removeAbandoned=true removeAbandonedTimeout=60 logAbandoned=true / I also included the corresponding datasource defined for actual application access. The actual exception is below. Would using the DataSourceReal provide any help here? I was thinking that since it uses DBCP pooling maybe timeout recovery might be more robust. I am trying to duplicate the problem in development now, before trying the DataSourceRealm. Thank you all for any suggestions or solutions. - Richard Here is the exception: 16:50:00,269 ERROR [TP-Processor6] [/stars]:541 - Exception retrieving password for wazinger com.mysql.jdbc.CommunicationsException: Communications link failure due to underlying exception: ** BEGIN NESTED EXCEPTION ** java.net.SocketException MESSAGE: Broken pipe STACKTRACE: java.net.SocketException: Broken pipe at java.net.SocketOutputStream.socketWrite0(Native Method) at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92) at java.net.SocketOutputStream.write(SocketOutputStream.java:136) at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:65) at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:123) at com.mysql.jdbc.MysqlIO.send(MysqlIO.java:2616) at com.mysql.jdbc.MysqlIO.send(MysqlIO.java:2547) at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1512) at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1622) at com.mysql.jdbc.Connection.execSQL(Connection.java:2376) at com.mysql.jdbc.Connection.execSQL(Connection.java:2297) at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java: 1860) at com.mysql.jdbc.PreparedStatement.executeQuery(PreparedStatement.java:170 5) at org.apache.catalina.realm.JDBCRealm.getPassword(JDBCRealm.java:526) at org.apache.catalina.realm.JDBCRealm.authenticate(JDBCRealm.java:399) at org.apache.catalina.realm.JDBCRealm.authenticate(JDBCRealm.java:347) at org.apache.catalina.authenticator.FormAuthenticator.authenticate(FormAut henticator.java:256) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authenticator Base.java:391) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java :126) at org.apache.catalina.cluster.tcp.ReplicationValve.invoke(ReplicationValve .java:130) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java :105) at org.apache.catalina.valves.FastCommonAccessLogValve.invoke(FastCommonAcc essLogValve.java:481) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve. java:107) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:1 48) at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:306) at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:385) at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:745) at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java: 675) at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:868) at
Re: Start and stop Tomcat + Cron
On Thu, Mar 17, 2005 at 05:24:59PM +0100, C?dric Buschini wrote: : I'd like to stop and start my tomcat using cron so I added this in the : root's crontab and /etc/crontab : : 00 22 * * * root /PATH/TO/JAKARTA/bin/shutdown.sh : 02 22 * * * root /PATH/TO/JAKARTA/bin/startup.sh 1/ please post a *new* message when writing to the list. Replying to an old (unrelated) message confuses thread-aware mailers, which makes your question harder to find (and thus answer). 2/ does Tomcat always run as root? That's just a side concern, but you probably don't want to do that. 3/ You mentioned that all of the proper environment variables are set, but are they set just in root's shell? Keep in mind, cron is a barebones environment. You'd do well to use wrapper scripts for cron jobs, such that the wrapper can set any needed env vars. 4/ What are the messages in the error logs, cron logs, etc? What doesn't work? -QM -- software -- http://www.brandxdev.net tech news -- http://www.RoarNetworX.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Servlet pops up as download
Thanks. I think the client lied when he told me it did show a while ago :) With a WML enabled browser everything is ok. Nick -Original Message- From: Lionel Farbos [mailto:[EMAIL PROTECTED] Sent: donderdag 17 maart 2005 17:23 To: Tomcat Users List Cc: [EMAIL PROTECTED] Subject: Re: Servlet pops up as download On Thu, 17 Mar 2005 16:57:04 +0100 Omar Adobati [EMAIL PROTECTED] wrote: To browse a wml file you need to use a wml browser, You can't do it just using Ie or Mozilla. Maybe you can find a wml browser on the Internet. I think Opera do it. On Thu, 17 Mar 2005 16:52:30 +0100, Lionel Farbos [EMAIL PROTECTED] wrote: and, in your browser, what is the default action for this mapping ? On Thu, 17 Mar 2005 16:19:06 +0100 Nick Wolters [EMAIL PROTECTED] wrote: In mozilla the download window says: text/vnd.wap.wml The file itself begins with the following: ?xml version=1.0 encoding=iso-8859-1? !DOCTYPE wml PUBLIC -//WAPFORUM//DTD WML 1.1//EN http://www.wapforum.org/DTD/wml_1.1.xml; wml . /wml In web.xml I found the following: mime-mapping !-- WML Source -- extensionwml/extension mime-typetext/vnd.wap.wml/mime-type /mime-mapping Didn't write the servlet myself though. Nick -Original Message- From: Parsons Technical Services [mailto:[EMAIL PROTECTED] Sent: donderdag 17 maart 2005 15:59 To: Tomcat Users List Subject: Re: Servlet pops up as download What is your content type set to? Doug - Original Message - From: Nick Wolters [EMAIL PROTECTED] To: tomcat-user@jakarta.apache.org Sent: Thursday, March 17, 2005 9:51 AM Subject: Servlet pops up as download Hello, Having some issues with an ensim tomcat 4 installation. Whenever I surf to www.mysite.com/servlet/MyServlet my browser pops up a download dialog instead of showing the page. It downloads MyServlet which does contain all the code it should normally display in the browser. I don't have much experience yet with tomcat, planning to read-up on it next month, but could someone help me with this for now? What things should I check ? Kind regards, Nick - 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] -- Adobati Omar [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: Start and stop Tomcat + Cron
1/ Sorry having replied to an unrelated message. 2/ Yes Tomcat always run as root. 3/ I am newbie, so I will get info about 'wapper script'. 4/ uhmmm a newbie question : Where can I find these logs . sorry :s QM wrote: On Thu, Mar 17, 2005 at 05:24:59PM +0100, C?dric Buschini wrote: : I'd like to stop and start my tomcat using cron so I added this in the : root's crontab and /etc/crontab : : 00 22 * * * root /PATH/TO/JAKARTA/bin/shutdown.sh : 02 22 * * * root /PATH/TO/JAKARTA/bin/startup.sh 1/ please post a *new* message when writing to the list. Replying to an old (unrelated) message confuses thread-aware mailers, which makes your question harder to find (and thus answer). 2/ does Tomcat always run as root? That's just a side concern, but you probably don't want to do that. 3/ You mentioned that all of the proper environment variables are set, but are they set just in root's shell? Keep in mind, cron is a barebones environment. You'd do well to use wrapper scripts for cron jobs, such that the wrapper can set any needed env vars. 4/ What are the messages in the error logs, cron logs, etc? What doesn't work? -QM - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: mod_jk + ssl on a virtual host.
From: Robert r. Sanders [mailto:[EMAIL PROTECTED] Subject: mod_jk + ssl on a virtual host. When connecting, I can access the web application via HTTPS; however Tomcat seems unaware that the connection is secure Have you set secure=true in the connector entry in server.xml that you're using for Tomcat? (Not sure what the side effects might be.) - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: POST no longer working
What wasn't working was the POST was not sending any parameters to the servlet. In this servlet, I combine the doGet and doPost and only a GET was providing the servlet parameters from the web form. The issue seemed to be tied to the NTLM authentication that the jcifs lib performed. Once my session timed out, and a new session was instantiated without the NTLM authentication, the POST methods started sending parameters again to the servlets. Thanks, Jimmy Ray --- QM [EMAIL PROTECTED] wrote: On Thu, Mar 17, 2005 at 06:45:56AM -0800, Jimmy Ray wrote: : Tomcat 5.0.28 on HP UNIX: I was using a filter : (jcfifs) in one of my web.xml files. I have since : removed the filter and all code refering to it. Now : web forms can not post to servlets in this app. GET : methods work fine, but POST does not. 1/ at the risk of sounding flippant, diff the two code bases and see what changed 2/ you'll have to elaborate on what doesn't work: error messages in the browser, log messages, etc. -QM -- software -- http://www.brandxdev.net tech news -- http://www.RoarNetworX.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Yahoo! Small Business - Try our new resources site! http://smallbusiness.yahoo.com/resources/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: JDBCRealm changes from Tomcat 5.0.x to 5.5.x
We are using form-based authentication. We changed to the DataSourceRealm last weekend and it appears (so far) to have solved the problem (again with TC 5.5.7 plus session replication patch). - Richard Darren Govoni wrote: I had similar problems, and was forced to revert back to Tomcat 5.0.x. Are you using HTTP or Form-based authentication to get the user credentials? On Tue, 2005-03-08 at 11:57 -0700, Richard Mixon (qwest) wrote: Has anything changed with the way that JDBCReal handles connection timeouts in Tomcat 5.5.7? We upgraded from Tomcat 5.0.19 to Tomcat 5.5.7 in production and are now getting JDBC connection errors when the site has not been accessed for a while. This is happening when a user tries to login - we use a JDBCRealm to authenticate the user. We had this problem a while back but fixed it by adding the autoReconnect parm, but now with Tomcat 5.5. we are having the problem again. We are using MySQL 4.1.7 and version 3.1.7 of the MySQL JDBC connector. Here is the realm specification: Realm className=org.apache.catalina.realm.JDBCRealm debug=99 driverName=com.mysql.jdbc.Driver connectionURL=jdbc:mysql://dbserver1:3306/webapp1?autoReconnect=tru eamp;autoCommit=true connectionName=user1 connectionPassword=password1 userTable=PoPerson userNameCol=userid userCredCol=password userRoleTable=PoPersonRole roleNameCol=roleName / Resource name=jdbc/webapp1 type=javax.sql.DataSource auth=Container maxActive=100 maxIdle=10 maxWait=1 defaultAutoCommit=true username=user1 password=password1 driverClassName=com.mysql.jdbc.Driver url=jdbc:mysql://dbserver1:3306/ltojsw?autoRecon nect=trueamp;autoCommit=true removeAbandoned=true removeAbandonedTimeout=60 logAbandoned=true / I also included the corresponding datasource defined for actual application access. The actual exception is below. Would using the DataSourceReal provide any help here? I was thinking that since it uses DBCP pooling maybe timeout recovery might be more robust. I am trying to duplicate the problem in development now, before trying the DataSourceRealm. Thank you all for any suggestions or solutions. - Richard Here is the exception: 16:50:00,269 ERROR [TP-Processor6] [/stars]:541 - Exception retrieving password for wazinger com.mysql.jdbc.CommunicationsException: Communications link failure due to underlying exception: ** BEGIN NESTED EXCEPTION ** java.net.SocketException MESSAGE: Broken pipe STACKTRACE: java.net.SocketException: Broken pipe at java.net.SocketOutputStream.socketWrite0(Native Method) at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92) at java.net.SocketOutputStream.write(SocketOutputStream.java:136) at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:65) at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:123) at com.mysql.jdbc.MysqlIO.send(MysqlIO.java:2616) at com.mysql.jdbc.MysqlIO.send(MysqlIO.java:2547) at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1512) at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1622) at com.mysql.jdbc.Connection.execSQL(Connection.java:2376) at com.mysql.jdbc.Connection.execSQL(Connection.java:2297) at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java: 1860) at com.mysql.jdbc.PreparedStatement.executeQuery(PreparedStatement.java:170 5) at org.apache.catalina.realm.JDBCRealm.getPassword(JDBCRealm.java:526) at org.apache.catalina.realm.JDBCRealm.authenticate(JDBCRealm.java:399) at org.apache.catalina.realm.JDBCRealm.authenticate(JDBCRealm.java:347) at org.apache.catalina.authenticator.FormAuthenticator.authenticate(FormAut henticator.java:256) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authenticator Base.java:391) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java 126) at org.apache.catalina.cluster.tcp.ReplicationValve.invoke(ReplicationValve .java:130) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java 105) at org.apache.catalina.valves.FastCommonAccessLogValve.invoke(FastCommonAcc essLogValve.java:481) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve. java:107) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:1 48) at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:306) at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:385) at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:745) at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java: 675) at
Re: mod_jk + ssl on a virtual host.
Caldarale, Charles R wrote: From: Robert r. Sanders [mailto:[EMAIL PROTECTED] Subject: mod_jk + ssl on a virtual host. When connecting, I can access the web application via HTTPS; however Tomcat seems unaware that the connection is secure Have you set secure=true in the connector entry in server.xml that you're using for Tomcat? (Not sure what the side effects might be.) - Chuck No, currently the same connection (ajp13) is being used for both http and https. I have had success with this in the past; but not with the admitedly wierd setup that I currently am trying to get working. -- Robert r. Sanders Chief Technologist iPOV (334) 821-5412 www.ipov.net - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Reload webapp and context
Hi, Maybe this can help: In Tomcat 5.5, the file context.xml in the server's conf directory allows for watched resources, which when touched, cause an application reload: It looks like this: !-- The contents of this file will be loaded for each web application -- Context !-- Default set of monitored resources -- WatchedResourceWEB-INF/web.xml/WatchedResource WatchedResourceMETA-INF/context.xml/WatchedResource !-- Uncomment this to disable session persistence across Tomcat restarts -- !-- Manager pathname= / -- /Context I am trying to not include the manager application in a production system because of the additional security risk. Regards, Bernard On Thu, 17 Mar 2005 11:02:57 +0100, you wrote: Hi, To reload, start, stop, deploy, undeploy contexts see the Manager : http://jakarta.apache.org/tomcat/tomcat-5.5-doc/manager-howto.html I don't know your tomcat version, but it works since TC 4. Cheers. On Thu, 17 Mar 2005 08:32:54 +0100 Roland Carlsson [EMAIL PROTECTED] wrote: Hi! I have a problem with an webapp with deploying webapps. The problem is the contextfile that since my development environment differs a little to my deployment environment have to be edited a little after deployment. But how do I force tomcat to re-load the context? Right now the only way I know about is to reboot tomcat witch leads to a full stop of all my web-apps instead of only one witch in turn leads to more complaints from my users. So, is there a way to force reload of the context when reloading the web-app? Thanks in advance Roland Carlsson - 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]
Default Web Root
Is there a way I can change the default web root in Tomcat 5.5? If so, how?
Default Web Root Issue?
I am having the following problem I can't get to website by typing https://serveripaddress, however, if I type https://serveripaddrress/root it takes me there. I am assuming that some setting isn't pointing in the right direction. Thanks in advance for any help. Shane -Original Message- From: Carter, Shane (DISA Oklahoma City) [mailto:[EMAIL PROTECTED] Sent: Thursday, March 17, 2005 13:21 To: 'Tomcat Users List' Subject: Default Web Root Is there a way I can change the default web root in Tomcat 5.5? If so, how?
How to redirect to a different host
Is there anyway to configure Tomcat (without using apache) to redirect requests for a particular context to a new url (and host) Here's the scenario on the main page there is a link to a shopping cart context. This webapp does not run on this machine, it's running on a totally separate system, so what I want to do is: when the context webhost:8080/shopping is requested the request is redirected to shoppingcarthost:8080/shopping. Is it possible to do this in the server.xml file, or does it have to be done somewhere else. I know how to do this with apache, but using apache is not an option in this case. I need to know how to to do this independent of apache. Just using Tomcat configuration files. Thanks Daniel McMillan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Start and stop Tomcat + Cron
1. Which platform and crond are you on? Is the crontab format correct for your environment? 00 22 * * * root /PATH/TO/JAKARTA/bin/shutdown.sh vs. 00 22 * * * /PATH/TO/JAKARTA/bin/shutdown.sh 2. You may want to see if shutdown.sh works as root. 3. You can also try 00 22 * * * /PATH/TO/JAKARTA/bin/shutdown.sh logfile 21 or whatever works in your shell, and post caught errors. 4. If you're in Fedora, you can put these 2 lines in a script (say, tomcat1.sh) and 00 22 * * * root /YOUR/PATH/tomcat1.sh su - tomcat /PATH/TO/JAKARTA/bin/setclasspath.sh su - tomcat /PATH/TO/JAKARTA/bin/startup.sh HTH. Regards, Ben Kim Database Developer/Systems Administrator 434E Harrington Tower / College of Education Texas AM University Original Message Hi I'd like to stop and start my tomcat using cron so I added this in the root's crontab and /etc/crontab : 00 22 * * * root /PATH/TO/JAKARTA/bin/shutdown.sh 02 22 * * * root /PATH/TO/JAKARTA/bin/startup.sh but it does work :s Any got ideas ??? Thk Cedric - 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: How to redirect to a different host
You may have to use JSTL in your page. JSTL provides a tag called import that has the capability to import contents from other site to your page. So you may built a page that looks like %@ taglib prefix=c uri=http://java.sun.com/jstl/core; % c:import url=http://shoppingcarthost:8080/shopping/ When the user requests webhost:8080/shopping use the response.sendRedirect() to direct to his request to this new page. This page will in turn post a request to a new container on a different machine. Don't forget to include JSTL jar files into your container. Vinod -Original Message- From: Dan [mailto:[EMAIL PROTECTED] Sent: Thursday, March 17, 2005 2:58 PM To: Tomcat Users List Subject: How to redirect to a different host Is there anyway to configure Tomcat (without using apache) to redirect requests for a particular context to a new url (and host) Here's the scenario on the main page there is a link to a shopping cart context. This webapp does not run on this machine, it's running on a totally separate system, so what I want to do is: when the context webhost:8080/shopping is requested the request is redirected to shoppingcarthost:8080/shopping. Is it possible to do this in the server.xml file, or does it have to be done somewhere else. I know how to do this with apache, but using apache is not an option in this case. I need to know how to to do this independent of apache. Just using Tomcat configuration files. Thanks Daniel McMillan - 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: RE: How to redirect to a different host Balancer Rules
Thanks for the Idea Vinod, unfortunately I don't have control of the jsp content, so that rather elegant solution won't work. However I'm definitely tucking that away in my mental rolodex. Thanks for the tip!!! Does anyone else know if there's a way to redirect to a different host I was looking at the balancer rules, and it looks like I might be able to use them, but I don't quite understand how to do this. The rule I need to develop is basically the requested URL of http://{webhost}:8080/shopping needs to be redirected to http://{shoppinghost}:8080/shopping. Anyone know how to do this? Original Message - From: Ramu, Vinod [EMAIL PROTECTED] To: Tomcat Users List tomcat-user@jakarta.apache.org Date: Today 03:16:35 pm Subject: RE: How to redirect to a different host You may have to use JSTL in your page. JSTL provides a tag called import that has the capability to import contents from other site to your page. So you may built a page that looks like %@ taglib prefix=c uri=http://java.sun.com/jstl/core; % c:import url=http://shoppingcarthost:8080/shopping/ When the user requests webhost:8080/shopping use the response.sendRedirect() to direct to his request to this new page. This page will in turn post a request to a new container on a different machine. Don't forget to include JSTL jar files into your container. Vinod - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
localhost ok - how I set up in a real host?
Hi I succesfully executed a tutorial form servlet in the computer. Now I want to try it on a web host. But, I am using a free host (beplaced.com) that I don't know if accepts java servlets. Questions: 1) How do I know if the server accepts java servlets? 2) I imagine if they do they have to run a soft, what kind of soft they have to run to be able to run a servlet compiled with java and tomcat? 3) Do I have to install the servlet in a specific directory? Please educate me. Thanks in advance. Jorge - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: localhost ok - how I set up in a real host?
On Thu, Mar 17, 2005 at 05:24:12PM -0300, [EMAIL PROTECTED] wrote: : I succesfully executed a tutorial form servlet in the computer. Now I want to try it on a web host. : But, I am using a free host (beplaced.com) that I don't know if accepts java servlets. Questions: : : 1) How do I know if the server accepts java servlets? Just ask them. If they don't boast about it in their list of offerings, though, then it's probably not available. There's far less Java web hosting out there than there is standard HTML/PHP/CGI hosting. I'd be surprised to see a free host do it. (Not to say that I've never been surprised, though... ;) -QM -- software -- http://www.brandxdev.net tech news -- http://www.RoarNetworX.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: localhost ok - how I set up in a real host?
Set a hostname up in etc/hosts and access it. -Original Message- From: QM [EMAIL PROTECTED] Sent: Mar 17, 2005 12:31 PM To: Tomcat Users List tomcat-user@jakarta.apache.org Subject: Re: localhost ok - how I set up in a real host? On Thu, Mar 17, 2005 at 05:24:12PM -0300, [EMAIL PROTECTED] wrote: : I succesfully executed a tutorial form servlet in the computer. Now I want to try it on a web host. : But, I am using a free host (beplaced.com) that I don't know if accepts java servlets. Questions: : : 1) How do I know if the server accepts java servlets? Just ask them. If they don't boast about it in their list of offerings, though, then it's probably not available. There's far less Java web hosting out there than there is standard HTML/PHP/CGI hosting. I'd be surprised to see a free host do it. (Not to say that I've never been surprised, though... ;) -QM -- software -- http://www.brandxdev.net tech news -- http://www.RoarNetworX.com - 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]
System ClassLoader problem on Linux running Hipergate on Tomcat?
Apologies, I've put a lot in this email so that hopefully my rescuer won't have to in theirs... This is probably such a dumb problem I deserve to be shot, but I'm stuck and I have no support and I'm desperately trying to migrate one machine in this office so that we don't have to shell out for more expensive proprietary lock-in rubbish (here a CRM). Machine i686, OS RedHat 9... I'm trying to get Hipergate up and running, for which I need Java (RE and DK) and Tomcat. I've never set up a web server before and always had a nightmare with Java - which I like in theory, but find infuriatingly bloated. Well, I've got J2EE in it's default place /opt/ and Tomcat 5.0.30 in /opt too and everything is now working fine. The Tomcat admin pages come up okay, I can log in and I can 'run' the example JSP pages. I've even got Hipergate deployed on Tomcat and can see it's login page. But that's as far as I go... As soon as I hit login I get error(s) of the form: HTTP Status 500 - type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception org.apache.jasper.JasperException: Unable to compile class for JSP org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandle r.java:97) org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:3 46) org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:439) org.apache.jasper.compiler.Compiler.compile(Compiler.java:497) org.apache.jasper.compiler.Compiler.compile(Compiler.java:476) org.apache.jasper.compiler.Compiler.compile(Compiler.java:464) org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:5 11) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2 95) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) root cause Unable to find a javac compiler; com.sun.tools.javac.Main is not on the classpath. Perhaps JAVA_HOME does not point to the JDK org.apache.tools.ant.taskdefs.compilers.CompilerAdapterFactory.getCompiler(C ompilerAdapterFactory.java:105) org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:929) org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:758) org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:407) org.apache.jasper.compiler.Compiler.compile(Compiler.java:497) org.apache.jasper.compiler.Compiler.compile(Compiler.java:476) org.apache.jasper.compiler.Compiler.compile(Compiler.java:464) org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:5 11) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2 95) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) note The full stack trace of the root cause is available in the Apache Tomcat/5.0.30 logs. FYI the said stack trace looks like this: [EMAIL PROTECTED] opt]# tail -50 jakarta-tomcat-5/jakarta-tomcat-5.0.30/logs/localhost_log.2005-03-17.txt 2005-03-17 14:38:50 StandardContext[/jsp-examples]SessionListener: attributeAdded('AA89D380700D2E70151385DD9E96D9EE', 'theTruth', 'true') 2005-03-17 14:39:13 StandardContext[/jsp-examples]SessionListener: attributeAdded('AA89D380700D2E70151385DD9E96D9EE', 'javax.servlet.jsp.jstl.fmt.request.charset', 'UTF-8') 2005-03-17 14:40:10 StandardContext[/servlets-examples]InvokerFilter(ApplicationFilterConfig[nam e=Path Mapped Filter, filterClass=filters.ExampleFilter]): 5 milliseconds 2005-03-17 14:40:14 StandardContext[/servlets-examples]InvokerFilter(ApplicationFilterConfig[nam e=Path Mapped Filter, filterClass=filters.ExampleFilter]): 7 milliseconds 2005-03-17 14:44:48 StandardContext[/manager]HTMLManager: list: Listing contexts for virtual host 'localhost' 2005-03-17 14:45:03 StandardWrapperValve[jsp]: Servlet.service() for servlet jsp threw exception Unable to find a javac compiler; com.sun.tools.javac.Main is not on the classpath. Perhaps JAVA_HOME does not point to the JDK at org.apache.tools.ant.taskdefs.compilers.CompilerAdapterFactory.getCompiler(C ompilerAdapterFactory.java:105) at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:929) at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:758) at
Re: Reload webapp and context
Roland, You might want to add yourself to the cc list of this bug: Normal startup causes server error 500 http://issues.apache.org/bugzilla/show_bug.cgi?id=34050 It might be in the area of your interest. Regards, Bernard On Thu, 17 Mar 2005 11:02:57 +0100, you wrote: Hi, To reload, start, stop, deploy, undeploy contexts see the Manager : http://jakarta.apache.org/tomcat/tomcat-5.5-doc/manager-howto.html I don't know your tomcat version, but it works since TC 4. Cheers. On Thu, 17 Mar 2005 08:32:54 +0100 Roland Carlsson [EMAIL PROTECTED] wrote: Hi! I have a problem with an webapp with deploying webapps. The problem is the contextfile that since my development environment differs a little to my deployment environment have to be edited a little after deployment. But how do I force tomcat to re-load the context? Right now the only way I know about is to reboot tomcat witch leads to a full stop of all my web-apps instead of only one witch in turn leads to more complaints from my users. So, is there a way to force reload of the context when reloading the web-app? Thanks in advance Roland Carlsson - 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]
Web apps vs. Logging vs. Tomcat
I have been trying to get really serious about log4j in web apps. I note that Tomcat (thanks to commons-logging) uses java.util.logging *except* for loggers created while my web app's classloader is the current contextual classloader -- at which point it suddenly uses log4j (since my web app does) without giving my web app a chance to initialize it in any way as best I can tell. My web app has a ServletContextListener which initializes log4j by setting up its own LoggerRepository, configuration file and watcher (since log4j's won't shutdown), etc. Of course, every Tomcat logger created within my web app up until this point is now using log4j from my web app (!) and using the basic log4j.properties [if present] from my web app -- for loggers that apply to all web apps! How is one supposed to work this? I am currently using a static LoggerRepository reference within my web app so that a log4j loaded higher in the classloader tree won't cause LoggerRepository sharing. I was using a JNDI-based LoggerRepositorySelector as per log4j author recommendations, but this goes a step further than above -- it puts all the Tomcat loggers that are errantly using my log4j into my LoggerRepository -- which would be fine if these loggers were not shared with other web apps. What's the solution here? Do I have to put log4j into Tomcat's lib directories to force it to use its own centralized log4j? Is that the best solution? -- Jess Holle - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How to redirect to a different host
There is no way for Tomcat to do this 'out of the box'. But don't despair! Check out: http://www.zlatkovic.com/httpredirectfilter.en.html The author has released it under a very free license. I have been using the filter and can personally recommend it. The site seems to be down right now, so you'll have to check back later. Luke P.S. In the interest of full, squeaky clean disclosure, I've submitted a patch to the project. -Original Message- From: Dan [mailto:[EMAIL PROTECTED] Sent: Thursday, March 17, 2005 14:58 To: Tomcat Users List Subject: How to redirect to a different host Is there anyway to configure Tomcat (without using apache) to redirect requests for a particular context to a new url (and host) Here's the scenario on the main page there is a link to a shopping cart context. This webapp does not run on this machine, it's running on a totally separate system, so what I want to do is: when the context webhost:8080/shopping is requested the request is redirected to shoppingcarthost:8080/shopping. Is it possible to do this in the server.xml file, or does it have to be done somewhere else. I know how to do this with apache, but using apache is not an option in this case. I need to know how to to do this independent of apache. Just using Tomcat configuration files. Thanks Daniel McMillan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] CONFIDENTIALITY NOTICE This e-mail and any attachments, as well as any documents from a file server of International Truck and Engine Corporation or its affiliates, are intended for the addressee and may contain information that is privileged, confidential, proprietary, or otherwise protected by law. Any dissemination, distribution, or copying is prohibited. If a confidentiality or nondisclosure agreement exists between International and the recipient or the recipient's employer, this e-mail and any attachments hereto, as well as any documents from a file server of International Truck and Engine Corporation or its affiliates, this notice serves as marking as CONFIDENTIAL information of International Truck and Engine Corporation or its affiliates. If you have received this communication in error, please contact the original sender. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: System ClassLoader problem on Linux running Hipergate on Tomcat?
From: Lee Hammond [mailto:[EMAIL PROTECTED] Subject: System ClassLoader problem on Linux running Hipergate on Tomcat? Well, I've got J2EE in it's default place /opt/ and Tomcat 5.0.30 in /opt too and everything is now working fine. Tomcat doesn't need the J2EE download, and, in some situations, it can cause problems. (Don't know if Hipergate needs anything from it, but I would hope not.) You should install just the JDK (it has its own JRE), and JAVA_HOME should point to that. Unable to find a javac compiler; com.sun.tools.javac.Main is not on the classpath. Perhaps JAVA_HOME does not point to the JDK More evidence that you have JAVA_HOME pointing to the wrong place, perhaps to the JRE or J2EE instead of the JDK. Need to make sure that /appropriate_path/tools.jar appears somewhere in the classpath used to launch Tomcat. Do NOT use the CLASSPATH environment variable; the only jars you need on the eventual -cp parameter used to start Tomcat are tools.jar (from the JDK) and bootstrap.jar (from the Tomcat bin directory). It seems to be a system classLoader problem, which (according to: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/class-loader-howto.html If you're running 5.0.30, why are you looking at the doc for 4.1? Can you run javac yourself? I.e., does java -cp $JAVA_HOME/lib/tools.jar com.sun.tools.javac.Main do anything useful? (It should show you a list of the javac options.) - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Mapping JSP
I have several JSP that I want to be able to forward to from servlets. Right now I stick my JSP in WEB-INF/jsp for security reasons. I guess I need a way to include a JSP mapping in the web.xml so that my request dispatcher call does not include the WEB-INF directory in its path. Anyone know the syntax for this JSP mapping? Regards, Jimmy Ray __ Do you Yahoo!? Yahoo! Small Business - Try our new resources site! http://smallbusiness.yahoo.com/resources/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Mapping JSP
Use jsp-file XML element (under servlet node) in your web.xml. Then dispatch the request to this resource using ServletContext.getNamedDispatcher(nameoftheresource). If you use this method there is no need to use any path. It identifies the resources based on the name that you pass. Vinod -Original Message- From: Jimmy Ray [mailto:[EMAIL PROTECTED] Sent: Thursday, March 17, 2005 4:31 PM To: tomcat-user@jakarta.apache.org Subject: Mapping JSP I have several JSP that I want to be able to forward to from servlets. Right now I stick my JSP in WEB-INF/jsp for security reasons. I guess I need a way to include a JSP mapping in the web.xml so that my request dispatcher call does not include the WEB-INF directory in its path. Anyone know the syntax for this JSP mapping? Regards, Jimmy Ray __ Do you Yahoo!? Yahoo! Small Business - Try our new resources site! http://smallbusiness.yahoo.com/resources/ - 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: Mapping JSP
Thank-you, that worked famously. Regards, Jimmy Ray --- Ramu, Vinod [EMAIL PROTECTED] wrote: Use jsp-file XML element (under servlet node) in your web.xml. Then dispatch the request to this resource using ServletContext.getNamedDispatcher(nameoftheresource). If you use this method there is no need to use any path. It identifies the resources based on the name that you pass. Vinod -Original Message- From: Jimmy Ray [mailto:[EMAIL PROTECTED] Sent: Thursday, March 17, 2005 4:31 PM To: tomcat-user@jakarta.apache.org Subject: Mapping JSP I have several JSP that I want to be able to forward to from servlets. Right now I stick my JSP in WEB-INF/jsp for security reasons. I guess I need a way to include a JSP mapping in the web.xml so that my request dispatcher call does not include the WEB-INF directory in its path. Anyone know the syntax for this JSP mapping? Regards, Jimmy Ray __ Do you Yahoo!? Yahoo! Small Business - Try our new resources site! http://smallbusiness.yahoo.com/resources/ - 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] __ Do you Yahoo!? Yahoo! Small Business - Try our new resources site! http://smallbusiness.yahoo.com/resources/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat startup with jsvc on Linux
Hi, How can I start Tomcat with jsvc so that the jsvc command returns control to the command prompt or script exactly after the Daemon started successfully ? I would like it to behave in the same way as other services such as Apache httpd so I can cod success and failure messages in the script. The supplied script redirects output to a log file and in that way jsvc returns immediately, long before writing Daemon started successfully to the log file. If I do NOT code the -outfile $CATALINA_HOME/logs/catalina.out \ -errfile '1' \ parameters, then the command does not return at all and I have to press [Enter] or [Ctrl+C] at the console. It looks as if I am lacking some knowledge here. Many thanks for your help, Bernard - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
book for servlet programming
I need a book for servlet programming- there are some good reviews for the Jason (O'Reilly) book. and also for Goodwill's Servlet programming. Please let me know your experiences about a good book to for servlet programming. (shall be using Tomcat primarily) references to some tutorials with tomcat/servlet programming examples Thanks __ Do you Yahoo!? Yahoo! Small Business - Try our new resources site! http://smallbusiness.yahoo.com/resources/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: book for servlet programming
I highly recommend Java Server Pages 3rd edition, by Hans Bergsten (O'Reilly). It covers servlets, JSP and struts. Many examples and easy to read and understand. I own all three editions. -Original Message- From: brian [mailto:[EMAIL PROTECTED] Sent: Thursday, March 17, 2005 4:25 PM To: tomcat list Subject: book for servlet programming I need a book for servlet programming- there are some good reviews for the Jason (O'Reilly) book. and also for Goodwill's Servlet programming. Please let me know your experiences about a good book to for servlet programming. (shall be using Tomcat primarily) references to some tutorials with tomcat/servlet programming examples Thanks __ Do you Yahoo!? Yahoo! Small Business - Try our new resources site! http://smallbusiness.yahoo.com/resources/ - 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: book for servlet programming
I like the WROX book JSP 2nd Edition. It's not purely a servlet book but it covers just about everything you might want to do. Namely filters, servlets, JSPs, MVC frameworks, XML/XSLT, custom tags and tag libraries, JDBC, and EJB. It's a little old so it doesn't cover some other important things, but it's a good solid starter book in my opinion. And if you don't need it anymore it works good for crushing small objects. :) --mikej -=- mike jackson [EMAIL PROTECTED] -Original Message- From: brian [mailto:[EMAIL PROTECTED] Sent: Thursday, March 17, 2005 4:25 PM To: tomcat list Subject: book for servlet programming I need a book for servlet programming- there are some good reviews for the Jason (O'Reilly) book. and also for Goodwill's Servlet programming. Please let me know your experiences about a good book to for servlet programming. (shall be using Tomcat primarily) references to some tutorials with tomcat/servlet programming examples Thanks __ Do you Yahoo!? Yahoo! Small Business - Try our new resources site! http://smallbusiness.yahoo.com/resources/ - 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: book for servlet programming
On Thu, Mar 17, 2005 at 04:24:57PM -0800, brian wrote: : Please let me know your experiences about a good book to for : servlet programming. (shall be using Tomcat primarily) 1/ Inside Servlets, by Dustin Callaway. I tried a few other servlet books, but this is the one that really worked for me. It remains a valuable reference. 2/ Go to your local bookstore and skim some texts to see what authors resonate with you. I have a tough time following a book if the style bothers me. 3/ Download a copy of the servlet spec (java.sun.com) and give it a good skim. It's dry -- it's a spec, after all -- but it contains what every servlet developer should know. Sticking to spec-compliant code will make your apps container-agnostic, such that you can use Tomcat, WebLogic, etc with little difficulty. -QM -- software -- http://www.brandxdev.net tech news -- http://www.RoarNetworX.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How can I see the full stack trace in the browser?
Is it possible to see the full stack trace of an exception in the browser? If yes, how can I enable it? thank you in advance kostas. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Serious Tomcat Question
Hi, I would like to hear opinions from users or developers who have a little more experience with mod-jk/Tomcat then me. With multiple virtual hosts, I would like to add and delete virtual hosts on a routine basis. This is achieved by re-starting both httpd and tomcat after re-configuration (I don't know any other way). Surprisingly, Apache immediately returns a server error 500 response while Tomcat is re-starting. IMHO this renders almost useless the init() and destroy() servlet logic that is used to make user sessions persistent before and after a server restart. If, for example, the expected servlet response is JavaScript that is embedded in a web page, then the whole web application gets broken without even showing an error by this. This is so because there is no way that I can catch this error in JavaScript. The error 500 response is HTML and and the script engine cannot read it. This is just a special case but I think an error 500 response for a server re-start could be considered a disaster in most other cases as well. What can be done about this? I have filed a bug: http://issues.apache.org/bugzilla/show_bug.cgi?id=34050 Do you agree with my view? How long would a thing like this take to fix? Many thanks, Bernard - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
changing my web app and then deploying takes a lot of time!!!
Hi again! I am currently developoing a web application and whenever I change my project (jsp file or java classes) I have to deploy and undeploy the application again. Which take a lot of time and it drives me crazy!!! Do you know how can I foce tomcat to deploy my build directory and whenever I change something in the build directory it can automatically detect it and refresh the deployed web application? Thank you in advance, Kostas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Reload webapp and context
I have a similar problem in 5.5 when deploying my .war files. If I go to the manager and undeploy a webapp that was deployed from a war it only deletes the .war file and not the exploded directory. If I want to deploy an update I have to stop tomcat and start it again for it to pickup the change in the war file. Even when I have auto-deploy set to true. I have done everything I can think of but it seems that to make an update like this in Tomcat you have to stop and restart which is really unfortunate. Bernard wrote: Roland, You might want to add yourself to the cc list of this bug: Normal startup causes server error 500 http://issues.apache.org/bugzilla/show_bug.cgi?id=34050 It might be in the area of your interest. Regards, Bernard On Thu, 17 Mar 2005 11:02:57 +0100, you wrote: Hi, To reload, start, stop, deploy, undeploy contexts see the Manager : http://jakarta.apache.org/tomcat/tomcat-5.5-doc/manager-howto.html I don't know your tomcat version, but it works since TC 4. Cheers. On Thu, 17 Mar 2005 08:32:54 +0100 Roland Carlsson [EMAIL PROTECTED] wrote: Hi! I have a problem with an webapp with deploying webapps. The problem is the contextfile that since my development environment differs a little to my deployment environment have to be edited a little after deployment. But how do I force tomcat to re-load the context? Right now the only way I know about is to reboot tomcat witch leads to a full stop of all my web-apps instead of only one witch in turn leads to more complaints from my users. So, is there a way to force reload of the context when reloading the web-app? Thanks in advance Roland Carlsson - 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: Serious Tomcat Question
Not sure what your need or frequency is for routine adding/deleting of a virtual host is, but have you considered running multiple instances of Tomcat and connecting them each over different jk port? Perhaps, one instance runs your stable virtual hosts - another runs your dynamic set of virtual hosts? I have experienced that Tomcat tends to startup more slowly the more virtual hosts you have in the config. I run with multiple instances of Tomcat and when I do need to restart Tomcat, it is relatively quick. Doesn't address your session issue though. btw I run FC2/Apache 2.0/JK2/Tomcat 5.0.28 At 05:33 PM 3/17/2005, Bernard wrote: Hi, I would like to hear opinions from users or developers who have a little more experience with mod-jk/Tomcat then me. With multiple virtual hosts, I would like to add and delete virtual hosts on a routine basis. This is achieved by re-starting both httpd and tomcat after re-configuration (I don't know any other way). Surprisingly, Apache immediately returns a server error 500 response while Tomcat is re-starting. IMHO this renders almost useless the init() and destroy() servlet logic that is used to make user sessions persistent before and after a server restart. If, for example, the expected servlet response is JavaScript that is embedded in a web page, then the whole web application gets broken without even showing an error by this. This is so because there is no way that I can catch this error in JavaScript. The error 500 response is HTML and and the script engine cannot read it. This is just a special case but I think an error 500 response for a server re-start could be considered a disaster in most other cases as well. What can be done about this? I have filed a bug: http://issues.apache.org/bugzilla/show_bug.cgi?id=34050 Do you agree with my view? How long would a thing like this take to fix? Many thanks, Bernard - 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]
Production Deployment Problem
HI! I am having problem in production deployment. I am using Tomcat 4.1.24 . It's working fine in Win 2k UAT machine , same is working fine in Linux 2.1 UAT machine. While same is fine in production machine as well. But I change server.xml in all the three machine, it works fine in both UAT machine but doesn't work in production machine. When starting tomcat it hangs showing the cursor after this line HttpConnector Opening server socket on all host IP addresses and doesn't go ahead. Can anyone help me where I am wrong? Abhishek - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
how to detect the servlet at the start-up
Dear all, I am using Tomcat 4.1. I am confused by one problem, basically I cannot view the servlet in the http://localhost:8080/tomcat-docs/appdev/sample/web/index.html. The file refers to the servlet using a href=helloservlet/a, where the web.xml has defined this servlet as servlet servlet-nameHelloServlet/servlet-name servlet-classmypackage.Hello/servlet-class /servlet servlet-mapping servlet-nameHelloServlet/servlet-name url-patternhello/url-pattern /servlet-mapping The package structure is as following sample / \ websrc /\ WEB-INF index.html / classes / mypackage / Hello.class(which is compiled from src directory) Since this is the application which comes as an example by Tomcat to show how to deploy an usable application, I am wondering if some basic configuration is missing? Thanks a lot for help. Clayton Tang - Do you Yahoo!? Yahoo! Small Business - Try our new resources site!
Re: Serious Tomcat Question
Thanks Dan for your reply. Your suggestion is very much appreciated. Running multiple instances as a workaround for this may be fine for a handful of virtual hosts, but if you have 50 or 100? How much memory and CPU or even how many physical machines do I need for that? I would also find it error-prone having to administer multiple different ports. Currently adding and deleting a virtual host is a fully automated process. I have one jsp page on one host only and for the rest I have only 2 servlets for each host. The servlets generate remote scripts only - no jsp and no HTML at all. I also don't have any security issues on the server side because users cannot upload server-parsed documents. I can't imagine that running so many virtual machines and tomcats will serve me well. Currently this is handled beautifully with mod_jserv but feel I have to switch to tomcat because old mod_jserv doesn't appear to be supported with Apache httpd version 2. I just need a very basic robust, cooperative servlet engine for this and not a space shuttle solution. Am I perhaps using the wrong servlet engine? I could live without jsp entirely as long as the old servlet tag as a means of java server-side include is supported. Regards, Bernard On Thu, 17 Mar 2005 19:15:00 -0800, you wrote: Not sure what your need or frequency is for routine adding/deleting of a virtual host is, but have you considered running multiple instances of Tomcat and connecting them each over different jk port? Perhaps, one instance runs your stable virtual hosts - another runs your dynamic set of virtual hosts? I have experienced that Tomcat tends to startup more slowly the more virtual hosts you have in the config. I run with multiple instances of Tomcat and when I do need to restart Tomcat, it is relatively quick. Doesn't address your session issue though. btw I run FC2/Apache 2.0/JK2/Tomcat 5.0.28 At 05:33 PM 3/17/2005, Bernard wrote: Hi, I would like to hear opinions from users or developers who have a little more experience with mod-jk/Tomcat then me. With multiple virtual hosts, I would like to add and delete virtual hosts on a routine basis. This is achieved by re-starting both httpd and tomcat after re-configuration (I don't know any other way). Surprisingly, Apache immediately returns a server error 500 response while Tomcat is re-starting. IMHO this renders almost useless the init() and destroy() servlet logic that is used to make user sessions persistent before and after a server restart. If, for example, the expected servlet response is JavaScript that is embedded in a web page, then the whole web application gets broken without even showing an error by this. This is so because there is no way that I can catch this error in JavaScript. The error 500 response is HTML and and the script engine cannot read it. This is just a special case but I think an error 500 response for a server re-start could be considered a disaster in most other cases as well. What can be done about this? I have filed a bug: http://issues.apache.org/bugzilla/show_bug.cgi?id=34050 Do you agree with my view? How long would a thing like this take to fix? Many thanks, Bernard - 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: Reload webapp and context
Hi Torrey, I can't comment on .war file deployment directly because I am not using it. But I want to help you anyway, suggesting the approach I would take. I would forget manager for a moment. A basic servlet engine (these things have been around for 10 years or more, remember Sun's Java Server) are capable to reload servlets if any of the watched resources change. Server restart for your purpose is a very sad state of affairs, not acceptable by today's standards. So I would try to touch any of the watched resources, e.g. a servlet class file, a servlet jar file or the web.xml file. That, from my experience with old mod_jserv, does not immediately trigger class re-loading. Only the next servlet request provides the event for that (noticable delay of servlet response). If that does not work, then you have the most basic problem. If it works, then you have a feeling for how it should work. Then work your way up to war file deplayment with manager. I would think that you don't need manager for most management tasks e.g. war file deployment because who can assume that you want to introduce a security risk by providing such powerful access to your application via http??? Playing around a little is sometimes very useful. Regards, Bernard On Thu, 17 Mar 2005 18:50:40 -0800, you wrote: I have a similar problem in 5.5 when deploying my .war files. If I go to the manager and undeploy a webapp that was deployed from a war it only deletes the .war file and not the exploded directory. If I want to deploy an update I have to stop tomcat and start it again for it to pickup the change in the war file. Even when I have auto-deploy set to true. I have done everything I can think of but it seems that to make an update like this in Tomcat you have to stop and restart which is really unfortunate. Bernard wrote: Roland, You might want to add yourself to the cc list of this bug: Normal startup causes server error 500 http://issues.apache.org/bugzilla/show_bug.cgi?id=34050 It might be in the area of your interest. Regards, Bernard On Thu, 17 Mar 2005 11:02:57 +0100, you wrote: Hi, To reload, start, stop, deploy, undeploy contexts see the Manager : http://jakarta.apache.org/tomcat/tomcat-5.5-doc/manager-howto.html I don't know your tomcat version, but it works since TC 4. Cheers. On Thu, 17 Mar 2005 08:32:54 +0100 Roland Carlsson [EMAIL PROTECTED] wrote: Hi! I have a problem with an webapp with deploying webapps. The problem is the contextfile that since my development environment differs a little to my deployment environment have to be edited a little after deployment. But how do I force tomcat to re-load the context? Right now the only way I know about is to reboot tomcat witch leads to a full stop of all my web-apps instead of only one witch in turn leads to more complaints from my users. So, is there a way to force reload of the context when reloading the web-app? Thanks in advance Roland Carlsson - 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]
Tomcat 5 on VPS service stops
I'm having a strange issue with my Tomcat 5 server. I have two instances of Tomcat 5 running on my VPS system I pay for. For some reason just the Tomcat services just stop. I can't find any errors that tell me why it just stops. This is the fifth time I've re-started them today. The systems are running RedHat. I'm at a loss trying to understand why these services just stop. One of them has a startup script so if the machine reboots it should start back up. I start the service with -Xmx64m -server and I'm using jdk 1.5.0_01. The history of this problem is that the last few days has been the worse, but it's had these shutdown issues from the start. One of the services has a cron that shuts down one of the services and erased the web app the copies a fresh one back, not sure that matters in this issue. If anyone has had this problem or has suggestions on solving it please let me know. -- Justin Stanczak Stanczak Group 812-735-3600 All that is necessary for the triumph of evil is that good men do nothing. Edmund Burke .....__. ./ _/....._/..|_..... /...\../.__.\./\...__\/.._.\./._..\ \\_\..\..___/|...|..\..|.(.._.|._..) .\__../\___.._\__|../__|..\/.\/.. \/.\/.\/.. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: tomcat 5.5 connector
Basically we have to make tomcat 5.5 connectors listen to non-http request, Especially telnet to any of the port. Yes one thing more there is no apache, so tomcat is acting as web server as well as servlets container. Can any custom built non-http connector is provided Plz advice me in this matter -Original Message- From: QM [mailto:[EMAIL PROTECTED] Sent: Thursday, March 17, 2005 6:26 PM To: Tomcat Users List Subject: Re: tomcat 5.5 connector On Thu, Mar 17, 2005 at 11:18:00AM +0100, Rahman, Hamdur wrote: : As tomcat provide coyote connector that is http based, : Is there any connector available that are non-http based : And how we can use in our project when we are using tomcat 5.5 : As both web server and servlets engine, : Or can we make our own connector that is non-http(say telnet) : And how we can implement it I'm not sure I understand the question. What are you trying to do? Sharing that may give the rest of us ideas on how to help you. As for implementing your own Connector, the sources for Tomcat and Jk are available to the public. Download and code away! -QM -- software -- http://www.brandxdev.net tech news -- http://www.RoarNetworX.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - - - - - - - DISCLAIMER- - - - - - - - Unless indicated otherwise, the information contained in this message is privileged and confidential, and is intended only for the use of the addressee(s) named above and others who have been specifically authorized to receive it. If you are not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this message and/or attachments is strictly prohibited. The company accepts no liability for any damage caused by any virus transmitted by this email. Furthermore, the company does not warrant a proper and complete transmission of this information, nor does it accept liability for any delays. If you have received this message in error, please contact the sender and delete the message. Thank you.
Problem running Servlets in tomcat 5.0
Hi I am able to run the jsp in the tomcat 5.0 but when I try to run a war file containing servlets instead of executing it the IE try's to download it as zip file. I have web.xml file web-inf folder also.If I just give only the servlet path in the IE then the server say requested resource not available it would be great if u guys can help (it is important) Thanks Samsher Khan Yahoo! India Matrimony: Find your life partner online Go to: http://yahoo.shaadi.com/india-matrimony - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 5 on VPS service stops
From: Stanczak Group [mailto:[EMAIL PROTECTED] Subject: Tomcat 5 on VPS service stops I start the service with -Xmx64m -server and I'm using jdk 1.5.0_01. That's not much memory for Tomcat to play with. You might want to set -verbose:gc to see if you've fallen into a continuous GC mode, or possibly completely run out of memory. Since Tomcat generates a lot of classes, it's pretty easy to exhaust the permanent generation space. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 5 on VPS service stops
Thanks Chuck for the reply But I don't think memory is any problem I have more than 500 mb ram on my system --- Caldarale, Charles R [EMAIL PROTECTED] wrote: From: Stanczak Group [mailto:[EMAIL PROTECTED] Subject: Tomcat 5 on VPS service stops I start the service with -Xmx64m -server and I'm using jdk 1.5.0_01. That's not much memory for Tomcat to play with. You might want to set -verbose:gc to see if you've fallen into a continuous GC mode, or possibly completely run out of memory. Since Tomcat generates a lot of classes, it's pretty easy to exhaust the permanent generation space. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Yahoo! India Matrimony: Find your life partner online Go to: http://yahoo.shaadi.com/india-matrimony - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 5 on VPS service stops
From: samsher khan [mailto:[EMAIL PROTECTED] Subject: RE: Tomcat 5 on VPS service stops But I don't think memory is any problem I have more than 500 mb ram on my system But by setting -Xmx64m, you're limiting the Java heap to only 64 MB, and that has to be partitioned into eden space, two tenured spaces, and the permanent generation. How much real memory you have is immaterial in this case. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Logging in Tomcat 5.5
Hi, I have a webapp in tomcat. I am using a separate Log4j.xml for it, in its WEB-INF classes folder. I've also put a Log4j.xml in TOMCAT_HOME/ common/classes and set it to false so that I do not get the general Tomcat logs. But even then my project logs are getting mixed with the TOMCAT logs. Is there any way to disable TOMCAT logs. Joy Kenneth - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]