Question about deployment of web app
Hi, allI am using Tomcat 5.5.15 on Window 2000 server. My web app worked well before reinstallation of Window2000. After reinstallation, I set up the same java environment with the same tomcat version. But a problem comes in the deployment of my former well-working app. In the tomcat log, I got the following message:2006-2-14 15:57:47 org.apache.catalina.startup.HostConfig deployDescriptorError deploying configuration descriptor myApp.xmljava.lang.NullPointerException at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:576) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:493) at org.apache.catalina.startup.HostConfig.check (HostConfig.java:1195) 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.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503) at com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke (DynamicMetaDataImpl.java:213) at com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDataImpl.java:220) at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:815) at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:784) at org.apache.catalina.manager.ManagerServlet.check(ManagerServlet.java:1377) at org.apache.catalina.manager.ManagerServlet.deploy (ManagerServlet.java:814) at org.apache.catalina.manager.HTMLManagerServlet.deployInternal(HTMLManagerServlet.java:248) at org.apache.catalina.manager.HTMLManagerServlet.doGet(HTMLManagerServlet.java:95) at javax.servlet.http.HttpServlet.service(HttpServlet.java:689) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java :252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) at org.apache.catalina.core.StandardContextValve.invoke (StandardContextValve.java:178) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:524) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) at org.apache.catalina.connector.CoyoteAdapter.service (CoyoteAdapter.java:148) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java :667) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run (ThreadPool.java:684) at java.lang.Thread.run(Thread.java:595)2006-2-14 15:57:47 org.apache.catalina.startup.ContextConfig applicationWebConfigMessage: Missing application web.xml, using defaults only StandardEngine[Catalina].StandardHost[localhost].StandardContext[/myApp] It is really strange since I didn't change any codes in my web app including web.xml under WEB-INF. It worked well before the reinstallation, but fail to deploy after the reinstallation. What is the possible wrong? My web.xml is attached. Thanks for any suggestions. ?xml version=1.0? web-app xmlns=http://java.sun.com/xml/ns/j2ee; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd; version=2.4 display-nameA test servlet application/display-name context-param param-nameWebmaster/param-name param-value[EMAIL PROTECTED]/param-value /context-param servlet servlet-nametest/servlet-name servlet-classorg.myapp.servlet.TestServlet/servlet-class /servlet servlet-mapping servlet-nametest/servlet-name url-pattern/servlet/test/url-pattern /servlet-mapping /web-app- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat 5.5 documentation: how to update website?
Hi all Just spent time getting the Tomcat5.sh script to work as a daemon under linux following the advice on the url:- The Apache Tomcat 5.5 Servlet/JSP Container http://tomcat.apache.org/tomcat-5.5-doc/setup.html quote The file $CATALINA_HOME/bin/jsvc/native/tomcat.sh can be used as a template for starting Tomcat automatically at boot time from /etc/ init.d. The file is currently setup for running Tomcat 4.1.x, so it is necessary to edit it and change the classname from BootstrapService to Bootstrap. /quote If only I'd known catalina.sh works 'out of the box' :-) How can I update this page to help let people know there's an easier option to get Tomcat using a startup script with catalina.sh rather than tomcat5.sh? Many thanks Steve - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Blocking AJP13 (port 8009) access
Try adding address=127.0.0.1 to the ajp13 connector tag in server.xml, and configuring apache to connect to 127.0.0.1 if you haven't already. This should stop the ajp13 port from being visable to other machines. As far as iptables goes, you probably want -o lo -j ACCEPT at the top of the ruleset, and I'm really not sure why you're using state flags to attempt to block external access to port 8009. Mostly you don't want drop rules to check the state table, though this might be some iptablism, I'm not too familiar with it past basic NAT / port blocking. -Antony On 2/14/06, OG [EMAIL PROTECTED] wrote: Hi, I'm trying to block external access to port 8009 (AJP13), as only my local host really needs to be able to talk to it. I'm wondering if there are any internal/mod_jk mechanisms for that, or if iptables is the best option. I have tried iptables, which did block external requests, but it also got me in a situation where I had a few hundred httpd processes in a SYN_SENT state ( netstat | grep 8009 | grep -c SYN_SENT ) and returning 503s instead of 200s: iptables -A INPUT \ -p TCP --dport 8009 \ -m state --state NEW \ -j DROP iptables -A INPUT \ -p UDP --dport 8009 \ -m state --state NEW \ -j DROP iptables -A OUTPUT -o lo -j ACCEPT iptables -A INPUT -i lo -j ACCEPT If anyone has iptables rules that work, I'd appreciate it if you could share them. I'd also be curious to know whether people use some other mechanisms to prevent evil folks from connecting to your port 8009 from the outsite and consuming your available connections. Thanks, Otis - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Blocking AJP13 (port 8009) access
OG wrote: Hi, I'm trying to block external access to port 8009 (AJP13), as only my local host really needs to be able to talk to it. I'm wondering if there are any internal/mod_jk mechanisms for that, or if iptables is the best option. If anyone has iptables rules that work, I'd appreciate it if you could share them. Take a look at: http://www.linuxguruz.com/iptables/ For example: http://www.linuxguruz.com/iptables/scripts/rc.firewall.txt will make a simple firewall allowing only ports 21,22,80 and 133, etc... Just adjust you network IP's. Regards, Mladen. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Trouble accessing Resources in my Context
I've got my servlet working now, without resorting to using a Context element inside the server.xml. I found that putting the Context in $TOMCAT_HOME/conf/Catalina/localhost/jackrabbit_config_test.xml works fine. Context Resource name=jcr/model1Repository auth=Container type=javax.jcr.Repository factory=org.apache.jackrabbit.core.jndi.BindableRepositoryFactory configFilePath=conf/repository_model1.xml repHomeDir=shared/jackrabbit_model1 / ResourceLink name=sharedJCRRepository global=jcr/model2Repository type=javax.jcr.Repository / Environment name=testNum value=10 type=java.lang.Integer override=false/ /Context And then in my web app, I have these lines: resource-ref descriptionJackrabbit Model 1 Repository/description res-ref-namejcr/model1Repository/res-ref-name res-typejavax.jcr.Repository/res-type res-authContainer/res-auth /resource-ref resource-env-ref descriptionJackrabbit Model 2 Repository/description resource-env-ref-namesharedJCRRepository/resource-env-ref- name resource-env-ref-typejavax.jcr.Repository/resource-env- ref-type /resource-env-ref resource-ref descriptionTest Number/description res-ref-nametestNum/res-ref-name res-typejava.lang.Integer/res-type res-authContainer/res-auth /resource-ref I also finally realized that the ResourceLink's name attribute can't be the same as the the global attribute. That took care of the null pointer I was getting trying to access that object. So, while this works acceptably (the context information for the webapp is not included in server.xml), I would *much* prefer to use the WEB-INF/context.xml the Tomcat docs say I can (the fourth bullet on this page - http://tomcat.apache.org/tomcat-5.5-doc/config/ context.html). If someone could explain why that doesn't work, I'd be really appreciative. Is this possibly a known issue? Thanks, Mark On Feb 13, 2006, at 9:40 PM, Mark Slater wrote: I've solved part of the problem... or at least made it less complicated (I hope). The ClassNotFound exception mentioned at the bottom is due to the jackrabbit jars being located in server/lib as opposed to common/lib. I'd placed them in server lib on the advice of someone more familiar with jackrabbit than I. I'd assumed that, as long as the jar was included in the web app, this would not be a problem; obviously that was incorrect. So after putting jackrabbit and its dependencies in common/lib, here's what I've got: If the context for web-app only resources and environment variables (jcr/model1Repository and testNum in the code below) are placed in HostContext in $TOMCAT_HOME/conf/server.xml, the web app is able to find them. If they are placed in the web-app's WEB-INF/context.xml, an exception is thrown (javax.naming.NamingException: Cannot create resource instance). As the latter is definitely the preferred option (by tomcat documentation and myself), I'd really like to get that to work. I've also confirmed that I get the same errors on a newly downloaded and configured Tomcat 5.5.15. Mark On Feb 13, 2006, at 6:23 PM, Mark Slater wrote: I'm running Tomcat 5.5.9 with JVM 1.5.0_05-83 on MacOS X 10.4.4. I'm trying to build an example webapp that shows the configuration for two Jackrabbit resources: one configured as an embedded resource for that web app and another configured as a shared resource for the entire host. I've tried to define the resources in a variety of places and haven't been able to get any of them to work. My context files are defined like this $TOMCAT_HOME/conf/context.xml: Context WatchedResourceWEB-INF/web.xml/WatchedResource /Context webapp/WEB-INF/context.xml: Context docBase=jackrabbit_config_test reloadable=false Resource name=jcr/model1Repository auth=Container type=javax.jcr.Repository factory=org.apache.jackrabbit.core.jndi.BindableRepositoryFactory configFilePath=conf/repository_model1.xml repHomeDir=shared/jackrabbit_model1 / Environment name=testNum value=10 type=java.lang.Integer override=false/ /Context I've got the following setup in server.xml: GlobalNamingResources ... Resource name=jcr/model2Repository auth=Container type=javax.jcr.Repository factory=org.apache.jackrabbit.core.jndi.BindableRepositoryFactory configFilePath=conf/repository_model2.xml repHomeDir=shared/jackrabbit_model2 / /GlobalNamingResources And in my web.xml, I've got the following references: web-app ... resource-ref descriptionJackrabbit Model 1 Repository/description res-ref-namejcr/model1Repository/res-ref-name res-typejavax.jcr.Repository/res-type res-authContainer/res-auth /resource-ref resource-env-ref
Re: Tomcat 5.5 documentation: how to update website?
From: Steve Meredith [EMAIL PROTECTED] Date: 2006/02/14 Tue AM 03:50:19 EST To: users@tomcat.apache.org Subject: Tomcat 5.5 documentation: how to update website? Hi all Just spent time getting the Tomcat5.sh script to work as a daemon under linux following the advice on the url:- The Apache Tomcat 5.5 Servlet/JSP Container http://tomcat.apache.org/tomcat-5.5-doc/setup.html quote The file $CATALINA_HOME/bin/jsvc/native/tomcat.sh can be used as a template for starting Tomcat automatically at boot time from /etc/ init.d. The file is currently setup for running Tomcat 4.1.x, so it is necessary to edit it and change the classname from BootstrapService to Bootstrap. /quote If only I'd known catalina.sh works 'out of the box' :-) Section 1 of the docs - under the Directories and Files heading, second paragraph - These are some of the key tomcat directories all relative to $CATALINA_HOME ./bin - Startup, shutdown, and other scripts. The *.sh files (for Unix systems) are functional duplicates of the *.bat files (for Windows systems). Since the Win32 command-line lacks certain functionality, there are some additional files in here. HOWEVER - you're better off for having used jsvc. Out of the box scrips run tc as root user. How can I update this page to help let people know there's an easier option to get Tomcat using a startup script with catalina.sh rather than tomcat5.sh? Many thanks Steve - 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 documentation: how to update website?
On 14 Feb 2006, at 11:05, Warren Pace wrote: From: Steve Meredith [EMAIL PROTECTED] Date: 2006/02/14 Tue AM 03:50:19 EST To: users@tomcat.apache.org Subject: Tomcat 5.5 documentation: how to update website? Hi all Just spent time getting the Tomcat5.sh script to work as a daemon under linux following the advice on the url:- The Apache Tomcat 5.5 Servlet/JSP Container http://tomcat.apache.org/tomcat-5.5-doc/setup.html quote The file $CATALINA_HOME/bin/jsvc/native/tomcat.sh can be used as a template for starting Tomcat automatically at boot time from /etc/ init.d. The file is currently setup for running Tomcat 4.1.x, so it is necessary to edit it and change the classname from BootstrapService to Bootstrap. /quote If only I'd known catalina.sh works 'out of the box' :-) Section 1 of the docs - under the Directories and Files heading, second paragraph - These are some of the key tomcat directories all relative to $CATALINA_HOME ./bin - Startup, shutdown, and other scripts. The *.sh files (for Unix systems) are functional duplicates of the *.bat files (for Windows systems). Since the Win32 command-line lacks certain functionality, there are some additional files in here. HOWEVER - you're better off for having used jsvc. Out of the box scrips run tc as root user. Thanks Warren :-) I guess I was overwhelmed with the sheer number of config files/ directories involved :) (startup.sh, catalina.sh, tomcat.sh?) All sorted now though. How can I update this page to help let people know there's an easier option to get Tomcat using a startup script with catalina.sh rather than tomcat5.sh? Many thanks Steve - 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: Setting up a parallel test environment on the same machine as main server
1. Moving the JkMount directive inside a VirtualHost... will make it accesible from only that virtual host. So, you must repeat common ones, such as /jkmanager. I put the mappings (JkMount(s)) right in the virtual host definition(s) with no trouble at all. 2. The virtual host is determined by the http host header, not by the connector host name. This is true for both httpd and tomcat (and any other web server.) You can always install Apache httpd + Tomcat on a second machine (or on the same machine on a separate set of ports), if you are reluctant to try it on you production host. HTH, Tim -Original Message- From: Alan Chandler [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 14, 2006 3:50 AM To: users@tomcat.apache.org Subject: Re: Setting up a parallel test environment on the same machine as main server On Sunday 12 February 2006 17:07, Alan Chandler wrote: ... Unless anyone here can suggest a better way, I would like to move the JkMountFile directive from global scope to virtual host scope and have two separate files urimap files so that I can map different things dependent on which virtual host. However, since this is a live site I don't want to just conduct the simple experiment to see if will work, so I am asking here if this is OK. Is there really nobody on this list who can answer this simple question? ... However, I don't fully understand the relationship between service, engine and host stanza's in the server.xml file, and until I do, I am reluctant to muck about with it and potentially screw the currently working arrangement. Specifically, there was some conversation here about it best that if tomcat was running on the same box as the web server (which it is in my case) that it would be best to make the connection between apache2 and tomcat be via localhost. That being the case, how can I map the SAME servlet name but from a different virtual host (albeit ip based) on apache to DIFFERENT hosts on the same tomcat engine. -- Alan Chandler http://www.chandlerfamily.org.uk Open Source. It's the difference between trust and antitrust. - 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: Trouble accessing Resources in my Context
From: Mark Slater [mailto:[EMAIL PROTECTED] Subject: Re: Trouble accessing Resources in my Context So, while this works acceptably (the context information for the webapp is not included in server.xml), I would *much* prefer to use the WEB-INF/context.xml the Tomcat docs say I can (the fourth bullet on this page - http://tomcat.apache.org/tomcat-5.5-doc/config/ context.html). If someone could explain why that doesn't work, I'd be really appreciative. Is this possibly a known issue? Read what the bullet actually says, not what you think it says: if the previous file was not found for this application, in individual file at /META-INF/context.xml inside the application files What directory does it really specify? (Hint: it's not WEB-INF.) - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: c:forEach not working as expected
--- Reinhard Moosauer [EMAIL PROTECTED] wrote: Hi List, it seemed clear to me, that this construct: c:forEach items=${t.records} var=x ... (some inner logic) /c:forEach should be equivalent to this one: No. It is roughly equvalent to (see my corrections): % for (Iterator it=t.getRecords(); it.hasNext(); ) { for (Iterator it=t.getRecords().getIterator(); it.hasNext(); ) { String x = (String)it.next(); Object x = it.next(); % ... (some inner logic) % } % I said roughly, because it can handle arrays, too. But the forEach-version is not working as expected. What can be wrong? Here are some quite strange effects: 1. The iterators-method hasNext() is called twice for every iteration (ok: no problem, if the iterator is clean, but why?) This is normal. Try to locate the java code generated from that tag and see what it comes to. You'll see something educational. There is no while () loop. Just if () else logic. 2. The loop-body is executed after hasNext() returned false. But the next()-method is NOT called ?? That would be strange. Nix. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: context error
Then do that jacky wrote: hi, When i add a Context in the server.xml, an error occurs: Apache Tomcat/4.1.31 Catalina.start: LifecycleException: Context startup failed due to previous errors LifecycleException: Context startup failed due to previous errors at org.apache.catalina.core.StandardContext.start(StandardContext.java:3578) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1141) at org.apache.catalina.core.StandardHost.start(StandardHost.java:707) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1141) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:316) at org.apache.catalina.core.StandardService.start(StandardService.java:450) at org.apache.catalina.core.StandardServer.start(StandardServer.java:2143) at org.apache.catalina.startup.Catalina.start(Catalina.java:463) at org.apache.catalina.startup.Catalina.execute(Catalina.java:350) at org.apache.catalina.startup.Catalina.process(Catalina.java:129) 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.main(Bootstrap.java:156) Stopping service Tomcat-Standalone Catalina.stop: LifecycleException: Coyote connector has not been started LifecycleException: Coyote connector has not been started at org.apache.coyote.tomcat4.CoyoteConnector.stop(CoyoteConnector.java:1296) at org.apache.catalina.core.StandardService.stop(StandardService.java:499) at org.apache.catalina.core.StandardServer.stop(StandardServer.java:2178) at org.apache.catalina.startup.Catalina.start(Catalina.java:494) at org.apache.catalina.startup.Catalina.execute(Catalina.java:350) at org.apache.catalina.startup.Catalina.process(Catalina.java:129) 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.main(Bootstrap.java:156) If i remove the added context, tomcat will start. In fact, i rearrange the directories, i don't know if this will impact on the Context. If i put all directories under $CATALINA_HOME, tomcat will work well with the Context. $CATALINA_HOME/bin/ shared/ server/ $CATALINA_BASE/bin/ conf/ webapps/ logs/ work/ Context is as following: Context path=/test docBase=test reloadable=true / Best Regards. jacky -- Mike Sabroff Web Services Developer [EMAIL PROTECTED] 920-568-8379 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
JAASRealm and LoginContext reuse
I found that the JAASRealm implementation (org.apache.catalina.realm.JAASRealm) does not reuse the LoginContext (javax.security.auth.login.LoginContext) instance. Every time the authenticate(String,String) method is called a new LoginContext instance is created. Creating a new instance of the LoginContext will result in creating a new instance of all LoginModule's configured for this application. In other words, for each login a new instance of the LoginModule is created. However, in my case the initialization of the login module is an expensive operation. The only way to resolve this is to write a custom JAASRealm implementation. However, before doing this I would like to know whether there is any rational of not caching the LoginContext instance. I looked in the JAAS spec and could find anything against caching the LoginContext. I've also looked at LoginContext source code in JDK 1.4 and it appears to be written to cache the LoginModule instances. So I would assume it is correct to write a custom version of the JAASRealm to operate on a single instance of the LoginContext. Am I right? I would appreciate any thoughts. Thanks Stefan Baramov Software Developer - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
default webapp not understanding
Hello, I am having trouble understanding what is meant by the default webapp. Here goes. I have a site which I have a dns entry for. After reading the docs, I put the application under $TOMCAT_HOME/webapps/mywebapp In the server.xml I added this snippet: Host name=localhost appBase=webapps unpackWARs=true autoDeploy=true xmlValidation=false xmlNamespaceAware=false Now when I hit my site with the dns which points to my IP addrss for this box, it goes to a index.html file in the $TOMCAT_HOME/webapps/root It does not go to the index.html in the $TOMCAT_HOME/webapps/mywebapp/index.html Can I somehow configure this to go to the above $TOMCAT_HOME/webapps/mywebapp/index.html? I get confused when the doc states that the entry in the host must also have a context entry? Can anyone clarify that. Here from the docs Exactly one of the Hosts associated with each Engine MUST have a name matching the defaultHost attribute of that Engine. My big deal is to somehow get the index.jsp in the $TOMCAT_HOME/webapps/mywebapp to be called automatically when I hit my url. Thanks,
RE: default webapp not understanding
From: Scott Purcell [mailto:[EMAIL PROTECTED] Subject: default webapp not understanding I am having trouble understanding what is meant by the default webapp. (It would help if you'd tell us what Tomcat level you're running...) For 5.5.x, the default webapp is the one located in webapps/ROOT.war or the webapps/ROOT directory. Can I somehow configure this to go to the above $TOMCAT_HOME/webapps/mywebapp/index.html? Deploy your webapp in webapps/ROOT, not webapps/mywebapp. I get confused when the doc states that the entry in the host must also have a context entry? Can anyone clarify that. Where does it say that? The current doc states that you _can_ nest Context tags inside Host, not that you must. Putting Context tags in server.xml is strongly discouraged these days, but not all of the doc has caught up to that fact. Here from the docs Exactly one of the Hosts associated with each Engine MUST have a name matching the defaultHost attribute of that Engine. That attribute for simple Tomcat installations is localhost, which you already have. Nothing to do with contexts. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
mod_jk error numbers
Hi all, I would like to ask the list if someone can give me a hint, what might have gone wrong with our mod_jk. I just installed the connector and switched logging to debug mode. When I open the log file I see the following: [Tue Feb 14 18:00:23 2006] [27276:50880] [debug] map_uri_to_worker::jk_uri_worker_map.c (449): Attempting to map URI '/proxycheck.php' from 4 maps [Tue Feb 14 18:00:23 2006] [27276:50880] [debug] map_uri_to_worker::jk_uri_worker_map.c (461): Attempting to map context URI '/servlets-examples/*' [Tue Feb 14 18:00:23 2006] [27276:50880] [debug] map_uri_to_worker::jk_uri_worker_map.c (461): Attempting to map context URI '/jsp-examples/*.jsp' [Tue Feb 14 18:00:23 2006] [27276:50880] [debug] map_uri_to_worker::jk_uri_worker_map.c (461): Attempting to map context URI '/esriadmin/*' [Tue Feb 14 18:00:23 2006] [27276:50880] [debug] map_uri_to_worker::jk_uri_worker_map.c (461): Attempting to map context URI '/servlet/*' [Tue Feb 14 18:00:23 2006] [27275:50880] [debug] map_uri_to_worker::jk_uri_worker_map.c (449): Attempting to map URI '/cgi-bin/iframe/autovol' from 4 maps [Tue Feb 14 18:00:23 2006] [27275:50880] [debug] map_uri_to_worker::jk_uri_worker_map.c (461): Attempting to map context URI '/servlets-examples/*' [Tue Feb 14 18:00:23 2006] [27275:50880] [debug] map_uri_to_worker::jk_uri_worker_map.c (461): Attempting to map context URI '/jsp-examples/*.jsp' [Tue Feb 14 18:00:23 2006] [27275:50880] [debug] map_uri_to_worker::jk_uri_worker_map.c (461): Attempting to map context URI '/esriadmin/*' [Tue Feb 14 18:00:23 2006] [27275:50880] [debug] map_uri_to_worker::jk_uri_worker_map.c (461): Attempting to map context URI '/servlet/*' [Tue Feb 14 18:00:35 2006] [27272:50880] [debug] map_uri_to_worker::jk_uri_worker_map.c (449): Attempting to map URI '/ip.cgi' from 4 maps over and over. What bothers me is the existence of the '/proxycheck.php' , '/cgi-bin/iframe/autovol' and '/ip.cgi' entries, since these are the same requests at our apache firewall in mod_secure. These should have been blocked, but seem to get through to the connector. So my questions are: 1. What does the 449 and 461 numbers mean? 2. Is there a security hole in our server? Thanks for any reply and best regards Jan Peters-Anders
RE: default webapp not understanding
5.5x on xp. -Original Message- From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 14, 2006 10:46 AM To: Tomcat Users List Subject: RE: default webapp not understanding From: Scott Purcell [mailto:[EMAIL PROTECTED] Subject: default webapp not understanding I am having trouble understanding what is meant by the default webapp. (It would help if you'd tell us what Tomcat level you're running...) For 5.5.x, the default webapp is the one located in webapps/ROOT.war or the webapps/ROOT directory. Can I somehow configure this to go to the above $TOMCAT_HOME/webapps/mywebapp/index.html? Deploy your webapp in webapps/ROOT, not webapps/mywebapp. I get confused when the doc states that the entry in the host must also have a context entry? Can anyone clarify that. Where does it say that? The current doc states that you _can_ nest Context tags inside Host, not that you must. Putting Context tags in server.xml is strongly discouraged these days, but not all of the doc has caught up to that fact. Here from the docs Exactly one of the Hosts associated with each Engine MUST have a name matching the defaultHost attribute of that Engine. That attribute for simple Tomcat installations is localhost, which you already have. Nothing to do with contexts. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: default webapp not understanding
Sorry, I didn't catch the other one. Tomcat 5.5x on xp If I deploy the webapp in ROOT, then the structure would look like this: $TOMCAT_HOME/webapps/root/mywebapp. And the index.html would still live in root .. isn't that correct. So I would still need a way to go from the root/index.html to the mywebapp/index.html correct? This is where it gets confusing. Thanks, -Original Message- From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 14, 2006 10:46 AM To: Tomcat Users List Subject: RE: default webapp not understanding From: Scott Purcell [mailto:[EMAIL PROTECTED] Subject: default webapp not understanding I am having trouble understanding what is meant by the default webapp. (It would help if you'd tell us what Tomcat level you're running...) For 5.5.x, the default webapp is the one located in webapps/ROOT.war or the webapps/ROOT directory. Can I somehow configure this to go to the above $TOMCAT_HOME/webapps/mywebapp/index.html? Deploy your webapp in webapps/ROOT, not webapps/mywebapp. I get confused when the doc states that the entry in the host must also have a context entry? Can anyone clarify that. Where does it say that? The current doc states that you _can_ nest Context tags inside Host, not that you must. Putting Context tags in server.xml is strongly discouraged these days, but not all of the doc has caught up to that fact. Here from the docs Exactly one of the Hosts associated with each Engine MUST have a name matching the defaultHost attribute of that Engine. That attribute for simple Tomcat installations is localhost, which you already have. Nothing to do with contexts. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Maintaing sessions
Hello guys. I dont know if this is the right list for this question, but i dont have anywhere else to rely on so... the problem im facing is kinda tricky: theres this one computer that cant maintain sessions when i redirect it or click on a link... in fact, my guess is that this one client is not able to maintain any session at all... im guessing this client is buged, but it can acess virtually any web site without problems, so i cant really be sure... any toughs? im using tomcat5.5 and i tried with ie and firefox and the results are the same -- []'s Marcelo Takeshi Fukushima - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: default webapp not understanding
Hi, no, you must delete whole the original contents of the existing directory webapps/ROOT and deploy your own ROOT.war web application. Be careful. The `ROOT' word is case sensitive. The default URL mapping is: http://[machine]:[port]/[context]/[servlet]/ where machine is currently localhost, port is 8080 by default context is in the context.xml file and usualy is the same as the web application name servlet: it's defined in web.xml servlet-mapping tag If you deploy your application as ROOT application, the context path will be only `/' (slash). Chuck explains it to me (thank you Chuck!) one month before. Look into the mailing-list history. Hope to help you Have a nice day! PETR On 2/14/06, Scott Purcell [EMAIL PROTECTED] wrote: Sorry, I didn't catch the other one. Tomcat 5.5x on xp If I deploy the webapp in ROOT, then the structure would look like this: $TOMCAT_HOME/webapps/root/mywebapp. And the index.html would still live in root .. isn't that correct. So I would still need a way to go from the root/index.html to the mywebapp/index.html correct? This is where it gets confusing. Thanks, -Original Message- From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 14, 2006 10:46 AM To: Tomcat Users List Subject: RE: default webapp not understanding From: Scott Purcell [mailto:[EMAIL PROTECTED] Subject: default webapp not understanding I am having trouble understanding what is meant by the default webapp. (It would help if you'd tell us what Tomcat level you're running...) For 5.5.x, the default webapp is the one located in webapps/ROOT.war or the webapps/ROOT directory. Can I somehow configure this to go to the above $TOMCAT_HOME/webapps/mywebapp/index.html? Deploy your webapp in webapps/ROOT, not webapps/mywebapp. I get confused when the doc states that the entry in the host must also have a context entry? Can anyone clarify that. Where does it say that? The current doc states that you _can_ nest Context tags inside Host, not that you must. Putting Context tags in server.xml is strongly discouraged these days, but not all of the doc has caught up to that fact. Here from the docs Exactly one of the Hosts associated with each Engine MUST have a name matching the defaultHost attribute of that Engine. That attribute for simple Tomcat installations is localhost, which you already have. Nothing to do with contexts. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Problem with tomcat
Well, the jsp page is clearely not being processed by a jsp engine. Several things could cause this. Perhaps there's no JSP engine mapped to process requests ending in .jsp, perhaps you mislabelled your .jsp file extensions, perhaps you're serving the .jps files out of a web server ( apache? ) that isn't configured to pass these requests on to the servlet container ( tomcat ). You probably need to give some more information, or perhaps do some more fundamentals type reading. --- On Tue 02/14, Kasim [EMAIL PROTECTED] wrote: From: Kasim [mailto: [EMAIL PROTECTED] To: users@tomcat.apache.org Date: Tue, 14 Feb 2006 17:59:47 +0530 Subject: Problem with tomcat when ever i am calling the jsp page Instead of it its code is been openingin notepad.So can any body tell me the solution-To unsubscribe, e-mail: [EMAIL PROTECTED] additional commands, e-mail: [EMAIL PROTECTED] ___ Join Excite! - http://www.excite.com The most personalized portal on the Web! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: default webapp not understanding
From: Scott Purcell [mailto:[EMAIL PROTECTED] Subject: RE: default webapp not understanding If I deploy the webapp in ROOT, then the structure would look like this: $TOMCAT_HOME/webapps/root/mywebapp. No - get rid of the mywebapp idea. Your app needs to be deployed AS root, not under it. Your app replaces the existing contents of webapps/ROOT. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: default webapp not understanding
This has been my confusion ... when I put the war file there, it creates the mywebapp folder structure. Should I of named the webapp root? OK, lets say I take the contents from the war file and place all loose in root ... that should work then, and my problem would be resolved. But if I want another app, lets say devmywebapp, how does that work. As I cannot put two folderless apps together under root. Sorry, possibly I am making things more confusing than they are. -Original Message- From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 14, 2006 12:02 PM To: Tomcat Users List Subject: RE: default webapp not understanding From: Scott Purcell [mailto:[EMAIL PROTECTED] Subject: RE: default webapp not understanding If I deploy the webapp in ROOT, then the structure would look like this: $TOMCAT_HOME/webapps/root/mywebapp. No - get rid of the mywebapp idea. Your app needs to be deployed AS root, not under it. Your app replaces the existing contents of webapps/ROOT. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: default webapp not understanding
From: Scott Purcell [mailto:[EMAIL PROTECTED] Subject: RE: default webapp not understanding This has been my confusion ... when I put the war file there, it creates the mywebapp folder structure. Should I of named the webapp root? The name of the webapp (what's used on the URI) is determined by its location, not anything else (unless you put a Context tag in server.xml, but you're not supposed to do that). Tomcat special cases the location ROOT, so whatever is stored in there becomes the default application. OK, lets say I take the contents from the war file and place all loose in root ... that should work then, and my problem would be resolved. Easier just to name the file ROOT.war, put it in webapps, and delete the webapps/ROOT directory. But if I want another app, lets say devmywebapp, how does that work. As I cannot put two folderless apps together under root. Each directory or .war file immediately under webapps is a webapp (at the risk of being redundant). This is intended to be a single-level layout - webapps aren't supposed to be nested (although they sometimes seem to work that way). Only one app can be the default (by definition), and that's the one in ROOT (or ROOT.war); put your other app under webapps/devmywebapp or whatever name you want to use. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Trouble accessing Resources in my Context
Thanks Chuck for pointing that out. Given that everything else goes in WEB-INF, when I was reading the page I misread it every time. Is there any particular reason the context file goes in META-INF as opposed to WEB-INF? Mark On Feb 14, 2006, at 6:16 AM, Caldarale, Charles R wrote: From: Mark Slater [mailto:[EMAIL PROTECTED] Subject: Re: Trouble accessing Resources in my Context So, while this works acceptably (the context information for the webapp is not included in server.xml), I would *much* prefer to use the WEB-INF/context.xml the Tomcat docs say I can (the fourth bullet on this page - http://tomcat.apache.org/tomcat-5.5-doc/config/ context.html). If someone could explain why that doesn't work, I'd be really appreciative. Is this possibly a known issue? Read what the bullet actually says, not what you think it says: if the previous file was not found for this application, in individual file at /META-INF/context.xml inside the application files What directory does it really specify? (Hint: it's not WEB-INF.) - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e- mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Setting up a parallel test environment on the same machine as main server
On Tuesday 14 February 2006 12:36, Tim Lucia wrote: 1. Moving the JkMount directive inside a VirtualHost... will make it accesible from only that virtual host. So, you must repeat common ones, such as /jkmanager. I put the mappings (JkMount(s)) right in the virtual host definition(s) with no trouble at all. Thanks - just what I needed confirmation on 2. The virtual host is determined by the http host header, not by the connector host name. This is true for both httpd and tomcat (and any other web server.) Not sure I understand what you are mean here by http host header, isn't that the name of the web site that I am accessing (ie as known by apache) rather than as known by a backend topcat At the moment, I have apache, with two virtual host names of home.chandlerfamily.org.uk (also known as www.chandlerfamily.org.uk) (ip address of my WAN) money.home (ip address of 192.168.0.32) based on ip addressing only (ie not named virtual hosts - because it also needs to support https where named virtual hosts are not supported) which all end up using tomcat services for parts of the web site (urls as defined in JkMountFile). It is all directed to a single tomcat host via a single worker.properties file with the following worker.list=tomcat worker.tomcat.type=ajp13 worker.tomcat.host=appserv.home worker.tomcat.port=8009 worker.tomcat.connect_timeout=10 and a single host on the server.xml line defined as appserv.home This appserv.home (ip address 192.168.0.31) is certainly currently getting all the traffic it should get from apache - but I don't see how that is related to the http host in the header. BUT ... Do you mean that if I had changed my workers thusly worker.list=production,test worker.production.host=prodserv.home worker.test.host=testserv.home ... for the other parameters but where both prodserv.home, and testserv.home had the SAME ip address (say 127.0.0.1 :-) ) AND i add an apache virtual host of test.home (ip address 192.168.0.39) That I can differenciate them in the server.xml file by having an engine running of localhost, but with two hosts with names of prodserv.home and testserv.home respectively, and that provided the JkMountFile was then moved into the correct apache virtual host context, then the same url could be mapped by one apache virtual host to worker production and the other apache virtual host could map to worker test. I could then have different versions of the same app running on production and test. You can always install Apache httpd + Tomcat on a second machine (or on the same machine on a separate set of ports), if you are reluctant to try it on you production host. HTH, Tim -Original Message- From: Alan Chandler [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 14, 2006 3:50 AM To: users@tomcat.apache.org Subject: Re: Setting up a parallel test environment on the same machine as main server On Sunday 12 February 2006 17:07, Alan Chandler wrote: ... Unless anyone here can suggest a better way, I would like to move the JkMountFile directive from global scope to virtual host scope and have two separate files urimap files so that I can map different things dependent on which virtual host. However, since this is a live site I don't want to just conduct the simple experiment to see if will work, so I am asking here if this is OK. Is there really nobody on this list who can answer this simple question? ... However, I don't fully understand the relationship between service, engine and host stanza's in the server.xml file, and until I do, I am reluctant to muck about with it and potentially screw the currently working arrangement. Specifically, there was some conversation here about it best that if tomcat was running on the same box as the web server (which it is in my case) that it would be best to make the connection between apache2 and tomcat be via localhost. That being the case, how can I map the SAME servlet name but from a different virtual host (albeit ip based) on apache to DIFFERENT hosts on the same tomcat engine. -- Alan Chandler http://www.chandlerfamily.org.uk Open Source. It's the difference between trust and antitrust. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Setting up a parallel test environment on the same machine as main server
On Tuesday 14 February 2006 12:36, Tim Lucia wrote: You can always install Apache httpd + Tomcat on a second machine (or on the same machine on a separate set of ports), if you are reluctant to try it on you production host. Of course in an ideal world I would - but this is my home, and I don't have any more spare machines. I am already testing on an independant machine first, but I want to essentially bring a new version gently into play - running off of a single database on my main server - just to prove that I can bring the application up in as close to production environment as possible in a test environment before switching it to live. -- Alan Chandler http://www.chandlerfamily.org.uk Open Source. It's the difference between trust and antitrust. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Trouble accessing Resources in my Context
From: Mark Slater [mailto:[EMAIL PROTECTED] Subject: Re: Trouble accessing Resources in my Context Is there any particular reason the context file goes in META-INF as opposed to WEB-INF? As I understand it, the structure and contents of WEB-INF are defined by the servlet spec, and adding container-specific files to that directory is frowned upon. META-INF is somewhat of a catch-all location. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: New isapi_redirect.dll has problems
Hi; I checked the registry - it's using the workers.properties.minimal I believe (but I would be happier if it logged the files it uses). The problem with the urls it should not touch only showed up with the new version from Mark - that never happened before. As to the thread count, if someone tells me how to raise this, I will do so. But we get very low volume on this so I would be surprised if that is it. Any other ideas anyone? Thanks - dave David Thielen www.windwardreports.com 303-499-2544 -Original Message- From: Ian Buzer [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 14, 2006 12:21 AM To: 'Tomcat Users List' Subject: RE: New isapi_redirect.dll has problems OK, first I'll point out that I'm pretty new to Tomcat myself workers.properties.minimal: Is jk even using this config file? Normally it would use workers.properties unless it was configured otherwise. [Mon Feb 13 07:56:49 2006] [info] jk_ajp_common.c (1248): Error connecting to the Tomcat process. These errors suggest that jk is sending threads to tomcat, but tomcat does not have enough threads to provide a response. You might want to try adjusting the backlog, maxThreads and all the other threads properties for your connector in /conf/server.xml I've noticed that if jk cannot receive any more threads from the web server (worker.ajp13w.cachesize too small) or tomcat cannot respond to all the threads that are sent to it (maxThreads too small), it just doesn't seem to respond correctly, leading either to a host not available error in IE or a blank page in Firefox. I personally feel that it would be better if jk could respond with some kind of 500 error. [Mon Feb 13 17:03:09 2006] [warn] jk_uri_worker_map.c (429): Uri http://www.windwardreports.com/root.htm?source=googleid=540 is invalid. Uri must start with / This is a bit weird. Is your web server doing any URL rewriting? You haven't got any links in your application that might end up looking like this: http://www.somehost.com/http://www.windwardreports.com/root.htm?... or even this: /http://www.windwardreports.com/root.htm?... Ian - 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.15 Context Reloading issue
I've done some further searching, and noticed that tomcat was also dumping information into stdout. There is another log trace that might be helpful if anyone else recognizes the problem. I'm of the belief that this is a bug of some sort, but I don't know who to pass the information along to. Also, I tried adding information into the context docbase, and it had no effect on the problem. I also removed all log4j files that I had added to the configuration. Again, this wasn't happening with tomcat 5.5.12, but started after I began to use 5.5.15. Thanks. log4j:ERROR Error occured while converting date. java.lang.NullPointerException at java.lang.System.arraycopy(Native Method) at java.lang.AbstractStringBuilder.getChars(AbstractStringBuilder.java:331) at java.lang.StringBuffer.getChars(StringBuffer.java:202) at org.apache.log4j.helpers.AbsoluteTimeDateFormat.format(AbsoluteTimeDateForma t.java:117) at java.text.DateFormat.format(DateFormat.java:314) at org.apache.log4j.helpers.PatternParser$DatePatternConverter.convert(PatternP arser.java:444) at org.apache.log4j.helpers.PatternConverter.format(PatternConverter.java:64) at org.apache.log4j.PatternLayout.format(PatternLayout.java:503) at org.apache.log4j.WriterAppender.subAppend(WriterAppender.java:301) at org.apache.log4j.WriterAppender.append(WriterAppender.java:159) at org.apache.log4j.AppenderSkeleton.doAppend(AppenderSkeleton.java:230) at org.apache.log4j.helpers.AppenderAttachableImpl.appendLoopOnAppenders(Append erAttachableImpl.java:65) at org.apache.log4j.Category.callAppenders(Category.java:203) at org.apache.log4j.Category.forcedLog(Category.java:388) at org.apache.log4j.Category.log(Category.java:853) at org.apache.commons.logging.impl.Log4JLogger.info(Log4JLogger.java:133) at org.apache.catalina.core.ApplicationContext.log(ApplicationContext.java:638) at org.apache.catalina.core.ApplicationContextFacade.log(ApplicationContextFaca de.java:249) at org.springframework.web.context.ContextLoader.initWebApplicationContext(Cont extLoader.java:176) at org.springframework.web.context.ContextLoaderServlet.init(ContextLoaderServl et.java:83) at javax.servlet.GenericServlet.init(GenericServlet.java:211) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:11 05) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:932) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java: 3915) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4176) at org.apache.catalina.core.StandardContext.reload(StandardContext.java:2988) at org.apache.catalina.loader.WebappLoader.backgroundProcess(WebappLoader.java: 403) at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java: 1276) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processC hildren(ContainerBase.java:1568) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processC hildren(ContainerBase.java:1577) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processC hildren(ContainerBase.java:1577) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(Cont ainerBase.java:1557) at java.lang.Thread.run(Thread.java:595)
Re: Maintaing sessions
ok i guess ive found the source of the problem: this guys firewall is set to block foreign cookies and when that rule is disabled, it runs normally... can anyone help me please? On 2/14/06, Marcelo Fukushima [EMAIL PROTECTED] wrote: Hello guys. I dont know if this is the right list for this question, but i dont have anywhere else to rely on so... the problem im facing is kinda tricky: theres this one computer that cant maintain sessions when i redirect it or click on a link... in fact, my guess is that this one client is not able to maintain any session at all... im guessing this client is buged, but it can acess virtually any web site without problems, so i cant really be sure... any toughs? im using tomcat5.5 and i tried with ie and firefox and the results are the same -- []'s Marcelo Takeshi Fukushima -- []'s Marcelo Takeshi Fukushima - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Re: Tomcat 5.5 documentation: how to update website?
From: Steve Meredith [EMAIL PROTECTED] Date: 2006/02/14 Tue AM 06:27:52 EST To: Tomcat Users List users@tomcat.apache.org Subject: Re: Tomcat 5.5 documentation: how to update website? On 14 Feb 2006, at 11:05, Warren Pace wrote: From: Steve Meredith [EMAIL PROTECTED] Date: 2006/02/14 Tue AM 03:50:19 EST To: users@tomcat.apache.org Subject: Tomcat 5.5 documentation: how to update website? Hi all Just spent time getting the Tomcat5.sh script to work as a daemon under linux following the advice on the url:- The Apache Tomcat 5.5 Servlet/JSP Container http://tomcat.apache.org/tomcat-5.5-doc/setup.html quote The file $CATALINA_HOME/bin/jsvc/native/tomcat.sh can be used as a template for starting Tomcat automatically at boot time from /etc/ init.d. The file is currently setup for running Tomcat 4.1.x, so it is necessary to edit it and change the classname from BootstrapService to Bootstrap. /quote If only I'd known catalina.sh works 'out of the box' :-) Section 1 of the docs - under the Directories and Files heading, second paragraph - These are some of the key tomcat directories all relative to $CATALINA_HOME ./bin - Startup, shutdown, and other scripts. The *.sh files (for Unix systems) are functional duplicates of the *.bat files (for Windows systems). Since the Win32 command-line lacks certain functionality, there are some additional files in here. HOWEVER - you're better off for having used jsvc. Out of the box scrips run tc as root user. Thanks Warren :-) I guess I was overwhelmed with the sheer number of config files/ directories involved :) (startup.sh, catalina.sh, tomcat.sh?) All sorted now though. Oh. You should have seen me trying to figure this thing out when I first got started . . . How can I update this page to help let people know there's an easier option to get Tomcat using a startup script with catalina.sh rather than tomcat5.sh? Many thanks Steve - 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: Question about deployment of web app
My 2 cents is on you have may have missed something in recreating your environment. Hence, I would test it with some very simple code just to ensure classpath dependencies are fine. Only after that check, if it doesn't resolve the problem, I would face the app code. On 2/14/06, Lian Liming [EMAIL PROTECTED] wrote: Hi, all I am using Tomcat 5.5.15 on Window 2000 server. My web app worked well before reinstallation of Window2000. After reinstallation, I set up the same java environment with the same tomcat version. But a problem comes in the deployment of my former well-working app. In the tomcat log, I got the following message: 2006-2-14 15:57:47 org.apache.catalina.startup.HostConfig deployDescriptor Error deploying configuration descriptor myApp.xml java.lang.NullPointerException at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:576) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:493) at org.apache.catalina.startup.HostConfig.check (HostConfig.java:1195) 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.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503) at com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke (DynamicMetaDataImpl.java:213) at com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDataImpl.java:220) at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:815) at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:784) at org.apache.catalina.manager.ManagerServlet.check(ManagerServlet.java:1377) at org.apache.catalina.manager.ManagerServlet.deploy (ManagerServlet.java:814) at org.apache.catalina.manager.HTMLManagerServlet.deployInternal(HTMLManagerServlet.java:248) at org.apache.catalina.manager.HTMLManagerServlet.doGet(HTMLManagerServlet.java:95) at javax.servlet.http.HttpServlet.service(HttpServlet.java:689) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java :252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) at org.apache.catalina.core.StandardContextValve.invoke (StandardContextValve.java:178) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:524) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) at org.apache.catalina.connector.CoyoteAdapter.service (CoyoteAdapter.java:148) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java :667) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run (ThreadPool.java:684) at java.lang.Thread.run(Thread.java:595) 2006-2-14 15:57:47 org.apache.catalina.startup.ContextConfig applicationWebConfig Message: Missing application web.xml, using defaults only StandardEngine[Catalina].StandardHost[localhost].StandardContext[/myApp] It is really strange since I didn't change any codes in my web app including web.xml under WEB-INF. It worked well before the reinstallation, but fail to deploy after the reinstallation. What is the possible wrong? My web.xml is attached. Thanks for any suggestions. - 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: No of concurrent requests per session
So? As someone else pointed out. That's what the standard recommends. You really didn't even bother to find the registry key that I mentioned did you? George Sexton MH Software, Inc. http://www.mhsoftware.com/ Voice: 303 438 9585 -Original Message- From: Abhilash Kumar [mailto:[EMAIL PROTECTED] Sent: Monday, February 13, 2006 9:45 PM To: Tomcat Users List Subject: RE: No of concurrent requests per session Hello: Thanking everyone for words of wisdom .. I checked with firefox 1.0.7 also. It is also showing the same behaviour as with IE. thanks and regards, -- Kannan. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, February 13, 2006 9:58 PM To: Tomcat Users List Subject: RE: No of concurrent requests per session I suspect the problem relates to pipelining of HTTP 1.1 requests over a single persistent TCP connection. Pipelining is intended to improve efficiency, allowing the need for multiple images to present a web page be expressed to a web server one after another, before any of the responses are given. However, the responses must be presented in the same order as the requests, and therein lies your problem. If your short running request is issued over the same TCP connection as one of the earlier, yet to be responded to, long running requests, the response to the later request must wait for the earlier request to be responded to first. In this scenario, you need to get either the browser or the web server to stop using persistent connections. Of course, this may make it less efficient for serving up normal web pages. Please respond to Tomcat Users List users@tomcat.apache.org To: 'Tomcat Users List' users@tomcat.apache.org cc: Subject:RE: No of concurrent requests per session I'm guessing this is more of a browser issue. If you're using IE, I seem to recall there is a registry entry that lets you set the maximum concurrent requests. George Sexton MH Software, Inc. http://www.mhsoftware.com/ Voice: 303 438 9585 -Original Message- From: Abhilash Kumar [mailto:[EMAIL PROTECTED] Sent: Monday, February 13, 2006 6:43 AM To: Tomcat Users List Subject: No of concurrent requests per session Hello: I am using Tomcat 5.0.30 with HTTP 1.1 Connector. If I try to make a third request while two other request's (which i have already made) responses have not yet arrived, then Tomcat is not serving the request until one of the pending response arrives. This limits me to only two pending requests (irrespective of the webapp) at a time. My front app is like a dashboard which integarates multiple web apps of which some are reporting apps which requires 4 to 7 minutes to process a request and some are data processing apps which requires only seconds to process the request. Assume the user clicks on two reporting links which open up as new windows from the main app window. Now when he clicks on another link irrespctive of the webapp, nothing happens until one of the reporting request's response is arrived. This problem appears only if the requests belong to the same session. Any pointers / advices will be greatly appreciated. thanks and regards, -- Kannan. -- Amritha Institute of Medical Sciences, Cochin, India Sent using PostMaster by QuantumLink Communications One Internet account, unlimited personal e-mail addresses Get your free copy of PostMaster at http://www.mailserve.net/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Amritha Institute of Medical Sciences, Cochin, India Sent using PostMaster by QuantumLink Communications One Internet account, unlimited personal e-mail addresses Get your free copy of PostMaster at http://www.mailserve.net/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: No of concurrent requests per session
I suppose turning off HTTP 1.1 would probably do it. George Sexton MH Software, Inc. http://www.mhsoftware.com/ Voice: 303 438 9585 -Original Message- From: Abhilash Kumar [mailto:[EMAIL PROTECTED] Sent: Monday, February 13, 2006 11:23 PM To: Tomcat Users List Subject: RE: No of concurrent requests per session Hello: Hello: Can u tell how to prevent browser or webserver using persistent connection ? thanks and regards, -- Kannan. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, February 13, 2006 9:58 PM To: Tomcat Users List Subject: RE: No of concurrent requests per session I suspect the problem relates to pipelining of HTTP 1.1 requests over a single persistent TCP connection. Pipelining is intended to improve efficiency, allowing the need for multiple images to present a web page be expressed to a web server one after another, before any of the responses are given. However, the responses must be presented in the same order as the requests, and therein lies your problem. If your short running request is issued over the same TCP connection as one of the earlier, yet to be responded to, long running requests, the response to the later request must wait for the earlier request to be responded to first. In this scenario, you need to get either the browser or the web server to stop using persistent connections. Of course, this may make it less efficient for serving up normal web pages. Please respond to Tomcat Users List users@tomcat.apache.org To: 'Tomcat Users List' users@tomcat.apache.org cc: Subject:RE: No of concurrent requests per session I'm guessing this is more of a browser issue. If you're using IE, I seem to recall there is a registry entry that lets you set the maximum concurrent requests. George Sexton MH Software, Inc. http://www.mhsoftware.com/ Voice: 303 438 9585 -Original Message- From: Abhilash Kumar [mailto:[EMAIL PROTECTED] Sent: Monday, February 13, 2006 6:43 AM To: Tomcat Users List Subject: No of concurrent requests per session Hello: I am using Tomcat 5.0.30 with HTTP 1.1 Connector. If I try to make a third request while two other request's (which i have already made) responses have not yet arrived, then Tomcat is not serving the request until one of the pending response arrives. This limits me to only two pending requests (irrespective of the webapp) at a time. My front app is like a dashboard which integarates multiple web apps of which some are reporting apps which requires 4 to 7 minutes to process a request and some are data processing apps which requires only seconds to process the request. Assume the user clicks on two reporting links which open up as new windows from the main app window. Now when he clicks on another link irrespctive of the webapp, nothing happens until one of the reporting request's response is arrived. This problem appears only if the requests belong to the same session. Any pointers / advices will be greatly appreciated. thanks and regards, -- Kannan. -- Amritha Institute of Medical Sciences, Cochin, India Sent using PostMaster by QuantumLink Communications One Internet account, unlimited personal e-mail addresses Get your free copy of PostMaster at http://www.mailserve.net/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Amritha Institute of Medical Sciences, Cochin, India Sent using PostMaster by QuantumLink Communications One Internet account, unlimited personal e-mail addresses Get your free copy of PostMaster at http://www.mailserve.net/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat 5.5.15 Clustering ?
Hi, I' ve try to use Tomcat 5.5.15 in cluster mod. And after some work on configuration and test i seems to be on limit of my all possibilities ;) I try to use two tomcat in cluster with apache web server and mod_jk as connector. my Apache configuration look like : # workers.properties ps=/ # List the workers name worker.list=loadbalancer # # First worker # worker.node01.port=8009 worker.node01.host=agnes worker.node01.type=ajp13 worker.node01.lbfactor=1 #worker.node01.domain=cluster1 # # Second worker # worker.node02.port=9009 worker.node02.host=ovea-inspiron worker.node02.type=ajp13 worker.node02.lbfactor=1 #worker.node02.domain=cluster1 # -- # Load Balancer worker # -- worker.loadbalancer.type=lb worker.loadbalancer.sticky_session=false worker.loadbalancer.balanced_workers=node01,node02 As you can see i use two server ('agnes' IP : 192.168.2.102 and 'ovea-inspiron' IP : 192.168.2.103) I' ve coded a little aplication who read un file and create a sessions if session not exist. If i use the system in mod load balancing (with no cluster mod activate) all is great (my config is of course worker.loadbalancer.sticky_session=true ) So system run with session affinitu but the two server are accessible ;) Now i try to configure as cluster mode with session replication (my config is now worker.loadbalancer.sticky_session=3Dfalse) I configure my to server.xml like that : agnes (IP : 192.168.2.102) Server port=8005 shutdown=SHUTDOWN GlobalNamingResources Resource name=UserDatabase auth=Container type=org.apache.catalina.UserDatabase description=User database that can be updated and saved factory= org.apache.catalina.users.MemoryUserDatabaseFactory pathname=conf/tomcat-users.xml / /GlobalNamingResources Service name=Catalina Connector port=8080 maxHttpHeaderSize=8192 maxThreads=150 minSpareThreads=25 maxSpareThreads=75 enableLookups=false redirectPort=8443 acceptCount=100 connectionTimeout=2 disableUploadTimeout=true / Connector port=8009 enableLookups=false redirectPort=8443 protocol=AJP/1.3 / Engine name=Catalina defaultHost=localhost jvmRoute=node01 Realm className=org.apache.catalina.realm.UserDatabaseRealm resourceName=UserDatabase / Host name=localhost appBase=webapps unpackWARs=true autoDeploy=true xmlValidation=false xmlNamespaceAware=false Cluster className=org.apache.catalina.cluster.tcp.SimpleTcpCluster doClusterLog=true clusterLogName=clusterlog manager.className= org.apache.catalina.cluster.session.DeltaManager manager.expireSessionsOnShutdown=false manager.notifyListenersOnReplication=true manager.notifySessionListenersOnReplication=true manager.sendAllSessions=true manager.sendAllSessionsSize=500 manager.sendAllSessionsWaitTime=20 Membership className= org.apache.catalina.cluster.mcast.McastService mcastBindAddress=192.168.2.102 mcastAddr=224.0.0.1 mcastPort=45564 mcastFrequency=1000 mcastDropTime=3/ Receiver className= org.apache.catalina.cluster.tcp.ReplicationListener tcpListenAddress=192.168.2.102 tcpListenPort=4000 tcpSelectorTimeout=100 tcpThreadCount=6 / Sender className= org.apache.catalina.cluster.tcp.ReplicationTransmitter replicationMode=fastasyncqueue doTransmitterProcessingStats=true doProcessingStats=true doWaitAckStats=true queueTimeWait=true queueDoStats=true queueCheckLock=true ackTimeout=15000 waitForAck=true keepAliveTimeout=8 keepAliveMaxRequestCount=-1 / /Host /Engine /Service /Server ovea-inspiron (IP : 192.168.2.103) Server port=9005 shutdown=SHUTDOWN GlobalNamingResources Resource name=UserDatabase auth=Container type=org.apache.catalina.UserDatabase description=User database that can be updated and saved factory= org.apache.catalina.users.MemoryUserDatabaseFactory pathname=conf/tomcat-users.xml / /GlobalNamingResources Service name=Catalina Connector port=9080 maxHttpHeaderSize=8192
Re: context error
hi, Mike, Do you mean put all directories together? No, we need to separate them. So, any other suggestions about this problem? Best Regards. jacky - Original Message - From: Mike Sabroff [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Tuesday, February 14, 2006 10:56 PM Subject: Re: context error Then do that jacky wrote: hi, When i add a Context in the server.xml, an error occurs: Apache Tomcat/4.1.31 Catalina.start: LifecycleException: Context startup failed due to previous errors LifecycleException: Context startup failed due to previous errors at org.apache.catalina.core.StandardContext.start(StandardContext.java:3578) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1141) at org.apache.catalina.core.StandardHost.start(StandardHost.java:707) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1141) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:316) at org.apache.catalina.core.StandardService.start(StandardService.java:450) at org.apache.catalina.core.StandardServer.start(StandardServer.java:2143) at org.apache.catalina.startup.Catalina.start(Catalina.java:463) at org.apache.catalina.startup.Catalina.execute(Catalina.java:350) at org.apache.catalina.startup.Catalina.process(Catalina.java:129) 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.main(Bootstrap.java:156) Stopping service Tomcat-Standalone Catalina.stop: LifecycleException: Coyote connector has not been started LifecycleException: Coyote connector has not been started at org.apache.coyote.tomcat4.CoyoteConnector.stop(CoyoteConnector.java:1296) at org.apache.catalina.core.StandardService.stop(StandardService.java:499) at org.apache.catalina.core.StandardServer.stop(StandardServer.java:2178) at org.apache.catalina.startup.Catalina.start(Catalina.java:494) at org.apache.catalina.startup.Catalina.execute(Catalina.java:350) at org.apache.catalina.startup.Catalina.process(Catalina.java:129) 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.main(Bootstrap.java:156) If i remove the added context, tomcat will start. In fact, i rearrange the directories, i don't know if this will impact on the Context. If i put all directories under $CATALINA_HOME, tomcat will work well with the Context. $CATALINA_HOME/bin/ shared/ server/ $CATALINA_BASE/bin/ conf/ webapps/ logs/ work/ Context is as following: Context path=/test docBase=test reloadable=true / Best Regards. jacky -- Mike Sabroff Web Services Developer [EMAIL PROTECTED] 920-568-8379 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: No of concurrent requests per session
-Original Message- From: Abhilash Kumar [mailto:[EMAIL PROTECTED] Sent: Monday, February 13, 2006 9:45 PM To: Tomcat Users List Subject: RE: No of concurrent requests per session Hello: Thanking everyone for words of wisdom .. I checked with firefox 1.0.7 also. It is also showing the same behaviour as with IE. thanks and regards, -- Kannan. And did you download the Fasterfox extension to allow it more than 2 connections to any given web server? By default Firefox (without the Fasterfox settings or manipulating user.js) will only use 2 connections at any given time to a single web server. Wade - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: App will work on localhost but blank on client PC.
Server is 192.168.2.100, client is 192.168.2.X We tried using http://192.168.2.100:8447/ from the client, and the blank problem first cropped up. Now, instead of http://localhost:8447/ we tried http://192.168.2.100:8447/ from the server itself, and it also comes up blank. -Original Message- From: Mike Sabroff [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 14, 2006 9:55 AM To: Tomcat Users List Subject: Re: App will work on localhost but blank on client PC. How does localhost resolve in that scenario...why not use the hostname or ip address - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: App will work on localhost but blank on client PC.
maybe caused by firewall or something like that ... ? - Original Message - From: Alexander Alekseev [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: users@tomcat.apache.org Sent: Wednesday, February 15, 2006 10:00 AM Subject: RE: App will work on localhost but blank on client PC. Server is 192.168.2.100, client is 192.168.2.X We tried using http://192.168.2.100:8447/ from the client, and the blank problem first cropped up. Now, instead of http://localhost:8447/ we tried http://192.168.2.100:8447/ from the server itself, and it also comes up blank. -Original Message- From: Mike Sabroff [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 14, 2006 9:55 AM To: Tomcat Users List Subject: Re: App will work on localhost but blank on client PC. How does localhost resolve in that scenario...why not use the hostname or ip address - 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: No of concurrent requests per session
Hello: No, I haven't tried the Fasterfox extension. Let me try it and see the results. thanks and regards, -- Kannan. -Original Message- From: Wade Chandler [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 15, 2006 8:13 AM To: Tomcat Users List Subject: RE: No of concurrent requests per session -Original Message- From: Abhilash Kumar [mailto:[EMAIL PROTECTED] Sent: Monday, February 13, 2006 9:45 PM To: Tomcat Users List Subject: RE: No of concurrent requests per session Hello: Thanking everyone for words of wisdom .. I checked with firefox 1.0.7 also. It is also showing the same behaviour as with IE. thanks and regards, -- Kannan. And did you download the Fasterfox extension to allow it more than 2 connections to any given web server? By default Firefox (without the Fasterfox settings or manipulating user.js) will only use 2 connections at any given time to a single web server. Wade - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Amritha Institute of Medical Sciences, Cochin, India Sent using PostMaster by QuantumLink Communications One Internet account, unlimited personal e-mail addresses Get your free copy of PostMaster at http://www.mailserve.net/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: No of concurrent requests per session
Hello George, I tried out as you have suggested by adding the registry key entry MaxConnectionsPerServer under HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings with a value more than 2. After that, IE spans more than two concurrent requests to the same domain. Why I mentioned about Firefox was no one in the thread cleary stated that it is the same behaviour in Firefox. So I decided to make a post wishing later some one will be benefitted from that information since I have tested the behaviuor with Firefox 1.0.7. And as you can see, the community again benefitted from that posting since Wade posted the necessary info for setting max connections in FireFox also. thanks and regards, -- Kannan. -Original Message- From: George Sexton [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 15, 2006 6:03 AM To: 'Tomcat Users List' Subject: RE: No of concurrent requests per session So? As someone else pointed out. That's what the standard recommends. You really didn't even bother to find the registry key that I mentioned did you? George Sexton MH Software, Inc. http://www.mhsoftware.com/ Voice: 303 438 9585 -Original Message- From: Abhilash Kumar [mailto:[EMAIL PROTECTED] Sent: Monday, February 13, 2006 9:45 PM To: Tomcat Users List Subject: RE: No of concurrent requests per session Hello: Thanking everyone for words of wisdom .. I checked with firefox 1.0.7 also. It is also showing the same behaviour as with IE. thanks and regards, -- Kannan. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, February 13, 2006 9:58 PM To: Tomcat Users List Subject: RE: No of concurrent requests per session I suspect the problem relates to pipelining of HTTP 1.1 requests over a single persistent TCP connection. Pipelining is intended to improve efficiency, allowing the need for multiple images to present a web page be expressed to a web server one after another, before any of the responses are given. However, the responses must be presented in the same order as the requests, and therein lies your problem. If your short running request is issued over the same TCP connection as one of the earlier, yet to be responded to, long running requests, the response to the later request must wait for the earlier request to be responded to first. In this scenario, you need to get either the browser or the web server to stop using persistent connections. Of course, this may make it less efficient for serving up normal web pages. Please respond to Tomcat Users List users@tomcat.apache.org To: 'Tomcat Users List' users@tomcat.apache.org cc: Subject:RE: No of concurrent requests per session I'm guessing this is more of a browser issue. If you're using IE, I seem to recall there is a registry entry that lets you set the maximum concurrent requests. George Sexton MH Software, Inc. http://www.mhsoftware.com/ Voice: 303 438 9585 -Original Message- From: Abhilash Kumar [mailto:[EMAIL PROTECTED] Sent: Monday, February 13, 2006 6:43 AM To: Tomcat Users List Subject: No of concurrent requests per session Hello: I am using Tomcat 5.0.30 with HTTP 1.1 Connector. If I try to make a third request while two other request's (which i have already made) responses have not yet arrived, then Tomcat is not serving the request until one of the pending response arrives. This limits me to only two pending requests (irrespective of the webapp) at a time. My front app is like a dashboard which integarates multiple web apps of which some are reporting apps which requires 4 to 7 minutes to process a request and some are data processing apps which requires only seconds to process the request. Assume the user clicks on two reporting links which open up as new windows from the main app window. Now when he clicks on another link irrespctive of the webapp, nothing happens until one of the reporting request's response is arrived. This problem appears only if the requests belong to the same session. Any pointers / advices will be greatly appreciated. thanks and regards, -- Kannan. -- Amritha Institute of Medical Sciences, Cochin, India Sent using PostMaster by QuantumLink Communications One Internet account, unlimited personal e-mail addresses Get your free copy of PostMaster at http://www.mailserve.net/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Amritha Institute of Medical Sciences,
Re: Tomcat 5.5.15 Clustering ?
Hey, 1) Clustering need sticky_session=true and is only design for failover (see servlet spec). 2) Are your sure that MULTICAST is enabled at eth0? regards Peter [EMAIL PROTECTED] Am 15.02.2006 um 02:26 schrieb David Avenante: Hi, I' ve try to use Tomcat 5.5.15 in cluster mod. And after some work on configuration and test i seems to be on limit of my all possibilities ;) I try to use two tomcat in cluster with apache web server and mod_jk as connector. my Apache configuration look like : # workers.properties ps=/ # List the workers name worker.list=loadbalancer # # First worker # worker.node01.port=8009 worker.node01.host=agnes worker.node01.type=ajp13 worker.node01.lbfactor=1 #worker.node01.domain=cluster1 # # Second worker # worker.node02.port=9009 worker.node02.host=ovea-inspiron worker.node02.type=ajp13 worker.node02.lbfactor=1 #worker.node02.domain=cluster1 # -- # Load Balancer worker # -- worker.loadbalancer.type=lb worker.loadbalancer.sticky_session=false worker.loadbalancer.balanced_workers=node01,node02 As you can see i use two server ('agnes' IP : 192.168.2.102 and 'ovea-inspiron' IP : 192.168.2.103) I' ve coded a little aplication who read un file and create a sessions if session not exist. If i use the system in mod load balancing (with no cluster mod activate) all is great (my config is of course worker.loadbalancer.sticky_session=true ) So system run with session affinitu but the two server are accessible ;) Now i try to configure as cluster mode with session replication (my config is now worker.loadbalancer.sticky_session=3Dfalse) I configure my to server.xml like that : agnes (IP : 192.168.2.102) Server port=8005 shutdown=SHUTDOWN GlobalNamingResources Resource name=UserDatabase auth=Container type=org.apache.catalina.UserDatabase description=User database that can be updated and saved factory= org.apache.catalina.users.MemoryUserDatabaseFactory pathname=conf/tomcat-users.xml / /GlobalNamingResources Service name=Catalina Connector port=8080 maxHttpHeaderSize=8192 maxThreads=150 minSpareThreads=25 maxSpareThreads=75 enableLookups=false redirectPort=8443 acceptCount=100 connectionTimeout=2 disableUploadTimeout=true / Connector port=8009 enableLookups=false redirectPort=8443 protocol=AJP/1.3 / Engine name=Catalina defaultHost=localhost jvmRoute=node01 Realm className=org.apache.catalina.realm.UserDatabaseRealm resourceName=UserDatabase / Host name=localhost appBase=webapps unpackWARs=true autoDeploy=true xmlValidation=false xmlNamespaceAware=false Cluster className=org.apache.catalina.cluster.tcp.SimpleTcpCluster doClusterLog=true clusterLogName=clusterlog manager.className= org.apache.catalina.cluster.session.DeltaManager manager.expireSessionsOnShutdown=false manager.notifyListenersOnReplication=true manager.notifySessionListenersOnReplication=true manager.sendAllSessions=true manager.sendAllSessionsSize=500 manager.sendAllSessionsWaitTime=20 Membership className= org.apache.catalina.cluster.mcast.McastService mcastBindAddress=192.168.2.102 mcastAddr=224.0.0.1 mcastPort=45564 mcastFrequency=1000 mcastDropTime=3/ Receiver className= org.apache.catalina.cluster.tcp.ReplicationListener tcpListenAddress=192.168.2.102 tcpListenPort=4000 tcpSelectorTimeout=100 tcpThreadCount=6 / Sender className= org.apache.catalina.cluster.tcp.ReplicationTransmitter replicationMode=fastasyncqueue doTransmitterProcessingStats=true doProcessingStats=true doWaitAckStats=true queueTimeWait=true queueDoStats=true queueCheckLock=true ackTimeout=15000 waitForAck=true keepAliveTimeout=8 keepAliveMaxRequestCount=-1 / /Host /Engine /Service /Server ovea-inspiron (IP : 192.168.2.103) Server port=9005 shutdown=SHUTDOWN GlobalNamingResources Resource name=UserDatabase auth=Container type=org.apache.catalina.UserDatabase description=User database that
How can we capture all errors without defining it
Hi, I would like to know, if we can capture all the errors to a servlet without defining the list of errors in web.xml as follows.. generally, we can capture an error like this: error-page error-code400/error-code location/errorHandler/location /error-page . . . is this possible? (see below) error-page error-codeAllErrors/error-code location/errorHandler/location /error-page or is there any other mechanism? Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Setting up a parallel test environment on the same machine as main server
On Wednesday 15 February 2006 01:13, Tim Lucia wrote: The http host header is sent by the user-agent (browser) based on the address requested in the URL. This is how virtual hosts are differentiated. Tomcat supports a host container for virtual host differentiation, just like Apache does. You do not need to change the workers at all. Tomcat sees the same host header that Apache does. I.e., using Tamper Data and FireFox, I see Host=www.chandlerfamily.org.uk Yes - I get that part. When I request your web site. (Along with a photo of you, presumably, in a tie sunglasses ;-) You might also want to send just Apache for the server, rather then Yes its me (although they are my normal glasses that I wear all the time - they just have light sensitive lenses), taken at my daughters graduation from Southampton University in the summer 2004 :-) Server=Apache/2.0.54 (Debian GNU/Linux) mod_auth_pgsql/2.0.2b1 DAV/2 SVN/1.1.4 mod_jk/1.2.14 mod_python/3.1.3 Python/2.3.5 PHP/4.3.10-16 mod_ssl/2.0.54 OpenSSL/0.9.7e mod-xslt/1.0.0rc1 As it is more secure. How to do this was recently discussed on this list. Low priority - but I'll look at it. So, you should have two virtual hosts (by name) in both server.xml and httpd.conf. Not sure how to solve the https problem -- never tried to myself. This is where I get lost. I currently have two virtual hosts on apache pointing at the same virtual host on tomcat ALL with different names - so this doesn't square with what you are saying of there being a one to one mapping. This server is running linux, with two ethernet cards. On the WAN side (which is what you can see) my ISP allocated via dhcp a single IP address. That is the www.chandlerfamily.org.uk address. On the lan side, I can allocate multiple IP addresses to the card in a set of psuedo devices, so at the moment it has address 192.168.0.20 and 192.168.0.30, 31, 32 and 39. Each of these is given separate names such as roo.home, appserv.home, webmail.home money.home and test.home by a nameserver also running on that machine On apache I have a number of virtual hosts set up (but because of the https problem they MUST be differenciated by ip address). At the moment I have the virtual hosts www.chandlerfamily.org.uk and money.home directing traffic to tomcat on the host appserv.home (the home page you saw was being generated in a java application). I want to add a tomcat host to serve java applications to an apache virtual host running on test.home. If I understand you correctly you would advocate creating additional host elements of my server.xml file with names of www.chandlerfamily.org.uk and test.home (I presume I have to keep default host of appserv.home just so that tomcat knows which ip address to listen on). If I do that how do I pick up traffic to money.home? add another host statement with repeated contexts? -- Alan Chandler http://www.chandlerfamily.org.uk Open Source. It's the difference between trust and antitrust. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: App will work on localhost but blank on client PC.
The 2k3s does not run a firewall, we have the router performing that function. Pages on port 80 through IIS load fine. I will try configuring the router to specifically not block port 8447 to the server and see what happens. -Original Message- From: Pham Anh Tuan [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 14, 2006 10:38 PM To: Tomcat Users List Subject: Re: App will work on localhost but blank on client PC. maybe caused by firewall or something like that ... ? - Original Message - From: Alexander Alekseev [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: users@tomcat.apache.org Sent: Wednesday, February 15, 2006 10:00 AM Subject: RE: App will work on localhost but blank on client PC. Server is 192.168.2.100, client is 192.168.2.X We tried using http://192.168.2.100:8447/ from the client, and the blank problem first cropped up. Now, instead of http://localhost:8447/ we tried http://192.168.2.100:8447/ from the server itself, and it also comes up blank. -Original Message- From: Mike Sabroff [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 14, 2006 9:55 AM To: Tomcat Users List Subject: Re: App will work on localhost but blank on client PC. How does localhost resolve in that scenario...why not use the hostname or ip address - 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]