Re: Admin application in Tomcat 5.5 (dead?)
--- HARBOR: http://coolharbor.100free.com/index.htm Now Tomcat is also a cool pojo application server --- Hi Chris At the bottom of this, I stuck some ant script... Its not pretty, but if u play a little its very useful. I'm thinking you can get the script going then just call the ant tasks from your test program... Have fun... - Original Message - From: Christopher Schultz [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Wednesday, October 31, 2007 5:52 PM Subject: Admin application in Tomcat 5.5 (dead?) -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 All, For the first time ever, I have the need to use the Tomcat admin application: I have a project whose whole unit testing capability revolves around being able to deploy webapps for testing to a running Tomcat instance using the admin application. My understanding is that the admin app is basically dead. I downloaded the admin app from the TC 5.5 download page and it doesn't run in a TC instance with nothing else in it: java.lang.NoClassDefFoundError: org/apache/commons/modeler/Registry at java.lang.Class.getDeclaredMethods0(Native Method) at java.lang.Class.privateGetDeclaredMethods(Class.java:2395) at java.lang.Class.getMethod0(Class.java:2642) at java.lang.Class.getMethod(Class.java:1579) at org.apache.commons.beanutils.MethodUtils.getMatchingAccessibleMethod(MethodUtils.java:535) at org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.java:209) at org.apache.commons.digester.CallMethodRule.end(CallMethodRule.java:625) (etc.) The manager application comes with no libraries, so it's no surprise that it can't find some library. Is the admin app really dead? If so, why is it (still) available for download from the TC 5.5 page. If it /is/ dead, does any other product feature the capabilities required for using the Catalina Ant tasks such as install/deploy and undeploy/remove? I know that, say, Lambda Probe can deploy/undeploy, but do I have to re-write all the test targets in order to do that? Thanks, - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHKKSp9CaO5/Lv0PARAk7EAJ9dQseEg3ORBHyv9DjeGg6W1kPvygCfe4Jb FI2jbNLVmQ/y5jt3MJNW4iI= =8s4A -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ===VERY USEFUL ANT SCRIPT project name=Deployer default=deploy basedir=. path id=deployer.classpath fileset dir=${basedir}/lib include name=*.jar/ /fileset /path taskdef resource=org/apache/catalina/ant/catalina.tasks classpathref=deployer.classpath/ !-- point url at manager change username and password to Tomcat Admin war - is the path to the thing you trying to install dont change update - it makes it undeploy existing first path - is the Context (the uri you want it to be) config - points via a context file that will be used as the docbase if you use config you dont use war or localWar ie it will point tc at the existing installation that you have at that docBase - ie context.xml looks like this - ?xml version=1.0 encoding=UTF-8? Context docBase=D:\GARBAGE\TestSite path=/Ignored/ localWar - will move the contents of your unpacked web app to tc In Netbeans right click and run task 'deploy' If you dont like ant then this will also work http://localhost:8080/manager/deploy?config=file://D:\\GARBAGE\\TestSite\\META-INF\\context.xmlpath=/Test88 -- !-- sample configs war=D:\\DEV\\PROJECTS\\TestRemoteIp\\dist\\TestRemoteIp.war config=D:\\GARBAGE\\TestSite\\META-INF\\context.xml localWar=file://D:\\GARBAGE\\TestSite -- target name=deploy description=Deploy web application deploy url=http://localhost:8080/manager; username=admin password= path=/Test5 update=true config=file://D:\\GARBAGE\\TestSite\\META-INF\\context.xml / /target /project !-- MAKE a simple java application make a lib folder under the application folder add catalina-ant.jar catalina-deployer.jar el-api.jar jasper.jar jasper-el.jar jsp-api.jar servlet-api.jar tomcat-juli.jar They are all in your Tomcat Libs -- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Page Expire
Hi, You can configure the manager element inside a context element to specify a longer duration before it expires. The manager element in a context is not compulsory, so you might have to add it in for your web application. Instructions are here (for the manager): http://tomcat.apache.org/tomcat-5.5-doc/config/manager.html and a wee bit more for the context: http://tomcat.apache.org/tomcat-5.5-doc/config/context.html Kind regards, Peng Tuck. On 11/1/07, tbt [EMAIL PROTECTED] wrote: Hi I'm a newbie to tomcat and I would like to increase the time duration that a page expires if it remains idle. Currently in my web application if a user remains idle for 20 minutes and tries to use the application again a default page is shown to the user stating that the page expired. How can I increase the time duration in which a page should expire after remaining idle. Thanks -- View this message in context: http://www.nabble.com/Page-Expire-tf4729501.html#a13523664 Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[ann] Informal Text-mining and Java Meetup in Tokyo
Just wanted to announce a mini-event: Informal Text-mining Java Meetup in Tokyo http://curehunter.com/public/events.do Come have a casual drink with some similarly minded devs interested in new tech. (We like: Text-mining, Natural Language Processing, Java, C#, Python, Flex, Dojo, Tomcat, Lucene...) Time/location: November 29th 2007, Thursday 8pm-10pm Amarcord in Hatsudai (near Shinjuku), Tokyo http://way.sub.jp/amarcord/access.php 2000-3000yen for food/drinks If you can attend, please confirm by emailing: events at curehunter com We will do a short demo of CureHunter and talk about some of the tech we used, including Tomcat. After that we will have a projector available if anyone else would like to present for 5-15 min on stuff they are working on. (the location is best equipped for drinking, however) Hope to meet a few Java people from around Tokyo. Best Regards, Alex --- http://curehunter.com - http://popjisyo.com - http://winstone.sf.net -- View this message in context: http://www.nabble.com/-ann--Informal-Text-mining-and-Java-Meetup-in-Tokyo-tf4729879.html#a13524663 Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [ann] Informal Text-mining and Java Meetup in Tokyo
I am working in Tokyo and really interesting in this topic and activity... but the time is in working day, i am not sure whether i could get my work done before go there... ^_^ best wishes... ^_^ On 11/1/07, dasoudesu [EMAIL PROTECTED] wrote: Just wanted to announce a mini-event: Informal Text-mining Java Meetup in Tokyo http://curehunter.com/public/events.do Come have a casual drink with some similarly minded devs interested in new tech. (We like: Text-mining, Natural Language Processing, Java, C#, Python, Flex, Dojo, Tomcat, Lucene...) Time/location: November 29th 2007, Thursday 8pm-10pm Amarcord in Hatsudai (near Shinjuku), Tokyo http://way.sub.jp/amarcord/access.php 2000-3000yen for food/drinks If you can attend, please confirm by emailing: events at curehunter com We will do a short demo of CureHunter and talk about some of the tech we used, including Tomcat. After that we will have a projector available if anyone else would like to present for 5-15 min on stuff they are working on. (the location is best equipped for drinking, however) Hope to meet a few Java people from around Tokyo. Best Regards, Alex --- http://curehunter.com - http://popjisyo.com - http://winstone.sf.net -- View this message in context: http://www.nabble.com/-ann--Informal-Text-mining-and-Java-Meetup-in-Tokyo-tf4729879.html#a13524663 Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- FREEDOM IS A LUXURY. NOT A NECESSITY
Re: mod_jk for OS X PPC
Hi! thanks for the nice tipp, but the result is: /usr/share/apr-1/build-1/libtool --silent --mode=compile gcc -I/usr/ include/apache2 -arch ppc -arch ppc64 -arch i386 -arch x86_64 -g -Os -pipe -no-cpp-precomp -DHAVE_APR -I/usr/include/apr-1 -I/usr/include/ apr-1 -arch ppc -arch ppc64 -arch i386 -arch x86_64 -g -Os -pipe -no- cpp-precomp -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -no-cpp-precomp - I /include -I /include/ -c jk_util.c -o jk_util.lo jk_util.c: In function 'jk_gettid': jk_util.c:1847: error: duplicate case value jk_util.c:1845: error: previously used here jk_util.c: In function 'jk_gettid': jk_util.c:1847: error: duplicate case value jk_util.c:1845: error: previously used here lipo: can't open input file: /var/folders/Jh/Jh+xbtjtF5Ooj16aDgP84+++ +TI/-Tmp-//ccRS3pZV.out (No such file or directory) make[1]: *** [jk_util.lo] Error 1 Peter PS: I have successful test a ppc64 only binary. Am 30.10.2007 um 20:03 schrieb BuildSmart: On Oct 30, 2007, at 13:34:36, Richard Doust wrote: Dale, So what are you saying? It's working with that compile. Should I build it with some other set of options? Richard What I said was IT IS NOT RECOMMENDED TO BUILD FOR ppc64 ONLY. Without the ADE the chances that you could build for more than the 4 basics and have a module that will work are pretty much non- existant unless you managed to obtain the /AppleInternal development tree (you know, the files your missing when you try to build one of the Apple source packages). According to the developer documentation, ./configure CFLAGS='arch ppc64' APXSLDFLAGS='arch ppc64' --with-apxs=/usr/sbin/apxs format is not recommended and often times will yield a binary that is over inflated and non-functional. And that wont work anyways cause there a typo... it's -arch not arch, also, using precompiled headers for ppc on other architectures isn't recommended either so it's wise to add -no-cpp- precomp if you're building for more than ppc in your case. One of the following will yield the results you need (I build at Apple in the real ADE so I don't have your build issues). MACOSX_DEPLOYMENT_TARGET=10.4 APXSLDFLAGS=-arch ppc -arch ppc64 - bind_at_load CFLAGS=-arch ppc -arch ppc64 -g -Os -pipe -no-cpp- precomp CCFLAGS=-arch ppc -arch ppc64 -g -Os -pipe CXXFLAGS=- arch ppc -arch ppc64 -g -Os -pipe LDFLAGS=-arch ppc -arch ppc64 -bind_at_load ./configure --with-apxs=/usr/sbin/apxs MACOSX_DEPLOYMENT_TARGET=10.4 APXSLDFLAGS=-arch ppc -arch ppc64 - arch i386 -arch x86_64 -bind_at_load CFLAGS=-arch ppc -arch ppc64 -arch i386 -arch x86_64 -g -Os -pipe -no-cpp-precomp CCFLAGS=-arch ppc -arch ppc64 -arch i386 -arch x86_64 -g -Os - pipe CXXFLAGS=-arch ppc -arch ppc64 -arch i386 -arch x86_64 -g - Os -pipe LDFLAGS=-arch ppc -arch ppc64 -arch i386 -arch x86_64 - bind_at_load ./configure --with-apxs=/usr/sbin/apxs If you actually have the headers required for all 4 architectures and can make the module for 4 then I would suggest while you're still at 10.5.0 you make the module and then give it to someone at tomcat to provide as a binary. If you have a small 20-80gb drive, install it in the machine, format as case sensitive journaled and name it DO_NOT_FINDER_BROWSE and I'll send you instruction off-list on how to populate it so that it can be used as a home-brewed ADE that you can use to build stuff on that will be environmentally compliant, work for everyone and always work if you want to go this route. On Oct 30, 2007, at 12:28 PM, BuildSmart wrote: On Oct 30, 2007, at 10:37:13, Richard Doust wrote: Alex, QuadG5:native jboss$ ./configure CFLAGS='arch ppc64' APXSLDFLAGS='arch ppc64' --with-apxs=/usr/sbin/apxs . . . checking for gcc... gcc checking for C compiler default output file name... configure: error: C compiler cannot create executables See `config.log' for more details. I also tried ppc_64. I'm looking for the right value now. I looked in the configure.log file and did a man on gcc and came to the understanding that: Ah, okay, -arch ppc64 is a valid parameter to the compiler, so I did: ./configure cflags='-arch ppc64' APXSLDFLAGS='-arch ppc64' -- with-apxs=/usr/sbin/apxs and that made some makefiles which I then used to compile mod_jk.so. Now I'm dealing with some apache configuration parameters in my old config that are apparently no longer valid (AddModule). I'll take it from here. Thanks an awful lot for the help! This also explains why the old mod_jk.so generated the same error. It's looking at 32-bit vs. 64-bit before it gets to the api. Not likely, that isn't how it works, apache isn't compiled for ppc64 only and it's not recommended to generate a ppc64 only module unless you strip all of the 32bit architecture from all of the binaries and force it to run in 64bit only which wont happen if you examine some of the libraries in /usr/lib. Richard On Oct 30, 2007, at 9:44 AM, Alex
Re: mod_jk for OS X PPC
Hi, this is not true. I have build a mod_jk ppc65 only binary and runit successfull at my G5 with standard Leopard apache2.2.6 installation. Peter Am 30.10.2007 um 17:28 schrieb BuildSmart: On Oct 30, 2007, at 10:37:13, Richard Doust wrote: Alex, QuadG5:native jboss$ ./configure CFLAGS='arch ppc64' APXSLDFLAGS='arch ppc64' --with-apxs=/usr/sbin/apxs . . . checking for gcc... gcc checking for C compiler default output file name... configure: error: C compiler cannot create executables See `config.log' for more details. I also tried ppc_64. I'm looking for the right value now. I looked in the configure.log file and did a man on gcc and came to the understanding that: Ah, okay, -arch ppc64 is a valid parameter to the compiler, so I did: ./configure cflags='-arch ppc64' APXSLDFLAGS='-arch ppc64' --with- apxs=/usr/sbin/apxs and that made some makefiles which I then used to compile mod_jk.so. Now I'm dealing with some apache configuration parameters in my old config that are apparently no longer valid (AddModule). I'll take it from here. Thanks an awful lot for the help! This also explains why the old mod_jk.so generated the same error. It's looking at 32-bit vs. 64-bit before it gets to the api. Not likely, that isn't how it works, apache isn't compiled for ppc64 only and it's not recommended to generate a ppc64 only module unless you strip all of the 32bit architecture from all of the binaries and force it to run in 64bit only which wont happen if you examine some of the libraries in /usr/lib. Richard On Oct 30, 2007, at 9:44 AM, Alex Fuller wrote: Alex Fuller wrote: it should come back with (for a G5): /usr/libexec/apache2/mod_alias.so (for architecture ppc64): Mach- O 64-bit bundle ppc64 Whereas I suspect on the one you're currently building you'd get: /usr/libexec/apache2/mod_alias.so (for architecture ppc7400): Mach-O bundle ppc Ha ha - obviously you would see a different path to the mod_jk.so file, I was using the Apple-built mod_alias.so as an example to check the reported architecture key :-/ Alex -- -- Dale - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [tomcat]How to decrypt the DIGEST authentication?
zhongliang zhang wrote: Thanks a lot.I think I got another way to solve the group hierarchical problem,but I am not sure about it. maybe you can help me to confirm it:I wrote the SQL as followed:create or replace view groupview asselect usertable.username, decode(usertable.locked,0,'Authorizers','UnAuthorizers') as groupnamefrom usertablewhere in the usertable there is a field named locked that indicates whether the user is locked. so now I can allow everyone in the database to login to the system if the user is Authorizers,and I judge the user's role.The reason I do so is because there are existed API for doing all these and there are more than thousand users in the database,though the userid and groupid never be the same.Now I got another problem,the password stored in the database is encrypted,which is a common way,but the encrypting method is not using some sql script but SHA.So,How can I parse the clear-text that I input to SHA password and then compare with that sto red in the database? Is there a way that I can capture the clear-text password and using SHA to encode it then compare it with the password stored in the database? http://tomcat.apache.org/tomcat-6.0-doc/realm-howto.html#Digested%20Passwords Mark - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [tomcat]How to decrypt the DIGEST authentication?
Thank you very much for all your reply. I think because of the time-zone between us,while I am in China,we do not have the same online time. so I replied late. I will try that way to specify the digest element. thanks a lot. I do not know whether that feature works well with Tomcat 5.5,if so,I can use it,or I have to make sure that my system can migrate to Tomcat 6.0. thanks again for your kindness. http://tomcat.apache.org/tomcat-6.0-doc/realm-howto.html#Digested%20Passwords Mark - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Discover the new Windows Vista http://search.msn.com/results.aspx?q=windows+vistamkt=en-USform=QBRE
Re: Apache + Tomcat Integration
Hi, I have made the integration work. I did changes to the indexpage of apache (i.e. I included frameset and called my tomcat page) I have removed virtual host from http file and made it simple by inlusind only location.. Location /AjaxSample JkUriSet worker ajp13:127.0.0.1:8009 /Location Its redirecting to my tomcat. TIll now its okei, but for displaying static pages I have included the files in httpd doc, and its working fine but I want to make it in another location so that I can put my files in a different location. How can I do? ~Kranthi Christopher Schultz-2 wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Kranthi, Sierra wrote: I got a document and integrated but the output I am getting is [B]It works[/B]. Sounds like it works ;) I want to get my home page with my IP. but If I give Ip followed by 7080(full URL) I am able to see the home page. Is your home page served by httpd or by Tomcat? On what port number? Usually, Apache httpd binds to port 80, and Tomcat is somewhere else. Do you have Tomcat configured to listen to port 7080, or is Apache httpd listening on that port? I used jakarta-tomcat-connectors-jk2-2.0.4-src.tar.tar You should use mod_jk instead of mod_jk2. In spite of the version numbers, mod_jk is far more up-to-date than mod_jk2. mod_jk2 is no longer supported by anyone. Host name=192.168.139.202:7080 Context path=/AjaxSample docBase= /home/oracle/apache-tomcat-5.5.20/webapps/AjaxSample debug=0 reloadable=true crossContext=true/ /Host You'll want to post your Connector element from server.xml as well (the ones that are enabled). - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHJ1Mm9CaO5/Lv0PARAqVrAJ9KH+yngsKlyAX3pOxwx33c2DiVBQCZAXFI Elth8SFyUFC+x3OHutoSnKs= =q0Ms -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Apache-%2B-Tomcat-Integration-tf4719336.html#a13528858 Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Usage of ContainerServlet
Hi, I am kinda lost here. My goal is to retrieve all session from the Context and purge idle sessions. devel machine: TC 5.5.25, XP SP2, JRE 6.0.3 server machine: TC 5.5.23, HP-UX 11, JRE 5.0.7 I've taken a look in to the source manager app and noticed, it has to implement the ContainerServlet to get the Wrapper which supplies me with all necessary objects. Well, I did the same. Wrapper remains null. I did a google and mailing list search and I've read that my Context has to be true either in my context.xml or in the server.xml Still no avail. To my understanding the server folder in tomcat has more rights due to the privileged flag. Hence I have no idea how to manage that. I use lambda probe to monitor my tomcat and it is a simple war which does the same as the manager although it isn't in the server folder but hat the privileged flag set. Can someone give me pointer how to cope with that, what I have missed here? This is my basic code: public class SessionServlet extends HttpServlet implements ContainerServlet { private Wrapper wrapper; public Wrapper getWrapper() { return wrapper; } public void setWrapper(Wrapper wrapper) { this.wrapper = wrapper; System.out.println(Wrapper set); } @Override protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { resp.setCharacterEncoding(UTF-8); PrintWriter pw = resp.getWriter(); pw.print(Liste:\n); //pw.print(wrapper.getInfo()); pw.print(wrapper); pw.close(); } wrapper returns null It seems like I have to manage the sessions in a HashMap with a SessionListener. thx, Mike -- NO OOXML - Say NO To Microsoft Office broken standard http://www.noooxml.org - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Usage of ContainerServlet
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Michael, Michael wrote: I am kinda lost here. My goal is to retrieve all session from the Context and purge idle sessions. May I ask why Tomcat's built-in session-purging capability is not sufficient? - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHKeTd9CaO5/Lv0PARAvVxAJ9QbfiXYg9y0ArPIHmiVwcYbampWACfW86v fZH/rxGu6qwoaYETUN65Wd0= =qMN0 -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat connections not closing.
Mike- I would strongly suggest use of Version Control for archiving your configuration files server.xml/web.xml and context.xml, catalina.policy, logging.properties, workers.properties, tomcat-users.xml In the case of axis you want to archive axis2.xml/services.xml/modules.xml/services In the case of struts you want to archive struts-default.xml struts-portlet-default.xml In this way you determine at least the version of the configurations (and hopefully date-time as well as Login) HTH/ Martin-- - Original Message - From: Roark, Mike [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org; [EMAIL PROTECTED] Sent: Wednesday, October 31, 2007 11:04 AM Subject: RE: Tomcat connections not closing. Well, yes and no. Yes, the problem has abated, and possibly been eliminated. However, we have no idea what change fixed it. We changed nothing in tomcat, but some changes were made at the network and in the application itself (regularly scheduled updates). None of the changes were intended to fix the problem, but it went away anyway. I don't like it, since I assume the problem could come back at any time. I still think Tomcat should be able to protect itself from this kind of behavior, but I haven't had good luck yet with the suggested parameter tweaks. At this point I'm not continuing to look into it, but just keeping watch over it... -Mike -Original Message- From: Ralph Goers [mailto:[EMAIL PROTECTED] Sent: Saturday, October 27, 2007 10:48 AM To: Tomcat Users List Subject: Re: Tomcat connections not closing. Mike, Have you been able to make any progress with this? I'm very interested in the outcome as we experience the same problem. Ralph Roark, Mike wrote: Filip, Thanks for the help. You were right about the default for disableUploadTimeout. I must have been looking at 5.0 docs before, it looks like the default changed between 5.0 and 5.5. So I have now specified all three settings as you have them, and have had no effect. It seems like the socket remains open for as long as I feel like waiting. I have a perl script that will make a request and then not read the response (just sleeps), and another that will open a socket but not even write a GET line. Same result in both cases. I said that I could see the reads timeout, but now I'm not even seeing that. I would expect if I don't send a GET that the connectionTimeout would definitely apply. -Mike - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: CLASSPATH, .jar files, packages, and so forth
Yes, I am using applets. Why fight the way its meant to be packaged So, is there a link somewhere that tells the ways it's meant to be packaged? I took out all of the CLASSPATH setting that I done, I moved the .jar file to the webapps/app directory, and it still doesn't work. How do I tell Tomcat when using applets to use a .jar file? Ivan Mann - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Keystore problems connecting external service
Hi, In my servlet code I'm using axis to call out to a web service that requires SSL. I created a jssecacerts file. On my dev box I copied the file into the $JAVA_HOME/lib/security/cacerts file, all is well. On my real system I cannot do that since it is a shared Java install. So instead I added: -Djavax.net.ssl.keyStore=/home/me/jssecacerts -Djavax.net.ssl.trustStore=/home/me/jssecacerts to the Catalina options. I can see via ps that the params are being passed properly. However I still get the same error as if the files werent there. Any thoughts on what I'm doing wrong? Thanks, Frank -- View this message in context: http://www.nabble.com/Keystore-problems-connecting-external-service-tf4731827.html#a13530209 Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
When will a servlet be un loaded
Hi, If I specify a servlet to load-on-start, when will the container unload this servlet? Does the container un-load the servlet when the Servlet has no incoming requests? If I need the servlet to be unloaded only when the container stops, how do I do this? Thanks Uma
Re: CLASSPATH, .jar files, packages, and so forth
The servlet spec describes how webapps are supposed to be layed out. The general layout template in tomcat is |tomcat_home | webapps |webapp1 | WEB-INF (note this must be all caps and case IS important) |classes (where to put non-jarred class files) |lib (where to put webapp specific jar libraries) |webapp2 | (see webapp1 for layout) |webapp3 | (see webapp1 for layout) | --David Mann, Ivan H wrote: Yes, I am using applets. Why fight the way its meant to be packaged So, is there a link somewhere that tells the ways it's meant to be packaged? I took out all of the CLASSPATH setting that I done, I moved the .jar file to the webapps/app directory, and it still doesn't work. How do I tell Tomcat when using applets to use a .jar file? Ivan Mann - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Usage of ContainerServlet
Michael wrote: I am kinda lost here. My goal is to retrieve all session from the Context and purge idle sessions. May I ask why Tomcat's built-in session-purging capability is not sufficient? Which one do you refer to exactly? Are you talking about session timeout? A timeout is set but I want to purge all session for the same IP which are older than the most current session. bye -- Ist Ihr Browser Vista-kompatibel? Jetzt die neuesten Browser-Versionen downloaden: http://www.gmx.net/de/go/browser - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: CLASSPATH, .jar files, packages, and so forth
From: Mann, Ivan H [mailto:[EMAIL PROTECTED] Subject: RE: CLASSPATH, .jar files, packages, and so forth So, is there a link somewhere that tells the ways it's meant to be packaged? As we told you before - read the servlet spec: http://jcp.org/aboutJava/communityprocess/mrel/jsr154/index.html - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: When will a servlet be un loaded
From: Uma Kalluru [mailto:[EMAIL PROTECTED] Subject: When will a servlet be un loaded If I specify a servlet to load-on-start, when will the container unload this servlet? Never, unless the application is stopped or undeployed by a manager operation. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: CLASSPATH, .jar files, packages, and so forth
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ivan, Mann, Ivan H wrote: Yes, I am using applets. Why fight the way its meant to be packaged So, is there a link somewhere that tells the ways it's meant to be packaged? Applets ought to be packaged into a normal JAR file. Johnny is saying that these classes do not need to be loaded by the server (because applets run on the client, not the server), so they should neither be put into the server's CLASSPATH (which is a no-no in general) nor into the webapp's WEB-INF/lib directory. I took out all of the CLASSPATH setting that I done, I moved the .jar file to the webapps/app directory, and it still doesn't work. How do I tell Tomcat when using applets to use a .jar file? Tomcat doesn't care: the web browser does. Please post an example of the applet or object or embed tag that you are using to load the applet from the web browser. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHKe/E9CaO5/Lv0PARAl8zAKCaxCgOQJYQvbBNvF9RUR9ZaDyUeQCePwhL PLoDe4WkyVpMUxXvhBD5PE8= =NA2Q -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: When will a servlet be un loaded
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Uma, Uma Kalluru wrote: If I specify a servlet to load-on-start, when will the container unload this servlet? Does the container un-load the servlet when the Servlet has no incoming requests? I don't believe there's any standard behavior specified by the servlet spec for when a servlet will be taken out of service. My guess is that a servlet would never be taken out of service by a servlet container, mostly because the overhead of managing that process would be worse than simply letting it live in memory for the life of the server. But you should not rely on this fact, because it's not in the specification anywhere. If I need the servlet to be unloaded only when the container stops, how do I do this? Does the servlet contain some special data or something? You're not supposed to do that. If you need long-living objects available for your application, you should be using a ServletContextListener to load them on context start and then un-load them on context stop. The logical place to store these objects in the meantime is in the ServletContext (application scope) or in JNDI somewhere. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHKfB89CaO5/Lv0PARArSbAJ44eOuTJbkegTWKxTTXCDpLyDzDNACfQvO7 qMPCNGe5eJLc8ZJ0opRaIKE= =Vjm4 -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Usage of ContainerServlet
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mike, [EMAIL PROTECTED] wrote: Michael wrote: My goal is to retrieve all session from the Context and purge idle sessions. May I ask why Tomcat's built-in session-purging capability is not sufficient? Which one do you refer to exactly? Are you talking about session timeout? Yes, that's what I'm talking about. A timeout is set but I want to purge all session for the same IP which are older than the most current session. Are you observing a lot of sessions being created by a single remote client? How many? 2 or 3, or 100 or so? What is your session timeout? How much stuff do you have laying around in the session? I'm just curious what's happening to you. Are you sure you need something like this? - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHKfHj9CaO5/Lv0PARAqUHAKC+Flrnf41YsW1FS5EXCAneb1SQfwCgp0Hv cilSo3gZMZ+a6gFSjO2mloE= =pWap -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: CLASSPATH, .jar files, packages, and so forth
Classes downloaded to the client browser for execution is just static content as far as Tomcat is concerned. Modifying the server's or webapp's classpath isn't going to make any difference. It's the client browser's classpath that needs adjusting to use the jar. This means modifying the HTML that runs the applet. Unfortunately, or perhaps fortunately, it has been many years since I have messed with such HTML, so I can't say what those modifications would look like. Likely something in the HTML has to point at the jar where it lives in the content portion of the webapp. HTH. Cheers, Larry -Original Message- From: Mann, Ivan H [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 31, 2007 4:26 PM To: users@tomcat.apache.org Subject: CLASSPATH, .jar files, packages, and so forth I have an application that consists of 150 classes, organized in several different packages. In the past I have installed the application in .../webapps/appl/directories where the directory tree corresponds to the package layout, and this has worked fine. I am trying to change this to using .jar files for a couple of reasons. I took one package and created a jar file like this: cd webapps/appl/ jar cvf schedule.jar applet/schedule/*.class mv schedule.jar WEB-INF/lib rm applet/schedule/*.class I modified setupclasspath.sh to read WEB-INF/lib and add all .jar files to the CLASSPATH before starting tomcat. Now when I try to access one of the classes that I put into schedule.jar it throws a NoClassDefFoundError. If I run a test program with CLASSPATH pointing to the webapps/appl directory and WEB-INF/lib/schedule.jar it works fine. In tomcat it doesn't find the class. I would suspect that there an issue with the way I build the jar file, but I can't figure out why it works outside of tomcat but not inside. What I would really like is a cookbook document telling me how to distribute an application in jar files to the web. I have Googled many combinations of words and can't find one. If anybody has one of those I would really appreciate it. I thing I am missing a step here, possibly making the manifest, but I just don't know what that missing step is. Thanks for the help. Ivan Mann - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: CLASSPATH, .jar files, packages, and so forth
Not being able to find the class may mean that it can't find the jar file and it may mean that it can find the jar file but the package and or directory is not done right. The read/write permission on the jar file is 777, so I know that it can read the jar file if it can find it. The applet specified here appears in the web browser just fine. The applet tries to access the BuildSchedule class in response to a menu item and the exception is not thrown until then. The applet tag is applet codebase=. code=applet/DDSMenu.class ARCHIVE=schedule.jar width=600 height=300/applet The jar file is located in .../webapps/schedule.jar, which is where the applet directory in the cod parameter is. The jar file is built from the same directory using this command: jar cvf schedule.jar applet/schedule/*.class The message is Exception in thread AWT-EventQueue-7 java.lang.NoClassDefFoundError: applet/schedule/BuildSchedule stack trace Ivan Mann - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Usage of ContainerServlet
Hi Christopher, Mike, A timeout is set but I want to purge all session for the same IP which are older than the most current session. Are you observing a lot of sessions being created by a single remote client? How many? 2 or 3, or 100 or so? What is your session timeout? How much stuff do you have laying around in the session? I'm just curious what's happening to you. Are you sure you need something like this? During a day we have several hundred users which could produce 15-20 session per user. Session timeout is set to 11 hours which is part of work contract limitations. This can't be changed. Every session can have a few hundred kilobytes but that number isn't certain because we didn't make a complete test yet. The issue basically is that we have to track what users do to track down errors during some processes and avoid maintance clutter by zombie sessions. I hope this made it clearer. Mike -- Pt! Schon vom neuen GMX MultiMessenger gehört? Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: CLASSPATH, .jar files, packages, and so forth
As we discovered earlier this morning, it is an applet question, not a servlet question. I looked in this spec and did not find any mention of applets, which is not surprising since it is the servlet spec. Is there an applet spec? Ivan Mann -Original Message- From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] Sent: Thursday, November 01, 2007 10:21 AM To: Tomcat Users List Subject: RE: CLASSPATH, .jar files, packages, and so forth From: Mann, Ivan H [mailto:[EMAIL PROTECTED] Subject: RE: CLASSPATH, .jar files, packages, and so forth So, is there a link somewhere that tells the ways it's meant to be packaged? As we told you before - read the servlet spec: http://jcp.org/aboutJava/communityprocess/mrel/jsr154/index.html - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: CLASSPATH, .jar files, packages, and so forth
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ivan, Mann, Ivan H wrote: Not being able to find the class may mean that it can't find the jar file and it may mean that it can find the jar file but the package and or directory is not done right. Probably. The applet specified here appears in the web browser just fine. applet codebase=. code=applet/DDSMenu.class archive=schedule.jar width=600 height=300 /applet Okay: that means that the JAR file itself is being loaded properly (unless you happen to have class files laying around in the webapp's deployment directory, outside of WEB-INF: make sure you aren't doing that; I'm pretty sure that archive= indicates that all code should come from the specified JAR and classes will not be requested from the server directly). The applet tries to access the BuildSchedule class in response to a menu item and the exception is not thrown until then. java.lang.NoClassDefFoundError: applet/schedule/BuildSchedule What do you get when you run: $ unzip -v webapps/schedule.jar The jar file is located in .../webapps/schedule.jar, which is where the applet directory in the cod parameter is. Unless you have written this incorrectly, scheduler.jar shouldn't be in webapps/scheduler.jar... it should be in webapps/[yourappname]/scheduler.jar. And your applet tag should look like this: applet archive=%= request.getContextPath() %/scheduler.jar ...since your JAR file is in the web root. If you relocate the page, you want your URLs to work properly. Fully-qualified URLs always work better. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHKgkv9CaO5/Lv0PARAhz8AKCDi6WbYGHmWSMOwexrqivaOybKtgCgjtul LjWnGhknf160oyRsjh8G4X4= =LMdJ -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: CLASSPATH, .jar files, packages, and so forth
Mann, Ivan H wrote: As we discovered earlier this morning, it is an applet question, not a servlet question. I looked in this spec and did not find any mention of applets, which is not surprising since it is the servlet spec. Is there an applet spec? Follow this link: http://www.google.com/search?hl=enq=java+applet+specificationbtnG=Search -- Regards Gabe Wong NGASI AppServer Manager Application server installation and configuration AUTOMATION http://www.ngasi.com - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: CLASSPATH, .jar files, packages, and so forth
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ivan, Mann, Ivan H wrote: Not being able to find the class may mean that it can't find the jar file and it may mean that it can find the jar file but the package and or directory is not done right. Probably. The applet specified here appears in the web browser just fine. applet codebase=. code=applet/DDSMenu.class archive=schedule.jar width=600 height=300 /applet Okay: that means that the JAR file itself is being loaded properly (unless you happen to have class files laying around in the webapp's deployment directory, outside of WEB-INF: make sure you aren't doing that; I'm pretty sure that archive= indicates that all code should come from the specified JAR and classes will not be requested from the server directly). The applet tries to access the BuildSchedule class in response to a menu item and the exception is not thrown until then. java.lang.NoClassDefFoundError: applet/schedule/BuildSchedule What do you get when you run: $ unzip -v webapps/schedule.jar The jar file is located in .../webapps/schedule.jar, which is where the applet directory in the cod parameter is. Unless you have written this incorrectly, scheduler.jar shouldn't be in webapps/scheduler.jar... it should be in webapps/[yourappname]/scheduler.jar. And your applet tag should look like this: applet archive=%= request.getContextPath() %/scheduler.jar ...since your JAR file is in the web root. If you relocate the page, you want your URLs to work properly. Fully-qualified URLs always work better. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHKgkv9CaO5/Lv0PARAhz8AKCDi6WbYGHmWSMOwexrqivaOybKtgCgjtul LjWnGhknf160oyRsjh8G4X4= =LMdJ -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Usage of ContainerServlet
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mike, Wizard of OS wrote: During a day we have several hundred users which could produce 15-20 session per user. Ouch. Session timeout is set to 11 hours which is part of work contract limitations. OUCH! This can't be changed. Every session can have a few hundred kilobytes but that number isn't certain because we didn't make a complete test yet. The issue basically is that we have to track what users do to track down errors during some processes and avoid maintance clutter by zombie sessions. Hmm. I hope this made it clearer. Yes, it makes it much clearer. So, you have several options. My personal recommendation (and the only option I'll cover) is a do-it-yourself approach. Working with Tomcat internals is tedious and you are likely to lock yourself into a particular version of Tomcat because the APIs are not necessarily fixed. If you do it yourself (in my way), you can create a solution that will work across all versions of all servlet containers and application servers. Here's the trick: write yourself an HttpSessionListener. HttpSessionListener (in case you didn't know) receives session create and destroy events. All you have to do is implement the HttpSessionListener interface in a class and then register it as a listener in your web.xml file and it will receive the events. When a session is created, store the session in a master list that you maintain (I would recommend a synchronized Map or List). When one is destroyed, remove it. Each session will need to know its own IP address, so you'll need to be recording that information at some point. You could do this with a Filter, or, if you already have that capability built-into your application you don't have to worry about it. Finally, then it's time to run your cleanup, you just traverse all of the recorded sessions looking at old ones (session.getLastAccessedTime) for a particular IP address (session.getAttribute(ip.address.that.we.put.in.there.before)). Feel free to call invalidate on any of them. You can even combine the HttpSessionListener into the object that does the session harvesting. If I were doing this, I'd write a class like this: public class MySessionManager implements HttpSessionListener { public void removeOldSessions(String sessionId); // HttpSessionListener event handlers: public void sessionCreated(HttpSessionEvent ev); public void sessionDestroyed(HttpSessionEvent ev); } You won't be able to access the removeOldSessions method on the correct object unless you can get to it from somewhere else. I would recommend coding the sessionCreated() method to check the ServletContext (application scope) for a copy of itself (say, under the MySessionManager key), and install itself if it's not there. Then, anywhere in your application that has access to the ServletContext has access to the running MySessionManager object and can call the removeOldSessions method. Note that if there is no MySessionManager object in the ServletContext, there will be no need to remove sessions (because none have been created). Therefore, it's safe to do this lazy-style insertion of MySessionManager into the application scope. Hope that helps, - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHKg0u9CaO5/Lv0PARAipMAJ0UddEZRyUt7UYRDQbAOghk+AQccACguJ8d vXCyUEY8/BJaTWeIbwKYiCE= =imyb -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Usage of ContainerServlet
Christopher Schultz wrote: [...] So, you have several options. My personal recommendation (and the only option I'll cover) is a do-it-yourself approach. Working with Tomcat internals is tedious and you are likely to lock yourself into a particular version of Tomcat because the APIs are not necessarily fixed. [Solution...] Hi Christopher, thank you for your very elaborated explanation. Your manual approach matches to 90 %+ to my approach besides the direct manipulation. I didn't like the direct manipulation anyway. My boss and a coworker pushed me to investigate how this can me done in the manager-app manner. my basic idea was some hashmap woth appcreated/sessioncreated listener anyway: 1. create a hashmap and put into app context 2. session created, check in map and do filtering basically the same you proposed. Thanks again, Mike -- NO OOXML - Say NO To Microsoft Office broken standard http://www.noooxml.org - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Usage of ContainerServlet
Addition: Still I'd like to know which mistake I have done?! Mike -- NO OOXML - Say NO To Microsoft Office broken standard http://www.noooxml.org - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat 6 log files missing
I have recently set up tomcat 6 on my windows box. Usually when I set up a new tomcat instance, log files (catalina.*, manager,*. admin.*, ) are automatically created in TOMCAT_HOME/logs. In this case they are not. I have read the documentation here, http://tomcat.apache.org/tomcat-6.0-doc/logging.html but this seems to be more aimed at users that want to change the logging implementation, I just want the damn things to show up. I tried a couple things from that page anyway and so far nothing has worked. I also noticed there is a logging.properties in the conf folder which I played with a bit. It looked like it was set up correctly in the first place, but I thought maybe catalina.home was not set, so tried absolute path to directory. This didn't work either. Are log files supposed to be created automatically or is there some step to get them to go ? I don't care which implementation, but right now I have a jsp error and no info on what is causing it. There is some logging going to STDOUT on startup, but nothing for my jsp error. TIA Daryl -- View this message in context: http://www.nabble.com/Tomcat-6-log-files-missing-tf4733206.html#a13534433 Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 6 log files missing
Daryl Handley wrote: I have recently set up tomcat 6 on my windows box snip Nevermind, it was because I was running the sysdeo plugin from eclipse. When I started it from the command line, logging goes to where expect (except for my jsp error). -- View this message in context: http://www.nabble.com/Tomcat-6-log-files-missing-tf4733206.html#a13534937 Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Usage of ContainerServlet
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mike, Michael wrote: Addition: Still I'd like to know which mistake I have done?! Sorry, I can't help you with that. I stay away from Tomcat internals pretty much at all costs. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHKiDz9CaO5/Lv0PARApNnAJ9HsG2vCjwqBp8+L2aiPaNXIjYLYwCfR8i0 dv63G0GMY4O5fcxAS9uIMwA= =hOvh -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
web application being removed out of Tomcat
Hi, I have Tomact 5.5 and Apache2.2 installed on Debian Linux. Everything seems to be working fine after installation and configuration done - I use JK connector to connect Apache and Tomcat, there are 2 applications running in Tomcat - manager and my own web app. I can use Tomcat Manager to see that 2 listed applications. However I now encountered this wired situation which spent me almost a week trying to resolve it - For some reason my own web app has been removed from Tomcat automatically after running a certain time period (30 minutes or so), I can not find anywhere in server configuration that specifies this behavior. It goes back to normal if I restart Tomcat. But again it's kicked out of Tomcat after another 20 - 30 minutes. I have never seen this before and I'm not sure if this is due to tomcat configuration or something wrong with my app. Can anyone shed light on this? Many thanks in advance, /Victor
HTTPS from remote client
I have a self-signed certificate (generated with keytool -genkey -alias tomcat -keyalg RSA) and modified my server.xml file to uncomment the connector on port 8443. After restarting tomcat, I can access https://localhost:8443 no problem, but when I try to reach it from a remote computer, it times out. Please let me know what I am missing. -- View this message in context: http://www.nabble.com/HTTPS-from-remote-client-tf4733719.html#a13536168 Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: web application being removed out of Tomcat
From: Victor Huang [mailto:[EMAIL PROTECTED] Subject: web application being removed out of Tomcat For some reason my own web app has been removed from Tomcat automatically after running a certain time period (30 minutes or so), Have you examined the Tomcat logs for any anomalies? - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: CLASSPATH, .jar files, packages, and so forth
Oops. I mistyped one item. Everything is in webapps/appl. By now it doesn't matter, because it is working. Thanks to whomever it was that provided the example. Ivan Mann -Original Message- From: Christopher Schultz [mailto:[EMAIL PROTECTED] Sent: Thursday, November 01, 2007 12:18 PM To: Tomcat Users List Subject: Re: CLASSPATH, .jar files, packages, and so forth -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ivan, Mann, Ivan H wrote: Not being able to find the class may mean that it can't find the jar file and it may mean that it can find the jar file but the package and or directory is not done right. Probably. The applet specified here appears in the web browser just fine. applet codebase=. code=applet/DDSMenu.class archive=schedule.jar width=600 height=300 /applet Okay: that means that the JAR file itself is being loaded properly (unless you happen to have class files laying around in the webapp's deployment directory, outside of WEB-INF: make sure you aren't doing that; I'm pretty sure that archive= indicates that all code should come from the specified JAR and classes will not be requested from the server directly). The applet tries to access the BuildSchedule class in response to a menu item and the exception is not thrown until then. java.lang.NoClassDefFoundError: applet/schedule/BuildSchedule What do you get when you run: $ unzip -v webapps/schedule.jar The jar file is located in .../webapps/schedule.jar, which is where the applet directory in the cod parameter is. Unless you have written this incorrectly, scheduler.jar shouldn't be in webapps/scheduler.jar... it should be in webapps/[yourappname]/scheduler.jar. And your applet tag should look like this: applet archive=%= request.getContextPath() %/scheduler.jar ...since your JAR file is in the web root. If you relocate the page, you want your URLs to work properly. Fully-qualified URLs always work better. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHKgkv9CaO5/Lv0PARAhz8AKCDi6WbYGHmWSMOwexrqivaOybKtgCgjtul LjWnGhknf160oyRsjh8G4X4= =LMdJ -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: HTTPS from remote client
From: banderson [mailto:[EMAIL PROTECTED] Subject: HTTPS from remote client when I try to reach it from a remote computer, it times out. Please let me know what I am missing. A firewall between the remote computer and Tomcat? Unless you've allowed port 8443 to go through, a timeout would be the expected symptom. If you happen to be running on a reasonably recent version of Windows, unusual ports are blocked by default. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
What do I do with a heap dump? (OOM Permgen)
Hello everyone. My team and I are trying to develop a new web application and the tomcat JVM is crashing every few days. We are deploying our separate versions of the application several times per hour, and by looking at jprobe, I see that each deployment of a webapp consumes 440kb of PermGen space. This space does not seem to be released, although I've only been monitoring this for 4 hours now. I have a heap dump from the last crash, (courtesy of +XXHeapDumpOnOutOfMemoryError) and have taken two memory dumps using jmap before and after a redeploy on an otherwise quiescent JVM. Now, having done this, I've also looked at the dumps using jhat. There seems to be a vast amount of data there, but I can't distill the information I need out of it. I apologize if my Google-Fu is weak, but I didn't find much real information on interpreting jhat data. Preliminary examination of the jhat data does not show much of my application or helper classes (mysql, jdbc). So, my questions are: How do I figure out what is in that 440kb per deployment? Is there an FM for me to R on how to interpret jhat data? What should I be looking for? How do I break this problem down further? The environment is: OS: Debian etch 2.6.21 kernel JVM: Sun Java 6 1.6.0-b105 Configured for use with jprobe and default memory allocations. (This was done to try to make the problem easier to reproduce/study.) Tomcat: 6.0.14 fronted via Apache 2.2.4 using mod_proxy_ajp. Database: MySQL 5.0.32 using the latest ConnectorJ. The application is a combination of JSP and servlets with some AJAX but no Comet, Hibernate, c. Apache and Tomcat were hand installed (not from Debian packages). Any help that you can provide would be greatly appreciated. -Greg -- Gregory H. Vilardi631-752-2701x240 [EMAIL PROTECTED] Project Manager / Lead Software Engineer Fax: (631)752-3397 Recurrent Software Solutions, Inc. http://www.recurrentsoft.com 1 Huntington Quadrangle, Suite 1C02, Melville, NY 11747 - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: What do I do with a heap dump? (OOM Permgen)
www.yourkit.com works, and I'm sure there are others Filip Greg Vilardi wrote: Hello everyone. My team and I are trying to develop a new web application and the tomcat JVM is crashing every few days. We are deploying our separate versions of the application several times per hour, and by looking at jprobe, I see that each deployment of a webapp consumes 440kb of PermGen space. This space does not seem to be released, although I've only been monitoring this for 4 hours now. I have a heap dump from the last crash, (courtesy of +XXHeapDumpOnOutOfMemoryError) and have taken two memory dumps using jmap before and after a redeploy on an otherwise quiescent JVM. Now, having done this, I've also looked at the dumps using jhat. There seems to be a vast amount of data there, but I can't distill the information I need out of it. I apologize if my Google-Fu is weak, but I didn't find much real information on interpreting jhat data. Preliminary examination of the jhat data does not show much of my application or helper classes (mysql, jdbc). So, my questions are: How do I figure out what is in that 440kb per deployment? Is there an FM for me to R on how to interpret jhat data? What should I be looking for? How do I break this problem down further? The environment is: OS: Debian etch 2.6.21 kernel JVM: Sun Java 6 1.6.0-b105 Configured for use with jprobe and default memory allocations. (This was done to try to make the problem easier to reproduce/study.) Tomcat: 6.0.14 fronted via Apache 2.2.4 using mod_proxy_ajp. Database: MySQL 5.0.32 using the latest ConnectorJ. The application is a combination of JSP and servlets with some AJAX but no Comet, Hibernate, c. Apache and Tomcat were hand installed (not from Debian packages). Any help that you can provide would be greatly appreciated. -Greg - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [tomcat]How to decrypt the DIGEST authentication?
Hi,Mark, I have to turn to you again. I encounter the problem with configuring the Digested-Password in the JDBCRealm. The JDBCRealm fragment of the $TOMCAT_HOME/conf/server.xml is shown as followed: Realm className=org.apache.catalina.realm.JDBCRealm driverName=com.mysql.jdbc.Driver connectionURL=jdbc:mysql://localhost/test connectionName=root connectionPassword=root userTable=users userNameCol=user_name userCredCol=user_pass userRoleTable=user_roles roleNameCol=role_name / and in the $TOMCAT_HOME/conf/web.xml,I did the following security-constraint: security-constraint web-resource-collection web-resource-nameall/web-resource-name url-pattern/*/url-pattern /web-resource-collection auth-constraint role-namecustomized/role-name /auth-constraint/security-constraintlogin-config auth-methodDIGEST/auth-method realm-nameJDBCRealm/realm-name/login-config it works with mysql database which is just for testing.Now in my database table users,I insert a record: user_name:zhangzhongl user_pass:zhangzhongl and in the database table,I insert a record: role_name:customized username:zhangzhongl So,it works before I added the digest attribute to the Realm element with value SHA or MD5. After I added the digest attribute,I copied the tomcat-juli.jar from $TOMCAT_HOME/bin to $TOMCAT_HOME/lib,then start up, after I entered the username zhangzhongl and clear-text password(Now,in the database,I stored the password with SHA encrypted form),it does now work,which means I can not enter the tomcat welcome page. I do not know what the reason is. Please do me a favor. thanks so much! http://tomcat.apache.org/tomcat-6.0-doc/realm-howto.html#Digested%20Passwords Mark - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Connect to the next generation of MSN Messenger http://imagine-msn.com/messenger/launch80/default.aspx?locale=en-ussource=wlmailtagline
Trying to use the juli Loggers within Tomcat
Hi, ~ all I need is going like this from within a servlet ~ Logger Lg = LoggerFactory.getLogger(); Lg.log(blah); ~ I am able to attach a logger to a webapp but I don't know how to use loggers to occassionally debug servlets and I couldn't find anything when I searched for it ~ How do you do that? ~ Thanks lbrtchx - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Can't Modify or Delete Files Running Tomcat on Vista
Jenna wrote: Hi, I'm pretty new to Tomcat and I just installed it on my Windows Vista machine using the Windows installer. I did the same thing on my XP machine previously and had no problems. I am able to start Tomcat and run my applications, however, I am not able to modify or delete any of the files in any of the Tomcat directories. I keep getting an error that says You need permission to perform this action. I am setup as the administrator on my computer. I tried disabling user account control in Vista but that did not help. I also copied the file msvcr71.dll from my jre bin folder to Tomcat's bin folder as I heard that was necessary on Vista but it did not help me. Any suggestions would be greatly appreciated. Thank you. Jenna Sorry that is a Vista problem (err I mean security feature :)) and not a Tomcat problem. Some solutions from the Web: http://paulstamatiou.com/2007/02/09/how-to-quickie-vista-permissions/ http://www.google.com/search?hl=enq=You+need+permission+to+perform+this+action+VistabtnG=Google+Search -- Regards Gabe Wong NGASI AppServer Manager Application server installation and configuration AUTOMATION http://www.ngasi.com - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: What do I do with a heap dump? (OOM Permgen)
Greg Vilardi wrote: Hello everyone. My team and I are trying to develop a new web application and the tomcat JVM is crashing every few days. We are deploying our separate versions of the application several times per hour, and by looking at Please elaborate, are you undeploying the same application, then redeploying several times per hour, are are you deploying several instances of the same application per hour. I am also assuming these are hot deploys (without shutting down the app server)? -- Regards Gabe Wong NGASI AppServer Manager Application server installation and configuration AUTOMATION http://www.ngasi.com - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Usage of ContainerServlet
Michael [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Addition: Still I'd like to know which mistake I have done?! I'm guessing that your context isn't privileged and/or you have copied ContainerServlet to someplace where it isn't in the same classloader as server/lib. However, if you really want to do this like the Manager webapp, then it is probably easier to implement this with JMX (of course, this is still Tomcat-specific). It is probably easier to just hook up JConsole and look at the MBeans with type=Manager to see how to do this. Mike -- NO OOXML - Say NO To Microsoft Office broken standard http://www.noooxml.org - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Can't Modify or Delete Files Running Tomcat on Vista
Hi, I'm pretty new to Tomcat and I just installed it on my Windows Vista machine using the Windows installer. I did the same thing on my XP machine previously and had no problems. I am able to start Tomcat and run my applications, however, I am not able to modify or delete any of the files in any of the Tomcat directories. I keep getting an error that says You need permission to perform this action. I am setup as the administrator on my computer. I tried disabling user account control in Vista but that did not help. I also copied the file msvcr71.dll from my jre bin folder to Tomcat's bin folder as I heard that was necessary on Vista but it did not help me. Any suggestions would be greatly appreciated. Thank you. Jenna
Has anyone managed to run TC from a CD?
I did a quick first try at it and the webapps and loggers can be simply and declaratively branced off in server.xml and the logging.properties files, but the work directory would invariably appear ~ The relatively minor thing I stumble on was changing the scratchdir setting for the work folder to be out of the CD directory branch, which, I think, would only need some sourcing and some recompiling ~ Any extra hints? ~ Thanks lbrtchx - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Trying to use the juli Loggers within Tomcat
where foo in: ~ java.util.logging.Logger juliLogger = java.util.logging.Logger.getLogger(foo); ~ is one the name of one of the loggers your defined in the logging.properties file in the webapp right? ~ Where could I find more detailed info on this? ~ I stopped using TC some time ago and now I notice how much things have changed ;-) ~ Thanks lbrtchx ~ On 11/1/00, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: org.apache.logging.julbridge.MockAppender mockAppender = new org.apache.logging.julbridge.MockAppender(); Logger.getRootLogger().addAppender(mockAppender); java.util.logging.Logger juliLogger = java.util.logging.Logger.getLogger(foo); juliLogger.info(boo); M-- - Original Message - Wrom: FPEGAUTFJMVRESKPNKMBIPBARHDMNNSKVFVWRK To: users@tomcat.apache.org Sent: Thursday, November 01, 2007 8:09 PM Subject: Trying to use the juli Loggers within Tomcat Hi, ~ all I need is going like this from within a servlet ~ Logger Lg = LoggerFactory.getLogger(); Lg.log(blah); ~ I am able to attach a logger to a webapp but I don't know how to use loggers to occassionally debug servlets and I couldn't find anything when I searched for it ~ How do you do that? ~ Thanks lbrtchx - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Can't Modify or Delete Files Running Tomcat on Vista
Thank you so much Gabe, that solved my problem. Jenna - Original Message - From: Gabe Wong [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Thursday, November 01, 2007 9:48 PM Subject: Re: Can't Modify or Delete Files Running Tomcat on Vista Jenna wrote: Hi, I'm pretty new to Tomcat and I just installed it on my Windows Vista machine using the Windows installer. I did the same thing on my XP machine previously and had no problems. I am able to start Tomcat and run my applications, however, I am not able to modify or delete any of the files in any of the Tomcat directories. I keep getting an error that says You need permission to perform this action. I am setup as the administrator on my computer. I tried disabling user account control in Vista but that did not help. I also copied the file msvcr71.dll from my jre bin folder to Tomcat's bin folder as I heard that was necessary on Vista but it did not help me. Any suggestions would be greatly appreciated. Thank you. Jenna Sorry that is a Vista problem (err I mean security feature :)) and not a Tomcat problem. Some solutions from the Web: http://paulstamatiou.com/2007/02/09/how-to-quickie-vista-permissions/ http://www.google.com/search?hl=enq=You+need+permission+to+perform+this+action+VistabtnG=Google+Search -- Regards Gabe Wong NGASI AppServer Manager Application server installation and configuration AUTOMATION http://www.ngasi.com - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]