Re: username password for admin manager
tomcat-users.xml hast to be defined in tomcat/conf/server.xml too, look at the default server.xml of Tomcat for how to do that, and here http://jakarta.apache.org/tomcat/tomcat-4.1-doc/manager-howto.html#Configuring%20Manager%20Application%20Access To set CATALINA_HOME for Tomcat on linux put this in your tomcat/bin/catalina.sh: export CATALINA_HOME=/path/to/tomcat To set it in your shell put that in $HOME/.bashrc (or whatever shell's startup file you're using) or even somewhere at /etc/profile to set it for all users. At 22:22 15.07.2003 -0700, you wrote: I'm sorry, i try this already, but still doesn't work. is there any other way? And how to configure (set catalina home) at linux? --- Reginald Oake [EMAIL PROTECTED] wrote: To set up a username and password for the manager account you need to go into $CATALINA_HOME/conf (or for Windows %CATALINA_HOME%\conf) and add the following line to your tomcat-users.xml file. user username= password= roles=manager/ Of course you should replace the with the username and password you want to use and this line goes between the tomcat-users start and end tags. Your tomcat-users.xml should look something like this when you are done. ?xml version='1.0' encoding='utf-8'? tomcat-users role rolename=tomcat/ role rolename=role1/ role rolename=manager/ user username=tomcat password=tomcat roles=tomcat/ user username= password= roles=manager/ user username=role1 password=tomcat roles=role1/ user username=both password=tomcat roles=tomcat,role1/ /tomcat-users After this, restart Tomcat and you should be able to access the management application. Hope this helps. Reg On Tue, 2003-07-15 at 20:23, Da Vinci wrote: i use tomcat 4.1.24. there is role admin or manager, and no user with role admin or manager in $CATALINA_HOME/conf/tomcat-users.xml. so how can i configure the tomcat administration and tomcat manager? how can i get the username and password admin manager? = __ Do you Yahoo!? The New Yahoo! Search - Faster. Easier. Bingo. http://search.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] = __ Do you Yahoo!? The New Yahoo! Search - Faster. Easier. Bingo. http://search.yahoo.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]
RE: [OFF-TOPIC] possible virus No Valid Command Found
hm, it is depend on your mail client ? Am 11 Jul 2003 um 1:37 hat Thomas, Kevin geschrieben: Yip. I can't even get them to filter. -Original Message- From: Tim Davidson [mailto:[EMAIL PROTECTED] Sent: 11 July 2003 09:22 To: [EMAIL PROTECTED] Subject: [OFF-TOPIC] possible virus No Valid Command Found Has anyone else recieved about 30 emails from [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] Kris Wolff Application Developer dietzk. Interactive OHG Am Kirchplatz 41-43 D-65779 Kelkheim Fon +49 (0) 6195 72 42- 15 Fax +49 (0) 6195 72 42- 29 [EMAIL PROTECTED] http://www.dietzk.de - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
tomcat-WEB-INF
I have an webapplication under /webapp/mywebapplication, I put all classes and lib files under WEB-INF directory classes and lib directory, it works fine, but if I put a new directory under mywebapplication folder it gives NoClasssDef error. what Shoul I do? _ Add photos to your e-mail with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: Tomcat 4.1.24 + Security Manager + weird Exceptions
Hi Tim, thanks for the advise. The interesting part is that tomcat (process) doesn't seem to survive the re-initialization of the ServerSocket. It this a known bug? Regards, Thomas -Ursprüngliche Nachricht- Von: Tim Funk [mailto:[EMAIL PROTECTED] Gesendet am: Dienstag, 15. Juli 2003 13:02 An: Tomcat Users List Betreff: Re: Tomcat 4.1.24 + Security Manager + weird Exceptions - man ulimit - Google (java Too many open files solaris) -Tim Haug Thomas wrote: Hi everybody, I am experiencing some strange behaviour with Tomcat 4.1.24 running with a SecurityManager. The system is running on Solaris 8 using Jdk 1.4.1_02 and/or 1.4.2 Our software seems to use up all available file descriptors. If then tomcat tries to accept a new request the IO system throws an SocketException telling us that there are too many files open (see stacktrace below). Tomcat seems to reinitialize the ServerSocket but then the whole Tomcat (or the Coyote HTTP connector) 'breaks down': The securityManager starts to throw exceptions that class files are not allowed to be loaded, Sockets are not allowed to be opened (see below), and other strange things. At last we are not able anymore to request any http page from tomcat. Has anybody experienced a similar behaviour of tomcat. Or even better does anybody know how to fix this problem (beside not using all file descriptors ;-) ) Thank you very much, 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: Tomcat load not distributed equally by Apache
Simon Pabst wrote: We had the same problem, see this thread http://www.mail-archive.com/[EMAIL PROTECTED]/msg97638.html Unless mod_jk Developers fix this, the only possible solution seems to build and use Apache 2 with Multithreading support (i used the worker mpm, perchild should work too, see http://httpd.apache.org/docs-2.0/mpm.html ) then build mod_jk1/2 again with the new apxs. There is another option: http://cvs.apache.org/~fhanik/index.html Enable session clustering and then you don't have to worry about session affinity anymore. -Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: I'm officially lost with mod_jk
Gute Morgen Simon, I've compiled the mod_jk myself. it was easy. But I still have problems. I will so you what I have. In httpd.conf : LoadModule jk_module modules/mod_jk.so # MY OWN STUFF HERE IfModule mod_jk.so AddModule mod_jk.c JkWorkersFile /etc/httpd/conf/workers.properties JkLogFile /etc/httpd/logs/mod_jk.log JkLogLevelinfo JkLogStampFormat [%a %b %d %H:%M:%S %Y] JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories JkRequestLogFormat %w %V %T /IfModule In workers.properties : #Define 1 real worker using ajp13 worker.list=ajp13 #Set properties for worker1(ajp13) worker.ajp13.type=ajp13 worker.ajp13.host=www.connecties.com worker.ajp13.port=8009 In server.xml : on a line after Server portt=8005 .. Listener className=org.apache.ajp.tomcat4.config.ApacheConfig modJk=/etc/httpd/modules/mod_jk.so / on a line just after Host name=www.connecties.com . Listener className=org.apache.ajp.tomcat4.config.ApacheConfig append=true forwardAll=false modJk=/etc/httpd/modules/mod_jk.so / And the last part of my server.xml is : !-- Define an Apache-Connector Service -- !-- Service name=Tomcat-Apache Connector className=org.apache.catalina.connector.warp.WarpConnector port=8008 minProcessors=5 maxProcessors=75 enableLookups=true appBase=webapps acceptCount=10 debug=0/ Engine className=org.apache.catalina.connector.warp.WarpEngine name=Apache debug=0 Logger className=org.apache.catalina.logger.FileLogger prefix=apache_log. suffix=.txt timestamp=true/ Realm className=org.apache.catalina.realm.MemoryRealm / Host name=www.connecties.com Context path= docBase=/home/sites/home/web crossContext=true debug=0 reloadable=false trusted=false /Context /Host /Engine /Service The output of the apache error log is : [Wed Jul 16 09:16:27 2003] [error] (25)Inappropriate ioctl for device: Error while opening the workers, jk will not work [Wed Jul 16 09:16:28 2003] [error] (25)Inappropriate ioctl for device: Error while opening the workers, jk will not work [Wed Jul 16 09:16:29 2003] [notice] Apache/1.3.20 Sun Cobalt (Unix) mod_ssl/2.8.4 OpenSSL/0.9.6b PHP/4.0.3pl1 mod_auth_pam_external/0.1 FrontPage/4.0.4.3 mod_perl/1.25 configured -- resuming no rmal operations [Wed Jul 16 09:16:29 2003] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec) This will probably say enough (for some). It tells me that jk will not work. But I don't understand why. Anybody ? On Tuesday, July 15, 2003, at 11:29 PM, Simon Pabst wrote: Seems you're not the only one with that problem on Apache/mod_jk/Tomcat on a cobalt machine: http://www.zeffie.com/cobalt/developers/0208/162839.html Best is propably if you (or they if you don't have permissions to do that) compile mod_jk on that machine and don't use a downloaded binary. How to do that: http://list.cobalt.com/pipermail/cobalt-developers/2003-March/ 038938.html Good luck :-) At 21:03 15.07.2003 +0200, you wrote: HI, I have hired a sun microsystems cobalt machine. It comes pre configured with all kinds of internet software and a special edition of redhat. It is stripped on all sides to give maximum speed and maximum disk space. One of the settings is that you can't do anything with apache apart from restarting it with the httpd command. Or restarting the complete box.. By now I'm trying to figure out if it is possible to have Apache2 on it. But I am depending on the goodwill of my provider for it. Some how I think that having Apache 2 solves some of my problems. We'll see. Kind regards Werner van Mook On Tuesday, July 15, 2003, at 06:58 PM, Simon Pabst wrote: hmm ok, the Apache you are using, did it come in a package or did you built from source? Apache 1.3.20 should have apachectl in the same directory as httpd (i.e. /path/to/apache_1.3.20/bin/apachectl) At 18:47 15.07.2003 +0200, you wrote: Yes I tried to use it but to no avail. unfortunately. Regards Werner van Mook On Tuesday, July 15, 2003, at 06:38 PM, Simon Pabst wrote: did you even try my suggestion? http://www.mail-archive.com/[EMAIL PROTECTED]/ msg97619.html Werner van Mook Java Lead Developer / Trainer Connecties Voor Internet Werner van Mook Java Lead Developer / Trainer Connecties Voor Internet - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: tomcat-WEB-INF
When you have a java class in /webapp/mywebapplication/newDirectory you also need to define a package called mywebapplication.newDirectory in the source code of this class. When you want to use this new class in a java class one directory above you have to tell java where it is situated: new mywebapplication.newDirectory.myClass name = new mywebapplication.newDirectory.myClass(); Finally, when you compile the whole package move one directory above mywebapplication and type javac mywebapplication/myMainClass(or /*.java) This should work. -Ursprungliche Nachricht- Von: Elif Akten [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 16. Juli 2003 09:18 An: [EMAIL PROTECTED] Betreff: tomcat-WEB-INF I have an webapplication under /webapp/mywebapplication, I put all classes and lib files under WEB-INF directory classes and lib directory, it works fine, but if I put a new directory under mywebapplication folder it gives NoClasssDef error. what Shoul I do? _ Add photos to your e-mail with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail - 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]
JKJNI
Hello All, I plan to use in-process connection between Tomcat and Apache. Now Tomcat 4.1.24, Apache 2.0.46, mod_jk2 have been installed on Windows 2000, But I didnot find out from where to download jkjni.dll. Could you please give me some help. Thanks. Regards, Xiaojing - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat 4.0 and 5.0
Hi Is there a URL that details what is going to be different between Tomcat 4.0 and 5.0. I'm looking for something more in the style of a tutorial, descriptive how it works type of thing rather than a list of features. Regards Roger - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Using sendRedirect puts me into an infinite loop...
Sorry for posting this here, but I either have a pretty big misunderstanding of something (most likely) or I've discovered a bug I have Apache Web Server set up thusly: ~~~ VirtualHost xxx.xxx.xxx.xxx DocumentRoot /home/webhome/myapp/ ServerName www.myApp.com ErrorLog /var/log/myapp/error_log CustomLog /var/log/myapp/access_log combined /VirtualHost ~~~ Then in Tomcat server.xml: ~~~ Context path=/SHOW docBase=/home/webhome/myapp/ defaultSessionTimeout=60 ~~~ And finally in the web.xml for the application in question: ~~~ servlet servlet-nameTrans/servlet-name servlet-classcom.acme.Translator/servlet-class load-on-startup0/load-on-startup /servlet . . . servlet-mapping servlet-nameTrans/servlet-name url-pattern//url-pattern /servlet-mapping ~~~ So I think you can see with this setup, I have something like this: http://www.myapp.com/SHOW/1/Mike.Curwen http://www.myapp.com/SHOW/2/Other.Person http://www.myapp.com/SHOW/admin http://www.myapp.com/SHOW/reports The /admin and /reports requests will map to other 'known' servlets in web.xml (and these work properly). Anything 'not' recognized will be picked up by my Translating servlet. (the default servlet) It expects certain formats.. meaning #/FirstName.LastName Never mind the robustness of that.. here is the code within the translator (the code of interest) ~~~ public void handleRequest( HttpServletRequest request, HttpServletResponse response) throws Exception { HttpSession session = request.getSession(true); logger.debug(URI: + request.getRequestURI()); logger.debug(URL: + request.getRequestURL()); logger.debug(PATH: + request.getPathInfo()); String what_was_requested = request.getRequestURI(); String newURL=(foo?); // large block of code snipped ... it translates the // 'encoded' request into a normalized querystring // for the 'foo' servlet. newURL = response.encodeRedirectURL(newURL); logger.debug(SHOW:: + request.getRequestURI() + translates to: + newURL); // redirect (our tracking filter won't pick up internally forwarded requests until servlet2.4) response.sendRedirect(newURL); ~~~ So I'm translating from a #/FirstName.LastName format into a queryString that all other parts of my application can use. Here is what I get when I make a request for http://www.myapp.com/SHOW/1/Mike.Curwen ~~~ DEBUG com.acme.Translator.handleRequest() - URI: /SHOW/1/Mike.Curwen (44348ms) DEBUG com.acme.Translator.handleRequest() - URL: http://www.myapp.com/SHOW/1/Mike.Curwen (44349ms) DEBUG com.acme.Translator.handleRequest() - PATH: null (44350ms) DEBUG com.acme.Translator.handleRequest() - pid 1 - 1 CACHED (44357ms) DEBUG com.acme.Translator.handleRequest() - SHOW:: /SHOW/1/Mike.Curwen translates to: foo?cid=1pid=1uid=1src=browsepgid=1 (44363ms) DEBUG com.acme.Translator.handleRequest() - URI: /SHOW/1/foo (44367ms) DEBUG com.acme.Translator.handleRequest() - URL: http://www.myapp.com/SHOW/1/foo (44368ms) DEBUG com.acme.Translator.handleRequest() - PATH: null (44368ms) DEBUG com.acme.Translator.handleRequest() - SHOW:: /SHOW/1/foo translates to: foo?cid=1pid=1uid=0src=browsepgid=1 (44373ms) DEBUG com.acme.Translator.handleRequest() - URI: /SHOW/1/foo (44376ms) DEBUG com.acme.Translator.handleRequest() - URL: http://www.myapp.com/SHOW/1/foo (44377ms) DEBUG com.acme.Translator.handleRequest() - PATH: null (44378ms) DEBUG com.acme.Translator.handleRequest() - SHOW:: /SHOW/1/foo translates to: foo?cid=1pid=1uid=0src=browsepgid=1 (44382ms) DEBUG com.acme.Translator.handleRequest() - URI: /SHOW/1/foo (44386ms) DEBUG com.acme.Translator.handleRequest() - URL: http://www.myapp.com/SHOW/1/foo (44387ms) DEBUG com.acme.Translator.handleRequest() - PATH: null (44388ms) DEBUG com.acme.Translator.handleRequest() - SHOW:: /SHOW/1/foo translates to: foo?cid=1pid=1uid=0src=browsepgid=1 (44392ms) ~~~ . . etc, etc, etc, until you kill Tomcat If I start my newURL (the translated URL) with /foo?, then this will tell the container to translate the redirect relative to the container root. I don't want that, I want the application root. So I leave it as foo?. (I've tried it both ways: /foo? gives me a 404, and I'm missing the /SHOW token. But if I leave it off I get an infinite loop. It's almost as though somehow the container is determining that http://www.myapp.com/SHOW/1/Mike.Curwen translates to /SHOW/1 as an application 'root', instead of the expected (?) /SHOW/. So then of course, http://www.myapp.com/SHOW/1/foo?etcetc is
compiling connectors on Mac osX
Has any body tried to compile the jakarta-tomcat-connectors-jk-1.2.2 on Mac OSX? I get an error running 'ant native' from the jk directory. apache20: [echo] going into so [so] Compiling 19 out of 19 Compiling /Users/werner/Desktop/jakarta-tomcat-connectors-4.1.24-src/jk/native/ apache-2.0/mod_jk.c [so] Compile failed 1 /Users/werner/Desktop/jakarta-tomcat-connectors-4.1.24-src/jk/native/ apache-2.0/mod_jk.c [so] Command:libtool --mode=compile cc -c -o /Users/werner/Desktop/jakarta-tomcat-connectors-4.1.24-src/jk/build/jk/ apache2/apache-2.0/mod_jk.o -I/Users/werner/Desktop/jakarta-tomcat-connectors-4.1.24-src/jk/native/ common -I/usr/local/apache2/include -I/System/Library/Frameworks/JavaVM.framework/Versions/1.4.1/Home/../ include -g -W -D_REENTRANT -DCHUNK_SIZE=4096 -DREUSE_WORKER -DUSE_APACHE_MD5 /Users/werner/Desktop/jakarta-tomcat-connectors-4.1.24-src/jk/native/ apache-2.0/mod_jk.c [so] Output: [so] StdErr: [so] /usr/bin/libtool: unknown option character `-' in: --mode=compile [so] Usage: /usr/bin/libtool -static [-] file [...] [-filelist listfile[,dirname]] [-arch_only arch] [-sacLT] [so] Usage: /usr/bin/libtool -dynamic [-] file [...] [-filelist listfile[,dirname]] [-arch_only arch] [-o output] [-install_name name] [-compatibility_version #] [-current_version #] [-seg1addr 0x#] [-segs_read_only_addr 0x#] [-segs_read_write_addr 0x#] [-seg_addr_table filename] [-seg_addr_table_filename file_system_path] [-all_load] [-noall_load] BUILD FAILED Any help would be appreciated. kind regards, Werner van Mook Java Lead Developer / Trainer Connecties Voor Internet - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
weird problem-can't copy JWS application wording
Hey.. I had a weird minor problem, but I can't solve it. I found I can't copy the wording in my Java Web Start Application using ctrl-C and V method on my PC (only for the application, other application like notepad, word and etc.. no problem. But I can do the same thing on other PC (copy the wording in the Java Web Start Application and etc). I can't figure why?? Any body know? Any suggestion? - Yahoo! Mobile - Check compose your email via SMS on your Telstra or Vodafone mobile.
Prevent Tomcat from displaying directory listing.
I'm using tomcat 4.1 with the CoyoteConnector as the http server. How do i configure tomcat so that tomcat does NOT display the contents of a directory when that directory is missing a welcome page. i.e. (index.html, index.jsp)? Are there settings in the web.xml or server.xml that i can set? Thank You, PHilip Baruc = --- Philip G. Baruc [EMAIL PROTECTED] __ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat + JBoss
On Mon, 2003-07-14 at 18:10, John Turner wrote: mod_jk http://www.google.com/search?hl=enie=UTF-8oe=UTF- 8q=solaris+apache+tomcat+connector http://jakarta.apache.org/tomcat/faq/connectors.html John On Mon, 14 Jul 2003 18:24:44 +0800, Cui Xiaojing-a13339 [EMAIL PROTECTED] wrote: Hello All, In our server(OS is Solaris 2.6), we have installed Tomcat 4.1.24 and Apache 1.3. Can we realize the connection between Tomcat 4.1.24 and Apache 1.3? If yes, could you please give us a direction about using which component to connect them and how to config the connection? Thanks a lot. Regards, Xiaojing - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/ - 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: AW: Tomcat 4.1.24 + Security Manager + weird Exceptions
We've got a similar issue, though this in on Linux and using channelUnix/JNI instead of normal tcp channelSocket. We're using Apache2/mod_jk2 (built from tomcat-connectors-1.1M1). On heavy load, there are over 3000 sockets open by one Tomcat/JVM, they don't seem to go down again too while Tomcat is running. (since File Descriptor limit on Solaris is lower normally (1024 or summat i think) this would cause us heavy problems there too) The Tomcats and Apache are restarted during the night to free up Memory, so socket count goes down then. However the application doesn't seem to be affected by this. In catalina.out there are many errors like this: org.apache.jk.common.ChannelUn receive SEVERE: receive error: 12 java.lang.Throwable at org.apache.jk.common.ChannelUn.receive(ChannelUn.java:230) at org.apache.jk.common.ChannelUn.processConnection(ChannelUn.java:282) at org.apache.jk.common.AprConnection.runIt(ChannelUn.java:350) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:631) at java.lang.Thread.run(Thread.java:536) org.apache.jk.common.JniHandler nativeDispatch SEVERE: nativeDispatch: error -3 java.lang.Throwable at org.apache.jk.common.JniHandler.nativeDispatch(JniHandler.java:312) at org.apache.jk.common.ChannelUn.send(ChannelUn.java:221) at org.apache.jk.common.ChannelUn.invoke(ChannelUn.java:306) at org.apache.jk.server.JkCoyoteHandler.doWrite(JkCoyoteHandler.java:249) at org.apache.coyote.Response.doWrite(Response.java:530) at org.apache.coyote.tomcat4.OutputBuffer.realWriteBytes(OutputBuffer.java:384) at org.apache.tomcat.util.buf.ByteChunk.flushBuffer(ByteChunk.java:439) at org.apache.tomcat.util.buf.ByteChunk.append(ByteChunk.java:359) at org.apache.coyote.tomcat4.OutputBuffer.writeBytes(OutputBuffer.java:411) at org.apache.coyote.tomcat4.OutputBuffer.write(OutputBuffer.java:398) at org.apache.coyote.tomcat4.CoyoteOutputStream.write(CoyoteOutputStream.java:110) at org.apache.catalina.servlets.DefaultServlet.copyRange(DefaultServlet.java:1996) at org.apache.catalina.servlets.DefaultServlet.copy(DefaultServlet.java:1745) at org.apache.catalina.servlets.DefaultServlet.serveResource(DefaultServlet.java:1073) at org.apache.catalina.servlets.DefaultServlet.doGet(DefaultServlet.java:506) . - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Need your help about In-process jk2 connection between Tomcat and Apache on Windows 2000
Hello All, I am doing in-process connection for Tomcat and Apache using jk2 on Windows 2000. The installed components are as below: Tomcat 4.1.24 Apache 2.0.46 mod_jk2-2.0.43.dll I have done following operation: 1. Install Tomcat in E:\jartomcatflex, it is correct. 2. Install Apache in E:\Apache2.0.46\Apache2, it is correct. 3. copy mod_jk2-2.0.43.dll to E:\Apache2.0.46\Apache2\modules\mod_jk2.dll 4. Add following command line in httpd.conf: LoadModule jk2_module modules/mod_jk2.dll 5. Add workers2.properties file under E:\Apache2.0.46\Apache2\conf, it likes below: # Define the comunication channel [channel.jni:jni] info=The jni channel, used if tomcat is started inprocess # Define the parameters for the Java Virtual Machine [vm:] info=Parameters used to load a JVM in the server process OPT=-Djava.class.path=e:\jartomcatflex\bin\tomcat-jni.jar OPT=-Dtomcat.home=e:\jartomcatflex OPT=-Dcatalina.home=e:\jartomcatflex OPT=-Xmx128M # JNI worker startup handler [worker.jni:onStartup] info=Command to be executed by the VM on startup. This one will start tomcat. class=org/apache/jk/apr/TomcatStarter ARG=start stdout=e:\Apache2.0.46\Apache2\logs\stdout.log stderr=e:\Apache2.0.46\Apache2\logs\stderr.log # JNI worker shutdown handler [worker.jni:onShutdown] info=Command to be executed by the VM on shutdown. This one will stop tomcat. class=org/apache/jk/apr/TomcatStarter ARG=stop # Map the Tomcat examples webapp to the Web server uri space [uri:/examples/*] info=Map the whole webapp 6. Modify jk2.properties as below: # Add the apr and channelJni to the list of handlers handler.list=apr,request,container,channelJni # The native libraries will be registered by JK2 apr.jniModeSo=inprocess 7. Comments part I, uncomments part II in server.xml Part I !-- commented out because we dont need a standalone service -- !--Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=9080 minProcessors=5 maxProcessors=75 enableLookups=true redirectPort=9443 acceptCount=100 debug=0 connectionTimeout=2 useURIValidationHack=false disableUploadTimeout=true /-- Part II !-- Define a Coyote/JK2 AJP 1.3 Connector on port 9009 -- Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=9009 minProcessors=5 maxProcessors=75 enableLookups=true redirectPort=9443 acceptCount=10 debug=0 connectionTimeout=0 useURIValidationHack=false protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler/ 8. Startup Apache using below command: Apache -k start 9. Test using http://localhost/examples/, then shown: Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, [EMAIL PROTECTED] and inform them of the time the error occurred, and anything you might have done that may have caused the error. More information about this error may be available in the server error log. _ Apache/2.0.46 (Win32) mod_jk2/2.0.2 Server at localhost Port 80 The error log file shows: [Wed Jul 16 18:01:53 2003] [error] lb.getWorker() reenable ajp13:jni [Wed Jul 16 18:01:53 2003] [error] workerEnv.init() create slot epStat.0 failed [Wed Jul 16 18:01:54 2003] [error] lb.service() worker failed 12 for ajp13:jni [Wed Jul 16 18:01:54 2003] [error] lb.service() unrecoverable error... [Wed Jul 16 18:01:54 2003] [error] mod_jk.handler() Error connecting to tomcat 12 The stderr log file shows: TomcatStarter: main() Try org.apache.tomcat.startup.Main
RE: Prevent Tomcat from displaying directory listing.
Go to the conf/web.xml and set listings=false for the default servlet Abid -Original Message- From: Philip Baruc [mailto:[EMAIL PROTECTED] Sent: 16. juli 2003 00:28 To: [EMAIL PROTECTED] Subject: Prevent Tomcat from displaying directory listing. I'm using tomcat 4.1 with the CoyoteConnector as the http server. How do i configure tomcat so that tomcat does NOT display the contents of a directory when that directory is missing a welcome page. i.e. (index.html, index.jsp)? Are there settings in the web.xml or server.xml that i can set? Thank You, PHilip Baruc = --- Philip G. Baruc [EMAIL PROTECTED] __ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.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]
Re: Re: Tomcat load not distributed equally by Apache
Tomcat Users List [EMAIL PROTECTED] schrieb am 16.07.03 09:26:14: Simon Pabst wrote: We had the same problem, see this thread http://www.mail-archive.com/[EMAIL PROTECTED]/msg97638.html Unless mod_jk Developers fix this, the only possible solution seems to build and use Apache 2 with Multithreading support (i used the worker mpm, perchild should work too, see http://httpd.apache.org/docs-2.0/mpm.html ) then build mod_jk1/2 again with the new apxs. There is another option: http://cvs.apache.org/~fhanik/index.html Enable session clustering and then you don't have to worry about session affinity anymore. -Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] yore're right Dave, i should have written it was the only possible (and quickest) solution for us (without changing the application), because the Application Session Attributes don't implement java.io.Serializable which is needed for that Session clustering. -- Simon Pabst E-Mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: tomcat startup
You have probably already looked for java.net.SocketException: Network is down on Google and found nothing. This suggests you have a very obscure problem. Therefore you should try to establish what is unusual about your machine. The fact your machine acts as some kind of gateway, I think is the place to look. Windows-gateway machines running Tomcat are going to be far less common; and hence less tried and tested. Your machine being a gateway implies you have more than 1 IP address. It could be that Tomcat is trying to bind to the wrong IP address (or network adapter). I am not quite sure how you direct Tomcat to pick a particular network stack/adapter/etc but in a multi-IPd machine I have, it is necessary to add an address parameter, so my Connector XML fragment is: Connector className=org.apache.catalina.connector.http.HttpConnector port=80 address=192.168.1.54 minProcessors=5 maxProcessors=75 enableLookups=true redirectPort=8443 acceptCount=10 debug=0 connectionTimeout=6/ I think you should also comment out any other Connectors you have (there is more than 1 setup by default). -Original Message- From: Souren Sinha [mailto:[EMAIL PROTECTED] Sent: 15 July 2003 12:05 To: Tomcat Users List Subject: Re: tomcat startup Hi, I am trying to run it on a desktop that is on a network...in fact it acts as the gateway to the net too. As per my network settings, I have TCP/IP installed and after having done a netstat I can confirm that nothing else is listening on port 8080. Just for the sake of it, I tried running on port 9090 too with the same resulting exceptions! I am not sure what else to try...any help would be appreciated. Regards Souren -Original Message- From: Souren Sinha [mailto:[EMAIL PROTECTED] Sent: 16 July 2003 02:21 To: [EMAIL PROTECTED] Subject: Re: tomcat startup Hi, Could you please help me out a bit more...I had to unscribe from the Tomcat list coz I was getting way too many messages and since I am on a dial-up it's becoming a problem...! Regards Souren - Original Message - From: Andrew Liles [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Monday, July 14, 2003 11:56 PM Subject: RE: tomcat startup Are you trying this on a laptop/standalone machine that has no network stack? You need a TCP/IP stack. (It could be another process is listening on the same IP/port; but the usual symptom in that case is a different error) -Original Message- From: Souren Sinha [mailto:[EMAIL PROTECTED] Sent: 14 July 2003 13:30 To: Tomcat Users List Subject: tomcat startup Hi, I am having trouble starting up tomcat from the Start menu. I get the following exception: Using CATALINA_BASE: .. Using CATALINA_HOME: .. Using CATALINA_TMPDIR: ..\temp Using JAVA_HOME: C:\j2sdk1.4.0_03 Jul 14, 2003 10:28:26 PM org.apache.commons.modeler.Registry loadRegistry INFO: Loading registry information Jul 14, 2003 10:28:27 PM org.apache.commons.modeler.Registry getRegistry INFO: Creating new Registry instance Jul 14, 2003 10:28:28 PM org.apache.commons.modeler.Registry getServer INFO: Creating MBeanServer Jul 14, 2003 10:28:29 PM org.apache.coyote.http11.Http11Protocol init SEVERE: Error initializing endpoint java.net.SocketException: Network is down: listen failed at java.net.PlainSocketImpl.socketListen(Native Method) at java.net.PlainSocketImpl.listen(PlainSocketImpl.java:333) at java.net.ServerSocket.bind(ServerSocket.java:309) at java.net.ServerSocket.bind(ServerSocket.java:266) at java.net.ServerSocket.init(ServerSocket.java:182) at java.net.ServerSocket.init(ServerSocket.java:138) Can someone please help me out. Regards Souren - Original Message - From: Agarwal, Naresh [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, July 14, 2003 10:09 PM Subject: Do we have any control on Tomcat threads? Hi Web apps in tomcat run in threads spawned by Tomcat. Do we have any control on these threads? I want to perform some Init and UnInit operations at the time creation and destruction of these threads. Is it possible to do with Tomcat threads? thanks regards, Naresh Agarwal - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ This e-mail has been scanned for viruses by MessageLabs. _ This e-mail has been scanned for viruses by MessageLabs. -
RE: Need your help about In-process jk2 connection between Tomcat andApache on Windows 2000
Hi Cui, I think that you are missing the shm directive in workers2.properties and jk2.properties. Adding that directive should make everything go. _ Atreya Basu Developer, Greenfield Research Inc. e-mail: atreya (at) greenfieldresearch (dot) ca -Original Message- From: Cui Xiaojing-a13339 [mailto:[EMAIL PROTECTED] Sent: July 16, 2003 7:00 AM To: Tomcat Users List Subject: Need your help about In-process jk2 connection between Tomcat and Apache on Windows 2000 Hello All, I am doing in-process connection for Tomcat and Apache using jk2 on Windows 2000. The installed components are as below: Tomcat 4.1.24 Apache 2.0.46 mod_jk2-2.0.43.dll I have done following operation: 1. Install Tomcat in E:\jartomcatflex, it is correct. 2. Install Apache in E:\Apache2.0.46\Apache2, it is correct. 3. copy mod_jk2-2.0.43.dll to E:\Apache2.0.46\Apache2\modules\mod_jk2.dll 4. Add following command line in httpd.conf: LoadModule jk2_module modules/mod_jk2.dll 5. Add workers2.properties file under E:\Apache2.0.46\Apache2\conf, it likes below: # Define the comunication channel [channel.jni:jni] info=The jni channel, used if tomcat is started inprocess # Define the parameters for the Java Virtual Machine [vm:] info=Parameters used to load a JVM in the server process OPT=-Djava.class.path=e:\jartomcatflex\bin\tomcat-jni.jar OPT=-Dtomcat.home=e:\jartomcatflex OPT=-Dcatalina.home=e:\jartomcatflex OPT=-Xmx128M # JNI worker startup handler [worker.jni:onStartup] info=Command to be executed by the VM on startup. This one will start tomcat. class=org/apache/jk/apr/TomcatStarter ARG=start stdout=e:\Apache2.0.46\Apache2\logs\stdout.log stderr=e:\Apache2.0.46\Apache2\logs\stderr.log # JNI worker shutdown handler [worker.jni:onShutdown] info=Command to be executed by the VM on shutdown. This one will stop tomcat. class=org/apache/jk/apr/TomcatStarter ARG=stop # Map the Tomcat examples webapp to the Web server uri space [uri:/examples/*] info=Map the whole webapp 6. Modify jk2.properties as below: # Add the apr and channelJni to the list of handlers handler.list=apr,request,container,channelJni # The native libraries will be registered by JK2 apr.jniModeSo=inprocess 7. Comments part I, uncomments part II in server.xml Part I !-- commented out because we don't need a standalone service -- !--Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=9080 minProcessors=5 maxProcessors=75 enableLookups=true redirectPort=9443 acceptCount=100 debug=0 connectionTimeout=2 useURIValidationHack=false disableUploadTimeout=true /-- Part II !-- Define a Coyote/JK2 AJP 1.3 Connector on port 9009 -- Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=9009 minProcessors=5 maxProcessors=75 enableLookups=true redirectPort=9443 acceptCount=10 debug=0 connectionTimeout=0 useURIValidationHack=false protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler/ 8. Startup Apache using below command: Apache -k start 9. Test using http://localhost/examples/, then shown: Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, [EMAIL PROTECTED] and inform them of the time the error occurred, and anything you might have done that may have caused the error. More information about this error may be available in the server error log. _ Apache/2.0.46 (Win32) mod_jk2/2.0.2 Server at localhost Port 80 The error log file shows: [Wed Jul 16 18:01:53 2003] [error] lb.getWorker() reenable ajp13:jni [Wed Jul 16 18:01:53 2003] [error] workerEnv.init() create slot epStat.0
Is it possible to add header values to the request (not the respo nse)?
Hey all, My production application uses a site minder web agent. This agent places two name/value pairs into the request header, one for userName, the other for domain. In my application, I have a filter which looks for these values to make sure the user is logged in. Currently I do not have site minder in my development environment, but I would like to simulate its functionality by placing values in the request header before my other filter looks for them. I know that you can place values in the response header. Can it be done with the request as well? Joshua This communication, including attachments, is for the exclusive use of addressee and may contain proprietary, confidential or privileged information. If you are not the intended recipient, any use, copying, disclosure, dissemination or distribution is strictly prohibited. If you are not the intended recipient, please notify the sender immediately by return email and delete this communication and destroy all copies. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: AW: Tomcat 4.1.24 + Security Manager + weird Exceptions
How do you mean survive? The JVM core dumps (which then is a JVM vendor issue) or the JVM stays up buit sits there uselessly? -Tim Haug Thomas wrote: Hi Tim, thanks for the advise. The interesting part is that tomcat (process) doesn't seem to survive the re-initialization of the ServerSocket. It this a known bug? Regards, Thomas -Ursprüngliche Nachricht- Von: Tim Funk [mailto:[EMAIL PROTECTED] Gesendet am: Dienstag, 15. Juli 2003 13:02 An: Tomcat Users List Betreff: Re: Tomcat 4.1.24 + Security Manager + weird Exceptions - man ulimit - Google (java Too many open files solaris) -Tim - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Using sendRedirect puts me into an infinite loop...
Mike, The documentation is always your friend :-) The docs say that relative urls are interpreted relative to the CURRENT REQUEST URI, so the behaviour is as advertised: * sendRedirect public void sendRedirect(java.lang.String location) throws java.io.IOExceptionSends a temporary redirect response to the client using the specified redirect location URL. This method can accept relative URLs; the servlet container must convert the relative URL to an absolute URL before sending the response to the client. If the location is relative without a leading '/' the container interprets it as relative to the current request URI. If the location is relative with a leading '/' the container interprets it as relative to the servlet container root. If the response has already been committed, this method throws an IllegalStateException. After using this method, the response should be considered to be committed and should not be written to. Parameters: location - the redirect location URL Throws: java.io.IOException - If an input or output exception occurs IllegalStateException - If the response was committed You need to hack it with starting the url off with /SHOW or get the application name from the ServletContext, or read the start of the current URI, or get it from a config file or somewhere. All the best, Andy -Original Message- From: Mike Curwen [mailto:[EMAIL PROTECTED] Sent: 15 July 2003 23:26 To: [EMAIL PROTECTED] Subject: Using sendRedirect puts me into an infinite loop... Sorry for posting this here, but I either have a pretty big misunderstanding of something (most likely) or I've discovered a bug I have Apache Web Server set up thusly: ~~~ VirtualHost xxx.xxx.xxx.xxx DocumentRoot /home/webhome/myapp/ ServerName www.myApp.com ErrorLog /var/log/myapp/error_log CustomLog /var/log/myapp/access_log combined /VirtualHost ~~~ Then in Tomcat server.xml: ~~~ Context path=/SHOW docBase=/home/webhome/myapp/ defaultSessionTimeout=60 ~~~ And finally in the web.xml for the application in question: ~~~ servlet servlet-nameTrans/servlet-name servlet-classcom.acme.Translator/servlet-class load-on-startup0/load-on-startup /servlet . . . servlet-mapping servlet-nameTrans/servlet-name url-pattern//url-pattern /servlet-mapping ~~~ So I think you can see with this setup, I have something like this: http://www.myapp.com/SHOW/1/Mike.Curwen http://www.myapp.com/SHOW/2/Other.Person http://www.myapp.com/SHOW/admin http://www.myapp.com/SHOW/reports The /admin and /reports requests will map to other 'known' servlets in web.xml (and these work properly). Anything 'not' recognized will be picked up by my Translating servlet. (the default servlet) It expects certain formats.. meaning #/FirstName.LastName Never mind the robustness of that.. here is the code within the translator (the code of interest) ~~~ public void handleRequest( HttpServletRequest request, HttpServletResponse response) throws Exception { HttpSession session = request.getSession(true); logger.debug(URI: + request.getRequestURI()); logger.debug(URL: + request.getRequestURL()); logger.debug(PATH: + request.getPathInfo()); String what_was_requested = request.getRequestURI(); String newURL=(foo?); // large block of code snipped ... it translates the // 'encoded' request into a normalized querystring // for the 'foo' servlet. newURL = response.encodeRedirectURL(newURL); logger.debug(SHOW:: + request.getRequestURI() + translates to: + newURL); // redirect (our tracking filter won't pick up internally forwarded requests until servlet2.4) response.sendRedirect(newURL); ~~~ So I'm translating from a #/FirstName.LastName format into a queryString that all other parts of my application can use. Here is what I get when I make a request for http://www.myapp.com/SHOW/1/Mike.Curwen ~~~ DEBUG com.acme.Translator.handleRequest() - URI: /SHOW/1/Mike.Curwen (44348ms) DEBUG com.acme.Translator.handleRequest() - URL: http://www.myapp.com/SHOW/1/Mike.Curwen (44349ms) DEBUG com.acme.Translator.handleRequest() - PATH: null (44350ms) DEBUG com.acme.Translator.handleRequest() - pid 1 - 1 CACHED (44357ms) DEBUG com.acme.Translator.handleRequest() - SHOW:: /SHOW/1/Mike.Curwen translates to: foo?cid=1pid=1uid=1src=browsepgid=1 (44363ms) DEBUG com.acme.Translator.handleRequest() - URI: /SHOW/1/foo (44367ms) DEBUG
Re: Is it possible to add header values to the request (not the respo nse)?
You can do this via a Filter and HttpServletRequestWrapper, where your imlpementation of HttpServletRequestWrapper will extend the needed getHeader methods to send the additional stuff you need. -Tim White, Joshua A (HTSC, CASD) wrote: Hey all, My production application uses a site minder web agent. This agent places two name/value pairs into the request header, one for userName, the other for domain. In my application, I have a filter which looks for these values to make sure the user is logged in. Currently I do not have site minder in my development environment, but I would like to simulate its functionality by placing values in the request header before my other filter looks for them. I know that you can place values in the response header. Can it be done with the request as well? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 4.0 and 5.0
There is none that I know of. There are many differences between 4.0.X and 4.1.X. Likewise there are more diffs between 4.1.X and 5. The changelog and releasenotes in 5 should give you an idea of most differences. From a PHB marketing point of view, here are the highlighted diffs between 4.1 and 5: - Support for jsp 2.0 and servlet api 2.4 - Method of how webapps are deployed massively overhauled (From the proposal I've read - this will be much better) - Better JMX support - Performance enhancements - Better cluster support (Filip will correct me on this if I am wrong) -Tim Varley, Roger wrote: Hi Is there a URL that details what is going to be different between Tomcat 4.0 and 5.0. I'm looking for something more in the style of a tutorial, descriptive how it works type of thing rather than a list of features. Regards Roger - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Re: I'm officially lost with mod_jk
Your JK Stuff in httpd.conf looks a bit wrong to me, and the error means that workers.properties is either not found or not loaded, try this: httpd.conf: #For Apache 1.x additional modules should be normally in apache/libexec dir, not in modules as in your config (unless you got Apache 2 now?) IfModule !mod_jk.c LoadModule jk_module /etc/httpd/modules/mod_jk.so #On recent Apache you don't need the following line, but on yours you do propably AddModule mod_jk.c /IfModule # Dont' think IfModule works with mod_jk.so like in your config, you need mod_jk.c there IfModule mod_jk.c JkWorkersFile /etc/httpd/conf/workers.properties JkLogFile /etc/httpd/logs/mod_jk.log JkLogLevel info ... /IfModule workers.properties: workers.java_home=/path/to/java ps=/ worker.list=ajp13 # Use localhost or IP-Address (if Tomcat is on remote machine) for the ajp13 connection host worker.ajp13.port=8009 worker.ajp13.host=localhost worker.ajp13.type=ajp13 Also check your httpd.conf with /path/to/httpd -t /path/to/httpd.conf (you need the binary httpd for this, not the directory) (does same as apachectl configtest) That ioctl error looks bad, if it still persists then, i would try to build Apache from source too, then mod_jk again Tomcat Users List [EMAIL PROTECTED] schrieb am 16.07.03 09:30:29: Gute Morgen Simon, I've compiled the mod_jk myself. it was easy. But I still have problems. I will so you what I have. In httpd.conf : LoadModule jk_module modules/mod_jk.so # MY OWN STUFF HERE IfModule mod_jk.so AddModule mod_jk.c JkWorkersFile /etc/httpd/conf/workers.properties JkLogFile /etc/httpd/logs/mod_jk.log JkLogLevelinfo JkLogStampFormat [%a %b %d %H:%M:%S %Y] JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories JkRequestLogFormat %w %V %T /IfModule In workers.properties : #Define 1 real worker using ajp13 worker.list=ajp13 #Set properties for worker1(ajp13) worker.ajp13.type=ajp13 worker.ajp13.host=www.connecties.com worker.ajp13.port=8009 In server.xml : on a line after Server portt=8005 .. Listener className=org.apache.ajp.tomcat4.config.ApacheConfig modJk=/etc/httpd/modules/mod_jk.so / on a line just after Host name=www.connecties.com . Listener className=org.apache.ajp.tomcat4.config.ApacheConfig append=true forwardAll=false modJk=/etc/httpd/modules/mod_jk.so / And the last part of my server.xml is : !-- Define an Apache-Connector Service -- !-- Service name=Tomcat-Apache Connector className=org.apache.catalina.connector.warp.WarpConnector port=8008 minProcessors=5 maxProcessors=75 enableLookups=true appBase=webapps acceptCount=10 debug=0/ Engine className=org.apache.catalina.connector.warp.WarpEngine name=Apache debug=0 Logger className=org.apache.catalina.logger.FileLogger prefix=apache_log. suffix=.txt timestamp=true/ Realm className=org.apache.catalina.realm.MemoryRealm / Host name=www.connecties.com Context path= docBase=/home/sites/home/web crossContext=true debug=0 reloadable=false trusted=false /Context /Host /Engine /Service The output of the apache error log is : [Wed Jul 16 09:16:27 2003] [error] (25)Inappropriate ioctl for device: Error while opening the workers, jk will not work [Wed Jul 16 09:16:28 2003] [error] (25)Inappropriate ioctl for device: Error while opening the workers, jk will not work [Wed Jul 16 09:16:29 2003] [notice] Apache/1.3.20 Sun Cobalt (Unix) mod_ssl/2.8.4 OpenSSL/0.9.6b PHP/4.0.3pl1 mod_auth_pam_external/0.1 FrontPage/4.0.4.3 mod_perl/1.25 configured -- resuming no rmal operations [Wed Jul 16 09:16:29 2003] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec) This will probably say enough (for some). It tells me that jk will not work. But I don't understand why. Anybody ? On Tuesday, July 15, 2003, at 11:29 PM, Simon Pabst wrote: Seems you're not the only one with that problem on Apache/mod_jk/Tomcat on a cobalt machine: http://www.zeffie.com/cobalt/developers/0208/162839.html Best is propably if you (or they if you don't have permissions to do that) compile mod_jk on that machine and don't use a downloaded binary. How to do that: http://list.cobalt.com/pipermail/cobalt-developers/2003-March/ 038938.html Good luck :-) At 21:03 15.07.2003 +0200, you wrote: HI, I have hired a sun microsystems cobalt machine. It comes pre configured with all kinds of internet software and a special edition of redhat. It is stripped on all sides to give maximum speed and maximum disk space. One of the settings is that you can't do anything with apache apart from restarting it
PERMISSIONS FOR JDBC ORACLE APPLICATION
Hi I am trying to start using the SecurityManager/catalina.policy for a servelt/jsp application that accesses an Oracle Database for read/write. Everything works fine when I set: permission java.security.AllPermission for the entire application. but if I try and limit permissions, any table varchar2 data I get back from queries via ResultSet.getObject().toString() seems to be (?URL)encoded - Dates and ints are OK. I can't work out which file or driver doesn't have appropriate conditions - can anyone help? I have tried: permission java.net.SocketPermission xxx.xxx.xxx.xxx:, connect; permission java.util.PropertyPermission oracle.jserver.version, read; permission java.util.PropertyPermission oracle.jdbc.driver.OracleDriver, read; permission java.util.PropertyPermission /WEB-INF/lib/ojdbc.jar, read; permission java.util.PropertyPermission java.net.*, read; permission java.util.PropertyPermission java.sql.*, read; currently running jdk 1.4 and Tomcat 4.1.12 and Oracle 9i Ta Trevor
pageContext
Hi I have an jsp that outputs an image. What do I need to set the pagecontext type to in order for the browser to understand the image? At the moment it prompts me to save the image as jspname.jsp, but If I rename the extension to jpg, it has actually downloaded the image. Thanks Dom - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
SSL configuration for Apache HTTP server
hello, How to configure SSL in apache HTTP server. Apache and tomcat are integrated. please help thanks and regards Sushir - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Querying container's user database
Is there a way I can query the container's user database to find out if a specifed login exists or not?? If yes, is the solution container-specific? ___ :: Christian J. Dechery :: Accenture do Brasil :: CHT - Solutions Operations :: [EMAIL PROTECTED]
Re: I'm officially lost with mod_jk
Aha, A typo on my side. changed IfModule mod_jk.so into IfModule mod_jk.c Now my error log file displays : [Wed Jul 16 14:43:40 2003] [notice] Apache/1.3.20 Sun Cobalt (Unix) mod_ssl/2.8.4 OpenSSL/0.9.6b PHP/4.0.3pl1 mod_jk/1.2.2 mod_auth_pam_external/0.1 FrontPage/4.0.4.3 mod_perl/1.25 configured -- resuming normal operations This looks good. At least to me. Now I only can't access the requested pages. If I do www.connecties.com:8080/Friss/ I get the correct index.html page. If I do www.connecties.com/Friss/ I get a 404 doc. not found. this is what it says in the error logfile: [Wed Jul 16 14:44:02 2003] [error] [client 213.17.78.218] File does not exist: /home/sites/home/web/Friss/index.html that's right because it's not there. It is located in my webapps dir inside tomcat. Any idea's ? Kind regards Werner On Wednesday, July 16, 2003, at 02:26 PM, Simon Pabst wrote: Your JK Stuff in httpd.conf looks a bit wrong to me, and the error means that workers.properties is either not found or not loaded, try this: httpd.conf: #For Apache 1.x additional modules should be normally in apache/libexec dir, not in modules as in your config (unless you got Apache 2 now?) IfModule !mod_jk.c LoadModule jk_module /etc/httpd/modules/mod_jk.so #On recent Apache you don't need the following line, but on yours you do propably AddModule mod_jk.c /IfModule # Dont' think IfModule works with mod_jk.so like in your config, you need mod_jk.c there IfModule mod_jk.c JkWorkersFile /etc/httpd/conf/workers.properties JkLogFile /etc/httpd/logs/mod_jk.log JkLogLevel info ... /IfModule workers.properties: workers.java_home=/path/to/java ps=/ worker.list=ajp13 # Use localhost or IP-Address (if Tomcat is on remote machine) for the ajp13 connection host worker.ajp13.port=8009 worker.ajp13.host=localhost worker.ajp13.type=ajp13 Also check your httpd.conf with /path/to/httpd -t /path/to/httpd.conf (you need the binary httpd for this, not the directory) (does same as apachectl configtest) That ioctl error looks bad, if it still persists then, i would try to build Apache from source too, then mod_jk again Tomcat Users List [EMAIL PROTECTED] schrieb am 16.07.03 09:30:29: Gute Morgen Simon, I've compiled the mod_jk myself. it was easy. But I still have problems. I will so you what I have. In httpd.conf : LoadModule jk_module modules/mod_jk.so # MY OWN STUFF HERE IfModule mod_jk.so AddModule mod_jk.c JkWorkersFile /etc/httpd/conf/workers.properties JkLogFile /etc/httpd/logs/mod_jk.log JkLogLevelinfo JkLogStampFormat [%a %b %d %H:%M:%S %Y] JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories JkRequestLogFormat %w %V %T /IfModule In workers.properties : #Define 1 real worker using ajp13 worker.list=ajp13 #Set properties for worker1(ajp13) worker.ajp13.type=ajp13 worker.ajp13.host=www.connecties.com worker.ajp13.port=8009 In server.xml : on a line after Server portt=8005 .. Listener className=org.apache.ajp.tomcat4.config.ApacheConfig modJk=/etc/httpd/modules/mod_jk.so / on a line just after Host name=www.connecties.com . Listener className=org.apache.ajp.tomcat4.config.ApacheConfig append=true forwardAll=false modJk=/etc/httpd/modules/mod_jk.so / And the last part of my server.xml is : !-- Define an Apache-Connector Service -- !-- Service name=Tomcat-Apache Connector className=org.apache.catalina.connector.warp.WarpConnector port=8008 minProcessors=5 maxProcessors=75 enableLookups=true appBase=webapps acceptCount=10 debug=0/ Engine className=org.apache.catalina.connector.warp.WarpEngine name=Apache debug=0 Logger className=org.apache.catalina.logger.FileLogger prefix=apache_log. suffix=.txt timestamp=true/ Realm className=org.apache.catalina.realm.MemoryRealm / Host name=www.connecties.com Context path= docBase=/home/sites/home/web crossContext=true debug=0 reloadable=false trusted=false /Context /Host /Engine /Service The output of the apache error log is : [Wed Jul 16 09:16:27 2003] [error] (25)Inappropriate ioctl for device: Error while opening the workers, jk will not work [Wed Jul 16 09:16:28 2003] [error] (25)Inappropriate ioctl for device: Error while opening the workers, jk will not work [Wed Jul 16 09:16:29 2003] [notice] Apache/1.3.20 Sun Cobalt (Unix) mod_ssl/2.8.4 OpenSSL/0.9.6b PHP/4.0.3pl1 mod_auth_pam_external/0.1 FrontPage/4.0.4.3 mod_perl/1.25 configured -- resuming no rmal operations [Wed Jul 16 09:16:29 2003] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec) This will probably say enough (for some). It tells me that jk will not work. But I don't understand why. Anybody ? On Tuesday, July 15, 2003, at 11:29 PM, Simon Pabst wrote: Seems you're not the only one with that problem on
RE: Is there a search engine for the mailing list archive?
http://marc.theaimsgroup.com/?l=tomcat-userr=1w=2 Yoav Shapira Millennium ChemInformatics -Original Message- From: Bongrip [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 15, 2003 6:54 PM To: Tomcat Users List Subject: Is there a search engine for the mailing list archive? I couild not find anywhere to search the mailing list archive. I am sure this question has been asked before, but how do I enable PHP support under Tomcat 4.x? I am porting a PHP based application to Java and need to have both running in parrallel until completed. Thx, CC - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Using mod_jk between physcially separate servers
Greetings, I apologize for this generic post. I looked through the archive, but could not find a complete answer. I have integrated Tomcat 4.1 and Apache 1.3 using mod_jk and ajp13 on the same physical server, but how can this be achieved if each component resides on *physcially separate* servers? Could anyone point me to a link or give a brief anser? Thank you very much in advance. Best Regards, Cuneyt Uysal __ See RedDot Solutions' Enterprise Content Management Suite in action every Tuesday at 1:00 pm ET. http://www.reddot.com/contact/demoindex.htm - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: advise on updating some commons packages
--- Tim Funk [EMAIL PROTECTED] wrote: Yes thats ok. You don't need to be wary as long as you Test test test -Tim Thanks Tim. I will indeed test. I've got it all setup on my development machine and won't be committing for some time. Kevin. __ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Using mod_jk between physcially separate servers
Check this url out, it is for mod_jk2 but you will get the general idea :) http://www.pirack.com/howto/modjk2/ Y. -Original Message- From: Cuneyt Uysal [RedDot] [mailto:[EMAIL PROTECTED] Sent: 16 July 2003 14:01 To: [EMAIL PROTECTED] Subject: Using mod_jk between physcially separate servers Greetings, I apologize for this generic post. I looked through the archive, but could not find a complete answer. I have integrated Tomcat 4.1 and Apache 1.3 using mod_jk and ajp13 on the same physical server, but how can this be achieved if each component resides on *physcially separate* servers? Could anyone point me to a link or give a brief anser? Thank you very much in advance. Best Regards, Cuneyt Uysal __ See RedDot Solutions' Enterprise Content Management Suite in action every Tuesday at 1:00 pm ET. http://www.reddot.com/contact/demoindex.htm - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail has been scanned for all viruses by Star Internet. The service is powered by MessageLabs. For more information on a proactive anti-virus service working around the clock, around the globe, visit: http://www.star.net.uk This e-mail has been scanned for all viruses by Star Internet. The service is powered by MessageLabs. For more information on a proactive anti-virus service working around the clock, around the globe, visit: http://www.star.net.uk - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Re: I'm officially lost with mod_jk
If Apache says 404 not found, your JkMount config is wrong propably, What does your JkMount stuff look like? Are the JkMount directives in global httpd.conf or just in one VirtualHost? Any errors in mod_jk.log? Tomcat Users List [EMAIL PROTECTED] schrieb am 16.07.03 14:54:06: Aha, A typo on my side. changed IfModule mod_jk.so into IfModule mod_jk.c Now my error log file displays : [Wed Jul 16 14:43:40 2003] [notice] Apache/1.3.20 Sun Cobalt (Unix) mod_ssl/2.8.4 OpenSSL/0.9.6b PHP/4.0.3pl1 mod_jk/1.2.2 mod_auth_pam_external/0.1 FrontPage/4.0.4.3 mod_perl/1.25 configured -- resuming normal operations This looks good. At least to me. Now I only can't access the requested pages. If I do www.connecties.com:8080/Friss/ I get the correct index.html page. If I do www.connecties.com/Friss/ I get a 404 doc. not found. this is what it says in the error logfile: [Wed Jul 16 14:44:02 2003] [error] [client 213.17.78.218] File does not exist: /home/sites/home/web/Friss/index.html that's right because it's not there. It is located in my webapps dir inside tomcat. Any idea's ? Kind regards Werner On Wednesday, July 16, 2003, at 02:26 PM, Simon Pabst wrote: Your JK Stuff in httpd.conf looks a bit wrong to me, and the error means that workers.properties is either not found or not loaded, try this: httpd.conf: #For Apache 1.x additional modules should be normally in apache/libexec dir, not in modules as in your config (unless you got Apache 2 now?) IfModule !mod_jk.c LoadModule jk_module /etc/httpd/modules/mod_jk.so #On recent Apache you don't need the following line, but on yours you do propably AddModule mod_jk.c /IfModule # Dont' think IfModule works with mod_jk.so like in your config, you need mod_jk.c there IfModule mod_jk.c JkWorkersFile /etc/httpd/conf/workers.properties JkLogFile /etc/httpd/logs/mod_jk.log JkLogLevel info ... /IfModule workers.properties: workers.java_home=/path/to/java ps=/ worker.list=ajp13 # Use localhost or IP-Address (if Tomcat is on remote machine) for the ajp13 connection host worker.ajp13.port=8009 worker.ajp13.host=localhost worker.ajp13.type=ajp13 Also check your httpd.conf with /path/to/httpd -t /path/to/httpd.conf (you need the binary httpd for this, not the directory) (does same as apachectl configtest) That ioctl error looks bad, if it still persists then, i would try to build Apache from source too, then mod_jk again Tomcat Users List [EMAIL PROTECTED] schrieb am 16.07.03 09:30:29: Gute Morgen Simon, I've compiled the mod_jk myself. it was easy. But I still have problems. I will so you what I have. In httpd.conf : LoadModule jk_module modules/mod_jk.so # MY OWN STUFF HERE IfModule mod_jk.so AddModule mod_jk.c JkWorkersFile /etc/httpd/conf/workers.properties JkLogFile /etc/httpd/logs/mod_jk.log JkLogLevelinfo JkLogStampFormat [%a %b %d %H:%M:%S %Y] JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories JkRequestLogFormat %w %V %T /IfModule In workers.properties : #Define 1 real worker using ajp13 worker.list=ajp13 #Set properties for worker1(ajp13) worker.ajp13.type=ajp13 worker.ajp13.host=www.connecties.com worker.ajp13.port=8009 In server.xml : on a line after Server portt=8005 .. Listener className=org.apache.ajp.tomcat4.config.ApacheConfig modJk=/etc/httpd/modules/mod_jk.so / on a line just after Host name=www.connecties.com . Listener className=org.apache.ajp.tomcat4.config.ApacheConfig append=true forwardAll=false modJk=/etc/httpd/modules/mod_jk.so / And the last part of my server.xml is : !-- Define an Apache-Connector Service -- !-- Service name=Tomcat-Apache Connector className=org.apache.catalina.connector.warp.WarpConnector port=8008 minProcessors=5 maxProcessors=75 enableLookups=true appBase=webapps acceptCount=10 debug=0/ Engine className=org.apache.catalina.connector.warp.WarpEngine name=Apache debug=0 Logger className=org.apache.catalina.logger.FileLogger prefix=apache_log. suffix=.txt timestamp=true/ Realm className=org.apache.catalina.realm.MemoryRealm / Host name=www.connecties.com Context path= docBase=/home/sites/home/web crossContext=true debug=0 reloadable=false trusted=false /Context /Host /Engine /Service The output of the apache error log is : [Wed Jul 16 09:16:27 2003] [error] (25)Inappropriate ioctl for device: Error while opening the workers, jk will not work [Wed Jul 16 09:16:28 2003] [error] (25)Inappropriate ioctl for device:
Still needing helping with jakarta-commons/fileupload
Hi guys, can anybody help me? I am trying to retrieve fields and one file from a submitted form. The question is simple: can jakarta-commons/fileupload does it? I am afraid it just can uploads files! should i use O'reilly package? Code sample would be appreciated. Thanks in advance, Euclides. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
ENC: Still needing help with jakarta-commons/fileupload
Hi guys, can anybody help me? I am trying to retrieve fields and one file from a submitted form. The question is simple: can jakarta-commons/fileupload does it? I am afraid it just can uploads files! should i use O'reilly package? Code sample would be appreciated. Thanks in advance, Euclides. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
I'm confused
I am attempting to connect Apache 2.0.45 and Tomcat 5. Tomcat responds to 8080 on localhost and other machines on my network. This is my confusion: 1) I have been through the docs on the Jakarta site and am not sure if I should be using mod-jk or mod-jk2. 2) I am running on a Windows 2000 Professional machine. I downloaded both the above into the Apache modules directory and added the LoadModule and AddModule statements (pointing to either mod_jk or mod_jk2). However, Apache will not start with the statements. It gets two application event errors: Invalid syntax pointing to the LoadModule statement The Can't locate API module structure 'webapp_module' in file (points to the mod_jk or jk2 dll file). Here are the parameters (commented out so I could start Apache): #LoadModule webapp_module modules/mod_jk2-2.0.43.dll #AddModule mod_jk.c #IfModule mod_jk.c # JkWorkersFile G:\Apache-2.0.45\Apache2\conf\workers.properties # JkMount /examples/* jk2 # JkMount /tomcat-docs/* jk2 # JkLogFile G:\jakarta-tomcat-5\dist\logs\mod_jk.log # JkLogLevel info #/IfModule I notice that all other LoadModule statements point to files with a .so ending. Should I rename the mod.jk dll or do I have to download something else? I am very new to this so I confuse easily when reading the docs. Thank you for your help. Dave == Dave Shaffer email: [EMAIL PROTECTED] Web Site: http://www.litehaus.org -- Time moves on, the moment passes, and then it is gone! C a r p e D i e m !! - Seize The Day! -- The best way to escape from a problem is to solve it. --Alan Saporta --
RE: Is it possible to add header values to the request (not the r espo nse)?
Tim, The getHeader methods does not return any reference to any kind of header object which I could modify. I would have to create my own setHeader method instead. There has to be an easier way to do this. Any other ideas? -Joshua -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 16, 2003 7:34 AM To: Tomcat Users List Subject: Re: Is it possible to add header values to the request (not the respo nse)? You can do this via a Filter and HttpServletRequestWrapper, where your imlpementation of HttpServletRequestWrapper will extend the needed getHeader methods to send the additional stuff you need. -Tim White, Joshua A (HTSC, CASD) wrote: Hey all, My production application uses a site minder web agent. This agent places two name/value pairs into the request header, one for userName, the other for domain. In my application, I have a filter which looks for these values to make sure the user is logged in. Currently I do not have site minder in my development environment, but I would like to simulate its functionality by placing values in the request header before my other filter looks for them. I know that you can place values in the response header. Can it be done with the request as well? This communication, including attachments, is for the exclusive use of addressee and may contain proprietary, confidential or privileged information. If you are not the intended recipient, any use, copying, disclosure, dissemination or distribution is strictly prohibited. If you are not the intended recipient, please notify the sender immediately by return email and delete this communication and destroy all copies. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
jasper2 in ant and the classpath
Hello, I have an issue with the following snippet of my ant build-script: taskdef classname=org.apache.jasper.JspC classpathref=compile.classpath name=jasper2/ jasper2 verbose=3 package=my.package uriroot=${temp.home} outputDir=${temp.home} / The taskdef tag and the jasper2 tag do not care about the path set in compile.classpath. Instead, the CLASSPATH variable from the shell is used. How do I make ant (or especially those two tags) recognize the path in compile.classpath? The strange thing is, that the following snippet works: jspc srcdir=${temp.home}/subpackage destdir=${temp.home}/my/package package=my.package.subpackage classpathref=compile.classpath verbose=9 include name=some.jsp / /jspc However, I have to use a jspc-tag for every subpackage and that tag cannot create includes for the web.xml file. Right? Thank You, Hans -- Johann Uhrmann xpecto AG | Lindenstrasse 81 | D-84030 Ergolding Telefon: 0700 xpecto 00 (0700 973286 00) Telefax: 0700 xpecto 10 (0700 973286 10) Internet: http://www.xpecto.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: I'm officially lost with mod_jk
I realized after sending my previous mail that I didn't have any JkMount directives. I'm currently in the process of creating them. when I have any problems again I will let you know. Regards werner - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[SOLVED] I'm officially lost with mod_jk
I would like to thank all who helped me with solving my problems. it finally works. I think that the biggest problem was me making a STUPID typo in the IfModule... tag. Kind Regards Werner van Mook Java Lead Developer / Trainer Connecties Voor Internet - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Is it possible to add header values to the request (not the r espo nse)?
Howdy, Howdy, The getHeader methods does not return any reference to any kind of header object which I could modify. I would have to create my own setHeader method instead. There has to be an easier way to do this. What Tim suggests IS an easy way to do the kludge you're trying to do. Assuming you know the names of your two special headers, let's say HEADER_X and HEADER_Y, simply overwrite getHeader in your wrapper such that: public String getHeader(String name) { if(name.equals(HEADER_X)) { return FAKE_HEADER_X_VALUE; } else if(name.equals(HEADER_Y)) { return FAKE_HEADER_Y_VALUE; } else { // return wrappedRequest.getHeader(name); // return super.getHeader(name); } } I had the commented out forms because either may apply depending on how you code your wrapper: you pick. You can also modify getHeaderNames() to include your fake headers if you wish: that depends on how your authentication filter is written. Yoav Shapira Any other ideas? -Joshua -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 16, 2003 7:34 AM To: Tomcat Users List Subject: Re: Is it possible to add header values to the request (not the respo nse)? You can do this via a Filter and HttpServletRequestWrapper, where your imlpementation of HttpServletRequestWrapper will extend the needed getHeader methods to send the additional stuff you need. -Tim White, Joshua A (HTSC, CASD) wrote: Hey all, My production application uses a site minder web agent. This agent places two name/value pairs into the request header, one for userName, the other for domain. In my application, I have a filter which looks for these values to make sure the user is logged in. Currently I do not have site minder in my development environment, but I would like to simulate its functionality by placing values in the request header before my other filter looks for them. I know that you can place values in the response header. Can it be done with the request as well? This communication, including attachments, is for the exclusive use of addressee and may contain proprietary, confidential or privileged information. If you are not the intended recipient, any use, copying, disclosure, dissemination or distribution is strictly prohibited. If you are not the intended recipient, please notify the sender immediately by return email and delete this communication and destroy all copies. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Using mod_jk between physcially separate servers
I like the structure of mod_jk2 better, thank you! My only question is where to place mod_jk2.conf? I have a Apache 2.0.40 on Linux Redhat 9.0. Where does this conf file reside? Thank you very much. -Original Message- From: Yiannis Mavroukakis [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 16, 2003 9:17 AM To: Tomcat Users List Subject: RE: Using mod_jk between physcially separate servers Check this url out, it is for mod_jk2 but you will get the general idea :) http://www.pirack.com/howto/modjk2/ Y. -Original Message- From: Cuneyt Uysal [RedDot] [mailto:[EMAIL PROTECTED] Sent: 16 July 2003 14:01 To: [EMAIL PROTECTED] Subject: Using mod_jk between physcially separate servers Greetings, I apologize for this generic post. I looked through the archive, but could not find a complete answer. I have integrated Tomcat 4.1 and Apache 1.3 using mod_jk and ajp13 on the same physical server, but how can this be achieved if each component resides on *physcially separate* servers? Could anyone point me to a link or give a brief anser? Thank you very much in advance. Best Regards, Cuneyt Uysal __ See RedDot Solutions' Enterprise Content Management Suite in action every Tuesday at 1:00 pm ET. http://www.reddot.com/contact/demoindex.htm - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ __ This e-mail has been scanned for all viruses by Star Internet. The service is powered by MessageLabs. For more information on a proactive anti-virus service working around the clock, around the globe, visit: http://www.star.net.uk __ __ __ __ This e-mail has been scanned for all viruses by Star Internet. The service is powered by MessageLabs. For more information on a proactive anti-virus service working around the clock, around the globe, visit: http://www.star.net.uk __ __ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ See RedDot Solutions' Enterprise Content Management Suite in action every Tuesday at 1:00 pm ET. http://www.reddot.com/contact/demoindex.htm - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: SSL through IIS to call the Tomcat - problem with isapi_redie ct.d ll
After spending much time, finally found that isapi_redirect.dll is not able to bring the crystal reports if SSL is used thru IIS. The solution ( we know that a better way can be found but we don't have anymore time allocated for this issue) is we redirected the jsp (from tomcat server) to call ASP page (residing in IIS server) which calls the crystal reports. But if you guys still know the ways to trick around isapi_redirect.dll that would be great. -Original Message- From: Kannan Sundararajan Sent: Tuesday, July 01, 2003 3:57 PM To: 'Tomcat Users List' Subject: RE: SSL through IIS to call the Tomcat - problem with isapi_redie ct.d ll well, scenario is like this. Server 1 [s1] : IIS with isapi_redirector.dll Server 2 [s2] : IIS - SSL with isapi_redirector.dll ( SSL ) Server 3 [s3] : Tomcat Server , Crystal Reports Test-A: s1 connects to s3. The application works fine with crystal reports. Test-B: s2 connects to s3. The application works fine but NOT crystal reports. So hence comes to conclusion that isapi_redirector.dll is the cause.. like to see if I miss something here.. -Original Message- From: John Turner [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 01, 2003 3:24 PM To: Tomcat Users List Subject: Re: SSL through IIS to call the Tomcat - problem with isapi_redie ct.d ll No, unless you care to be more specific than can't use because of problems in isapi_redirect.dll. John On Tue, 1 Jul 2003 15:21:07 -0400, Kannan Sundararajan [EMAIL PROTECTED] wrote: Is there any remedy? :) -Original Message- From: John Turner [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 01, 2003 3:08 PM To: Tomcat Users List Subject: Re: SSL through IIS to call the Tomcat - problem with isapi_rediect.d ll I say your problems are caused by sun spots. John On Tue, 1 Jul 2003 13:12:31 -0400, Kannan Sundararajan [EMAIL PROTECTED] wrote: All, Can't use SSL through IIS to call the Tomcat ( crystal reports DLL ) because of problems in the isapi_redirect.dll. Any idea ? Thanks in advance, Kannan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/ - 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]
Problem finding resource for logger
Hi there I've got a problem finding the log.xml file that specifies the behavior for my log4j. I have tried to put it almost everywhere in my war file, but i keep getting the nullpointerexcpetion. Anyone have advise on where to put it, or how to load it ?? I use this code : //Initialise logger String resource = \\WEB-INF\\log.xml; URL configFileResource = BidServerProxy.class.getResource(resource); DOMConfigurator.configure(configFileResource.getFile()); Any pointers or suggestions ? Abid - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Apache 2 + Tomcat 4.1 + JK2 SSL !
Hello: I am trying to configure the following: 1) Apache 2.x as the HTTP server. 2) Tomcat 4.1.x as the Servlet/JSP container. 3) JK/JK2 to make Apache and Tomcat talk to each other. 4) Apache should be able to serve secured pages via SSL. Obviously, without luck so far! Any pointers would be helpful. Thanks, Ruchi - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Problem finding resource for logger
Howdy, I have tried to put it almost everywhere in my war file, but i keep getting the nullpointerexcpetion. Anyone have advise on where to put it, or how to load it ?? I use this code : //Initialise logger String resource = \\WEB-INF\\log.xml; URL configFileResource = BidServerProxy.class.getResource(resource); DOMConfigurator.configure(configFileResource.getFile()); You can put log4j.xml in WEB-INF/classes and log4j will automatically find it and configure itself. If you want to configure log4j using the classloader resource loader, the log4j.xml file has to be on the classpath: put it in WEB-INF classes and use BidServletProxy.class.getResource(/log4j.xml); If you want to configure log4j using the servlet context resource loader, you can put log4j.xml anywhere under your docBase, e.g. under WEB-INF, and use ServletContext#getResource(/WEB-INF/log4j.xml); Use this URL, or the InputStream from URL.openStream(), as the argument to the DOMConfigurator. Don't use getFile() or other File I/O APIs. Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
unable to access after password change
Hello All, When I installed Tomcat, I used admin/admin for username and password. This morning I changed the password to be more secure. After that, I cannot access the manager or the administration page anymore. Even by restarting Tomcat. All I got is: HTTP Status 403 - Access to the requested resource has been denied Does anyone know why? and how to resolve it? I hope I don't have to re-install Tomcat. Thank you very much. _ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: I'm officially lost with mod_jk
change the port number from 8080 to 80 -Original Message- From: Werner van Mook [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 16, 2003 8:54 AM To: Tomcat Users List Cc: [EMAIL PROTECTED] Subject: Re: I'm officially lost with mod_jk Aha, A typo on my side. changed IfModule mod_jk.so into IfModule mod_jk.c Now my error log file displays : [Wed Jul 16 14:43:40 2003] [notice] Apache/1.3.20 Sun Cobalt (Unix) mod_ssl/2.8.4 OpenSSL/0.9.6b PHP/4.0.3pl1 mod_jk/1.2.2 mod_auth_pam_external/0.1 FrontPage/4.0.4.3 mod_perl/1.25 configured -- resuming normal operations This looks good. At least to me. Now I only can't access the requested pages. If I do www.connecties.com:8080/Friss/ I get the correct index.html page. If I do www.connecties.com/Friss/ I get a 404 doc. not found. this is what it says in the error logfile: [Wed Jul 16 14:44:02 2003] [error] [client 213.17.78.218] File does not exist: /home/sites/home/web/Friss/index.html that's right because it's not there. It is located in my webapps dir inside tomcat. Any idea's ? Kind regards Werner On Wednesday, July 16, 2003, at 02:26 PM, Simon Pabst wrote: Your JK Stuff in httpd.conf looks a bit wrong to me, and the error means that workers.properties is either not found or not loaded, try this: httpd.conf: #For Apache 1.x additional modules should be normally in apache/libexec dir, not in modules as in your config (unless you got Apache 2 now?) IfModule !mod_jk.c LoadModule jk_module /etc/httpd/modules/mod_jk.so #On recent Apache you don't need the following line, but on yours you do propably AddModule mod_jk.c /IfModule # Dont' think IfModule works with mod_jk.so like in your config, you need mod_jk.c there IfModule mod_jk.c JkWorkersFile /etc/httpd/conf/workers.properties JkLogFile /etc/httpd/logs/mod_jk.log JkLogLevel info ... /IfModule workers.properties: workers.java_home=/path/to/java ps=/ worker.list=ajp13 # Use localhost or IP-Address (if Tomcat is on remote machine) for the ajp13 connection host worker.ajp13.port=8009 worker.ajp13.host=localhost worker.ajp13.type=ajp13 Also check your httpd.conf with /path/to/httpd -t /path/to/httpd.conf (you need the binary httpd for this, not the directory) (does same as apachectl configtest) That ioctl error looks bad, if it still persists then, i would try to build Apache from source too, then mod_jk again Tomcat Users List [EMAIL PROTECTED] schrieb am 16.07.03 09:30:29: Gute Morgen Simon, I've compiled the mod_jk myself. it was easy. But I still have problems. I will so you what I have. In httpd.conf : LoadModule jk_module modules/mod_jk.so # MY OWN STUFF HERE IfModule mod_jk.so AddModule mod_jk.c JkWorkersFile /etc/httpd/conf/workers.properties JkLogFile /etc/httpd/logs/mod_jk.log JkLogLevelinfo JkLogStampFormat [%a %b %d %H:%M:%S %Y] JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories JkRequestLogFormat %w %V %T /IfModule In workers.properties : #Define 1 real worker using ajp13 worker.list=ajp13 #Set properties for worker1(ajp13) worker.ajp13.type=ajp13 worker.ajp13.host=www.connecties.com worker.ajp13.port=8009 In server.xml : on a line after Server portt=8005 .. Listener className=org.apache.ajp.tomcat4.config.ApacheConfig modJk=/etc/httpd/modules/mod_jk.so / on a line just after Host name=www.connecties.com . Listener className=org.apache.ajp.tomcat4.config.ApacheConfig append=true forwardAll=false modJk=/etc/httpd/modules/mod_jk.so / And the last part of my server.xml is : !-- Define an Apache-Connector Service -- !-- Service name=Tomcat-Apache Connector className=org.apache.catalina.connector.warp.WarpConnector port=8008 minProcessors=5 maxProcessors=75 enableLookups=true appBase=webapps acceptCount=10 debug=0/ Engine className=org.apache.catalina.connector.warp.WarpEngine name=Apache debug=0 Logger className=org.apache.catalina.logger.FileLogger prefix=apache_log. suffix=.txt timestamp=true/ Realm className=org.apache.catalina.realm.MemoryRealm / Host name=www.connecties.com Context path= docBase=/home/sites/home/web crossContext=true debug=0 reloadable=false trusted=false /Context /Host /Engine /Service The output of the apache error log is : [Wed Jul 16 09:16:27 2003] [error] (25)Inappropriate ioctl for device: Error while opening the workers, jk will not work [Wed Jul 16 09:16:28 2003] [error] (25)Inappropriate ioctl for device: Error while opening the workers, jk will not work [Wed Jul 16 09:16:29 2003] [notice] Apache/1.3.20 Sun Cobalt (Unix) mod_ssl/2.8.4 OpenSSL/0.9.6b PHP/4.0.3pl1 mod_auth_pam_external/0.1 FrontPage/4.0.4.3
RE: unable to access after password change
you should find your passwords in {$catalina_home}\conf\tomcat-users.xml Trevor Paterson PhD [EMAIL PROTECTED] -Original Message- From: epyonne =) [mailto:[EMAIL PROTECTED] Sent: 16 July 2003 15:43 To: [EMAIL PROTECTED] Subject: unable to access after password change Hello All, When I installed Tomcat, I used admin/admin for username and password. This morning I changed the password to be more secure. After that, I cannot access the manager or the administration page anymore. Even by restarting Tomcat. All I got is: HTTP Status 403 - Access to the requested resource has been denied Does anyone know why? and how to resolve it? I hope I don't have to re-install Tomcat. Thank you very much. _ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 - 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]
Session timeout
Hi everyone, How do I configure the session timeout value in Tomcat. I don't want to use code to do it. Any help is appreciated. Thanks, Tarek M. Nabil - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: tomcat-3.3.2 dev 12. July 2003
Unfortunately I did not have time to test this latest build prior to leaving on vacation. I'm not sure what changed. I'll have to investigate when I get back this weekend. Cheers, Larry -Original Message- From: Power-Netz (Schwarz) [mailto:[EMAIL PROTECTED] Sent: Tue 7/15/2003 7:22 AM To: tomcat liste Cc: Subject: tomcat-3.3.2 dev 12. July 2003 [EMAIL PROTECTED] /java]# less /var/log/tomcat.log Exception in thread main java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory at org.apache.tomcat.util.compat.Jdk11Compat.clinit(Jdk11Compat.java:77) at org.apache.tomcat.startup.Main.clinit(Main.java:153) [EMAIL PROTECTED] /java]# cd tomcat something is missing in the tomcat.jar . Has someone a replacement for it? Ihr Support-Team POWER-NETZ Full-Service-Provider - 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: Session timeout
The default setting for session timeout should be done in %CATALINA_HOME%/conf/web.xml Look for the tag session-config -Sudhir. -Original Message- From: Tarek M. Nabil [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 16, 2003 10:47 AM To: 'Tomcat Users List' (E-mail) Subject: Session timeout Hi everyone, How do I configure the session timeout value in Tomcat. I don't want to use code to do it. Any help is appreciated. Thanks, Tarek M. Nabil - 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: Session timeout
You can use, session-config session-timeoutXXX/session-timeout /session-config in your web.xml Regards, A.Sankar -Original Message- From: Tarek M. Nabil [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 16, 2003 8:17 PM To: 'Tomcat Users List' (E-mail) Subject: Session timeout Hi everyone, How do I configure the session timeout value in Tomcat. I don't want to use code to do it. Any help is appreciated. Thanks, Tarek M. Nabil - 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: Session timeout
For application specific setting modify web.xml file of your application by adding session-config session-timeouttime in ms/session-timeout /session-config -Sudhir. -Original Message- From: Tarek M. Nabil [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 16, 2003 10:47 AM To: 'Tomcat Users List' (E-mail) Subject: Session timeout Hi everyone, How do I configure the session timeout value in Tomcat. I don't want to use code to do it. Any help is appreciated. Thanks, Tarek M. Nabil - 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: Using mod_jk between physcially separate servers
Simple, and its in the archives. Change worker.ajp13.host in workers.properties to the IP address of the server hosting your Tomcat instance. John On Wed, 16 Jul 2003 09:00:39 -0400, Cuneyt Uysal [RedDot] [EMAIL PROTECTED] wrote: Greetings, I apologize for this generic post. I looked through the archive, but could not find a complete answer. I have integrated Tomcat 4.1 and Apache 1.3 using mod_jk and ajp13 on the same physical server, but how can this be achieved if each component resides on *physcially separate* servers? Could anyone point me to a link or give a brief anser? Thank you very much in advance. Best Regards, Cuneyt Uysal __ See RedDot Solutions' Enterprise Content Management Suite in action every Tuesday at 1:00 pm ET. http://www.reddot.com/contact/demoindex.htm - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat with log4j output
Hi I just added a servlet with logging done by log4j, and it apparently works ok. But suddenly tomcat has started giving a lot of debug information. The thing is that even though i have set the level to info, it gives me tomcat debug. Is there a setting or something i have awakened by log4j enabling my servlet ? Where and how can i change this behaviour ? Abid - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
File replication (Tomcat cluster ?)
Hello, I have two Tomcat Servers working in session cluster and I need to replicate the content of the Webapp directory. Is it possible ? and how to configure it ? ... Sorry for my poor english ___ Nicou
Re: Using mod_jk between physcially separate servers
There isn't any such file in typical configurations. Only mod_jk.so (JK) has a file called mod_jk.conf, and then only when you enable the ApacheConfig Listeners in server.xml. Check the Tomcat FAQ...there are plenty of links in there for configuring both JK and JK2. John On Wed, 16 Jul 2003 10:07:21 -0400, Cuneyt Uysal [RedDot] [EMAIL PROTECTED] wrote: I like the structure of mod_jk2 better, thank you! My only question is where to place mod_jk2.conf? I have a Apache 2.0.40 on Linux Redhat 9.0. Where does this conf file reside? Thank you very much. -Original Message- From: Yiannis Mavroukakis [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 16, 2003 9:17 AM To: Tomcat Users List Subject: RE: Using mod_jk between physcially separate servers Check this url out, it is for mod_jk2 but you will get the general idea :) http://www.pirack.com/howto/modjk2/ Y. -Original Message- From: Cuneyt Uysal [RedDot] [mailto:[EMAIL PROTECTED] Sent: 16 July 2003 14:01 To: [EMAIL PROTECTED] Subject: Using mod_jk between physcially separate servers Greetings, I apologize for this generic post. I looked through the archive, but could not find a complete answer. I have integrated Tomcat 4.1 and Apache 1.3 using mod_jk and ajp13 on the same physical server, but how can this be achieved if each component resides on *physcially separate* servers? Could anyone point me to a link or give a brief anser? Thank you very much in advance. Best Regards, Cuneyt Uysal __ See RedDot Solutions' Enterprise Content Management Suite in action every Tuesday at 1:00 pm ET. http://www.reddot.com/contact/demoindex.htm - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ __ This e-mail has been scanned for all viruses by Star Internet. The service is powered by MessageLabs. For more information on a proactive anti-virus service working around the clock, around the globe, visit: http://www.star.net.uk __ __ __ __ This e-mail has been scanned for all viruses by Star Internet. The service is powered by MessageLabs. For more information on a proactive anti-virus service working around the clock, around the globe, visit: http://www.star.net.uk __ __ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ See RedDot Solutions' Enterprise Content Management Suite in action every Tuesday at 1:00 pm ET. http://www.reddot.com/contact/demoindex.htm - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: unable to access after password change
Thanks Trevor, for the reply. I found the problem on the tomcat-users.xml file. When I changed my password, I added my name in the Full Name section. It could be because of the space between first name and last name or something else (I am not sure), Tomcat didn't like it and I cannot access, even though I am using the right username and password. Anyway, the problem is resolved by deleting the Full Name. But if anyone knows exactly the reason, I still like to hear. Thank you very much. From: Paterson, Trevor [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Subject: RE: unable to access after password change Date: Wed, 16 Jul 2003 15:47:10 +0100 you should find your passwords in {$catalina_home}\conf\tomcat-users.xml Trevor Paterson PhD [EMAIL PROTECTED] -Original Message- From: epyonne =) [mailto:[EMAIL PROTECTED] Sent: 16 July 2003 15:43 To: [EMAIL PROTECTED] Subject: unable to access after password change Hello All, When I installed Tomcat, I used admin/admin for username and password. This morning I changed the password to be more secure. After that, I cannot access the manager or the administration page anymore. Even by restarting Tomcat. All I got is: HTTP Status 403 - Access to the requested resource has been denied Does anyone know why? and how to resolve it? I hope I don't have to re-install Tomcat. Thank you very much. _ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 - 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] _ MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. http://join.msn.com/?page=features/virus - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat with log4j output
Abid Ali Teepo wrote: Hi I just added a servlet with logging done by log4j, and it apparently works ok. But suddenly tomcat has started giving a lot of debug information. The thing is that even though i have set the level to info, it gives me tomcat debug. Is there a setting or something i have awakened by log4j enabling my servlet ? Where and how can i change this behaviour ? Are You sure that the logger You set to info is also the logger You write to? If You use a control servlet in a different web application to change log levels, there is a chance that You have two different instances of Your logger. Do You deploy the log4j-lib with the web application or do You have it in common/lib? (Putting it in common/lib might solve Your problem) Kind regards, Hans -- Johann Uhrmann xpecto AG | Lindenstrasse 81 | D-84030 Ergolding Telefon: 0700 xpecto 00 (0700 973286 00) Telefax: 0700 xpecto 10 (0700 973286 10) Internet: http://www.xpecto.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Session timeout
Thank you all for your help :) -Original Message- From: Sudhir Movva [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 16, 2003 5:58 PM To: 'Tomcat Users List' Subject: RE: Session timeout For application specific setting modify web.xml file of your application by adding session-config session-timeouttime in ms/session-timeout /session-config -Sudhir. -Original Message- From: Tarek M. Nabil [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 16, 2003 10:47 AM To: 'Tomcat Users List' (E-mail) Subject: Session timeout Hi everyone, How do I configure the session timeout value in Tomcat. I don't want to use code to do it. Any help is appreciated. Thanks, Tarek M. Nabil - 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: I'm confused
On Wed, 16 Jul 2003 09:15:54 -0400, Dave Shaffer [EMAIL PROTECTED] wrote: I am attempting to connect Apache 2.0.45 and Tomcat 5. Tomcat responds to 8080 on localhost and other machines on my network. This is my confusion: 1) I have been through the docs on the Jakarta site and am not sure if I should be using mod-jk or mod-jk2. Use what works for you. Many people are using both. If you want to work with Tomcat 5 (which is alpha), you might want to lean more towards JK2. 2) I am running on a Windows 2000 Professional machine. I downloaded both the above into the Apache modules directory and added the LoadModule and AddModule statements (pointing to either mod_jk or mod_jk2). However, Apache will not start with the statements. It gets two application event errors: Invalid syntax pointing to the LoadModule statement The Can't locate API module structure 'webapp_module' in file (points to the mod_jk or jk2 dll file). OK, you've got a big mixup happening. First, your error message says webapp_module. That means you are trying to use mod_webapp, which is neither mod_jk nor is it mod_jk2. In addition, mod_webapp is the WORST connector you could choose if you want to use Tomcat 5. Here are the parameters (commented out so I could start Apache): #LoadModule webapp_module modules/mod_jk2-2.0.43.dll #AddModule mod_jk.c #IfModule mod_jk.c # JkWorkersFile G:\Apache-2.0.45\Apache2\conf\workers.properties # JkMount /examples/* jk2 # JkMount /tomcat-docs/* jk2 # JkLogFile G:\jakarta-tomcat-5\dist\logs\mod_jk.log # JkLogLevel info #/IfModule Yep, some confusion. First, Apache 2 doesn't use AddModule at all. So, either you are using Apache 1.3 with a version 2 DSO, or you are using Apache 1.3 commands with Apache 2. If you are using Apache 2, then don't use AddModule. Second, if you are loading mod_jk2, then your IfModule statement should read mod_jk2.c, not mod_jk.c. The two are NOT interchangeable. I notice that all other LoadModule statements point to files with a .so ending. Should I rename the mod.jk dll or do I have to download something else? Extension makes no difference. The convention when using Windows shared libraries is to use the extension .dll. In the UNIX/Linux Apache world, the convention is to use the extension .so (for shared object). Apache doesn't care which you use as long as the interface, function calls, etc. are compatible between your Apache version and the version of the Apache module. I am very new to this so I confuse easily when reading the docs. Thank you for your help. Then you should immediately stop what you're doing. Then UNINSTALL Tomcat 5...its NOT for newbies. Install Tomcat 4.1.24 instead. Also, unless you ABSOLUTELY KNOW that you need Apache, there is NO NEED to install it...Tomcat does just fine on its own. You can download Tomcat, run the installer, and change the listening port to 80 and be done with it, and then start learning all about servlets and JSPs. You can always add Apache into the mix later, there is no reason to increase your learning curve unnecessarily. Check my HOWTO: http://www.johnturner.com/howto. Except for version numbers, everything is identical. If you just want to use Tomcat alone, skip everything in the HOWTO except the section marked Installing Tomcat. John - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Using mod_jk between physcially separate servers
Thanks everyone for their help, I ended up using mod_jk v 1.2.3 (mod_jk.so.ap2.0.40.rh9.so), and it worked like butter. I couldn't use jk2 since I couldn't find a compatible binary for versions of Apache lower than 2.0.42 Thanks again... I wish I found this list sooner. ;) -Cuneyt -Original Message- From: John Turner [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 16, 2003 11:15 AM To: Tomcat Users List Subject: Re: Using mod_jk between physcially separate servers There isn't any such file in typical configurations. Only mod_jk.so (JK) has a file called mod_jk.conf, and then only when you enable the ApacheConfig Listeners in server.xml. Check the Tomcat FAQ...there are plenty of links in there for configuring both JK and JK2. John On Wed, 16 Jul 2003 10:07:21 -0400, Cuneyt Uysal [RedDot] [EMAIL PROTECTED] wrote: I like the structure of mod_jk2 better, thank you! My only question is where to place mod_jk2.conf? I have a Apache 2.0.40 on Linux Redhat 9.0. Where does this conf file reside? Thank you very much. -Original Message- From: Yiannis Mavroukakis [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 16, 2003 9:17 AM To: Tomcat Users List Subject: RE: Using mod_jk between physcially separate servers Check this url out, it is for mod_jk2 but you will get the general idea :) http://www.pirack.com/howto/modjk2/ Y. -Original Message- From: Cuneyt Uysal [RedDot] [mailto:[EMAIL PROTECTED] Sent: 16 July 2003 14:01 To: [EMAIL PROTECTED] Subject: Using mod_jk between physcially separate servers Greetings, I apologize for this generic post. I looked through the archive, but could not find a complete answer. I have integrated Tomcat 4.1 and Apache 1.3 using mod_jk and ajp13 on the same physical server, but how can this be achieved if each component resides on *physcially separate* servers? Could anyone point me to a link or give a brief anser? Thank you very much in advance. Best Regards, Cuneyt Uysal __ See RedDot Solutions' Enterprise Content Management Suite in action every Tuesday at 1:00 pm ET. http://www.reddot.com/contact/demoindex.htm - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ __ This e-mail has been scanned for all viruses by Star Internet. The service is powered by MessageLabs. For more information on a proactive anti-virus service working around the clock, around the globe, visit: http://www.star.net.uk __ __ __ __ This e-mail has been scanned for all viruses by Star Internet. The service is powered by MessageLabs. For more information on a proactive anti-virus service working around the clock, around the globe, visit: http://www.star.net.uk __ __ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ See RedDot Solutions' Enterprise Content Management Suite in action every Tuesday at 1:00 pm ET. http://www.reddot.com/contact/demoindex.htm - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ See RedDot Solutions' Enterprise Content Management Suite in action every Tuesday at 1:00 pm ET. http://www.reddot.com/contact/demoindex.htm - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat with log4j output
Hi As far as i know, i only have one logger and i have not put log4j jar in the common/lib i had it in my jdk/jre/ext I tried to move it to common/lib now, but i still get the same output. So i'm getting tomcat debug info even though i never asked for it Is there any way i can override it ? Abid -Original Message- From: Johann Uhrmann [mailto:[EMAIL PROTECTED] Sent: 16. juli 2003 17:25 To: Tomcat Users List Subject: Re: Tomcat with log4j output Abid Ali Teepo wrote: Hi I just added a servlet with logging done by log4j, and it apparently works ok. But suddenly tomcat has started giving a lot of debug information. The thing is that even though i have set the level to info, it gives me tomcat debug. Is there a setting or something i have awakened by log4j enabling my servlet ? Where and how can i change this behaviour ? Are You sure that the logger You set to info is also the logger You write to? If You use a control servlet in a different web application to change log levels, there is a chance that You have two different instances of Your logger. Do You deploy the log4j-lib with the web application or do You have it in common/lib? (Putting it in common/lib might solve Your problem) Kind regards, Hans -- Johann Uhrmann xpecto AG | Lindenstrasse 81 | D-84030 Ergolding Telefon: 0700 xpecto 00 (0700 973286 00) Telefax: 0700 xpecto 10 (0700 973286 10) Internet: http://www.xpecto.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]
RE: Tomcat with log4j output
Never put Log4j in jdk/jre/ext. You can put it in common/lib, but then also put it in the WEB-INF/lib of your webapp unless you are using a custom repository selector. Otherwise, Log4j uses a single logger repository (the default one) and every app that performs configuration will override the configuration of previously configured apps. Putting it in WEB-INF/lib will make it so you have a distinct logging environment and only that app will be configured in the default logger repository. Jake Quoting Abid Ali Teepo [EMAIL PROTECTED]: Hi As far as i know, i only have one logger and i have not put log4j jar in the common/lib i had it in my jdk/jre/ext I tried to move it to common/lib now, but i still get the same output. So i'm getting tomcat debug info even though i never asked for it Is there any way i can override it ? Abid -Original Message- From: Johann Uhrmann [mailto:[EMAIL PROTECTED] Sent: 16. juli 2003 17:25 To: Tomcat Users List Subject: Re: Tomcat with log4j output Abid Ali Teepo wrote: Hi I just added a servlet with logging done by log4j, and it apparently works ok. But suddenly tomcat has started giving a lot of debug information. The thing is that even though i have set the level to info, it gives me tomcat debug. Is there a setting or something i have awakened by log4j enabling my servlet ? Where and how can i change this behaviour ? Are You sure that the logger You set to info is also the logger You write to? If You use a control servlet in a different web application to change log levels, there is a chance that You have two different instances of Your logger. Do You deploy the log4j-lib with the web application or do You have it in common/lib? (Putting it in common/lib might solve Your problem) Kind regards, Hans -- Johann Uhrmann xpecto AG | Lindenstrasse 81 | D-84030 Ergolding Telefon: 0700 xpecto 00 (0700 973286 00) Telefax: 0700 xpecto 10 (0700 973286 10) Internet: http://www.xpecto.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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat + Apache + mod_jk HOWTO
Hi, Can someone point me to a good Tomcat + Apache-1.3.x + mod_jk HOWTO that covers Apache's VirtualHosts? I found a nice one by Pascal Chong at http://linux-sxs.org/internet_serving/tomcat4.1x.html It's good for initial setup, but does not cover many more things... I've got Tomcat working ok with mod_jk + Apache, but I'd like info on configuring Apache's VirtualHosts to use Tomcat.. There's this HOWTO: http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk2/doc/jk2/vhost howto.html but it covers Apache-2, and I tried it with my Apache-1.3.27 and doesn't work.. Thanks in advanced, Juan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Redirect to home page on logon
Hi everyone, I have an application that uses beans stored in the session context. If the user's session times out, he's asked to re-login on his next request. For this, I'm using J2EE security; I'm not doing it myself. After the user is finished with the re-login, he's supposed to complete his request, but the fact that the beans are not in the session anymore produces an error. Unfortunately, those beans are specific to the last request the user made, so I cannot re-initialize them in a listener for session creation. I was wondering if there's a way to configure security so that after the user logs in he's redirected to a certain page instead of being able to continue his last request. I know this can be done manually, but I would have to do it in every web component I have which is really tiresome. Any quick solutions? Any help is appreciated. I'm sorry that this question is not Tomcat specific, but I tried the servlet-interest list and got no responses. Thanks, Tarek M. Nabil - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat + Apache + mod_jk HOWTO
If you consider localhost to be a VirtualHost (it is), then the HOWTOs should be OK. If you need more info, this may help: http://marc.theaimsgroup.com/?l=tomcat-userm=105778185321556w=2 The only thing I would change from my post earlier this month is that I would setup a separate director for each host that is not under CATALINA_HOME/webapps. John On Wed, 16 Jul 2003 12:58:28 -0300, Juan Nin [EMAIL PROTECTED] wrote: Hi, Can someone point me to a good Tomcat + Apache-1.3.x + mod_jk HOWTO that covers Apache's VirtualHosts? I found a nice one by Pascal Chong at http://linux-sxs.org/internet_serving/tomcat4.1x.html It's good for initial setup, but does not cover many more things... I've got Tomcat working ok with mod_jk + Apache, but I'd like info on configuring Apache's VirtualHosts to use Tomcat.. There's this HOWTO: http://jakarta.apache.org/builds/jakarta-tomcat- connectors/jk2/doc/jk2/vhost howto.html but it covers Apache-2, and I tried it with my Apache-1.3.27 and doesn't work.. Thanks in advanced, Juan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Don't know what happened
ENVIROMENT: Tomcat 4.1.24 + Apache 2.0.47 + mod_jk2 2.0.43 on Windows XP Professional PROBLEM: I installed and configured Apache + Tomcat according to directions in http://www.greenfieldresearch.ca/technical/jk2_config.html#socket Everything was working fine but now when starting Tomcat all the logs point out this problem: java.lang.ClassNotFoundException: org.netbeans.modules.web.monitor.server.MonitorFilter at A lot of places actually - If necessary, I'll include the complete log Yesterday I configured NetBeans (v3.5) to use my Tomcat external installation (C:\ApacheGroup\Tomcat4.1.24\) during development by adding it to the Server Registry-Installed Servers-Tomcat section in NetBeans' Runtime tab, but that was all I did, didn't change any configuration file(s). Don't know if this is the root of the problem, but it is the only strange thing I've done to my Apache+Tomcat enviroment. Any help would be very much appreciated before I go for the caveman's solution: reinstall/reconfigure everything ;-) Regards, Carlos Cajina - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat with log4j output
How come it has to be both in common/libs and in the WEB-INF ? What will i be missing if i only put it in WEB-INF ? Abid -Original Message- From: Jacob Kjome [mailto:[EMAIL PROTECTED] Sent: 16. juli 2003 17:57 To: Tomcat Users List Subject: RE: Tomcat with log4j output Never put Log4j in jdk/jre/ext. You can put it in common/lib, but then also put it in the WEB-INF/lib of your webapp unless you are using a custom repository selector. Otherwise, Log4j uses a single logger repository (the default one) and every app that performs configuration will override the configuration of previously configured apps. Putting it in WEB-INF/lib will make it so you have a distinct logging environment and only that app will be configured in the default logger repository. Jake Quoting Abid Ali Teepo [EMAIL PROTECTED]: Hi As far as i know, i only have one logger and i have not put log4j jar in the common/lib i had it in my jdk/jre/ext I tried to move it to common/lib now, but i still get the same output. So i'm getting tomcat debug info even though i never asked for it Is there any way i can override it ? Abid -Original Message- From: Johann Uhrmann [mailto:[EMAIL PROTECTED] Sent: 16. juli 2003 17:25 To: Tomcat Users List Subject: Re: Tomcat with log4j output Abid Ali Teepo wrote: Hi I just added a servlet with logging done by log4j, and it apparently works ok. But suddenly tomcat has started giving a lot of debug information. The thing is that even though i have set the level to info, it gives me tomcat debug. Is there a setting or something i have awakened by log4j enabling my servlet ? Where and how can i change this behaviour ? Are You sure that the logger You set to info is also the logger You write to? If You use a control servlet in a different web application to change log levels, there is a chance that You have two different instances of Your logger. Do You deploy the log4j-lib with the web application or do You have it in common/lib? (Putting it in common/lib might solve Your problem) Kind regards, Hans -- Johann Uhrmann xpecto AG | Lindenstrasse 81 | D-84030 Ergolding Telefon: 0700 xpecto 00 (0700 973286 00) Telefax: 0700 xpecto 10 (0700 973286 10) Internet: http://www.xpecto.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] - 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: Don't know what happened
Howdy, Perhaps you need to copy this monitor filter into the WEB-INF/lib or WEB-INF/classes directory of the webapp where you want it used. Yoav Shapira Millennium ChemInformatics -Original Message- From: Carlos Cajina [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 16, 2003 1:11 PM To: Tomcat Users List Subject: Don't know what happened ENVIROMENT: Tomcat 4.1.24 + Apache 2.0.47 + mod_jk2 2.0.43 on Windows XP Professional PROBLEM: I installed and configured Apache + Tomcat according to directions in http://www.greenfieldresearch.ca/technical/jk2_config.html#socket Everything was working fine but now when starting Tomcat all the logs point out this problem: java.lang.ClassNotFoundException: org.netbeans.modules.web.monitor.server.MonitorFilter at A lot of places actually - If necessary, I'll include the complete log Yesterday I configured NetBeans (v3.5) to use my Tomcat external installation (C:\ApacheGroup\Tomcat4.1.24\) during development by adding it to the Server Registry-Installed Servers-Tomcat section in NetBeans' Runtime tab, but that was all I did, didn't change any configuration file(s). Don't know if this is the root of the problem, but it is the only strange thing I've done to my Apache+Tomcat enviroment. Any help would be very much appreciated before I go for the caveman's solution: reinstall/reconfigure everything ;-) Regards, Carlos Cajina - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: File replication (Tomcat cluster ?)
Nicolas LANTERNIER wrote: I have two Tomcat Servers working in session cluster and I need to replicate the content of the Webapp directory. Is it possible ? and how to configure it ? This is not something that Tomcat will handle. You will need to setup your own replication of the document root. -Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: File replication (Tomcat cluster ?)
Normally there's no need for replicating your webapp, just put it somewhere outside the tomcat directories and point the application contexts in both tomcats to that directory (with absolute pathnames) At 17:13 16.07.2003 +0200, you wrote: Hello, I have two Tomcat Servers working in session cluster and I need to replicate the content of the Webapp directory. Is it possible ? and how to configure it ? ... Sorry for my poor english ___ Nicou - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RES: unable to access after password change
Where (how) did u change the password? check TOMCAT_DIR/conf/tomcat-users.xml to see if ur using the correct password. ___ :: Christian J. Dechery :: Accenture do Brasil :: CHT - Solutions Operations :: [EMAIL PROTECTED] -Mensagem original- De: epyonne =) [mailto:[EMAIL PROTECTED] Enviada em: quarta-feira, 16 de julho de 2003 11:43 Para: [EMAIL PROTECTED] Assunto: unable to access after password change Hello All, When I installed Tomcat, I used admin/admin for username and password. This morning I changed the password to be more secure. After that, I cannot access the manager or the administration page anymore. Even by restarting Tomcat. All I got is: HTTP Status 403 - Access to the requested resource has been denied Does anyone know why? and how to resolve it? I hope I don't have to re-install Tomcat. Thank you very much. _ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 - 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: SSL configuration for Apache HTTP server
Download and install latest version of openssl (normally in /usr/local/ssl or /usr/local/openssl): http://www.openssl.org/ Apache 1.x: download and install modssl: http://www.modssl.org/ edit SSL Stuff in apache/conf/httpd.conf to suit your needs Apache 2.x: build from source with: ./configure --enable-ssl --with-ssl=/path/to/openssl ... edit apache2/conf/ssl.conf to suit your needs At 18:15 16.07.2003 +0530, you wrote: hello, How to configure SSL in apache HTTP server. Apache and tomcat are integrated. please help thanks and regards Sushir - 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: mod_jk round robin problem stateless session beans
np Norm :-) fixing this should be possible in mod_jk2 at least, think i'll post this at bugzilla.apache.org Checked the user distribution on our server today and its nearly even on all Tomcats :o) Thanks a lot to Bill for that hint with worker mpm. At 07:21 16.07.2003 +1000, you wrote: Good morning Simon. Thanks for the research. Norm - Original Message - From: Simon Pabst [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, July 16, 2003 3:58 AM Subject: Re: Re: mod_jk round robin problem stateless session beans I did a short test with Apache 2 worker mpm today and now mod_jk2 seems to distribute the sessions more evenly, will post more results tomorrow. So round robin code is broken with current mod_jk1/2 and prefork Apache (1.3.27 and default Apache 2 configuration) Unfortunately you can't use Apache 2 everywhere, i think it doesn't compile with worer mpm on solaris for example. To install Apache 2 with worker mpm you need to build it from source and use the following configure: ./configure --with-mpm=worker ... This should be fixed so Apache 1 users get a working round robin too. Although i don't know much about the mod_jk(2) code, I agree to Bill, this should be a relatively easy fix. In jk2 there's a shared memory file at least, should be enough to store the information about the last used worker if there's no other way. At 11:37 15.07.2003 +0200, you wrote: Thanks for you wisdom guys :-) I'll try and test if Apache 2 with worker mpm works better, although i still suspect the stateless session beans are part of the problem. Since like i said with sticky_session off or the SessionExample with sticky_session on the round robin seems to works fine. Besides the behaviour of sticky_session off should be theoretically similar as when any new user logs on to the server and hasn't established a session yet, right? The mod_jk lb_factor and lb_value also seem to do pretty nothing (on prefork Apache): - Tested low lb_factor on first Tomcat and increased lb_factor on following Tomcats, last Tomcats with higher lb_factor still got no requests - lb_value is almost always the same as lb_factor in JK2's jkstatus page when you access the application the lb_value changes to exactly twice as the lb_factor (on first Tomcat mostly) and then goes down to value of lb_factor again (before request: lb_factor 100, lb_value 100 after request: lb_factor 100, lb_value 200 a bit later: lb_factor 100, lb_value 100 again) How the Load Balanciung of mod_jk could be enhanced to be a real load balancing, not just round robin: Have some rules regarding the Status/Load of Tomcat/JVM, which you can put in any order you prefer (mod_backhand does sth. similar) (those will propably need jni or sth. else to work): - byJVMThreads - byJVMMemoryUsage - byJVMCPUUsage - byRoundRobin (and one which actually works ;-) etc. We considered alternative methods for load balancing too, but they all have some other downsides, so the best thing would still be if mod_jk round robin works as its supposed to be: - DNS Round Robin or Apache mod_rewrite Round Robin (similar sub-URLs for one app on same server - saves you from buying several SSL certificates) Problems: - Bookmarks - No real load balancing (ok mod_jk doesn't seem to have this either) - Requests go to down Tomcats also, no failover - Apache Loadbalancing with mod_backhand Nice approach of several Load Balancing decision rules (byCPU, byApacheChilds, byRandom etc.), which the user can put in any order he likes See http://www.backhand.org/mod_backhand/FAQ.shtml#question7 Problems: - HTTPS Apache in Front with mod_backhand using Proxy Connections to connect to Apache/Tomcats in back causes problems because of URL Redirects from Tomcat/Java - Requests go to down Tomcats also, no failover - Not sure if keeping Sessions works (backhand could use JSESSIONID for sticky sessions, have yet to test that) - Hardware Load Balancer (dind't investigate much on that) Problems: - IP based, read sth. that this ain't a particular good solution too mod_jk Tomcat Users List [EMAIL PROTECTED] schrieb am 15.07.03 07:45:11: This is a pretty good description of what goes on, and it results in the highly skewed distributions that you are seeing. I had thought that if you are using Apache-2 with the 'worker' MPM, that you should get a better distribution (but haven't tried it myself). With Apache-1.3.x or Apache-2 with the 'pre-fork' MPM this is as good as it gets at the moment (since the 'pre-forked' processes don't talk to each other). In theory, it should be a relatively easy fix in Jk2 to get 'pre-fork' working, but AFAIK, it hasn't been implemented yet. NormW [EMAIL PROTECTED] wrote in message news:[EMAIL
Re: RE: File replication (Tomcat cluster ?)
Oh, didn't realize you're on different servers, too much thinking in our own setup, sry ;-) Hmm NFS has its own file caches so you could do that, besides Tomcat caches stuff in its own local work directory and Ram. Or you just set up a script/cronjob to do an rsync or scp/rcp between the two local directories. Don't think Tomcat itself has anything which makes that possible (correct me if i'm wrong), maybe Tomcat 5 will. Tomcat Users List [EMAIL PROTECTED] schrieb am 16.07.03 18:39:51: So I should share the same directory for the Tomcat Servers, with nfs ? Is It a Good Solution for High Load environment ? -Message d'origine- De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Envoye : mercredi 16 juillet 2003 18:22 A : Tomcat Users List Objet : Re: File replication (Tomcat cluster ?) Normally there's no need for replicating your webapp, just put it somewhere outside the tomcat directories and point the application contexts in both tomcats to that directory (with absolute pathnames) At 17:13 16.07.2003 +0200, you wrote: Hello, I have two Tomcat Servers working in session cluster and I need to replicate the content of the Webapp directory. Is it possible ? and how to configure it ? ... Sorry for my poor english ___ Nicou - 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] -- Simon Pabst E-Mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: PERMISSIONS FOR JDBC ORACLE APPLICATION
Check to make sure you have Oracle configured to only use one port. Here is the thread that talked about that: http://marc.theaimsgroup.com/?l=tomcat-userm=105517372716920w=2 Otherwise- you'll need to adjust your permissions accordingly. -Tim Paterson, Trevor wrote: Hi I am trying to start using the SecurityManager/catalina.policy for a servelt/jsp application that accesses an Oracle Database for read/write. Everything works fine when I set: permission java.security.AllPermission for the entire application. but if I try and limit permissions, any table varchar2 data I get back from queries via ResultSet.getObject().toString() seems to be (?URL)encoded - Dates and ints are OK. I can't work out which file or driver doesn't have appropriate conditions - can anyone help? I have tried: permission java.net.SocketPermission xxx.xxx.xxx.xxx:, connect; permission java.util.PropertyPermission oracle.jserver.version, read; permission java.util.PropertyPermission oracle.jdbc.driver.OracleDriver, read; permission java.util.PropertyPermission /WEB-INF/lib/ojdbc.jar, read; permission java.util.PropertyPermission java.net.*, read; permission java.util.PropertyPermission java.sql.*, read; currently running jdk 1.4 and Tomcat 4.1.12 and Oracle 9i Ta Trevor - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: pageContext
response.setContentType(...); /* image/gif or appropriate */ -Tim Dominic Parry wrote: Hi I have an jsp that outputs an image. What do I need to set the pagecontext type to in order for the browser to understand the image? At the moment it prompts me to save the image as jspname.jsp, but If I rename the extension to jpg, it has actually downloaded the image. Thanks Dom - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Querying container's user database
Its container specific. Also to do so - the Realm would have to provide that ability - so even this is Realm specfic too. http://jakarta.apache.org/tomcat/tomcat-4.1-doc/realm-howto.html And to top if off - You app will need to be be a privledged webapp so it may see the catalina internals. (which is where realms live) -Tim Christian J. Dechery - ACCENTURE wrote: Is there a way I can query the container's user database to find out if a specifed login exists or not?? If yes, is the solution container-specific? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Redirect to home page on logon
Use a filter. Its container independent. The filter runs on the appropriate (or all) requests and would check if the beans are in the session. If not - redirect. OR If all the pages set an error condition - you might be able to use an error mapping directive in web.xml -Tim Tarek M. Nabil wrote: Hi everyone, I have an application that uses beans stored in the session context. If the user's session times out, he's asked to re-login on his next request. For this, I'm using J2EE security; I'm not doing it myself. After the user is finished with the re-login, he's supposed to complete his request, but the fact that the beans are not in the session anymore produces an error. Unfortunately, those beans are specific to the last request the user made, so I cannot re-initialize them in a listener for session creation. I was wondering if there's a way to configure security so that after the user logs in he's redirected to a certain page instead of being able to continue his last request. I know this can be done manually, but I would have to do it in every web component I have which is really tiresome. Any quick solutions? Any help is appreciated. I'm sorry that this question is not Tomcat specific, but I tried the servlet-interest list and got no responses. Thanks, Tarek M. Nabil - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: TC 4.1 + symbolic linking
I can't get this to work. I have the following directory structure: /opt/jakarta/webapps/siteexplorer Under siteexplorer, I have a symbolic lin named htmldoc. I can follow the links manually and everything works. Here is how the context is defined in the server.xml: Context docBase=./siteexplorer priveleged=false path=/siteexplorer Resources className=org.apache.naming.resources.FileDirContext allowLinking=true caseSensitive=false / /Context I am running tomcat 4.1.12 on Linux. I get no messages and I am NOT starting tomcat with -security. I even made the following change to catalina.policy: grant codeBase file:${catalina.home}/webapps/siteexplorer/htmldoc/- { permission java.security.AllPermission; }; Does anybody have any clue? --- Tim Funk [EMAIL PROTECTED] wrote: Tomcat by default doesn't like symbolic links. Its a security vulnerablility. To use sym links - you must tell tomcat to use them. http://marc.theaimsgroup.com/?l=tomcat-userm=105159411609623w=2 -Tim Norris Shelton wrote: We have some HTML files that are on another machine. A link was created (htmldoc). I then modified the server.xml by adding the following to the context definition: Resources className=org.apache.naming.resources.FileDirContext caseSensitive=false allowLinking=true/ The context will not load (no errors). I even added an entry in the catalina.policy: // The permissions granted to the context WEB-INF/classes directory grant codeBase file:${catalina.home}/webapps/siteexplorer/htmldoc/- { }; If I remove the allowLinking resource, the app starts correctly. Anyone have any ideas on what the problem is. = Norris Shelton Software Engineer Sun Certified Java 1.1 Programmer Appriss, Inc. ICQ# 26487421 AIM NorrisEShelton YIM norrisshelton __ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.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] = Norris Shelton Software Engineer Sun Certified Java 1.1 Programmer Appriss, Inc. ICQ# 26487421 AIM NorrisEShelton YIM norrisshelton __ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Changing encoding for Tomcat
I am trying to run a web app that requires the file encoding to be ISO-8859-1. I am running Tomcat 4.0.6 on Windows 2000 using the tomcat.exe running as a service. The documentation for the application says that the encoding can be changed by calling Tomcat with CATALINA_OPTS set to -Dfile.encoding=ISO-8859-1 I have put set CATALINA_OPTS=-Dfile.encoding=ISO-8859-1 in the bin/catalina.bat and bin/startup.bat files, but neither has worked. How do I change the encoding for Tomcat if I am running it as a service on Windows 2000? __ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: TC 4.1 + symbolic linking
What happens if you copy htmldoc to its symlink location and not use the sym link? Do you still get the same error? If you do - then the error has nothing to do with symlinks. -Tim (Grasping at straws) Norris Shelton wrote: I can't get this to work. I have the following directory structure: /opt/jakarta/webapps/siteexplorer Under siteexplorer, I have a symbolic lin named htmldoc. I can follow the links manually and everything works. Here is how the context is defined in the server.xml: Context docBase=./siteexplorer priveleged=false path=/siteexplorer Resources className=org.apache.naming.resources.FileDirContext allowLinking=true caseSensitive=false / /Context I am running tomcat 4.1.12 on Linux. I get no messages and I am NOT starting tomcat with -security. I even made the following change to catalina.policy: grant codeBase file:${catalina.home}/webapps/siteexplorer/htmldoc/- { permission java.security.AllPermission; }; Does anybody have any clue? --- Tim Funk [EMAIL PROTECTED] wrote: Tomcat by default doesn't like symbolic links. Its a security vulnerablility. To use sym links - you must tell tomcat to use them. http://marc.theaimsgroup.com/?l=tomcat-userm=105159411609623w=2 -Tim Norris Shelton wrote: We have some HTML files that are on another machine. A link was created (htmldoc). I then modified the server.xml by adding the following to the context definition: Resources className=org.apache.naming.resources.FileDirContext caseSensitive=false allowLinking=true/ The context will not load (no errors). I even added an entry in the catalina.policy: // The permissions granted to the context WEB-INF/classes directory grant codeBase file:${catalina.home}/webapps/siteexplorer/htmldoc/- { }; If I remove the allowLinking resource, the app starts correctly. Anyone have any ideas on what the problem is. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat + Apache + mod_jk HOWTO
From: John Turner [EMAIL PROTECTED] If you consider localhost to be a VirtualHost (it is), then the HOWTOs should be OK. If you need more info, this may help: http://marc.theaimsgroup.com/?l=tomcat-userm=105778185321556w=2 The only thing I would change from my post earlier this month is that I would setup a separate director for each host that is not under CATALINA_HOME/webapps. thnx John! it's now working.. the problem was that I was not defining the host in server.xml I thought that while using it with mod_jk + apache y only had to define it in httpd.conf regards, Juan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Changing encoding for Tomcat
You use this tool: http://web.bvu.edu/staff/david/tcservcfg/ As advertised by ... http://jakarta.apache.org/tomcat/faq/windows.html -Tim Eric MacAdie wrote: I am trying to run a web app that requires the file encoding to be ISO-8859-1. I am running Tomcat 4.0.6 on Windows 2000 using the tomcat.exe running as a service. The documentation for the application says that the encoding can be changed by calling Tomcat with CATALINA_OPTS set to -Dfile.encoding=ISO-8859-1 I have put set CATALINA_OPTS=-Dfile.encoding=ISO-8859-1 in the bin/catalina.bat and bin/startup.bat files, but neither has worked. How do I change the encoding for Tomcat if I am running it as a service on Windows 2000? __ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.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]
RE: Tomcat with log4j output
Quoting Abid Ali Teepo [EMAIL PROTECTED]: How come it has to be both in common/libs and in the WEB-INF ? What will i be missing if i only put it in WEB-INF ? Abid It isn't that is *has* to be in common/lib. You can have it only in WEB- INF/lib and be just fine. It *can* be in common/lib where it will be automagically used by commons-logging (the logging API that Tomcat uses) and if you were to use a custom repository selector, then you wouldn't need it in WEB- INF/lib at all because your app would be using the globally accessible log4j.jar but using a distinct logger repository for each application so that you wouldn't have to worry about different app's log4j configuration conflicting. Of course, as soon as an app depends on the default logger repository to be unique for itself, then you run into trouble, which is where the WEB-INF/lib idea will be far simpler to deal with. Jake -Original Message- From: Jacob Kjome [mailto:[EMAIL PROTECTED] Sent: 16. juli 2003 17:57 To: Tomcat Users List Subject: RE: Tomcat with log4j output Never put Log4j in jdk/jre/ext. You can put it in common/lib, but then also put it in the WEB-INF/lib of your webapp unless you are using a custom repository selector. Otherwise, Log4j uses a single logger repository (the default one) and every app that performs configuration will override the configuration of previously configured apps. Putting it in WEB-INF/lib will make it so you have a distinct logging environment and only that app will be configured in the default logger repository. Jake Quoting Abid Ali Teepo [EMAIL PROTECTED]: Hi As far as i know, i only have one logger and i have not put log4j jar in the common/lib i had it in my jdk/jre/ext I tried to move it to common/lib now, but i still get the same output. So i'm getting tomcat debug info even though i never asked for it Is there any way i can override it ? Abid -Original Message- From: Johann Uhrmann [mailto:[EMAIL PROTECTED] Sent: 16. juli 2003 17:25 To: Tomcat Users List Subject: Re: Tomcat with log4j output Abid Ali Teepo wrote: Hi I just added a servlet with logging done by log4j, and it apparently works ok. But suddenly tomcat has started giving a lot of debug information. The thing is that even though i have set the level to info, it gives me tomcat debug. Is there a setting or something i have awakened by log4j enabling my servlet ? Where and how can i change this behaviour ? Are You sure that the logger You set to info is also the logger You write to? If You use a control servlet in a different web application to change log levels, there is a chance that You have two different instances of Your logger. Do You deploy the log4j-lib with the web application or do You have it in common/lib? (Putting it in common/lib might solve Your problem) Kind regards, Hans -- Johann Uhrmann xpecto AG | Lindenstrasse 81 | D-84030 Ergolding Telefon: 0700 xpecto 00 (0700 973286 00) Telefax: 0700 xpecto 10 (0700 973286 10) Internet: http://www.xpecto.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] - 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: Changing encoding for Tomcat
Thanks for the link. I will check it out. EKMacAdie --- Tim Funk [EMAIL PROTECTED] wrote: You use this tool: http://web.bvu.edu/staff/david/tcservcfg/ As advertised by ... http://jakarta.apache.org/tomcat/faq/windows.html -Tim Eric MacAdie wrote: I am trying to run a web app that requires the file encoding to be ISO-8859-1. I am running Tomcat 4.0.6 on Windows 2000 using the tomcat.exe running as a service. The documentation for the application says that the encoding can be changed by calling Tomcat with CATALINA_OPTS set to -Dfile.encoding=ISO-8859-1 I have put set CATALINA_OPTS=-Dfile.encoding=ISO-8859-1 in the bin/catalina.bat and bin/startup.bat files, but neither has worked. How do I change the encoding for Tomcat if I am running it as a service on Windows 2000? __ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RES: Querying container's user database
So I'm screwed? hehehehe I don't know if u've seen my post about logging off container's authenticated users. Can u please check it out, U seem to know about the subject. Thanks ___ :: Christian J. Dechery :: Accenture do Brasil :: CHT - Solutions Operations :: [EMAIL PROTECTED] -Mensagem original- De: Tim Funk [mailto:[EMAIL PROTECTED] Enviada em: quarta-feira, 16 de julho de 2003 14:21 Para: Tomcat Users List Assunto: Re: Querying container's user database Its container specific. Also to do so - the Realm would have to provide that ability - so even this is Realm specfic too. http://jakarta.apache.org/tomcat/tomcat-4.1-doc/realm-howto.html And to top if off - You app will need to be be a privledged webapp so it may see the catalina internals. (which is where realms live) -Tim Christian J. Dechery - ACCENTURE wrote: Is there a way I can query the container's user database to find out if a specifed login exists or not?? If yes, is the solution container-specific? - 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 DB connection error page?
I have a connection pool w/TC5 (and error-page in web.xml), but sometimes DB is down. How do I display an error page saying db is down (since some of this is at the container, not war)? tia, .V - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 5 DB connection error page?
You could throw an exception (of some custom type) siginifying the db is down and configure web.xml to catch that exception. Or use a filter which know the status of the database. And if the filter detects the database has gone away - it can forward to an error page instead of following the filterChain. -Tim Vic Cekvencih wrote: I have a connection pool w/TC5 (and error-page in web.xml), but sometimes DB is down. How do I display an error page saying db is down (since some of this is at the container, not war)? tia, .V - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Is there a Bug at Jakarta-commons/fileupload when parsing?!
Hi guys, i guess that package FileUpload has a bug whenever it try to parse HTTPRequest. I always get the javaNullPointerException error message whenever this servlet runs. HERE IS THE CODE: ... boolean isMultipart = FileUpload.isMultipartContent(request); FileUpload upload = new FileUpload(); System.out.println(Passei 0); ERROR HERE= List items = upload.parseRequest(request); System.out.println(Passei 1); Iterator iter = items.iterator(); while (iter.hasNext()) { //String comment = ((FileItem)i.next()).getString(); FileItem item = (FileItem)iter.next(); if ( item.isFormField()) { String name = item.getFieldName(); String value = item.getString(); System.out.println(item eh: + name); } else { String nomeArq = item.getName(); long tamBytes = item.getSize(); int tam = (int) tamBytes; // InputStream uploadFile = item.getInputStream(); System.out.println(nome do arquivo eh: + nomeArq ); // uploadFile.close(); // byte [] conteudo; // conteudo.length( tam ); byte[] conteudo = item.get(); } } System.out.println (Passei fim); Any help would be appreciated! Thanks, Euclides. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: RES: Querying container's user database
If all the auth data is in the session (with FORM based auth it usually is) - then invalidate the session via session.invalidate() -Tim Christian J. Dechery - ACCENTURE wrote: So I'm screwed? hehehehe I don't know if u've seen my post about logging off container's authenticated users. Can u please check it out, U seem to know about the subject. Thanks ___ :: Christian J. Dechery :: Accenture do Brasil :: CHT - Solutions Operations :: [EMAIL PROTECTED] -Mensagem original- De: Tim Funk [mailto:[EMAIL PROTECTED] Enviada em: quarta-feira, 16 de julho de 2003 14:21 Para: Tomcat Users List Assunto: Re: Querying container's user database Its container specific. Also to do so - the Realm would have to provide that ability - so even this is Realm specfic too. http://jakarta.apache.org/tomcat/tomcat-4.1-doc/realm-howto.html And to top if off - You app will need to be be a privledged webapp so it may see the catalina internals. (which is where realms live) -Tim Christian J. Dechery - ACCENTURE wrote: Is there a way I can query the container's user database to find out if a specifed login exists or not?? If yes, is the solution container-specific? - 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: PERMISSIONS FOR JDBC ORACLE APPLICATION
interesting to know about oracle port openings - our oracle9 is on a redhat linux machine however giving my application permission to talk to any port on that machine ( or indeed any IP address...) doesnt solve the problem. is it an issue with the driver? thanks trevor -Original Message- From: Tim Funk [] Sent: 16 July 2003 18:16 To: Tomcat Users List Subject: Re: PERMISSIONS FOR JDBC ORACLE APPLICATION Check to make sure you have Oracle configured to only use one port. Here is the thread that talked about that: http://marc.theaimsgroup.com/?l=tomcat-userm=105517372716920w=2 Otherwise- you'll need to adjust your permissions accordingly. -Tim Paterson, Trevor wrote: Hi I am trying to start using the SecurityManager/catalina.policy for a servelt/jsp application that accesses an Oracle Database for read/write. Everything works fine when I set: permission java.security.AllPermission for the entire application. but if I try and limit permissions, any table varchar2 data I get back from queries via ResultSet.getObject().toString() seems to be (?URL)encoded - Dates and ints are OK. I can't work out which file or driver doesn't have appropriate conditions - can anyone help? I have tried: permission java.net.SocketPermission xxx.xxx.xxx.xxx:, connect; permission java.util.PropertyPermission oracle.jserver.version, read; permission java.util.PropertyPermission oracle.jdbc.driver.OracleDriver, read; permission java.util.PropertyPermission /WEB-INF/lib/ojdbc.jar, read; permission java.util.PropertyPermission java.net.*, read; permission java.util.PropertyPermission java.sql.*, read; currently running jdk 1.4 and Tomcat 4.1.12 and Oracle 9i Ta Trevor - 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]
RES: RES: Querying container's user database
yeah, I tought of that... I haven't tried invalidate(), but I watched the session data after the user is authenticated, and it's EMPTY, there's nothing... where's the user data? Is it hidden?? ___ :: Christian J. Dechery :: Accenture do Brasil :: CHT - Solutions Operations :: [EMAIL PROTECTED] -Mensagem original- De: Tim Funk [mailto:[EMAIL PROTECTED] Enviada em: quarta-feira, 16 de julho de 2003 14:58 Para: Tomcat Users List Assunto: Re: RES: Querying container's user database If all the auth data is in the session (with FORM based auth it usually is) - then invalidate the session via session.invalidate() -Tim Christian J. Dechery - ACCENTURE wrote: So I'm screwed? hehehehe I don't know if u've seen my post about logging off container's authenticated users. Can u please check it out, U seem to know about the subject. Thanks ___ :: Christian J. Dechery :: Accenture do Brasil :: CHT - Solutions Operations :: [EMAIL PROTECTED] -Mensagem original- De: Tim Funk [mailto:[EMAIL PROTECTED] Enviada em: quarta-feira, 16 de julho de 2003 14:21 Para: Tomcat Users List Assunto: Re: Querying container's user database Its container specific. Also to do so - the Realm would have to provide that ability - so even this is Realm specfic too. http://jakarta.apache.org/tomcat/tomcat-4.1-doc/realm-howto.html And to top if off - You app will need to be be a privledged webapp so it may see the catalina internals. (which is where realms live) -Tim Christian J. Dechery - ACCENTURE wrote: Is there a way I can query the container's user database to find out if a specifed login exists or not?? If yes, is the solution container-specific? - 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: tomcat-WEB-INF
don`t really understand what you are doing. did you have a structure like this /webapps/mywebapplication/anotherwebapplication ? that won`t go. it must be /webapps/mywebapplication /webapps/anotherwebapplication bernd Elif Akten schrieb: I have an webapplication under /webapp/mywebapplication, I put all classes and lib files under WEB-INF directory classes and lib directory, it works fine, but if I put a new directory under mywebapplication folder it gives NoClasssDef error. what Shoul I do? _ Add photos to your e-mail with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail - 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]
Class Failure
I am having a lot of trouble figuring out where to put my class files and .jar files in jakarta 4.1. I have put my files in every WEB-INF/classes and lib directory known and still can not access them. Here is the error that I am receiving when running one of my jsp pages. Please help I am loosing hair that I can not afford to loose. org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: 4 in the jsp file: /PI_Builder.jsp Generated servlet error: [javac] Since fork is true, ignoring compiler setting. [javac] Compiling 1 source file [javac] Since fork is true, ignoring compiler setting. [javac] /usr/jakarta-tomcat-4.1.24/work/Standalone/localhost/_/PI_Builder_jsp.java:4 4: cannot access PI.PI_Bean [javac] bad class file: /usr/jakarta-tomcat-4.1.24/webapps/ROOT/WEB-INF/classes/PI/PI_Bean.class My PI_Bean.class file is in this directory [javac] class file contains wrong class: PI_Bean [javac] Please remove or make sure it appears in the correct subdirectory of the classpath. [javac] PI_Bean Test = null; [javac] ^ [javac] 1 error at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandle r.java:130) at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:2 93) at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:353) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:370) at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:4 73) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:1 90) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:256) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja va:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180 ) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve. java:171) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172 ) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java :174) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:594) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne ction(Http11Protocol.java:392) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav a:619) at java.lang.Thread.run(Thread.java:536) John Humphress WorldCom / Broadband Data Verification Team Phone: 972-685-4401 (ESN 445-4401) [EMAIL PROTECTED]