Re: Tomcat 5.5.9 Cluster Error
Hi Peter, I'm using Windows XP SP1 and not enable Firewall. Also I can use Multicast. I was able to set-up Tomcat Cluster with 5.0.16, but I failed with 5.5.9 and 5.0.28. On only uncommenting the Cluster and Value element in server.xml, I succeeded to set-up with 5.0.16. But with 5.5.9 and 5.0.28, I was not able to work Tomcat Cluster well using that way. Is there anything different in how to configure between each version? Thanks, --Toshio --- Peter Rossbach <[EMAIL PROTECTED]> からのメッセージ: > > Which OS you used and is your firewall open for UDP > port > > 45564 and TCP 4001 ? Is your network interface > enabled for Multicast > Packages ? > > Why you used the deployer ? > > Peter > > SUGAHARA Toshio schrieb: > > >Sorry, attached file was not sent and I'll try > again. > > > >[error message] > >ERROR main > >org.apache.catalina.cluster.tcp.SimpleTcpCluster - > Unable > >to start cluster. > > java.net.SocketException: error setting options > > at java.net.PlainDatagramSocketImpl.join(Native > Method) > > at > >java.net.PlainDatagramSocketImpl.join(PlainDatagramSocketImpl.java:172) > > at > >java.net.MulticastSocket.joinGroup(MulticastSocket.java:276) > > at > >org.apache.catalina.cluster.mcast.McastServiceImpl.start(McastServiceImpl.java:174) > > at > >org.apache.catalina.cluster.mcast.McastService.start(McastService.java:217) > > at > >org.apache.catalina.cluster.mcast.McastService.start(McastService.java:167) > > at > >org.apache.catalina.cluster.tcp.SimpleTcpCluster.start(SimpleTcpCluster.java:418) > > at > >org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1002) > > at > >org.apache.catalina.core.StandardHost.start(StandardHost.java:718) > > at > >org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1012) > > at > >org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442) > > at > >org.apache.catalina.core.StandardService.start(StandardService.java:450) > > at > >org.apache.catalina.core.StandardServer.start(StandardServer.java:683) > > at > >org.apache.catalina.startup.Catalina.start(Catalina.java:537) > > at > sun.reflect.NativeMethodAccessorImpl.invoke0(Native > >Method) > > at > >sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > > at > >sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > > at > java.lang.reflect.Method.invoke(Method.java:585) > > at > >org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:271) > > at > >org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:409) > >ERROR main org.apache.catalina.startup.Catalina - > >Catalina.start: > > LifecycleException: java.net.SocketException: > error > >setting options > > at > >org.apache.catalina.cluster.tcp.SimpleTcpCluster.start(SimpleTcpCluster.java:434) > > at > >org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1002) > > at > >org.apache.catalina.core.StandardHost.start(StandardHost.java:718) > > at > >org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1012) > > at > >org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442) > > at > >org.apache.catalina.core.StandardService.start(StandardService.java:450) > > at > >org.apache.catalina.core.StandardServer.start(StandardServer.java:683) > > at > >org.apache.catalina.startup.Catalina.start(Catalina.java:537) > > at > sun.reflect.NativeMethodAccessorImpl.invoke0(Native > >Method) > > at > >sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > > at > >sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > > at > java.lang.reflect.Method.invoke(Method.java:585) > > at > >org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:271) > > at > >org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:409) > > > > > > > >>Hi all, > >> > >>I'm building Tomcat Cluster environment on the > same > >>box. > >>Configuring sevrer.xml and starting tomcat > instance, > >>I got > >>error message as attached file. > >> > >>Here is my envrinment; > >>Apache:2.0.54 MPM worker > >>Tomcat:5.5.9 > >>JK_Connector:mod_jk 1.2.14.1 > >>JDK:J2SE 1.5.0_04 > >> > >>Also, I modified web.xml and added > >>"". > >> > >>What am I missing? I'm at a loss. > >>Any help would be very much appreciated. > >> > >>Thanks > >> > >> > >> > >>__ > >>Save the earth > >>http://pr.mail.yahoo.co.jp/ondanka/ > >> > >> > >>> > >>> > >>> > >> > >> > >> > >> > >> __ Save the earth http://pr.mail.yahoo.co.jp/ondanka/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: tomcat 5.5.9 not recompiling JSPs
Well, I don't have a context.xml file! I'm not using one for this app, and AFAK, tomcat creates context automatically in memory for the application. Anyway, my context.xml file is not corrupted, because there's none. Any other idea perhaps? Thanks, Michal. > -Original Message- > From: Sean Rowe [mailto:[EMAIL PROTECTED] > Sent: Monday, August 22, 2005 8:32 AM > To: Tomcat Users List > Subject: Re: tomcat 5.5.9 not recompiling JSPs > > I saw this just today. I did some digging and realized that > my application context file, usually found under $ > CATALNA_HOME/conf/Catalina/localhost was messed up. After I > fixed whatever problem it was, I was able to deploy again. > > Michal Kwiatek wrote: > > >Hello, > > > >I have a problem with tomcat 5.5.9 - for some reason tomcat does not > >recompile JSPs after I redeploy the application using manager > >application. > >There's no error message in the logs, tomcat has write > access to work > >directory and it compiles new jsps. It simply does not recompile the > >existing ones. > > > >Have you seen such behaviour in the past? > > > >Thanks in advance, > >Michal. > > > >- > >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 5.5.9 not recompiling JSPs
I saw this just today. I did some digging and realized that my application context file, usually found under $ CATALNA_HOME/conf/Catalina/localhost was messed up. After I fixed whatever problem it was, I was able to deploy again. Michal Kwiatek wrote: Hello, I have a problem with tomcat 5.5.9 - for some reason tomcat does not recompile JSPs after I redeploy the application using manager application. There's no error message in the logs, tomcat has write access to work directory and it compiles new jsps. It simply does not recompile the existing ones. Have you seen such behaviour in the past? Thanks in advance, Michal. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
tomcat 5.5.9 not recompiling JSPs
Hello, I have a problem with tomcat 5.5.9 - for some reason tomcat does not recompile JSPs after I redeploy the application using manager application. There's no error message in the logs, tomcat has write access to work directory and it compiles new jsps. It simply does not recompile the existing ones. Have you seen such behaviour in the past? Thanks in advance, Michal. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
jndi question
I have tried for several hours now to get connection pooling for my MySql database to work, but have been unable to do so. I keep getting this error: javax.naming.NoInitialContextException: Cannot instantiate class: org.apache.commons.dbcp.BasicDataSourceFactory I checked to make sure this class was in my classpath: [shell]# javap org.apache.commons.dbcp.BasicDataSourceFactory Compiled from "BasicDataSourceFactory.java" public class org.apache.commons.dbcp.BasicDataSourceFactory extends java.lang.Object implements javax.naming.spi.ObjectFactory{ public org.apache.commons.dbcp.BasicDataSourceFactory(); public java.lang.Object getObjectInstance(java.lang.Object, javax.naming.Name, javax.naming.Context, java.util.Hashtable) throws java.lang.Exception; public static javax.sql.DataSource createDataSource(java.util.Properties) throws java.lang.Exception; static {}; } I set up my jndi datasource using the admin module. Here's how it wrote out my server.xml file: className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener"/> className="org.apache.catalina.storeconfig.StoreConfigLifecycleListener"/> /usr/local/tomcat/server/conf/context.xml WEB-INF/web.xml Here's what's in my web.xml file: DB Connection jdbc/appname javax.sql.DataSource Container It's bombing out on this code: Properties p=new Properties(); p.put(Context.INITIAL_CONTEXT_FACTORY,"org.apache.commons.dbcp.BasicDataSourceFactory"); p.put(Context.PROVIDER_URL,"jdbc:mysql://localhost:3306"); Context initCtx = new InitialContext(p); // here's where it dies Can someone please help me, or at least point me in the direction of some documentation that I've missed? I've searched google and every other search engine I can think of. Thanks in advance. Sean Rowe - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Anyone familiar where SavedRequest class can be found?
Anyone know which jar file this belongs? I found this article, and this could be the solution to retaining request parameters after logging in http://sourceforge.net/tracker/?group_id=59484&atid=491164&func=detail&a id=766413 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: 5.5.9 on Ubuntu/Debian
Hi, I planning to start using Linux for a new site but a war file that deploys wondeful on Windows won't start on Linux. Here's the first error(see track). I'm using JDK 1.4.2. I'm pretty sure is a rights thing. I'm using the jsvc daemon loaded that switches to tomcat user. Another error is that the postgress driver won't load. (Cannot load JDBC driver class 'org.postgresql.Driver' java.lang.ClassNotFoundException: org.postgresql.Driver at java.net.URLClassLoader$1.run(URLClassLoader.java:199) Here is the error Aug 21, 2005 7:01:19 PM org.apache.catalina.startup.ExpandWar copy SEVERE: Error copying /usr/local/tomcat/tomcat_home/webapps/webfolio/META-INF/MANIFEST.MF to /var/tmp/0-webfolio/META-INF/MANIFEST.MF java.io.IOException: Invalid argument at sun.nio.ch.FileChannelImpl.transferTo0(Native Method) at sun.nio.ch.FileChannelImpl.transferToDirectly(FileChannelImpl.java:392) at sun.nio.ch.FileChannelImpl.transferTo(FileChannelImpl.java:487) at org.apache.catalina.startup.ExpandWar.copy(ExpandWar.java:228) at org.apache.catalina.startup.ExpandWar.copy(ExpandWar.java:221) at org.apache.catalina.startup.ContextConfig.antiLocking(ContextConfig.java:954) at org.apache.catalina.startup.ContextConfig.beforeStart(ContextConfig.java:991) at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:257) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119) at org.apache.catalina.core.StandardContext.start(StandardContext.java:3904) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524) at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:589) at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:536) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:471) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1102) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1020) at org.apache.catalina.core.StandardHost.start(StandardHost.java:718) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1012) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442) at org.apache.catalina.core.StandardService.start(StandardService.java:450) at org.apache.catalina.core.StandardServer.start(StandardServer.java:683) at org.apache.catalina.startup.Catalina.start(Catalina.java:537) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:271) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.commons.daemon.support.DaemonLoader.start(DaemonLoader.java:218) Thanks, Constantin http://www.goodstockimages.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Need Help Programmatically Loading Servlets in StandardContext subclass
How can I programmatically load servlets and servlet mappings in Tomcat? I'm using Tomcat 5.0.28. I'm trying to extend StandardContext to automatically map/assign a batch of servlets from a specified jar at startup. I'm having trouble. As I try to add these servlets programmatically as the StandardContext is starting up, I can't get them to register/load. The servlets loaded from the web.xml work fine, but the ones I'm trying to add programmatically return null ObjectNames when I query context.getServlets(). They are also ignored or not found when I get the URL. Here's the code I'm trying... The most relevant code is in addServlet() below - which I'm calling after super.start(). package com.luminera.www; import java.io.*; import java.util.*; import javax.management.*; import javax.naming.*; import javax.servlet.*; import org.apache.catalina.*; import org.apache.catalina.deploy.*; import org.apache.catalina.loader.*; import org.apache.catalina.mbeans.*; import org.apache.catalina.startup.*; import org.apache.catalina.util.*; import org.apache.commons.logging.*; import org.apache.commons.modeler.*; import org.apache.naming.*; import org.apache.naming.resources.*; import org.apache.tomcat.util.compat.*; public class StandardContext extends org.apache.catalina.core.StandardContext { public StandardContext() { super(); } public synchronized void start() throws LifecycleException { super.start(); this.loadServlets(); String[] asServlets = this.getServlets(); for (int i = 0; i < asServlets.length; i++) { System.out.println("known servlet: " + asServlets[i]); } } private void loadServlets() { String sParameter = this.findParameter("servlets-jar"); String sBasePath = this.getBasePath(); System.out.println("sParameter: " + sParameter); System.out.println("sBasePath: " + sBasePath); if ((sParameter != null) && (sBasePath != null)) { String sJarPath = sBasePath + sParameter; System.out.println("servlet jar path: " + sJarPath); ClassLoader classLoader = this.getLoader().getClassLoader(); //HashMap hashMap = ServletUtility.buildServletMap(sJarPath, classLoader); // external lib HashMap hashMap = new HashMap(); for (Iterator iterator = hashMap.keySet().iterator(); iterator.hasNext();) { String sPattern = (String)iterator.next(); String sClass = (String)hashMap.get(sPattern); this.addServlet(sPattern, sClass); } } } private void addServlet(String sPattern, String sClass) { System.out.println("Trying to load servlet for url pattern: " + sPattern); Wrapper wrapper = null; try { String sName = sClass; wrapper = this.createWrapper(); wrapper.setName(sName); wrapper.setServletClass(sClass); this.addChild(wrapper); this.addServletMapping(sPattern, sName); if (wrapper instanceof Lifecycle) { ((Lifecycle)wrapper).start(); } System.out.println("succeeded"); System.out.println("sPattern: " + sPattern); System.out.println("sName: " + sName); } catch (Throwable throwable) { System.out.println("failed"); Log log = LogFactory.getLog(StandardContext.class); log.error("Failed to load servlet: " + sClass, throwable); this.removeServletMapping(sPattern); this.removeChild(wrapper); } } private String getBasePath() { String docBase = null; Container container = this; while (container != null) { if (container instanceof Host) { break; } container = container.getParent(); } File file = new File(getDocBase()); if (!file.isAbsolute()) { if (container == null) { docBase = (new File(engineBase(), getDocBase())).getPath(); } else { String appBase = ((Host)contain
WebDav on Port 80
Hello, If I downloaded the latest Tomcat 5.0 or 5.5, WebDav works 'straight out of the box' by starting the server and opening 'localhost:8080/webdav' as a web folder. Great! If I then go in to server.xml and change the port to 80; the WebDav functionality is lost - I get a message from IE saying "Cannot open 'localhost:80/webdav' as a web folder - would you like to see it's default view instead". Can anyone else reproduce this? Are you all able to run webdav on port 80 without issues? Is there any trick Im missing? Any help greatly appreciated!. G - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: تم استلام الرساله DISABLE YOUR AUTO REPLY
Thanks Mark. > Wade Chandler wrote: > > Please disable your auto reply or remove yourself from > > the list. I receive an email from your directly every > > time I write to the list. It's part of the rules of > > the list not to use auto replies. > > > > Wade > > Auto-replying to posts is more than enough of a reason for me to kick > them off the list. Give me 5 minutes and they'll be gone. > > Mark > [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: Can't get apache to connect to tomcat
Adding to my previous post - this will (or should) load up the Tomcat Documentation that came with your distribution. Not the default TC homepage. . . > Are you trying to mount the default TC homepage? > I'm running Apache2 / Tomcat 5.5.9 on a Debian Sarge box and have > successfully > (finally) gotten them to speak to each other. Here's what's worked for me: > 1) Everything in JK2.Properties is still commented out. > 2) Added these lines to httpd.conf: > JkAutoAlias /usr/share/jakarta-tomcat-5.5.9/webapps (change to your path) > (If your using mod.ssl add the next 4) > JkExtractSSL On > JkHTTPSIndicator HTTPS > JkSESSIONIndicator SSL_SESSION_ID > JkCIPHERIndicator SSL_CIPHER > JkWorkersFile /usr/share/apache2/conf/workers.properties (change to your path) > JkLogFile /usr/share/apache2/logs/mod_jk.log (change to your path) > JkLogLevel info > JkLogStampFormat "[%a %b %d %H:%M:%S %Y] " > JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories > JkRequestLogFormat "%w %V %T" > Alias /tomcat-docs /usr/share/jakarta-tomcat-5.5.9/webapps/tomcat-docs > (change > to the path on your machine) > > AllowOverride None > deny from all > > JkMount /tomcat-docs/* worker1 (your worker name) > (here's the cool part - have apache serve the static content ) > JkUnMount /tomcat-docs/*.png worker1 (your worker name) > JkUnMount /tomcat-docs/*.jpg worker1 (your worker name) > JkUnMount /tomcat-docs/*.gif worker1 (your worker name) > JkUnMount /tomcat-docs/*.html worker1 (your worker name) > > > > > > > I'm trying to get requests going to www.mydomain.com/servlets/ to get > > handed off to tomcat. > > > > I have the mod_jk module loaded: > > Apache/2.0.54 (Unix) mod_ssl/2.0.54 OpenSSL/0.9.7f mod_jk/1.2.14 > > Server at www.mydomain.com Port 80 > > > > and I get the Tomcat/5.0.28 welcome screen when I go to: > > www.mydomain.com:8080 > > > > but I'm missing something in between. I'm having a really hard time > > with all this, as I imagine many people do because of all of the > > components and the confusing version numbers. For the longest time, > > I was trying to figure out where to get mod_jk2 because it sounded > > newer than mod_jk. Silly me. Even my "Professional Apache Tomcat 5" > > book from 2004 has examples using mod_jk2. Anyway... > > > > I have added only this to my httpd.conf: > > LoadModule jk_module modules/mod_jk.so > > > > I have this workers.properties file in my /usr/local/apache/conf: > > # Define 1 real worker using ajp13 > > worker.list=worker1 > > # Set properties for worker1 (ajp13) > > worker.worker1.type=ajp13 > > worker.worker1.host=localhost > > worker.worker1.port=8009 > > worker.worker1.lbfactor=50 > > worker.worker1.cachesize=10 > > worker.worker1.cache_timeout=600 > > worker.worker1.socket_keepalive=1 > > worker.worker1.recycle_timeout=300 > > > > This is my jk2.properties file: (why is it called jk2?) > > channelSocket.address=localhost > > channelSocket.port=8009 > > channelSocket.serverTimeout=600 > > channelSocket.maxThreads=50 > > > > I have these lines uncommented in server.xml: > > > enableLookups="false" redirectPort="8443" debug="0" > > protocol="AJP/1.3" /> > > > > I know I need something to point /servlets/ or /servlets/* to a > > worker, but I'm not sure how to do that or where to put it. I had > > something like: > > > > JkMount /servlets/ worker1 > > > > in my httpd.conf, but that didn't work. It actually gave me an ISE > > when I went to www.mydomain.com/servlets/ which was promising, but > > not what I wanted exactly. > > > > I'd be most appreciative if someone could let me know if I'm even > > close and what else I need. > > > > Thanks, > > -Jon > > > > - > > 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: تم استلام الرساله DISABLE YOUR AUTO REPLY
Wade Chandler wrote: Please disable your auto reply or remove yourself from the list. I receive an email from your directly every time I write to the list. It's part of the rules of the list not to use auto replies. Wade Auto-replying to posts is more than enough of a reason for me to kick them off the list. Give me 5 minutes and they'll be gone. Mark [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Can't get apache to connect to tomcat
Are you trying to mount the default TC homepage? I'm running Apache2 / Tomcat 5.5.9 on a Debian Sarge box and have successfully (finally) gotten them to speak to each other. Here's what's worked for me: 1) Everything in JK2.Properties is still commented out. 2) Added these lines to httpd.conf: JkAutoAlias /usr/share/jakarta-tomcat-5.5.9/webapps (change to your path) (If your using mod.ssl add the next 4) JkExtractSSL On JkHTTPSIndicator HTTPS JkSESSIONIndicator SSL_SESSION_ID JkCIPHERIndicator SSL_CIPHER JkWorkersFile /usr/share/apache2/conf/workers.properties (change to your path) JkLogFile /usr/share/apache2/logs/mod_jk.log (change to your path) JkLogLevel info JkLogStampFormat "[%a %b %d %H:%M:%S %Y] " JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories JkRequestLogFormat "%w %V %T" Alias /tomcat-docs /usr/share/jakarta-tomcat-5.5.9/webapps/tomcat-docs (change to the path on your machine) AllowOverride None deny from all JkMount /tomcat-docs/* worker1 (your worker name) (here's the cool part - have apache serve the static content ) JkUnMount /tomcat-docs/*.png worker1 (your worker name) JkUnMount /tomcat-docs/*.jpg worker1 (your worker name) JkUnMount /tomcat-docs/*.gif worker1 (your worker name) JkUnMount /tomcat-docs/*.html worker1 (your worker name) > > I'm trying to get requests going to www.mydomain.com/servlets/ to get > handed off to tomcat. > > I have the mod_jk module loaded: > Apache/2.0.54 (Unix) mod_ssl/2.0.54 OpenSSL/0.9.7f mod_jk/1.2.14 > Server at www.mydomain.com Port 80 > > and I get the Tomcat/5.0.28 welcome screen when I go to: > www.mydomain.com:8080 > > but I'm missing something in between. I'm having a really hard time > with all this, as I imagine many people do because of all of the > components and the confusing version numbers. For the longest time, > I was trying to figure out where to get mod_jk2 because it sounded > newer than mod_jk. Silly me. Even my "Professional Apache Tomcat 5" > book from 2004 has examples using mod_jk2. Anyway... > > I have added only this to my httpd.conf: > LoadModule jk_module modules/mod_jk.so > > I have this workers.properties file in my /usr/local/apache/conf: > # Define 1 real worker using ajp13 > worker.list=worker1 > # Set properties for worker1 (ajp13) > worker.worker1.type=ajp13 > worker.worker1.host=localhost > worker.worker1.port=8009 > worker.worker1.lbfactor=50 > worker.worker1.cachesize=10 > worker.worker1.cache_timeout=600 > worker.worker1.socket_keepalive=1 > worker.worker1.recycle_timeout=300 > > This is my jk2.properties file: (why is it called jk2?) > channelSocket.address=localhost > channelSocket.port=8009 > channelSocket.serverTimeout=600 > channelSocket.maxThreads=50 > > I have these lines uncommented in server.xml: > enableLookups="false" redirectPort="8443" debug="0" > protocol="AJP/1.3" /> > > I know I need something to point /servlets/ or /servlets/* to a > worker, but I'm not sure how to do that or where to put it. I had > something like: > > JkMount /servlets/ worker1 > > in my httpd.conf, but that didn't work. It actually gave me an ISE > when I went to www.mydomain.com/servlets/ which was promising, but > not what I wanted exactly. > > I'd be most appreciative if someone could let me know if I'm even > close and what else I need. > > Thanks, > -Jon > > - > 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: Passing parameter upon login using j_security_check
Hi wade, yeah I read in some post that only j_username and j_password gets passed in the form. Nothing else.. Even auto-login is not possible by passing the username and password as http parameters.. I had to at least go to the login page, and then executing the same url with the username/password will make the autologin work. But, on the opening of the browser and executing that url, wont work. By the way, have you made this work using your own filter? If you don't mind, a sample? thanks -Original Message- From: Wade Chandler [mailto:[EMAIL PROTECTED] Sent: Sunday, August 21, 2005 9:20 PM To: Tomcat Users List Subject: Re: Passing parameter upon login using j_security_check --- Mark Goking <[EMAIL PROTECTED]> wrote: > > > Is it possible to pass a parameter upon login using > j_security_check and > passing that parameter to index.jsp? > > thanks > > - > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > > I don't think anything gets forwarded when the post is handed off. I tried printing all variables once and nothing. I was asking about this before. You can create your own filter and do the same thing however. Should be straight forward. Then you can even customize your security mechanism. Just set a session variable and if it is not set then you know to bounce back to the security, otherwise allow the http call to go through. Wade - 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: تم استلام الرساله DISABLE YOUR AUTO REPLY
--- "منتديات كويت الخير" <[EMAIL PROTECTED]> wrote: > تم > استقبال > رسالتك > وسف نقوم > بالرد > عليك > بسرعه > تحياتي > > اخوكم > Q8CK > Please disable your auto reply or remove yourself from the list. I receive an email from your directly every time I write to the list. It's part of the rules of the list not to use auto replies. Wade - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Passing parameter upon login using j_security_check
--- Mark Goking <[EMAIL PROTECTED]> wrote: > > > Is it possible to pass a parameter upon login using > j_security_check and > passing that parameter to index.jsp? > > thanks > > - > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > > I don't think anything gets forwarded when the post is handed off. I tried printing all variables once and nothing. I was asking about this before. You can create your own filter and do the same thing however. Should be straight forward. Then you can even customize your security mechanism. Just set a session variable and if it is not set then you know to bounce back to the security, otherwise allow the http call to go through. Wade - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Passing parameter upon login using j_security_check
Is it possible to pass a parameter upon login using j_security_check and passing that parameter to index.jsp? thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]